XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 34
NOTE: Failure to enter AT Command Mode is most commonly due to baud rate
mismatch. By default, the BD (Baud Rate) parameter = 3 (9600 bps).
To Send AT Commands, send AT commands and parameters using the syntax shown
below:
To read a parameter value stored in the RF module’s register, omit the parameter field.
The preceding example would change the RF module baud rate to 7, which would allow
operation at 115,200bps. To store the new value to non-volatile (long term) memory,
subsequently send the WR (Write) command.
For modified parameter values to persist in the module’s registry after a reset, changes
must be saved to non-volatile memory using the WR (Write) Command. Otherwise,
parameters are restored to previously saved values after the module is reset.
Command Response
When a command is sent to the module, the module will parse and execute the
command. Upon successful execution of a command, the module returns an “OK”
message. If execution of a command results in an error, the module returns an “ERROR”
message.
Applying Command Changes
Any changes made to the configuration command registers through AT commands will
not take effect until the changes are applied. For example, sending the BD command to
change the baud rate will not change the actual baud rate until changes are applied.
Changes can be applied in one of the following ways:
• The AC (Apply Changes) command is issued.
• AT command mode is exited.
To Exit AT Command Mode:
1. Send the ATCN (Exit Command Mode) command (followed by a carriage return).
[OR]
2. If no valid AT Commands are received within the time specified by CT
(Command Mode Timeout) Command, the RF module automatically returns to
Idle Mode.
For an example of programming the RF module using AT Commands and descriptions
of each configurable parameter, please see the Command Reference Table chapter.