© 2014 Digi International Inc. 22
XBee/XBee-PRO
®
DigiMesh 2.4 User Manual
As a general rule, API firmware is recommended when a device:
• Sends RF data to multiple destinations
• Sends remote configuration commands to manage devices in the network
• Receives IO samples from remote devices
• Receives RF data packets from multiple devices, and the application needs to know which
device sent which packet
If the above conditions do not apply (for example, a sensor node, router, or a simple
application), then AT firmware may be suitable. It is acceptable to use a mixture of devices
running API and AT firmware in a network. To learn about implementing API operations, refer to
the API Operation chapter (Chapter 7).
Idle Mode
When not receiving or transmitting data, the RF module is in Idle Mode. During Idle Mode, the
RF module is checking for valid RF data. The module shifts into the other modes of operation
under the following conditions:
• Transmit Mode (Serial data in the serial receive buffer is ready to be packetized)
• Receive Mode (Valid RF data is received through the antenna)
• Command Mode (Command Mode Sequence is issued)
• Sleep Mode (A device is configured for sleep)
Transmit Mode
The RF module will exit Idle Mode and attempt to transmit the data when serial data is received
and is ready for packetization. The destination address determines which node(s) will receive the
data.
If a route is not known, the mesh firmware will perform route discovery to establish a route to
the destination node. If a module with a matching network address is not discovered, the packet
is discarded. The data will be transmitted once a route is established. Route discovery will be
attempted only once per packet.