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

relay node in mesh

i am using three boards , one is client (nrf52840) and other two boards as server(nRF52832) using light switch example . i want to get the message from  client board ,to relay node and from relay node to server. i want to do hopping from A ---B-----C using relay . 

1.  what are the changes i need to do in light switch example (both in client and server)


2. how to publish /subscribe in nRF mesh app for these three boards  one client , one relay node and another server , procedure to achieve this .i am placing the A and C nodes far away which is not in the range of A . 

anyone have done this please guide me 

thanks in advance 

  • Hi,

    In Bluetooth mesh you never think about what route a particular message will take through the network. All you need to do for messages to reach their destination is to provision all the nodes into the network. Then everything will work as long as the network is contiguous (and as long as the path that a message must take is shorter than the configured time to live.)

    For configuration, node A should publish to the address of node C or to a group address that node C subscribes to. It should also use an application key. If you used a group address, then node C must subscribe to that group address. Node C must also use the same application key.

    Regards,
    Terje

  • Thank you for your response tesc. Do you understand my question.  Actually I want to send the message from A (client ) ----B (server 1which acts as relay node) ------C ( server 2). I want to do hopping from one node to another and so on and should reach the destination .how to do publish /subscribe ?

    I know only Unicast address of each device .. which address I should give for subscribe. Can you clearly explain me 

    Thanks in advance

  • Do you understand my question

    No:  your question doesn't really make sense - as says,  you don't control the routing within the mesh

  • As per you said :

    You don't control the routing within the mesh  

    Then how can we do managed flooding ? In our case C is not in the range of A .  B is in range of A. We should achieve like A ----- B-------C

  • Then how can we do managed flooding ?

    You don't!

    The mesh stack manages that for you. That is what the mesh does.

    Just like you don't specify the path that your IP packets take from your computer to the Nordic website and back - that is all handled by the Internet. That is what the Internet does.

    And just like you don't specify the path that a phone call takes when you call someone on your phone - the phone network takes care of that. That is what the phone network does.

Related