AO (API Output Options)

This command applies to the XBee 3 802.15.4 RF Module.

Configure the serial output and legacy I/O sampling options for received API frames. This parameter is only applicable when the device is operating in API mode (AP = 1 or 2). AO also affects how I/O samples are gathered and transmitted. For detailed information on how I/O sampling is handled, see Legacy support.

For new designs, we recommend AO = 0. This provides API compatibility with DigiMesh and Zigbee applications and allows for all 15 I/O lines to be sampled (D0 through P4). Incoming serial data packets will be emitted as Transmit Request - 0x10. All outgoing I/O samples will be sent as I/O Sample Indicator - 0x92.

When AO is set to 2, I/O samples are transmitted in a legacy format that are compatible with legacy S1 and S2C 802.15.4 XBee devcies. As a result, only 9 I/O lines are available (D0 through D8) for sampling. Incoming data packets will be emitted as either 0x81 or 0x82 frames depending on the addressing scheme of the sender. All outgoing I/O samples will be sent as 0x82 or 0x83 frames depending on the addressing scheme of the sender.

Parameter range

0 - 2

Parameter Description
0 API Rx Indicator - 0x90, this is for standard data frames.
1 API Explicit Rx Indicator - 0x91, this is for Explicit Addressing data frames.
2

Legacy 802.15.4 API Indicator - 0x80/0x81. Also restricts the Digital Input sampling to D0 through D8 and allows for OTA compatibility with legacy S1 and S2C devices.

Default

2