User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
19Internet protocol transport layer
Page 208 of 401
19.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
19.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.
SARA-R4 / SARA-N4 - The range goes from 0 to 6.
19.3.4Notes
SARA-R4 / SARA-N4
The <local_port> parameter is not supported; a random local port will be used while sending data.
19.4SSL/TLS/DTLS mode configuration on TCP/UDP socket
+USOSEC
+USOSEC
SARA-R410M SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No < 1 s +CME Error
19.4.1Description
Enables or disables the use of SSL/TLS/DTLS connection (where supported) on a TCP/UDP socket. The
configuration of the SSL/TLS/DTLS properties is provided with an SSL/TLS/DTLS 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/DTLS is enabled on the interested socket.
SARA-R410M-01B / SARA-R410M-02B / SARA-R410M-52B / SARA-R412M / SARA-N4
The command is applicable only with TCP sockets.
The enable or disable operation can be performed only after the socket has been created with +USOCR
AT command.
The SSL/TLS/DTLS is supported only with +USOCO command (socket connect command). The SSL/TLS/
DTLS is not supported with +USOLI command (socket set listen command is not supported and the
+USOSEC settings will be ignored).
SARA-R4 / SARA-N4
Issue the command before the +USOCO AT command (socket connect command).