BL4S200 User’s Manual
166
The XBee sample program in the Dynamic C
SAMPLES\BLxS2xx\XBee
folder illustrates
the use of the XBee function calls.
•
XBEE_GPIO_SERVER.C
—This sample program shows how to set up and use endpoints
and clusters. It is meant to be run with the Windows GUI client (installed in Dynamic C’s
Utilities
directory) and a Digi USB XBee coordinator or with the GPIO client
sample program (
SAMPLES/XBEE/XBEE_GPIO_CLIENT.C
) running on an RCM4510W
RabbitCore module or on a single-board computer with an XBee RF module.
Connect the BL4S230 to the Demonstration Board as explained in Section 7.2.1. Then
compile and run this sample program on the BL4S230. Run the Windows GUI client on
your PC. Configure the GUI client (
XBEE_GPIO_GUI.exe
in the Dynamic C
Utilities\XBee GPIO GUI
folder) to connect to the Digi USB XBee coordinator
and scan for devices. Make sure the BL4S230 and the Digi USB XBee coordinator are
configured with the same PAN ID.
If you run the
XBEE_GPIO_CLIENT.C
sample program on another board with an XBee
RF module, set the PAN IDs to match between the client and the server sample programs.
Now select the GPIO server and use the GUI interface on the PC, or the command-line
client on another XBee-equipped board to view the server's inputs and change its outputs.
electronic components distributor