User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
24I
2
C
Page 295 of 401
24.4I
2
C read from peripheral +UI2CR
+UI2CR
SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Modules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
24.4.1Description
Reads <nof_bytes_to_read> of data from the I
2
C slave device of the current logical channel and prints them in
HEX format in separate rows.
24.4.2Syntax
Type Syntax Response Example
Read AT+UI2CR=<nof_bytes_to_read> +UI2CR: <index_1>: <byte_1>
[+UI2CR: <index_n>: <byte_n>
[..]]
OK
AT+UI2CR=3
+UI2CR: 0: 0xA3
+UI2CR: 1: 0x0F
+UI2CR: 2: 0xDB
OK
Test AT+UI2CR=? +UI2CR: (list of supported <nof_
byte_to_read>s)
OK
+UI2CR: (1-100)
OK
24.4.3Defined values
Parameter Type Description
<nof_bytes_to_read> Number Number of bytes to read from the slave I
2
C device:
SARA-R4 / SARA-N4 - The range goes from 1 to 87.
<index1>,...,<index_
n>
Number Index of the byte being printed.
<byte_1>,...,<byte_n> Number n-th byte of the data, in hex mode (unquoted, prefixed by 0x).
24.5I
2
C read from peripheral register +UI2CREGR
+UI2CREGR
SARA-R410M-02B SARA-R410M-52B SARA-R410M-63B SARA-R410M-73B SARA-R410M-83B
SARA-R412M
Modules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
24.5.1Description
Reads <nof_bytes_to_read> of data from the slave register of the I
2
C slave device of the current logical channel
and prints them in HEX format in separate rows.
24.5.2Syntax
Type Syntax Response Example
Read AT+UI2CREGR=<register_address>,
<nof_bytes_to_read>
+UI2CREGR: <index_1>: <byte_1>
[+UI2CREGR: <index_n>: <byte_n>
[..]]
OK
AT+UI2CREGR=0x42,3
+UI2CREGR: 0: 0xA3
+UI2CREGR: 1: 0x0F
+UI2CREGR: 2: 0xDB
OK