Particle Mesh Support

Hello,

I have a few Particle Mesh devices. I tried to get Blynk working with them, on the Argon (wifi connected) it was super easy, Blynk just worked.

However on the Xenon device (mesh) it seems that the Blynk.begin(auth) function just blocks forever. My guess is that is Blynk.begin() calls connect() which never returns because there’s no route to the Blynk server. Maybe because the Xenons are using IPv6 and the Argon is serving as an IPv4 gateway. That’s just a guess though.

Is Blynk planning on supporting the Particle Mesh boards? Do you have any estimate on when that support might come? I realize that estimates are just that and can be wrong.

Correct, if no connection (to server) nothing else happens.

Try with Blynk.config() instead… that way you can setup your own network connection type and perhaps Blynk will connect through it?

There are such plans. There’s no estimate.
The library is opensource and you can contribute, making things happen faster :wink:

OK, I’ll try to look into this and get a prototype working. I’ll post what I find as I find it so other people can use whatever I find if I don’t finish.

Looking at the Particle Xenon documentation it looks like the Xenons don’t support TCP outside of the mesh network, see TCPClient. So that makes sense that connect() doesn’t work when on the Xenons (but does work on the Argons).

So for me the next step is figuring out if Blynk supports UDP (which the Particle documentation claims the Xenons support) or finding out if the Particle Mesh nodes can be made to support TCP.

Just a short note here on my quick&dirty trial with the mesh modules: I set up a Xenon as a gateway of my mesh using the Ethernet Feather Wing. I installed the Blynk library and selected Particle Photon in the Blynk app as device. This seems to work.

1 Like

I hope Blynk will start supporting the Xenon in connection with the Device Selector. Imagine making the Device Selector select devices in the mesh such as the Xenon!!!

1 Like

I think there is a lot more than Blynk simply upporting the Xenon’s. I have encountered this same problem trying to get Blynk to work on a mesh nextwork of Particle Xenons. Currently Xenon’s only will communicate with Particle’s cloud. The TCP protocol is not supported currently although it seems that UDP is. There is a lot of work yet to do on Partice’s end gettng their Mesh working well. Somewhere down the line they may support devices being able to connect to other services directly. I think for it to really work well, the gateway device itself (Argon or Boron) may have to act as a dedicated Blynk service relay.

I know nothing about the Particle boards or how they work with the Particle Server.
However, the way I use Blynk is to use a product called Node-Red which acts as a gateway between Blynk and the NodeMCU devices that I use on my network. Node-Red runs on a Raspberry Pi (although it can run on other platforms) and my devices talk to it using MQTT messages, so the devices don’t run any Blynk bode at all.

Because Node-Red can use different plug-ins to talk to external services (Blynk, Amazon Alexa, etc) it’s a very powerful and flexible product. I’ve just done a quick search to see if there is any Particle support for Node-Red and it seems that there is:

So, maybe the answer is to have the Blynk side of things handled by Node-Red, and have this sending data to the Particle server?

Here’s a link to how I use Blynk and Node-Red for my home automation system:

Pete.

Thanks for the reply Pete! I have heard of Node-Red but never have worked with it. I will definitely look into it.

In the mean time I figured out a way to make it work. It make a lot of sense after I thought outside of the box for a moment. You setup your Argon or Boron gateway to run Blynk. The widgets on your phone will be talking to it only. On your gateway device you publish events to the particle cloud. On your Xenon’s you subscribe to the events. I just setup an example using an Argon and Xenon with the Blynk app to toggle the built-in LED on and off and it works great!

Thanks! Tim

I’ve been tooling around with Particle Mesh + Blynk. It is possible to get it working. There’s actually two ways.

  1. Forward the HTTP requests from the Particle Console to Blynk
  2. Use Mesh.publish to publish events locally. Then using the Blynk library to forward them to Blynk.

A full how-to is right in the form.

I know things may be changing with Blynk in the near future. It still may help folks who are looking to get their projects up and running. :slight_smile:

2 Likes

I’ve just taken to having the Argon act as a driver to Blynk and developed a method for passing blynk info to the Argon from the Xenons. Works fine. In some ways, I think it will work better in a larger mesh project then each xenon calling blynk.

1 Like

Closing this topic due to: