User Manual
Table Of Contents
- Preface
- Contents
- 1 AT command settings
- 2 General operation
- 3 IPC - Inter Processor Communication
- 4 General
- 4.1 Manufacturer identification +CGMI
- 4.2 Manufacturer identification +GMI
- 4.3 Model identification +CGMM
- 4.4 Model identification +GMM
- 4.5 Firmware version identification +CGMR
- 4.6 Firmware version identification +GMR
- 4.7 IMEI identification +CGSN
- 4.8 IMEI identification +GSN
- 4.9 Identification information I
- 4.10 TE character set configuration +CSCS
- 4.11 International mobile subscriber identification +CIMI
- 4.12 Card identification +CCID
- 4.13 Repeat last command A/
- 5 Mobile equipment control and status
- 6 Call control
- 7 Network service
- 7.1 Subscriber number +CNUM
- 7.2 Signal quality +CSQ
- 7.3 Extended signal quality +CESQ
- 7.4 Operator selection +COPS
- 7.5 Radio Access Technology (RAT) selection +URAT
- 7.6 Network registration status +CREG
- 7.7 Network selection control +PACSP
- 7.8 Channel and network environment description +UCGED
- 7.9 Edit Verizon wireless APN table +VZWAPNE
- 7.10 Read RSRP values +VZWRSRP
- 7.11 Read RSRQ values +VZWRSRQ
- 7.12 eDRX setting +CEDRXS
- 7.13 eDRX read dynamic parameters +CEDRXRDP
- 7.14 Set MNO profile +UMNOPROF
- 7.15 Band selection bitmask +UBANDMASK
- 8 Security
- 9 Short Messages Service
- 9.1 Introduction
- 9.2 Select message service +CSMS
- 9.3 Preferred message storage +CPMS
- 9.4 Preferred message format +CMGF
- 9.5 Save settings +CSAS
- 9.6 Restore settings +CRES
- 9.7 New message indication +CNMI
- 9.8 Read message +CMGR
- 9.9 New message acknowledgement to MT +CNMA
- 9.10 List message +CMGL
- 9.11 Send message +CMGS
- 9.12 Write message to memory +CMGW
- 9.13 Send message from storage +CMSS
- 9.14 Set text mode parameters +CSMP
- 9.15 Delete message +CMGD
- 9.16 Service center address +CSCA
- 9.17 Read concatenated message +UCMGR
- 9.18 List concatenated message +UCMGL
- 9.19 Send concatenated message +UCMGS
- 9.20 Write concatenated message to memory +UCMGW
- 9.21 More messages to send +CMMS
- 9.22 Sending of originating data via the control plane +CSODCP
- 9.23 Terminating data reporting via control plane +CRTDCP
- 10 V24 control and V25ter
- 10.1 Introduction
- 10.2 Circuit 109 behavior &C
- 10.3 Circuit 108/2 behavior &D
- 10.4 DSR override &S
- 10.5 Flow control &K
- 10.6 DTE-DCE character framing +ICF
- 10.7 DTE-DCE local flow control +IFC
- 10.8 Set flow control \Q
- 10.9 UART data rate configuration +IPR
- 10.10 Return to on-line data state O
- 10.11 Escape character S2
- 10.12 Command line termination character S3
- 10.13 Response formatting character S4
- 10.14 Command line editing character S5
- 10.15 Pause before blind dialling S6
- 10.16 Connection completion timeout S7
- 10.17 Command dial modifier time S8
- 10.18 Automatic disconnect delay S10
- 10.19 Escape prompt delay (EPD) S12
- 10.20 Command echo E
- 10.21 Result code suppression Q
- 10.22 DCE response format V
- 10.23 Result code selection and call progress monitoring control X
- 10.24 Reset to default configuration Z
- 10.25 Set to factory defined configuration &F
- 10.26 Display current configuration &V
- 11 SIM management
- 12 SIM toolkit
- 13 Packet switched data services
- 13.1 PDP contexts and parameter definition
- 13.2 PPP LCP handshake behaviour
- 13.3 PDP context definition +CGDCONT
- 13.4 Packet switched data configuration +UPSD
- 13.5 GPRS attach or detach +CGATT
- 13.6 PDP context activate or deactivate +CGACT
- 13.7 Enter PPP state/GPRS dial-up D*
- 13.8 Show PDP address +CGPADDR
- 13.9 GPRS event reporting +CGEREP
- 13.10 GPRS network registration status +CGREG
- 13.11 Manual deactivation of a PDP context H
- 13.12 UE modes of operation for EPS +CEMODE
- 13.13 EPS network registration status +CEREG
- 13.14 Delete non-active PDP contexts +CGDEL
- 13.15 Configure the authentication parameters of a PDP/EPS bearer +UAUTHREQ
- 13.16 PDP IP configuration when roaming +UDCONF=75
- 13.17 Enable/Disable data when roaming +UDCONF=76
- 14 System features
- 14.1 Firmware installation +UFWINSTALL
- 14.2 Firmware update Over AT (FOAT) +UFWUPD
- 14.3 Antenna detection +UANTR
- 14.4 Power saving control (Power SaVing) +UPSV
- 14.5 End user test +UTEST
- 14.6 Internal temperature monitor +UTEMP
- 14.7 Power Saving Mode Setting +CPSMS
- 14.8 Power Saving Mode Assigned Values +UCPSMS
- 14.9 Set LWM2M FOTA URCs +ULWM2MSTAT
- 14.10 Cancel LWM2M FOTA Download +ULWM2M=0
- 14.11 uFOTA configuration +UFOTACONF
- 14.12 Last gasp configuration +ULGASP
- 14.13 LWM2M host device information +UHOSTDEV
- 14.14 RING line configuration +URINGCFG
- 15 GPIO
- 15.1 Introduction
- 15.1.1 GPIO functions
- 15.1.2 GPIO mapping
- 15.1.3 Network status indication
- 15.1.3.1 No service (no network coverage or not registered)
- 15.1.3.2 Registered home network 2G
- 15.1.3.3 Registered home network 3G
- 15.1.3.4 Registered home network Cat NB1
- 15.1.3.5 Registered roaming 2G
- 15.1.3.6 Registered roaming 3G
- 15.1.3.7 Registered roaming Cat NB1
- 15.1.3.8 Data transmission
- 15.1.3.9 Data transmission roaming
- 15.2 GPIO select configuration command +UGPIOC
- 15.3 GPIO read command +UGPIOR
- 15.4 GPIO set command +UGPIOW
- 15.1 Introduction
- 16 File System
- 17 DNS
- 18 Internet protocol transport layer
- 18.1 Introduction
- 18.2 IPv4/IPv6 addressing
- 18.3 Create Socket +USOCR
- 18.4 SSL/TLS mode configuration on TCP socket +USOSEC
- 18.5 Set socket option +USOSO
- 18.6 Get Socket Option +USOGO
- 18.7 Close Socket +USOCL
- 18.8 Get Socket Error +USOER
- 18.9 Connect Socket +USOCO
- 18.10 Write socket data +USOWR
- 18.11 SendTo command (UDP only) +USOST
- 18.12 Read Socket Data +USORD
- 18.13 Receive From command (UDP only) +USORF
- 18.14 Set Listening Socket +USOLI
- 18.15 HEX mode configuration +UDCONF=1
- 18.16 Set socket in Direct Link mode +USODL
- 18.17 UDP Direct Link Packet Size configuration +UDCONF=2
- 18.18 UDP Direct Link Sending timer configuration +UDCONF=3
- 18.19 Timer Trigger configuration for Direct Link +UDCONF=5
- 18.20 Data Length Trigger configuration for Direct Link +UDCONF=6
- 18.21 Character trigger configuration for Direct Link +UDCONF=7
- 18.22 Congestion timer configuration for Direct Link +UDCONF=8
- 18.23 Socket control +USOCTL
- 18.24 Configure Dormant Close Socket Behavior +USOCLCFG
- 19 SSL/TLS
- 20 FTP
- 21 HTTP
- 22 GNSS
- 22.1 NMEA
- 22.2 GNSS power management +UGPS
- 22.3 Assisted GNSS unsolicited indication +UGIND
- 22.4 GNSS profile configuration +UGPRF
- 22.5 Aiding server configuration +UGSRV
- 22.6 GNSS aiding request command +UGAOS
- 22.7 Send of UBX string +UGUBX
- 22.8 GNSS indications timer +UGTMR
- 22.9 Get GNSS time and date +UGZDA
- 22.10 Get GNSS fix data +UGGGA
- 22.11 Get geographic position +UGGLL
- 22.12 Get number of GNSS satellites in view +UGGSV
- 22.13 Get recommended minimum GNSS data +UGRMC
- 22.14 Get course over ground and ground speed +UGVTG
- 22.15 Get satellite information +UGGSA
- 22.16 Ask for localization information +ULOC
- 22.17 Localization information request status unsolicited indication +ULOCIND
- 22.18 GNSS sensor configuration +ULOCGNSS
- 23 I2C
- 24 MQTT
- A Appendix: Error result codes
- B Appendix: AT Commands List
- C Appendix: UDP Direct Link workflow
- D Appendix: Glossary
- Related documents
- Revision history
- Contact
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
18Internet protocol transport layer
Page 190 of 308
socket error use the +USOCTL=1 command. If the error code returned is 11, it means that the queue
is full.
• If the connection is closed by the remote host, the +UUSOCL URC is not sent until all received data is
read using the AT+USORD command. If AT+USOWR command is used in this situation, an error result
code is returned. See also the Notes section about the specific product behaviour
• If the connection is closed by the remote host and binary interface started with AT+USOWR command
is still waiting for data, an error result code is returned indicating that the binary interface was closed.
After the error result code a +UUSOCL URC is reported indicating that the socket was closed.
Some notes about the UDP socket:
• Due to the UDP specific AT commands, it is preferred to use the +USOST command to send data via
UDP socket. This command does not require the usage of +USOCO before sending data.
• If no network signal is available, out going UDP packet may be lost.
The information text response indicates that data has been sent to lower level of protocol stack. This is
not an indication of an acknowledgement received by the remote server the socket is connected to.
18.10.2Syntax
Type Syntax Response Example
Base syntax
Set AT+USOWR=<socket>,<length>,
<data>
+USOWR: <socket>,<length>
OK
AT+USOWR=3,12,"Hello world!"
+USOWR: 3,12
OK
Binary syntax
Set AT+USOWR=<socket>,<length> @<data>
+USOWR: <socket>,<length>
OK
AT+USOWR=3,16
@16 bytes of data
+USOWR: 3,16
OK
Test AT+USOWR=? +USOWR: (list of supported
<socket>s),(list of supported
<length>s),"HEX data"
+USOWR: (list of supported
<socket>s),(list of supported
<length>s),"data"
+USOWR: (list of supported
<socket>s),(list of supported
<length>s)
OK
+USOWR: (0-6),(0-512),"HEX data"
+USOWR: (0-6),(0-1024),"data"
+USOWR: (0-6),(0-1024)
OK
18.10.3Defined values
Parameter Type Description
<socket> Number Socket identifier. The range goes from 0 to 6.
<length> Number Number of data bytes to write:
• Base syntax normal mode: range 1-1024
• Base syntax HEX mode: range 1-512
• Binary extended syntax: range 1-1024
<data> String Data bytes to be written. Not all of the ASCII charset can be used.
18.10.4Notes
• For base syntax:
o The value of <length> and the actual length of <data> must match
• For base syntax HEX mode:
o Only the ASCII characters 0-9, A-F and a-f are allowed.
o The length of the <data> parameter must be two times the <length> parameter.
• For binary syntax: