This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connect to closest Central

Hi, 

Let's say I have 2 nrf52 Centrals in a room , now - I'm adding a peripheral and I'd like it to connect to the central with the better RSSI ( out of the 2 ) 

My idea involves role switching and seems pretty complicated. 

Thanks, 

Ran 

Parents
  • Any particular reason why you need this complication ?  Why not just reverse it.  2 periph instead of 2 centrals, and the centra (instead of periph)  decides which periph to connect to ? Wouldn't that be simpler ?

  • Hi, 

    Imagine 2 stars ( central connected to 4 peripherals ) . 

    Those 2 stars can overlap. 

    I'd like to add another peripheral to the 1st star. Both Central are in range, one will be further away. 

    So - I need the peripheral to automatically "choose" which central should connect to him. 

    This is for electricity meters monitoring in a building  

  • About Mesh - Understood, I've been struggling with this for a while.

    This is why I'm thinking a star will be better for this case : 

    1. The requirement is that an installation of a new peripheral will be EASY. Mesh provisioning of a new device seems pretty complicated last time I've tried it.  Installation is done by Electricians. 

    2. This installation can be transferred to a battery operated environment, where I will have to add powered Friend-Nodes .

    3. I hope I'm wrong, but the whole BLE mesh looks like it is meant at this stage for lightning projects.

    4. Learning curve for Mesh ....Boss man wants this fast :) 

  • Oh...also - key consideration. 

    Mesh does not support Coded PHY  ( at least officially ) - which might be needed for more rural environment. 

  • Mesh provisioning of a new device seems pretty complicated last time I've tried it

    Are you thinking of the Nordic demo?

    That is, of course, just a manual demo - you wouldn't do it that way for a real project!

    Mesh does not support Coded PHY  ( at least officially )

    That's true,  but your alternative is entirely proprietary anyhow - so that shouldn't be an issue.

    Boss man wants this fast

    Don't they always.

    The trouble is, you are basically re-inventing (a lot of) what a mesh already does for you - so, while you might come up with something that "works" in a basic case in the lab, transferring that to a fully reliable deployment in the field and covering all corner cases is a whole different ballpark ...

  • Just to complete the picture - the metering data goes up to the cloud. In the installation I've described - the star central is equipped with LTE modem . ( gateway ) 

    So , If I'll be using Mesh , I will have to define a gateway that all nodes "publish" to him ?

    Also -  I will need to connect to each one of the nodes from a mobile phone and set\get configuration

    (probably over NUS ) , will that be a problem ?

    (I see that in latest mesh sdk, proxy node was remove from lightning client, available only on server ).

  • So , If I'll be using Mesh , I will have to define a gateway that all nodes "publish" to him ?

    Yes - that is a standard concept in meshes

      I will need to connect to each one of the nodes from a mobile phone and set\get configuration

    Not necessarily.

    You can provision over the mesh - again, a standard concept in meshes

Reply Children
Related