Digi XBee 3 ZigBee User Manual page 296

Rf module
Table of Contents

Advertisement

Frame descriptions
Frame data fields Offset Description
Analog channel
mask
Digital samples (if
included)
Analog samples (if
included)
Example
In this example, the device receives an I/O sample with analog and digital input from a remove device
with a 64-bit serial number of 0x0013A20040522BAA and a 16-bit address of 0x7D84.
Given this frame, the following information is known about the I/O lines of the module that sent the
sample frame:
Digital Channel Mask:
0x1C = 11100b (DIO2, DIO3, DIO4 are configured as digital input or output)
Digital Sample:
0x14 = 10100b (DIO2 and DIO4 are high, DIO3 is low)
Analog Channel Mask:
0x02 = 0010b (AD1 is configured as an analog input)
Analog Sample:
0x0225 = 549 = (549 * 1.25) / 1023 = 670 mV
Frame fields
Start delimiter
Length
Frame type
Digi XBee® 3 Zigbee® RF Module
Bitmask field that indicates which analog I/O lines on the remote have
18
sampling enabled, if any.
bit 0 = AD0/DIO0
bit 1 = AD1/DIO1
bit 2 = AD2/DIO2
bit 3 = AD3/DIO3
bit 7 = Supply Voltage (enabled with V+ command)
If the sample set includes any digital I/O lines (Digital channel mask >
19-20
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.
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 and will optionally include supply voltage
if enabled with the V+ command.
I/O Data Sample Rx Indicator frame - 0x92
Offset
Example
0
0x7E
MSB 1
0x00
LSB 2
0x14
3
0x92
296

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?

Table of Contents