User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
Send Command
Expected Response
ATWR<enter>
OK<CR>
To reset the module to the factory settings, use the ATRE command:
Send Command
Expected Response
ATRE<enter>
OK<CR>
Note that like the other commands, the reset will not be permanent unless you follow it with the
ATWR command.
Here are some of the more useful parameters for configuring your XBee module.
Command
Description
Valid Values
Default Value
ID
The network ID of the
XBee module.
0 - 0xFFFF
3332
CH
The channel of the
XBee module.
0x0B - 0x1A
0X0C
SH and SL
The serial number of
the XBee module (SH
gives the high 32 bits,
SL the low 32 bits).
Read-only.
0 0xFFFFFFFF
(for both SH and SL)
different for each
module
MY
The 16-bit address of
the module.
0 - 0xFFFF
0
DH and DL
The destination
address for wireless
communication (DH is
the high 32 bits, DL
the low 32).
0 0xFFFFFFFF
(for both DH and DL)
0 (for both DH and DL)
BD
The baud rate used
for serial
communication with
the Arduino board or
computer.
0 (1200 bps)
1 (2400 bps)
2 (4800 bps)
3 (9600 bps)
4 (19200 bps)
5 (38400 bps)
6 (57600 bps)
7 (115200 bps)
3 (9600 baud)
Note: although the valid and default values in the table above are written with a prefix of "0x" (to
indicate that they are hexadecimal numbers), the module will not include the "0x" when
reporting the value of a parameter, and you should omit it when setting values.
Here are a couple more useful commands for configuring the Xbee module (you'll need to
prepend AT to these too).
Command
Description
RE
Restore factory default settings (note that like
parameter changes, this is not permanent
unless followed by the WR command).