
SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
18 Internet protocol transport layer
Page 182 of 307
18.3.2 Syntax
Type
Syntax
Response
Example
Set
AT+USOCR=<protocol>[,<local_
port>]
+USOCR: <socket>
OK
AT+USOCR=17
+USOCR: 2
OK
Test
AT+USOCR=?
+USOCR: (list of supported
<protocol>s),(list of supported
<local_port>s)
OK
+USOCR: (6,17),(1-65535)
OK
18.3.3 Defined values
Parameter
Type
Description
<protocol>
Number
•
6: TCP
•
17: UDP
<local_port>
Number
Local port to be used while sending data. The range goes from 1 to 65535. If the
parameter is omitted it will be set to 0; in this case a random port will be used while
sending data.
<socket>
Number
Socket identifier to be used for any future operation on that socket. The range goes
from 0 to 6.
18.4 SSL/TLS mode configuration on TCP USOSEC
+USOSEC
SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
No
No
No
18.4.1 Description
Enables or disables the use of SSL/TLS connection on a TCP socket. The configuration of the SSL/TLS
properties is provided with an SSL/TLS profile managed by USECMNG.
The <usecmng_profile_id> parameter is listed in the information text response to the read command only if
the SSL/TLS is enabled on the interested socket.
This operation is only available for TCP sockets.
The enable or disable operation can be performed only after the socket has been created with
AT command.
The SSL/TLS is supported only with
command (socket connect command). The SSL/TLS is
not supported with
command (socket set listen command is not supported and the
settings will be ignored).
SARA-R4 / SARA-N4
Issue the command before the
AT command (socket connect command).
18.4.2 Syntax
Type
Syntax
Response
Example
Set
AT+USOSEC=<socket>,<ssl_tls_
status>[,<usecmng_profile_id>]
OK
AT+USOSEC=0,1,1
OK
Read
AT+USOSEC=<socket>
+USOSEC=<socket>,<ssl_tls_
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_status>s),(list of supported
<usecmng_profile_id>s)
+USOSEC: (0-6),(0,1),(0-4)
OK