User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
20Device and data security
Page 247 of 401
20.3.5Notes
Due to significant memory fingerprint of an SSL/TLS connection, the number of concurrent SSL/TLS
connections is limited. The USECMNG and the underlying SSL/TLS infrastructure allows 4 concurrent SSL/
TLS connections (i.e. 4 HTTPS requests or 2 HTTPS and 2 FTPS request).
20.3.6Local encryption from AT interface +USECDATAENC
+USECDATAENC
Modules SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No < 30 s +CME Error
20.3.6.1Description
Executes the local encryption of the plain data provided by the AT interface. The <payload_length> parameter
defines the data length which will be provided via the AT interface and is limited to 8192 bytes. The stream
of bytes can be entered after the '>' prompt has been provided to the user. The data transfer is terminated
exactly when <payload_length> bytes have been sent. Once the specified number of bytes have been sent, and
the encryption is finished, the AT interface is used to output the encrypted data.
If the <filename> parameter is given then the encrypted data will be written to the file in the file system. If the
file already exists the existing file will be overwritten. If the data transfer over the AT interface is stopped or
paused for some reason, the interface waits 20 s before aborting the data encryption.
A total of a hundred local encryption/decryption sessions are granted for free as trial period, unless the
module has already successfully registered with the security server. If the hundred sessions are used and
the module is not registered with the security server, an error result code is returned when local encryption
or decryption are used.
20.3.6.2Syntax
Type Syntax Response Example
Generic syntax
Set AT+USECDATAENC=<payload_
length>[,<filename>]
>
<unencrypted_data>
<
[+USECDATAENC: <enc_data_
length>,<encrypted_data]
OK
AT+USECDATAENC=512
>
512 bytes of data to be encrypted
<
+USECDATAENC: 512,"512 bytes of
encrypted data"
OK
AT interface syntax
Set AT+USECDATAENC=<payload_
length>
>
<unencrypted_data>
<
+USECDATAENC: <enc_data_
length>,<encrypted_data>
OK
AT+USECDATAENC=512
>
512 bytes of data to be encrypted
<
+USECDATAENC: 512,"512 bytes of
encrypted data"
OK
File system syntax
Set AT+USECDATAENC=<payload_
length>,<filename>
>
<unencrypted_data>
<
OK
AT+USECDATAENC=512,"encfile"
>
512 bytes of data to be encrypted
<
OK
Test AT+USECDATAENC=? +USECDATAENC: (list of supported
<payload_length>s)
OK
+USECDATAENC: (1-8192)
OK