User’s Manual
56
6.2 ZigBee Sample Programs
In order to run the sample programs discussed in this chapter and elsewhere in this manual,
1. Your module must be plugged into the Prototyping Board as described in Chapter 2, “Getting
Started.”
2. Dynamic C must be installed and running on your PC.
3. The programming cable must connect the programming header on the RCM4510W to your
PC.
4. Power must be applied to the module through the Prototyping Board.
5. The Digi
®
XBee USB used as the ZigBee coordinator must be connected to an available USB
port on your PC if you are exercising the ZigBee protocol, or you need a second RCM4510W
module if so instructed.
Refer to Chapter 2, “Getting Started,” if you need further information on these steps.
To run a sample program, open it with the
File
menu (if it is not still open), then compile and run
it by pressing
F9
.
Each sample program has comments that describe the purpose and function of the program. Fol-
low the instructions at the beginning of the sample program.
The sample programs in the Dynamic C
SAMPLES\RCM4500W\XBee
and
SAMPLES\XBee
folders
illustrate the use of the XBee function calls.
6.2.1 Setting Up the Digi XBee USB 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. Compile and run the
XBEE_GPIO_SERVER.C
sample program in the Dynamic C
SAMPLES\
RCM4500W\XBee
folder.
3. Open the ZigBee Utility by double-clicking
XBEE_GPIO_GUI.exe
in the Dynamic C
Utili-
ties\XBee GPIO GUI
folder — if you have problems launching the ZigBee Utility, install a .
Net Framework by double-clicking
dotnetfx.exe
in the Dynamic C
Utilities\dotnetfx
folder. You may add a shortcut to the ZigBee Utility on your desktop.
4. Confirm the following hardware setup is displayed on the “PC Settings” tab.
Now select the COM port the Digi
®
XBee USB is connected to, and click the “Open Com
Port” button. The message “Radio Found” is displayed to indicate that you selected the correct
•
115200 baud
•
Hardware flow control
•
8 data bits
•
No parity
•
1 stop bit