I/O support On-demand sampling
Digi XBee® 3 Zigbee® RF Module
172
Output Description
01 One sample set
0C0C 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)
0408 Digital sample data that corresponds with the digital channel mask
0x0408 = 00000100 00001000b = DIO3 and DIO10 are high, DIO2 and DIO11 are low
03D0 Analog sample data for AD0
0124 Analog sample data for AD1
Example: Local AT command in API mode
TheIScommand sent to a local device in API mode would use aAT Command frame - 0x08orAT
Command - Queue Parameter Value frame - 0x09 frame:
7E 00 04 08 53 49 53 08
The device responds with aAT Command Response frame - 0x88 that contains the sample data:
7E 00 0F 88 53 49 53 00 01 0C 0C 03 04 08 03 D0 01 24 68
Output Field Description
7E Start
Delimiter
Indicates the beginning of an API frame
00 0F Length Length of the packet
88 Frame type AT Command response frame
53 Frame ID This ID corresponds to the Frame ID of the 0x08 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)