AT commands
I/O sampling commands
Digi XBee® 3 802.15.4 RF Module User Guide
165
Parameter range
0, 0x14 - 0xFF (x 10 ms)
Default
0
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 (I/O Sample)
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
for more information on using this command and examples.
Standard I/O capability
If
is set to
2
, the XBee 3 802.15.4 RF Module's
IS
I/O options are
(DIO0/ADC0/Commissioning Configuration)
-
D8 (DIO8/DTR/SLP_Request Configuration)
and four
analog channels: AD0/DIO0 - AD3/DIO3.
When operating in Transparent mode (
=
0
and
=
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 XBee 3 802.15.4 RF Module's
IS
I/O options are
(DIO0/ADC0/Commissioning Configuration)
-
D9 (DIO9/ON_SLEEP Configuration)
and
(DIO10/RSSI/PWM0 Configuration)
-
P4 (DIO14/UART_DIN Configuration)
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)