EasyManua.ls Logo

Digi XBee SX 868 - Examples

Digi XBee SX 868
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Frame descriptions I/O Sample Indicator- 0x92
XBee® SX 868 RF Module User Guide
195
Offset Size
Frame
Field Description
bit 3: AD3
bit 7:Supply Voltage (enabled with V+ command)
19 16-bit Digital
samples (if
included)
If the sample set includes any digital I/Olines (Digital channel
mask > 0), this field contain samples for all enabled digital I/O
lines. If no digital lines are configured as inputs or outputs, this
field will be omitted.
DIO lines that do not have sampling enabled return 0. Bits in
this field are arranged the same as they are in the Digital
channel mask field.
22 16-bit
variable
Analog
samples (if
included)
If the sample set includes any analog I/Olines (Analog channel
mask > 0), each enabled analog input returns a 16-bit value
indicating the ADC measurement of that input.
Analog samples are ordered sequentially from AD0 to AD3.
EOF 8-bit Checksum 0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Examples
Each example is written without escapes (AP=1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
I/O sample
A device with the 64-bit address of0013A20012345678is configured to periodically send I/O sample
data to a particular device. The device is configured with DIO3, DIO4, and DIO5 configured as digital
I/O, and AD1 and AD2 configured as an analog input.
The destination will emit the following frame:
7E 00 16 92 00 13 A2 00 12 34 56 78 FF FE C1 01 00 38 06 00 28 02 25 00 F8 E8
Frame
type
64-bit
source
Reserve
d
Rx
option
s
Num
sample
s
Digital
channe
l mask
Analog
channe
l mask
Digital
sample
s
Analog
sampl
e 1
Analog
sampl
e 2
0x92
0x0013A20
0
12345678
0x87AC 0xC1 0x01 0x0038 0x06 0x0028 0x0225 0x00F8
Sampl
e
Unused
ACK
was
sent in
mesh
networ
k
Single
sample
(typical)
b'00
111000
DIO3,
DIO4,
and
DIO5
enabled
b'0110
AD1 and
AD2
enabled
b'00
101000
DIO3
and
DIO5
are
HIGH;
DI04 is
LOW
AD1
data
AD2
data

Table of Contents

Related product manuals