I/O support I/O sample data format
Digi XBee® 3 Zigbee® RF Module
170
n Change detect (IC (Digital Change Detection))
l Samples are generated when the state of specified digital input pin(s) change
l Sample data is sent toDH+DLdestination address
l Can be used with line passing
l Requires API mode on receiver
n On-demand sample (IS (Force Sample))
l Immediately query the device’s I/O lines
l Can be issued locally in Command Mode
l Can be issued locally or remotely in API mode
These methods are not mutually exclusive and you can use them in combination with each other.
I/O sample data format
Regardless of how I/O data is generated, the format of the sample data is always represented as a
series of bytes in the following format:
Bytes Name Description
1 Sample
sets
Number of sample sets. There is always one sample set per frame.
2 Digital
channel
mask
Indicates which digital I/O lines have sampling enabled. Each bit corresponds to
one digital I/O line on the device.
bit 0 = DIO0
bit 1 = DIO1
bit 2 = DIO2
bit 3 = DIO3
bit 4 = DIO4
bit 5 = DIO5
bit 6 = DIO6
bit 7 = DIO7
bit 8 = DIO8
bit 9 = DIO9
bit 10 = DIO10
bit 11 = DIO11
bit 12 = DIO12
bit 13 = DIO13
bit 14 = DIO14
bit 15 = N/A
Example: a digital channel mask of 0x002F means DIO0, 1, 2, 3 and 5 are
configured as digital inputs or outputs.