Api Mode Behavior For Outgoing Udp Data; Api Mode Behavior For Incoming Tcp Connections - Digi XB3-C-A2-UT series User Manual

Smart modem
Table of Contents

Advertisement

Socket behavior
If the connection is disconnected at any time, send a Transmit TX Request frame to trigger a new
connection attempt.
To send data over this connection use the
The device sends a
the status of the request. A status of 0 indicates the connection and/or data was successful and a
non-zero value indicates a failure.
Any data received on the connection is sent out the XBee Smart Modem's serial port as a Receive RX
frame.
A connection is closed when:
The remote end closes the connection.
n
No data is sent or received for longer than the socket timeout set by
n
Timeout).
A Transmit TX Request is sent with the CLOSE flag set.
n

API mode behavior for outgoing UDP data

To send a UDP datagram to a remote host, send a
XBee Smart Modem's serial port specifying the destination address and destination port of the
remote host. If you use a source port of 0, the device creates a new socket for the purpose of sending
to the remote host. The XBee Smart Modem supports a finite number of sockets, so if you need to
send to many destinations:
1. The socket must be closed after use.
or
2. You must use the socket specified by the
To use the socket specified by the C0 setting, in the Transmit TX request frame use a source port that
matches the value configured for the C0 setting.
The device sends a
the status of the request. A status of 0 indicates the data was successfully sent out of the device and
a non-zero value indicates a failure.
Any data received on the UDP socket is sent out the XBee Smart Modem's serial port as a
Packet: IPv4 - 0xB0
A UDP socket is closed when:
No data has been sent or received for longer than the socket timeout set by
n
Connection
A transmit TX Request is sent with the CLOSE flag set.
n

API mode behavior for incoming TCP connections

For incoming connections and data in API mode, the XBee Smart Modem uses the
and
IP (IP Protocol)
does not currently support the SSL protocol for incoming connections.
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:
Digi XBee3 Cellular LTE-M Global Smart Modem User Guide
Transmit (TX) Request: IPv4 -
Transmit (TX) Status - 0x89
Transmit (TX) Status - 0x89
frame.
Timeout).
settings to specify the listening port and protocol used. The XBee Smart Modem
Receive (RX) Packet: IPv4 - 0xB0

API mode behavior for outgoing UDP data

0x20.
frame in reply to the Transmit TX Request indicating
Transmit (TX) Request: IPv4 - 0x20
C0 (Source Port)
setting.
frame in reply to the Transmit TX Request to indicate
frame.
Transmit (TX) Request: IPv4 - 0x20
TM (IP Client Connection
frame to the
Receive (RX)
TM (IP Client
C0 (Source Port)
frame
138

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XB3-C-A2-UT series and is the answer not in the manual?

This manual is also suitable for:

Xbee3 cellular lte-m

Table of Contents