I/O support On-demand sampling
Digi XBee® 3 Zigbee® RF Module
173
Output Field Description
01
I/O sample
data
One sample set
0C 0C Digital channel mask, indicates which digital lines are sampled
(0x0C0C = 00001100 00001100b = DIO2, 3, 10, 11)
03 Analog channel mask, indicates which analog lines are sampled
(0x03 = 0000 0011b = AD0, 1)
04 08 Digital sample data that corresponds with the digital channel mask
0x0408 = 00000100 00001000b = DIO3 and DIO10 are high, DIO2 and
DIO11 are low
03 D0 Analog sample data for AD0
01 24 Analog sample data for AD1
68 Checksum Can safely be discarded on received frames
Example: Remote AT command in API mode
TheIScommand sent to a remote device with an address of 0013A200 12345678 uses aRemote AT
Command Request frame - 0x17:
7E 00 0F 17 87 00 13 A2 00 12 34 56 78 FF FE 00 49 53 FF
The sample data from the device is returned in aRemote Command Response frame - 0x97 frame
with the sample data as the parameter value:
7E 00 19 97 87 00 13 A2 00 12 34 56 78 00 00 49 53 00 01 0C 0C 03 04 08 03 FF 03 FF 50
Output Field Description
7E Start
Delimiter
Indicates the beginning of an API frame
00 19 Length Length of the packet
97 Frame type Remote AT Command response frame
87 Frame ID This ID corresponds to the Frame ID of the 0x17 request
0013A200
12345678
64-bit
source
The 64-bit address of the node that responded to the request
0000 16-bit
source
The 16-bit address of the node that responded to the request
49 53 AT
Command
Indicates the AT command that this response corresponds to
0x49 0x53 = IS
00 Status Indicates success or failure of the AT command
00 = OK
if no I/O lines are enabled, this will return 01 (ERROR)