Quectel MC20&MC30 AT Commands Manual V1.2

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 260

DownloadQuectel MC20&MC30 AT Commands Manual V1.2
Open PDF In BrowserView PDF
MC20&MC30
AT Commands Manual
GSM/GPRS/GNSS Module Series
Rev. MC20&MC30_AT_Commands_Manual_V1.2
Date: 2018-09-14
Status: Released

www.quectel.com

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
Quectel Wireless Solutions Co., Ltd.
7th Floor, Hongye Building, No.1801 Hongmei Road, Xuhui District, Shanghai 200233, China
Tel: +86 21 5108 6236
Email: info@quectel.com

Or our local office. For more information, please visit:
http://www.quectel.com/support/sales.htm

For technical support, or to report documentation errors, please visit:
http://www.quectel.com/support/technical.htm
Or email to: support@quectel.com

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. 2018. All rights reserved.

MC20&MC30_AT_Commands_Manual

1 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

About the Document
History
Revision

Date

Author

Description

1.0

2016-07-08

Hyman DING

Initial

1.1

2016-08-17

Hyman DING

Added AT+QDSIM command
1.
2.
3.

1.2

2018-09-14

Simon HU/
Sandy YE

MC20&MC30_AT_Commands_Manual

4.
5.

Added MC30 as the applicable module of the
document.
Deleted command AT+ILRR, AT+CRLP, AT+CMOD,
AT+QHTTPRSP and AT+QCFG=“RFTXburst”.
Updated the description of AT+QEAUART and
AT+QSEDCB (Chapter 3.7 and 3.8)
Added notes for AT+CSIM (Chapter 5.6)
Added command AT+CGLA (Chapter 5.15),
AT+QIKALIVE (Chapter 11.35),
AT+QPCMON (Chapter 13.19),
AT+QPCMVOL (Chapter 13.20),
AT+QTEMP (Chapter 14.8)
and AT+QMSDC (Chapter 14.8)

2 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Contents
About the Document ................................................................................................................................ 2
Contents .................................................................................................................................................... 3
Table Index ............................................................................................................................................... 9
1

Introduction ..................................................................................................................................... 10
1.1. Scope of the Document .......................................................................................................... 10
1.2. AT Command Syntax .............................................................................................................. 10
1.2.1. Combining AT Commands on the Same Command Line ............................................. 11
1.2.2. Entering Successive AT Commands on Separate Lines .............................................. 11
1.3. Supported Character Sets ...................................................................................................... 11
1.4. Flow Control ........................................................................................................................... 12
1.4.1. Software Flow Control (XON/XOFF Flow Control) ....................................................... 12
1.4.2. Hardware Flow Control (RTS/CTS Flow Control) ........................................................ 13
1.5. Unsolicited Result Codes ....................................................................................................... 13

2

General Commands ........................................................................................................................ 14
2.1. ATI Display Product Identification Information...................................................................... 14
2.2. AT+GMI Request Manufacturer Identification ...................................................................... 15
2.3. AT+GMM Request TA Model Identification........................................................................... 15
2.4. AT+GMR Request TA Revision Identification of Software Release ...................................... 16
2.5. AT+GOI Request Global Object Identification ...................................................................... 16
2.6. AT+CGMI Request Manufacturer Identification .................................................................... 17
2.7. AT+CGMM Request Model Identification ............................................................................. 18
2.8. AT+CGMR Request TA Revision Identification of Software Release ................................... 18
2.9. AT+GSN Request International Mobile Equipment Identity (IMEI) ....................................... 19
2.10. AT+CGSN Request Product Serial Number Identification.................................................... 19
2.11. AT+QGSN Request Product Serial Number Identification (IMEI) ......................................... 20
2.12. AT&F Set All Current Parameters to Manufacturer Defaults ................................................ 21
2.13. AT&V Display Current Configuration .................................................................................... 21
2.14. AT&W Store Current Parameters to User Defined Profile .................................................... 23
2.15. ATQ Set Result Code Presentation Mode ............................................................................ 23
2.16. ATV TA Response Format.................................................................................................... 24
2.17. ATX Set CONNECT Result Code Format and Monitor Call Progress .................................. 26
2.18. ATZ Set All Current Parameters to User Defined Profile ...................................................... 26
2.19. AT+CFUN Set ME Functionality ........................................................................................... 27
2.20. AT+QPOWD Power off ........................................................................................................ 28
2.21. AT+CMEE Report Mobile Equipment Error .......................................................................... 29
2.22. AT+CSCS Select TE Character Set ..................................................................................... 30
2.23. AT+GCAP Request Complete TA Capabilities List ............................................................... 31

3

Serial Interface Control Commands .............................................................................................. 32
3.1. AT&C Set DCD Function Mode ............................................................................................ 32
3.2. AT&D Set DTR Function Mode ............................................................................................ 32

MC20&MC30_AT_Commands_Manual

3 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

3.3.
3.4.
3.5.

AT+ICF Set TE-TA Control Character Framing .................................................................... 33
AT+IFC Set TE-TA Local Data Flow Control ........................................................................ 34
AT+IPR Set TE-TA Fixed Local Rate ................................................................................... 35
3.5.1. Adaptive Baud Rate ..................................................................................................... 36
3.6. AT+CMUX Multiplexer Control ............................................................................................. 38
3.7. AT+QEAUART Configure Multi UART Function ................................................................... 39
3.8. AT+QSEDCB Configure Parameters of the Multi UART ...................................................... 40
4

Status Control Commands ............................................................................................................. 42
4.1. AT+CEER Extended Error Report ........................................................................................ 42
4.2. AT+CPAS Mobile Equipment Activity Status ........................................................................ 43
4.3. AT+QINDRI RI Indication When Using URC ........................................................................ 44
4.4. AT+QMOSTAT Show State of Mobile Originated Call .......................................................... 45
4.5. AT+QREFUSECS Refuse to Receive SMS/Incoming Call or Not ........................................ 46
4.6. AT+QIURC Enable or Disable Initial URC Presentation....................................................... 46
4.7. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications ................................ 47
4.8. AT+QINISTAT Query State of Initialization ........................................................................... 49
4.9. AT+QNSTATUS Query GSM Network Status ...................................................................... 49
4.10. AT+QNITZ Network Time Synchronization .......................................................................... 50
4.11. AT+QLTS Obtain Latest Network Time Synchronized.......................................................... 51
4.12. AT+CTZU Network Time Synchronization and Update the RTC Time ................................. 52
4.13. AT+CTZR Network Time Synchronization Report ................................................................ 53
4.14. AT+QSIMDET Enable/Disable (U)SIM Card Detection ........................................................ 53
4.15. AT+QSIMSTAT (U)SIM Inserted Status Reporting ............................................................... 54
4.16. AT+QCGTIND Circuit Switched Call or GPRS PDP Context Termination Indication............ 55

5

(U)SIM Related Commands ............................................................................................................ 57
5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI) ....................................... 57
5.2. AT+CLCK Facility Lock ........................................................................................................ 58
5.3. AT+CPIN Enter PIN ............................................................................................................. 60
5.4. AT+CPWD Change Password ............................................................................................. 61
5.5. AT+CRSM Restricted (U)SIM Access .................................................................................. 63
5.6. AT+CSIM Generic (U)SIM Access ....................................................................................... 64
5.7. AT+QCSPWD Change PS Super Password ........................................................................ 65
5.8. AT+CCID Show CCID .......................................................................................................... 66
5.9. AT+QCCID Show CCID ....................................................................................................... 66
5.10. AT+QGID Get (U)SIM Card Group Identifier ........................................................................ 67
5.11. AT+QSIMVOL Select (U)SIM Card Operating Voltage ......................................................... 68
5.12. AT+QSPN Get Service Provider Name from (U)SIM ........................................................... 68
5.13. AT+QTRPIN Times Remained to Input (U)SIM PIN/PUK..................................................... 69
5.14. AT+QDSIM Dual (U)SIM Switching ...................................................................................... 70
5.15. AT+CGLA Generic (U)SIM Logical Channel Access ............................................................ 70

6

