Quectel EC200T-CN AT Commands Manual V1.0
Quectel EC200T-CN AT Commands Manual V1.0
AT Commands Manual
Rev. EC200T-CN_AT_Commands_Manual_V1.0
Date: 2019-03-01
Status: Released
www.quectel.com
LTE Standard Module Series
EC200T-CN AT Commands Manual
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
GENERAL NOTES
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF
QUECTEL WIRELESS SOLUTIONS CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION
AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT ARE
FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF
DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR
REGISTRATION OF A UTILITY MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2019. All rights reserved.
EC200T-CN_AT_Commands_Manual 1 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
History
Revision Date Author Description
Jensen FANG/
1.0 2019-03-01 Initial
Adolph WANG
EC200T-CN_AT_Commands_Manual 2 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Contents
1 Introduction .......................................................................................................................................... 8
1.1. Scope of the Document ............................................................................................................. 8
1.2. AT Command Syntax ................................................................................................................ 8
1.3. Supported Character Sets ......................................................................................................... 9
1.4. AT Command Interface ............................................................................................................. 9
1.5. Unsolicited Result Code ............................................................................................................ 9
1.6. Turn off Procedure ................................................................................................................... 10
EC200T-CN_AT_Commands_Manual 3 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
EC200T-CN_AT_Commands_Manual 4 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
EC200T-CN_AT_Commands_Manual 5 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
EC200T-CN_AT_Commands_Manual 6 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Table Index
EC200T-CN_AT_Commands_Manual 7 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
1 Introduction
1.1. Scope of the Document
This document presents the AT Commands Set for Quectel cellular engine EC200T-CN.
The “AT” or “at” prefix must be set at the beginning of each command line. To terminate a command line
enter <CR>. Commands are usually followed by a response that includes
“<CR><LF><response><CR><LF>”. Throughout this document, only the responses are presented,
“<CR><LF>” are omitted intentionally.
All these AT commands can be split into three categories syntactically: “basic”, “S parameter”, and
“extended”. They are listed as follows:
Basic syntax
These AT commands have the format of “AT<x><n>”, or “AT&<x><n>”, where “<x>” is the command,
and “<n>” is/are the parameter(s) for that command. An example of this is “ATE<n>”, which tells the DCE
whether received characters should be echoed back to the DTE according to the value of “<n>”. “<n>” is
optional and a default will be used if it is missing.
S parameter syntax
These AT commands have the format of “ATS<n>=<m>”, where “<n>” is the index of the S register to set,
and “<m>” is the value to assign to it.
Extended syntax
These commands can be operated in several modes, as following table:
EC200T-CN_AT_Commands_Manual 8 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Write Command AT+<x>=<…> This command sets the user-definable parameter values.
EC200T-CN AT command interface defaults to the GSM character set. EC200T-CN supports the
following character sets:
GSM format
UCS2
IRA
The character set can be configured and interrogated by using the AT+CSCS command (3GPP TS
27.007) and it is defined in 3GPP TS 27.005. The character set affects transmission and reception of
SMS and SMS Cell Broadcast Messages, as well as the entry and display of phone book entries text field.
EC200T-CN AT command interface includes two USB ports (USB MODEM port and USB AT port) and
one main UART port. The main UART port and two USB ports support AT command communication and
data transfer.
As an Unsolicited Result Code and a report message, URC is not issued as part of the response related
to an executed AT command. URC is issued by EC200T-CN without being requested by the TE and it is
issued automatically when a certain event occurs. Typical events leading to URCs are incoming calls
(RING), received short messages, high/low voltage alarm, high/low temperature alarm, etc.
EC200T-CN_AT_Commands_Manual 9 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
It is recommended to execute AT+QPOWD command to turn off the module, as it is the safest and best
way. This procedure is realized by letting the module log off from the network and allowing the software to
enter into a secure and safe data state before disconnecting the power supply.
After sending AT+QPOWD, do not enter any other AT commands. The module outputs message,
POWERED DOWN and sets the STATUS pin as low to enter into the shutdown state. In order to avoid
data loss, it is suggested to wait for 3s to switch off the VBAT after the STATUS pin is set as low and the
URC POWERED DOWN is outputted. If POWERED DOWN has not been received within 65s, the VBAT
shall be switched off compulsorily.
EC200T-CN_AT_Commands_Manual 10 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
2 General Commands
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
ATI
Quectel
EC200TCN
Revision: EC200TCNDAR01A01M1G
OK
EC200T-CN_AT_Commands_Manual 11 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Maximum Response Time 300ms
Reference
V.25ter
The command returns a product model identification text. It is identical with AT+CGMM.
OK
Maximum Response Time 300ms
Reference
V.25ter
EC200T-CN_AT_Commands_Manual 12 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command delivers a product firmware version identification text. It is identical with AT+CGMR.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
AT+GMR
EC200TCNDAR01A01M1G
OK
EC200T-CN_AT_Commands_Manual 13 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Reference
3GPP TS 27.007
The command returns a product model identification text. It is identical with AT+GMM.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
The command delivers a product firmware version identification text. It is identical with AT+GMR.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
EC200T-CN_AT_Commands_Manual 14 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
The command returns the International Mobile Equipment Identity (IMEI) number of ME. It is identical with
AT+CGSN.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
NOTE
EC200T-CN_AT_Commands_Manual 15 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command returns International Mobile Equipment Identity (IMEI) number of ME. It is identical with
AT+GSN.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
NOTE
EC200T-CN_AT_Commands_Manual 16 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
The command displays the current settings of several AT command parameters, including the
single-letter AT command parameters which are not readable otherwise.
AT&V
&C: 1
&D: 2
&F: 0
&W: 0
E: 1
Q: 0
V: 1
X: 4
Z: 0
S0: 0
S3: 13
S4: 10
S5: 8
S6: 2
S7: 0
S8: 2
S10: 15
OK
EC200T-CN_AT_Commands_Manual 17 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command stores the current AT command settings to a user defined profile in non-volatile memory.
Parameter
The command restores the current AT command settings to the user defined profile in non-volatile
memory, if they were stored with AT&W before. Any additional AT command on the same command line
may be ignored.
Parameter
EC200T-CN_AT_Commands_Manual 18 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command controls whether the result code is transmitted to the TE. Other information text transmitted
as response is not affected.
Parameter
The command determines the contents of header and trailer transmitted with AT command result codes
and information responses.
The result codes, their numeric equivalents and brief descriptions of the use of each are listed in the
following table.
EC200T-CN_AT_Commands_Manual 19 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
Example
ATV1 //Set <value>=1
OK
AT+CSQ
+CSQ: 30,99
EC200T-CN_AT_Commands_Manual 20 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
“@” (Wait for Quiet Answer) dial modifier was used, but
NO ANSWER 8 remote ringing followed by five seconds of silence was not
detected before expiration of the connection timer (S7)
The command controls whether or not the module echoes characters received from TE during AT
command mode.
Parameter
The command repeats previous AT command line, and “/” acts as the line terminating character.
EC200T-CN_AT_Commands_Manual 21 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
ATI
Quectel
EC200TCN
Revision: EC200TCNDAR01A01M1G
OK
A/ //Repeat the previous command
Quectel
EC200TCN
Revision: EC200TCNDAR01A01M1G
OK
The command determines the character recognized by the module to terminate an incoming command
line. It is also generated for result codes and information text, along with character value set via ATS4.
OK
Write Command Response
ATS3=<n> This parameter setting determines the character recognized
by TA to terminate an incoming command line. The TA also
returns this character in output.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
EC200T-CN_AT_Commands_Manual 22 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command determines the character generated by the module for result code and information text,
along with the command line termination character set via ATS3.
OK
Write Command Response
ATS4=<n> This parameter setting determines the character generated
by the TA for result code and information text.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
The command determines the character value used by the module to delete the immediately preceding
character from the AT command line (i.e. equates to backspace key).
OK
Write Command Response
ATS5=<n> This parameter setting determines the character recognized
by TA as a request to delete the immediately preceding
character from the command line.
OK
Maximum Response Time 300ms
EC200T-CN_AT_Commands_Manual 23 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Reference
V.25ter
Parameter
2.21. ATX Set CONNECT Result Code Format and Monitor Call Progress
The command determines whether or not the module transmits particular result codes to the TE. It also
controls whether or not the module verifies the presence of a dial tone when it begins dialing, and whether
or not engaged tone (busy signal) detection is enabled.
ATX Set CONNECT Result Code Format and Monitor Call Progress
Execution Command Response
ATX<value> This parameter setting determines whether or not the TA
detected the presence of dial tone and busy signal and
whether or not TA transmits particular result codes.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<value> 0 CONNECT result code returned only. Dial tone and busy detection are both
disabled
1 CONNECT<text> result code returned only. Dial tone and busy detection are
both disabled
2 CONNECT<text> result code returned. Dial tone detection is enabled, while
busy detection is disabled
3 CONNECT<text> result code returned. Dial tone detection is disabled, while
busy detection is enabled
4 CONNECT<text> result code returned. Dial tone and busy detection are both
enabled
EC200T-CN_AT_Commands_Manual 24 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command controls the functionality level. It can also be used to reset the UE.
OK
Read Command Response
AT+CFUN? +CFUN: <fun>
OK
Write Command Response
AT+CFUN=<fun>[,<rst>] OK
Parameter
Example
AT+CFUN=0 //Switch phone to minimum functionality
OK
AT+COPS?
+COPS: 0 //No operator is registered
EC200T-CN_AT_Commands_Manual 25 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
AT+CPIN?
+CME ERROR: 13 //(U)SIM failure
AT+CFUN=1 //Switch ME to full functionality
OK
+CPIN: READY
+QUSIM: 1
+QIND: PB DONE
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE",7 //Operator is registered
OK
The command controls the format of error result codes: ERROR, error numbers or verbose messages as
+CME ERROR: <err> and +CMS ERROR: <err>.
OK
Read Command Response
AT+CMEE? +CMEE: <n>
OK
Write Command Response
AT+CMEE=<n> TA disables or enables the use of result code +CME ERROR:
EC200T-CN_AT_Commands_Manual 26 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
Example
AT+CMEE=0 //Disable result code
OK
AT+CPIN?
ERROR //Only ERROR will be displayed
AT+CMEE=1 //Enable error result code with numeric values
OK
AT+CPIN?
+CME ERROR: 10
AT+CMEE=2 //Enable error result code with verbose (string)
values
OK
AT+CPIN?
+CME ERROR: SIM not inserted
The Write Command informs the module which character set is used by the TE. This enables the UE to
convert character strings correctly between TE and UE character sets.
OK
Read Command Response
EC200T-CN_AT_Commands_Manual 27 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Write Command Response
AT+CSCS=<chset> Set character set <chset> which is used by the TE. The TA
can then convert character strings correctly between the TE
and ME character sets.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CSCS? //Query the current character set
+CSCS: "GSM"
OK
AT+CSCS="UCS2" //Set the character set to “UCS2”
OK
AT+CSCS?
+CSCS: "UCS2"
OK
OK
EC200T-CN_AT_Commands_Manual 28 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
NOTES
Example
AT+QURCCFG=?
+QURCCFG: "urcport",("usbat","usbmodem","uart1")
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","usbat"
OK
AT+QURCCFG="urcport","usbmodem"
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","usbmodem"
OK
EC200T-CN_AT_Commands_Manual 29 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command controls the behavior of the UE’s DCD (data carrier detection) line.
Parameter
The command determines how the UE responds if DTR line is changed from low to high level during data
mode.
EC200T-CN_AT_Commands_Manual 30 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
V.25ter
Parameter
The command determines the flow control behavior of the serial port.
OK
Read Command Response
AT+IFC? +IFC: <dce_by_dte>,<dte_by_dce>
OK
Write Command Response
AT+IFC=<dce_by_dte>,<dte_by_dce> This parameter setting determines the data flow control on
the serial interface for data mode.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<dce_by_dte> Specifies the method that will be used by TE when receiving data from TA
0 None
2 RTS flow control
<dte_by_dce> Specifies the method that will be used by TA when receiving data from TE
0 None
2 CTS flow control
EC200T-CN_AT_Commands_Manual 31 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
NOTES
1. The value of AT+IFC can be restored with AT&F, ATZ and AT&W.
2. The values of <dce_by_dte> and <dte_by_dce> must be the same.
Example
AT+IFC=2,2 //Open the hardware flow control
OK
AT+IFC?
+IFC: 2,2
OK
The command is used to query and set the baud rate of the UART. The default baud rate value (<rate>) is
115200bps. The setting of <rate> will not be restored with AT&F.
OK
Read Command Response
AT+IPR? +IPR: <rate>
OK
Write Command Response
AT+IPR=<rate> This parameter setting determines the data rate of the TA on
the serial interface. After the delivery of any result code
associated with the current command line, the rate of
command takes effect.
OK
Maximum Response Time 300ms
Reference
V.25ter
EC200T-CN_AT_Commands_Manual 32 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
NOTES
1. If a fixed baud rate is set, make sure that both TE (DTE, usually external processor) and TA (DCE,
Quectel module) are configured to the same rate.
2. The value of AT+IPR cannot be restored with AT&F, ATZ and AT&W.
3. A selected baud rate takes effect after the Write Commands are executed and acknowledged by OK.
Example
AT+IPR=115200 //Set fixed baud rate to 115200bps
OK
AT&W //Store current setting, that is, the serial communication
speed is 115200bps after restarting module
OK
AT+IPR?
+IPR: 115200
OK
AT+IPR=115200;&W //Set fixed baud rate to 115200bps and store current setting
OK
EC200T-CN_AT_Commands_Manual 33 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Execution Command Response
AT+CPAS TA returns the activity status of ME:
+CPAS: <pas>
OK
ERROR
Parameter
<pas> 0 Ready
2 Unknown
3 Ringing
4 Call in progress or call hold*
Example
AT+CPAS
+CPAS: 0 //The module is idle
EC200T-CN_AT_Commands_Manual 34 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
RING
AT+CLCC
+CLCC: 1,1,4,0,0,“15695519173”,161
OK
AT+CPAS
+CPAS: 3 //The module is ringing
OK
AT+CLCC
+CLCC: 1,0,0,0,0,“10010”,129
OK
AT+CPAS
+CPAS: 4 //Call in progress*
OK
NOTE
The command is used to query an extended error and report the cause of the last failed operation, such
as:
The release cause <text> is a text to describe the cause information given by the network.
EC200T-CN_AT_Commands_Manual 35 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
ERROR
Parameter
<text> Release cause text. Reason for the last call failure to setup or release (listed in
Chapter 11.9). Both CS and PS domain call types are reported. Cause data is
captured from Call Manager events and cached locally for later use by this
command.
EC200T-CN_AT_Commands_Manual 36 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Reference
The command specifies the mode to attach GPRS when UE is powered on. The configuration will take
effect immediately.
OK
Parameter
<attachmode> Number format. The mode to attach GRPS when UE is powered on.
0 Manual attach
1 Auto attach
NOTE
This configuration will affect the supported network mode of the module. For example, when setting
<attachmode>=0, LTE mode will be removed if the current network mode includes it, but the mode will
be restored when setting <attachmode>=1.
The command specifies the network mode to be searched. And the configuration will take effect
immediately.
EC200T-CN_AT_Commands_Manual 37 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
NOTE
If the mode conflicts with the current configuration, an error will be returned. For example, if the module is
currently configured as CS only when LTE is set only, it will return an error.
EC200T-CN_AT_Commands_Manual 38 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
ERROR
Parameter
NOTES
1. If the mode is changed, the configuration will take effect immediately. Otherwise, it take effect only
after the module is restarted.
2. If the mode conflicts with the current configuration, an error will be returned. For example, if the
module is currently configured as CS only when LTE is set only, it will return an error.
The command is used to enable or disable the roam service. And the configuration will take effect
immediately.
OK
EC200T-CN_AT_Commands_Manual 39 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
ERROR
Parameter
The command specifies the registered service domain. The configuration will take effect immediately.
OK
Parameter
EC200T-CN_AT_Commands_Manual 40 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
1 PS only
2 CS & PS
NOTE
This configuration will affect the supported network mode of the module. For example, when setting
module as CS, LTE mode will be removed if the current network mode includes it, but the mode will be
restored when setting PS only or both CS&PS.
The command specifies the preferred frequency bands to be searched of UE. The configuration will take
effect immediately.
OK
Parameter
<bandval> A hexadecimal value that specifies the GSM and WCDMA frequency band. If it
is set to 0, it means not to change GSM and WCDMA frequency band. (e.g.:
00000013=00000001(GSM900)+00000002(GSM1800)+00000010(WCDMA
2100))
00000000 No change
00000001 GSM900
00000002 GSM1800
00000010 WCDMA 2100
00000040 WCDMA 850
EC200T-CN_AT_Commands_Manual 41 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
NOTE
If setting a band that is not supported by the module, an error will be returned.
Presented
The command specifies the RI (ring indicator) behavior when other URCs are presented.
OK
EC200T-CN_AT_Commands_Manual 42 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
The command can set the delay time of URC indication from the time that ring indicator pulse starts.
OK
Parameter
<time> Set the delay time of URC indication when ring indicator pulse starts. The value
ranges from 0 to 120ms and the default is 0, which means no delay.
EC200T-CN_AT_Commands_Manual 43 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
NOTE
The configuration of the command will take effect immediately and will be saved after power-off.
Example
AT+QCFG="urc/cache"
+QCFG: "urc/cache",0 //URC cache function is disabled
OK
AT+QCFG="urc/cache",1 //Enable URC cache
OK
AT+QCFG="urc/cache"
+QCFG: "urc/cache",1
OK
EC200T-CN_AT_Commands_Manual 44 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
OK
Write command Response
AT+QINDCFG=<urctype>[,<enable>[,< If <enable> and <savetonvram> are omitted, the current
savetonvram>]] configuration will be returned:
+QINDCFG: <urctype>,<enable>
OK
EC200T-CN_AT_Commands_Manual 45 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
<urctype> URC type
"all" Main switch of all URCs. Default is ON.
"csq" Indication of signal strength and channel bit error rate
change (similar to AT+CSQ). Default is OFF. If this
configuration is ON, present:
+QIND: "csq",<rssi>,<ber>
"datastatus" Indication of data service status. Default is OFF. If this
configuration is ON, present:
+QIND: "datastatus",<suspended>,<reason>
<reason> is number format as below:
0 : SUSPEND_NO_CAUSE
1: SUSPEND_BY_RAU_ATTACH
2: SUSPEND_BY_LAU
3: SUSPEND_BY_TAU
4: SUSPEND_BY_CS_SERVICE
5: SUSPEND_BY_DS_OPERATION
6: SUSPEND_BY_POWERUP
"smsfull" SMS storage full indication. Default is OFF. If this
configuration is ON, present:
+QIND: "smsfull",<storage>
"smsincoming" Incoming message indication. Default is ON.
Related URC list:
+CMTI, +CMT, +CDS
"act" Indication of network access technology change.
Default is OFF. If this configuration is ON, present:
+QIND: "act",<actvalue>
<actvalue> is string format. The values are as below:
“GSM”
“EGPRS”
“WCDMA”
“HSDPA”
“HSUPA”
“HSDPA&HSUPA”
“LTE”
“UNKNOWN”
The examples of URC are as below:
EC200T-CN_AT_Commands_Manual 46 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
+QIND: "act","HSDPA&HSUPA"
+QIND: "act","UNKNOWN"
The description of “act” is as below:
1. If module does not register on network,
<actvalue> would be “UNKNOWN”.
2. If this configuration is ON, the URC of "act" will be
reported immediately. Only when the network
access technology changes, a new URC will be
reported.
<enable> URC indication is ON or OFF
0 OFF
1 ON
<savetonvram> Whether to save configuration into NV. Not saved by default.
0 Not save
1 Save
EC200T-CN_AT_Commands_Manual 47 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command requests the International Mobile Subscriber Identity (IMSI) which is intended to permit the
TE to identify the individual SIM card or active application in the UICC (GSM or USIM) that is attached to
MT.
OK
Parameter
Example
AT+CIMI
460023210226023 //Query IMSI number of (U)SIM which is attached to ME
OK
EC200T-CN_AT_Commands_Manual 48 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command is used to lock, unlock or interrogate a MT or a network facility <fac>. It can be aborted
when network facilities are being set or interrogated. The factory default password of PF, PN, PU, PP and
PC lock is “12341234”.
OK
Write Command Response
AT+CLCK=<fac>,<mode>[,<passwd>[ This command is used to lock, unlock or interrogate the ME or
,<class>]] network facility <fac>. Password is normally needed to do
such actions. When querying the status of network service
(<mode>=2) the response line for ‘not active’ case
(<status>=0) should be returned only if service is not active
for any <class>.
OK
Maximum Response Time 5s
Reference
3GPP TS 27.007
Parameter
<fac> “SC” (U)SIM (lock SIM/UICC card installed in the currently selected card slot)
(SIM/UICC asks password in MT power-up and when this lock command issued).
“AO” BAOC (Bar All Outgoing Calls) (refer to 3GPP TS 22.088 clause 1).
“OI” BOIC (Bar Outgoing International Calls) (refer to 3GPP TS 22.088 clause 1).
“OX” BOIC-exHC (Bar Outgoing International Calls except to Home Country) (refer to
3GPP TS 22.088 clause 1).
“AI” BAIC (Bar All Incoming Calls) (refer to 3GPP TS 22.088 clause 2).
EC200T-CN_AT_Commands_Manual 49 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
“IR” BIC-Roam (Bar Incoming Calls when Roaming outside the home country) (refer
to 3GPP TS 22.088 clause 2).
“AB” All Barring services (refer to 3GPP TS 22.030) (applicable only for <mode>=0).
“AG” All outgoing barring services (refer to 3GPP TS 22.030) (applicable only for
<mode>=0).
“AC” All incoming barring services (refer to 3GPP TS 22.030) (applicable only for
<mode>=0).
“FD” SIM card or active application in the UICC (GSM or USIM) fixed dialing memory
feature (if PIN2 authentication has not been done during the current session,
PIN2 is required as <passwd>).
“PF” Lock Phone to the very first inserted SIM/UICC card (also referred in the present
document as PH-FSIM) (MT asks password when other SIM/UICC cards are
inserted).
“PN” Network Personalization (refer to 3GPP TS 22.022)
“PU” Network Subset Personalization (refer to 3GPP TS 22.022)
“PP” Service Provider Personalization (refer to 3GPP TS 22.022)
“PC” Corporate Personalization (refer to 3GPP TS 22.022)
<mode> 0 Unlock
1 Lock
2 Query status
<passwd> Password
<class> 1 Voice
2 Data
4 FAX
7 All telephony except SMS (Default)
8 Short message service
16 Data circuit synchronization
32 Data circuit asynchronization
<status> 0 Off
1 On
Example
AT+CLCK="SC",2 //Query the status of (U)SIM card
+CLCK: 0 //The (U)SIM card is unlocked (OFF)
OK
AT+CLCK="SC",1,"1234" //Lock (U)SIM card, and the password is 1234
OK
AT+CLCK="SC",2 //Query the status of (U)SIM card
+CLCK: 1 //The (U)SIM card is locked (ON)
OK
AT+CLCK="SC",0,"1234" //Unlock (U)SIM card
EC200T-CN_AT_Commands_Manual 50 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
The command is used to enter a password or query whether or not the module requires a password which
is necessary before it can be operated. The password may be (U)SIM PIN, (U)SIM PUK, PH-SIM PIN,
etc.
OK
Write Command Response
AT+CPIN=<pin>[,<newpin>] TA stores a password, such as (U)SIM PIN, (U)SIM PUK,
etc., which is necessary before it can be operated. If the PIN
is to be entered twice, the TA shall automatically repeat the
PIN. If no PIN request is pending, no action is taken and an
error message +CME ERROR is returned to TE.
Parameter
EC200T-CN_AT_Commands_Manual 51 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
to be given
PH-NETSUB PIN MT is waiting for network subset personalization password to be
given
PH-NETSUB PUK MT is waiting for network subset personalization unblocking
password to be given
PH-SP PIN MT is waiting for service provider personalization password to
be given
PH-SP PUK MT is waiting for service provider personalization unblocking
password to be given
PH-CORP PIN MT is waiting for corporate personalization password to be
given
PH-CORP PUK MT is waiting for corporate personalization unblocking
password to be given
<pin> String type. Password. If the requested password was a PUK, such as (U)SIM PUK1,
PH-FSIM PUK or another passwords, then <pin> must be followed by <newpin>.
<newpin> String type. New password required if the requested code was a PUK.
Example
//Enter PIN
AT+CPIN?
+CPIN: SIM PIN //Queried PIN code is locked
OK
AT+CPIN=1234 //Enter PIN
OK
+CPIN: READY
AT+CPIN? //PIN has already been entered
+CPIN: READY
OK
AT+CPIN?
+CPIN: SIM PUK //Queried PUK code is locked
OK
AT+CPIN="26601934","1234" //Enter PUK and new PIN password
OK
+CPIN: READY
AT+CPIN?
+CPIN: READY //PUK has already been entered
EC200T-CN_AT_Commands_Manual 52 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
The command sets a new password for the facility lock function defined by AT+CLCK.
OK
Write Command Response
AT+CPWD=<fac>,<oldpwd>,<newpw TA sets a new password for the facility lock function.
d>
OK
Maximum Response Time 5s
Reference
3GPP TS 27.007
Parameter
<fac> “SC” (U)SIM (lock SIM/UICC card) (SIM/UICC asks password in MT power-up and
when this lock command is issued)
“AO” BAOC (Bar All Outgoing Calls, refer to 3GPP TS 22.088 clause 1)
“OI” BOIC (Bar Outgoing International Calls, refer to 3GPP TS 22.088 clause 1)
“OX” BOIC-exHC (Bar Outgoing International Calls except to Home Country, refer to
3GPP TS 22.088 clause 1)
“AI” BAIC (Bar All Incoming Calls, refer to 3GPP TS 22.088 clause 2)
“IR” BIC-Roam (Bar Incoming Calls when Roaming outside the home country, refer
to 3GPP TS 22.088 clause 2)
“AB” All barring services (refer to 3GPP TS 22.030, applicable only for <mode>=0)
“AG” All outgoing barring services (refer to 3GPP TS 22.030, applicable only for
<mode>=0)
“AC All incoming barring services (refer to 3GPP TS 22.030, applicable only for
<mode>=0)
“P2” (U)SIM PIN2
<pwdlength> Integer type. Maximum length of password.
<oldpwd> Password specified for the facility from the user interface or with command.
EC200T-CN_AT_Commands_Manual 53 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CPIN?
+CPIN: READY
OK
AT+CPWD="SC","1234","4321" //Change (U)SIM card password to “4321”
OK
OK
AT+CPIN="4321" //PIN must be entered to define a new password “4321”
OK
+CPIN: READY
The command allows a direct control of the (U)SIM that is installed in the currently selected card slot by a
distant application on the TE. The TE shall then keep the processing of (U)SIM information within the
frame specified by GSM/UMTS.
OK
ERROR
EC200T-CN_AT_Commands_Manual 54 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
3GPP TS 27.007
Parameter
The command offers easy and limited access to the (U)SIM database. It transmits the (U)SIM command
number <command> and its required parameters to the MT.
Parameter
EC200T-CN_AT_Commands_Manual 55 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
<fileId> Integer type. Identifier for an elementary data file on (U)SIM, if used by
<command>.
<P1>, <P2>, <P3> Integer type. Parameters transferred by the MT to the (U)SIM. These
parameters are mandatory for every command, except GET RESPONSE and
STATUS. The values are described in 3GPP TS 51.011.
<data> Information which shall be written to the (U)SIM (hexadecimal character
format; refer to AT+CSCS).
<pathId> The directory path of an elementary file on a UICC in hexadecimal format.
<sw1>, <sw2> Integer type. Information from the (U)SIM about the execution of the actual
command. These parameters are delivered to the TE in both cases, on
successful or failed execution of the command.
<response> Response of a successful completion of the command previously issued
(hexadecimal character format; refer to AT+CSCS). STATUS and GET
RESPONSE return data, which gives information about the current
elementary data field. The information includes the type of file and its size
(refer to 3GPP TS 51.011). After READ BINARY, READ RECORD or
RETRIEVE DATA command, the requested data will be returned.
<response> is not returned after a successful UPDATE BINARY, UPDATE
RECORD or SET DATA command.
The command returns the ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card.
OK
ERROR
Maximum Response Time 300ms
Parameter
<iccid> ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card
EC200T-CN_AT_Commands_Manual 56 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+QCCID //Query ICCID of the (U)SIM card
+QCCID: 89860025128306012474
OK
The command can query the number of attempts left to enter the password of (U)SIM PIN/PUK.
OK
Read Command Response
AT+QPINC? +QPINC: "SC",<pincounter>,<pukcounter>
+QPINC: "P2",<pincounter>,<pukcounter>
OK
Write Command Response
AT+QPINC=<facility> +QPINC: <facility>,<pincounter>,<pukcounter>
OK
ERROR
Parameter
EC200T-CN_AT_Commands_Manual 57 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Execution Command Response
AT+QINISTAT +QINISTAT: <status>
OK
Maximum Response Time 300ms
Parameter
<status> Initialization status of (U)SIM card. Actual value is the sum of several of the following four
kinds (e.g. 7=1+2+4 means CPIN READY & SMS DONE & PB DONE).
0 Initial state
1 CPIN READY. Operation like lock/unlock PIN is allowed
2 SMS initialization completed
4 Phonebook initialization completed
The command enables (U)SIM card hot-swap function. (U)SIM card is detected by GPIO interrupt. The
level of (U)SIM card detection pin should also be set when the (U)SIM card is inserted.
OK
Read Command Response
AT+QSIMDET? +QSIMDET: <enable>,<insertlevel>
OK
Write Command Response
EC200T-CN_AT_Commands_Manual 58 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
AT+QSIMDET=<enable>,<insertlevel> OK
ERROR
Maximum Response Time 300ms
Parameter
NOTES
1. Hot-swap function is invalid if the configured value of <insertlevel> is inconsistent with hardware
design.
2. Hot-swap function takes effect after the module is restarted.
Example
AT+QSIMDET=1,0 //Set (U)SIM card detection pin level as low when (U)SIM card is
inserted
OK
<Remove (U)SIM card>
+CPIN: NOT READY
<Insert (U)SIM card>
+CPIN: READY //If PIN1 of the (U)SIM card is unlocked
The command queries (U)SIM card insertion status or determines whether (U)SIM card insertion status
report is enabled. The configuration of this command can be saved by AT&W.
OK
EC200T-CN_AT_Commands_Manual 59 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Write Command Response
AT+QSIMSTAT=<enable> OK
ERROR
Maximum Response Time 300ms
Parameter
<enable> Enable or disable (U)SIM card insertion status report. If it is enabled, when (U)SIM
card is removed or inserted, the URC +QSIMSTAT: <enable>,<insertedstatus>
will be reported.
0 Disable
1 Enable
<insertedstatus> (U)SIM card is inserted or removed. This parameter is not allowed to be set.
0 Removed
1 Inserted
2 Unknown, before (U)SIM initialization
Example
AT+QSIMSTAT? //Query (U)SIM card insertion status
+QSIMSTAT: 0,1
OK
AT+QSIMDET=1,0
OK
AT+QSIMSTAT=1 //Enable (U)SIM card insertion status report
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,1
OK
<Remove (U)SIM card>
+QSIMSTAT : 1,0 //Report of (U)SIM card insertion status, removed
OK
EC200T-CN_AT_Commands_Manual 60 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
+CPIN: READY
EC200T-CN_AT_Commands_Manual 61 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command returns the current operators and their status, and allows setting automatic or manual
network selection.
OK
OK
EC200T-CN_AT_Commands_Manual 62 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
<stat> 0 Unknown
1 Operator available
2 Current operator
3 Operator forbidden
<oper> Operator in format as per <mode>
<mode> 0 Automatic mode. <oper> field is ignored
1 Manual operator selection. <oper> field shall be present and <Act> optionally
2 Manually deregister from network
3 Set only <format> (for AT+COPS? Read Command), and do not attempt
registration/deregistration (<oper> and <Act> fields are ignored). This value is
invalid in the response of Read Command.
4 Manual/automatic selection. <oper> field shall be presented. If manual selection
fails, automatic mode (<mode>=0) is entered
<format> 0 Long format alphanumeric <oper> which can be up to 16 characters long
1 Short format alphanumeric <oper>
2 Numeric <oper>. GSM location area identification number
<Act> Access technology selected. Values 3, 4, 5 and 6 occur only in the response of Read
Command while MS is in data service state and is not intended for the AT+COPS Write
Command.
0 GSM
2 UTRAN
3 GSM W/EGPRS
4 UTRAN W/HSDPA
5 UTRAN W/HSUPA
6 UTRAN W/HSDPA and HSUPA
7 E-UTRAN
8 UTRAN HSPA+
EC200T-CN_AT_Commands_Manual 63 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+COPS=? //List all current network operators
+COPS:
(1,"CHN-UNICOM","UNICOM","46001",2),(1,"CHN-UNICOM","UNICOM","46001",0),(2,"CHN-UNICO
M","UNICOM","46001",7),(1, "CHN-CT", "CT","46011",7),(3,"CHINA
MOBILE","CMCC","46000",0),,(0,1,2,3,4),(0,1,2)
OK
AT+COPS? //Query the currently selected network operator
+COPS: 0,0,“CHN-UNICOM”,7
OK
The Read Command returns the network registration status. The Write Command sets whether or not to
present URC.
OK
Read Command Response
AT+CREG? TA returns the status of result code presentation and an
integer <stat> which shows whether the network has
currently indicated the registration of the ME. Location
information elements <lac> and <ci> are returned only when
<n>=2 and ME is registered on the network.
+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
EC200T-CN_AT_Commands_Manual 64 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Reference
3GPP TS 27.007
Parameter
Example
AT+CREG=1
OK
+CREG: 1,“D509”,”80D413D”,7 //URC reports that operator has found location area code
and cell ID
EC200T-CN_AT_Commands_Manual 65 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command indicates the received signal strength <rssi> and the channel bit error rate <ber>.
OK
Execution Command Response
AT+CSQ The Execution Command returns received signal strength
indication <rssi> and channel bit error rate <ber> from the
ME.
+CSQ: <rssi>,<ber>
OK
+CME ERROR: <err>
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
EC200T-CN_AT_Commands_Manual 66 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CSQ=?
+CSQ: (0-31,99),(0-7,99)
OK
AT+CSQ
+CSQ: 28,99 //The current signal strength indication is 28 and channel bit error rate is 99
OK
NOTE
After using network related commands such as AT+CCWA and AT+CCFC, it is recommended to wait for
3s before entering AT+CSQ so as to ensure that any network access required for the preceding
command has been finished.
OK
Read Command Response
AT+CPOL? Query the list of preferred operators:
+CPOL:
<index>,<format>,<oper>[,<GSM>,<GSM_compact,<UTR
AN>,<E-UTRAN>]
<index>,<format>,<oper>[,<GSM>,<GSM_compact,<UTR
AN>,<E-UTRAN>]
[…]
OK
Write Command Response
AT+CPOL=<index>[,<format>[,<oper Edit the list of preferred operators:
>[<GSM>,<GSM_compact>,<UTRAN>
,<E-UTRAN>]]] OK
ERROR
EC200T-CN_AT_Commands_Manual 67 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
<index> Integer type. The order number of operator in the (U)SIM preferred operator list
<format> 0 Long format alphanumeric <oper>
1 Short format alphanumeric <oper>
2 Numeric <oper>
<oper> String type. <format> indicates the format is alphanumeric or numeric (see
AT+COPS)
<GSM> GSM access technology
0 Access technology is not selected
1 Access technology is selected
<GSM_compact> GSM compact access technology
0 Access technology is not selected
1 Access technology is selected
<UTRAN> UTRAN access technology
0 Access technology is not selected
1 Access technology is selected
<E-UTRAN> E-UTRAN access technology
0 Access technology is not selected
1 Access technology is selected
NOTE
The access technology selection parameters <GSM>, <GSM_compact>, <UTRAN> and <E-UTRAN>
are required for SIM cards or UICC’s containing PLMN selector with access technology.
EC200T-CN_AT_Commands_Manual 68 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command returns the list of operator names from the ME. Each operator code <numericn> that has
an alphanumeric equivalent <alphan> in the ME memory is returned.
OK
+CME ERROR: <err>
Maximum Response Time Depends on the number of operator names.
Reference
3GPP TS 27.007
Parameter
The Write Command enables and disables automatic time zone update via NITZ. The configuration is
AT+CTZU Automatic Time Zone Update
stored to NV automatically.
Test Command Response
AT+CTZU=? +CTZU: (0,1,3)
OK
Write Command Response
AT+CTZU=<onoff> OK
ERROR
Read Command Response
AT+CTZU? +CTZU: <onoff>
EC200T-CN_AT_Commands_Manual 69 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CTZU?
+CTZU: 1
OK
AT+CTZU=?
+CTZU: (0,1,3)
OK
AT+CTZU=0
OK
AT+CTZU?
+CTZU: 1
OK
The command controls the time zone reporting of changed event. If reporting is enabled, the MT returns
the unsolicited result code +CTZV: <tz> or +CTZE: <tz>,<dst>,<time> whenever the time zone is
changed. The configuration is stored to NV automatically.
OK
EC200T-CN_AT_Commands_Manual 70 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CTZR=2
OK
AT+CTZR?
+CTZR: 2
EC200T-CN_AT_Commands_Manual 71 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
The command is used to obtain the latest time synchronized through network.
OK
Write Command Response
AT+QLTS=<mode> +QLTS: <time>,<dst>
OK
ERROR
Parameter
<mode> Query network time mode
0 Query the latest time that has been synchronized through network
1 Query the current GMT time calculated from the latest time that has been
synchronized through network
2 Query the current LOCAL time calculated from the latest time that has been
synchronized through network
<time> String type value. Format is "yy/MM/dd,hh:mm:ss±zz", where characters indicate year (two
last digits), month, day, hour, minutes, seconds and time zone (indicates the difference,
expressed in quarters of an hour, between the local time and GMT; range -48...+48). E.g.
6th of May 2004, 22:10:00 GMT+2 hours equals to “04/05/06,22:10:00+08”
<dst> Daylight saving time.
EC200T-CN_AT_Commands_Manual 72 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
NOTE
If the time has not been synchronized through network, the command will return a null time string:
+QLTS: ""
Example
AT+QLTS=? //Query supported network time modes
+QLTS: (0-2)
OK
AT+QLTS //Query the latest time synchronized through network
+QLTS: "2019/01/13,03:40:48+32,0"
OK
AT+QLTS=0 //Query the latest time synchronized through network. It offers the same
function as Execution Command AT+QLTS.
+QLTS: "2019/01/13,03:40:48+32,0"
OK
AT+QLTS=1 //Query the current GMT time calculated from the latest time that has been
synchronized through network
+QLTS: "2019/01/13,03:41:22+32,0"
OK
AT+QLTS=2 //Query the current LOCAL time calculated from the latest time that has been
synchronized through network
+QLTS: "2019/01/13,11:41:23+32,0"
OK
The command indicates network information such as access technology selected, the operator and the
band selected.
EC200T-CN_AT_Commands_Manual 73 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
Example
AT+QNWINFO=?
OK
AT+QNWINFO
+QNWINFO: "FDD LTE",46001,"LTE BAND 3",1650
OK
EC200T-CN_AT_Commands_Manual 74 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
7 Phonebook Commands
7.1. AT+CNUM Subscriber Number
The command can get the subscribers own number(s) from the (U)SIM.
OK
ERROR
Parameter
<alpha> Optional alphanumeric string associated with <number>. The used character set
should be the one selected with AT+CSCS command
<number> String type phone number of format specified by <type>
<type> Type of address of octet in integer format (Refer to 3GPP TS 24.008 subclause
10.5.4.7 for details ). Usually, it has three kinds of values:
129 Unknown type
145 International type (contains the character “+”)
161 National type
EC200T-CN_AT_Commands_Manual 75 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command can search the phonebook entries starting with the given <findtext> string from the current
phonebook memory storage selected with AT+CPBS, and return all found entries sorted in alphanumeric
order.
OK
Write Command Response
AT+CPBF=<findtext> [+CPBF: <index>,<number>,<type>,<text>]
[…]
OK
ERROR
Parameter
EC200T-CN_AT_Commands_Manual 76 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command can return phonebook entries in location number range <index1>... <index2> from the
current phonebook memory storage selected with AT+CPBS. If <index2> is left out, only location
<index1> is returned.
OK
Write Command Response
AT+CPBR=<index1>[,<index2>] +CPBR: <index1>,<number>,<type>,<text>
[+CPBR: <index2>,<number>,<type>,<text>
[…]]
OK
ERROR
Parameter
<index> Integer type value in the range of location numbers of phone book memory.
<nlength> Integer type. Indicates the maximum length of field <number>.
<tlength> Integer type. Indicates the maximum length of field <text>.
<index1> The first phone book record to read
<index2> The last phonebook record to read
<type> Type of address of octet in integer format (refer to 3GPP TS 24.008 subclause
10.5.4.7 for details ). Usually, it has three kinds of values:
129 Unknown type
145 International type(contains the character “+”)
161 National type
<text> String type field of maximum length <tlength> in current TE character set specified by
AT+CSCS.
EC200T-CN_AT_Commands_Manual 77 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command selects phonebook memory storage, which is used by other phonebook commands. The
Read Command returns currently selected memory, the number of used locations and the total number of
locations in the memory when supported by manufacturer. The Test Command returns supported
storages as compound value.
OK
ERROR
OK
ERROR
Parameter
EC200T-CN_AT_Commands_Manual 78 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command writes phonebook entry in location number <index> in the current phonebook memory
storage selected with AT+CPBS. It can also delete a phonebook entry in location number <index>.
OK
ERROR
Parameter
<index> Integer type value in the range of location numbers of phone book memory. If <index>
is not given, the first free entry will be used. If <index> is given as the only parameter,
the phonebook entry specified by <location> is deleted.
<nlength> Integer type. Indicates the maximum length of field <number>.
<tlength> Integer type. Indicates the maximum length of field <text>.
<type> Type of address of octet in integer format (refer to 3GPP TS 24.008 subclause
EC200T-CN_AT_Commands_Manual 79 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CSCS=“GSM”
OK
AT+CPBW=10,“15021012496”,129,“QUECTEL”
OK //Make a new phonebook entry at location 10
AT+CPBW=10 //Delete entry at location 10
OK
AT+CPBR=10
OK
EC200T-CN_AT_Commands_Manual 80 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command selects messaging service <service> and returns the types of messages supported by the
ME.
OK
Read Command Response
AT+CSMS? +CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command Response
AT+CSMS=<service> +CSMS: <mt>,<mo>,<bm>
OK
Parameter
EC200T-CN_AT_Commands_Manual 81 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CSMS=? //Test command
+CSMS: (0,1)
OK
AT+CSMS=1 //Set type of message service as 1
+CSMS: 1,1,1
OK
AT+CSMS? //Read command
+CSMS: 1,1,1,1
OK
The command specifies the input and output format of the short messages. <mode> indicates the format
of messages used with Test, Read, Write and Execution Commands and unsolicited result codes
resulting from received messages.
The format of messages can be either PDU mode (entire TP data units used) or text mode (headers and
body of the messages given as separate parameters). Text mode uses the value of parameter <chset>
specified by AT+CSCS command to inform the character set to be used in the message body in the
TA-TE interface.
EC200T-CN_AT_Commands_Manual 82 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
OK
Write Command Response
AT+CMGF[=<mode>] TA sets parameter to denote which kind of I/O format of
messages is used.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.005
Parameter
The Write Command updates the SMSC address when mobile originated SMS are transmitted. In text
mode, the setting is used by Write Command. In PDU mode, setting is used by the same command, but
only when the length of the SMSC address is coded into the <pdu> parameter which equals to zero.
OK
Write Command Response
AT+CSCA=<sca>[,<tosca>] OK
EC200T-CN_AT_Commands_Manual 83 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
Example
AT+CSCA=“+8613800210500”,145 //Set SMS service center address
OK
AT+CSCA? //Query SMS service center address
+CSCA: “+8613800210500”,145
OK
The command selects the memory storages <mem1>, <mem2> and <mem3> to be used for reading,
writing, etc.
OK
Read Command Response
AT+CPMS? +CPMS:
<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<m
em3>,<used3>,<total3>
OK
Write Command Response
AT+CPMS=<mem1>[,<mem2>[,<mem TA selects memory storages <mem1>, <mem2> and
3>]] <mem3> to be used for reading, writing, etc.
+CPMS:
<used1>,<total1>,<used2>,<total2>,<used3>,<total3>
OK
EC200T-CN_AT_Commands_Manual 84 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Parameter
Example
AT+CPMS=“SM”,“SM”,“SM” //Set SMS message storage as “SM”
+CPMS: 0,50,0,50,0,50
OK
AT+CPMS? //Query the current SMS message storage
+CPMS: “SM”,0,50,“SM”,0,50,“SM”,0,50
OK
The command deletes short messages from the preferred message storage <mem1> location <index>. If
<delflag> is presented and not set to 0, then the ME shall ignore <index> and follow the rules of
<delflag> shown as below.
EC200T-CN_AT_Commands_Manual 85 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Write Command Response
AT+CMGD=<index>[,<delflag>] TA deletes message from preferred message storage
<mem1> location <index>.
OK
Parameter
<index> Integer type value in the range of location numbers supported by the associated memory.
<delflag> 0 Delete the message specified in <index>
1 Delete all read messages from <mem1> storage
2 Delete all read messages from <mem1> storage and sent mobile originated
messages
3 Delete all read messages, sent and unsent mobile originated messages from
<mem1> storage
4 Delete all messages from <mem1> storage
<mem1> Messages to be read and deleted from this memory storage
“SM” (U)SIM message storage
“ME” Mobile equipment message storage
“MT” Same as “ME” storage
Example
AT+CMGD=1 //Delete the message specified in <index>=1
OK
AT+CMGD=1,4 //Delete all messages from <mem1> storage
OK
EC200T-CN_AT_Commands_Manual 86 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The Read Command returns messages with status value <stat> from preferred message storage
<mem1> to the TE. If the status of the message is “REC UNREAD”, the status in the storage changes to
“REC READ”. When executing command AT+CMGL without status value <stat>, it will report the list of
SMS with “REC UNREAD” status.
OK
Write Command Response
AT+CMGL[=<stat>] If in text mode (AT+CMGF=1) and the command is executed
successfully:
For SMS-SUBMITs and/or SMS-DELIVERs:
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<
length>]<CR><LF><data>[<CR><LF>
+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<
length>]<CR><LF><data>[...]]
For SMS-STATUS-REPORTs:
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st
>[<CR><LF>
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st
>[...]]
For SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
OK
EC200T-CN_AT_Commands_Manual 87 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
EC200T-CN_AT_Commands_Manual 88 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
string format. BCD numbers (or GSM 7 bit default alphabet characters) are converted
to characters of the currently selected TE character set (refer to AT+CSCS command
in 3GPP TS 27.007). The type of address is given by <tooa>.
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry
found in MT phonebook. Implementation of this feature is manufacturer specified. The
used character set should be the one selected with AT+CSCS command (see
definition of this command in 3GPP TS 27.007).
<scts> Service center time stamp. 3GPP TS 23.040 TP-Service-Centre-Time-Stamp in
time-string format (refer to <dt>).
<toda> Type of recipient address. 3GPP TS 24.011 TP-Recipient-Address Type-of-Address
octet in integer format.
<tooa> Type of originating address. 3GPP TS 24.011 TP-Originating-Address
Type-of-Address octet in integer format (default refer to <toda>).
<length> Message length. Integer type. Indicating in the text mode (AT+CMGF=1) the length
of the message body <data> (or <cdata>) in characters, or in PDU mode
(AT+CMGF=0) the length of the actual TP data unit in octets (i.e. the RP layer SMSC
address octets are not counted in the length).
<data> In the case of SMS: 3GPP TS 23.040 TP-User-Data in text mode responses; format:
- If <dcs>, indicates that 3GPP TS 23.038 GSM 7 bit default alphabet is used and
<fo> indicates that 3GPP TS 23.040 TP-User-Data-Header-Indication is not set.
- If TE character set other than “HEX” (refer to AT+CSCS command in 3GPP TS
27.007): ME/TA converts GSM alphabet into current TE character set according to
rules of Annex A in 3GPP TS 27.007.
- 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 23) is presented as 17 (IRA 49 and 55)).
- If <dcs>, indicates that 8-bit or UCS2 data coding scheme is used, or <fo>
indicates that 3GPP TS 23.040 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 CBM Content of Message in text mode
responses; format:
- If <dcs>, indicates that 3GPP TS 23.038 GSM 7 bit default alphabet is used:
- If TE character set other than “HEX” (refer to AT+CSCS command in 3GPP
TS27.007): ME/TA converts GSM alphabet into current TE character set according
to rules of Annex A in 3GPP TS 27.007.
- 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.
<pdu> In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.040 TPDU
in hexadecimal format: ME/TA converts each octet of TP data unit into two IRA
character long hexadecimal number (e.g. octet with integer value 42 is presented to
EC200T-CN_AT_Commands_Manual 89 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CMGL=“ALL” //List all messages from message storage
+CMGL: 1,“STO UNSENT”,“”,,
<This is a test from Quectel>
+CMGL: 2,“STO UNSENT”,“”,,
<This is a test from Quectel>
OK
The Read Command returns SMS message with location value <index> from message storage <mem1>
to the TE. If status of the message is “REC UNREAD”, status in the storage changes to “REC READ”.
OK
For SMS-SUBMIT:
+CMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],<
EC200T-CN_AT_Commands_Manual 90 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
sca>,<tosca>,<length>]<CR><LF><data>
OK
For SMS-STATUS-REPORTs:
+CMGR:
<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
For SMS-COMMANDs:
+CMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><
CR><LF><cdata>]
OK
For CBM storage:
+CMGR:
<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><dat
a>
OK
OK
Parameter
<index> Integer type value in the range of location numbers supported by the associated
memory
<stat> In text mode
“REC UNREAD” Received unread messages
“REC READ” Received read messages
“STO UNSENT” Stored unsent messages
EC200T-CN_AT_Commands_Manual 91 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
EC200T-CN_AT_Commands_Manual 92 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
EC200T-CN_AT_Commands_Manual 93 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
+CMTI: “SM”,3 //Indicates that new message has been received and saved
to <index>=3 of “SM”
AT+CSDH=1
OK
AT+CMGR=3 //Read message
+CMGR: “REC UNREAD”,“+8615021012496”,,“18/12/15,15:06:37+32”,145,4,0,0,“+861380021050
0”,145,27
OK
The Write Command sends a short message from TE to network (SMS-SUBMIT). After invoking the Write
Command, wait for the prompt “>” and then start to write the message. After that, enter <CTRL-Z> to
indicate the ending of PDU and begin to send the message. Sending can be cancelled by giving <ESC>
character. Abortion is acknowledged with “OK”, though the message will not be sent. The message
reference <mr> is returned to the TE on successful message delivery. The value can be used to identify
message upon unsolicited delivery status report result code.
EC200T-CN_AT_Commands_Manual 94 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
OK
Parameter
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CSCS=“GSM” //Set character set as GSM which is used by the TE
OK
AT+CMGS=“15021012496”
> <This is a test from Quectel> //Enter in text. Use <CTRL+Z> to send message, or
<ESC> to quit without sending
+CMGS: 247
OK
EC200T-CN_AT_Commands_Manual 95 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The command controls the continuity of the SMS relay protocol link. If the feature is enabled (and
supported by the currently used network) multiple messages can be sent faster as the link is kept open.
OK
Read Command Response
AT+CMMS? +CMMS: <n>
OK
Write Command Response
AT+CMMS=<n> OK
ERROR
Parameter
NOTE
After the use of Read Command, a delay of 5-10 seconds is required before issuing the Write Command.
Otherwise +CMS ERROR: 500 may appear.
EC200T-CN_AT_Commands_Manual 96 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The Write and Execution Commands store short messages from TE to memory storage <mem2>, and
then the memory location <index> of the stored message is returned. Message status will be set to
“stored unsent” by default, but parameter <stat> also allows other status values to be given.
The syntax of input text is the same as the one specified in AT+CMGS Write Command.
Parameter
EC200T-CN_AT_Commands_Manual 97 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CSCS=“GSM” //Set character set as GSM which is used by the TE
OK
AT+CMGW=“15021012496”
> <This is a test from Quectel> //Enter in text. Use <CTRL+Z> to write message or
<ESC> to quit without sending.
+CMGW: 4
OK
AT+CMGF=0 //Set SMS message format as PDU mode
OK
AT+CMGW=18
> 0051FF00000008000A0500030002016D4B8BD5
+CMGW: 5
OK
EC200T-CN_AT_Commands_Manual 98 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
The Write Command sends messages with location value <index> from message storage <mem2> to
the network. If a new recipient address <da> is given for SMS-SUBMIT, it shall be used instead of the one
stored with the message.
OK
OK
Parameter
<index> Integer type value in the range of location numbers supported by the associated
memory.
<da> Destination Address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in
string format. BCD numbers (or GSM 7 bit default alphabet characters) are
converted to characters of the currently selected TE character set (refer to
AT+CSCS command in 3GPP TS 27.007). The type of address is given by <toda>.
<toda> Type of recipient address. 3GPP TS 24.011 TP-Recipient-Address Type-of-Address
EC200T-CN_AT_Commands_Manual 99 / 167
LTE Standard Module Series
EC200T-CN AT Commands Manual
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CSCS=“GSM” //Set character set as GSM which is used by the TE
OK
AT+CMGW=“15021012496”
> Hello //Enter in text. Use <CTRL+Z> to send message or
<ESC> to quit without sending.
+CMGW: 4
OK
AT+CMSS=4 //Send the message of index 4 from memory storage.
+CMSS: 54
OK
The Write and Execution Commands confirm successful receipt of a new message (SMS-DELIVER or
SMS-STATUS-REPORT) routed directly to the TE. If the UE does not receive acknowledgement within
required time (network timeout), it sends an RP-ERROR message to the network. The UE will
automatically disable routing to the TE by setting both <mt> and <ds> values of AT+CNMI to 0.
OK
Execution Command Response
AT+CNMA OK
ERROR
Parameter
NOTE
The Execution and Write Commands shall only be used when AT+CSMS parameter <service> equals 1
(phase 2+) and an appropriate URC has been issued by the module, i.e.:
+CMT for <mt>=2 incoming message classes 0,1,3 and none;
+CMT for <mt>=3 incoming message classes 0 and 3;
+CDS for <ds>=1.
Example
AT+CSMS=1
+CSMS: 1,1,1
OK
AT+CNMI=1,2,0,0,0
OK
+CMT: “+8615021012496”,,“18/12/15,17:07:21+32”,145,4,0,0,“+8613800551500”,145,28
This is a test from Quectel. //Short message is outputted directly when an SMS is incoming.
AT+CNMA //Send ACK to the network
OK
AT+CNMA
+CMS ERROR:340 //The second time to return error. It needs ACK only once
The Write Command selects the procedure on how the received new messages from the network are
indicated to the TE when TE is active, e.g. DTR is at low level (ON). If TE is inactive (e.g. DTR is at high
level (OFF)), message receiving should be done as specified in 3GPP TS 23.038.
OK
Read Command Response
AT+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
Write Command Response
AT+CNMI[=<mode>[,<mt>[,<bm>[,<ds TA selects the procedure on how the received new messages
>[,<bfr>]]]]] from the network are indicated to the TE when TE is active,
e.g. DTR is at low level (ON). If TE is inactive (e.g. DTR is at
high level (OFF)), message receiving should be done as
specified in 3GPP TS 23.038.
OK
ERROR
Parameter
<mode> 0 Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications
can be buffered in some other place or the oldest indications may be discarded
and replaced with the new received indications.
1 Discard indication and reject new received message unsolicited result codes
when TA-TE link is reserved (e.g. in on-line data mode). Otherwise forward them
directly to the TE.
2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in data
mode) and flush them to the TE after reservation. Otherwise forward them directly
to the TE.
<mt> The rules for storing received SMS depend on its data coding scheme (refer to 3GPPTS
23.038) and preferred memory storage (AT+CPMS) setting, and the value is:
0 No SMS-DELIVER indications are routed to the TE.
1 If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed
to the TE by using unsolicited result code: +CMTI: <mem>,<index>
2 SMS-DELIVERs (except class 2) are routed directly to the TE using unsolicited
result code: +CMT: [<alpha>],<length><CR><LF><pdu> (PDU mode enabled)
or +CMT: <oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,
<length>]<CR><LF><data> (text mode enabled; about the parameters in italics,
please refer to AT+CSDH command) or ^HCMT:
<oa>,<scts>,<lang>,<fmt>,<length>,<prt>,<prv>,<type>,<stat><CR><LF><da
ta> (text mode for CDMA SMS). Class 2 messages result in indication as defined
in <mt>=1.
3 Class 3 SMS-DELIVERs are routed directly to TE by using unsolicited result
codes defined in <mt>=2. Messages of other classes result in indication as
defined in <mt>=1.
<bm> The rules for storing received CBMs depend on its data coding scheme (refer to 3GPP TS
23.038) and the setting of Select CBM Types (AT+CSCB), and the value is:
0 No CBM indications are routed to the TE.
2 New CBMs are routed directly to the TE using unsolicited result code:
+CBM: <length><CR><LF><pdu> (PDU mode); or
+CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (text mode)
<ds> 0 No SMS-STATUS-REPORTs are routed to the TE.
1 SMS-STATUS-REPORTs are routed to the TE using unsolicited result code:
+CDS: <length><CR><LF><pdu> (PDU mode)
+CDS: <fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (text mode)
2 If SMS-STATUS-REPORT is stored into ME/TA, indication of the memory location
is routed to the TE using unsolicited result code:
+CDSI: <mem>,<index>
<bfr> 0 TA buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1...2 is entered (OK response shall be given before flushing the
codes).
1 TA buffer of unsolicited result codes defined within this command is cleared when
<mode> 1...2 is entered.
NOTE
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CSCS=“GSM” //Set character set as GSM which is used by the TE
OK
AT+CNMI=1,2,0,1,0 //Set SMS-DELIVERs are routed directly to the TE
OK
+CMT: “+8615021012496”,,“18/12/15,17:07:21+32”,145,4,0,0,“+8613800551500”,145,28
This is a test from Quectel. //Short message is outputted directly when an SMS is incoming.
The Write Command selects which types of CBMs are to be received by the ME. The command writes the
parameters in NON-VOLATILE memory.
OK
Read Command Response
AT+CSCB? +CSCB : <mode>,<mids>,<dcss>
OK
Write Command Response
AT+CSCB=<mode>,<mids>[,<dcss>] TA selects which types of CBMs are to be received by the
ME.
OK
Parameter
The Write Command controls whether detailed header information is shown in text mode result codes.
OK
Read Command Response
AT+CSDH? +CSDH: <show>
OK
Write Command Response
AT+CSDH[=<show>] OK
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.005
Parameter
<show> 0 Do not show header values defined in commands +CSCA, +CSMP (<sca>,
<tosca>, <fo>, <vp>, <pid>, <dcs>) and <length>, <toda> or <tooa> in +CMT,
+CMGL, +CMGR result codes for SMS-DELIVERs and SMS-SUBMITs in text
mode
1 Show the values in result codes
Example
AT+CSDH=0
OK
AT+CMGR=2
+CMGR: “STO UNSENT” ,“”,
<This is a test from Quectel>
OK
AT+CSDH=1
OK
AT+CMGR=2
+CMGR: “STO UNSENT”,“”,,128,17,0,0,143,“+8613800551500”,145,18
<This is a test from Quectel>
OK
The command is used to set values for additional parameters needed when a short message is sent to
the network or placed in a storage in text mode.
OK
Write Command Response
AT+CSMP=<fo>[,<vp>[,<pid>[,<dcs>] TA selects values for additional parameters needed when SM
]] is sent to the network or placed in a storage when text mode
is selected (AT+CMGF=1). It is possible to set the validity
period starting from when the SM is received by the SMSC
(<vp> ranges from 0 to 255) or define the absolute time of the
validity period termination (<vp> is a string).
OK
Reference
3GPP TS 27.005
Parameter
<fo> First octet. Depending on the command or result code: First octet of 3GPP TS 23.040
SMS-DELIVER, SMS-SUBMIT (default 17), SMS-STATUS-REPORT,
SMS-COMMAND in integer format. If a valid value has been entered once, parameter
can be omitted.
<vp> Validity period. Depending on SMS-SUBMIT <fo> setting: 3GPP TS 23.040
TP-Validity-Period either in integer format or in time-string format (refer to <dt>).
<pid> Protocol identifier. 3GPP TS 23.040 TP-Protocol-Identifier in integer format (default 0).
<dcs> Data coding scheme. Depending on the command or result code: 3GPP TS 23.038
SMS Data Coding Scheme (default 0), or Cell Broadcast Data Coding Scheme in
integer format.
The command is used to send concatenated massages. Different from AT+CMGS, when sending a
concatenated message via this command, each segment of the concatenated message must be identified
by the additional parameters: <uid>, <msg_seg> and <msg_total>. When sending all segments of the
message one by one, AT+QCMGS must be executed multiple times (equal to <msg_total>) for each
segment. This command is only used in text mode (AT+CMGF=1).
Parameter
<uid> Message identification in the user data header (UDH). Range: 0-255. This
parameter is defined and inputted by the user. All segments of a same
concatenated message must have the same <uid>. Different concatenated
messages should have different <uid>.
<msg_seg> Sequence number of a concatenated message. Range: 0-7.
<msg_seg>=0 means: ignore the value and regard it as a non-concatenated
message.
<msg_total> The total number of the segments of one concatenated message. Range: 0-7.
<msg_total>=0 or 1 means: ignore the value and regard it as a
non-concatenated message.
<da> Please refer to AT+CMGS.
<toda> Please refer to AT+CMGS.
<mr> Please refer to AT+CMGS.
NOTES
1. For concatenated messages, the maximum length will be reduced by the length of the user data
header (UDH). 3GPP TS 23.040 defines two kinds of UDH length: 6 bytes and 7 bytes, so the two
kinds of <uid> are 8-bit (6 bytes) and 16-bit (7 bytes). AT+QCMGS uses 8-bit <uid>.
In the case of GSM 7 bit default alphabet data coding scheme, the maximum length of each
segment of a concatenated message is (140 octets - 6 )*8/7=153 characters.
In the case of 16 bit UCS2 data coding scheme, the maximum length of each segment is
(140-6)/2=67 characters.
In the case of 8-bit data coding scheme, the maximum length of each segment is 140-6=134
characters.
2. <mr> Message-Reference field gives an integer representation of a reference number of the
SMS-SUBMIT or SMS-COMMAND submitted to the SC by the MS, and it is used to confirm
whether the SMS-DELIVER has been received from SC duplicate or not.
<uid> The field of UDH. It is message identification of the concatenated SMS, which is different
from <mr>. Each segment in a concatenated message should have the same <uid>, but
<mr> must be incremented for each segment of a concatenated message.
3. AT+QCMGS does not support to send message in PDU mode (AT+CMGF=0).
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CSCS="GSM" //Set character set as GSM which is used by the TE
OK
AT+QCMGS="15056913384",120,1,2 //Input 120 for <uid>, and send the first segment of
the
>ABCD<Ctrl-Z> concatenated SMS
+QCMGS: 190
OK
OK
The function of this command is similar to AT+CMGR, except that the message to be read is a segment
of concatenated messages, and parameters <uid>, <msg_seg> and <msg_total> would be shown in
the result. Several segments should be concatenated to a whole concatenated message according to
these three parameters. Similar to AT+QCMGS, AT+QCMGR is only used in text mode (AT+CMGF=1).
OK
For SMS-SUBMIT:
+QCMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],<
sca>,<tosca>,<length>][,<uid>,<msg_seg>,<msg_total>]
<CR><LF><data>
OK
For SMS-STATUS-REPORTs:
+QCMGR:
<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
For SMS-COMMANDs:
+QCMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><
CR><LF><cdata>]
OK
Parameter
<uid> Message identification in the user data header (UDH). Range: 0-65535 (see NOTES).
All segments of a same concatenated message have same <uid>. Different
concatenated messages should have different <uid>.
<msg_seg> Sequence number of a concatenated message. Range: 1-7.
<msg_total> The total number of the segments of one concatenated message. Range: 2-7.
Other parameters please refer to AT+CMGR
NOTES
1. The <uid> in AT+QCMGR is different from the <uid> in AT+QCMGS. It is possible that UE receives
concatenated messages with 8-bit or 16-bit <uid>. So its maximal value is 255 with 8-bit and 65535
with 16-bit.
2. If the message to be read is not a concatenated message, <uid>, <msg_seg> and <msg_total>
would not be shown in the result.
Example
+CMTI: "SM",3 //The first message of a concatenated message comes
OK
AT+QCMGR= 4 //Read the second segment of the concatenated message
+QCMGR: "REC UNREAD","+8615056913384",,"18/12/20,14:44:37+32",120,2,2
EFGH
OK
The Write Command is used to attach the MT to, or detach the MT from the Packet Domain service. After
the command has been completed, the MT remains in V.25ter command state. If the MT is already in the
requested state, the command is ignored and the OK response will be returned. If the requested state
cannot be achieved, an ERROR or +CME ERROR response is returned.
OK
Read Command Response
AT+CGATT? +CGATT: <state>
OK
Write Command Response
AT+CGATT=<state> OK
Parameter
Example
AT+CGATT=1 //Attach to PS service
OK
AT+CGATT=0 //Detach from PS service
OK
AT+CGATT? //Query the current PS service state
+CGATT: 0
OK
The command specifies PDP context parameters for a specific context <cid>. A special form of the Write
Command (AT+CGDCONT=<cid>) causes the values for context <cid> to become undefined. It is not
allowed to change the definition of an already activated context.
The Read Command returns the current settings for each defined PDP context.
OK
Read Command Response
AT+CGDCONT? +CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<data_comp>,<h
ead_comp>[…]
OK
Write Command Response
AT+CGDCONT=<cid>[,<PDP_type>[,< OK
APN>[,<PDP_addr>[,<data_comp>[,< ERROR
head_comp>[,<IPv4AddrAlloc>[,<req
uest_type>[,<P-CSCF_discovery>[,<I
M_CN_Signalling_Flag_Ind>]]]]]]]]]
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> PDP context identifier. A numeric parameter which specifies a particular PDP context
definition. The parameter is local to the TE-MT interface and is used in other PDP
context-related commands. The range of permitted values (minimum value=1) is
returned by the test form of the command.
<PDP_type> Packet data protocol type, a string parameter which specifies the type of packet data
protocol.
“IP” Internet Protocol (IETF STD 5 [103])
“PPP” Point to Point Protocol (IETF STD 51 [104])
Only IP, IPv6 and IPv4v6 values are supported for EPS services.
“IPV6” Internet Protocol, version 6
“IPV4V6” Virtual <PDP_type> introduced to handle dual IP stack UE capability
<APN> Access point name, a string parameter that is a logical name used to select the GGSN
or the external packet data network. If the value is null or omitted, then the
subscription value will be requested.
<PDP_addr> A string parameter identifies the MT in the address space applicable to the PDP. If the
value is null or omitted, then a value may be provided by the TE during the PDP
startup procedure or, failing that, a dynamic address will be requested. The allocated
address may be read using the AT+CGPADDR command.
<data_comp> A numeric parameter that controls PDP data compression (applicable for SNDCP only)
(refer to 3GPP TS 44.065).
0 Off (Default if value is omitted)
1 On (Manufacturer preferred compression)
2 V.42bis
3 V.44 (Not supported currently)
<head_comp> A numeric parameter that controls PDP header compression (refer to 3GPP TS 44.065
and 3GPP TS 25.323).
0 Off
1 On
2 RFC1144
3 RFC2507
4 RFC3095
<IPv4AddrAlloc>Numeric type. Control how the MT/TA requests to get the IPv4 address information.
0 IPv4 address allocated through NAS signalling
1 IPv4 address allocated through DHCP
<request_type> Numeric type. Indicate the type of PDP context activation request for the PDP context.
Please refer to 3GPP TS 24.301 (subclause 6.5.1.2) and 3GPP TS 24.008
(subclause 10.5.6.17). If the initial PDP context is supported (subclause 10.1.0), it is
not allowed to assign <cid>=0 for emergency bearer services. According to 3GPP TS
24.008 (subclause 4.2.4.2.2 and 4.2.5.1.4) and 3GPP TS 24.301 (subclause
5.2.2.3.3 and 5.2.3.2.2), a separate PDP context must be established for emergency
bearer services.
<P-CSCF_discovery> Numeric type. Affect how the MT/TA requests to get the P-CSCF address, (refer
to 3GPP TS 24.229 [89] annex B and L).
0 Preference of P-CSCF address discovery not affected by AT+CGDCONT
1 Preference of P-CSCF address discovery through NAS signaling
2 Preference of P-CSCF address discovery through DHCP
<IM_CN_Signalling_Flag_Ind> Numeric type. Indicates to the network whether the PDP context is for
IM CN subsystem-related signaling only or not.
0 UE indicates that the PDP context is not for IM CN
subsystem-related signaling only
1 UE indicates that the PDP context is for IM CN subsystem-related
signaling only
NOTE
The command allows the TE to specify the quality of service profile that is used when the MT activates a
PDP context.
The Write Command specifies a profile for the context <cid>. A special form of the Write Command,
AT+CGQREQ=<cid> causes the requested profile for context number <cid> to become undefined. The
Read Command returns the current settings for each defined context. Details can be found in 3GPP TS
23.107 and all parameters are saved in NV automatically.
OK
Read Command Response
AT+CGQREQ? [+CGQREQ:
<cid>,<precedence>,<delay>,>reliability>,<peak>,<mean
>]
[+CGQREQ:
<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean
>]
[…]
OK
Write Command Response
AT+CGQREQ=<cid>[,<precedence>[, OK
<delay>[,<reliability>[,<peak>[,<mean
>]]]]] If there is any error related to ME functionality:
+CME ERROR: <err>
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_type> Packet Data Protocol type
“IP” Internet Protocol (IETF STD 5 [103])
“PPP” Point to Point Protocol (IETF STD 51 [104])
Only IP, IPv6 and IPv4v6 values are supported for EPS services.
“IPV6” Internet Protocol, version 6
“IPV4V6” Virtual <PDP_type> introduced to handle dual IP stack UE capability
<precedence> A numeric parameter which specifies the precedence class
0 Network subscribed value
1 High Priority. Service commitments shall be maintained ahead of precedence
classes 2 and 3
2 Normal priority. Service commitments shall be maintained ahead of
precedence class 3
3 Low priority. Service commitments shall be maintained
<delay> A numeric parameter which specifies the delay class. This parameter defines the
end-to-end transfer delay incurred in the transmission of SDUs through the network.
For the details, please refer to Table 4.
0 Network subscribed value
<reliability> A numeric parameter which specifies the reliability class
0 Network subscribed value
1 Non real-time traffic, error-sensitive application that cannot cope with data loss
2 Non real-time traffic, error-sensitive application that can cope with infrequent
data loss
3 Non real-time traffic, error-sensitive application that can cope with data loss,
GMM/SM, and SMS
4 Real-time traffic, error-sensitive application that can cope with data loss
5 Real-time traffic, error non-sensitive application that can cope with data loss
<peak> A numeric parameter which specifies the peak throughput class, in octets per second.
0 Network subscribed value
1 Up to 1 000 (8 kbit/s)
2 Up to 2 000 (16 kbit/s)
3 Up to 4 000 (32 kbit/s)
4 Up to 8 000 (64 kbit/s)
5 Up to 16 000 (128 kbit/s)
6 Up to 32 000 (256 kbit/s)
7 Up to 64 000 (512 kbit/s)
8 Up to 128 000 (1024 kbit/s)
9 Up to 256 000 (2048 kbit/s)
<mean> A numeric parameter which specifies the mean throughput class, in octets per hour.
0 Network subscribed value
1 100 (~0.22 bit/s)
2 200 (~0.44 bit/s)
3 500 (~1.11 bit/s)
4 1 000 (~2.2 bit/s)
5 2 000 (~4.4 bit/s)
6 5 000 (~11.1 bit/s)
7 10 000 (~22 bit/s)
8 20 000 (~44 bit/s)
9 50 000 (~111 bit/s)
10 100 000 (~0.22 kbit/s)
11 200 000 (~0.44 kbit/s)
12 500 000(~1.11 kbit/s)
13 1000 000 (~2.2 kbit/s)
14 2 000 000 (~4.4 kbit/s)
15 5 000 000 (~11.1 kbit/s)
16 10 000 000 (~22 kbit/s)
17 20 000 000 (~44 kbit/s)
18 50 000 000 (~111 kbit/s)
31 Best effort
The command allows the TE to specify a minimum acceptable profile which is checked by the MT against
the negotiated profile when the PDP context is activated. The Write Command specifies a profile for the
context identified by the context identification parameter <cid>.
A special form of the Write Command, AT+CGQMIN=<cid> causes the minimum acceptable profile for
context number <cid> to become undefined. In this case no check is made against the negotiated profile.
The Read Command returns the current settings for each defined context. Details can be found in 3GPP
TS 23.107 and all parameters are saved in NV automatically.
OK
Read Command Response
AT+CGQMIN? [+CGQMIN:
<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean
>]
[+CGQMIN:
<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean
>]
[…]
OK
Write Command Response
AT+CGQMIN=<cid>[,<precedence>[,< OK
delay>[,<reliability>[,<peak>[,<mean>
]]]]] If there is any error related to ME functionality:
+CME ERROR: <err>
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_type> Packet Data Protocol type
“IP” Internet Protocol (IETF STD 5 [103])
“PPP” Point to Point Protocol (IETF STD 51 [104])
Only IP, IPv6 and IPv4v6 values are supported for EPS services.
“IPV6” Internet Protocol, version 6
“IPV4V6” Virtual <PDP_type> introduced to handle dual IP stack UE
capability<precedence> A numeric parameter which specifies the precedence class
0 Network subscribed value
1 High Priority. Service commitments shall be maintained ahead of precedence
classes 2 and 3
2 Normal priority. Service commitments shall be maintained ahead of
precedence class 3
3 Low priority. Service commitments shall be maintained
<delay> A numeric parameter which specifies the delay class. This parameter defines the
end-to-end transfer delay incurred in the transmission of SDUs through the network.
For the detail please refer to Table 4.
0 Network subscribed value
<reliability> A numeric parameter which specifies the reliability class.
0 Network subscribed value
1 Non real-time traffic, error-sensitive application that cannot cope with data
loss
2 Non real-time traffic, error-sensitive application that can cope with infrequent
data loss
3 Non real-time traffic, error-sensitive application that can cope with data loss,
GMM/SM, and SMS
4 Real-time traffic, error-sensitive application that can cope with data loss
5 Real-time traffic, error non-sensitive application that can cope with data loss
<peak> A numeric parameter which specifies the peak throughput class, in octets per second.
0 Network subscribed value
1 Up to 1 000 (8 kbit/s)
2 Up to 2 000 (16 kbit/s)
3 Up to 4 000 (32 kbit/s)
4 Up to 8 000 (64 kbit/s)
5 Up to 16 000 (128 kbit/s)
6 Up to 32 000 (256 kbit/s)
7 Up to 64 000 (512 kbit/s)
8 Up to 128 000 (1024 kbit/s)
9 Up to 256 000 (2048 kbit/s)
<mean> A numeric parameter which specifies the mean throughput class, in octets per hour.
0 Network subscribed value
1 100 (~0.22 bit/s)
2 200 (~0.44 bit/s)
3 500 (~1.11 bit/s)
4 1 000 (~2.2 bit/s)
5 2 000 (~4.4 bit/s)
6 5 000 (~11.1 bit/s)
7 10 000 (~22 bit/s)
8 20 000 (~44 bit/s)
9 50 000 (~111 bit/s)
10 100 000 (~0.22 kbit/s)
11 200 000 (~0.44 kbit/s)
12 500 000(~1.11 kbit/s)
13 1000 000 (~2.2 kbit/s)
14 2 000 000 (~4.4 kbit/s)
15 5 000 000 (~11.1 kbit/s)
16 10 000 000 (~22 kbit/s)
17 20 000 000 (~44 kbit/s)
18 50 000 000 (~111 kbit/s)
31 Best effort
The command allows the TE to specify a UMTS Quality of Service Profile that is used when the MT
activates a PDP context. Details can be found in 3GPP TS 23.107 and all parameters are saved in NV
automatically.
OK
Read Command Response
AT+CGEQREQ? [+CGEQREQ: <cid>,
<Traffic class>,
<Maximum bitrate UL>,
<Maximum bitrate DL>,
<Guaranteed bitrate UL>,
<Guaranteed bitrate DL>,
<Delivery order>,
<Maximum SDU size>,
<SDU error ratio>,
<Residual bit error ratio>,
<Delivery of erroneous SDUs>,
<Transfer delay>,
<Traffic handling priority>,
<Source statistics descriptor>,
<Signalling indication>]
[...]
OK
Write Command Response
AT+CGEQREQ=[<cid>[,<Traffic OK
class>[,<Maximum bitrate UL> ERROR
[,<Maximum bitrate DL>
[,<Guaranteed bitrate UL>
[,<Guaranteed bitrate DL>
[,<Delivery order>
[,<Maximum SDU size>
[,<SDU error ratio>
Parameter
The command allows the TE to specify a minimum acceptable profile, which is checked by the MT against
the negotiated profile returned in the PDP context establishment and PDP context modification
procedures. Details can be found in 3GPP TS 23.107 and all parameters are saved in NV automatically.
OK
Read Command Response
AT+CGEQMIN? [+CGEQMIN: <cid>,
<Traffic class>,
<Maximum bitrate UL>,
<Maximum bitrate DL>,
<Guaranteed bitrate UL>,
<Guaranteed bitrate DL>,
<Delivery order>,
<Maximum SDU size>,
<SDU error ratio>,
<Residual bit error ratio>,
<Delivery of erroneous SDUs>,
<Transfer delay>,
<Traffic handling priority>,
<Source statistics descriptor>,
<Signalling indication>]
[…]
OK
Write Command Response
AT+CGEQMIN=[<cid>[,<Traffic class> OK
[,<Maximum bitrate UL>
[,<Maximum bitrate DL> If there is any error related to ME functionality:
[,<Guaranteed bitrate UL> +CME ERROR: <err>
[,<Guaranteed bitrate DL>
[,<Delivery order>
[,<Maximum SDU size>
[,<SDU error ratio>
[,<Residual bit error ratio>
[,<Delivery of erroneous SDUs>
[,<Transfer delay>
[,<Traffic handling priority>
[,<Source statistics descriptor>
[,<Signalling indication>]]]]]]]]]]]]]]]
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
0 Conversational
1 Streaming
2 Interactive
3 Background
4 Subscribed value
<Maximum bitrate UL> Integer type. Indicates the maximum number of kbits/s delivered to
UMTS (up-link traffic) at a SAP. As an example a bitrate of 32kbit/s
would be specified as ‘32’ (e.g. AT+CGEQREQ=…,32, …).
0 Subscribed value
1~5760
<Maximum bitrate DL> Integer type. Indicates the maximum number of kbits/s delivered by
UMTS (down-link traffic) at a SAP. As an example a bitrate of 32kbit/s
would be specified as ‘32’ (e.g. AT+CGEQREQ=…,32, …).
0 Subscribed value
1~42200
<Guaranteed bitrate UL> Integer type. Indicates the guaranteed number of kbits/s delivered to
UMTS (up-link traffic) at a SAP (provided that there is data to deliver).
As an example a bitrate of 32kbit/s would be specified as ‘32’ (e.g.
AT+CGEQREQ=…,32, …).
0 Subscribed value
1~5760
<Guaranteed bitrate DL> Integer type. Indicates the guaranteed number of kbits/s delivered by
UMTS (down-link traffic) at a SAP (provided that there is data to
deliver). As an example a bitrate of 32kbit/s would be specified as ‘32’
(e.g. AT+CGEQREQ=…,32, …).
0 Subscribed value
1~42200
<Delivery order> Integer type. Indicates whether the UMTS bearer shall provide
in-sequence SDU delivery or not (refer to 3GPP TS 24.008 subclause
10.5.6.5).
0 No
1 Yes
2 Subscribed value
<Maximum SDU size> Integer type. (1,2,3,…) indicates the maximum allowed SDU size in
octets. If the parameter is set to ‘0’ the subscribed value will be
requested (refer to 3GPP TS 24.008 subclause 10.5.6.5).
0 Subscribed value
10...1520 (value needs to be divisible by 10 without remainder)
1502
<SDU error ratio> String type. Indicates the target value for the fraction of SDUs lost or
detected as erroneous. SDU error ratio is defined only for conforming
traffic. The value is specified as ‘mEe’. As an example a target SDU
error ratio of 5*10-3 would be specified as “5E3” (e.g.
AT+CGEQREQ=…,”5E3”,…).
2
3
<Source statistics descriptor> Integer type. Specifies characteristics of the source of the submitted
SDUs for a PDP context.
0 Characteristics of SDUs are unknown
1 Characteristics of SDUs corresponds to a speech source
<Signalling indication> Integer type. Indicates signaling content of submitted SDUs for a PDP
context.
0 PDP context is not optimized for signaling
1 PDP context is optimized for signaling
The Write Command is used to activate or deactivate the specified PDP context(s). After the command
has been completed, the MT remains in V.250 command state. If any PDP context is already in the
requested state, the state for that context remains unchanged. If the MT is not PS attached when the
activation form of the command is executed, the MT first performs a PS attach and then attempts to
activate the specified contexts. If no <cid>s specify the activation/deactivation form of the command, it
will activate or deactivate all defined contexts.
OK
Read Command Response
AT+CGACT? +CGACT: <cid>,<state>[<CR><LF>
+CGACT: <cid>,<state
>…]
OK
Write Command Response
AT+CGACT=<state>,<cid> OK
NO CARRIER
Parameter
Example
AT+CGDCONT=1,“IP”,“UNINET” //Define PDP context
OK
AT+CGACT=1,1 //Activated PDP
OK
AT+CGACT=0,1 //Deactivated PDP
OK
The Write Command causes the MT to perform whatever actions that are necessary to establish
communication between the TE and the network using one or more packet domain PDP types. This may
include per-forming a PS attach and one or more PDP context activations. Commands following the
AT+CGDATA command in the AT command line will not be processed by the MT.
If the <L2P> parameter value is unacceptable to the MT, the MT shall return an ERROR or +CME
ERROR response. Otherwise, the MT issues the intermediate result code CONNECT and enters V.250
online data state. After data transfer is completed, and the layer 2 protocol termination procedure has
been completed successfully, the command state is reentered and the MT returns the final result code
OK.
OK
Write Command Response
AT+CGDATA=<L2P>[,<cid>[,<cid>[,… CONNECT
]]]
ERROR
Parameter
<L2P> A string parameter that indicates the layer 2 protocol to be used between the TE and MT:
PPP (Point to Point protocol) for a PDP such as IP
Other values are not supported and will result in an ERROR response to the execution
command
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
The Write Command returns a list of PDP addresses for the specified context identifiers. If no <cid> is
specified, the addresses for all defined contexts are returned.
OK
Write Command Response
AT+CGPADDR[=<cid>[,<cid>[,…]]] +CGPADDR: <cid>,<PDP_addr>
[+CGPADDR: <cid>,<PDP_addr>[…]]
OK
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_addr> A string that identifies the MT in the address space applicable to the PDP. The address
may be static or dynamic. For a static address, it will be the one set by AT+CGDCONT
command when the context was defined. For a dynamic address it will be the one
assigned during the last PDP context activation that used the context definition referred
to by <cid>. <PDP_address> is omitted if none is available.
Example
AT+CGDCONT=1,“IP”,“UNINET” //Define PDP context
OK
AT+CGACT=1,1 //Activated PDP
OK
AT+CGPADDR=1 //Show PDP address
+CGPADDR: 1,“10.76.51.180”
OK
The command is used to set the MT to operate according to the specified mode of operation. See 3GPP
TS 23.060.
OK
Read Command Response
AT+CGCLASS? +CGCLASS: <class>
OK
Write Command Response
AT+CGCLASS=<class> OK
ERROR
Parameter
<class> A string parameter which indicates the GPRS mobile class (Functionality in
descending order)
“A” Class A
The command queries the network registration status and controls the presentation of an unsolicited
result code +CGREG: <stat> when <n>=1 and there is a change in the MT’s GPRS network registration
status in GERAN/UTRAN, or unsolicited result code +CGREG: <stat>[,[<lac>],[<ci>],[<Act>],[<rac>]]
when <n>=2 and there is a change of the network cell in GERAN/UTRAN.
OK
Read Command Response
AT+CGREG? +CGREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
Write Command Response
AT+CGREG[=<n>] OK
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CGREG=2
OK
AT+CGATT=0
OK
+CGREG: 2
AT+CGATT=1
OK
+CGREG: 1,“D504”,“80428B5”,7
The Write Command enables or disables sending of unsolicited result codes +CGEV: XXX from MT to TE
in the case of certain events occurring in the Packet Domain MT or the network. <mode> controls the
processing of unsolicited result codes specified within this command. <bfr> controls the effect on buffered
codes when <mode> 1 or 2 is entered.
OK
Read Command Response
AT+CGEREP? +CGEREP: <mode>,<bfr>
OK
Write Command Response
AT+CGEREP=mode[,<bfr>] OK
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> 0 Buffer unsolicited result codes in the MT; if MT result code buffer is full, the oldest
ones can be discarded. No codes are forwarded to the TE.
1 Discard unsolicited result codes when MT-TE link is reserved (e.g. in on-line data
mode), otherwise forward them directly to the TE.
2 Buffer unsolicited result codes in the MT when MT-TE link is reserved (e.g. in
on-line data mode) and flush them to the TE when MT-TE link becomes available.
Otherwise forward them directly to the TE.
<bfr> 0 MT buffer of unsolicited result codes defined within this command is cleared when
<mode> 1 or 2 is entered.
1 MT buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1 or 2 is entered (OK response shall be given before flushing
the codes).
NOTE
The unsolicited result codes and the corresponding events are defined as follows:
1. +CGEV: REJECT <PDP_type>,<PDP_addr>: A network request for PDP context activation
occurred when the MT was unable to report it to the TE with a +CRING unsolicited result code and
was automatically rejected.
Note: This event is not applicable for EPS.
2. +CGEV: NW REACT <PDP_type>,<PDP_addr>,[<cid>]: The network has requested a context
reactivation. The <cid> used to reactivate the context is provided if known to the MT.
Example
AT+CGEREP=?
+CGEREP: (0-2),(0,1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
The command specifies the service or service preference that the MT will use to send MO (mobile
originated) SMS messages.
OK
Read Command Response
AT+CGSMS? +CGSMS: <service>
OK
Write Command Response
AT+CGSMS=[<service>] OK
Parameter
<service> A numeric parameter which indicates the service or service preference to be used
0 GPRS
1 Circuit switch
2 GPRS preferred (use circuit switched if GPRS not available)
3 Circuit switch preferred (use GPRS if circuit switched not available)
NOTE
The command queries the network registration status and controls the presentation of an unsolicited
result code +CEREG: <stat> when <n>=1 and there is a change in the MT’s EPS network registration
status in E-UTRAN, or unsolicited result code +CEREG: <stat>[,[<tac>],[<ci>],[<Act>]] when <n>=2
and there is a change of the network cell in E-UTRAN.
OK
Read Command Response
AT+CEREG? +CEREG: <n>,<stat>[,<tac>,<ci>[,<Act>]]
OK
Reference
3GPP TS 27.007
Parameter
The command allows the application to check how much bytes are sent to or received by the module.
OK
OK
Write Command Response
AT+QGDCNT=<op> OK
ERROR
Parameter
<op> A numeric parameter. The operation about data counter
0 Reset the data counter
1 Save the results of data counter to NV
If results need to be automatically saved, please refer to AT+QAUGDCNT command.
<bytes_sent> A numeric parameter. The amount of sent bytes.
<bytes_recv> A numeric parameter. The amount of received bytes.
NOTE
When module is powered on, <bytes_sent> and <bytes_recv> will be loaded from results of data
counter in NV. The default result in NV is 0.
Example
AT+QGDCNT=? //Test command
+QGDCNT: (0,1)
OK
OK
OK
OK
Read Command Response
AT+QAUGDCNT? +QAUGDCNT: <value>
OK
Write Command Response
AT+QAUGDCNT=<value> OK
ERROR
Parameter
A numeric parameter. Default value is 0. The parameter is the time-interval for
<value> command AT+QGDCNT to save results to NV automatically. If it is set to 0, auto-save
feature would be disabled. Unit is second.
NOTE
Example
AT+QAUGDCNT=? //Test command
+QAUGDCNT: (0,30-65535)
OK
OK
The command is used to shut down the module. The UE will return OK immediately when the command is
executed. Then the UE deactivates the network. After it is completed, the UE outputs POWERED DOWN
and enters into the shutdown state. The maximum time for unregistering network is 60 seconds. The UE
is not allowed to turn off the power before the module’s STATUS pin is set low or the URC POWERED
DOWN is outputted to avoid data loss.
OK
Execution Command Response
AT+QPOWD[=<n>] OK
POWERED DOWN
Maximum Response Time 300ms
Parameter
The command sets and queries the real time clock (RTC) of the module. The current setting is retained
until the module is totally disconnected from power.
AT+CCLK Clock
Test Command Response
AT+CCLK=? OK
OK
Write Command Response
AT+CCLK=<time> OK
Parameter
<time> String type value. The format is “yy/MM/dd,hh:mm:ss±zz”, indicating year (two last digits),
month, day, hour, minutes, seconds and time zone (indicates the difference, expressed in
quarters of an hour, between the local time and GMT; range -48...+56). E.g. May 6th, 1994,
22:10:00 GMT+2 hours equals to “94/05/06,22:10:00+08”.
Example
AT+CCLK? //Query the local time
+CCLK: “08/01/04,00:19:43+00”
OK
The command is used to control whether the module enters into sleep mode. When entering into sleep
mode is enabled, DTR is pulled up and WAKEUP_IN is pulled up, the module can directly enter into sleep
mode. If entering into sleep mode is enabled, DTR is pulled down and WAKEUP_IN is pulled down, there
is a need to pull the DTR pin and the WAKEUP_IN pin up first, and then the module can enter into sleep
mode.
OK
OK
Write Command Response
AT+QSCLK=<n> OK
Maximum Response Time 300ms
Reference
Quectel
Parameter
11 Appendixes
11.1. References
Abbreviation Description
CS Circuit Switching
ME Mobile Equipment
MS Mobile Station
PS Packet Switching
TA Terminal Adapter
TE Terminal Equipment
UE User Equipment
ATE <value> 1
ATQ <n> 0
ATS0 <n> 0
ATS3 <n> 13
ATS4 <n> 10
ATS5 <n> 8
ATS6 <n> 2
ATS7 <n> 0
ATS8 <n> 2
ATS10 <n> 15
ATV <value> 1
ATX <value> 4
AT&C <value> 1
AT&D <value> 2
AT+CREG <n> 0
AT+CGREG <n> 0
AT+CMEE <n> 1
AT+CR <mode> 0
AT+CRC <mode> 0
AT+CSMS <service> 0
AT+CMGF <mode> 0
AT+CSDH <show> 0
AT+CSCB <mode> 0
AT+CMMS <n> 0
AT+CVHU <mode> 0
AT+COLP <n> 0
AT+CTZR <reporting> 0
AT+CPBS <storage> SM
AT+CEREG <n> 0
AT+CCWA <n> 0
AT+CUSD <mode> 0
AT+CLVL <level> 3
AT+QAUDMOD <mode> 0
AT+QAUDLOOP <enable> 0
AT+IPR <rate> No
AT+CREG <n> No
AT+CGREG <n> No
AT+CEREG <n> No
ATE <value> 1
ATQ <n> 0
ATS0 <n> 0
ATS7 <n> 0
ATS10 <n> 15
ATV <value> 1
ATX <value> 4
AT&C <value> 1
AT&D <value> 2
AT+CREG <n> 0
AT+CGREG <n> 0
AT+CEREG <n> 0
Final result code +CME ERROR: <err> indicates an error related to mobile equipment or network. The
operation is similar to ERROR result code. None of the following commands in the same command line is
executed. Neither ERROR nor OK result code shall be returned.
<err> values are mostly used by common message commands. The following table lists most of general
and GRPS related ERROR codes. For some GSM protocol failure cause described in GSM specifications,
the corresponding ERROR codes are not included.
0 Phone failure
1 No connection to phone
13 SIM failure
14 SIM busy
15 SIM wrong
16 Incorrect password
20 Memory full
21 Invalid index
22 Not found
23 Memory failure
30 No network service
31 Network timeout
Final result code +CMS ERROR: <err> indicates an error related to mobile equipment or network. The
operation is similar to ERROR result code. None of the following commands in the same command line is
executed. Neither ERROR nor OK result code shall be returned.
300 ME failure
331 No network
500 Unknown
+CCWA:
20 <number>,<type>,<class>[,<al Call waiting indication AT+CCWA=1,1
pha>]
Shows the +CSSI intermediate result
21 +CSSI: <code1> AT+CSSN=1
code presentation status to the TE
Shows the +CSSU unsolicited result
22 +CSSU: <code2> AT+CSSN=<n>,1
code presentation status to the TE
+CUSD: USSD response from the network, or
23 AT+CUSD=1
<status>[,<rspstr>,[<dcs>]] a network initiated operation
In 3GPP TS 23.038 DCS (Data Coding Scheme) defined three kinds of alphabets in SMS, GSM 7 bit
default alphabet, 8 bit data and UCS2 (16 bit). AT+CSMP can set the DCS in text mode (AT+CMGF=1).
In text mode, DCS (Data Coding Scheme) and AT+CSCS determine the way of SMS text input or output.
When DCS=GSM 7 bit, the input or output needs conversion. The detailed conversion tables are shown
as below.
Table 14: The Input Conversions Table (DCS=GSM 7 bit and AT+CSCS=“GSM”)
0 1 2 3 4 5 6 7
0 00 10 20 30 40 50 60 70
1 01 11 21 31 41 51 61 71
2 02 12 22 32 42 52 62 72
3 03 13 23 33 43 53 63 73
4 04 14 24 34 44 54 64 74
5 05 15 25 35 45 55 65 75
6 06 16 26 36 46 56 66 76
7 07 17 27 37 47 57 67 77
8 08 18 28 38 48 58 68 78
9 09 19 29 39 49 59 69 79
A 0A Submit 2A 3A 4A 5A 6A 7A
B 0B Cancel 2B 3B 4B 5B 6B 7B
C 0C 1C 2C 3C 4C 5C 6C 7C
D 0D 1A 2D 3D 4D 5D 6D 7D
E 0E 1E 2E 3E 4E 5E 6E 7E
F 0F 1F 2F 3F 4F 5F 6F 7F
Table 15: The Output Conversions Table (DCS=GSM 7 bit and AT+CSCS=“GSM”)
0 1 2 3 4 5 6 7
0 00 10 20 30 40 50 60 70
1 01 11 21 31 41 51 61 71
2 02 12 22 32 42 52 62 72
3 03 13 23 33 43 53 63 73
4 04 14 24 34 44 54 64 74
5 05 15 25 35 45 55 65 75
6 06 16 26 36 46 56 66 76
7 07 17 27 37 47 57 67 77
8 08 18 28 38 48 58 68 78
9 09 19 29 39 49 59 69 79
A 0D0A 2A 3A 4A 5A 6A 7A
B 0B 2B 3B 4B 5B 6B 7B
C 0C 1C 2C 3C 4C 5C 6C 7C
D 0D 1A 2D 3D 4D 5D 6D 7D
E 0E 1E 2E 3E 4E 5E 6E 7E
F 0F 1F 2F 3F 4F 5F 6F 7F
0 1 2 3 4 5 6 7
0 1B40
4 1B14
8 1B28
9 1B29
C 1B3C
D 1B3D
E 1B3E
F 1B2F
Table 17: The Input Conversions Table (DCS=GSM 7 bit and AT+CSCS=“IRA”)
0 1 2 3 4 5 6 7
0 20 20 30 00 50 20 70
1 20 20 21 31 41 51 61 71
2 20 20 22 32 42 52 62 72
3 20 20 23 33 43 53 63 73
4 20 20 02 34 44 54 64 74
5 20 20 25 35 45 55 65 75
6 20 20 26 36 46 56 66 76
7 20 20 27 37 47 57 67 77
8 backspace 20 28 38 48 58 68 78
9 20 20 29 39 49 59 69 79
A 0A Submit 2A 3A 4A 5A 6A 7A
C 20 20 2C 3C 4C 1B2F 6C 1B40
D 0D 20 2D 3D 4D 1B3E 6D 1B29
E 20 20 2E 3E 4E 1B14 6E 1B3D
F 20 20 2F 3F 4F 11 6F 20
A B C D E F
0 20 20 20 20 7F 20
1 40 20 20 5D 20 7D
2 20 20 20 20 20 08
3 01 20 20 20 20 20
4 24 20 5B 20 7B 20
5 03 20 0E 20 0F 20
6 20 20 1C 5C 1D 7C
7 5F 20 09 20 20 20
8 20 20 20 0B 04 0C
9 20 20 1F 20 05 06
A 20 20 20 20 20 20
B 20 20 20 20 20 20
C 20 20 20 5E 07 7E
D 20 20 20 20 20 20
E 20 20 20 20 20 20
F 20 60 20 1E 20 20
Table 19: The Output Conversions Table (DCS=GSM 7 bit and AT+CSCS=“IRA”)
0 1 2 3 4 5 6 7
0 40 20 20 30 A1 50 BF 70
1 A3 5F 21 31 41 51 61 71
2 24 20 22 32 42 52 62 72
3 A5 20 23 33 43 53 63 73
4 E8 20 A4 34 44 54 64 74
5 E9 20 25 35 45 55 65 75
6 F9 20 26 36 46 56 66 76
7 EC 20 27 37 47 57 67 77
8 F2 20 28 38 48 58 68 78
9 C7 20 29 39 49 59 69 79
A 0D0A 2A 3A 4A 5A 6A 7A
B D8 2B 3B 4B C4 6B E4
C F8 C6 2C 3C 4C D6 6C F6
D 0D E6 2D 3D 4D D1 6D F1
E C5 DF 2E 3E 4E DC 6E FC
F E5 C9 2F 3F 4F A7 6F E0
0 1 2 3 4 5 6 7
0 7C
4 5E
8 7B
9 7D
C 5B
D 7E
E 5D
F 5C
Because the low 8 bit of UCS2 character is the same as the IRA character:
The difference is the way of SMS text input or output. Please refer to Table 13 for more details.
CS Internal Cause
Phone is offline
No service available
No funds available
No service available
Internal error
CS Network Cause
Unassigned/unallocated number
No route to destination
Channel unacceptable
User busy
No user responding
Call rejected
Number changed
Invalid/incomplete number
Facility rejected
Normal, unspecified
No circuit/channel available
Temporary failure
Incompatible destination
IE non-existent/not implemented
Conditional IE error
Interworking, unspecified
CS Network Reject
Illegal MS
Illegal ME
Implicitly detached
Network failure
MAC failure
Synch failure
Congestion
RR release indication
Invalid SIM
No service
No cell available
Wrong state
Other causes
No resources
Release pending
PS Internal Cause
Invalid NSAPI
Invalid field
SNDCP failure
No GPRS context
PDP duplicate
CS PS Network Cause
Insufficient resources
Regular deactivation
Network failure
Reactivation required
IE non-existent/not implemented
Conditional IE error