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 #193 background imageLoading...
Page #193 background image
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09
18Internet protocol transport layer
Page 193 of 307
reading, either when new data arrives or after a partial read by the user for the socket. This command can also
return the total amount of unread data.
This command can be applied to UDP sockets only, and it can be used to read data after both +UUSORD and
+UUSORF unsolicited indication.
If the HEX mode is enabled (see +UDCONF=1) the received data will be displayed using an hexadecimal
string.
18.13.2Syntax
Type Syntax Response Example
Set AT+USORF=<socket>,<length> +USORF: <socket>,<remote_ip_
addr>,<remote_port>,<length>,
<data in the ASCII [0x00,0xFF]
range>
OK
AT+USORF=3,16
+USORF: 3,"151.9.34.66",2222,16,"16
bytes of data"
OK
Test AT+USORF=? +USORF: (list of supported
<socket>s),(list of supported
<length>s)
OK
+USORF: (0-6),(0-1024)
OK
URC +UUSORF: <socket>,<length> +UUSORF: 3,16
18.13.3Defined values
Parameter Type Description
<socket> Number Socket identifier. The range goes from 0 to 6
<remote_ip_addr> String Remote host IP address. For IP address format reference see the IP addressing.
<remote_port> Number Remote host port, in range 1-65535
<length> Number Number of data bytes to read, in range 0-1024
<data> String Data bytes to be read
18.13.4Notes
Each packet received from the network is stored in a separate buffer and the command is capable to read
only a packet (or e portion of it) at time. This means that if <length> is greater than the packet size, the
command will return a maximum amount of data equal to the packet size, also if there are other packets
in the buffer. The remaining data (i.e. the remaining UDP packets) can be read with further reads.
The returned data may have any kind of ASCII character in the range [0x00,0xFF] i.e. control characters
too. The starting quotation marks shall not be taken into account like data; the first byte of data starts
after the first quotation marks. Then the other characters are provided for a <length> amount. At the
end of the length byte stream, another quotation marks followed by <CR><LF> are provided for user
convenience and visualization purposes. An application should rely on the <length> info to count the
received number of characters (after the starting quotation marks) especially if any protocol control
characters are expected.
If an application deals with letter and number characters only i.e. all of the expected characters are
outside the [0x00, 0x1F] range and are not quotation marks, the AT+USORD response quotation marks
can be assumed to identify the start and the end of the received data packet, anyway the <length> field
usage to identify the valid data stream is recommended.
When <length>= 0, the command returns the total amount of data present in the network buffer.
Example: 23 unread bytes in the socket
AT+USORF=3,0
+USORF: 3,23
OK
If the HEX mode is enabled, the length of <data> will be 2 times <length>.

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