End device joining
When you power on an end device, if it is not joined to a valid Zigbee network, or if the orphan scan fails to find a parent, the device attempts to find and join a valid Zigbee network.
Note Set the DJ command to 1 to disable joining. You cannot write the DJ parameter with WR, so a power cycle always clears the DJ setting.
The following commands control the end device joining process.
| Command | Description |
|---|---|
|
ID |
Sets the 64-bit PAN ID to join. Setting ID = 0 allows the router to join any 64-bit PAN ID. |
|
SC |
Set the scan channels bitmask that determines which channels an end device will scan to find a valid network. SC on the end device should be set to match SC on the coordinator and routers in the desired network. For example, setting SC to 0x281 enables scanning on channels 0x0B, 0x12, and 0x14, in that order. |
|
SD |
Set the scan duration, or time that the end device will listen for beacons on each channel. |
|
ZS |
Set the stack profile on the device. |
|
EE |
Enable or disable security in the network. This must be set to match the EE value (security policy) of the coordinator. |
|
KY |
Set the trust center link key. If set to 0 (default), the link key is expected to be obtained (unencrypted) during joining. |
| EO |
If encryption is enabled (EE = 1), set the joining device's Encryption Options to match the Encryption Options of the network. |
Once the end device joins a network, the network configuration settings persist through power cycles as mentioned in Persistent data. If joining fails, read the status of the last join attempt in the AI command register.
If any of these command values change when command register changes are applied, the end device leaves its current network and attempts to discover and join a new valid network.
When a Zigbee end device has successfully started a network, it:
- Sets AI equal to 0
- Starts blinking the Associate LED if one has been connected to the device's ASSC pin (Micro pin 26/SMT pin 28/TH pin 15)
- Sends an API modem status frame (“associated”) out the serial port when using API mode
- Attempts to enter the sleep mode defined by the SM parameter
You can use the following commands to configure these behaviors:
| Command | Description |
|---|---|
|
D5 |
Enables the Associate LED functionality. |
|
LT |
Sets the Associate LED blink time when joined. Default is 2 blinks per second (end devices). |
|
SM, SP, ST, SN, SO, ET |
Parameters that configure the sleep mode characteristics. See End Device configuration. |
PDF
