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
9Short Messages Service
Page 77 of 308
Type Syntax Response Example
AT+CMGL[=<stat>] +CMGL: <index>,<stat>,[<alpha>],
<length>
<pdu>
[+CMGL: <index>,<stat>,[<alpha>],
<length>]
<pdu> [...]
+CMGL: 305,1,,57 079193432900
1185440ED0D637396C7EBBCB0
000909092708024802A050
003000303DEA0584CE60
205D974791994769BDF3A90
DB759687E9F534FD0DA2C9603419
OK
Test AT+CMGL=? +CMGL: (list of supported <stat>s)
OK
+CMGL: ("REC UNREAD","REC
READ","STO UNSENT","STO SENT",
"ALL")
OK
9.10.3Defined values
Parameter Type Description
<stat> Number or
String
Number type in PDU mode (default value: 4), or string type in text mode (default
value: "ALL"); indicates the status of message in memory:
• 0: in PDU mode or "REC UNREAD" in text mode: received unread SMS messages
• 1: in PDU mode or "REC READ" in text mode: received read SMS messages
• 2: in PDU mode or "STO UNSENT" in text mode: stored unsent SMS messages
• 3: in PDU mode or "STO SENT" in text mode: stored sent SMS messages
• 4: in PDU mode or "ALL" in text mode: all SMS messages
<index> Number Storage position
<oa> String Originator address
<alpha> String Alphanumeric representation of <da> or <oa> corresponding to the entry found in the
phonebook 3GPP TS 24.008 [12]. The parameter is not managed.
<scts> String Service center time stamp in time-string format; see the <dt> parameter
<tooa> Number Type of address of <oa> - octet
<length> Number Two meanings:
• in text mode: number of characters
• in PDU mode: PDU's length in octets without the Service Center's address. In
example 039121430100038166F6000004E374F80D: this is a PDU with Service
Center's number +1234, that generates the address 03912143 (4 octets). Thus in
this case <length> = 13.
<data> String This is the TP-User-Data in text mode; the decoding depends on the DCS (Data
Coding Scheme) and the FO (First Octect) of the SMS header 3GPP TS 23.040 [8];
format:
• if DCS indicates that 3GPP TS 23.038 [7] GSM 7 bit default alphabet is used and FO
indicates that 3GPP TS 23.040 [8] TP-User-Data-Header-Indication is not set:
o if TE character set other than "HEX" (see the +CSCS AT command description):
ME/TA converts GSM alphabet into current TE character set according to rules
of Annex A
o if TE character set is "HEX": ME/TA converts each 7-bit character of GSM
7 bit default alphabet into two IRA character long hexadecimal number (e.g.
character Æ (GSM 7 bit default alphabet 28) is presented as 1C (IRA 49 and 67))
• if DCS indicates that 8-bit or UCS2 data coding scheme is used, or FO indicates that
3GPP TS 23.040 [8] TP-User-Data-Header-Indication is set: ME/TA converts each
8-bit octet into two IRA character long hexadecimal number (e.g. octet with integer
value 42 is presented to TE as two characters 2A (IRA 50 and 65))
In the case of CBS: 3GPP TS 23.041 [9] CBM Content of Message in text mode
responses; format:
• if DCS indicates that 3GPP TS 23.038 [7] GSM 7 bit default alphabet is used:
o if TE character set other than "HEX" (see the +CSCS AT command description):
ME/TA converts GSM alphabet into current TE character set according to rules
of Annex A
o if TE character set is "HEX": ME/TA converts each 7-bit character of the GSM 7
bit default alphabet into two IRA character long hexadecimal number
if DCS indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each
8-bit octet into two IRA character long hexadecimal number
<da> String Destination address
<toda> Number Type of address of <da> - octet