I need that whenever a power cycle an end device, it will link with the nearest xbee router (with a higher RSSI). Is there any way to make this always happen?
I am doing a line-of-sight remote control, so I need my end device always control the closer router. How do you thing I can do this?
Sounds like you want it to use 802.15.4 and peer to peer architecture without need for a PAN coordinator. This would work like a WiFi client choosing the best access point.
Right?
Doable but you need to do some work. Not plug and play.
Otherwise, you need to get, study, learn, study, learn, study, how to get ZigBee or DigiMesh to do this.
With ZigBee you have no control over routing; it’s done by the AODV algorithm.
Maybe you want the 802.15.4 modules, sans ZigBee, then your code can choose the neighbor node with the strongest signal (if those nodes broadcast periodic messages so you know they’re present). In non-line-of-sight, of course, the nearest isn’t necessarily the strongest signal.
I need to cover an entire house so I need routers and therefore zigbee. I had a central control controlling all the routers but I also need a remote control controlling the closer router.
You don’t have to configure the PAN ID, the coordinator choose automatically the PAN ID. Try to put the PAN ID in 0 or try to write the PAN ID if you have to using the modem configuration.