XBeeāPROĀ®ī ±900HP/XBeeāPROĀ®ī ±XSCī ±RFī ±Modules
Ā©ī ±2014ī ±Digiī ±Internationalī ±Inc. ī ±ī ±ī ±ī ±ī ±109
ī ±XBeeāPROī ±XSCī ±RFī ±Moduleī ±Configuration
XBee Programming Examples
For information about entering and exiting AT and Binary Command Modes, refer to the Command Mode
section.
AT Commands
To Send AT Commands (Using the āTerminalā tab of the X-CTU Software)
Note: When using X-CTU Software to program a module, PC com port settings must match the baud
(interface data rate), parity & stop bits parameter settings of the module. Use the 'Com Port Setup'
section of the āPC Settingsā tab to configure PC com port settings to match those of the module.
Binary Commands
To Send Binary Commands
Note: CTS is de-asserted high when commands are being executed. Hardware flow control must be
disabled as CTS will hold off parameter bytes.
Example: Utilize the 'Terminal' tab of the X-CTU Software to change the module's DT (Destina-
tion Address) parameter and save the new address to non-volatile memory. This example
requires the installation of Digiās X-CTU Software and a serial connection to a PC.
Select the āTerminalā tab of the X-CTU Software and enter the following command lines:
Method 1 (One line per command)
Send AT Commandļ
+++ļ
ATDT <Enter>ļ
ATDT1A0D <Enter>ļ
ATWR <Enter>ļ
ATCN <Enter>
System Responseļ
OK <CR> (Enter into Command Mode)ļ
{current value} <CR> (Read Destination Address)ļ
OK <CR> (Modify Destination Address)ļ
OK <CR> (Write to non-volatile memory)ļ
OK <CR> (Exit Command Mode)
Method 2 (Multiple commands on one line)
Send AT Commandļ
+++ļ
ATDT <Enter>ļ
ATDT1A0D,WR,CN <Enter>
System Responseļ
OK <CR> (Enter into Command Mode)ļ
{current value} <CR> (Read Destination Address)ļ
OK <CR> (Execute commands)
Example: Use binary commands to change the XBee module's destination address to 0x1A0D
and save the new address to non-volatile memory.
1. RT Command must be set to ā1ā in AT Command Mode to enable binary programming.
2. Assert CMD (Pin 16 is driven high). (Enter Binary Command Mode)
3. Send Bytes (parameter bytes must be 2 bytes long):
00ļ
0Dļ
1Aļ
08
(Send DT (Destination Address) Command)ļ
(Least significant byte of parameter bytesļ
(Most significant byte of parameter bytes)ļ
(Send WR (Write) Command)
4. De-assert CMD (Pin 16 is driven
low)
(Exit Binary Command Mode)
Note:ī ±Doī ±notī ±sendī ±comā
mandsī ±toī ±theī ±moduleī ±
duringī ±flashī ±programā
mingī ±(whenī ±parametersī ±
areī ±beingī ±writtenī ±toī ±theī ±
moduleī ±registry).ī ±ī ±
Waitī ±forī ±theī ±āOKāī ±sysā
temī ±responseī ±thatī ±folā
lowsī ±theī ±ATWRī ±
commandī ±beforeī ±enterā
ingī ±theī ±nextī ±commandī ±
orī ±useī ±flowī ±control.