Frame descriptions I/O Data Sample Rx Indicator frame - 0x92
XBee®-PRO 900HP/XSC RF Modules
152
I/O Data Sample Rx Indicator frame - 0x92
Description
When the modem receives an I/O sample RF packet, it is sent out the UART using this message type
(when AO = 1).
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
format.
Framedatafields Offset Description
Frame type 3 0x92
64-bit source
address
4-11
MSB first, LSB last. The sender's 64-bit address.
16-bit Source
network address
12-13 MSB first, LSB last. The sender's 16-bit address.
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-22 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, to the supply voltage.
Example
In the following example, the device receives an I/O sample from a device with a 64-bit serial number
of 0x0013A20040522BAA.