Your next job is to create addresses for each XBee in your network. These values should be unique to each XBee in a network. The MY
address can be any value between 0x0000 and 0xFFFF. Type this address into the text box next to "
MY
16-bit Source Address".
If you only have two XBees, you can
assign the first an MY address of 0, and the other an address of 1
.
Note:
Your XBee's can share the same MY address, they'll both receive the same data if it's broadcasted to that address.
Destination Address (DH & DL)
The destination address defines which XBee your source XBee is talking to. There are actually two values used to set the destination:
destination high (DH) and destination low (DL). You can use that pair of values in one of two ways to set your XBee's mate:
1. Leave DH set to 0, and set DL to the
MY address
of the receiving XBee.
2. Set DH to the
Serial Number High (SH)
and DL to the
Serial Number Low (SL)
of your destination XBee.
Either method works, but the former -- setting DH to 0 and DL to the destination's MY address -- is usually easier.
Here's an example for setting up the ID, DH, DL, and MY values for a pair of XBees:
Setting
Acronym XBee Node1 XBee Node 2
Channel
CH
C
C
PAN ID
ID
35FD
35FD
Destination Address High
DH
0
0
Destination Address Low
DL
1
0
16-bit Source Address
MY
0
1
Notice how the only real differences are the DL and MY values, which are flip-flopped on each XBee.
Write Changes
Once you've made your changes to the text field, click the brown pencil icon ( ) to
write your changes
. The property background
should turn from green to blue, indicating it has been written to a non-default value.
XBee 1's config tab after writing the changes.
Now, just like last time, you can try to send data from one XBee to the other via the
console
. As long as the addresses and PAN ID's
match up, you should have the same success as last time.
While it may seem like a lot of work to get right back to where you were, using a unique PAN ID and addressing scheme will make your
data transfer more
secure
and
reliable
.
Troubleshooting
If your XBee's are giving you any trouble, here are some common problems and fixes we recommend:
Page 18 of 24