![Digi S6B Скачать руководство пользователя страница 138](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668138.webp)
API operation
Frame descriptions
XBee Wi-Fi RF Module User Guide
138
RX (Receive) Packet: IPv4 - 0xB0
Description
This frame is used by the XBee Wi-Fi RF Module it receives RF data using the Serial Data service on the
port defined by the
C0
command.
Format
The following table provides the contents of the frame. For details on frame structure, see
Frame data fields Offset Description
Frame type
3
0xB0
IPv4 32-bit source
address
MSB 4
The address in the example below is for a source address of
192.168.0.104
.
5
6
7
16-bit destination
port
MSB 8
Same value as the
C0
command.
LSB 9
16-bit source port
MSB
10
LSB
11
Protocol
MSB
12
0 = UDP
1 = TCP - Protocol use for the transmitted data
Status
13
Reserved
RF data
14
Up to 1400 bytes of data.
This is 8 bytes more than the max size reported by the
NP
command
because no application header is needed.
15
16
17
18
Example
When a device in API mode receives an IPv4 transmission, it produces an RX notification (0xB0) and
sends it out the UART or SPI port. This example is the response to a UDP transmission to IP address
192.168.0.103
with data
Hello
from the source address
192.168.0.104
.