Network Service Commands .......................................................................................................... 72
6.1. AT+COPS Operator Selection ............................................................................................. 72
6.2. AT+CREG Network Registration Status ............................................................................... 74

MC20&MC30_AT_Commands_Manual

4 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

6.3.
6.4.
6.5.
6.6.
6.7.
6.8.
6.9.

AT+CSQ Signal Quality Report ............................................................................................ 75
AT+CPOL Preferred Operator List ....................................................................................... 76
AT+COPN Read Operator Names ....................................................................................... 77
AT+QBAND Get and Set Mobile Operation Band ................................................................ 78
AT+QENG Switch on or off Engineering Mode .................................................................... 79
AT+QSCANF Scan Power of GSM Frequency .................................................................... 82
AT+QLOCKF Lock GSM Frequency .................................................................................... 83

7

Call Related Commands ................................................................................................................. 84
7.1. ATA Answer an Incoming Call .............................................................................................. 84
7.2. ATD Mobile Originated Call to Dial a Number ...................................................................... 85
7.3. ATH Disconnect Existing Connection ................................................................................... 86
7.4. +++ Switch from Data Mode to Command Mode ................................................................. 87
7.5. ATO Switch from Command Mode to Data Mode ................................................................ 87
7.6. ATP Select Pulse Dialing ..................................................................................................... 88
7.7. ATS0 Set Number of Rings before Automatically Answering Call ........................................ 88
7.8. ATS6 Set Pause before Blind Dialing ................................................................................... 89
7.9. ATS7 Set the Time to Wait for Connection Completion ........................................................ 90
7.10. ATS8 Set the Time to Wait for Comma Dial Modifier............................................................ 91
7.11. ATS10 Set Disconnect Delay after Indicating the Absence of Data Carrier ......................... 91
7.12. ATT Select Tone Dialing ....................................................................................................... 92
7.13. AT+CSTA Select Type of Address ........................................................................................ 92
7.14. AT+CLCC List Current Calls of ME ...................................................................................... 93
7.15. AT+CR Service Reporting Control ....................................................................................... 94
7.16. AT+CRC Set Cellular Result Code for Incoming Call Indication .......................................... 95
7.17. AT+CSNS Single Numbering Scheme ................................................................................. 96
7.18. AT+QSFR Preference Speech Coding................................................................................. 97
7.19. AT+QSPCH Speech Channel Type Report .......................................................................... 98
7.20. AT+QDISH Disable ATH ...................................................................................................... 99

8

SMS Commands ............................................................................................................................ 101
8.1. AT+CSMS Select Message Service ................................................................................... 101
8.2. AT+CMGF Select SMS Message Format .......................................................................... 102
8.3. AT+CSCA SMS Service Center Address ........................................................................... 102
8.4. AT+CPMS Preferred SMS Message Storage .................................................................... 104
8.5. AT+CMGD Delete SMS Message ...................................................................................... 105
8.6. AT+CMGL List SMS Messages from Preferred Storage .................................................... 106
8.7. AT+CMGR Read SMS Message ........................................................................................ 109
8.8. AT+CMGS Send SMS Message ........................................................................................ 112
8.9. AT+CMGW Write SMS Message to Memory ..................................................................... 113
8.10. AT+CMSS Send SMS Message from Storage ................................................................... 115
8.11. AT+CMGC Send SMS Command ...................................................................................... 116
8.12. AT+CNMI New SMS Message Indications ......................................................................... 117
8.13. AT+CRES Restore SMS Settings ...................................................................................... 120
8.14. AT+CSAS Save SMS Settings ........................................................................................... 121

MC20&MC30_AT_Commands_Manual

5 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

8.15.
8.16.
8.17.
8.18.
8.19.
8.20.
9

AT+CSCB Select Cell Broadcast SMS Messages ............................................................. 121
AT+CSDH Show SMS Text Mode Parameters ................................................................... 122
AT+CSMP Set SMS Text Mode Parameters ...................................................................... 123
AT+QCLASS0 Store Class 0 SMS to (U)SIM When Receiving Class 0 SMS .................... 124
AT+QMGDA Delete All SMS .............................................................................................. 126
AT+QSMSCODE Configure SMS Code Mode ................................................................... 126

Phonebook Commands ................................................................................................................ 128
9.1. AT+CPBS Select Phonebook Memory Storage ................................................................. 128
9.2. AT+CPBW Write Phonebook Entry .................................................................................... 129
9.3. AT+CPBR Read Current Phonebook Entries ..................................................................... 130
9.4. AT+CPBF Find Phonebook Entries .................................................................................... 131
9.5. AT+CNUM Subscriber Number .......................................................................................... 132

10 GPRS Commands ......................................................................................................................... 134
10.1. AT+CGATT Attach to/Detach from GPRS Service ............................................................. 134
10.2. AT+CGDCONT Define PDP Context ................................................................................. 135
10.3. AT+CGQREQ Quality of Service Profile (Requested) ........................................................ 136
10.4. AT+CGQMIN Quality of Service Profile (Minimum Acceptable) ......................................... 137
10.5. AT+CGACT PDP Context Activate or Deactivate ............................................................... 138
10.6. AT+CGDATA Enter Data State ........................................................................................... 139
10.7. AT+CGPADDR Show PDP Address ................................................................................... 140
10.8. AT+CGCLASS GPRS Mobile Station Class....................................................................... 141
10.9. AT+CGEREP Control Unsolicited GPRS Event Reporting ................................................. 141
10.10. AT+CGREG Network Registration Status .......................................................................... 142
10.11. AT+CGSMS Select Service for MO SMS Messages.......................................................... 144
10.12. AT+QGPCLASS Change GPRS Multi-slot Class ............................................................... 145
11 TCP/IP Commands ........................................................................................................................ 146
11.1. AT+QIOPEN Start up TCP or UDP Connection ................................................................. 146
11.2. AT+QISEND Send Data through TCP or UDP Connection ................................................ 147
11.3. AT+QICLOSE Close TCP or UDP Connection ................................................................... 148
11.4. AT+QIDEACT Deactivate GPRS/CSD PDP Context ......................................................... 150
11.5. AT+QILPORT Set Local Port ............................................................................................. 150
11.6. AT+QIREGAPP Start TCP/IP Task and Set APN, User Name and Password ................... 151
11.7. AT+QIACT Activate GPRS/CSD Context ........................................................................... 152
11.8. AT+QILOCIP Get Local IP Address ................................................................................... 153
11.9. AT+QISTAT Query Current Connection Status .................................................................. 153
11.10. AT+QISTATE Query Connection Status of the Current Access.......................................... 155
11.11. AT+QISSTAT Query the Current Server Status ................................................................. 156
11.12. AT+QIDNSCFG Configure Domain Name Server .............................................................. 157
11.13. AT+QIDNSGIP Query the IP Address of Given Domain Name .......................................... 158
11.14. AT+QIDNSIP Connect with IP Address or Domain Name Server ...................................... 159
11.15. AT+QIHEAD Add an IP Header When Receiving Data ...................................................... 160
11.16. AT+QIAUTOS Set Auto Sending Timer .............................................................................. 160
11.17. AT+QIPROMPT Set Prompt of ‘>’ When Sending Data ..................................................... 161
MC20&MC30_AT_Commands_Manual

6 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

11.18.
11.19.
11.20.
11.21.
11.22.
11.23.
11.24.
11.25.
11.26.
11.27.
11.28.
11.29.
11.30.
11.31.
11.32.
11.33.
11.34.
11.35.

