© 2014 Digi International Inc. 38
XBee/XBee-PRO
®
DigiMesh 2.4 User Manual
See the command table for more information. Enable the Pullup resistors for each digital input by
using the PR command.
1 Sample Sets Number of sample sets in the packet. (Always set to 1.)
2
Digital
Channel Mask
Indicates which digital IO lines have sampling enabled.
Each bit corresponds to one digital IO line on the
module.
bit 0 = AD0/DIO0
bit 1 = AD1/DIO1
bit 2 = AD2/DIO2
bit 3 = AD3/DIO3
bit 4 = DIO4
bit 5 = ASSOC/DIO5
bit 6 = RTS/DIO6
bit 7 = CTS/GPIO7
bit 8 = DTR / SLEEP_RQ / DIO8
bit 9 = ON_SLEEP / DIO9
bit 10 = RSSI/DIO10
bit 11 = PWM/DIO11
bit 12 = CD/DIO12
For example, a digital channel mask of 0x002F means
DIO0,1,2,3, and 5 are enabled as digital IO.
1
Analog
Channel Mask
Indicates which lines have analog inputs enabled for
sampling. Each bit in the analog channel mask
corresponds to one analog input channel.
bit 0 = AD0/DIO0
bit 1 = AD1/DIO1
bit 2 = AD2/DIO2
bit 3 = AD3/DIO3
bit 4 = AD4/DIO4
bit 5 = ASSOC/AD5/DIO5
Varia
ble
Sampled Data
Set
If any digital IO lines are enabled, the first two bytes of
the data set indicate the state of all enabled digital IO.
Only digital channels that are enabled in the Digital
Channel Mask bytes have any meaning in the sample
set. If no digital IO are enabled on the device, these 2
bytes will be omitted.
Following the digital IO data (if any), each enabled
analog channel will return 2 bytes. The data starts with
AIN0 and continues sequentially for each enabled
analog input channel up to AIN5.