I/O support
I/O sample data format
Digi XBee® 3 802.15.4 RF Module User Guide
93
n
On-demand sample (
)
l
Immediately query the device’s I/O lines
l
Can be issued locally in Command Mode
l
Can be issued locally or remotely in API mode
These methods are not mutually exclusive and you can use them in combination with each other.
I/O sample data format
AO
determines the format of the incoming and outgoing sample data.
By default,
AO
is configured to be compatible with legacy devices and outputs a legacy data format
regardless of where the sample packet came from.
Legacy data format
Regardless of how I/O data is generated, the format of the sample data is always represented as a
series of bytes in the following format which is compatible with the S1 802.15.4 and S2C 802.15.4
devices:
Bytes Name
Description
1
Sample
sets
Number of sample sets. This is determined by
on the
source node.
2
Digital
and
analog
channel
mask
Indicates which
have sampling enabled. Each bit
corresponds to one digital I/O or ADC line on the device.
bit 0 = DIO0
bit 1 = DIO1
bit 2 = DIO2
bit 3 = DIO3
bit 4 = DIO4
bit 5 = DIO5
bit 6 = DIO6
bit 7 = DIO7
bit 8 = DIO8
bit 9 = ADC0
bit 10 = ADC1
bit 11 = ADC2
bit 12 = ADC3
bit 13 = Reserved
bit 14 = Reserved
bit 15 = Reserved
Example: a channel mask of 0x063C means ADC0, ADC1, DIO2, DIO3, and DIO5
are configured as digital inputs or outputs.