AT+QISERVER Configured as Server ............................................................................... 162
AT+QICSGP Select CSD or GPRS as the Bearer ............................................................. 163
AT+QISRVC Choose Connection ...................................................................................... 164
AT+QISHOWRA Set Whether or Not to Display the Address of Sender ........................ 165
AT+QISCON Save TCP/IP Application Context ................................................................. 166
AT+QIMODE Select TCP/IP Transfer Mode....................................................................... 167
AT+QITCFG Configure Transparent Transfer Mode .......................................................... 168
AT+QISHOWPT Control Whether or Not to Show the Protocol Type ................................. 169
AT+QIMUX Control Whether or Not to Enable Multiple TCP/IP Sessions .......................... 170
AT+QISHOWLA Control Whether or Not to Display Local IP Address ............................... 171
AT+QIFGCNT Select a Context as Foreground Context .................................................... 172
AT+QISACK Query the Data Information for Sending ....................................................... 173
AT+QINDI Set the Method to Handle Received TCP/IP Data ............................................ 173
AT+QIRD Retrieve the Received TCP/IP Data .................................................................. 175
AT+QISDE Control Whether or Not to Echo the Data for QISEND .................................... 176
AT+QPING Ping a Remote Server ..................................................................................... 177
AT+QNTP Synchronize the Local Time via NTP ................................................................ 178
AT+QIKALIVE Set TCP/IP Keep Alive Parameter .............................................................. 179

12 Supplementary Service Commands ............................................................................................ 181
12.1. AT+CCFC Call Forwarding Number and Conditions Control ............................................. 181
12.2. AT+CCUG Closed User Group Control .............................................................................. 183
12.3. AT+CCWA Call Waiting Control ......................................................................................... 184
12.4. AT+CHLD Call Hold and Multiparty .................................................................................... 185
12.5. AT+CLIP Calling Line Identification Presentation ............................................................... 187
12.6. AT+QCLIP Control Whether or Not to Show the Name of Incoming Call Number ............. 189
12.7. AT+CLIR Calling Line Identification Restriction.................................................................. 190
12.8. AT+COLP Connected Line Identification Presentation....................................................... 191
12.9. AT+QCOLP Show Alpha Field in +COLP String ................................................................ 192
12.10. AT+CUSD Unstructured Supplementary Service Data ...................................................... 193
12.11. AT+CSSN Supplementary Services Notification ................................................................ 194
13 Audio Commands ......................................................................................................................... 196
13.1. ATL Set Monitor Speaker Loudness................................................................................... 196
13.2. ATM Set Monitor Speaker Mode ........................................................................................ 196
13.3. AT+VTD Tone Duration ...................................................................................................... 197
13.4. AT+VTS DTMF and Tone Generation ................................................................................ 198
13.5. AT+CALM Alert Sound Mode ............................................................................................. 199
13.6. AT+CRSL Ringer Sound Level ........................................................................................... 199
13.7. AT+CLVL Loud Speaker Volume Level .............................................................................. 200
13.8. AT+CMUT Mute Control ..................................................................................................... 201
13.9. AT+QSIDET Change the Side Tone Gain Level ................................................................. 201
13.10. AT+QMIC Change the Microphone Gain Level .................................................................. 202
13.11. AT+QLDTMF Generate Local DTMF Tones ....................................................................... 203
13.12. AT+QAUDCH Swap the Audio Channels ........................................................................... 204

MC20&MC30_AT_Commands_Manual

7 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

13.13. AT+QAUDLOOP Audio Channel Loop Back Test .............................................................. 204
13.14. AT+QLTONE Generate Local Specific Tone ...................................................................... 205
13.15. AT+QTONEP Set DTMF Output Path ................................................................................ 206
13.16. AT+QTDMOD Set Tone Detection Mode ........................................................................... 207
13.17. AT+QTONEDET Detect DTMF .......................................................................................... 208
13.18. AT+QWDTMF Play DTMF Tone During the Call ................................................................ 210
13.19. AT+QPCMON Configure PCM Interface ............................................................................ 212
13.20. AT+QPCMVOL Set/Get PCM Input/Output Volume ........................................................... 213
14 Hardware Related Commands ..................................................................................................... 214
14.1. AT+CCLK Clock ................................................................................................................. 214
14.2. AT+QALARM Set Alarm ..................................................................................................... 215
14.3. AT+CBC Battery Charge .................................................................................................... 216
14.4. AT+QADC Read ADC ........................................................................................................ 217
14.5. AT+QSCLK Configure Slow Clock ..................................................................................... 217
14.6. AT+QLEDMODE Configure the Network Indication LED Patterns ..................................... 218
14.7. AT+QVBATT Configure the Threshold of Voltage .............................................................. 219
14.8. AT+QTEMP Query the Current Voltage and Temperature ................................................. 221
14.9. AT+QMSDC Mount/Unmount an External SD Card ........................................................... 222
15 Others Commands ........................................................................................................................ 224
15.1. A/ Re-issue the Last Command Given ............................................................................... 224
15.2. ATE Set Command Echo Mode ......................................................................................... 224
15.3. ATS3 Set Command Line Termination Character .............................................................. 225
15.4. ATS4 Set Response Formatting Character ........................................................................ 225
15.5. ATS5 Set Command Line Editing Character ...................................................................... 226
15.6. AT+QRIMODE Set RI Time ............................................................................................... 226
16 Appendix References ................................................................................................................... 228
16.1. Related Documents .............................................................................................................. 228
16.2. Terms and Abbreviations ...................................................................................................... 229
16.3. Factory Default Settings Restorable with AT&F .................................................................... 230
16.4. AT Command Settings Storable with AT&W ......................................................................... 232
16.5. AT Command Settings Storable with ATZ ............................................................................. 234
16.6. Summary of URC ................................................................................................................. 236
16.7. Summary of CME ERROR Codes ........................................................................................ 239
16.8. Summary of CMS ERROR Codes ........................................................................................ 243
16.9. Summary of Cause for Extended Error Report ..................................................................... 245
16.9.1. Location ID for the Extended Error Report ................................................................. 245
16.9.2. Cause for Protocol Stack (PS) Layer ......................................................................... 245
16.9.3. Internal Cause for MM Layer ..................................................................................... 257
16.9.4. Cause for PPP/IP-Stack ............................................................................................ 258

MC20&MC30_AT_Commands_Manual

8 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Table Index
TABLE 1: TYPES OF AT COMMANDS AND RESPONSES .............................................................................. 11
TABLE 2: CURRENT CONFIGURATION LIST WHEN EXECUTING AT&V COMMAND ................................. 22
TABLE 3: ATV0&ATV1 RESULT CODES NUMERIC EQUIVALENTS AND BRIEF DESCRIPTIONS .............. 25
TABLE 4: RELATED DOCUMENTS ................................................................................................................ 228
TABLE 5: TERMS AND ABBREVIATIONS ...................................................................................................... 229
TABLE 6: FACTORY DEFAULT SETTINGS RESTORABLE WITH AT&F ...................................................... 230
TABLE 7: AT COMMAND SETTINGS STORABLE WITH AT&W .................................................................... 232
TABLE 8: AT COMMAND SETTINGS STORABLE WITH ATZ ....................................................................... 234
TABLE 9: SUMMARY OF URC ....................................................................................................................... 236
TABLE 10: DIFFERENT CODING SCHEMES OF +CME ERROR:  ................................................... 239
TABLE 11: DIFFERENT CODING SCHEMES OF +CMS ERROR:  ................................................... 243
TABLE 12: LOCATION ID FOR THE EXTENDED ERROR REPORT ............................................................ 245
TABLE 13: CAUSE FOR PROTOCOL STACK (PS) LAYER ........................................................................... 245
TABLE 14: INTERNAL CAUSE FOR MM LAYER ........................................................................................... 257
TABLE 15: CAUSE FOR PPP/IP-STACK ........................................................................................................ 258

MC20&MC30_AT_Commands_Manual

9 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

1

Introduction

1.1. Scope of the Document
This document presents the AT Commands Set for Quectel cellular engines MC20 and MC30.

1.2. AT Command Syntax
The “AT” or “at” prefix must be set at the beginning of each command line. To terminate a command line
enter
.
Commands
are
usually
followed
by
a
response
that
includes
“”. Throughout this document, only the responses are presented,
“” are omitted intentionally.
The AT Commands Set implemented by MC20 & MC30 is a combination of GSM07.05, GSM07.07 and
ITU-T recommendation V.25ter as well as the AT commands developed by Quectel.
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”, or “AT&”, where “” is the command, and
“” is/are the argument(s) for that command. An example of this is “ATE”, which tells the DCE
whether received characters should be echoed back to the DTE according to the value of “”. “” is
optional and a default will be used if it is missing.


