
Extended Socket frames
Extended Socket example: TCP Listener
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
175
Field
Value
Socket ID
0x00
Client Socket ID
0x01
Remote Address
0x0A 0x0A 4A 9D
Remote Port
0x27 0x11
Socket New IPv4 Client frame:
7E 00 09 CC 00 01 0A 0A 4A 9D 27 11 FF
Note
XBee Cellular Cat-1 variants require data to be sent before the connection is presented. Other
variants present the connection as soon as it is made.
Receiving Data from the new socket
After the connection is established, data received from the new socket is contained in a Socket
Receive frame just like any other TCP socket.
Field
Value
Frame type
(Socket Status)
Frame ID
0x01
Socket ID
0x01
Status
0x00
Payload
Hello XBee!
Receive Data indicating data from remote TCP peer:
7E 00 10 CD 00 01 00 48 65 6C 6C 6F 20 58 42 65 65 21 0A 8E
Receive a Socket Status indicating closed connection
You may close the client socket remotely which elicits a Socket Status with a Status of 0x07.
Field
Value
Frame type
(Socket Status)
Socket ID
0x01
Status
0x07 (Connection lost)
Socket Status received from XBee indicating connection lost:
7E 00 03 CF 01 07 28