EasyManua.ls Logo

Ublox SARA-R4 Series User Manual

Ublox SARA-R4 Series
307 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #243 background imageLoading...
Page #243 background image
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09
23I
2
C
Page 243 of 307
23I
2
C
23.1Introduction
The I
2
C AT commands support communication with more than one connected device via one of the controllers,
but require opening and closing a logical channel for each connected device. Only one logical channel at a time
can be opened.
The availability and hardware description of the I
2
C interfaces are out of the scope of this document and
are described in a separate document. Refer to the corresponding module System Integration Manual.
The procedure for communicating with two different devices is:
Open the logical channel for device1 (with AT+UI2CO)
Read/write to/from device1 (with AT+UI2CR, AT+UI2CW and +UI2CREGR)
Close the logical channel for device1 (with AT+UI2CC)
Open the logical channel for device2 (with AT+UI2CO)
Read/write to/from device2 (with AT+UI2CR, AT+UI2CW and +UI2CREGR)
Close the logical channel for device2 (with AT+UI2CC)
Once the controller has been configured, it is possible to start I
2
C communication (read/write) with I
2
C slave
peripherals.
The I
2
C controllers available on the u-blox cellular modules module work only in Master Mode so they can
be connected to slave devices only.
In case of a controller/device malfunction, the command's response is only "ERROR".
23.2I
2
C open logical channel +UI2CO
+UI2CO
SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full No No No - +CME Error
23.2.1Description
Changes the hardware and logical configuration of the selected I
2
C controller.
It is only possible to configure the I
2
C controller in Master Mode.
This command selects:
The controller available in the u-blox cellular module
The bus mode type
The bit rate
The address size (7-10 bit address)
The slave device address
Once the selected controller has been configured, a logical channel between it and the selected slave device is
set up and there is no need to further specify it. All the following I
2
C write, read and close commands refer to
the currently opened logical channel. It is not possible to use the I
2
C write, read and open commands for writing
or reading to/from a different slave device without first closing the I
2
C logical channel.
23.2.2Syntax
Type Syntax Response Example
Set AT+UI2CO=<I2C_controller_
number>,<bus_mode>,<bit_rate>,
<device_address>,<address_width>
OK AT+UI2CO=1,0,0,0x42,0
OK
Test AT+UI2CO=? +UI2CO: (list of supported <I2C_
controller_number>s),(list of
+UI2CO: (1),(0-1),(0-1),(0x000-0
x3FF),(0-1)

Table of Contents

Other manuals for Ublox SARA-R4 Series

Question and Answer IconNeed help?

Do you have a question about the Ublox SARA-R4 Series and is the answer not in the manual?

Ublox SARA-R4 Series Specifications

General IconGeneral
Operating Temperature-40°C to +85°C
CategoryCellular Module
TechnologyLTE Cat M1, LTE Cat NB1
Frequency BandsB1, B2, B3, B4, B5, B8, B12, B13, B18, B19, B20, B25, B26, B28, B39
InterfacesUART, USB, I2C, GPIO
ProtocolsTCP/IP, UDP, HTTP, HTTPS, MQTT, LWM2M
SecurityTLS/SSL, DTLS, Secure Boot
CertificationsGCF, PTCRB, CE, FCC, IC

Summary

AT command settings

General operation

2.1 Start up and initialization

Describes the cellular device boot process, SIM card initialization, and potential operational restrictions.

General

Mobile equipment control and status

5.2 Set module functionality +CFUN

Selects the level of functionality for the module, including reset options.

Call control

6.1 Dial command D

Initiates calls (voice, data, fax) and controls supplementary services using dialling strings.

Network service

7.2 Signal quality +CSQ

Returns the Received Signal Strength Indication (RSSI) and signal quality.

7.4 Operator selection +COPS

Forces an attempt to select and register with a network operator, supporting manual or automatic selection.

Security

8.1 Enter PIN +CPIN

Enters the PIN code to unlock the SIM card and manage password states.

Short Messages Service

9.11 Send message +CMGS

Sends a message from DTE to the network (SMS-SUBMIT) and returns a message reference.

V24 control and V25ter

SIM management

11.1 Generic SIM access +CSIM

Allows direct control of the SIM by transmitting commands via MT.

Packet switched data services

13.1 PDP contexts and parameter definition

Defines primary and secondary PDP contexts and their activation procedures.

13.3 PDP context definition +CGDCONT

Defines connection parameters for a PDP context, identified by a local context ID.

System features

14.1 Firmware installation +UFWINSTALL

Triggers the firmware installation procedure, causing a system reset.

14.7 Power Saving Mode Setting +CPSMS

Enables and configures the Power Saving Mode (PSM) parameters on the UE.

GPIO

15.2 GPIO select configuration command +UGPIOC

Configures GPIO pins as input, output, or for custom functions.

Internet protocol transport layer

18.3 Create Socket +USOCR

Creates a socket and associates it with a specified protocol (TCP or UDP).

18.4 SSL/TLS mode configuration on TCP socket +USOSEC

Enables or disables SSL/TLS connection on a TCP socket using USECMNG profiles.

SSL/TLS

19.2 SSL/TLS certificates and private keys manager +USECMNG

Manages X.509 certificates and private keys: import, list, retrieve, and remove.

19.3 SSL/TLS security layer profile manager +USECPRF

Manages security profiles for SSL/TLS connection configuration properties.

FTP

HTTP

GNSS

22.2 GNSS power management +UGPS

Switches the GNSS receiver on/off and configures aiding types for faster TTFF.

MQTT

24.1 MQTT profile configuration +UMQTT

Configures or reads the parameters of an MQTT client profile.

Appendix: Error result codes

A.1 Mobile termination error result codes +CME ERROR

Lists numeric error codes and their descriptions for mobile termination errors.

Related product manuals