S parameter syntax

These AT commands have the format of “ATS=”, where “” is the index of the S register to set,
and “” is the value to assign to it.


Extended syntax

These commands can be operated in several modes, as following table:

MC20&MC30_AT_Commands_Manual

10 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Table 1: Types of AT Commands and Responses
Test Command

AT+=?

This command returns the list of parameters and value ranges
set by the corresponding Write Command or internal processes.

Read Command

AT+?

This command returns the currently set value of the parameter
or parameters.

Write Command

AT+=<…>

This command sets the user-definable parameter values.

Execution
Command

AT+

This command reads non-variable parameters affected by
internal processes in the GSM engine.

1.2.1. Combining AT Commands on the Same Command Line
You can enter several AT commands on the same line. In this case, you do not need to type the “AT” or
“at” prefix before every command. Instead, you only need to type “AT” or “at” at the beginning of the
command line. Please note that use a semicolon as command delimiter.
The command line buffer can accept a maximum of 256 characters. If the input characters exceeded the
maximum, then no command will be executed and TA will return “ERROR”.

1.2.2. Entering Successive AT Commands on Separate Lines
When you need to enter a series of AT commands on separate lines, please note that you need to wait the
final response (for example OK, CME error, CMS error) of the last AT command you entered before you
enter the next AT command.

1.3. Supported Character Sets
MC20/MC30 AT command interface defaults to the GSM character set. The module supports the following
character sets:







GSM
UCS2
HEX
IRA
PCCP437
8859-1

The character set can be configured and interrogated using the AT+CSCS command (GSM 07.07). The
character set is defined in GSM specification 07.05. 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
MC20&MC30_AT_Commands_Manual

11 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

field and (U)SIM Application Toolkit alpha strings.

1.4. Flow Control
Flow control is very important for correct communication between the GSM engine and the DTE. In cases
such as a data or fax call, the sending device is transferring data faster than the receiving side ready to
accept. When the receiving buffer reaches its capacity, the receiving device should be able to cause the
sending device to pause until it catches up.
There are basically two approaches to achieve data flow control: software flow control and hardware flow
control. MC20/MC30 supports both two kinds of flow control.
In multiplex mode, it is recommended to use the hardware flow control.
The default flow control approach of MC20/MC30 is disabled.

1.4.1. Software Flow Control (XON/XOFF Flow Control)
Software flow control sends different characters to stop (XOFF, decimal 19) and resume (XON, decimal
17) data flow. It is quite useful in some applications that only use three wires on the serial interface.
The default flow control approach of MC20/MC30 is disabled. To enable software flow control in the DTE
interface and within GSM engine, type the following AT command:
AT+IFC=1,1
This setting is stored in volatile memory, for use after restart. AT+IFC=1,1 should be stored to the
user profile with AT&W.
Ensure that all communication software packages (e.g. ProComm Plus, Hyper Terminal or WinFax Pro)
use software flow control.

NOTE
Software Flow Control should not be used for data calls where binary data will be transmitted or received
(e.g. TCP/IP), because the DTE interface may interpret binary data as flow control characters.

MC20&MC30_AT_Commands_Manual

12 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

1.4.2. Hardware Flow Control (RTS/CTS Flow Control)
The default flow control approach of MC20/MC30 is disabled. To enable hardware flow control (RTS/CTS
flow control) in the DTE interface and within GSM engine, type the following AT command:
AT+IFC=2,2
This setting is stored volatile, for use after restart. AT+IFC=2,2 should be stored to the user profile
with AT&W.
Hardware flow control achieves the data flow control by controlling the RTS/CTS line. When the data
transfer is suspended, the CTS line is set inactive until the transfer from the receiving buffer has been
completed. When the receiving buffer is ready to receive more data, CTS goes active once again.
To achieve hardware flow control, ensure that the RTS/CTS lines are available on your application platform.

1.5. Unsolicited Result Codes
A URC is a report message sent from the ME to the TE. An unsolicited result code can be delivered
automatically when an event occurs, reflect changes in system state, or act as the result of a query the
ME received before. It is often delivered due to occurrences of errors in executing the queries. However,
a URC is not issued as a direct response to an executed AT command. AT commands have their own
implementations to validate inputs such as OK or ERROR.
Typical URCs may be information about incoming calls, received SMS, changing temperature, status of
the battery, etc. A summary of URCs is listed in Chapter 16.6.
When sending a URC, the ME activates its Ring Interrupt (Logic “l”), i.e. the line goes active low for a few
milliseconds. If an event which delivers a URC coincides with the execution of an AT command, the URC
will be output after command execution has been completed.

MC20&MC30_AT_Commands_Manual

13 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2

General Commands

2.1. ATI
ATI

Display Product Identification Information

Display Product Identification Information

Execution Command
ATI

Response
TA returns a product information text.
Quectel_Ltd

Revision: 
OK

Maximum Response Time

300ms

Reference
V.25ter

Parameter



Identifier of device type
Identification text of product software version

Example
ATI
Quectel_Ltd
Quectel_MC30
Revision: MC30CAR01A01
OK

MC20&MC30_AT_Commands_Manual

14 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.2. AT+GMI
AT+GMI

Request Manufacturer Identification

Request Manufacturer Identification

Test Command

Response

AT+GMI=?

OK

Execution Command

Response
TA reports one or more lines of information text which permits
the user to identify the manufacturer.

AT+GMI

Quectel_Ltd

Revision: MTK 0828
OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


Identifier of device type

2.3. AT+GMM
AT+GMM

Request TA Model Identification

Request TA Model Identification

Test Command

Response

AT+GMM=?

OK

Execution Command

Response
TA returns a product model identification text.

AT+GMM


OK
Maximum Response Time

300ms

Reference
V.25ter

MC20&MC30_AT_Commands_Manual

15 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


Identifier of device type

2.4. AT+GMR
AT+GMR

Request TA Revision Identification of Software Release

Request TA Revision Identification of Software Release

Test Command

Response

AT+GMR=?

OK

Execution Command

Response
TA reports one or more lines of information text which permits
the user to identify the revision of software release.

AT+GMR

Revision: 
OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


Identification text of product software version

Example
AT+GMR
Revision: MC30CAR01A01
OK

2.5. AT+GOI
AT+GOI

Request Global Object Identification

Request Global Object Identification

Test Command

Response

AT+GOI=?

OK

Execution Command

Response
TA reports one or more lines of information text which permits

AT+GOI
MC20&MC30_AT_Commands_Manual

16 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

the user to identify the device, based on the ISO system for
registering unique object identifiers.

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


Identifier of device type

NOTE
See CCITT Recommendation X.208 and CCITT Recommendation 209 for the format of . For
example, in MC20 or MC30 module, string “MC20” or “MC30” is displayed.

2.6. AT+CGMI
AT+CGMI

Request Manufacturer Identification

Request Manufacturer Identification

Test Command

Response

AT+CGMI=?

OK

Execution Command

Response
TA returns manufacturer identification text.

AT+CGMI

Quectel_Ltd

Revision: MTK 0828
OK
Maximum Response Time

300ms

Reference
GSM 07.07

Parameter


Identifier of device type

MC20&MC30_AT_Commands_Manual

17 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.7. AT+CGMM
AT+CGMM

Request Model Identification

Request Model Identification

Test Command

Response

AT+CGMM=?

OK

Execution Command

Response
TA returns product model identification text.

AT+CGMM


OK
Maximum Response Time

300ms

Reference
GSM 07.07

Parameter


Identifier of device type

2.8. AT+CGMR
AT+CGMR

Request TA Revision Identification of Software Release

Request TA Revision Identification of Software Release

Test Command

Response

AT+CGMR=?

OK

Execution Command

Response
TA returns product software version identification text.

AT+CGMR

Revision: 
OK
Maximum Response Time

300ms

Reference
GSM 07.07

Parameter


Identification text of product software version

MC20&MC30_AT_Commands_Manual

18 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.9. AT+GSN
AT+GSN

Request International Mobile Equipment Identity (IMEI)

Request International Mobile Equipment Identity (IMEI)

Test Command

