Mesh API, number of connections command?

A little bit lost looking at the openThread API at https://openthread.io/reference/
Can someone try to answer a Mesh programming question? Perhaps @jberi ?

What would be the call in a mesh device .ino file that would count how many other devices are connected? (Perhaps even estimate the signal strength of each connected device)

What I am thinking about trying is a Swarm Machine Learning problem: Can a few randomly moving mobile Mesh devices learn how to swarm together by simply moving towards the higher number of connections?

Example. When the devices are supposed to swarm they continue to move in one direction if the number of connected devices increases or stays the same (signal strength would be useful), but move randomly if the number of connected devices drops. No GPS, no other sensors. What would happen?

Lots of cool swarm animations on the web like this one http://kaurov.com/wordpress/wp-content/uploads/2013/09/dancefloorpoints2.gif

but much more fun to actually try it with real devices.

I guess all these will be answered as the software is fleshed out over the next few months.

The usual Particle.xxxx() functions, I presume will be available as per the generation one/two devices.

2 Likes

@kennethlimcp now that I am close to getting my 20 mesh devices, the questions still stands. Any comments?

1 Like

What would be the call in a mesh device .ino file that would count how many other devices are connected? (Perhaps even estimate the signal strength of each connected device)

I’m trying to request for the openThread RSSI to r available so…

As for number of devices connected, I’ll take a look to see there’s an openThread API that provides this information.

Tldr; not available as of today.

1 Like