User’s Manual
99
D.2 Digi
®
XBee USB Configuration
You may experience difficulty when you use the ZigBee sample programs and the Digi
®
XBee
USB with the default settings if you are working simultaneously with more than one ZigBee
coordinator.
Section 6.2.2 explains how to set up the RCM4510W configuration patterns for the sample pro-
grams via macros in the Dynamic C
LIB\Rabbit4000\XBee\XBEE_API.LIB
library folder.
Channel mask
— defaults to 0x1FFE, i.e., all 12 possible channels via the macro in the
Dynamic C
LIB\Rabbit4000\ZigBee\XBEE_API.LIB
library.
#define DEFAULT_CHANNELS ZB_DEFAULT_CHANNELS
For example, to limit the channels to three channels, the macro would read as follows.
#define DEFAULT_CHANNELS 0x000E
The same configurations must then be applied to the Digi
®
XBee USB via Digi’s X-CTU utility.
If you have not previously used this utility, install it from the Dynamic C
Utilities\X-CTU
folder by double-clicking
Setup_XCTU_xxxx.exe
(where
xxxx
is the version number),
Continue the following steps with the Digi
®
XBee USB connected to your PC’s USB port. Since
the ZigBee Utility
XBEE_GPIO_GUI.exe
will conflict with X-CTU, first close the ZigBee Utility
if it is running.
1. Start X-CTU from the desktop icon and set the “PC Settings” tab to
115200
baud,
HARD-
WARE
flow control,
8
data bits, parity
NONE
,
1
stop bit.
2. On the “PC Settings” tab, check the “Enable API” box under “Host Setup.”
ZB
ZNet 2.5
Extended PAN ID
— the 64-bit network ID.
Defaults to
DEFAULT_PANID
if set in the
Dynamic C
LIB\Rabbit4000\XBee\
XBEE_API.LIB
library, otherwise defaults
to
0x0123456789abcdef
to match the
default used on the Digi
®
XBee USB.
If set to
0x00
, tells coordinators to “select a
random extended PAN ID,” and tells routers
and end devices to “join any network.”
Change the extended PAN ID if you are
developing simultaneously with more than
one ZigBee coordinator.
#define DEFAULT_EXTPANID
"0x0123456789abcdef"
PAN ID
— the network ID. Defaults to
0x0234 via the macro in the Dynamic C
LIB\Rabbit4000\XBee\XBEE_API.LIB
library. Change the PAN ID if you are
developing simultaneously with more than
one ZigBee coordinator.
#define DEFAULT_PANID 0x0234