![Digi S6B Скачать руководство пользователя страница 130](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668130.webp)
API operation
Frame descriptions
XBee Wi-Fi RF Module User Guide
130
I/O Data Sample RX Indicator frame - 0x8F
Description
When the XBee Wi-Fi RF Module receives an I/O sample frame from a remote device, it sends the
sample out the UART or SPI using this frame type. Only devices running API mode are able to receive
I/O samples.
Format
Frame fields
Offset
Description
Frame type
3
0x8F
64-bit source
address
4 - 11
Align IP address to low 32-bits of the field. Set the other bytes to
0
.
The IP address is in hex. The example below uses address
192.168.0.103
.
RSSI in terms of link
margin
12
Receive options
13
None currently defined.
Number of samples
14
Number of sample sets included in the payload. Always set to
1
.
Digital Channel Mask
(see below)
MSB 15 Bitmask field that indicates which digital I/O lines on the remote
have sampling enabled (if any). In the example below, DIO8 is
active.
LSB 16
Analog Channel
Mask
(see below)
17
Bitmask field that indicates which analog I/O lines on the remote
have sampling enabled (if any). The most significant bit signals that
the Vcc value are included in the frame. In the example below,
Analog input 1 and Vcc are active.
Digital Samples (if
included)
MSB 18 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
. The bits
in these 2 bytes map the same as they do in the Digital Channels
Mask field. In the example below, DIO8 has value
0
.
LSB 19
Analog Sample
MSB 20 If the sample set includes any analog input 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 DIO0/AD0 to DIO3/AD3.
LSB 21
Digital Channel bitmask
N/A
N/A
N/A
CD/DIO12 PWM/DIO11 RSSI/DIO10 N/A
N/A
CTS/DIO7 RTS/DIO6 ASSOC/DIO5 DIO4
AD3/DIO3
AD2/DIO2
AD1/DIO1 AD0/DIO0