EasyManuals Logo
Home>Ublox>Control Unit>SARA-R4 Series

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 #192 background imageLoading...
Page #192 background image
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

18Internet protocol transport layer
Page 192 of 307
If the HEX mode is enabled (refer to AT+UDCONF=1 command) the received data will be displayed using
an hexadecimal string.
18.12.2î™–î™–î™–î™–Syntax
Type Syntax Response Example
Set AT+USORD=<socket>,<length> +USORD: <socket>,<length>,<data
in the ASCII [0x00,0xFF] range>
OK
AT+USORD=3,16
+USORD: 3,16,"16 bytes of data"
OK
URC +UUSORD: <socket>,<length> +UUSORD: 3,16
Test AT+USORD=? +USORD: (list of supported
<socket>s),(list of supported
<length>s)
OK
+USORD: (0-6),(0-1024)
OK
18.12.3î™–î™–î™–î™–Defined values
Parameter Type Description
<socket> Number Socket identifier. The range goes from 0 to 6
<length> Number Number of data bytes
• to read stored in buffer, in range 0-1024 in the set command
• read from buffer, in range 0-1024
• stored in buffer for the URC
<data> String Data bytes to be read
18.12.4î™–î™–î™–î™–Notes
• The returned data may be any ASCII character in the range [0x00,0xFF] i.e. control characters. 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. 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. Always check <length> to
identify the valid data stream.
• If the number of data bytes requested to be read from the buffer is bigger than the number of bytes
stored in the buffer only the available amount of data bytes will be read.
• When <length>= 0, the command returns the total amount of data present in the network buffer.
Example: 23 unread bytes in the socket
AT+USORD=3,0
+USORD: 3,23
OK
• If the HEX mode is enabled, the length of <data> will be 2 times <length>.
18.13î™–î™–î™–î™–Receive From command (UDP only) +USORF
+USORF
SARA-R404M SARA-R410M-01B 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 < 1 s (except
URC)
TCP/UDP/IP
Error +CME
Error
18.13.1î™–î™–î™–î™–Description
Reads the specified amount of data from the specified UDP socket, like the BSD recvfrom routine. The URC
+UUSORF: <socket>,<length> (or also +UUSORD: <socket>,<length>) notifies that new data is available for

Table of Contents

Other manuals for Ublox SARA-R4 Series

Questions and Answers:

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
BrandUblox
ModelSARA-R4 Series
CategoryControl Unit
LanguageEnglish

Related product manuals