XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 78
Transmit (TX) Request: IPv4
Frame Type: 0x20
This frame type utilizes the serial data service. The frame gives greater control to the application
over the IP setting for the data.
Frame Fields Offset Example Description
API Packet
Start
Delimiter
0 0x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
LSB 2 0x11
API Frame
Specific
Data
API Frame
Identifier
3 0x20
Frame ID 4 0x01
Set to a value that will be passed back in the Tx Status frame.
0 disables the Tx Status frame.
IPv4 32 bit
Destination
Address
MSB 5 0xC0
Use 0xFFFFFFFF for broadcast when protocol is UDP. The
address in the example is for a destination of 192.168.0.100
6 0xA8
7 0x00
8 0x64
16 Bit
Destination
Port
MSB 9 0x26
UDP or TCP port number
LSB 10 0x16
16 bit Source
Port
MSB 11 0x26
To send a UDP packet, this must match the port number of
the listening port as specified by C0.
To send a TCP packet on a new connection, this must be 0.
LSB 12 0x16
Protocol 13 0x00 0 = UDP, 1= TCP - Protocol use for the transmitted data
Transmit
Options
Bitfield
14 0x00
Bit field: BIT 1 =
1 - Terminate socket after tx complete
0 - Leave socket open (use TCP timeout).
Ignore bit for UDP packets. All other bits are reserved and
should be 0.
RF Data
15 0x48(‘H’)
Up to 1400 bytes of data
16 0x65(‘e’)
17 0x6C(‘l’)
18 0x6C('l’)
19 0x6F('o')
Checksum 20 0xA6 0xFF minus the 8 bit sum of bytes from offset 3 to this byte.