Response

AT+GSN=?

OK

Execution Command

Response
TA reports the IMEI (International Mobile Equipment Identity)
number in information text which permits the user to identify
the individual ME device.

AT+GSN


OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


IMEI of the ME

NOTE
The serial number (IMEI) varies with the individual ME device.

2.10. AT+CGSN

Request Product Serial Number Identification

The command returns International Mobile Equipment Identity (IMEI) number of ME. It is identical with
AT+GSN.

AT+CGSN

Request Product Serial Number Identification

Test Command

Response

AT+CGSN=?

OK

Execution Command

Response

AT+CGSN


OK

Maximum Response Time

MC20&MC30_AT_Commands_Manual

300ms

19 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Reference
GSM 07.07

Parameter


IMEI of the ME

NOTE
The serial number (IMEI) varies with the individual ME device.

2.11. AT+QGSN
AT+QGSN

Request Product Serial Number Identification (IMEI)

Request Product Serial Number Identification (IMEI)

Test Command

Response

AT+QGSN=?

OK

Execution Command

Response

AT+QGSN

+QGSN: 
OK

Maximum Response Time

300ms

Reference

Parameter


A string parameter which indicates the IMEI of the ME

NOTE
The serial number (IMEI) varies with the individual ME device.

Example
AT+QGSN
+QGSN: “865734020000749”

//Query the IMEI

OK
MC20&MC30_AT_Commands_Manual

20 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.12. AT&F
AT&F

Set All Current Parameters to Manufacturer Defaults

Set All Current Parameters to Manufacturer Defaults

Execution Command

Response
TA sets all current parameters to the manufacturer defined
profile.

AT&F[]

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0

Set all TA parameters to manufacturer defaults

NOTE
The command resets AT command settings to manufacturer default values. However, it does not change
the current baud rate of UART.

2.13. AT&V
AT&V

Display Current Configuration

Display Current Configuration

Execution Command

Response
TA returns the current parameter setting.

AT&V[]

ACTIVE PROFILE

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0

Profile number

MC20&MC30_AT_Commands_Manual

21 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Table 2: Current Configuration List When Executing AT&V Command
AT&V or AT&V0
AT&V
ACTIVE PROFILE
E: 1
Q: 0
V: 1
X: 4
S0: 0
S2: 43
S3: 13
S4: 10
S5: 8
S6: 2
S7: 60
S8: 2
S10: 15
+CR: 0
+FCLASS: 0
+CMGF: 0
+CSDH: 0
+ILRR: 0
+CMEE: 1
+CBST: 7,0,1
+IFC: 0,0
+ICF: 3,3
+CNMI: 2,1,0,0,0
+CSCS: “GSM”
+IPR: 0
&C: 1
&D: 0
+CSTA: 129
+CCWE: 0
+QSIMSTAT: 0
+CMUX: -1
+CCUG: 0,0,0
+CLIP: 0
+COLP: 0
+CCWA: 0
+CAOC: 1
+CLIR: 0
+CUSD: 0
+CREG: 0
MC20&MC30_AT_Commands_Manual

22 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

+QSIMDET: 0,0,0
+QMIC: 4,9,8
+QSIDET(NORMAL_AUDIO): 80
+QSIDET(HEADSET_AUDIO): 144
+QCLIP: 0
+QCOLP: 0
+CSNS: 0
OK

2.14. AT&W
AT&W

Store Current Parameters to User Defined Profile

Store Current Parameters to User Defined Profile

Execution Command

Response
TA stores the current parameter setting in the user defined
profile.

AT&W[]

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0

Profile number to store current parameters

NOTE
The profile defined by user is stored in nonvolatile memory.

2.15. ATQ
ATQ

Set Result Code Presentation Mode

Set Result Code Presentation Mode

Execution Command
ATQ[]

MC20&MC30_AT_Commands_Manual

Response
This parameter setting determines whether or not the TA
transmits any result code to the TE. Information text
transmitted in response is not affected by this setting.

23 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

If =0:
OK
If =1:
(none)
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0
1

2.16. ATV
ATV

TA transmits result code
Result codes are suppressed and not transmitted

TA Response Format

TA Response Format

Execution Command

Response
This parameter setting determines the contents of the header
and trailer transmitted with result codes and information
responses.

ATV[]

When =0:
0
When =1:
OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0
1

Information response: 
Short result code format: 
Information response: 
Long result code format: 

NOTE
The result codes, their numeric equivalents and brief descriptions of the use of each are listed in the
following table.

MC20&MC30_AT_Commands_Manual

24 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Example
ATV1
OK
AT+CSQ
+CSQ: 30,0

//Set =1

OK
ATV0
0
AT+CSQ
+CSQ: 30,0
0

//When =1, the result code is OK
//Set =0

//When =0, the result code is 0

Table 3: ATV0&ATV1 Result Codes Numeric Equivalents and Brief Descriptions
ATV1

ATV0

Description

OK

0

Acknowledges execution of a command

CONNECT

1

A connection has been established; the DCE is moving
from command mode to data mode

RING

2

The DCE has detected an incoming call signal from
network.

NO CARRIER

3

The connection has been terminated or the attempt to
establish a connection is failed.

ERROR

4

Command not recognized, command line maximum
length exceeded, parameter value invalid, or other
problem with processing the command line

NO DIALTONE

6

No dial tone detected

BUSY

7

Engaged (busy) signal detected

NO ANSWER

8

“@” (Wait for Quiet Answer) dial modifier was used, but
remote ringing followed by five seconds of silence was
not detected before expiration of the connection timer
(S7)

PROCEEDING

9

An AT command is being processed

Manufacturer-specific

Same as CONNECT, but includes manufacturerspecific text that may specify DTE speed, line speed,
error control, data compression, or other status.

CONNECT 

MC20&MC30_AT_Commands_Manual

25 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.17. ATX
ATX

Set CONNECT Result Code Format and Monitor Call Progress

Set CONNECT Result Code Format and Monitor Call Progress

Execution Command

Response
This parameter setting determines whether or not the TA
detected the presence of a dial tone or busy signal, and
whether or not the TA transmits particular result codes.

ATX[]

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0

CONNECT result code returned only. Dial tone and busy signal detection are
both disabled.

1

CONNECT result code returned only. Dial tone and busy signal
detection are both disabled.

2

CONNECT result code returned. Dial tone detection is enabled, while
busy signal detection is disabled.

3

CONNECT result code returned. Dial tone detection is disabled, while
busy signal detection is enabled.

4

CONNECT result code returned. Dial tone and busy signal detection
are both enabled.

NOTES
1.
2.

If parameter is omitted, the command has the same behavior as ATX0.
The factory default is =4.

2.18. ATZ
ATZ

Set All Current Parameters to User Defined Profile

Set All Current Parameters to User Defined Profile

Execution Command
ATZ[]

Response
TA sets all current parameters to the user defined profile.
OK

Maximum Response Time

MC20&MC30_AT_Commands_Manual

300ms

26 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Reference
V.25ter

Parameter


0

Reset to profile number 0

NOTES
1.

The command restores the current AT command settings to the user defined profile in non-volatile

2.
3.
4.

memory, if one was stored with AT&W before.
Any additional AT commands on the same command line are ignored.
The command will not change the current baud rate of UART.
If the user profile is invalid, it will default to the factory default profile.

2.19. AT+CFUN
AT+CFUN

Set ME Functionality

Set ME Functionality

Test Command

Response

AT+CFUN=?

+CFUN: (list of supported s),(list of supported s)
OK

Read Command

Response

AT+CFUN?

+CFUN: 
OK

Write Command

Response

AT+CFUN=[,]

OK
If there is any error related to ME functionality:
+CME ERROR: 

Maximum Response Time

15s, determined by network.

Reference
GSM 07.07

Parameter


0

Minimum functionality

MC20&MC30_AT_Commands_Manual

27 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual



1
4

Full functionality (Default)
Disable the ME from both transmitting and receiving RF signals

0

Do not reset the ME before setting it to  power level
This is default when  is not given
Reset the ME before setting it to  power level

1

Example
AT+CFUN=0
+CPIN: NOT READY

