Connect to the nearest xbee

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?

using 802.15.4 or using ZigBee or using DigiMesh?

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.

I am using zigbee.

jaime12345:
I am using zigbee.

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.

Not sure what you’re trying to do.

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.

Hi Frnds,

to config xbee pro series 2 module as coordinator i have followed below sequence of commands

ATSC 5\r

ok

ATSD 4\r

ok

ATID 1234\r

ok

ATWR\r

ok

ATAI

0x21(scan found no pan ids)

but it is not configuring as coordinator,and association indicator(D5) is also not toggiling

please help me…as soon as possible

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.