BL4S200 User’s Manual
22
2.7 Run a ZigBee Sample Program (BL4S230 only)
This section explains how to run a sample program in which the BL4S230 is used in its
default setup as a router and the Digi
®
XBee USB is used as the ZigBee coordinator.
1. Connect the Digi
®
XBee USB acting as a ZigBee coordinator to an available USB port
on your PC or workstation. Your PC should recognize the new USB hardware.
2. Find the file
AT_INTERACTIVE.C
, which is in the Dynamic C
SAMPLES\XBee
folder.
To run the program, open it with the
File
menu, then compile and run it by pressing
F9
.
The Dynamic C
STDIO
window will open to display a list of AT commands. Type
MENU
to redisplay the menu of commands.
Appendix F provides additional configuration information if you experience conflicts
while doing development simultaneously with more than one ZigBee coordinator, or if you
wish to upload new firmware.
Waiting to join network...
done
Cmd - Description
=====================
ATCH - Read the current channel. Will be zero if we
are not associated with a network.
ATID - Set or read the current PAN ID. If you set the ID you
must write it to non-volitile memory ("WR") and
then reset the network software ("NR").
ATOP - Read the operating PAN ID.
ATMY - Read the current network address. Will be 0xFFFE
if we are not associated with a network.
ATSH - Read the upper four bytes of the radio IEEE address.
ATSL - Read the lower four bytes of the radio IEEE address.
ATNI - Set or read the Node Identifier.
ATBH - Set or read the maximum number of Broadcast Hops.
ATNT - Set or read the Node Discovery timeout value (in 0.1s).
ATSC - Set or read the list of channels to scan. This
value is a bit-field list.
ATSD - Set or read the channel scan duration value.
ATNJ - Set or read the Node Joining Time value.
ATAI - Read the Association Indicator. A zero value
means we are associated with a network.
ATPL - Set or read the transmission power level.
ATVR - Read the radio software version number.
ATHV - Read the radio hardware version number.
MENU - Display this menu (not an AT command.)
Valid command formats (AT prefix is optional, CC is command):
[AT]CC 0xXXXXXX (where XXXXXX is an even number of hexidecimal characters)
[AT]CC YYYY (where YYYY is an integer, up to 32 bits)
[AT]NI "Node ID String" (where quotes contain string data)
Enter AT Command:
electronic components distributor