//Switch the ME to minimum functionality

OK
AT+COPS?
+COPS: 0

//Not registered to any operator

OK
AT+CPIN?
+CME ERROR: 13
AT+CFUN=1
OK

//(U)SIM failure
//Switch the ME to full functionality

+CPIN: SIM PIN
AT+CPIN=1234
+CPIN: READY
OK
Call Ready
AT+CPIN?
+CPIN: READY
OK
AT+COPS?
+COPS: 0,0,“CHINA MOBILE”

//Registered to an operator

OK

2.20. AT+QPOWD
AT+QPOWD

Power off

Power off

Write Command

Response

AT+QPOWD=

When =0:

MC20&MC30_AT_Commands_Manual

28 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

OK
When =1:
NORMAL POWER DOWN
Maximum Response Time

300ms

Reference

Parameter


0
1

Urgent power off (Do not send out URC NORMAL POWER DOWN)
Normal power off (Send out URC NORMAL POWER DOWN)

Example
AT+QPOWD=0
OK
AT+QPOWD=1
NORMAL POWER DOWN

2.21. AT+CMEE
AT+CMEE

//Urgent power off: returns OK
//Normal power off: sends out URC NORMAL POWER DOWN

Report Mobile Equipment Error

Report Mobile Equipment Error

Test Command

Response

AT+CMEE=?

+CMEE: (list of supported s)
OK

Read Command

Response

AT+CMEE?

+CMEE: 
OK

Write Command

Response

AT+CMEE=[]

TA disables or enables the use of result code +CME ERROR:
 as an indication of an error related to the functionality of
the ME.
OK

Maximum Response Time

300ms

Reference
GSM 07.07

MC20&MC30_AT_Commands_Manual

29 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


0
1
2

Disable result code
Enable result code and use numeric values
Enable result code and use verbose values

Example
AT+CMEE=0
OK
AT+CPIN=1234
ERROR
AT+CMEE=1
OK
AT+CPIN=1234
+CME ERROR: 10
AT+CMEE=2
OK
AT+CPIN=1234
+CME ERROR: SIM not inserted

2.22. AT+CSCS
AT+CSCS

//Disable result code

//Only ERROR will be displayed
//Enable error result code with numeric values

//Enable error result code with verbose (string) values

Select TE Character Set

Select TE Character Set

Test Command

Response

AT+CSCS=?

+CSCS: (list of supported s)
OK

Read Command

Response

AT+CSCS?

+CSCS: 
OK

Write Command

Response

AT+CSCS=

Set character set  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
GSM 07.07

MC20&MC30_AT_Commands_Manual

30 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


“GSM”
“HEX”
“IRA”
“PCCP437”
“UCS2”
“8859-1”

GSM default alphabet
Character strings consist only of hexadecimal numbers from 00 to FF
International reference alphabet
PC character set code
UCS2 alphabet
ISO 8859 Latin 1 character set

Example
AT+CSCS?
+CSCS: “GSM”

//Query the current character set

OK
AT+CSCS=“UCS2”
OK
AT+CSCS?
+CSCS: “UCS2”

//Set the character set to “UCS2”

OK

2.23. AT+GCAP Request Complete TA Capabilities List
AT+GCAP Request Complete TA Capabilities List
Test Command

Response

AT+GCAP=?

OK

Execution Command

Response
TA reports a list of additional capabilities.

AT+GCAP

+GCAP: 
OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


+CGSM
+FCLASS

GSM function is supported
FAX function is supported

MC20&MC30_AT_Commands_Manual

31 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

3

Serial Interface Control Commands

3.1. AT&C
AT&C

Set DCD Function Mode

Set DCD Function Mode

Execution Command

Response
This parameter determines how the state of circuit 109 (DCD)
relates to the detection of received line signal from the distant
end.

AT&C[]

OK
Maximum Response Time

300ms

Reference
V.25ter

Parameter


0
1

3.2. AT&D
AT&D

DCD (data carrier detection) function is always ON
DCD (data carrier detection) function is ON only in the presence of data carrier

Set DTR Function Mode

Set DTR Function Mode

Execution Command
AT&D[]

Response
This parameter determines how the TA responds when circuit
108/2 (DTR) is changed from low to high level during data
mode.
OK

Maximum Response Time

300ms

Reference
V.25ter

MC20&MC30_AT_Commands_Manual

32 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


0
1
2

3.3. AT+ICF
AT+ICF

TA ignores status on DTR.
LowHigh on DTR: Change to command mode while remaining the connected call.
LowHigh on DTR: Disconnect data call and change to command mode. When DTR
is in high level, auto-answer function is disabled.

Set TE-TA Control Character Framing

Set TE-TA Control Character Framing

Test Command

Response

AT+ICF=?

+ICF: (list of supported s),(list of supported
s)
OK

Read Command

Response

AT+ICF?

+ICF: ,
OK

Write Command
AT+ICF=[,]

Response
This parameter setting determines the serial interface
character framing format and parity received by TA from TE.
OK

Maximum Response Time

300ms

Reference
V.25ter

Parameter


1
2
3
4
5
6

8 data 0 parity 2 stop
8 data 1 parity 1 stop
8 data 0 parity 1 stop
7 data 0 parity 2 stop
7 data 1 parity 1 stop
7 data 0 parity 1 stop



0
1
2
3

Odd
Even
Mark
Space

MC20&MC30_AT_Commands_Manual

33 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

NOTES
1.

The command is applied for command mode.

2.

The  field is ignored if the  field specifies no parity.

3.4. AT+IFC
AT+IFC

Set TE-TA Local Data Flow Control

Set TE-TA Local Data Flow Control

Test Command

Response

AT+IFC=?

+IFC: (list of supported s),(list of supported
s)
OK

Read Command

Response

AT+IFC?

+IFC: ,
OK

Write Command
AT+IFC=,

Response
This parameter setting determines the data flow control on the
serial interface for data mode.
OK

Maximum Response Time

300ms

Reference
V.25ter

Parameter


Specifies the method that will be used by TE when receiving data from TA
0
None
1
XON/XOFF
2
RTS flow control



Specifies the method that will be used by TA when receiving data from TE
0
None
1
XON/XOFF
2
CTS flow control

Example
AT+IFC=2,2
OK
MC20&MC30_AT_Commands_Manual

//Open the hardware flow control

34 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

AT+IFC?
+IFC: 2,2
OK

3.5. AT+IPR
AT+IPR

Set TE-TA Fixed Local Rate

Set TE-TA Fixed Local Rate

Test Command

Response

AT+IPR=?

+IPR: (list of supported auto detectable s),(list of
supported fixed-only s)
OK

Read Command

Response

AT+IPR?

+IPR: 
OK

Write Command
AT+IPR=

Response
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 set by the
command takes effect.
OK

Maximum Response Time

300ms

Reference
V.25ter

Parameter


Baud rate per second
0 (Autobauding)
300
600
1200
2400
4800
9600
14400
19200
28800
38400

MC20&MC30_AT_Commands_Manual

35 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

57600
115200

NOTES
1.
2.

3.
4.
5.

The default configuration of AT+IPR is adaptive baud rate enabled (AT+IPR=0).
If a fixed baud rate is set, make sure that both TE (DTE, usually external processor) and TA (DCE,
Quectel GSM module) are configured to the same rate. If adaptive baud rate is enabled, the TA could
automatically recognize the baud rate currently used by the TE after receiving “AT” or “at” string.
The value of AT+IPR cannot be restored with AT&F and ATZ, but it is still storable with AT&W and
visible in AT&V.
In multiplex mode, the baud rate cannot be changed by the write command AT+IPR=, and the
setting is invalid and not stored even if AT&W is executed after the write command.
A selected baud rate takes effect after the Write Commands are executed and acknowledged by OK.

Example
AT+IPR=115200
OK
AT&W

//Set fixed baud rate to 115200bps

//Store current setting, that is, the serial communication
speed is 115200bps after restarting module.

OK
AT+IPR?
+IPR: 115200
OK

3.5.1. Adaptive Baud Rate
To take advantage of adaptive baud rate mode, specific attention must be paid to the following
requirements:
1.

