Search code examples
xbee

Xbee Address problem for making a breadcrumb network


Sir , i am trying to make a breadcrumb network using raspberryPi and Xbees. Please tell what destination address should i put in Coordinator node so that it receives data only from a single router.I am using all Xbees in API modes. Thanks in advance.[Image of the Addresses of my xbees i am using.Click to get image

Router3 Router2 Router1 Coordinator

Please suggest what addresses should i put so that Router3 send data to Router2, Router2 to Router1 and Router1 to Coordinator.

If suppose Router3 send some data, it first goes to Router2, then to Router1 and then reaches Coordinator.

I am trying to connect the GPS to all the Router RaspberryPis and trying to send these to Coordinator Node.


Solution

  • With a mesh network, you direct your message to the final destination and the nodes take care of relaying it as necessary to reach the destination.

    So nothing to do on the coordinator, and each router uses a destination address of 0 in their API frames to send to the coordinator.

    If you really want to force the messages to hop from router to router, just use the router's 64-bit address (the ATSH and ATSL values) in the API frames you're using to send your data. When you receive a frame on a node, just replace the destination address with the next hop and resend it.