BL4S100 User’s Manual
107
7. Select a device with your mouse pointer and click on the selected device to select that
device. This device will now be displayed in the “Selected Device” area.
8. You are now ready to interface with the BL4S100/BL4S150 via the ZigBee protocol.
Try pinging the selected device by clicking the “Send Ping” button.
6.2.2 Setting up Sample Programs
The sample programs are set up so that the BL4S100/Bl4S150 you are using is a ZigBee
router, coordinator, or end device. Uncomment the line corresponding to the role the
BL4S100/Bl4S150 will have once it is running the sample program. The default in the
sample programs is for the BL4S100/Bl4S150 to be a router.
// Set XBEE_ROLE to NODE_TYPE_COORD, NODE_TYPE_ROUTER or NODE_TYPE_ENDDEV
//
to
match your XBee's firmware.
#define XBEE_ROLE NODE_TYPE_ROUTER
NOTE:
Remember that the firmware loaded to the XBee RF module is different depend-
ing on whether the BL4S100/BL4S150 is a router (default), an end device, or a coordi-
nator. See
Appendix F, “Additional Configuration Instructions,”
for information
on how to download firmware to the
BL4S100/BL4S150
to set it up as a coordina-
tor or to resume its original configuration as a router.
There are several macros that may be changed to facilitate your setup. The macros can
be included as part of the program code, or they may be put into the Program Options
“Defines” on the “Defines” tab in the
Options > Program Options
menu.