Api Mode Behavior For Incoming Udp Data; Transparent Mode Behavior For Outgoing Tcp And Tls Connections - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

Socket behavior
When the IP setting is TCP the XBee Smart Modem allows multiple incoming TCP connections on the
port specified by the C0 setting. Any data received on the connection is sent out the XBee Smart
Modem's serial port as a
To send data from the device over the connection, use the
with the corresponding address fields received from the Receive RX frame. In other words:
Take the source address, source port, and destination port fields from the Receive (RX) frame
n
and use those respectively as:
The destination address, destination port, and source port fields for the Transmit (TX) Request
n
frame.
A connection is closed when:
The remote end closes the connection.
n
No data has been sent or received for longer than the socket timeout set by
n
Connection
A Transmit (TX) Request frame is sent with the CLOSE flag set.
n

API mode behavior for incoming UDP data

When the
IP (IP Protocol)
Modem's network port specified by the
serial port as a
Receive (RX) Packet: IPv4 - 0xB0
To send data from the XBee Smart Modem to the remote destination, use the
IPv4 - 0x20
frame with the corresponding address fields received from the Receive RX frame. In other
words take the source address, source port, and destination port fields from the Receive (RX) frame
and use those respectively as the destination address, destination port, and source port fields for the
Transmit (TX) Request frame.
Transparent mode behavior for outgoing TCP and TLS
connections
For Transparent mode, the
Address)
and
DE (Destination port)
(UDP) and outgoing connections (TCP and TLS).
Note
For NB-IoT, TCP support is dependent on the network. Contact your network provider for
details.
To initiate an outgoing TCP or TLS connection to a remote host, send data to the XBee Smart
Modem's serial port. If
was successfully established, otherwise the value of CI indicates why the connection attempt failed.
Any data received over the connection is sent out the XBee Smart Modem's serial port.
A connection is closed when:
The remote end closes the connection.
n
No data has been sent or received for longer than the socket timeout set by
n
Connection
You make and apply a change to the IP, DL, or DE.
n
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
Receive (RX) Packet: IPv4 - 0xB0
Timeout).
setting is UDP, any data sent from a remote host to the XBee Smart
C0 (Source Port)
IP (IP Protocol)
setting specifies the protocol and the
settings specify the destination address used for outgoing data
CI (Protocol/Connection Indication)
Timeout).
API mode behavior for incoming UDP data
frame.
Transmit (TX) Request: IPv4 - 0x20
setting is sent out the XBee Smart Modem's
frame.
reports a value of 0, then the connection
frame
TS (IP Server
Transmit (TX) Request:
DL (Destination
TM (IP Client
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents