Modes Transparent and API operating modes
XBee®/XBee-PRO SX RF Module User Guide
32
Transparent and API operating modes
The firmware operates in several different modes. Two top-level modes establish how the device
communicates with other devices through its serial interface: Transparent operating mode and API
operating mode.
Transparent operating mode
Devices operate in this mode by default. The device acts as a serial line replacement when it is in
Transparent operating mode. The device queues all UART data it receives through the DIN pin for RF
transmission. When a device receives RF data, it sends the data out through the DOUT pin. You can set
the configuration parameters using the AT Command interface.
While operating in Transparent operating mode, the device uses the DH and DL parameters to
determine the destination address used for RF transmissions. Transparent operating mode is not
available when using the SPI interface.
API operating mode
API operating mode is an alternative to Transparent mode. API mode is a frame-based protocol that
allows you to direct data on a packet basis. It can be particularly useful in large networks where you
need control over the operation of the radio network or when you need to know which node a data
packet is from. The device communicates UART or SPI data in packets, also known as API frames. This
mode allows for structured communications with serial devices. It is helpful in managing larger
networks and is more appropriate for performing tasks such as collecting data from multiple locations
or controlling multiple devices remotely.
For more information, see API frame specifications.
Comparing Transparent and API modes
The XBee/XBee-PRO SX RF Module can use its serial connection in two ways:Transparent mode or API
operating mode. You can use a mixture of devices running API mode and transparent mode in a
network.
The following table compares the advantages of transparent and API modes of operation:
Feature Description
Transparent mode features
Simple interface All received serial data is transmitted unless the device is in Command
mode
Easy to support It is easier for an application to support Transparent operation and
Command mode
API mode features
Easy to manage data
transmissions to
multiple destinations
Transmitting RF data to multiple remote devices only requires the
application to change the address in the API frame. This process is much
faster than in Transparent mode where the application must enter
Command mode, change the address, exit Command mode, and then
transmit data.