User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
24I
2
C
Page 294 of 401
Type Syntax Response Example
Test AT+UI2CO=? +UI2CO: (list of supported <I2C_
controller_number>s),(list of
supported <bus_mode>s),(list of
supported <bit_rate>),(<device_
address> range),(list of supported
<address_width>s)
OK
+UI2CO: (1),(0-1),(0-1),(0x000-0
x3FF),(0-1)
OK
24.2.3Defined values
Parameter Type Description
<I2C_controller_
number>
Number I
2
C HW controller to use:
1: controller 1
<bus_mode> Number I
2
C bus mode type:
0: Bus Mode Standard (0 - 100 kbaud)
1: Bus Mode Fast (0 - 400 kbaud)
<bit_rate> Number I
2
C bit rate:
0: 100 kb/s
1: 400 kb/s
<device_address> Hex Number Device address in HEX format
<address_width> Number I
2
C size of the controller address:
0: 7 bit address
1: 10 bit address
24.3I
2
C write to peripheral +UI2CW
+UI2CW
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.3.1Description
Writes the HEX data to the I
2
C slave device of the current logical channel. The HEX data formats are without
0x prefix (see example).
24.3.2Syntax
Type Syntax Response Example
Set AT+UI2CW=<hex_data>,<nof_byte_
to_write>
OK AT+UI2CW="0011AABBCCDDEEFF",
8
OK
Test AT+UI2CW=? +UI2CW: (byte to write),(range of
supported <nof_byte_to_write>)
OK
+UI2CW: "data", (1-100)
OK
24.3.3Defined values
Parameter Type Description
<hex_data> String Hex data sequence without prefix 0x, enclosed in double quotes, to be written to the
I
2
C slave device
<nof_bytes_to_
write>
Number Number of byte to write to the slave I
2
C device. Range: 1-100