XBee ZigBee networks Channel scanning for the XBee/XBee-PRO ZB RF Module
XBee/XBee-PRO ZigBee RF Modules User Guide 52
Application messaging
PAN ID filtering
The XBee can be configured with a fixed PAN ID by setting the ID command to a non-zero value. If the PAN ID is set
to a non-zero value, the XBee will only join a network with the same PAN ID.
Preconfigured security keys
Similar to PAN ID filtering, this method requires a known security key be installed on a router to ensure it will join
a ZigBee network with the same security key. If the security key (KY command) is set to a non-zero value, and if
security is enabled (EE command), an XBee router or end device will only join a network with the same security
key.
Permit joining
The Permit Joining parameter can be disabled in a network to prevent unwanted devices from joining. When a
new device must be added to a network, permit-joining can be enabled for a short time on the desired network.
In the XBee firmware, joining is disabled by setting the NJ command to a value less than 0xFF on all routers and
coordinator devices. Joining can be enabled for a short time using the commissioning push-button (see Network
commissioning and diagnostics on page 82 for details) or the CB command.
Application messaging
If the above mechanisms are not feasible, the application could build in a messaging framework between the
coordinator and devices that join its network. For example, the application code in joining devices could send a
transmission to the coordinator after joining a network, and wait to receive a defined reply message. If the
application does not receive the expected response message after joining, the application could force the XBee
to leave and continue scanning (see the NR parameter in Execution commands on page 171).