Zigbee networks End device operation
Digi XBee® 3 Zigbee® RF Module
89
Reset the router
When you reset or power cycle the router, it checks its PAN ID, operating channel and stack profile
against the network configuration settings (ID, SC, ZS). It also verifies the saved security policy is valid
based on the security configuration commands (EE, KY). If the router's PAN ID, operating channel,
stack profile, or security policy is invalid, the router leaves the network and attempts to join a new
network based on its network joining command values.
To prevent the router from leaving an existing network, issue the WR command after all network
joining commands have been configured; this retains the settings through power cycle or reset
events.
Example: join a network
After starting a coordinator that is allowing joins, the following steps cause a router to join the
network:
1. Set ID to the desired 64-bit PAN ID, or to 0 to join any PAN.
2. Set SC to the list of channels to scan to find a valid network.
3. Set the security settings to match the coordinator.
4. If you SC or ID from the default, apply changes (that is, make SC and ID changes take effect) by
issuing the AC or CN command.
5. The Associate LED starts blinking once the router has joined a PAN.
6. If the Associate LED is not blinking, read the AI command to determine the cause of join failure.
7. Once the router joins, the OP and CH commands indicate the operating 64-bit PAN ID and
channel the router joined.
8. The MY command reflects the 16-bit address the router received when it joined.
9. The API Modem Status frame (“Associated”) is sent out the serial port when using API mode.
10. The joined router allows other devices to join for a time based on its NJ setting.
End device operation
Similar to routers, end devices must discover and join a valid Zigbee network before they can
participate in the network. After an end device joins a network, it can communicate with other devices
on the network. Because end devices are battery powered and support low power (sleep) modes, they
cannot allow other devices to join or route data packets.
Discover Zigbee networks
End devices go through the same process as routers to discover networks by issuing a PAN scan. After
sending the broadcast beacon request transmission, the end device listens for a short time in order to
receive beacons sent by nearby routers and coordinators on the same channel. The end device
evaluates each beacon received on the channel to determine if it finds a valid PAN. A PAN is valid if any
of the following exist:
n Has a valid 64-bit PAN ID (PAN ID matches ID if ID > 0)
n Has the correct stack profile (ZS command)
n Allows joining the network
n Has capacity for additional end devices