Adaptive baud rate synchronization between TE and TA.
 Ensure that TE and TA are correctly synchronized and the baud rate used by the TE is detected
by the TA. The baud rate can be synchronized simply by use an “AT” or “at” string. This is
necessary after customer activates adaptive baud rate or when customer starts up the module
with adaptive baud rate enabled.


It is recommended to wait for 2 to 3 seconds before sending the first “AT” or “at” string after the
module is started up with adaptive baud rate enabled. Otherwise undefined characters might be
returned.

MC20&MC30_AT_Commands_Manual

36 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

2.

Restriction on adaptive baud rate operation.
 The serial interface shall be used with 8 data bits, no parity and 1 stop bit (factory setting).





The command “A/” can’t be used.
Only the string “AT” or “at” can be detected (either “AT” or “at”).
URCs that may be issued before the TA detect a new baud rate by receiving the first AT character,
and they will be sent at the previously detected baud rate.
If TE’s baud rate is changed after TA has recognized the earlier baud rate, loss of synchronization
between TE and TA would be encountered and an “AT” or “at” string must be re-sent by TE to
regain synchronization on baud rate. To avoid undefined characters during baud rate
resynchronization and the possible malfunction of resynchronization, it is not recommended to
switch TE’s baud rate when adaptive baud rate is enabled. Especially, this operation is forbidden
in data mode.

3.

Adaptive baud rate and baud rate after restarting.
 In the adaptive baud rate mode, the detected baud rate is not saved. Therefore, resynchronization
is required after restarting the module.
 Unless the baud rate is determined, an incoming CSD call can’t be accepted. This must be taken



into account when adaptive baud rate and auto-answer mode (ATS0≠0) are enabled at the same
time, especially if (U)SIM PIN 1 authentication is done automatically and the setting ATS0≠0 is
stored to the user profile with AT&W.
Until the baud rate is synchronized, URCs after restarting will not be output when adaptive baud
rate is enabled.

4.

Adaptive baud rate and multiplex mode.
If adaptive baud rate is active, it is not recommended to switch to multiplex mode.

5.

Adaptive baud rate and Windows modem.
 The baud rate used by Windows modem can be detected while setting up a dial-up GPRS/CSD
connection. However, some Windows modem drivers switch TE’s baud rate to default value
automatically after the GPRS call is terminated. In order to prevent no response to the Windows
modem when it happens, it is not recommended to establish the dial-up GPRS/CSD connection
in adaptive baud rate mode.
 Based on the same considerations, it is also not recommended to establish the FAX connection
in adaptive baud rate mode for PC FAX application, such as WinFax.

NOTE
To assure reliable communication and avoid any problem caused by undetermined baud rate between
DCE and DTE, it is strongly recommended to configure a fixed baud rate and save it instead of using
adaptive baud rate after start-up.

MC20&MC30_AT_Commands_Manual

37 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

3.6. AT+CMUX
AT+CMUX

Multiplexer Control

Multiplexer Control

Test Command

Response

AT+CMUX=?

+CMUX: (list of supported s),(s),(s),(s),(s),(s),(s),(s),(s)
OK

Read Command

Response

AT+CMUX?

+CMUX: ,0,5,127,10,3,30,10,2
OK
If there is any error, response:
ERROR

Write Command

Response

AT+CMUX=[[,[,[,[,[,[,[,[,]]]]]]]]]

OK
If there is any error related to ME functionality:
+CME ERROR: 

Maximum Response Time

300ms

Reference
GSM 07.07

Parameter


Multiplexer transparency mechanism
0
Basic option



The way by which the multiplexer control channel is set up
0
UIH frames used only



Transmission rate
5
115200bit/s



Maximum frame size
127



Acknowledgement timer in a unit of ten milliseconds
10



Maximum number of re-transmissions
3



Response timer for the multiplexer control channel in a unit of ten milliseconds
30



Wake up response timers in seconds
10

MC20&MC30_AT_Commands_Manual

38 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual



Window size, for advanced operation with Error Recovery options
2

NOTES
1.
2.
3.

Advanced option with Error Recovery options is not supported.
The multiplexing transmission rate is fixed according to the current serial baud rate. It is recommended
to enable multiplexing protocol under 115200bps baud rate.
Multiplexer control channels are listed as follows:
Channel Number
None
1
2
3
4

3.7. AT+QEAUART
AT+QEAUART

Type
Multiplexer Control
07.07 and 07.05
07.07 and 07.05
07.07 and 07.05
07.07 and 07.05

DLCI
0
1
2
3
4

Configure Multi UART Function

Configure Multi UART Function

Test Command

Response

AT+QEAUART=?

+QEAUART: (list of supported s),
OK

Read Command

Response

AT+QEAUART?

+QEAUART: ,
OK
If there is any error, response:
ERROR

Write Command

Response

AT+QEAUART=,

OK
If there is any error related to ME functionality:
+CME ERROR: 

Maximum Response Time

300ms

Reference
Quectel

MC20&MC30_AT_Commands_Manual

39 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


0
1
2
3

Disable multi UART function
UART 1 and UART 3 are used as AT UART port
UART 1 and UART 2 are used as AT UART port
UART 1, UART 2 and UART 3 are used as AT UART port



2
3
99

UART 2 is used as debug port
UART 3 is used as debug port
No UART port is used as debug port

NOTES
1. When multi UART function is enabled, the Debug UART port can be used to execute AT commands.
For more details about the Debug UART port, please refer to document [8] and document [9].
2. The Aux UART port cannot be used to execute data transmission-related AT commands. It is used for
modem communication with MC20 or MC30’s embedded GNSS engine.

3.8. AT+QSEDCB
AT+QSEDCB

Configure Parameters of the Multi UART

Configure Parameters of the Multi UART

Test Command

Response

AT+QSEDCB=?

+QSEDCB: (list of supported s),(list of supported
s),(list of supported s),(list of supported
s),(list of supported s)
OK

Read Command

Response

AT+QSEDCB?

+QSEDCB:  ,,,<
parity>[;  ,,,]
OK
If there is any error, response:
ERROR

Write Command

Response

AT+QSEDCB=,,
,,

OK
If there is any error related to ME functionality:
+CME ERROR: 

Maximum Response Time

MC20&MC30_AT_Commands_Manual

300ms

40 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Reference
Quectel

Parameter


Baud rate
1200
2400
4800
9600
14400
19200
28800
38400
57600
115200



Data bits
5
6
7
8



Stop bits
1
2
3



Parity
0
1
2
3



None
Odd
Even
Mark

The UART port to be configured
2

The selected UART port is UART 2

3

The selected UART port is UART 3

NOTES
1.
2.

This command can be saved by AT&W.
When multi UART port function is enabled, the AT+QSEDCB command will be executed successfully;
otherwise an error will be returned.

MC20&MC30_AT_Commands_Manual

41 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

4

Status Control Commands

4.1. AT+CEER
AT+CEER

Extended Error Report

Extended Error Report

Test Command

Response

AT+CEER=?

OK

Execution Command

Response
TA returns an extended report of the reason for the last call
release.

AT+CEER

+CEER: ,
OK
Maximum Response Time

300ms

Reference
GSM 07.07

Parameter



Location ID as number code. Location IDs are listed in Table 12.
Each ID is related with another table that contains a list of s.
Reason for last call release as number code. The number codes are listed in
several tables, sorted by different categories. The tables can be found proceeding
from the Location ID given in Chapter 16.9.

Example
AT+CEER
+CEER: 0,0

//Query error reporting in normal state, return “No error”

OK
ATD10086;
OK
AT+CLCC
+CLCC: 1,0,0,0,0,“10086”,129,“”

MC20&MC30_AT_Commands_Manual

42 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

OK
NO CARRIER
AT+CEER

//Established a call and the remote party hangs up the call
//Query error reporting, the =1 means “Cause for
protocol stack (PS) layer”, =16 means “Normal call
clearing”

+CEER: 1,16
OK

4.2. AT+CPAS
AT+CPAS

Mobile Equipment Activity Status

Mobile Equipment Activity Status

