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 

Parents
  • 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

  • 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.

  • please have a look below , this is the algorithm i want to do 

    • Each node acts as both a transmitter and a receiver.
    • Each node wants  to forward every message to every one of its neighbors except the source node.
    • want to forward the message from one node to the nearest node which is in range 

    how to do this ?  

  • Hi,

    If you want to send one message to two nodes, then you can use a group address. Configure the client to publish to the group address. Configure the two servers to subscribe to the group address.

    In Bluetooth mesh you don't have control of the specifics regarding where messages travel, as has explained very well already. What is the motivation for wanting to control the forwarding of messages? What do you get from that, what is your end goal?

    Regards,
    Terje

  • By this ,i can achieve longer distance node . i want to transmit the data for a long distance so that my destination node  will be not dependent on source node.

Reply Children
Related