
Digi XBee Cellular 3G Global Embedded Modem User Guide 8
Socket behavior
Supported sockets 125
Best practices when using sockets 125
Sockets and Remote Manager 125
Sockets and API mode 125
Socket timeouts 125
Socket limits in API mode 125
Enable incoming TCP sockets in API mode 126
API mode behavior for outgoing TCP and TLS connections 126
API mode behavior for outgoing UDP data 126
API mode behavior for incoming TCP connections 127
API mode behavior for incoming UDP data 127
Transparent mode behavior for outgoing TCP and TLS connections 128
Transparent mode behavior for outgoing UDP data 128
Transparent mode behavior for incoming TCP connections 128
Transparent mode behavior for incoming UDP connections 129
Extended Socket frames
Examples 130
Available Extended Socket frames 131
Extended Socket example: Single HTTP Connection 131
Send a Socket Create frame 131
Receive a Socket Create response 132
Send Socket Connect 132
Receive a Socket Connect Response 132
Receive a Socket Status 133
Send HTTP Request using Socket Send frame 133
Receive TX Status 134
Receive one or more Receive Data frames 134
Receive Socket Status indicating closed connection 135
Extended Socket example: UDP 135
Send a Socket Create frame 135
Receive a Socket Create response 136
Bind local source addres 136
Receive Bind/Listen Response 136
Send to Digi echo server 137
Receive TX Status 137
Receive echoed data 137
Send to Digi time server 138
Receive TX Status 138
Receive daytime value 138
Close the socket 139
Receive close response 139
Extended Socket example: TCPListener 140
Send a Socket Create frame 140
Receive a Socket Create response 140
Designate the socket as a listener 140
Receive a Socket Bind/Listen Response 141
Making a connection to the listener socket 141
Receiving Data from the new socket 142
Receive a Socket Status indicating closed connection 142