Quectel MC20 AT Commands Manual V1.0
User Manual:
Open the PDF directly: View PDF .
Page Count: 256
Download | |
Open PDF In Browser | View PDF |
MC20 AT Commands Manual GSM/GPRS/GNSS Module Series Rev. MC20_AT_Commands_Manual_V1.0 Date: 2016-07-08 www.quectel.com GSM/GPRS/GNSS Module Series MC20 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. Office 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233 Tel: +86 21 5108 6236 Email: info@quectel.com Or our local office. For more information, please visit: l e t l c a e i t u n Q ide f n o C http://www.quectel.com/support/salesupport.aspx For technical support, or to report documentation errors, please visit: http://www.quectel.com/support/techsupport.aspx 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. THE INFORMATION SUPPLIED HEREIN IS SUBJECT TO CHANGE WITHOUT PRIOR NOTICE. COPYRIGHT THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL 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. 2016. All rights reserved. MC20_AT_Commands_Manual Confidential / Released 1 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual About the Document History l e t l c a e i t u n Q ide f n o C Revision Date Author Description 1.0 2016-07-08 Hyman DING Initial MC20_AT_Commands_Manual Confidential / Released 2 / 255 GSM/GPRS/GNSS Module Series MC20 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 l e t l c a e i t u n Q ide f n o C 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 (Identical with +GSN) .............. 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 .......................................................................... 24 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 Configurations ...................................... 27 2.19. AT+CFUN Set Phone Functionality .................................................................................... 27 2.20. AT+QPOWD Power off ....................................................................................................... 29 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 ................................................................................................ 33 3.1. AT&C Set DCD Function Mode .......................................................................................... 33 3.2. AT&D Set DTR Function Mode ........................................................................................... 33 MC20_AT_Commands_Manual Confidential / Released 3 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 3.3. 3.4. 3.5. 3.6. AT+ICF Set TE-TA Control Character Framing .................................................................. 34 AT+IFC Set TE-TA Local Data Flow Control....................................................................... 35 AT+ILRR Set TE-TA Local Data Rate Reporting Mode ...................................................... 36 AT+IPR Set TE-TA Fixed Local Rate .................................................................................. 37 3.6.1. Adaptive Baud Rate .................................................................................................... 38 3.7. AT+CMUX Multiplexer Control............................................................................................ 40 3.8. AT+QEAUART Configure Dual UART Function ................................................................. 41 3.9. AT+QSEDCB Configure Parameters of the Dual UART .................................................... 42 4 Status Control Commands ............................................................................................................... 44 4.1. AT+CEER Extended Error Report ...................................................................................... 44 4.2. AT+CPAS Mobile Equipment Activity Status ...................................................................... 45 4.3. AT+QINDRI Indicate RI When Using URC ......................................................................... 46 4.4. AT+QMOSTAT Show State of Mobile Originated Call ........................................................ 47 4.5. AT+QREFUSECS Refuse to Receive SMS/Incoming Call or Not ..................................... 48 4.6. AT+QIURC Enable or Disable Initial URC Presentation .................................................... 48 4.7. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications .............................. 49 4.8. AT+QINISTAT Query State of Initialization ......................................................................... 51 4.9. AT+QNSTATUS Query GSM Network Status..................................................................... 51 4.10. AT+QNITZ Network Time Synchronization......................................................................... 52 4.11. AT+QLTS Obtain Latest Network Time Synchronized ....................................................... 53 4.12. AT+CTZU Network Time Synchronization and Update the RTC Time .............................. 54 4.13. AT+CTZR Network Time Synchronization Report .............................................................. 55 4.14. AT+QSIMDET Enable/Disable SIM Card Detection ........................................................... 55 4.15. AT+QSIMSTAT SIM Inserted Status Reporting .................................................................. 56 4.16. AT+QCGTIND Circuit Switched Call or GPRS PDP Context Termination Indication ........ 57 l e t l c a e i t u n Q ide f n o C 5 SIM Related Commands .................................................................................................................... 59 5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI) .................................... 59 5.2. AT+CLCK Facility Lock ....................................................................................................... 60 5.3. AT+CPIN Enter PIN ............................................................................................................ 62 5.4. AT+CPWD Change Password ............................................................................................ 63 5.5. AT+CRSM Restricted SIM Access...................................................................................... 65 5.6. AT+CSIM Generic SIM Access ........................................................................................... 66 5.7. AT+QCSPWD Change PS Super Password ...................................................................... 66 5.8. AT+CCID Show CCID ......................................................................................................... 67 5.9. AT+QCCID Show CCID ...................................................................................................... 68 5.10. AT+QGID Get SIM Card Group Identifier ........................................................................... 68 5.11. AT+QSIMVOL Select SIM Card Operating Voltage............................................................ 69 5.12. AT+QSPN Get Service Provider Name from SIM .............................................................. 70 5.13. AT+QTRPIN Times Remain to Input SIM PIN/PUK ........................................................... 70 6 Network Service Commands ............................................................................................................ 72 6.1. AT+COPS Operator Selection ............................................................................................ 72 6.2. AT+CREG Network Registration ........................................................................................ 74 6.3. AT+CSQ Signal Quality Report .......................................................................................... 75 MC20_AT_Commands_Manual Confidential / Released 4 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 6.4. 6.5. 6.6. 6.7. 6.8. 6.9. 7 8 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 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 .............................................................. 88 7.6. ATP Select Pulse Dialing .................................................................................................... 88 ATS0 Set Number of Rings before Automatically Answering Call...................................... 89 7.7. 7.8. ATS6 Set Pause before Blind Dialing ................................................................................. 89 7.9. ATS7 Set Number of Seconds to Wait for Connection Completion ................................... 90 7.10. ATS8 Set the Number of Seconds 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+CRLP Select Radio Link Protocol Parameter .............................................................. 97 7.18. AT+CSNS Single Numbering Scheme ............................................................................... 98 7.19. AT+CMOD Configure Alternating Mode Calls .................................................................... 98 7.20. AT+QSFR Preference Speech Coding ............................................................................... 99 7.21. AT+QSPCH Speech Channel Type Report ...................................................................... 100 7.22. AT+QDISH Disable ATH ................................................................................................... 101 l e t l c a e i t u n Q ide f n o C SMS Commands ............................................................................................................................... 102 8.1. AT+CSMS Select Message Service ................................................................................. 102 8.2. AT+CMGF Select SMS Message Format......................................................................... 103 8.3. AT+CSCA SMS Service Center Address.......................................................................... 103 8.4. AT+CPMS Preferred SMS Message Storage ................................................................... 105 8.5. AT+CMGD Delete SMS Message .................................................................................... 106 8.6. AT+CMGL List SMS Messages from Preferred Storage .................................................. 107 8.7. AT+CMGR Read SMS Message ...................................................................................... 110 8.8. AT+CMGS Send SMS Message....................................................................................... 113 8.9. AT+CMGW Write SMS Message to Memory ................................................................... 115 8.10. AT+CMSS Send SMS Message from Storage ................................................................. 116 8.11. AT+CMGC Send SMS Command .................................................................................... 117 8.12. AT+CNMI New SMS Message Indications ....................................................................... 119 8.13. AT+CRES Restore SMS Settings ..................................................................................... 121 MC20_AT_Commands_Manual Confidential / Released 5 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 8.14. 8.15. 8.16. 8.17. 8.18. 8.19. 8.20. 9 AT+CSAS Save SMS Settings ......................................................................................... 122 AT+CSCB Select Cell Broadcast SMS Messages ........................................................... 122 AT+CSDH Show SMS Text Mode Parameters ................................................................. 123 AT+CSMP Set SMS Text Mode Parameters .................................................................... 125 AT+QCLASS0 Store Class 0 SMS to SIM when Receiving Class 0 SMS ....................... 126 AT+QMGDA Delete All SMS ............................................................................................. 127 AT+QSMSCODE Configure SMS Code Mode ................................................................. 128 Phonebook Commands ................................................................................................................... 129 9.1. AT+CPBS Select Phonebook Memory Storage ............................................................... 129 9.2. AT+CPBW Write Phonebook Entry .................................................................................. 130 9.3. AT+CPBR Read Current Phonebook Entries ................................................................... 131 9.4. AT+CPBF Find Phonebook Entries .................................................................................. 132 9.5. AT+CNUM Subscriber Number ........................................................................................ 133 l e t l c a e i t u n Q ide f n o C 10 GPRS Commands ............................................................................................................................ 135 10.1. AT+CGATT Attach to/Detach from GPRS Service ........................................................... 135 10.2. AT+CGDCONT Define PDP Context ................................................................................ 136 10.3. AT+CGQREQ Quality of Service Profile (Requested)...................................................... 137 10.4. AT+CGQMIN Quality of Service Profile (Minimum Acceptable) ....................................... 138 10.5. AT+CGACT PDP Context Activate or Deactivate ............................................................. 139 10.6. AT+CGDATA Enter Data State.......................................................................................... 140 10.7. AT+CGPADDR Show PDP Address ................................................................................. 141 10.8. AT+CGCLASS GPRS Mobile Station Class ..................................................................... 142 10.9. AT+CGEREP Control Unsolicited GPRS Event Reporting .............................................. 143 10.10. AT+CGREG Network Registration Status ........................................................................ 144 10.11. AT+CGSMS Select Service for MO SMS Messages ....................................................... 145 10.12. AT+QGPCLASS Change GPRS Multi-slot Class ............................................................. 146 11 TCPIP Commands ............................................................................................................................ 147 11.1. AT+QIOPEN Start up TCP or UDP Connection ............................................................... 147 11.2. AT+QISEND Send Data through TCP or UDP Connection .............................................. 148 11.3. AT+QICLOSE Close TCP or UDP Connection ................................................................. 149 11.4. AT+QIDEACT Deactivate GPRS/CSD PDP Context ....................................................... 150 11.5. AT+QILPORT Set Local Port ............................................................................................ 151 11.6. AT+QIREGAPP Start TCPIP Task and Set APN, User Name and Password .................. 152 11.7. AT+QIACT Activate GPRS/CSD Context ......................................................................... 153 11.8. AT+QILOCIP Get Local IP Address .................................................................................. 153 11.9. AT+QISTAT Query Current Connection Status ................................................................ 154 11.10. AT+QISTATE Query Connection Status of the Current Access ....................................... 155 11.11. AT+QISSTAT Query the Current Server Status ................................................................ 157 11.12. AT+QIDNSCFG Configure Domain Name Server ............................................................ 158 11.13. AT+QIDNSGIP Query the IP Address of Given Domain Name ....................................... 159 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 ............................................................................ 161 MC20_AT_Commands_Manual Confidential / Released 6 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 11.17. 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. AT+QIPROMPT Set Prompt of „>‟ When Sending Data ................................................... 162 AT+QISERVER Configured as Server.............................................................................. 162 AT+QICSGP Select CSD or GPRS as the Bearer ........................................................... 164 AT+QISRVC Choose Connection ..................................................................................... 165 AT+QISHOWRA Set Whether or Not to Display the Address of Sender ....................... 166 AT+QISCON Save TCPIP Application Context ................................................................ 166 AT+QIMODE Select TCPIP Transfer Mode ...................................................................... 168 AT+QITCFG Configure Transparent Transfer Mode ........................................................ 169 AT+QISHOWPT Control Whether or Not to Show the Protocol Type .............................. 170 AT+QIMUX Control Whether or Not to Enable Multiple TCPIP 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 .......................................... 174 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 l e t l c a e i t u n Q ide f n o C 12 Supplementary Service Commands .............................................................................................. 180 12.1. AT+CCFC Call Forwarding Number and Conditions Control ........................................... 180 12.2. AT+CCUG Closed User Group Control ............................................................................ 182 12.3. AT+CCWA Call Waiting Control ........................................................................................ 183 12.4. AT+CHLD Call Hold and Multiparty .................................................................................. 184 12.5. AT+CLIP Calling Line Identification Presentation ............................................................. 186 12.6. AT+QCLIP Control Whether or Not to Show the Name of Incoming Call Number .......... 188 12.7. AT+CLIR Calling Line Identification Restriction ................................................................ 189 12.8. AT+COLP Connected Line Identification Presentation .................................................... 190 12.9. AT+QCOLP Show Alpha Field in +COLP String ............................................................... 191 12.10. AT+CUSD Unstructured Supplementary Service Data .................................................... 192 12.11. AT+CSSN Supplementary Services Notification .............................................................. 193 13 Audio Commands ............................................................................................................................ 195 13.1. ATL Set Monitor Speaker Loudness ................................................................................. 195 13.2. ATM Set Monitor Speaker Mode....................................................................................... 195 13.3. AT+VTD Tone Duration ..................................................................................................... 196 13.4. AT+VTS DTMF and Tone Generation............................................................................... 197 13.5. AT+CALM Alert Sound Mode ........................................................................................... 198 13.6. AT+CRSL Ringer Sound Level ......................................................................................... 198 13.7. AT+CLVL Loud Speaker Volume Level............................................................................. 199 13.8. AT+CMUT Mute Control ................................................................................................... 200 13.9. AT+QSIDET Change the Side Tone Gain Level ............................................................... 200 13.10. AT+QMIC Change the Microphone Gain Level ................................................................ 201 13.11. AT+QLDTMF Generate Local DTMF Tones ..................................................................... 202 13.12. AT+QAUDCH Swap the Audio Channels ......................................................................... 203 MC20_AT_Commands_Manual Confidential / Released 7 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 13.13. 13.14. 13.15. 13.16. 13.17. 13.18. AT+QAUDLOOP Audio Channel Loop Back Test ............................................................ 204 AT+QLTONE Generate Local Specific Tone ..................................................................... 204 AT+QTONEP Set DTMF Output Path .............................................................................. 205 AT+QTDMOD Set Tone Detection Mode .......................................................................... 206 AT+QTONEDET Detect DTMF ......................................................................................... 207 AT+QWDTMF Play DTMF Tone During the Call .............................................................. 209 14 Hardware Related Commands ........................................................................................................ 212 14.1. AT+CCLK Clock ................................................................................................................ 212 14.2. AT+QALARM Set Alarm.................................................................................................... 213 14.3. AT+CBC Battery Charge................................................................................................... 214 14.4. AT+QADC Read ADC ....................................................................................................... 214 14.5. AT+QSCLK Configure Slow Clock.................................................................................... 215 14.6. AT+QLEDMODE Configure the Network Indication LED Patterns .................................. 216 14.7. AT+QVBATT Configure the Threshold of Voltage ............................................................ 217 l e t l c a e i t u n Q ide f n o C 15 Others Commands ........................................................................................................................... 220 15.1. A/ Re-issue the Last Command Given ............................................................................. 220 15.2. ATE Set Command Echo Mode ........................................................................................ 220 15.3. ATS3 Set Command Line Termination Character ............................................................ 221 15.4. ATS4 Set Response Formatting Character ...................................................................... 221 15.5. ATS5 Set Command Line Editing Character .................................................................... 222 15.6. AT+QRIMODE Set RI Time .............................................................................................. 222 15.7. AT+QCFG="RFTXburst" Burst Transition Signal Indication ............................................. 223 16 Appendixes ....................................................................................................................................... 225 16.1. Related Documents ............................................................................................................. 225 16.2. Terms and Abbreviations ..................................................................................................... 226 16.3. Factory Default Settings Restorable with AT&F .................................................................. 226 16.4. AT Command Settings Storable with AT&W........................................................................ 229 16.5. AT Command Settings Storable with ATZ ........................................................................... 231 16.6. Summary of URC ................................................................................................................ 233 16.7. Summary of CME ERROR Codes ...................................................................................... 235 16.8. Summary of CMS ERROR Codes ...................................................................................... 239 16.9. Summary of Cause for Extended Error Report ................................................................... 241 16.9.1. Location ID for the Extended Error Report ............................................................... 241 16.9.2. Cause for Protocol Stack (PS) Layer ........................................................................ 242 16.9.3. Internal Cause for MM Layer..................................................................................... 254 16.9.4. Cause for PPP/IP-Stack ............................................................................................ 255 MC20_AT_Commands_Manual Confidential / Released 8 / 255 GSM/GPRS/GNSS Module Series MC20 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 ........................................................................................................ 225 TABLE 5: TERMS AND ABBREVIATIONS .............................................................................................. 226 TABLE 6: FACTORY DEFAULT SETTINGS RESTORABLE WITH AT&F .............................................. 226 TABLE 7: AT COMMAND SETTINGS STORABLE WITH AT&W ............................................................ 229 TABLE 8: AT COMMAND SETTINGS STORABLE WITH ATZ ................................................................ 231 TABLE 9: SUMMARY OF URC ................................................................................................................ 233 TABLE 10: DIFFERENT CODING SCHEMES OF +CME ERROR:........................................... 236 TABLE 11: DIFFERENT CODING SCHEMES OF +CMS ERROR: ........................................... 239 TABLE 12: LOCATION ID FOR THE EXTENDED ERROR REPORT .................................................... 241 TABLE 13: CAUSE FOR PROTOCOL STACK (PS) LAYER ................................................................... 242 TABLE 14: INTERNAL CAUSE FOR MM LAYER ................................................................................... 254 TABLE 15: CAUSE FOR PPP/IP-STACK ................................................................................................ 255 l e t l c a e i t u n Q ide f n o C MC20_AT_Commands_Manual Confidential / Released 9 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 1 Introduction 1.1. Scope of the Document l e t l c a e i t u n Q ide f n o C This document presents the AT Commands Set for Quectel cellular engine MC20. 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 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. “ ” is optional; if it is missing, then a default value is assigned. Extended syntax These commands can be operated in several modes, as following table: MC20_AT_Commands_Manual Confidential / Released 10 / 255 GSM/GPRS/GNSS Module Series MC20 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. l e t l c a e i t u n Q ide f n o C 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 The MC20 AT command interface defaults to the GSM character set. The MC20 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 MC20_AT_Commands_Manual Confidential / Released 11 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual of SMS and SMS Cell Broadcast Messages, as well as the entry and display of phone book entries text field and 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. l e t l c a e i t u n Q ide f n o C There are basically two approaches to achieve data flow control: software flow control and hardware flow control. MC20 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 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 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_AT_Commands_Manual Confidential / Released 12 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 1.4.2. Hardware Flow Control (RTS/CTS Flow Control) The default flow control approach of MC20 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. l e t l c a e i t u n Q ide f n o C 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_AT_Commands_Manual Confidential / Released 13 / 255 GSM/GPRS/GNSS Module Series MC20 AT Commands Manual 2 General Commands 2.1. ATI ATI Display Product Identification Information l e t l c a e i t u n Q ide f n o C Display Product Identification Information Execution Command ATI Response TA issues product information tex Quectel_Ltd