User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
19Internet protocol transport layer
Page 209 of 401
19.4.2Syntax
Type Syntax Response Example
Set AT+USOSEC=<socket>,<ssl_tls_
dtls_status>[,<usecmng_profile_
id>]
OK AT+USOSEC=0,1,1
OK
Read AT+USOSEC=<socket> +USOSEC: <socket>,<ssl_tls_dtls_
status>[,<usecmng_profile_id>]
OK
AT+USOSEC=0
+USOSEC: 0,1,1
OK
Test AT+USOSEC=? +USOSEC: (list of supported
<socket>s),(list of supported <ssl_
tls_dtls_status>s),(list of supported
<usecmng_profile_id>s)
OK
+USOSEC: (0-6),(0,1),(0-4)
OK
19.4.3Defined values
Parameter Type Description
<socket> Number Socket identifier defined by the AT+USOCR command.
SARA-R4 / SARA-N4 - The range goes from 0 to 6.
<ssl_tls_dtls_
status>
Number
0 (default value): disable the SSL/TLS/DTLS on the socket.
1: enable the socket security; a USECMNG profile can be specified with the
<usecmng_profile_id> parameter.
<usecmng_profile_
id>
Number Defines the USECMNG profile which specifies the SSL/TLS/DTLS properties to be
used for the SSL/TLS/DTLS connection. The range goes from 0 to 4. If no profile is set
a default USECMNG profile is used (see USECMNG section).
19.5Set socket option +USOSO
+USOSO
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
19.5.1Description
Sets the specified standard option (type of service, local address re-use, linger time, time-to-live, etc.) for the
specified socket, like the BSD setsockopt routine.
Issue a set command to set each parameter.
19.5.2Syntax
Type Syntax Response Example
Set AT+USOSO=<socket>,<level>,<opt_
name>,<opt_val>[,<opt_val2>]
OK AT+USOSO=2,6,1,1
OK
Test AT+USOSO=? +USOSO: (list of supported
<socket>s),(list of supported
<level>s)
OK
+USOSO: (0-6),(0,6,65535)
OK
19.5.3Defined values
Parameter Type Description
<socket> Number Socket identifier.
SARA-R4 / SARA-N4 - The range goes from 0 to 6.
<level> Number Allowed values:
0: IP protocol
<opt_name> for IP protocol level may be:
o 1: type of service (TOS)