User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
18Internet protocol transport layer
Page 202 of 308
Parameter Type Description
Valid range is 0-6
<congestion_timer> Number Enhanced Direct Link congestion timer (in milliseconds); valid range is 0, 1000-72000
0; the factory-programmed value is 60000, 0 means trigger disabled
18.23Socket control +USOCTL
+USOCTL
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
18.23.1Description
Allows interaction with the low level socket layer.
18.23.2Syntax
Type Syntax Response Example
Set AT+USOCTL=<socket>,<param_id> +USOCTL: <socket>,<param_id>,
<param_val>[,<param_val2>]
OK
AT+USOCTL=0,2
+USOCTL: 0,2,38
OK
Test AT+USOCTL=? +USOCTL: (list of supported
<socket>s),(list of supported
<param_id>s)
OK
+USOCTL: (0-6),(0-4,10-11)
OK
18.23.3Defined values
Parameter Type Description
<socket> Number Socket identifier. The range goes from 0 to 6.
<param_id> Number Control request identifier. Possible values are:
0: query for socket type
1: query for last socket error
2: get the total amount of bytes sent from the socket
3: get the total amount of bytes received by the socket
4: query for remote peer IP address and port
10: query for TCP socket status (only TCP sockets)
11: query for TCP outgoing unacknowledged data (only TCP sockets)
5-9, 12-99: RFU
<param_val> Number /
String
This value may assume different means depending on the <param_id> parameter.
If <param_id>= 0, <param_val> can assume these values:
6 TCP socket
17: UDP socket
If <param_id>= 1, <param_val> can assume these values:
N: last socket error
If <param_id>= 2, <param_val> can assume these values:
N: the total amount (in bytes) of sent (acknowledged + unacknowledged) data
If <param_id>= 3, <param_val> can assume these values:
N: the total amount (in bytes) of received (read) data
If <param_id>= 4, <param_val> can assume these values:
A string representing the remote peer IP address expressed in dotted decimal form
If <param_id>= 10, <param_val> can assume these values:
0: the socket is in INACTIVE status (it corresponds to CLOSED status defined in
RFC793 "TCP Protocol Specification" [112])
1: the socket is in LISTEN status