Digi XBee(R) ANSI C Host Library
xbee_atmode.c File Reference

Code for working with XBee modules in AT command mode instead of API mode. More...

#include "xbee/platform.h"

Detailed Description

Code for working with XBee modules in AT command mode instead of API mode.

For DigiMesh 900 modules, this is necessary when doing firmware updates (even when module is using API-mode firmware).

Note that this mode is not very robust. Once it AT mode, the XBee will return to idle mode after some amount of time (value of CT register * 100ms). If our calculation of that idle time doesn't match the XBee module's, our state machine won't match the actual state. It may be possible to add some extra time on either end of that timeout to be certain, and it's always possible re-enter command mode just to send the command to exit (ATCN) and be sure we're out of it.