Setting Up Sample Programs - RabbitCore RCM4500W User Manual

C-programmable zigbee core module
Table of Contents

Advertisement

6.2.2 Setting up Sample Programs

The sample programs are set up so that the RCM4510W module you are using is a ZigBee end
device, router, or coordinator. Uncomment the line corresponding to the role the RCM4510W will
have once it is running the sample program. The default described in the sample programs is for
the RCM4510W module to be either a router (shown below) or an end device.
// Set XBEE_ROLE to NODE_TYPE_COORD, NODE_TYPE_ROUTER or NODE_TYPE_ENDDEV
//
match your XBee's firmware.
to
#define XBEE_ROLE
NOTE: Remember that the firmware loaded to the XBee RF module is different depending on
whether the RCM4510 W is an end device/router (default) or a coordinator. See
"Additional Configuration Instructions," for information on how to download firmware
to the RCM4510W module to set it up as a coordinator or to resume its original configu-
ration as a router (ZigBee PRO) or an end device/router (ZNet 2.5).
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
Extended PAN ID — the 64-bit network ID.
Defaults to
DEFAULT_PANID
Dynamic C
LIB\Rabbit4000\XBee\
XBEE_API.LIB
to
0x0123456789abcdef
default used on the Digi
If set to
, tells coordinators to "select a
0x00
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"
Channel mask — defaults to 0x1FFE, i.e., all 12 possible channels via the macro in the
Dynamic C
LIB\Rabbit4000\XBee\XBEE_API.LIB
campatibility with the XBee PRO.)
#define DEFAULT_CHANNELS XBEE_DEFAULT_CHANNELS
User's Manual
NODE_TYPE_ROUTER
Options > Program Options
ZB
if set in the
library, otherwise defaults
to match the
®
XBee USB.
menu.
ZNet 2.5
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
library. (Do not use bits 14 and 15 for
Appendix D,
58

Advertisement

Table of Contents
loading

Table of Contents