Blogroll

Powered by Blogger.

Monday 3 February 2014

How to Configure XBee Modules For Unicast Mode Of Communication ?

by realfinetime  |  in Xbee at  06:00

Important : Please read this tutorial to get an idea about X-CTU basics and connecting XBee Radios to X-CTU.

Unicast mode is a mode in which the recieving module will send an ACK (acknowledgement) of RF packet reception to the transmitting module. If the transmitting module does not receive ACK, transmitter will send the signals upto three times or until the ACK is recieved. Unicast mode of operation can be done in two ways. short 16-bit addresses and Long 64-bit addresses.
Short 16-bit addresses

Step 1. Read the configuration of XBee RF modules.
Step 2. PAN ID should be same throughout the network.
Step 3. Set the Source Address to 16-bits by setting MY < 0xFFFE.
Step 4. Set DH=0 and DL < 0xFFFE to set the Destination Address to a 16-bit value.
Step 5. MY of Transmitter should match with the DL of Receiver and DL of Transmitter should match with  the MY of Receiver.

Sample Unicast network configuration using 16-bit addressing.

Step 6. Now Write the new configuration to the XBee RF modules.
Step 7. Now open terminal Tab in Both X-CTU windows.Text typed in one terminal will be displayed in the other terminal instantaneously.


Long 64-bit Addresses

Step 1. Read the configuration of XBee RF modules.
Step 2. PAN ID should be same throughout the network.
Step 3. Disable MY (MY = 0xFFFE or MY = 0xFFFF). When the MY parameter is disabled (MY = 0xFFFF or 0xFFFE), the module’s source address is set to the 64-bit IEEE address stored in the SH and SL parameters.
Step 4. Now set SH , SL , DH and DL of the Transmitter and Receiver in such a way that SL+SH of the Transmitter should match with the DL + DH of the Receiver. Also DL+DH of the Transmitter should match with the SL+SH of the Receiver ( SL+SH could not be changed. So DL+DH of one XBee Radio module have to be changed to match the SL+SH  of the other module). 

Sample Unicast network configuration using 64-bit addressing.
Step 5. Now Write the new configuration to the XBee RF modules.
Step 6. Now open terminal Tab in Both X-CTU windows. Text typed in one terminal will be displayed in the other terminal instantaneously.


Important : If you have any doubts in connecting XBee Radios and Reading the XBee configuration, Refer this tutorial

0 comments:

IMPORTANT NOTICE

All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips



Proudly Powered by Blogger.