We will use XCTU and our USB programming adapter to configure the first XBee module as a coordinator. We need one coordinator to establish and control the XBee network.
First we will need to plug one of the XBee radio modules into the programming adapter. Make sure to orient the radio in the correct direction on the programming adapter. Most programming adapters have a silkscreen on them that shows the correct orientation of the XBee radio.
Next plug the programming adapter into the USB port on the computer and follow the steps below.
1. Start XCTU
2. Click on add device in the top left corner
3. Select the com port that your device is attached to.
4. Leave the Serial settings as 9600 8N1 No flow control and click finish
5. Click on the discovered radio in the top left corner
6. XCTU will read the radio's current settings and display them.
The first step is to flash the first radio module with the proper firmware. Click the update firmware button and select the latest version of ZigBee coordinator AT software. Follow the steps to update the firmware.
Once the firmware is updated, we need to update some of the default settings to match the configuration that we need for the weather station. Compare the values in the table below to the current settings in XCTU. For each setting that is different from the table below, change the value and write the new value to the XBee radio.
Setting | Value | Notes |
---|---|---|
Networking | ||
ID | 57 45 41 54 48 45 52 31 | (ASCII WEATHER1) 64 bit PAN ID |
SC | 3FFF | SCAN all channels for devices |
SD | 3 | Scan duration (default) |
ZS | 0 | ZigBee stack profile 0 |
NJ | FF | Allow nodes to join at any time |
Addressing | ||
DH | 00 13 A2 00 | Upper 4 bytes of Destination address |
DL | 40 BE 2D E9 | Lower 4 bytes of Destination address |
NI | WEATHER BASE | Node identifier 20 byte ASCII string (optional) |
NH | 1E | Max number of hops (leave default) |
BH | 0 | Number of broadcast hops to use 0-Max (leave default) |
AR | FF | Agregate routing (leave default) |
DD | 30000 | Device type (leave default) |
NT | 3C | Node discovery timeout Value*100ms (leave default) |
NO | 3 | Network discovery options (leave default) |
CR | 3 | PAN conflict threshold (leave default) |
Zigbee Addressing | ||
SE | E8 | Source endpoint (default) |
DE | E8 | Destination endpoint (default) |
CI | 11 | Cluster identifier (default) |
RF Interfacing | ||
PL | 4 | Highest (default) |
PM | 1 | Boost mode (default) |
Security | ||
EE | 0 | Encryption enable (Disabled) |
EO | 0 | Encryption Options |
KY | (leave blank) | Link Key |
NK | (leave blank) | Network Key |
Serial Interfacing | ||
BD | 3 | 9600 bps |
NB | 0 | No parity |
SB | 0 | 1 stop bit |
RO | 3 | Paketization timeout # of characters of silence before transmitting RF data. |
D7 | 1 | CTS Flow control |
D6 | 0 | Disabled |
AT command options | ||
CT | 64 | Command mode timeout (default) |
GT | 0x3E8 | Guard Time (default) |
CC | 2B | Command Character (default) |
Sleep Modes | ||
SP | AF0 | Sleep period (Value*10ms) |
SN | 20 | Number of Sleep periods |
IO Settings | ||
D0 | 1 | Commisioning button |
D1 | 0 | Disabled |
D2 | 0 | Disabled |
D3 | 0 | Disabled |
D4 | 0 | Disabled |
D5 | 1 | Associated Indicator |
P0 | 1 | RSSI PWM Output |
P1 | 0 | Disabled |
P2 | 0 | Disabled |
PR | 1FFF | Pull-up resistors enable |
LT | 0 | Associated LED blink time |
RP | 28 | RSSI PWM timer |
IO Sampling | ||
IR | 0 | IO Sample rate |
IC | 0 | IO Change notification |
V+ | 0 | Supply voltage sampling |