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 #254 background imageLoading...
Page #254 background image
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09
24MQTT
Page 254 of 307
Type Syntax Response Example
MQTT Message
URC +UUMQTTCM: <op_code>,<num_
unread_msgs> [Topic Len: <topic_
length>] [Topic: <topic_name>]
[Len: <msg_length> Qos: <Qos>]
Message: <message_contents>
+UUMQTTCM: 6,1 Topic: "/sensor/
heat/SD/bldg5/DelMarConfRm"
Len: 16 QoS: 0 Message: "16 bytes of
data"
24.5.3Defined values
Parameter Type Description
<op_code> Number MQTT command request. Allowed values:
0: logs out/disconnects from MQTT server. Will message will not be sent
1: logs in/connects to MQTT server
2: publish a message to a specific topic to the MQTT message broker
3: publish a message from a file to a specific topic to the MQTT message broker
4: subscribe to a topic from the MQTT message broker
5: unsubscribe to a topic from the MQTT message broker. This should exactly
match the Topic Filter used during the Subscribe
6: read all unread messages received from MQTT message broker, at the terse/
verbose mode set at the time of message reception
7: sets the terse/verbose format for received messages (i.e. the amount of
information and headers with each received MQTT message)
8: ping the MQTT message broker
<QoS> Number Quality of service:
0 (default value): at most once delivery
1: at least once delivery
2: exactly once delivery
<retain> Number Allowed values:
0 (default value): the message will not be retained at the MQTT server across
disconnects from MQTT client
1: the message will be retained by the MQTT server across disconnects from MQTT
client (until superceded by another message)
<hex_mode> Number Allowed values:
0 (default value): ASCII input for <message_contents>
1: hexidecimal input for <message_contents>
<message_
contents>
String ASCII or hexidecimal data. The starting quotation mark shall not be taken into
account like data. At the end of the byte stream, another quotation mark is provided
for user convenience and visualization purposes.
<mqtt_server> String IP address or URL of MQTT server
<num_unread_
msgs>
Number Indicates the number of unread received messages.
<topic_length> Number Specifies the number of octets in <topic_name>
<topic_name> String Indicates the topic to which the given MQTT message was published
<msg_length> Number Specifies the number of octets in <message_contents>
<reason> Number Result of an MQTT subscribe request:
0: success
128: failure
<MQTT_result> Number Result of an MQTT command request:
0: fail
1: success
<login_result> Number Result of an MQTT login request.
0: connection accepted
1: the server does not support the level of the MQTT protocol requested by the Client
2: the client identifier is correct UTF-8 but not allowed by the Server
3: the network connection has been made but the MQTT service is unavailable
4: the data in the user name or password is malformed
5: the client is not authorized to connect
6-255: reserved for future use

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