Frame descriptions
I/O Data Sample Rx Indicator frame - 0x92
Digi XBee® 3 802.15.4 RF Module User Guide
227
I/O Data Sample Rx Indicator frame - 0x92
Description
When you enable periodic I/O sampling or digital I/O change detection on a remote device, the UART
of the device that receives the sample data sends this frame out.
Format
The following table provides the contents of the frame. For details on frame structure, see
Frame data fields
Offset Description
Frame type
3
0x92
64-bit source
address
4-11
The sender's 64-bit address.
Reserved
12-13
Reserved.
Receive options
14
Bit field:
0x01 = Packet acknowledged
0x02 = Packet is a broadcast packet
Ignore all other bits
Number of samples 15
The number of sample sets included in the payload. Always set to 1.
Digital channel
mask
16-17
Bitmask field that indicates which digital I/O lines on the remote have
sampling enabled, if any.
Analog channel
mask
18
Bitmask field that indicates which analog I/O lines on the remote
have sampling enabled, if any.
Digital samples (if
included)
19-20
If the sample set includes any digital I/O lines (Digital channel mask >
0), these two bytes contain samples for all enabled digital I/O lines.
DIO lines that do not have sampling enabled return 0. Bits in these
two bytes map the same as they do in the Digital channel mask field.
Analog sample
21-n
If the sample set includes any analog I/O lines (Analog channel mask >
0), each enabled analog input returns a 2-byte value indicating the A/D
measurement of that input. Analog samples are ordered sequentially
from ADO/DIO0 to AD3/DIO3.
Example
In the following example, the device receives an I/O sample from a device with a 64-bit serial number
of 0x0013A20040522BAA.
The configuration of the transmitting device takes a digital sample of a number of digital I/O lines and
an analog sample of AD1. It reads the digital lines to be 0x0014 and the analog sample value is 0x0225.
The complete example frame is:
7E00 1492 0013 A200 4052 2BAA FFFE 0101 001C 0200 1402 25F9