Test Command

Response

AT+CPAS=?

+CPAS: (list of supported s)
OK

Execution Command

Response
TA returns the activity status of ME.

AT+CPAS

+CPAS: 
OK
If there is any error related to ME functionality:
+CME ERROR: 
Maximum Response Time

300ms

Reference
GSM 07.07

Parameter


0
2
3
4

Ready
Unknown (ME is not guaranteed to respond to instructions)
Ringing
Call in progress or call hold

Example
AT+CPAS
+CPAS: 0
MC20&MC30_AT_Commands_Manual

//Module is idle
43 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

OK
ATD10086;
OK
AT+CLCC
+CLCC: 1,0,3,0,0,“10086”,129,“”
OK
AT+CPAS
+CPAS: 3

//An incoming call is ringing

OK
AT+CLCC
+CLCC: 1,0,0,0,0,“10086”,129,“”
OK
AT+CPAS
+CPAS: 4

//Call in progress

OK

4.3. AT+QINDRI
AT+QINDRI

RI Indication When Using URC

RI Indication When Using URC

Test Command

Response

AT+QINDRI=?

+QINDRI: (list of supported s)
OK

Read Command

Response

AT+QINDRI?

+QINDRI: 
OK

Write Command

Response

AT+QINDRI=

OK
If there is any error, response:
ERROR

Maximum Response Time

300ms

Reference
Quectel

MC20&MC30_AT_Commands_Manual

44 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter


0
1

Off
On

4.4. AT+QMOSTAT
AT+QMOSTAT

Show State of Mobile Originated Call

Show State of Mobile Originated Call

Test Command

Response

AT+QMOSTAT=?

+QMOSTAT: (list of supported s)
OK

Read Command

Response

AT+QMOSTAT?

+QMOSTAT: 
OK

Write Command

Response

AT+QMOSTAT=

OK
If there is an error, response:
ERROR

Maximum Response Time

300ms

Reference
Quectel

Parameter


0
1

Do not show call state of mobile originated call
Show call state of mobile originated call. After dialing call numbers, the URC string
of MO RING will be sent if the called party is alerted; and the URC string of MO
CONNECTED will be sent if the call is established

Example
AT+QMOSTAT=1
OK
ATD10086;
OK

//Show call state of mobile originated call

MO RING

//The called party is alerted

MC20&MC30_AT_Commands_Manual

45 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

MO CONNECTED

//The call is established

4.5. AT+QREFUSECS
AT+QREFUSECS

Refuse to Receive SMS/Incoming Call or Not

Refuse to Receive SMS/Incoming Call or Not

Test Command

Response

AT+QREFUSECS=?

+QREFUSECS: (list of supported s)[,(list of
supported s)]
OK

Read Command

Response

AT+QREFUSECS?

+QREFUSECS: ,
OK

Write Command

Response

AT+QREFUSECS=[,]

OK
If there is any error, response:
ERROR

Maximum Response Time

300ms

Reference
Quectel

Parameter


0
1

Receive the new SMS
Refuse to receive the new SMS



0
1

Receive the incoming call
Refuse to receive the incoming call

4.6. AT+QIURC
AT+QIURC

Enable or Disable Initial URC Presentation

Enable or Disable Initial URC Presentation

Test Command

Response

AT+QIURC=?

+QIURC: (list of supported s)
OK

Read Command

MC20&MC30_AT_Commands_Manual

Response

46 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

AT+QIURC?

+QIURC: 
OK

Write Command

Response

AT+QIURC=

OK
If there is any error, response:
ERROR

Maximum Response Time

300ms

Reference
Quectel

Parameter


0
1

Disable URC presentation
Enable URC presentation

NOTE
When the module powers on and initialization procedure is over. URC Call Ready will be presented if
 is 1.

4.7. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited
Indications
AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications
Test Command

Response

AT+QEXTUNSOL=?

+QEXTUNSOL: (list of supported s)
OK

Write Command

Response

AT+QEXTUNSOL=,

OK
If there is any error, response:
ERROR

Maximum Response Time

300ms

Reference
Quectel
MC20&MC30_AT_Commands_Manual

47 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

Parameter
 String type. Values currently reserved by the present document
“SQ”
Signal Quality Report. Displays signal strength and channel bit error rate (similar
“FN”
“MW”

SMS Message waiting. On receiving an SMS (as indicated by the +CMTI
indication) the SMS is decoded and checked to see if it contains one or more of
the message waiting indications (i.e. voicemail, email, fax, etc.). If so, an
unsolicited indication is shown in the form for each message type:

“UR”

+QMWT: ,,,,,, where 
is the message store containing the SM; index is the message index and ;
, ,  contain the number of waiting messages (with ‘0’
defined as clear indication, non-zero for one or more waiting messages) or blank
for not specified in this message.
Unsolicited result code. Produces an unsolicited indication in the following call

“BC”

state transition. Multiple notifications may occur for the same transition +QGURC:
, where  describes the current call state:
:
0 Terminated active call, at least one held call remaining
1 Attempt to make a Mobile Originated Call
2 Mobile Originated Call has failed for some reason
3 Mobile Originated Call is ringing
4 Mobile Terminated Call is queued (Call waiting)
5 Mobile Originated Call now has been connected
6 Mobile Originated or Mobile Terminated Call has been disconnected
7 Mobile Originated or Mobile Terminated Call is hung up.
8 Mobile Originated Call dialed a non-emergency number in emergency
mode
9 No answer for Mobile Originated Call
10 Remote number busy for Mobile Originated Call
Battery Charge. Displays battery connection status and battery charge level

“SM”

(similar to AT+CBC) in form +CBCN: , when values change.
Band mode. Displays band mode (similar to AT+QBAND) in form +QBAND:
 when value changes.
Additional SMS Information. Displays additional information about SMS events in

“CC”

the form of unsolicited messages of the following format +TSMSINFO:  where  is a standard CMS error in the format
defined by the AT+CMEE command i.e. either a number or a string.
Call information. Displays the disconnected call ID and the remaining call

0

numbers after one of the calls is disconnected. +CCINFO: ,
Disable

“BM”



to AT+CSQ) in form +CSQN: ,  when values change.
Forbidden network available only. When returning to a non-registered state, this
indicates whether all the available PLMNs are forbidden.

MC20&MC30_AT_Commands_Manual

48 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

1
2

Enable
Query

4.8. AT+QINISTAT
AT+QINISTAT

Query State of Initialization

Query State of Initialization

Test Command

Response

AT+QINISTAT=?

OK

Execution Command

Response

AT+QINISTAT

+QINISTAT: 
OK

Maximum Response Time

300ms

Reference
Quectel

Parameter


0
1
2
3

No initialization
Ready to execute AT command
Phonebook has finished initialization
SMS has finished initialization

NOTE
When  is 3, it also means initialization of (U)SIM card related functions has been finished.

4.9. AT+QNSTATUS
AT+QNSTATUS

Query GSM Network Status

Query GSM Network Status

Test Command

Response

AT+QNSTATUS=?

OK

Execution Command

Response

AT+QNSTATUS

+QNSTATUS: 
OK

MC20&MC30_AT_Commands_Manual

49 / 259

GSM/GPRS/GNSS Module Series
MC20&MC30 AT Commands Manual

If there is any error related to ME functionality:
+CME ERROR: 
Maximum Response Time

300ms

Reference
Quectel

Parameter


255
0
1
2

4.10. AT+QNITZ
AT+QNITZ

Not ready to retrieve network status
Work in normal state
No available cell
Only limited service is available

Network Time Synchronization

Network Time Synchronization

Test Command

Response

AT+QNITZ=?

+QNITZ: (list of supported s)
OK

Read Command

Response

AT+QNITZ?

+QNITZ: 
OK

Write Command

Response

AT+QNITZ=

OK
If there is any error related to ME functionality:
+CME ERROR: 

Maximum Response Time

300ms

Reference
Quectel

Parameter


0
Disable to synchronize time from GSM network
1
Enable to synchronize time from GSM network
If the function is enabled, on receiving network time message, an unsolicited indication
is shown in the format of: +QNITZ: