How to pair two XBee Radios
Recently a resulting factor of a new hobby project was the need to revisit the pairing of Xbee radios. The last time I had to undertake such a task was ages ago and due to my existing set of Xbee’s becoming a permanent fixture within my robot “Sheldon” I had not kept up on all things Xbee and for the life of me could not remember how.
Luckily I managed to re-track down a great YouTube video (above) produced by xbeeadapters that I originally used to complete the task. The following list is a summary of all the steps needed to pair your Xbees as taken from the video.
In reality you wont need to Read/Write to the radios as much as I do, however I like to be thorough and find that for me this works best:
- Download and install X-CTU from Digi.com
- Read from the device to check it’s recognized
- Set first xbee as Coordinator Device
- Write to and then Read Device.
- Set Pan ID for and note it down.
- Write to and then Read (now a Coordinator) Device.
- Note Down the Serial High and Serial Low values of the Coordinator.
- Swap over the xBee’s
- Read from the device to check it’s recognised
- Set this xBee as a Router/End Device
- Write to and then Read the (now a Router/End) Device.
- Set Pan ID to the same as the Coordinator Device.
- Write to and then Read Device.
- Copy Serial High and Serial Low of Coordinator Device to Destination Addresses Router/End Device
Destination High Router/End Device – Serial High Coordinator Device
Destination Low Router/End Device – Serial Low Coordinator Device
- Write to and then Read Device.
- Note Down the Serial High and Serial Low values of the Router/End Device.
- Swap over the xBee’s
- Copy SH and SL of Router/End Device to Destination Addresses of Coordinator Device
Destination High Coordinator Device – Serial High Router/End Device
Destination Low Coordinator Device – Serial Low Router/End Device
- Step 17: Write to and then Read Device.
- Step 18: Cross Fingers and test 🙂
There may be an occasion when something goes wrong during the write. The result of this is that your Xbee radio becomes for want of a better word “Bricked”. I have only had this happen to me once, however don’t fear all is not lost. As it turns out its quite easy to unblock an Xbee.
If you are unfortunate enough for this to happen to you check out the this post over at Diy Drones.