AT commands I/O sampling commands
Digi XBee3® 802.15.4 RF Module User Guide
116
I/O sampling commands
The following commands configure I/O sampling on an originating device. Any I/O sample generated
by this device is sent to the address specified by DH and DL. You must configure at least one I/O line as
an input or output for a sample to be generated.
IS command
Immediately forces an I/O sample to be generated for the digital and analog I/O lines that are
configured for the local device. If you issue the command to the local device, the sample data is sent
out the local serial interface. If sent remotely, the sample is taken on the destination and the sample
data is returned as an AT Command Response frame - 0x88.
If the device receives ERROR as a response to an IS query, there are no valid I/O lines to sample.
Refer to On-demand sampling for more information on using this command and examples.
Standard I/O capability
If AO command is set to 2, the XBee3 802.15.4 RF Module's IS I/O options are D0 command - D8
command and four analog channels: AD0/DIO0 - AD3/DIO3.
When operating in Transparent mode (APcommand = 0 and AO command = 2), the data is returned in
the following format:
All bytes are converted to ASCII:
number of samples<CR>
AIO/DIO mask (Bits 0 - 8 are digital I/O; Bits 9 - 12 analog channels)<CR>
DIO data<CR> (If DIO lines are enabled)
ADC channel Data<CR> (This will repeat for every enabled ADC channel)
<CR> (end of data noted by extra <CR>)
When operating in API mode (AP = 1), the command immediately returns an OK response. The data
follows in the normal API format for DIO data.
Extended I/O capability
If A0 is set to 0 or 1, the XBee3 802.15.4 RF Module's IS I/O options are D0 command - D9 command
and P0 command - P4 command and four analog channels AD0/DIO0 - AD3/DIO3.
When operating in Transparent mode (AP = 0 and AO = 0, AO = 1), the data is returned in the following
format:
All bytes are converted to ASCII:
number of samples<CR>
DIO mask (Bits 0 - 14 are digital I/O<CR>
AIO mask (Bits 0 - 3 are Analog channels<CR>
DIO data<CR> (If DIO lines are enabled)
ADC channel Data<CR> (This will repeat for every enabled ADC channel)
<CR> (end of data noted by extra <CR>)
When operating in API mode (AP = 1), the command immediately returns an OK response. The data
follows in the normal API format for DIO data.
Parameter range
N/A