User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
19Internet protocol transport layer
Page 211 of 401
19.6Get Socket Option +USOGO
+USOGO
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
19.6.1Description
Retrieves the specified standard option (type of service, local address re-use, linger time, time-to-live, etc) for
the specified socket, like the BSD getsockopt routine.
19.6.2Syntax
Type Syntax Response Example
Set AT+USOGO=<socket>,<level>,<opt_
name>
+USOGO: <opt_val>[,<opt_val2>]
OK
AT+USOGO=0,0,2
+USOGO: 255
OK
Test AT+USOGO=? +USOGO: (list of supported
<socket>s),(list of supported
<level>s)
OK
+USOGO: (0-6),(0,6,65535)
OK
19.6.3Defined values
Parameter Type Description
<socket> Number Socket identifier.
SARA-R4 / SARA-N4 - The range goes from 0 to 6.
<level> Number
0: IP Protocol
<opt_name> for IP protocol level may be:
o 1: type of service
<opt_val>: 8 bit mask that represents the flags of IP TOS. For more
information see the RFC 791 [24]. The range is 0-255. The default value is 0
o 2: time-to-live
<opt_val>: unsigned 8 bit value representing the TTL. The range is 0-255. The
default value is 0.
6: TCP Protocol
<opt_name> for TCP protocol level may be:
o 1: no delay option: do not delay send to coalesce packets
<opt_val>: numeric parameter, it enables/disables the "no delay" option
- 0 (default value): disabled
- 1: enabled
o 2: keepidle option: send keepidle probes when idle for <opt_val> milliseconds
<opt_val>: signed 32 bit number value representing the milliseconds for
"keepidle" option. The range 0-2147483647. The default value is 7200000 (2
hours)
65535: socket
<opt_name> for the socket level options may be:
o 4: local address re-use
<opt_val>: numeric parameter, it configures the "local address re-use" option:
- 0 (default value): disabled
- 1: enabled
o 8: keep connections alive
<opt_val>: numeric parameter, it configures the "keep connections alive"
option:
- 0 (default value): disabled
- 1: enabled
o 32: sending of broadcast messages
<opt_val>: numeric parameter, it configures the "sending of broadcast
messages":
- 1: enabled