EasyManua.ls Logo

Ublox SARA-R4 Series - Get Socket Option +USOGO

Ublox SARA-R4 Series
307 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09
18Internet protocol transport layer
Page 184 of 307
Parameter Type Description
<opt_val>: signed 32 bit numeric parameter representing the milliseconds for
"keepidle" option. The range is 0-2147483647. The default value is 7200000 (2
hours)
65535: socket
<opt_name> for 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 "keep connections alive" option.
- 0 (default value): disabled
- 1: enabled
o 32: sending of broadcast messages.
<opt_val>: numeric parameter, it configures "sending of broadcast
messages".
- 0 (default value): disabled
- 1: enabled
o 128: linger on close if data present.
<opt_val>: numeric parameter, it configures the "linger" option.
- 0 (default value): disabled
- 1: enabled
<opt_val2>: signed 16 bit numeric parameter, it sets the linger time, the range
goes from 0 to 32767 in milliseconds. The default value is 0.
o 512: local address and port re-use.
<opt_val>: numeric parameter, it configures the "local address and port re-
use".
- 0 (default value): disabled
- 1: enabled
<opt_name> Number Type and supported content depend on related <level> (details are given above).
<opt_val> Number Type and supported content depend on related <level> (details are given above).
<opt_val2> Number Type and supported content depend on related <level> (details are given above).
18.5.4Notes
SARA-R4 / SARA-N4
<level> 6: TCP protocol, <opt_name> 2: keepidle option, is not supported.
18.6Get Socket Option +USOGO
+USOGO
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
full No No No - TCP/UDP/IP
Error +CME
Error
18.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.
18.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

Table of Contents

Other manuals for Ublox SARA-R4 Series

Related product manuals