Step 4: Configure the XBee modules
To transmit data wirelessly between your XBee modules, you must configure them to be in the same network. Remember that in Zigbee one device must be the coordinator, and the rest can be routers or end devices. In this case, you will have one router and one end device configured to send data to the coordinator.
-
Restore the default settings of all XBee modules with the Load default firmware settings
button at the top of the Radio Configuration section.
- Use XCTU to configure the following parameters:
Param |
XBee A |
XBee B |
XBee C |
Effect |
---|---|---|---|---|
ID |
2015 |
2015 |
2015 |
Defines the network that a radio will attach to. This must be the same for all radios in your network. |
JV |
— |
Enabled [1] |
Enabled [1] |
Verifies if a coordinator exists on the same channel to join the network or to leave if it cannot be found. |
CE |
Enabled [1] |
— |
— |
Sets the device as coordinator. |
DH |
— |
0 |
0 |
Defines the destination address (high part) to transmit the data to. |
DL |
— |
0 |
0 |
Defines the destination address (low part) to transmit the data to. The address 0000000000000000 can be used to address the coordinator. |
NI |
COORD |
ROUTER |
END_DEVICE |
Defines the node identifier, a human-friendly name for the module.
The default NI value is a blank space. Make sure to delete the space when you change the value. |
SP |
1F4 |
1F4 |
1F4 |
Defines the duration of time spent sleeping. 1F4 (hexadecimal) = 500 (decimal) x 10 ms = 5 seconds. |
SM |
— |
— |
Cyclic sleep [4] |
Enables cyclic sleep mode in the end device. |
SO |
— |
— |
2 |
Keeps the module awake during the entire period. |
Note The dash (—) in the table means to keep the default value. Do not change the default value.
- Write the settings of all XBee modules with the Write radio settings button
at the top of the Radio Configuration section.
The following video demonstrates how to add modules to XCTU: