Quectel M35 Command Manual

M35
AT Commands Manual
GSM/GPRS Module Series
Rev. M35_AT_Commands_Manual_V1.0
Date: 2013-07-11
www.quectel.com
M35
GSM/GPRS Module
AT Commands Manual
Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company headquarter:
Quectel Wireless Solutions Co., Ltd.
Room 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233 Tel: +86 21 5108 6236 Mail: info@quectel.com
Or our local office, for more information, please visit:
http://www.quectel.com/support/salesupport.aspx
For technical support, to report documentation errors, please visit:
http://www.quectel.com/support/techsupport.aspx
GENERAL NOTES
QUECTEL OFFERS THIS 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 ARE SUBJECT TO CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS 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. 2013. All rights reserved.
M35_AT_Commands_Manual Confidential / Released 2 / 186
Revision
Date
Author
Description
1.0
2013-07-11
Bonnie ZHAO
Initial
Quectel
Confidential
M35 AT Commands Manual
GSM/GPRS Module
About the Document
History
M35_AT_Commands_Manual Confidential / Released 3 / 186
GSM/GPRS Module
M35 AT Commands Manual
Contents
About the document ................................................................................................................................... 3
Contents ....................................................................................................................................................... 4
Table Index ................................................................................................................................................. 10
1 Introduction ........................................................................................................................................ 11
1.1. Scope of the Document ........................................................................................................... 11
1.2. AT Command Syntax ............................................................................................................... 11
1.2.1. Combining AT Commands on the Same Command Line .............................................. 12
1.2.2. Entering Successive AT Commands on Separate Lines ............................................... 12
1.3. Supported Character Sets ....................................................................................................... 12
1.4. Flow Control ............................................................................................................................. 13
1.4.1. Software Flow Control (XON/XOFF Flow Control) ........................................................ 13
1.4.2. Hardware Flow Control (RTS/CTS Flow Control) .......................................................... 14
1.5. Unsolicited Result Code .......................................................................................................... 14
2 General Commands ........................................................................................................................... 15
2.1. ATI Display Product Identification Information ...................................................................... 15
2.2. AT+GMI Request Manufacture Identification ........................................................................ 15
2.3. AT+GMM Request TA Model Identification ........................................................................... 16
2.4. AT+GMR Request TA Revision Identification of Software Release ..................................... 16
2.5. AT+GOI Request Global Object Identification ...................................................................... 17
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&F Set all Current Parameters to Manufacturer Defaults ................................................ 20
2.12. AT&V Display Current Configuration .................................................................................... 20
2.13. AT&W Store Current Parameter to User Defined Profile ...................................................... 22
2.14. ATQ Set Result Code Presentation Mode ............................................................................ 22
2.15. ATV TA Response Format .................................................................................................... 23
2.16. ATX Set CONNECT Result Code Format and Monitor Call Progress ................................. 25
2.17. ATZ Set all Current Parameters to User Defined Profile ...................................................... 25
2.18. AT+CFUN Set Phone Functionality ...................................................................................... 26
2.19. AT+QPOWD Power off ......................................................................................................... 27
2.20. AT+CMEE Report Mobile Equipment Error .......................................................................... 28
2.21. AT+CSCS Select TE Character Set ...................................................................................... 29
2.22. AT+GCAP Request Complete TA Capabilities List ............................................................... 30
3 Serial Interface Control Commands ................................................................................................ 31
3.1. AT&C Set DCD Function Mode ............................................................................................ 31
3.2. AT&D Set DTR Function Mode ............................................................................................. 31
3.3. AT+ICF Set TE-TA Control Character Framing .................................................................... 32
M35_AT_Commands_Manual Confidential / Released 4 / 186
GSM/GPRS Module
M35 AT Commands Manual
3.4. AT+IFC Set TE-TA Local Data Flow Control ......................................................................... 33
3.5. AT+ILRR Set TE-TA Local Data Rate Reporting Mode ........................................................ 34
3.6. AT+IPR Set TE-TA Fixed Local Rate .................................................................................... 35
3.6.1. Adaptive Baud ................................................................................................................ 36
3.7. AT+CMUX Multiplexer Control .............................................................................................. 37
4 Status Control Commands ............................................................................................................... 38
4.1. AT+CEER Extended Error Report ........................................................................................ 38
4.2. AT+CPAS Mobile Equipment Activity Status ......................................................................... 39
4.3. AT+QINDRI Indicate RI when Using URC ............................................................................ 40
4.4. AT+QMOSTAT Show State of Mobile Originated Call .......................................................... 41
4.5. AT+QIURC Enable or Disable Initial URC Presentation ....................................................... 41
4.6. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications ................................ 42
4.7. AT+QINISTAT Query State of Initialization ........................................................................... 44
4.8. AT+QNSTATUS Query GSM Network Status ....................................................................... 44
4.9. AT+QSIMDET Switch on or off Detecting SIM Card............................................................. 45
5 SIM Related Commands .................................................................................................................... 46
5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI) ....................................... 46
5.2. AT+CLCK Facility Lock ......................................................................................................... 46
5.3. AT+CPIN Enter PIN .............................................................................................................. 48
5.4. AT+CPWD Change Password .............................................................................................. 49
5.5. AT+CRSM Restricted SIM Access ........................................................................................ 51
5.6. AT+CSIM Generic SIM Access ............................................................................................. 53
5.7. AT+QCSPWD Change PS Super Password ........................................................................ 53
5.8. AT+QCCID Show ICCID ....................................................................................................... 54
5.9. AT+QGID Get SIM Card Group Identifier ............................................................................. 54
5.10. AT+QSIMVOL Select SIM Card Operating Voltage .............................................................. 55
6 Network Service Commands ............................................................................................................ 56
6.1. AT+COPS Operator Selection .............................................................................................. 56
6.2. AT+CREG Network Registration ........................................................................................... 57
6.3. AT+CSQ Signal Quality Report ............................................................................................. 59
6.4. AT+CPOL Preferred Operator List ........................................................................................ 60
6.5. AT+COPN Read Operator Names ........................................................................................ 61
M35 _AT_Commands_Manual Confidential / Released 5 / 186
GSM/GPRS Module
M35 AT Commands Manual
6.6. AT+QBAND Get and Set Mobile Operation Band ................................................................ 61
7 Call Related Commands .................................................................................................................... 63
7.1. ATA Answer an Incoming Call ............................................................................................... 63
7.2. ATD Mobile Originated Call to Dial a Number ...................................................................... 64
7.3. ATH Disconnect Existing Connection ................................................................................... 65
7.4. +++ Switch From Data Mode to Command Mode ................................................................ 66
7.5. ATO Switch from Command Mode to Data Mode ................................................................ 67
7.6. ATP Select Pulse Dialing ...................................................................................................... 67
7.7. ATS0 Set Number of Rings before Automatically Answering Call ........................................ 68
7.8. ATS6 Set Pause before Blind Dialing ................................................................................... 68
7.9. ATS7 Set Number of Seconds to Wait for Connection Completion ........................................ 69
7.10. ATS8 Set the Number of Seconds to Wait for Comma Dial Modifier ................................... 70
7.11. ATS10 Set Disconnect Delay after Indicating the Absence of Data Carrier ......................... 70
7.12. ATT Select Tone Dialing ........................................................................................................ 71
7.13. AT+CBST Select Bearer Service Type ................................................................................. 71
7.14. AT+CSTA Select Type of Address ........................................................................................ 72
7.15. AT+CLCC List Current Calls of ME....................................................................................... 73
7.16. AT+CR Service Reporting Control ........................................................................................ 74
7.17. AT+CRC Set Cellular Result Codes for Incoming Call Indication ........................................ 75
7.18. AT+CRLP Select Radio Link Protocol Parameter ................................................................ 76
7.19. AT+CSNS Single Numbering Scheme ................................................................................. 77
7.20. AT+CMOD Configure Alternating Mode Calls....................................................................... 78
7.21. AT+QSFR Preference Speech Coding ................................................................................. 78
8 SMS Commands ................................................................................................................................. 80
8.1. AT+CSMS Select Message Service ..................................................................................... 80
8.2. AT+CMGF Select SMS Message Format ............................................................................. 81
8.3. AT+CSCA SMS Service Center Address .............................................................................. 81
8.4. AT+CPMS Preferred SMS Message Storage ....................................................................... 82
8.5. AT+CMGD Delete SMS Message ........................................................................................ ..84
8.6. AT+CMGL List SMS Messages from Preferred Store ........................................................ ..85
8.7. AT+CMGR Read SMS Message ........................................................................................ ..88
8.8. AT+CMGS Send SMS Message ......................................................................................... ..91
8.9. AT+CMGW Write SMS Message to Memory ...................................................................... ..92
8.10. AT+CMSS Send SMS Message from Storage ................................................................... ..93
8.11. AT+CMGC Send SMS Command ..........................................................................................94
8.12. AT+CNMI New SMS Message Indications ......................................................................... ..96
8.13. AT+CRES Restore SMS Settings ....................................................................................... ..98
8.14. AT+CSAS Save SMS Settings ............................................................................................ ..98
M35_AT_Commands_Manual Confidential / Released 6 / 186
GSM/GPRS Module
M35 AT Commands Manual
8.15. AT+CSCB Select Cell Broadcast SMS Messages ............................................................. ..99
8.16. AT+CSDH Show SMS Text Mode Parameters ................................................................... 100
8.17. AT+CSMP Set SMS Text Mode Parameters ...................................................................... 101
8.18. AT+QCLASS0 Store Class 0 SMS to SIM when Receiving Class 0 SMS ......................... 102
8.19. AT+QMGDA Delete all SMS ............................................................................................... 103
8.20. AT+QSMSCODE Configure SMS Code Mode ................................................................... 104
9 Phonebook Commands ................................................................................................................... 105
9.1. AT+CPBS Select Phonebook Memory Storage .................................................................. 105
9.2. AT+CPBW Write Phonebook Entry ..................................................................................... 106
9.3. AT+CPBR Read Current Phonebook Entries ..................................................................... 107
9.4. AT+CPBF Find Phonebook Entries .................................................................................... 108
9.5. AT+CNUM Subscriber Number ........................................................................................... 109
10 GPRS Commands ............................................................................................................................ 111
10.1. AT+CGATT Attach to/Detach from GPRS Service ............................................................. 111
10.2. AT+CGDCONT Define PDP Context .................................................................................. 112
10.3. AT+CGQREQ Quality of Service Profile (Requested) ........................................................ 113
10.4. AT+CGQMIN Quality of Service Profile (Minimum Acceptable) ......................................... 114
10.5. AT+CGACT PDP Context Activate or Deactivate ............................................................... 115
10.6. AT+CGDATA Enter Data State ............................................................................................ 116
10.7. AT+CGPADDR Show PDP Address ................................................................................... 116
10.8. AT+CGCLASS GPRS Mobile Station Class ....................................................................... 117
10.9. AT+CGEREP Control Unsolicited GPRS Event Reporting ................................................ 118
10.10. AT+CGREG Network Registration Status ........................................................................... 119
10.11. AT+CGSMS Select Service for MO SMS Messages .......................................................... 120
10.12. AT+QGPCLASS Change GPRS Multi-slot Class ............................................................... 121
11 TCPIP Commands ............................................................................................................................ 123
11.1. AT+QIOPEN Start up TCP or UDP Connection .................................................................. 123
11.2. AT+QISEND Send Data through TCP or UDP Connection ................................................ 124
11.3. AT+QICLOSE Close TCP or UDP Connection ................................................................... 125
11.4. AT+QIDEACT Deactivate GPRS/CSD PDP Context ......................................................... 126
11.5. AT+QILPORT Set Local Port .............................................................................................. 127
11.6. AT+QIREGAPP Start TCPIP Task and Set APN, User Name and Password .................... 128
11.7. AT+QIACT Activate GPRS/CSD Context ........................................................................... 128
11.8. AT+QILOCIP Get Local IP Address .................................................................................... 129
11.9. AT+QISTAT Query Current Connection Status ................................................................... 130
11.10. AT+QISTATE Query Connection Status of the Current Access.......................................... 131
11.11. AT+QISSTAT Query the Current Server Status .................................................................. 133
11.12. AT+QIDNSCFG Configure Domain Name Server .............................................................. 133
11.13. AT+QIDNSGIP Query the IP Address of Given Domain Name .......................................... 134
11.14. AT+QIDNSIP Connect with IP Address or Domain Name Server ...................................... 135
11.15. AT+QIHEAD Add an IP Header when Receiving Data ....................................................... 135
11.16. AT+QIAUTOS Set Auto Sending Timer .............................................................................. 136
11.17. AT+QIPROMPT Set Prompt of „>‟ when Sending Data ...................................................... 137
M35_AT_Commands_Manual Confidential / Released 7 / 186
GSM/GPRS Module
M35 AT Commands Manual
11.18. AT+QISERVER Configure as Server .................................................................................. 137
11.19. AT+QICSGP Select CSD or GPRS as the Bearer ............................................................. 139
11.20. AT+QISRVC Choose Connection ....................................................................................... 140
11.21. AT+QISHOWRA Set Whether or not to Display the Address of Sender ............................ 140
11.22. AT+QISCON Save TCPIP Application Context .................................................................. 141
11.23. AT+QIMODE Select TCPIP Transfer Mode ........................................................................ 143
11.24. AT+QITCFG Configure Transparent Transfer Mode .......................................................... 143
11.25. AT+QISHOWPT Control Whether or not to Show the Protocol Type ................................. 144
11.26. AT+QIMUX Control Whether or not to Enable Multiple TCPIP Session............................. 145
11.27. AT+QISHOWLA Control Whether or not to Display Local IP Address ............................... 146
11.28. AT+QIFGCNT Select a Context as Foreground Context.................................................... 146
11.29. AT+QISACK Query the Data Information for Sending ........................................................ 147
11.30. AT+QINDI Set the Method to Handle Received TCP/IP Data ............................................ 148
11.31. AT+QIRD Retrieve the Received TCP/IP Data ................................................................... 149
11.32. AT+QISDE Control Whether or Not to Echo the Data for QISEND .................................... 150
11.33. AT+QPING Ping a Remote Server ..................................................................................... 150
11.34. AT+QNTP Synchronize the Local Time Via NTP ................................................................ 152
12 Supplementary Service Commands .............................................................................................. 153
12.1. AT+CACM Accumulated Call Meter (ACM) Reset or Query .............................................. 153
12.2. AT+CAMM Accumulated Call Meter Maximum (ACM Max) Set or Query ......................... 154
12.3. AT+CAOC Advice of Charge .............................................................................................. 155
12.4. AT+CCFC Call Forwarding Number and Conditions Control ............................................. 156
12.5. AT+CCUG Closed User Group Control .............................................................................. 157
12.6. AT+CCWA Call Waiting Control .......................................................................................... 158
12.7. AT+CHLD Call Hold and Multiparty .................................................................................... 160
12.8. AT+CLIP Calling Line Identification Presentation ............................................................... 161
12.9. AT+CLIR Calling Line Identification Restriction .................................................................. 163
12.10. AT+COLP Connected Line Identification Presentation ....................................................... 164
12.11. AT+CPUC Price Per Unit and Currency Table .................................................................... 165
12.12. AT+CCWE Call Meter Maximum Event .............................................................................. 166
12.13. AT+CUSD Unstructured Supplementary Service Data ...................................................... 167
12.14. AT+CSSN Supplementary Services Notification ................................................................ 168
13 Audio Commands ............................................................................................................................ 169
13.1. ATL Set Monitor Speaker Loudness ................................................................................... 169
13.2. ATM Set Monitor Speaker Mode ......................................................................................... 169
13.3. AT+VTD Tone Duration ....................................................................................................... 170
13.4. AT+VTS DTMF and Tone Generation ................................................................................. 171
13.5. AT+CALM Alert Sound Mode .............................................................................................. 172
13.6. AT+CRSL Ringer Sound Level ........................................................................................... 172
13.7. AT+CLVL Loud Speaker Volume Level ............................................................................... 173
13.8. AT+CMUT Mute Control ...................................................................................................... 173
13.9. AT+QSIDET Change the Side Tone Gain Level ................................................................. 174
13.10. AT+QMIC Change the Microphone Gain Level .................................................................. 175
M35_AT_Commands_Manual Confidential / Released 8 / 186
GSM/GPRS Module
M35 AT Commands Manual
14 Hardware Related Commands ........................................................................................................ 176
14.1. AT+CCLK Clock .................................................................................................................. 176
14.2. AT+CBC Battery Charge ..................................................................................................... 177
14.3. AT+QTEMP Set Temperature Detection Mode or Query Temperature .............................. 178
14.4. AT+QSCLK Configure Slow Clock ...................................................................................... 179
15 Others Commands ........................................................................................................................... 180
15.1. A/ Re-issues the Last Command Given ............................................................................. 180
15.2. ATE Set Command Echo Mode .......................................................................................... 180
15.3. ATS3 Set Command Line Termination Character ............................................................... 181
15.4. ATS4 Set Response Formatting Character ........................................................................ 181
15.5. ATS5 Set Command Line Editing Character ...................................................................... 182
15.6. AT+DS V.42bis Data Compression Control ........................................................................ 182
15.7. AT+DR V.42bis Data Compression Reporting Control ....................................................... 183
15.8. AT+QRIMODE Set RI Time ................................................................................................ 184
16 Appendix A Reference ..................................................................................................................... 186
M35_AT_Commands_Manual Confidential / Released 9 / 186
GSM/GPRS Module
M35 AT Commands Manual
Table Index
TABLE 1: TYPES OF AT COMMANDS AND RESPONSES ............................................................................. 12
TABLE 2: AT&V DISPLAY CURRENT CONFIGURATION LIST ....................................................................... 21
TABLE 3: RELATED DOCUMENTS ................................................................................................................ 212
TABLE 4: TERMS AND ABBREVIATIONS ...................................................................................................... 212
TABLE 5: FACTORY DEFAULT SETTINGS RESTORABLE WITH AT&F ...................................................... 214
TABLE 6: AT COMMAND SETTINGS STORABLE WITH AT&W .................................................................... 216
TABLE 7: AT COMMAND SETTINGS STORABLE WITH ATZ ....................................................................... 219
TABLE 8: DIFFERENT CODING SCHEMES OF +CME ERROR : <ERR> .................................................... 221
TABLE 9: DIFFERENT CODING SCHEMES OF +CMS ERROR : <ERR> .................................................... 225
TABLE 10: LOCATION ID FOR THE EXTENDED ERROR REPORT ............................................................ 227
TABLE 11: CAUSE FOR PROTOCOL STACK (PS) LAYER ........................................................................... 227
TABLE 12: INTERNAL CAUSE FOR MM LAYER ........................................................................................... 239
TABLE 13: CAUSE FOR PPP/IP-STACK ........................................................................................................ 240
TABLE 14: SUMMARY OF URC ..................................................................................................................... 241
M35_AT_Commands_Manual Confidential / Released 10 / 186
GSM/GPRS Module
M35
AT Commands Manual
1
Introduction
1.1. Scope of the Document
This document presents the AT Commands Set for Quectel cellular engine M35.
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 <CR>. Commands are usually followed by a response that includes
<CR><LF><response><CR><LF>”. Throughout this document, only the responses are presented, “<CR><LF>” are omitted intentionally.
The AT Commands Set implemented by M85 is a combination of GSM07.05, GSM07.07 and ITU-T recommendation V.25ter and 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<x><n>”, or “AT&<x><n>”, where “<x>” is the command,
and “<n>” is/are the argument(s) for that command. An example of this is “ATE<n>”, which tells the DCE
whether received characters should be echoed back to the DTE according to the value of “<n>”. “<n>” is
optional and a default will be used if it is missing.
S parameter syntax
These AT Commands have the format of “ATS<n>=<m>”, where “<n>” is the index of the S register to set, and “<m>” is the value to assign to it. “<m>” 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:
M35_AT_Commands_Manual Confidential / Released 11 / 186
Test Command
AT+<x>=?
This command returns the list of parameters and value ranges set by the corresponding Write Command or internal processes.
Read Command
AT+<x>?
This command returns the currently set value of the parameter or parameters.
Write Command
AT+<x>=<…>
This command sets the user-definable parameter values.
Execution
Command
AT+<x>
This command reads non-variable parameters affected by internal processes in the GSM engine
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 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”.
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.
GSM/GPRS Module
M35 AT Commands Manual
Table 1: Types of AT Commands and Responses
1.2.1. Combining AT Commands on the Same Command Line
1.2.2. Entering Successive AT Commands on Separate Lines
1.3. Supported Character Sets
The M35 AT Command interface defaults to the IRA character set. The M35 supports the following character sets:
GSM  UCS2  HEX  IRA  PCCP437  8859_1
M35_AT_Commands_Manual Confidential / Released 12 / 186
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.
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, the entry and display of phone book entries text field and SIM Application Toolkit alpha strings.
Flow control is very important for correct communication between the GSM engine and DTE. For example, in the case such as a data or FAX call, the sending device is transferring data faster than the receiving side is ready to accept. When the receiving buffer reaches its capacity, the receiving device should be capable 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
In Multiplex mode, it is recommended to use the hardware flow control.
The default f
NOTE
M35 AT Commands Manual
GSM/GPRS Module
1.4. Flow Control
control. M35 supports both two kinds of flow control.
low control approach of M35 is closed.
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 M35 is closed, to enable software flow control in the DTE interface
and within GSM engine, type the following AT command: AT+IFC=1, 1<CR>
This setting is stored volatile, for use after restart, AT+IFC=1, 1<CR> should be stored to the user profile with AT&W<CR>.
Ensure that any communication software package (e.g. ProComm Plus, Hyper Terminal or WinFax Pro) uses software flow control.
M35_AT_Commands_Manual Confidential / Released 13 / 186
GSM/GPRS Module
M35 AT Commands Manual
1.4.2. Hardware Flow Control (RTS/CTS Flow Control)
The default flow control approach of M3 is closed, 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<CR>.
This setting is stored volatile, for use after restart, AT+IFC=2, 2<CR> should be stored to the user profile with AT&W<CR>.
Hardware flow control achieves the data flow control by controlling the RTS/CTS line. When the data transfer should be suspended, the CTS line is set inactive until the transfer from the receiving buffer has completed. When the receiving buffer is ok to receive more data, CTS goes active once again.
To achieve hardware flow control, ensure that the RTS/CTS lines are present on your application platform.
1.5. Unsolicited Result Code
A URC is a report message sent from the ME to the TE. An unsolicited result code can either be delivered automatically when an event occurs, to reflect change in system state or as a result of a query the ME received before, often 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 Appendix A.
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 completed.
M35_AT_Commands_Manual Confidential / Released 14 / 186
ATI Display Product Identification Information
Execution Command
ATI
Response TA issues product information text
Quectel_Ltd
Quectel_
Revision: M85EARxxAxxW64
OK
Reference
V.25ter
AT+GMI Request Manufacture Identification
Test Command
AT+GMI=?
Response
OK
Execution Command
AT+GMI
Response TA reports one or more lines of information text which permit the user to identify the manufacturer.
Quectel_Ltd
M35 AT Commands Manual
GSM/GPRS Module
2
General Commands
2.1. ATI Display Product Identification Information
M35
Example
ATI
Quectel_Ltd Quectel_M35
Revision: M85EAR21A01W64
OK
2.2. AT+GMI Request Manufacture Identification
M35_AT_Commands_Manual Confidential / Released 15 / 186
Revision: MTK 1132
OK
Reference
V.25ter
AT+GMM Request TA Model Identification
Test Command
AT+GMM=?
Response
OK
Execution Command
AT+GMM
Response TA returns a product model identification text.
OK
Reference
V.25ter
AT+GMR Request TA Revision Identification of Software Release
Test Command
AT+GMR=?
Response
OK
Execution Command
AT+GMR
Response TA reports one or more lines of information text which permit the user to identify the revision of software release.
Revision: <revision>
OK
Reference
V.25ter
<revision> Revision of software release
M35 AT Commands Manual
Quectel_M35
GSM/GPRS Module
2.3. AT+GMM Request TA Model Identification
Quectel_M35
2.4. AT+GMR Request TA Revision Identification of Software Release
Parameter
M35_AT_Commands_Manual Confidential / Released 16 / 186
displayed.
AT+GOI Request Global Object Identification
Test Command
AT+GOI=?
Response
OK
Execution Command
AT+GOI
Response TA reports one or more lines of information text which permit the user to identify the device, based on the ISO system for registering unique object identifiers.
<Object Id>
OK
Reference
V.25ter
<Object Id> Identifier of device type
AT+CGMI Request Manufacture Identification
Test Command
AT+CGMI=?
Response
OK
Execution Command
Response
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Example
AT+GMR
Revision: M85EAR21A01W64
OK
2.5. AT+GOI Request Global Object Identification
Parameter
See X.208, 209 for the format of <Object Id>. For example, in M35 wireless module, string “M35” is
2.6. AT+CGMI Request Manufacturer Identification
M35_AT_Commands_Manual Confidential / Released 17 / 186
AT+CGMI
TA returns manufacturer identification text.
Quectel_Ltd
Revision: MTK 1132
OK
Reference
GSM 07.07
AT+CGMM Request Model Identification
Test Command
AT+CGMM=?
Response
OK
Execution Command
AT+CGMM
Response TA returns product model identification text.
<model>
OK
Reference
GSM 07.07
<model> Product model identification text
AT+CGMR Request TA Revision Identification of Software Release
Test Command
AT+CGMR=?
Response
OK
Execution Command
AT+CGMR
Response TA returns product software version identification text.
Revision: <revision>
OK
Reference
GSM 07.07
M35 AT Commands Manual
Quectel_M35
GSM/GPRS Module
2.7. AT+CGMM Request Model Identification
Parameter
2.8. AT+CGMR Request TA Revision Identification of Software Release
M35_AT_Commands_Manual Confidential / Released 18 /
186
The serial number (IMEI) is varied with the individual ME device.
<revision> Product software version identification text
AT+GSN Request International Mobile Equipment Identity (IMEI)
Test Command
AT+GSN=?
Response
OK
Execution Command
AT+GSN
Response TA reports the IMEI (International Mobile Equipment Identity) number in information text which permit the user to identify the individual ME device.
<sn>
OK
Reference
V.25ter
<sn> IMEI of the telephone
AT+CGSN Request Product Serial Number Identification (Identical with +GSN)
Test Command
AT+CGSN=?
Response
OK
Execution Command
AT+CGSN
Response
<sn>
OK
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
2.9. AT+GSN Request International Mobile Equipment Identity (IMEI)
Parameter
2.10. AT+CGSN Request Product Serial Number Identification
M35
_AT_Commands_Manual Confidential / Released 19 / 186
See AT+GSN.
Reference
GSM 07.07
AT&F Set all Current Parameters to Manufacturer Defaults
Execution Command
AT&F[<value>]
Response TA sets all current parameters to the manufacturer defined profile. OK
Reference
V.25ter
<value> 0 Set all TA parameters to manufacturer defaults
AT&V Display Current Configuration
Execution Command
AT&V[<n>]
Response TA returns the current parameter setting.
ACTIVE PROFILE
<current configurations text> OK
Reference
V.25ter
<n> 0 Profile number
NOTE
M35 AT Commands Manual
GSM/GPRS Module
2.11. AT&F Set all Current Parameters to Manufacturer Defaults
Parameter
2.12. AT&V Display Current Configuration
Parameter
M35_AT_Commands_Manual Confidential / Released 20 / 186
M35 AT Commands Manual
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 +CRLP: 61,61,128,6,0,3 +CCWE: 0 +QSIMSTAT: 0 +CMUX: -1 +CCUG: 0,0,0 +CLIP: 0 +COLP: 0 +CCWA: 0 +CAOC: 1 +CLIR: 0 +CUSD: 0
Table 2: AT&V Display Current Configuration List
M35_AT_Commands_Manual Confidential / Released 21 / 186
GSM/GPRS Module
+CREG: 0 +QSIMDET: 0,0 +QMIC: 4,9,8 +QECHO(NORMAL_AUDIO): 253,96,16388,57351,0 +QECHO(Earphone_AUDIO): 253,0,10756,57351,1 +QECHO(LoudSpk_AUDIO): 224,96,5256,57351,2 +QSIDET(NORMAL_AUDIO): 80 +QSIDET(HEADSET_AUDIO): 144 +QCLIP: 0 +QCOLP: 0 +CSNS: 0
OK
The profile defined by user is stored in non volatile memory.
AT&W Store Current Parameter to User Defined Profile
Execution Command
AT&W[<n>]
Response TA stores the current parameter setting in the user defined profile. OK
Reference
V.25ter
<n> 0 Profile number to store to
ATQ Set Result Code Presentation Mode
Execution Command
ATQ<n>
Response This parameter setting determines whether or not the TA
NOTE
M35 AT Commands Manual
GSM/GPRS Module
2.13. AT&W Store Current Parameter to User Defined Profile
Parameter
2.14. ATQ Set Result Code Presentation Mode
M35_AT_Commands_Manual Confidential / Released 22 / 186
The result codes, their numeric equivalents and brief descriptions of the use of each are listed in the following table.
transmits any result code to the TE. Information text transmitted in response is not affected by this setting. If <n>=0:
OK
If <n>=1: (none)
Reference
V.25ter
<n> 0 TA transmits result code 1 Result codes are suppressed and not transmitted
ATV TA Response Format
Execution Command
ATV<value>
Response This parameter setting determines the contents of the header and trailer transmitted with result codes and information responses. When <value>=0
0 When <value>=1 OK
Reference
V.25ter
<value> 0 Information response: <text><CR><LF>
Short result code format: <numeric code><CR>
1 Information response: <CR><LF><text><CR><LF>
Long result code format: <CR><LF><verbose code><CR><LF>
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
2.15. ATV TA Response Format
Parameter
M35_AT_Commands_Manual Confidential / Released 23 / 186
ATV1
ATV0
Description
OK 0 Acknowledges execution of a command
CONNECT
1
A connection has been established; the DCE is moving from command state to online data state
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 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
CONNECT <text>
Manufacturer-specific
Same as CONNECT, but includes manufacturer-specific text that may specify DTE speed, line speed, error control, data compression, or other status
GSM/GPRS Module
M35 AT Commands Manual
Example
ATV1 // Set <value>=1
OK
AT+CSQ
+CSQ: 30,0
OK // When <value>=1 result code is OK
ATV0 // Set <value>=0
0
AT+CSQ
+CSQ: 30,0 0 // When <value>=0 result code is 0
Table 3: ATV0&ATV1 Result Codes Numeric Equivalents and Brief Descriptions
M35_AT_Commands_Manual Confidential / Released 24 / 186
ATX Set CONNECT Result Code Format and Monitor Call Progress
Execution Command
ATX<value>
Response This parameter setting determines whether or not the TA detected the presence of dial tone and busy signal and whether or not TA transmits particular result codes. OK
Reference
V.25ter
<value> 0 CONNECT result code only returned, dial tone and
busy detection are both disabled 1 CONNECT<text> result code only returned, dial tone and
busy detection are both disabled 2 CONNECT<text> result code returned, dial tone detection is enabled, busy detection is disabled 3 CONNECT<text> result code returned, dial tone detection
is disabled, busy detection is enabled 4 CONNECT<text> result code returned, dial tone and busy detection are both enabled
ATZ Set all Current Parameters to User Defined Profile
Execution Command
ATZ[<value>]
Response TA sets all current parameters to the user defined profile. OK
Reference
V.25ter
<value> 0 Reset to profile number 0
M35 AT Commands Manual
GSM/GPRS Module
2.16. ATX Set CONNECT Result Code Format and Monitor Call Progress
Parameter
2.17. ATZ Set all Current Parameters to User Defined Profile
Parameter
M35_AT_Commands_Manual Confidential / Released 25 / 186
1. Profile defined by user is stored in non volatile memory.
2. If the user profile is invalid, it will default to the factory default profile.
3. Any additional commands on the same command line are ignored.
AT+CFUN Set Phone Functionality
Test Command
AT+CFUN=?
Response
+CFUN: (list of supported <fun>s), (list of supported <rst>s)
OK
Read Command
AT+CFUN?
Response
+CFUN: <fun>
OK
Write Command
AT+CFUN=<fun>[,<rst>]
Response
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07
<fun> 0 Minimum functionality
1 Full functionality (Default)
4 Disable phone both transmit and receive RF circuits <rst> 0 Do not reset the ME before setting it to <fun> power level
This is default when <rst> is not given
1 Reset the ME before setting it to <fun> power level
NOTES
M35 AT Commands Manual
GSM/GPRS Module
2.18. AT+CFUN Set Phone Functionality
Parameter
Example
AT+CFUN=0 // Switch phone to minimum functionality
+CPIN: NOT READY
OK
M35_AT_Commands_Manual Confidential / Released 26 /
186
AT+QPOWD Power off
Write Command
AT+QPOWD=<n>
Response When <n>=0
OK When <n>=1 NORMAL POWER DOWN
Reference
<n> 0 Urgent power off ( Do not send out URC "NORMAL POWER DOWN") 1 Normal power off (Send out URC "NORMAL POWER DOWN")
GSM/GPRS Module
M35 AT Commands Manual
AT+COPS?
+COPS: 0 // No operator is registered
OK
AT+CPIN?
+CME ERROR: 13 // SIM failure
AT+CFUN=1 // Switch phone to full functionality
OK
+CPIN: SIM PIN
AT+CPIN=1234
+CPIN: READY
OK
Call Ready
AT+CPIN?
+CPIN: READY
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE" // Operator is registered
OK
2.19. AT+QPOWD Power off
Parameter
M35_AT_Commands_Manual Confidential / Released 27 / 186
AT+CMEE Report Mobile Equipment Error
Test Command
AT+CMEE=?
Response
+CMEE: (list of supported <n>s)
OK
Read Command
AT+CMEE?
Response
+CMEE: <n>
OK
Write Command
AT+CMEE=[<n>]
Response TA disables or enables the use of result code +CME ERROR: <err> as an indication of an error related to the functionality of the ME. OK
Reference GSM 07.07
<n> 0 Disable result code 1 Enable result code and use numeric values
2 Enable result code and use verbose values
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+QPOWD=0
OK // Urgent power off, returned OK
AT+QPOWD=1
NORMAL POWER DOWN // Normal power off, send out URC”NORMAL
POWER DOWN
2.20. AT+CMEE Report Mobile Equipment Error
Parameter
Example
AT+CMEE=0 // Disable result code
OK
AT+CPIN=1234
ERROR // Only “ERROR” will be displayed
AT+CMEE=1 // Enable error result code with numeric values
OK
AT+CPIN=1234
M35_AT_Commands_Manual Confidential / Released 28 / 186
AT+CSCS Select TE Character Set
Test Command
AT+CSCS=?
Response
+CSCS: (list of supported <chset>s)
OK
Read Command
AT+CSCS?
Response
+CSCS: <chset>
OK
Write Command
AT+CSCS=<chset>
Response Set character set <chset> which is used by the TE. The TA can then convert character strings correctly between the TE and ME character sets. OK
Reference GSM 07.07
<chset> "GSM" GSM default alphabet "HEX" Character strings consist only of hexadecimal numbers from 00 to FF "IRA" International reference alphabet "PCCP437" PC character set Code "UCS2" UCS2 alphabet
"8859-1" ISO 8859 Latin 1 character set
GSM/GPRS Module
M35 AT Commands Manual
+CME ERROR: 10
AT+CMEE=2 // Enable error result code with verbose (string)
values
OK
AT+CPIN=1234
+CME ERROR: SIM not inserted
2.21. AT+CSCS Select TE Character Set
Parameter
Example
AT+CSCS? // Query the current character set
+CSCS: "GSM"
OK
M35_AT_Commands_Manual Confidential / Released 29 / 186
AT+GCAP Request Complete TA Capabilities List
Test Command
AT+GCAP=?
Response
OK
Execution Command
AT+GCAP
Response TA reports a list of additional capabilities.
+GCAP: <name>s
OK
Reference V.25ter
<name> +CGSM GSM function is supported +FCLASS FAX function is supported
GSM/GPRS Module
M35 AT Commands Manual
AT+CSCS="UCS2" // Set the character set to “UCS2”
OK
AT+CSCS?
+CSCS: "UCS2"
OK
2.22. AT+GCAP Request Complete TA Capabilities List
Parameter
M35_AT_Commands_Manual Confidential / Released 30 / 186
AT&C Set DCD Function Mode
Execution Command
AT&C[<value>]
Response This parameter determines how the state of circuit 109(DCD) relates to the detection of received line signal from the distant end. OK
Reference V.25ter
<value> 0 DCD line is always ON 1 DCD line is ON only in the presence of data carrier
AT&D Set DTR Function Mode
Execution Command
AT&D[<value>]
Response This parameter determines how the TA responds when circuit 108/2(DTR) is changed from the ON to the OFF condition during data mode. OK
Reference V.25ter
<value> 0 TA ignores status on DTR 1 ON->OFF on DTR: Change to command mode with remaining the connected call
M35 AT Commands Manual
GSM/GPRS Module
3
Serial Interface Control Commands
3.1. AT&C Set DCD Function Mode
Parameter
3.2. AT&D Set DTR Function Mode
Parameter
M35_AT_Commands_Manual Confidential / Released 31 / 186
1. The command is applied for command state.
2. The <parity> field is ignored if the <format> field specifies no parity.
2 ON->OFF on DTR: Disconnect data call, change to command mode. During state DTR = OFF auto-answer is off
AT+ICF Set TE-TA Control Character Framing
Test Command
AT+ICF=?
Response
+ICF: (list of supported <format>s), (list of supported <parity>s)
OK
Read Command
AT+ICF?
Response
+ICF: <format>,<parity>
OK
Write Command
AT+ICF=[<format>,[<parity>]]
Response This parameter setting determines the serial interface character framing format and parity received by TA from TE. OK
Reference V.25ter
<format> 1 8 data 0 parity 2 stop 2 8 data 1 parity 1 stop 3 8 data 0 parity 1 stop 4 7 data 0 parity 2 stop 5 7 data 1 parity 1 stop 6 7 data 0 parity 1 stop <parity> 0 Odd 1 Even 2 Mark (1)
3 Space (0)
NOTES
M35 AT Commands Manual
GSM/GPRS Module
3.3. AT+ICF Set TE-TA Control Character Framing
Parameter
M35_AT_Commands_Manual Confidential / Released 32 / 186
This flow control is applied for data mode.
AT+IFC Set TE-TA Local Data Flow Control
Test Command
AT+IFC=?
Response
+IFC: (list of supported <dce_by_dte>s), (list of supported <dte_by_dce>s)
OK
Read Command
AT+IFC?
Response
+IFC: <dce_by_dte>,<dte_by_dce>
OK
Write Command
AT+IFC=<dce_by_dte>,<dte_by_dce>
Response This parameter setting determines the data flow control on the serial interface for data mode. OK
Reference V.25ter
<dce_by_dte> Specifies the method will be used by TE when receiving data from TA 0 None 1 XON/XOFF, do not pass characters on to data stack 2 RTS flow control <dte_by_dce> Specifies the method will be used by TA when receiving data from TE 0 None 1 XON/XOFF
2 CTS flow control
NOTE
M35 AT Commands Manual
GSM/GPRS Module
3.4. AT+IFC Set TE-TA Local Data Flow Control
Parameter
Example
AT+IFC=2,2 // Open the hardware flow control
OK
AT+IFC?
+IFC: 2,2
M35_AT_Commands_Manual Confidential / Released 33 / 186
If the <value> is set to 1, the following intermediate result will come out on connection to indicate the port rate settings.
+ILRR:<rate> <rate> Port rate setting on call connection in Baud per second
300 1200 2400 4800 9600
14400 19200 28800
AT+ILRR Set TE-TA Local Data Rate Reporting Mode
Test Command
AT+ILRR=?
Response
+ILRR: (list of supported <value>s)
OK
Read Command
AT+ILRR?
Response
+ILRR: <value>
OK
Write Command
AT+ILRR=[<value>]
Response This parameter setting determines whether or not an intermediate result code of local rate is reported when the connection is established. The rate is applied after the final result code of the connection is transmitted to TE. OK
Reference V.25ter
<value> 0 Disables reporting of local port rate 1 Enables reporting of local port rate
NOTE
M35 AT Commands Manual
OK
GSM/GPRS Module
3.5. AT+ILRR Set TE-TA Local Data Rate Reporting Mode
Parameter
M35_AT_Commands_Manual Confidential / Released 34 / 186
38400 57600
115200
AT+IPR Set TE-TA Fixed Local Rate
Test Command
AT+IPR=?
Response +IPR: (list of supported auto detectable <rate>s),(list of supported fixed-only<rate>s)
OK
Read Command
AT+IPR?
Response
+IPR: <rate>
OK
Write Command
AT+ IPR=<rate>
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 of command takes effect. OK
Reference V.25ter
<rate> Baud rate per second 0 (Autobauding)
75
150 300 600
1200 2400 4800 9600 14400 19200 28800 38400
GSM/GPRS Module
M35 AT Commands Manual
3.6. AT+IPR Set TE-TA Fixed Local Rate
Parameter
M35_AT_Commands_Manual Confidential / Released 35 / 186
1. The default configuration of AT+IPR is adaptive baud enabled (AT+IPR=0).
2. 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 is enabled, the TA could automatically recognize the baud rate currently used by the TE after receiving “AT” or “at” string.
3. 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.
4. In multiplex mode, the baud rate cannot be changed by the write command AT+IPR=<rate>, and the
setting is invalid and not stored even if AT&W is executed after the write command.
5. A selected baud rate takes effect after the write commands are executed and acknowledged by “OK”.
57600
115200
NOTES
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+IPR=115200 // Set fixed baud rate to 115200
OK
AT&W // Store current setting, that is, the serial
communication speed is 115200 after restart module
OK
AT+IPR?
+IPR: 115200
OK
3.6.1. Adaptive Baud
To take advantage of adaptive baud mode, specific attention must be paid to the following requirements:
1. Adaptive baud 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. To allow the baud rate to be synchronized simply use an “AT” or “at” string. This is necessary after customer activates adaptive baud or when customer starts up the module with adaptive baud enabled.
It is recommended to wait for 2 to 3 seconds before sending the first AT” or “at” string after the
2. Restriction on adaptive baud operation.
M35_AT_Commands_Manual Confidential / Released 36 / 186
module is started up with adaptive baud enabled. Otherwise undefined characters might be returned.
The serial interface shall be used with 8 data bits, no parity and 1 stop bit (factory setting).
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 after start-up.
AT+CMUX Multiplexer Control
Test Command
AT+CMUX=?
Response
+CMUX: (list of supported <mode>s), (<subset>s),
NOTE
M35 AT Commands Manual
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 detects 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 is enabled. Especially, this operation is forbidden in data mode.
3. Adaptive baud and baud rate after restarting. In the adaptive baud 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 and auto-answer mode (ATS0 0) are enabled at the same time, especially if 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
is enabled.
4. Adaptive baud and multiplex mode. If adaptive baud is active it is not recommended to switch to multiplex mode.
5. Adaptive baud 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 mode.
Based on the same considerations, it is also not recommended to establish the FAX connection
in adaptive baud mode for PC FAX application, such as WinFax.
GSM/GPRS Module
3.7. AT+CMUX Multiplexer Control
M35_AT_Commands_Manual Confidential / Released 37 / 186
AT+CEER Extended Error Report
Test Command
AT+CEER=?
Response
OK
Execution Command
AT+CEER
Response TA returns an extended report of the reason for the last call release.
+CEER: <locationID>,<cause>
OK
Reference GSM 07.07
<locationID> Location ID as number code. Location IDs are listed in Section 8.3.1. Each ID is related with anther table that contains a list of <cause>s. <cause> 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 Section 8.3.1
M35 AT Commands Manual
GSM/GPRS Module
4
Status Control Commands
4.1. AT+CEER Extended Error Report
Parameter
Example
AT+CEER // Query error reporting in normal state, return “No error
+CEER: 0,0
OK
ATD10086;
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"10086",129,""
OK
M35_AT_Commands_Manual Confidential / Released 38 / 186
AT+CPAS Mobile Equipment Activity Status
Test Command
AT+CPAS=?
Response
+CPAS: (list of supported <pas>s)
OK
Execution Command
AT+CPAS
Response TA returns the activity status of ME.
+CPAS: <pas>
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference GSM 07.07
<pas> 0 Ready 2 Unknown (ME is not guaranteed to respond to instructions) 3 Ringing
4 Call in progress or call hold
GSM/GPRS Module
M35 AT Commands Manual
NO CARRIER // Established a call and the remote party hangs up the call
AT+CEER // Query error reporting, the <locationID>=1 means “Cause
for protocol stack(PS) layer”, <cause>=16 means Normal call clearing
+CEER: 1,16
OK
4.2. AT+CPAS Mobile Equipment Activity Status
Parameter
Example
AT+CPAS
+CPAS: 0 // Module is idle
OK
ATD10086;
OK
M35_AT_Commands_Manual Confidential / Released 39 / 186
AT+QINDRI Indicate RI when Using URC
Test Command
AT+QINDRI=?
Response
+QINDRI: (list of supported <status>s)
OK
Read Command
AT+QINDRI?
Response
+QINDRI: <status>
OK
Write Command
AT+QINDRI=<status>
Response
OK ERROR
Reference
<status> 0 Off 1 On
GSM/GPRS Module
M35 AT Commands Manual
AT+CLCC
+CLCC: 1,0,3,0,0,"10086",129,""
OK
AT+CPAS
+CPAS: 3 // Module is incoming call (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 Indicate RI when Using URC
Parameter
M35_AT_Commands_Manual Confidential / Released 40 / 186
AT+QMOSTAT Show State of Mobile Originated Call
Test Command
AT+QMOSTAT=?
Response
+QMOSTAT: (list of supported <mode>s)
OK
Read Command
AT+QMOSTAT?
Response
+QMOSTAT: <mode>
OK
Write Command
AT+QMOSTAT=<mode>
Response
OK ERROR
Reference
<mode> 0 Do not show call state of mobile originated call 1 Show call state of mobile originated call. After dialing call numbers, the URC strings of MO RING will be sent if the other call side is alerted and the URC strings of MO CONNECTED will be sent if the call is established
AT+QIURC Enable or Disable Initial URC Presentation
Test Command
AT+QIURC=?
Response +QIURC: (list of supported <mode>s)
M35
AT Commands Manual
4.4. AT+QMOSTAT Show State of Mobile Originated Call
GSM/GPRS Module
Parameter
Example
AT+QMOSTAT=1 // Show call state of mobile originated call
OK
ATD10086;
OK
MO RING // The other call side is alerted
MO CONNECTED // The call is established
4.5. AT+QIURC Enable or Disable Initial URC Presentation
M35_AT_Commands_Manual Confidential / Released 41 / 186
When the module powers on and initialization procedure is over, URC "Call Ready" will be presented if <mode> is 1.
OK
Read Command
AT+QIURC?
Response
+QIURC: <mode>
OK
Write Command
AT+QIURC=<mode>
Response
OK ERROR
Reference
<mode> 0 Disable URC presentation 1 Enable URC presentation
AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications
Test Command
AT+QEXTUNSOL=?
Response
+QEXTUNSOL: (list of supported <exunsol>s)
OK
Write Command
AT+QEXTUNSOL=<exunsol>,<mode>
Response
OK ERROR
Reference
<exunsol> String type. Values currently reserved by the present document "SQ" Signal Quality Report. Displays signal strength and channel bit error rate (similar
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
4.6. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited
Indications
Parameter
M35_AT_Commands_Manual Confidential / Released 42 / 186
to AT+CSQ) in form +CSQN: <rssi>, <ber>when values change. "FN" Forbidden network available only. When returning to a non-registered state, this indicates whether all the available PLMNs are forbidden. "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:
+QMWT: <store>,<index>,<voice>,<fax>,<email>,<other>. Where <store>
is the message store containing the SM, index is the message index and <voice>,
<email>, <fax>, <other> 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. "UR" Unsolicited result code. Produces an unsolicited indication in the following call
state transition. Multiple notifications may occur for the same transition +QGURC:
<event>. Where <event> describes the current call state:
<event>:
0 Terminated active call, at least one held call remaining 1 Attempt to make an 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 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 "BC" Battery Charge. Displays battery connection status and battery charge level
(similar to AT+CBC) in form +CBCN:<bcs>,<bcl> when values change. "BM" Band mode. Displays band mode (similar to AT+QBAND) in form +QBAND:
<band> when value changes. "SM" Additional SMS Information. Displays additional information about SMS events in
the form of Unsolicited messages of the following format +TSMSINFO: <CMS
error info> where <CMS error info> is a standard CMS error in the format
defined by the AT+CMEE command i.e. either a number or a string. "CC" Call information. Displays the disconnected call ID and the remaining call
numbers after one of the call is disconnected. +CCINFO: <Call id
disconnected>,<Remain calls> <mode> 0 Disable
1 Enable 2 Query
GSM/GPRS Module
M35 AT Commands Manual
M35_AT_Commands_Manual Confidential / Released 43 / 183
When <state> is 3, it also means initialization of SIM card related functions has been finished.
AT+QINISTAT Query State of Initialization
Test Command
AT+QINISTAT=?
Response
OK
Execution Command
AT+QINISTAT
Response
+QINISTAT: <state>
OK
Reference
<state> 0 No initialization 1 Ready to execute AT command 2 Phonebook has finished initialization 3 SMS has finished initialization
AT+QNSTATUS Query GSM Network Status
Test Command
AT+QNSTATUS=?
Response
OK
Execution Command
AT+QNSTATUS
Response
+QNSTATUS: <status>
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
NOTE
M35 AT Commands Manual
GSM/GPRS Module
4.7. AT+QINISTAT Query State of Initialization
Parameter
4.8. AT+QNSTATUS Query GSM Network Status
M35_AT_Commands_Manual Confidential / Released 44 / 186
<status> 255 Not ready to retrieve network status
0 Work in normal state 1 No available cell 2 Only limited service is available
AT+QSIMDET Switch on or off Detecting SIM Card
Test Command
AT+QSIMDET=?
Response
+QSIMDET: (0,1),(0,1)
OK
Read Command
AT+QSIMDET?
Response
+QSIMDET: <mode>,<active>
OK
Write Command
AT+QSIMDET=<mode>[,<active>]
Response
OK ERROR
Reference
<mode> 0 Switch off detecting SIM card
1 Switch on detecting SIM card <active> 0 Low level of SIM_PRESENCE pin indicates SIM card is present 1 High level of SIM_PRESENCE pin indicates SIM card is present
GSM/GPRS Module
M35 AT Commands Manual
Parameter
4.9. AT+QSIMDET Switch on or off Detecting SIM Card
Parameter
M35_AT_Commands_Manual Confidential / Released 45 / 186
AT+CIMI Request International Mobile Subscriber Identity (IMSI)
Test Command
AT+CIMI=?
Response
OK
Execution Command
AT+CIMI
Response TA returns <IMSI>for identifying the individual SIM which is attached to ME.
<IMSI>
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference GSM 07.07
<IMSI> International Mobile Subscriber Identity (string without double quotes)
AT+CLCK Facility Lock
M35 AT Commands Manual
GSM/GPRS Module
5
SIM Related Commands
5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI)
Parameter
Example
AT+CIMI
460023210226023 // Query IMSI number of SIM which is attached to ME
OK
5.2. AT+CLCK Facility Lock
M35_AT_Commands_Manual Confidential / Released 46 / 186
Test Command
AT+CLCK=?
Response
+CLCK: (list of supported <fac>s)
OK
Write Command
AT+CLCK=<fac>,<mode>,<passwd>[,
<class>]
Response This command is used to lock, unlock or interrogate a ME or a network facility <fac>. Password is normally needed to do such actions. When querying the status of a network service (<mode>=2) the response line for „not active‟ case (<status>=0) should be returned only if service is not active for any <class>.
If <mode><>2 and command is successful
OK If <mode>=2 and command is successful
+CLCK: <status>[,<class1>[<CR><LF>
+CLCK: <status>, class2....]]
OK
Reference GSM 07.07
<fac> "PS" PH-SIM (lock Phone to SIM card) (ME asks password when other than current SIM card inserted; ME may remember certain amount of previously used cards thus not requiring password when they are inserted) "SC" SIM (lock SIM card) (SIM asks password in ME power-up and when this lock command is issued) "AO" BAOC (Barr All Outgoing Calls) (refer to GSM02.88[6] clause 1) "OI" BOIC (Barr Outgoing International Calls) (refer to GSM02.88[6] clause 1) "OX" BOIC-exHC (Barr Outgoing International Calls except to Home Country) (refer to GSM02.88[6] clause 1) "AI" BAIC (Barr All Incoming Calls) (refer to GSM02.88[6] clause 2) "IR" BIC-Roam (Barr Incoming Calls when Roaming outside the home country) (refer to GSM02.88 [6] clause 2) "AB" All Barring services (refer to GSM02.30[19]) (applicable only for <mode>=0) "AG" All out Going barring services (refer to GSM02.30[19])(applicable only for <mode>=0) "AC" All in Coming barring services (refer to GSM02.30[19])(applicable only for <mode>=0) "FD" SIM fixed dialing memory: If the mobile is locked to "FD", only the phone numbers
stored to the "FD" memory can be dialed
GSM/GPRS Module
M35 AT Commands Manual
Parameter
M35_AT_Commands_Manual Confidential / Released 47 / 186
"PF" Lock Phone to the very first SIM card "PN" Network Personalization (refer to GSM 02.22) "PU" Network subset Personalization (refer to GSM 02.22) "PP" Service Provider Personalization (refer to GSM 02.22)
"PC" Corporate Personalization (refer to GSM 02.22) <mode> 0 Unlock 1 Lock 2 Query status
<passwd> Password <class> 1 Voice
2 Data 4 FAX
7 All telephony except SMS (Default)
8 Short message service 16 Data circuit sync 32 Data circuit async
<status> 0 Off 1 On
AT+CPIN Enter PIN
Test Command
AT+CPIN=?
Response
OK
Read Command
AT+CPIN?
Response TA returns an alphanumeric string indicating whether or not some password is required.
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CLCK="SC", 2
+CLCK: 0 // Query the status of SIM card lock,0-unlock
OK
AT+CLCK="SC",1,"1234" // Lock SIM card, the password is 1234
OK
AT+CLCK="SC",2
+CLCK: 1 // Query the status of SIM card lock,1-lock
OK
AT+CLCK="SC",0,"1234" // Unlock SIM card
OK
5.3. AT+CPIN Enter PIN
M35_AT_Commands_Manual Confidential / Released 48 / 186
+CPIN: <code>
OK
Write Command
AT+CPIN=<pin>[, <new pin>]
Response TA stores a password which is necessary before it can be operated (SIM PIN, SIM PUK, PH-SIM PIN, etc.). If the PIN is to be entered twice, the TA shall automatically repeat the PIN. If no PIN request is pending, no action is taken and an error message, +CME ERROR, is returned to TE. If the PIN required is SIM PUK or SIM PUK2, the second pin is required. This second pin, <new pin>, is used to replace the old pin in the SIM
OK
Reference GSM 07.07
<code> READY No further entry needed
SIM PIN ME is waiting for SIM PIN SIM PUK ME is waiting for SIM PUK PH_SIM PIN ME is waiting for phone to SIM card (antitheft) PH_SIM PUK ME is waiting for SIM PUK (antitheft) SIM PIN2 PIN2, e.g. it is possible to edit the FDN book only if preceding command
was acknowledged with +CME ERROR:17
SIM PUK2 Possible only if preceding command was acknowledged with error
+CME ERROR: 18
<pin> String type; password <new pin> String type; If the PIN required is SIM PUK or SIMPUK2: new password
GSM/GPRS Module
M35 AT Commands Manual
Parameter
Example
AT+CPIN?
+CPIN: SIM PIN // Query PIN code is locked
OK
AT+CPIN=1234 // PIN
+CPIN: READY
OK
AT+CPIN? // PIN has already been entered
M35_AT_Commands_Manual Confidential / Released 49 / 186
AT+CPWD Change Password
Test Command
AT+CPWD=?
Response TA returns a list of pairs which present the available facilities and the maximum length of their password.
+CPWD: (list of supported <fac>s), (<pwdlength>s)
OK
Write Command
AT+CPWD=<fac>,<oldpwd>,<newpwd
>
Response TA sets a new password for the facility lock function.
OK
Reference GSM 07.07
<fac> "PS" Phone locked to SIM (device code). The "PS" password may either be individually specified by the client or, depending on the subscription, supplied from the provider (e.g. with a prepaid mobile) "SC" SIM (lock SIM card) (SIM asks password in ME power-up and when this lock Command issued) "AO" BAOC (Barr All Outgoing Calls) (refer to GSM02.88[6] clause 1) "OI" BOIC (Barr Outgoing International Calls) (refer to GSM02.88[6] clause 1)
GSM/GPRS Module
M35 AT Commands Manual
+CPIN: READY
OK
AT+CPIN?
+CPIN: SIM PUK // Query PUK code is locked
OK
AT+CPIN="26601934","1234" // Enter PUK and new PIN password
+CPIN: READY
OK
AT+CPIN?
+CPIN: READY // PUK has already been entered
OK
5.4. AT+CPWD Change Password
Parameter
M35_AT_Commands_Manual Confidential / Released 50 / 186
"OX" BOIC-exHC (Barr Outgoing International Calls except to Home Country) (refer to GSM02.88[6] clause 1) "AI" BAIC (Barr All Incoming Calls) (refer to GSM02.88[6] clause 2) "IR" BIC-Roam (Barr Incoming Calls when Roaming outside the home country) (refer to GSM02.88 [6] clause 2) "AB" All Barring services (refer to GSM02.30[19]) (applicable only for <mode>=0) "AG" All outgoing barring services (refer to GSM02.30[19]) (applicable only for <mode>=0 "AC" All incoming barring services (refer to GSM02.30[19]) (applicable only for <mode>=0) "FD" SIM fixed dialing memory feature "P2" SIM PIN2
<pwdlength>Integer. Max. length of password <oldpwd> Password specified for the facility from the user interface or with command <newpwd> New password
AT+CRSM Restricted SIM Access
Test Command
AT+CRSM=?
Response
OK
Write Command
AT+CRSM=<Command>[,<fileId>[,<P
1>,<P2>,<P3>[,<data>]]]
Response
+CRSM: <sw1>, <sw2> [,<response>]
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CPIN?
+CPIN: READY
OK
AT+CPWD="SC","1234","4321" // Change SIM card password to “4321”
OK
AT+CPIN? // Restart module or re-activate the SIM card, query PIN
code is locked
+CPIN: SIM PIN
OK
AT+CPIN="4321" // PIN must be entered to define a new password “4321”
+CPIN: READY
OK
5.5. AT+CRSM Restricted SIM Access
M35_AT_Commands_Manual Confidential / Released 51 / 186
OK
ERROR +CME ERROR: <err>
Reference GSM 07.07
<Command> 176 READ BINARY 178 READ RECORD 192 GET RESPONSE 214 UPDATE BINARY 220 UPDATE RECORD 242 STATUS All other values are reserved; refer to GSM 11.11
<fileId> Integer type; this is the identifier for an elementary data file on SIM. Mandatory for
every Command except STATUS
<P1>,<P2>,<P3> Integer type; parameters passed on by the ME to the SIM. These parameters are
mandatory for every command, except GET RESPONSE and STATUS. The values are described in GSM 11.11
<data> Information which shall be written to the SIM (hexadecimal character format) <sw1>,<sw2> Integer type; information from the SIM about the execution of the actual command.
These parameters are delivered to the TE in both cases, on successful or failed
execution of the command <response> Response of a successful completion of the command previously issued (hexadecimal character format). STATUS and GET RESPONSE return data, which gives information about the current elementary data field. This information includes the type of file and its size (refer to GSM 11.11). After READ BINARY or READ RECORD command the requested data will be returned. The parameter is not returned after a successful UPDATE BINARY or UPDATE RECORD command
GSM/GPRS Module
M35 AT Commands Manual
Parameter
Example
AT+CRSM=242
+CRSM: 145, 211, "000000007F100200000000000A13000C0400838A808A"
OK // <sw1>=145,<sw2>=211,"000000007F100200000000000
A13000C0400838A808A" which is the command previously return data, refer to GSM 11.11
M35_AT_Commands_Manual Confidential / Released 52 / 186
AT+CSIM Generic SIM Access
Test Command
AT+CSIM=?
Response
+CSIM: (list of supported <operation>s),<file_id>,<offset>/<record_id>,<len>/"data
"
OK
Write Command
AT+CSIM=<operation>,<file_id>,<offs
et>,<record_id>,<len>,<data>
Response
+CSIM: <command>,<response>
OK
ERROR
Reference GSM 07.07
<operation> 0 Read operation 1 Write operation
<file_id> Integer type: SIM elementary file ID <offset> Integer type: offset for reading and writing SIM <len> Integer type: length of parameter <data> String type: hex format: parameter is sent or received from the ME to the SIM
AT+QCSPWD Change PS Super Password
Test Command
AT+QCSPWD=?
Response
OK
Write Command
AT+QCSPWD=<oldpwd>,<newpwd>
Response
OK
ERROR
Reference
<oldpwd> String type. Old password and length should be 8
M35 AT Commands Manual
GSM/GPRS Module
5.6. AT+CSIM Generic SIM Access
Parameter
5.7. AT+QCSPWD Change PS Super Password
Parameter
M35_AT_Commands_Manual Confidential / Released 53 / 186
1. Default value of <oldpwd> is "12345678".
2. If the module is locked to a specific SIM card through +CLCK and password lost or SIM state is
PH-SIM PUK, you can use the super password to unlock it.
<newpwd> String type. New password and length should be 8
AT+QCCID Show ICCID
Test Command
AT+QCCID=?
Response
OK
Execution Command
AT+QCCID
Response
ICCID data
OK
Reference
AT+QGID Get SIM Card Group Identifier
Execution Command
AT+QGID
Response
+QGID: <gid1> <gid2>
OK
ERROR
Reference
NOTES
M35 AT Commands Manual
GSM/GPRS Module
5.8. AT+QCCID Show ICCID
Example
AT+QCCID // Query ICCID of the SIM card
898600220909A0206023
OK
5.9. AT+QGID Get SIM Card Group Identifier
M35_AT_Commands_Manual Confidential / Released 54 / 186
If the SIM supports GID files, the GID values are returned. Otherwise 0xff is returned.
AT+QSIMVOL can take effect only when the command is set successfully and the module is restarted.
<gid1> Integer type of SIM card group identifier 1 <gid2> Integer type of SIM card group identifier 2
AT+QSIMVOL Select SIM Card Operating Voltage
Test Command
AT+QSIMVOL=?
Response
+QSIMVOL: (list of supported <mode>s)
OK
Read Command
AT+QSIMVOL?
Response
+QSIMVOL: <mode>
OK
Write Command
AT+QSIMVOL=<mode>
Response
OK
ERROR +CME ERROR: <err>
Reference
<mode> 0 Recognize 1.8V and 3.0V SIM card (Default) 1 Recognize 1.8V SIM card only 2 Recognize 3.0V SIM card only
NOTE
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
5.10. AT+QSIMVOL Select SIM Card Operating Voltage
Parameter
M35_AT_Commands_Manual Confidential / Released 55 / 186
AT+COPS Operator Selection
Test Command
AT+COPS=?
Response TA returns a list of quadruplets, each representing an operator present in the network. Any of the formats may be unavailable and should then be an empty field. The list of operators shall be in order: home network, networks referenced in SIM and other networks. +COPS: (list of supported<stat>, long alphanumeric <oper>, short alphanumeric <oper>, numeric <oper>s)[,,(list of supported <mode>s),(list of supported <format>s)]
OK
If error is related to ME functionality:
+CME ERROR: <err>
Read Command
AT+COPS?
Response TA returns the current mode and the currently selected operator. If no operator is selected, <format> and <oper> are omitted.
+COPS: <mode>[,<format>[,<oper>]]
OK
If error is related to ME functionality: +CME ERROR: <err>
Write Command
AT+COPS
=<mode>[,<format>[,<oper>]]
Response TA forces an attempt to select and register the GSM network operator. If the selected operator is not available, no other operator shall be selected (except <mode>=4). The format of selected operator name shall apply to further read commands (+COPS?).
OK
If error is related to ME functionality:
M35 AT Commands Manual
GSM/GPRS Module
6
Network Service Commands
6.1. AT+COPS Operator Selection
M35_AT_Commands_Manual Confidential / Released 56 / 186
+CME ERROR: <err>
Reference GSM 07.07
<stat> 0 Unknown 1 Operator available 2 Operator current 3 Operator forbidden
<oper> Operator in format as per <mode> <mode> 0 Automatic mode; <oper> field is ignored
1 Manual operator selection; <oper> field shall be present 2 Manual deregister from network 3 Set only <format> (for read Command +COPS?) – not shown in Read Command
response 4 Manual/automatic selected; if manual selection fails, automatic mode (<mode>=0) is entered <format> 0 Long format alphanumeric <oper>;can be up to 16 characters long 1 Short format alphanumeric <oper> 2 Numeric <oper>; GSM Location Area Identification number
AT+CREG Network Registration
Test Command
AT+CREG=?
Response
+CREG: (list of supported <n>s)
OK
GSM/GPRS Module
M35 AT Commands Manual
Parameter
Example
AT+COPS=? // List all current network operators
+COPS: (2,"CHINA MOBILE","CMCC","46000"),(3,"CHINA UNICOM GSM","CU-GSM","46001")
,,(0-4),(0-2)
OK
AT+COPS? // Query the currently selected network operator
+COPS: 0,0,"CHINA MOBILE"
OK
6.2. AT+CREG Network Registration
M35_AT_Commands_Manual Confidential / Released 57 / 186
Unsolicited result code If <n>=1 and there is a change in the ME network registration status +CREG: <stat> If <n>=2 and there is a change in the ME network registration status or a change of the network cell: +CREG: <stat>[,<lac>,<ci>]
Read Command
AT+CREG?
Response TA returns the status of result code presentation and an integer <stat> which shows whether the network has currently indicated the registration of the ME. Location information elements <lac> and <ci> are returned only when
<n>=2 and ME is registered in the network.
+CREG: <n>,<stat>[,<lac>,<ci>]
OK
If error is related to ME functionality: +CME ERROR: <err>
Write Command
AT+CREG=<n>
Response TA controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1 and there is a change in the ME network registration status. OK
Reference GSM 07.07
<n> 0 Disable network registration unsolicited result code
1 Enable network registration unsolicited result code +CREG: <stat>
2 Enable network registration unsolicited result code with location information <stat> 0 Not registered, ME is not currently searching a new operator to register to 1 Registered, home network 2 Not registered, but ME is currently searching a new operator to register to 3 Registration denied 4 Unknown
5 Registered, roaming
<lac> String type; two byte location area code in hexadecimal format <ci> String type; two byte cell ID in hexadecimal format
NOTES
GSM/GPRS Module
M35 AT Commands Manual
Parameter
Example
AT+CREG=1
M35_AT_Commands_Manual Confidential / Released 58 / 186
AT+CSQ Signal Quality Report
Test Command
AT+CSQ=?
Response
+CSQ: (list of supported <rssi>s),(list of supported <ber>s)
OK
Execution Command
AT+CSQ
Response
+CSQ: <rssi>,<ber>
OK
+CME ERROR: <err>
Execution Command returns received signal strength indication <rssi> and channel bit error rate <ber> from the ME. Test Command returns values supported by the TA.
Reference GSM 07.07
<rssi> 0 -113 dBm or less 1 -111 dBm
2...30 -109... -53 dBm 31 -51 dBm or greater 99 Not known or not detectable <ber> (in percent):
0...7 As RXQUAL values in the table in GSM 05.08 subclause 8.2.4 99 Not known or not detectable
GSM/GPRS Module
M35 AT Commands Manual
OK
+CREG: 1 // URC reports that operator has been found
AT+CREG=2 // Activates extended URC mode
OK
+CREG: 1,"1878","0873" // URC reports that operator has been found with location area code and cell ID
6.3. AT+CSQ Signal Quality Report
Parameter
Example
AT+CSQ=?
M35_AT_Commands_Manual Confidential / Released 59 / 186
AT+CPOL Preferred Operator List
Test Command
AT+CPOL=?
Response
+CPOL: (list of supported <index>s),(list of supported <format>s)
OK
Read Command
AT+CPOL?
Response
+CPOL: <index1>,<format>,<oper1>
[<CR><LF>+CPOL: <index2>,<format>,<oper2>
[…]]
OK +CME ERROR: <err>
Write Command
AT+CPOL=<index>[,<format>[,<oper>
]]
Response
OK
+CME ERROR: <err>
Reference GSM 07.07
<index> I Integer type: order number of operator in SIM preferred operator list <format> 0 Long format alphanumeric <oper>
1 Short format alphanumeric <oper> 2 Numeric <oper> <oper> String type: <format> indicates either alphanumeric or numeric format is used (see +COPS command)
GSM/GPRS Module
M35 AT Commands Manual
+CSQ: (0-31,99),(0-7,99)
OK
AT+CSQ
+CSQ: 28,0 // Query the current signal strength indication is 28 and the bit error rate is 0
OK
6.4. AT+CPOL Preferred Operator List
Parameter
M35_AT_Commands_Manual Confidential / Released 60 / 186
AT+COPN Read Operator Names
Test Command
AT+COPN=?
Response
OK
Execution Command
AT+COPN
Response
+COPN: <numeric1>,<alpha1 >
[<CR><LF>+COPN: <numeric2>,<alpha2>
[…]]
OK +CME ERROR: <err>
Reference GSM 07.07
<numericn> String type: operator in numeric format (see +COPS) <alphan> String type: operator in long alphanumeric format (see +COPS)
AT+QBAND Get and Set Mobile Operation Band
Test Command
AT+QBAND=?
Response
+QBAND: (list of supported <op_band>s)
OK
Read Command
AT+QBAND?
Response
+QBAND: <op_band>
OK
Write Command
AT+QBAND=<op_band>
Response
OK
If error is related to ME functionality: +CME ERROR: <err>
Reference
M35 AT Commands Manual
GSM/GPRS Module
6.5. AT+COPN Read Operator Names
Parameter
6.6. AT+QBAND Get and Set Mobile Operation Band
Parameter
M35_AT_Commands_Manual Confidential / Released 61 / 186
The following radio setting to be updated is stored in non-volatile memory.
<op_band> "EGSM_MODE" "DCS_MODE" "PCS_MODE"
"EGSM_DCS_MODE" "GSM850_PCS_MODE" "GSM850_EGSM_DCS_PCS_MODE
NOTE
GSM/GPRS Module
M35 AT Commands Manual
"GSM350_MODE"
M35_AT_Commands_Manual Confidential / Released 62 / 186
1. Any additional commands on the same command line are ignored.
2. This command may be aborted generally by receiving a character during execution. The aborting is
not possible during some states of connection establishment such as handshaking.
3. See also ATX.
ATA Answer an Incoming Call
Execution Command
ATA
Response TA sends off-hook to the remote station. Response in case of data call, if successfully connected CONNECT<text> TA switches to data mode. Note: <text> output only if ATX<value> parameter setting with the <value> >0. When TA returns to command mode after call release:
OK
Response in case of voice call, if successfully connected:
OK
Response if no connection:
NO CARRIER
Reference V.25ter
NOTES
M35 AT Commands Manual
GSM/GPRS Module
7
Call Related Commands
7.1. ATA Answer an Incoming Call
Example
RING // A voice call is ringing
AT+CLCC
+CLCC: 1,1,4,0,0,"02154450290",129,""
OK
M35_AT_Commands_Manual Confidential / Released 63 / 186
ATD Mobile Originated Call to Dial a Number
Execution Command
ATD<n>[<mgsm][;]
Response This command can be used to set up outgoing voice, data or FAX calls. It also serves to control supplementary services.
If no dial tone and (parameter setting ATX2 or ATX4):
NO DIALTONE
If busy and (parameter setting ATX3 or ATX4): BUSY
If a connection cannot be established:
NO CARRIER
If connection is successful and non-voice call.
CONNECT<text> TA switches to data mode. <text> output only if ATX<value> parameter setting with the <value> >0
When TA returns to command mode after call release:
OK
If connection is successful and voice call:
OK
Reference V.25ter
<n> String of dialing digits and optionally V.25ter modifiers dialingdigits:0-9, * , #, +, A, B, C
Following V.25ter modifiers are ignored: ,(comma), T, P, !, W, @
Emergency call: <n> Standardized emergency number 112(no SIM needed)
GSM/GPRS Module
M35 AT Commands Manual
ATA // Accept the voice call with ATA
OK
7.2. ATD Mobile Originated Call to Dial a Number
Parameter
M35_AT_Commands_Manual Confidential / Released 64 / 186
1. This command may be aborted generally by receiving an ATH command or a character during
execution. The aborting is not possible during some states of connection establishment such as handshaking.
2. Parameter "I" and "i" only if no *# code is within the dial string.
3. <n> is default value for last number that can be dialed by ATDL.
4. *# codes sent with ATD are treated as voice calls. Therefore, the command must be terminated with
a semicolon ";".
5. See ATX command for setting result code and call monitoring parameters.
6. Responses returned after dialing with ATD
For voice call two different responses mode can be determined. TA returns “OK” immediately either after dialing was completed or after the call was established. The setting is controlled by AT+COLP. Factory default is AT+COLP=0, which causes the TA returns “OK” immediately after dialing was completed, otherwise TA will returns “OK”, “BUSY”, “NO DIAL TONE”, “NO
CARRIER”.
7. Using ATD during an active voice call:
When a user originates a second voice call while there is already an active voice call, the first
call will be automatically put on hold.
The current states of all calls can be easily checked at any time by using the AT+CLCC
command.
<mgsm> String of GSM modifiers: I Actives CLIR (Disables presentation of own number to called party) i Deactivates CLIR (Enable presentation of own number to called party)
G Activates closed user group invocation for this call only
g Deactivates closed user group invocation for this call only
<;> Only required to set up voice call, return to command state
ATH Disconnect Existing Connection
Execution Command
ATH[n]
Response Disconnect existing call by local TE from command line and terminate call.
OK
NOTES
GSM/GPRS Module
M35 AT Commands Manual
Example
ATD10086; // Dialing out the party‟s number
OK
7.3. ATH Disconnect Existing Connection
M35_AT_Commands_Manual Confidential / Released 65 / 186
OK is issued after circuit 109(DCD) is turned off, if it was previously on.
1. To prevent the “+++” escape sequence from being misinterpreted as data, it should comply to
following sequence:
No characters entered for T1 time (0.5 seconds).  +++” characters entered with no characters in between. For CSD call or PPP online mode, the
interval between two “+” MUST should be less than 1 second and for a transparent TCPIP connection, the interval MUST should be less than 20 ms.
No characters entered for T1 time (0.5 seconds).  Switch to command mode, otherwise go to step 1.
2. To return from command mode back to data or PPP online mode: Enter ATO
Another way to change to command mode is through DTR, see AT&D command for the details.
Reference V.25ter
<n> 0 Disconnect from line and terminate call
+++ Switch From Data Mode to Command Mode
Execution Command
+++
Response This command is only available during TA is in data mode, such as, a CSD call, a GPRS connection and a transparent TCPIP connection. The “+++ character sequence causes the TA to cancel the data flow over the AT interface and switch to command mode. This allows you to enter AT command while maintaining the data connection with the remote server or, accordingly, the GPRS connection.
OK
Reference V.25ter
NOTE
NOTES
M35 AT Commands Manual
GSM/GPRS Module
Parameter
7.4. +++ Switch From Data Mode to Command Mode
M35_AT_Commands_Manual Confidential / Released 66 / 186
TA returns to data mode from command mode CONNECT <text>,<text> only if parameter setting is X>0.
No effect in GSM.
ATO Switch from Command Mode to Data Mode
Execution Command
ATO[n]
Response TA resumes the connection and switches back from command mode to data mode. If connection is not successfully resumed:
NO CARRIER
else TA returns to data mode from command mode CONNECT
<text>
Reference V.25ter
<n> 0 Switch from command mode to data mode
ATP Select Pulse Dialing
Execution Command
ATP
Response
OK
Reference V.25ter
NOTE
NOTE
M35 AT Commands Manual
GSM/GPRS Module
7.5. ATO Switch from Command Mode to Data Mode
Parameter
7.6. ATP Select Pulse Dialing
M35_AT_Commands_Manual Confidential / Released 67 / 186
If <n> is set too high, the calling party may hang up before the call can be answered automatically.
ATS0 Set Number of Rings before Automatically Answering Call
Read Command
ATS0?
Response
<n>
OK
Write Command
ATS0=<n>
Response This parameter setting determines the number of rings before auto-answer. OK
Reference V.25ter
<n> 0 Automatic answering is disabled 1-255 Enable automatic answering on the ring number specified
ATS6 Set Pause before Blind Dialing
Read Command
ATS6?
Response
<n>
OK
NOTE
M35 AT Commands Manual
GSM/GPRS Module
7.7. ATS0 Set Number of Rings before Automatically Answering Call
Parameter
Example
ATS0=3 // Set three rings before automatically answering a call
OK
RING // Call coming
RING RING // Automatically answering the call after three rings
7.8. ATS6 Set Pause before Blind Dialing
M35_AT_Commands_Manual Confidential / Released 68 / 186
No effect in GSM
1. If called party has specified a high value for ATS0=<n>, call setup may fail.
2. The correlation between ATS7 and ATS0 is important, for example: Call may fail if ATS7=30 and
ATS0=20.
3. ATS7 is only applicable to data call.
Write Command
ATS6=<n>
Response OK
Reference V.25ter
<n> 0-2-10 Number of seconds to wait before blind dialing
ATS7 Set Number of Seconds to Wait for Connection Completion
Read Command
ATS7?
Response
<n>
OK
Write Command
ATS7=<n>
Response This parameter setting determines the amount of time to wait for the connection completion in case of answering or originating a call. OK
Reference V.25ter
<n> 1-60-255 Number of seconds to wait for connection completion
NOTE
NOTES
M35 AT Commands Manual
GSM/GPRS Module
Parameter
7.9. ATS7 Set Number of Seconds to Wait for Connection Completion
Parameter
M35_AT_Commands_Manual Confidential / Released 69 / 186
No effect in GSM.
ATS8 Set the Number of Seconds to Wait for Comma Dial Modifier
Read Command
ATS8?
Response
<n>
OK
Write Command
ATS8=<n>
Response OK
Reference V.25ter
<n> 0 No pause when comma encountered in dial string 1-2-255 Number of seconds to wait
ATS10 Set Disconnect Delay after Indicating the Absence of Data Carrier
Read Command
ATS10?
Response
<n>
OK
Write Command
ATS10=<n>
Response This parameter setting determines the amount of time that the TA will remain connected in absence of data carrier. If the data carrier is once more detected before disconnection, the TA remains connected. OK
Reference V.25ter
NOTE
M35 AT Commands Manual
GSM/GPRS Module
7.10. ATS8 Set the Number of Seconds to Wait for Comma Dial Modifier
Parameter
7.11. ATS10 Set Disconnect Delay after Indicating the Absence of Data
Carrier
M35_AT_Commands_Manual Confidential / Released 70 / 186
No effect in GSM.
<n> 1-15-254 Number of delay in 100ms
ATT Select Tone Dialing
Execution Command
ATT
Response
OK
Reference V.25ter
AT+CBST Select Bearer Service Type
Test Command
AT+CBST=?
Response
+CBST: (list of supported <speed>s) ,(list of supported <name>s) ,(list of supported <ce>s)
OK
Read Command
AT+CBST?
Response
+CBST: <speed>,<name>,<ce>
OK
Write Command
AT+CBST=[<speed>[,<name>[,<ce>]]]
Response TA selects the bearer service <name> with data rate <speed>, and the connection element <ce> to be used when data calls are originated. OK
Reference GSM 07.07
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
7.12. ATT Select Tone Dialing
7.13. AT+CBST Select Bearer Service Type
M35_AT_Commands_Manual Confidential / Released 71 / 186
GSM 02.02 lists the allowed combinations of the sub parameters.
<speed> 0 Adaptive baud 4 2400 bps(V.22bis) 5 2400 bps(V.26ter) 6 4800 bps(V.32) 7 9600 bps(V.32) 12 9600 bps(V.34) 14 14400 bps(V.34) 68 2400 bps(V.110 or X.31 flag stuffing) 70 4800 bps(V.110 or X.31 flag stuffing) 71 9600 bps(V.110 or X.31 flag stuffing) 75 14400 bps(V.110 or X.31 flag stuffing)
<name> 0 Asynchronous modem <ce> 0 Transparent
1 Non-transparent 2 Both, transparent preferred 3 Both, non-transparent preferred
AT+CSTA Select Type of Address
Test Command
AT+CSTA=?
Response
+CSTA: (list of supported <type>s)
OK
Read Command
AT+CSTA?
Response
+CSTA: <type>
OK
Reference GSM 07.07
< type > Current address type setting.
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
7.14. AT+CSTA Select Type of Address
Parameter
M35_AT_Commands_Manual Confidential / Released 72 / 186
129 Unknown type (IDSN format number) 145 International number type (ISDN format ) 161 National number type (IDSN format)
AT+CLCC List Current Calls of ME
Test Command
AT+CLCC=?
Response OK
Execution Command
AT+CLCC
Response TA returns a list of current calls of ME. If command succeeds but no calls are available, no information response is sent to TE.
[+CLCC: <id1>,<dir>,<stat>,<mode>,<mpty>[,
<number>,<type>[,""]]
[<CR><LF>+CLCC: <id2>,<dir>,<stat>,<mode>,<mpty>[,
<number>,<type>[,""]]
[...]]]
OK
If error is related to ME functionality: +CME ERROR: <err>
Reference GSM 07.07
<idx> Integer type; call identification number as described in GSM 02.30 sub clause 4.5.5.1; this number can be used in +CHLD Command operations <dir> 0 Mobile originated (MO) call 1 Mobile terminated (MT) call <stat> State of the call 0 Active 1 Held 2 Dialing (MO call) 3 Alerting (MO call) 4 Incoming (MT call) 5 Waiting (MT call) <mode> Bearer/tele service 0 Voice
GSM/GPRS Module
M35 AT Commands Manual
7.15. AT+CLCC List Current Calls of ME
Parameter
M35_AT_Commands_Manual Confidential / Released 73 / 186
1 Data 2 FAX 9 Unknown <mpty> 0 Call is not one of multiparty (conference) call parties 1 Call is one of multiparty (conference) call parties
<number> Phone number in string type in format specified by <type> <type> Type of address of octet in integer format
129 Unknown type(IDSN format number)
145 International number type (ISDN format )
AT+CR Service Reporting Control
Test Command
AT+CR=?
Response
+CR: (list of supported <mode>s)
OK
Read Command
AT+CR?
Response
+CR: <mode>
OK
Write Command
AT+CR=[<mode>]
Response TA controls whether or not intermediate result code +CR:
<serv> is returned from the TA to the TE when a call set up. OK
Reference GSM 07.07
<mode> 0 Disable
1 Enable <serv> ASYNC Asynchronous transparent SYNC Synchronous transparent
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CLCC
+CLCC: 1,0,0,0,0,"10086",129,"" // List the current call of ME
OK
7.16. AT+CR Service Reporting Control
Parameter
M35_AT_Commands_Manual Confidential / Released 74 / 186
Intermediate result code: If it is enabled, an intermediate result code is transmitted at the point during connect negotiation at which the TA has determined which speed and quality of service will be used, before any error control or data compression reports are transmitted, and before any final result code (e.g. CONNECT) is transmitted.
Unsolicited result code: When it is enabled, an incoming call is indicated to the TE with unsolicited result code +CRING: <type> instead of the normal RING. Parameter <type> ASYNC Asynchronous transparent
REL ASYNC Asynchronous non-transparent REL SYNC Synchronous non-transparent
AT+CRC Set Cellular Result Codes for Incoming Call Indication
Test Command
AT+CRC=?
Response
+CRC: (list of supported <mode>s)
OK
Read Command
AT+CRC?
Response
+CRC: <mode>
OK
Write Command
AT+CRC=[<mode>]
Response TA controls whether or not the extended format of incoming call indication is used.
OK
Reference GSM 07.07
<mode> 0 Disable extended format
1 Enable extended format
NOTE
NOTE
M35 AT Commands Manual
GSM/GPRS Module
7.17. AT+CRC Set Cellular Result Codes for Incoming Call Indication
Parameter
M35_AT_Commands_Manual Confidential / Released 75 / 186
SYNC Synchronous transparent REL ASYNC Asynchronous non-transparent REL SYNC Synchronous non-transparent FAX Facsimile VOICE Voice
AT+CRLP Select Radio Link Protocol Parameter
Test Command
AT+CRLP=?
Response TA returns values supported. RLP (Radio Link Protocol) versions 0 and 1 share the same parameter set. TA returns only one line for this set (where <verx> is not present).
+CRLP: (list of supported <iws>s),(list of supported <mws>s),(list of supported <T1>s),(list of supported <N2>s),(list of supported <ver1>s),(list of supported <T4>s)
OK
Read Command
AT+CRLP?
Response TA returns current settings for RLP version. RLP versions 0 and 1 share the same parameter set. TA returns only one line for this set (where <verx> is not present).
+CRLP: <iws>,<mws>,<T1>,<N2>,<ver1>,<T4>
OK
Write Command
Response
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CRC=1 // Enable extended format
OK
+CRING: VOICE // Indicate incoming call to the TE
ATH
OK
AT+CRC=0 // Disable extended format
OK
RING // Indicate incoming call to the TE
ATH
OK
7.18. AT+CRLP Select Radio Link Protocol Parameter
M35_AT_Commands_Manual Confidential / Released 76 / 186
AT+CRLP=[<iws>[,<mws>[,<T1>[,<N2
>[,<ver>[,<T4>]]]]]]
TA sets radio link protocol (RLP) parameters used when non-transparent data calls are set up.
OK
Reference GSM 07.07
<iws> 0-61 Interworking window size (IWF to MS) <mws> 0-61 Mobile window size(MS to IWF) <T1> 39-255 Acknowledgment timer T1 in a unit of 10ms <N2> 1-255 Retransmission attempts N2 <verx> RLP RLP version number in integer format. When version indication is not present,
it shall equal 0.
<T4> 3-255 Re-sequencing period in integer format, in a unit of 10 ms
AT+CSNS Single Numbering Scheme
Test Command
AT+CSNS=?
Response
+CSNS: (list of supported <mode>s)
OK
Read Command
AT+CSNS?
Response
+CSNS: <mode>
OK
Write Command
AT+CSNS=[<mode>]
Response
OK
ERROR
Reference GSM 07.07
<mode> 0 Voice
1 Alternating voice/FAX, voice first 2 FAX 3 Alternating voice/data, voice first 4 Data
GSM/GPRS Module
M35 AT Commands Manual
Parameter
7.19. AT+CSNS Single Numbering Scheme
Parameter
M35_AT_Commands_Manual Confidential / Released 77 / 186
5 Alternating voice/FAX, FAX first 6 Alternating voice/data, data first
7 Voice followed by data
AT+CMOD Configure Alternating Mode Calls
Test Command
AT+CMOD=?
Response
+CMOD: (list of supported <mode>s)
OK
Write Command
AT+CMOD=[<mode>]
Response
OK
ERROR
Reference GSM 07.07
<mode> 0 Single mode 1 Alternating voice/FAX 2 Alternating voice/data 3 Voice followed by data
AT+QSFR Preference Speech Coding
Test Command
AT+QSFR=?
Response
+QSFR: (list of supported <mode>s)
OK
Read Command
AT+QSFR?
Response
+QSFR: <mode>
OK
Write Command
AT+QSFR=<mode>
Response
OK
ERROR
M35 AT Commands Manual
GSM/GPRS Module
7.20. AT+CMOD Configure Alternating Mode Calls
Parameter
7.21. AT+QSFR Preference Speech Coding
M35_AT_Commands_Manual Confidential / Released 78 / 186
This setting is stored in the non-volatile memory and will be used whenever the module is powered up again.
Reference
<mode> 0 Automatic mode 1 FR 2 HR 3 EFR 4 AMR_FR 5 AMR_HR 6 FR and EFR, FR priority 7 EFR and FR, EFR priority 8 EFR and HR, EFR priority 9 EFR and AMR_FR, EFR priority 10 AMR_FR and FR, AMR_FR priority 11 AMR_FR and HR, AMR_FR priority 12 AMR_FR and EFR, AMR_FR priority 13 AMR_HR and FR, AMR_HR priority
14 AMR_HR and HR, AMR_HR priority
15 AMR_HR and EFR, AMR_HR priority
NOTE
GSM/GPRS Module
M35 AT Commands Manual
Parameter
M35_AT_Commands_Manual Confidential / Released 79 / 186
AT+CSMS Select Message Service
Test Command
AT+CSMS=?
Response
+CSMS: (list of supported <service>s)
OK
Read Command
AT+CSMS?
Response
+CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command
AT+CSMS=<service>
Response
+CSMS: <mt>,<mo>,<bm>
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<service> 0 GSM 03.40 and 03.41 (the syntax of SMS AT commands is compatible with GSM
07.05 Phase 2 version 4.7.0; Phase 2+ features which do not require ew command syntax may be supported (e.g. correct routing of messages with new Phase 2+ data coding schemes)) 128 SMS PDU mode - TPDU only used for ending/receiving SMSs <mt> Mobile Terminated Messages 0 Type not supported 1 Type supported <mo> Mobile Originated Messages 0 Type not supported 1 Type supported
<bm> Broadcast Type Messages
M35 AT Commands Manual
GSM/GPRS Module
8
SMS Commands
8.1. AT+CSMS Select Message Service
Parameter
M35
_AT_Commands_Manual Confidential / Released 80 / 186
0 Type not supported 1 Type supported
AT+CMGF Select SMS Message Format
Test Command
AT+CMGF=?
Response
+CMGF: (list of supported <mode>s)
OK
Read Command
AT+CMGF?
Response
+CMGF: <mode>
OK
Write Command
AT+CMGF=[<mode>]
Response TA sets parameter to denote which kind of I/O format of messages is used.
OK
Reference GSM 07.05
<mode> 0 PDU mode 1 Text mode
AT+CSCA SMS Service Center Address
Test Command
AT+CSCA=?
Response
OK
Read Command
AT+CSCA?
Response
+CSCA: <sca>,<tosca>
OK
Write Command
AT+CSCA=<sca>[,<tosca>]
Response TA updates the SMSC address, through which mobile originated SMS are transmitted. In text mode, setting is used
M35 AT Commands Manual
GSM/GPRS Module
8.2. AT+CMGF Select SMS Message Format
Parameter
8.3. AT+CSCA SMS Service Center Address
M35_AT_Commands_Manual Confidential / Released 81 / 186
The Command writes the parameters in NON-VOLATILE memory.
by sending and writing commands. In PDU mode, setting is used by the same commands, but only when the length of the SMSC address coded into <pdu> parameter equals zero.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference GSM 07.05
<sca> GSM 04.11 RP SC address Address-Value field in string format; BCD numbers (or GSM default alphabet characters) are converted to characters of the currently selected TE character set (specified by +CSCS in TS 07.07); type of address given by <tosca> < tosca> Service center address format GSM 04.11 RP SC address Type-of-Address octet in integer format (default refer to <toda>)
AT+CPMS Preferred SMS Message Storage
Test Command
AT+CPMS=?
Response
+CPMS: (list of supported <mem1>s),(list of supported <mem2>s),(list of supported <mem3>s)
OK
Read Command
AT+CPMS?
Response
+CPMS:
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
Example
AT+CSCA="+8613800210500",145 // SMS service center address
OK
AT+CSCA? // Query SMS service center address
+CSCA: "+8613800210500",145
OK
8.4. AT+CPMS Preferred SMS Message Storage
M35_AT_Commands_Manual Confidential / Released 82 / 186
The message storages of SIM and ME offer maximum space for 60, the SIM message storage will be priority stored. The SIM storage offer maximum space for 50, the ME storage offer maximum space for
10.
<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<m em3>,<used3>,<total3>
OK
Write Command
AT+CPMS=<mem1>[,<mem2>[,<mem
3>]]
Response TA selects memory storages <mem1>, <mem2> and
<mem3> to be used for reading, writing, etc.
+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<mem1> Messages to be read and deleted from this memory storage "SM" SIM message storage "ME" Mobile Equipment message storage "MT" Sum of "SM" and "ME" storages <mem2> Messages will be written and sent to this memory storage "SM" SIM message storage "ME" Mobile Equipment message storage "MT" Sum of "SM" and "ME" storages <mem3> Received messages will be placed in this memory storage if routing to PC is not set ("+CNMI") "SM" SIM message storage "ME" Mobile Equipment message storage "MT" Sum of "SM" and "ME" storages
<usedx> Integer type; Number of messages currently in <memx> <totalx> Integer type; Number of messages storable in <memx>
NOTE
GSM/GPRS Module
M35 AT Commands Manual
Parameter
Example
AT+CPMS="SM","SM","SM" // Set SMS message storage as “SM”
M35_AT_Commands_Manual Confidential / Released 83 / 186
AT+CMGD Delete SMS Message
Test Command
AT+CMGD=?
Response
+CMGD: (list of supported <index>s),(list of supported <delflag>s)
OK
Write Command
AT+CMGD=<index>[,<delflag>]
Response TA deletes message from preferred message storage
<mem1> location <index>.
OK
ERROR
If error is related to ME functionality:
+CMS ERROR:<err>
Reference GSM 07.05
<index> Integer type; value in the range of location numbers supported by the associated memory <delflag> 0 Delete message specified in <index> 1 Delete all read messages from <mem1> storage, leaving unread messages and
stored mobile originated messages (whether sent or not) untouched 2 Delete all read messages from <mem1> storage and sent mobile originated messages, leaving unread messages and unsent mobile originated messages untouched 3 Delete all read messages from <mem1> storage, sent and unsent mobile originated messages, leaving unread messages untouched 4 Delete all messages from <mem1> storage
GSM/GPRS Module
M35 AT Commands Manual
+CPMS: 0,50,0,50,0,50
OK
AT+CPMS? // Query the current SMS message storage
+CPMS: "SM",0,50,"SM",0,50,"SM",0,50
OK
8.5. AT+CMGD Delete SMS Message
Parameter
M35_AT_Commands_Manual Confidential / Released 84 / 186
AT+CMGL List SMS Messages from Preferred Store
Test Command
AT+CMGL=?
Response
+CMGL: (list of supported <stat>s)
OK
Write Command
AT+CMGL=<stat>[,<mode>]
Response TA returns messages with status value <stat> from message storage <mem1> to the TE. If status of the message is 'received unread', status in the storage changes to 'received read'.
1) If text mode (+CMGF=1) and command successful: for SMS-SUBMITs and/or SMS-DELIVERs:
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,< length>]<CR><LF><data>[<CR><LF>
+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,< length>]<CR><LF><data>[...]]
for SMS-STATUS-REPORTs:
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st >[<CR><LF> +CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st >[...]]
for SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF> +CMGL: <index>,<stat>,<fo>,<ct>[...]]
for CBM storage:
+CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages><CR
><LF><data>[<CR><LF> +CMGL:
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CMGD=1 // Delete message specified in <index>=1
OK
AT+CMGD=1,4 // Delete all messages from <mem1> storage
OK
8.6. AT+CMGL List SMS Messages from Preferred Store
M35_AT_Commands_Manual Confidential / Released 85 / 186
<index>,<stat>,<sn>,<mid>,<page>,<pages><CR><LF><d
ata>[...]]
OK
2) If PDU mode (+CMGF=0) and Command successful:
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pd
u><CR><LF>
+CMGL:
<index>,<stat>,[alpha],<length><CR><LF><pdu>[...]]
OK
3)If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<stat> 1) If text mode "REC UNREAD" Received unread messages "REC READ" Received read messages "STO UNSENT" Stored unsent messages "STO SENT" Stored sent messages "ALL" All messages
2) If PDU mode 0 Received unread messages 1 Received read messages 2 Stored unsent messages 3 Stored sent messages 4 All messages <mode> 0 Normal(default) 1 Not change status of the specified SMS record
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry found
in MT phonebook; implementation of this feature is manufacturer specific; used character set should be the one selected with command select TE character set +CSCS (see definition of this command in TS 07.07)
<da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE character set (refer to command +CSCS in TS 07.07); type of address given by <toda>
<data> In the case of SMS: GSM 03.40 TP-User-Data in text mode responses; format
if <dcs> indicates that GSM 03.38 default alphabet is used and <fo> indicates that GSM 03.40 TPUser-Data-Header-Indication is not set
if TE character set other than "HEX" (refer to Command Select TE character set
GSM/GPRS Module
M35 AT Commands Manual
Parameter
M35_AT_Commands_Manual Confidential / Released 86 / 186
If parameter is omitted the command returns the list of SMS with “REC UNREAD” status.
+CSCS in TS 07.07):ME/TA converts GSM alphabet into current TE character set according to rules of Annex A
if TE character set is "HEX": ME/TA converts each 7-bit character of GSM alphabet into two IRA character long hexadecimal number (e.g. character P (GSM 23) is presented as 17 (IRA 49 and 55))
if <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates that GSM 03.40 TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65))
In the case of CBS: GSM 03.41 CBM Content of Message in text mode responses; format:
if <dcs> indicates that GSM 03.38 default alphabet is used
if TE character set other than "HEX" (refer to Command +CSCS in GSM 07.07): ME/TA
converts GSM alphabet into current TE character set according to rules of Annex A
if TE character set is "HEX": ME/TA converts each 7-bit character of GSM alphabet into two IRA character long hexadecimal number
if <dcs> indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number
<length> Integer type value indicating in the text mode (+CMGF=1) the length of the message body
<data> (or <cdata>) in characters; or in PDU mode (+CMGF=0), the length of the actual
TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length) <index> Integer type; value in the range of location numbers supported by the associated memory <oa> GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (refer to command +CSCS in TS 07.07); type of address given by <tooa> <pdu> In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal
format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal
number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50
and 65)). In the case of CBS: GSM 03.41 TPDU in hexadecimal format
<scts> GSM 03.40 TP-Service-Center-Time-Stamp in time-string format (refer to <dt>) <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default value is 129)
<tooa> GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format (refer to <toda>)
NOTE
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CMGF=1 // Set SMS message format as text mode
OK
AT+CMGL="ALL" // List all messages from message storage
M35_AT_Commands_Manual Confidential / Released 87 / 186
AT+CMGR Read SMS Message
Test Command
AT+CMGR=?
Response
OK
Write Command
AT+CMGR=<index>[,<mode>]
Response TA returns SMS message with location value <index> from message storage <mem1> to the TE. If status of the message is 'received unread', status in the storage changes to 'received read'.
1) If text mode (+CMGF=1) and command is executed successfully: for SMS-DELIVER:
+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<
sca>,<tosca>,<length>]<CR><LF><data>
for SMS-SUBMIT:
+CMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],<
sca>,<tosca>,<length>]<CR><LF><data>
for SMS-STATUS-REPORTs:
+CMGR:
<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
for SMS-COMMANDs:
+CMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><
CR><LF><cdata>]
for CBM storage:
+CMGR:
<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><dat
a>
2) If PDU mode (+CMGF=0) and command successful:
GSM/GPRS Module
M35 AT Commands Manual
+CMGL: 1,"STO UNSENT","","",
This is a test from Quectel
+CMGL: 2,"STO UNSENT","","",
This is a test from Quectel,once again.
OK
8.7. AT+CMGR Read SMS Message
M35_AT_Commands_Manual Confidential / Released 88 / 186
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
OK
3) If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<index> Integer type; value in the range of location numbers supported by the associated memory <mode> 0 Normal 1 Not change the status of the specified SMS record
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry found
in MT phonebook; implementation of this feature is manufacturer specific <da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <toda> <data> In the case of SMS: GSM 03.40 TP-User-Data in text mode responses; format
if <dcs> indicates that GSM 03.38 default alphabet is used and <fo> indicates that GSM 03.40 TPUser-Data-Header-Indication is not set
if TE character set other than "HEX" (refer to command select TE character set +CSCS in TS 07.07):ME/TA converts GSM alphabet into current TE character set according to rules of Annex A
if TE character set is "HEX": ME/TA converts each 7-bit character of GSM alphabet into two IRA character long hexadecimal number (e.g. character P (GSM 23) is presented as 17 (IRA 49 and 55))
if <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates that GSM 03.40 TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65))
In the case of CBS: GSM 03.41 CBM Content of Message in text mode responses; format
if <dcs> indicates that GSM 03.38 default alphabet is used
if TE character set other than "HEX" (refer to command +CSCS in GSM 07.07): ME/TA
converts GSM alphabet into current TE character set according to rules of Annex A
if TE character set is "HEX": ME/TA converts each 7-bit character of GSM alphabet into two IRA character long hexadecimal number
if <dcs> indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number
<dcs> Depending on the command or result code: GSM 03.38 SMS Data Coding Scheme
(default value is 0), or Cell Broadcast Data Coding Scheme in integer format
GSM/GPRS Module
M35 AT Commands Manual
Parameter
M35_AT_Commands_Manual Confidential / Released 89 / 186
<fo> Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default value is 17), SMS-STATUS-REPORT, or SMS-COMMAND (default value is 2) in integer format
<length> Integer type value indicating in the text mode (+CMGF=1) the length of the message body
<data> (or <cdata>) in characters; or in PDU mode (+CMGF=0), the length of the actual
TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length) <mid> GSM 03.41 CBM Message Identifier in integer format <oa> GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <tooa> <pdu> In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal
format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal
number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50
and 65))
In the case of CBS: GSM 03.41 TPDU in hexadecimal format <pid> GSM 03.40 TP-Protocol-Identifier in integer format (default value is 0) <sca> GSM 04.11 RP SC address Address-Value field in string format; BCD numbers (or GSM
default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <tosca>
<scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer to <dt>) <stat> PDU mode text mode Explanation 0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages 2 "STO UNSENT" Stored unsent messages 3 "STO SENT" Stored sent messages 4 "ALL" All messages <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default is 129) <tooa> GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format (default refer
to <toda>)
<tosca> GSM 04.11 RP SC address Type-of-Address octet in integer format (default refer to
<toda>)
<vp> Depending on SMS-SUBMIT <fo> setting: GSM 03.40 TP-Validity-Period either in integer format (default value is 167) or in time-string format (refer to <dt>)
GSM/GPRS Module
M35 AT Commands Manual
Example
+CMTI: "SM",3 // Indicates that new message has been received and saved to <index>=3 of “SM”
AT+CMGR=3 // Read message
+CMGR: "REC UNREAD","+8615021012496","","2010/09/25 15:06:37+32",145,4,0,241,"+8
613800210500",145,27
This is a test from Quectel
M35_AT_Commands_Manual Confidential / Released 90 / 186
AT+CMGS Send SMS Message
Test Command
AT+CMGS=?
Response
OK
Write Command
1) If text mode (+CMGF=1):
AT+CMGS=<da>[,<toda>]<CR>
text is entered
<ctrl-Z/ESC> ESC quits without sending
2) If PDU mode (+CMGF=0):
AT+CMGS=<length><CR> PDU is given <ctrl-Z/ESC>
Response TA sends message from a TE to the network (SMS-SUBMIT). Message reference value <mr> is returned to the TE on successful message delivery. Optionally (when +CSMS <service> value is 1 and network supports) <scts> is returned. Values can be used to identify message upon unsolicited delivery status report result code.
1) If text mode (+CMGF=1) and sent successfully:
+CMGS: <mr>
OK
2) If PDU mode (+CMGF=0) and sent successfully: +CMGS: <mr>
OK
3)If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <toda> <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default value is 129)
<length> Integer type value indicating in the text mode (+CMGF=1) the length of the message body <data> (or <cdata>) in characters; or in PDU mode (+CMGF=0), the length of the actual TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length)
<mr> GSM 03.40 TP-Message-Reference in integer format
GSM/GPRS Module
M35 AT Commands Manual
OK
8.8. AT+CMGS Send SMS Message
Parameter
M35_AT_Commands_Manual Confidential / Released 91 / 186
AT+CMGW Write SMS Message to Memory
Test Command
AT+CMGW=?
Response
OK
Write Command
1) If text mode (+CMGF=1):
AT+CMGW[=<oa/da>[,<tooa/toda>[,<s
tat>]]] <CR> text is entered <ctrl-Z/ESC>
<ESC> quits without sending
2) If PDU mode (+CMGF=0):
AT+CMGW=<length>[,<stat>]<CR> PDU is given <ctrl-Z/ESC>
Response TA transmits SMS message (either SMS-DELIVER or SMS-SUBMIT) from TE to memory storage <mem2>. Memory location <index> of the stored message is returned. By default message status will be set to 'stored unsent', but parameter <stat> also allows other status values to be given.
If writing is successful:
+CMGW: <index>
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<oa> GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07);type of address given by <tooa> <da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CMGF=1 // Set SMS message format as text mode
OK
AT+CSCS=GSM // Set character set as GSM which is used by the TE
OK
AT+CMGS="15021012496"
> This is a test from Quectel // Enter in text,<CTRL+Z> send message,<ESC> quits
without sending
+CMGS: 247
OK
8.9. AT+CMGW Write SMS Message to Memory
Parameter
M35_AT_Commands_Manual Confidential / Released 92 / 186
character set (specified by +CSCS in TS 07.07); type of address given by <toda> <tooa> GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format (default refer
to <toda>) <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default value is 129) 129 Unknown type(IDSN format number) 145 International number type(ISDN format )
<stat> PDU mode text mode Explanation 0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages 2 "STO UNSENT" Stored unsent messages 3 "STO SENT" Stored sent messages 4 "ALL" All messages
<length> Integer type value indicating in the text mode (+CMGF=1) the length of the message body
<data> (or <cdata>) in characters; or in PDU mode (+CMGF=0), the length of the actual
TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length) <pdu> In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal
format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal
number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50
and 65)) In the case of CBS: GSM 03.41 TPDU in hexadecimal format
<index> Index of message in selected storage <mem2>
AT+CMSS Send SMS Message from Storage
Test Command
AT+CMSS=?
Response
OK
Write Command
Response
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CMGF=1 // Set SMS message format as text mode
OK
AT+CSCS=”GSM” // Set character set as GSM which is used by the TE
OK
AT+CMGW="15021012496"
> This is a test from Quectel // Enter in text, <CTRL+Z> write message, <ESC> quits without sending
+CMGW: 4
OK
8.10. AT+CMSS Send SMS Message from Storage
M35_AT_Commands_Manual Confidential / Released 93 / 186
AT+CMSS=<index>[,<da>[,<toda>]]
TA sends message with location value <index> from message storage <mem2> to the network (SMS-SUBMIT). If new recipient address <da> is given, it shall be used instead of the one stored with the message. Reference value <mr> is returned to the TE on successful message delivery. Values can be used to identify message upon unsolicited delivery status report result code.
1) If text mode (+CMGF=1) and sent successfully:
+CMSS: <mr> [,<scts>]
OK
2) If PDU mode(+CMGF=0) and sent successfully; +CMSS: <mr> [,<ackpdu>]
OK
3) If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<index> Integer type; value in the range of location numbers supported by the associated memory <da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <toda> <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default value is 129)
<mr> GSM 03.40 TP-Message-Reference in integer format <scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer to <dt>) <ackpdu> In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal
format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)). In the case of CBS: GSM 03.41 TPDU in hexadecimal format
AT+CMGC Send SMS Command
Test Command
Response
GSM/GPRS Module
M35 AT Commands Manual
Parameter
8.11. AT+CMGC Send SMS Command
M35_AT_Commands_Manual Confidential / Released 94 / 186
AT+CMGC=?
OK
Write Command
1) If text mode (+CMGF=1):
AT+CMGC=<fo>[,<ct>,<pid>,<mn>,<d
a>,<toda>]<CR>
text is entered
<ctrl-Z/ESC> ESC quits without sending
2) If PDU mode (+CMGF=0):
AT+CMGC=<length><CR> PDU is given <ctrl-Z/ESC>
Response TA transmits SMS command message from a TE to the network (SMS-COMMAND). Message reference value <mr> is returned to the TE on successful message delivery. Value can be used to identify message upon unsolicited delivery status report result code.
1) If text mode(+CMGF=1) and sent successfully:
+CMGC: <mr> [,<scts>]
OK
2) If PDU mode(+CMGF=0) and sent successfully:
+CMGC: <mr> [,<ackpdu>]
OK
3)If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
<fo> First octet of GSM 03.40 SMS-COMMAND (default value is 2) in integer format <ct> GSM 03.40 TP-Command-Type in integer format (default value is 0) <pid> GSM 03.40 TP-Protocol-Identifier in integer format (default value is 0) <mn> GSM 03.40 TP-Message-Number in integer format <da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted to characters of the currently selected TE
character set (specified by +CSCS in TS 07.07); type of address given by <toda> <toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of <da> is + (IRA 43) default value is 145, otherwise default value is 129) 129 Unknown type(IDSN format number) 145 International number type(ISDN format )
<length> Integer type value indicating in PDU mode (+CMGF=0), the length of the actual TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length)
<mr> GSM 03.40 TP-Message-Reference in integer format <scts> GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer to <dt>) <ackpdu> In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal
format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)). In the case of CBS: GSM 03.41 TPDU in hexadecimal format
GSM/GPRS Module
M35 AT Commands Manual
Parameter
M35_AT_Commands_Manual Confidential / Released 95 / 186
AT+CNMI New SMS Message Indications
Test Command
AT+CNMI=?
Response
+CNMI: (list of supported <mode>s),(list of supported <mt>s),(list of supported <bm>s),(list of supported <ds>s),(list of supported <bfr>s)
OK
Read Command
AT+CNMI?
Response
+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
Write Command
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds
>[,<bfr>]]]]]
Response TA selects the procedure on how the received new messages from the network are indicated to the TE when TE is active, e.g. DTR signal is ON. If TE is inactive (e.g. DTR signal is OFF), receiving message should be done as specified in GSM 03.38.
OK
If error is related to ME functionality:
ERROR
Reference GSM 07.05
<mode> 0 Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications can be buffered in some other place or the oldest indications may be discarded and replaced with the new received indications 1 Discard indication and reject new received message unsolicited result codes when TA-TE link is reserved (e.g. in on-line data mode). Otherwise forward them directly to the TE 2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line data mode) and flush them to the TE after reservation. Otherwise forward them directly to the TE 3 Forward unsolicited result codes directly to the TE. TA-TE link specific inband technique used to embed result codes and data when TA is in on-line data mode <mt> (The rules for storing received SMS depend on its data coding scheme (refer to GSM 03.38 [2]), preferred memory storage (+CPMS) setting and this value): 0 No SMS-DELIVER indications are routed to the TE
GSM/GPRS Module
M35 AT Commands Manual
8.12. AT+CNMI New SMS Message Indications
Parameter
M35_AT_Commands_Manual Confidential / Released 96 / 186
Unsolicited result code
+CMTI: <mem>,<index> Indicates that new message has been received +CMT: [<alpha>],<length><CR><LF><pdu> Short message is output directly +CBM: <length><CR><LF><pdu> Cell broadcast message is output directly
1 If SMS-
DELIVER is stored into ME/TA, indication of the memory location is routed to the TE by using unsolicited result code: +CMTI: <mem>,<index> 2 SMS-DELIVERs (except class 2) are routed directly to the TE using unsolicited result code: +CMT: [<alpha>],<length><CR><LF><pdu> (PDU mode enabled) or +CMT: <oa>, [<alpha>],<scts>
[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
(Text mode enabled; about parameters in italics, refer to Command Show Text Mode Parameters +CSDH). Class 2 messages result in indication as defined in
<mt>=1 3 Class 3 SMS-DELIVERs are routed directly to TE by using unsolicited result codes defined in <mt>=2. Messages of other classes result in indication as defined in <mt>=1 <bm> (The rules for storing received CBMs depend on its data coding scheme (refer to GSM
03.38 [2]), the setting of Select CBM Types (+CSCB) and this value): 0 No CBM indications are routed to the TE 2 New CBMs are routed directly to the TE by using unsolicited result code: +CBM: <length><CR><LF><pdu> (PDU mode enabled) or +CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (Text mode enabled) 3 Class 3 CBMs are routed directly to TE by using unsolicited result codes defined in <bm>=2. If CBM storage is supported, messages of other classes result in indication as defined in <bm>=1 <ds> 0 No SMS-STATUS-REPORTs are routed to the TE
+CDS: <length><CR><LF><pdu> (PDU mode enabled) or +CDS:
<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (Text mode enabled) <bfr> 0 TA buffer of unsolicited result codes defined in this command is flushed to the TE when <mode> 1...3 is entered (OK response shall be given before flushing the codes)
NOTE
GSM/GPRS Module
M35 AT Commands Manual
Example
AT+CMGF=1 // Set SMS message format as text mode
OK
AT+CSCS=”GSM” // Set character set as GSM which is used by the TE
OK
AT+CNMI=2,1 // SMS-DELIVER is stored into ME/TA, indication of the
memory location is routed to the TE
M35_AT_Commands_Manual Confidential / Released 97 / 186
AT+CRES Restore SMS Settings
Test Command
AT+CRES=?
Response
+CRES: (list of supported <profile>s)
OK
Write Command
AT+CRES[=<profile>]
Response TA restores SMS settings from non-volatile memory to active memory. A TA can contain several profiles of settings. Settings specified in commands service centre address +CSCA, set message parameters +CSMP and select cell broadcast message types +CSCB (if implemented) are restored. Certain settings may not be supported by the storage (e.g. SIM SMS parameters) and therefore can not be restored.
OK
If error is related to ME functionality:
ERROR
Reference GSM 07.05
<profile> 0-3 Manufacturer specific profile number where settings are to be stored
AT+CSAS Save SMS Settings
M35 AT Commands Manual
OK
+CMTI: "SM",5 // Indicate that new message has been received
AT+CNMI=2,2 // Set SMS-DELIVERs are routed directly to the TE
OK
+CMT: "+8615021012496"," ","2010/09/25 17:25:01+32",145,4,0,241,"+8613800210500",145,27 This is a test from Quectel // Short message is output directly
GSM/GPRS Module
8.13. AT+CRES Restore SMS Settings
Parameter
8.14. AT+CSAS Save SMS Settings
M35_AT_Commands_Manual Confidential / Released 98 / 186
Test Command
AT+CSAS=?
Response
+CSAS: (list of supported <profile>s)
OK
Write Command
AT+CSAS[=<profile>]
Response TA saves active message service settings to non-volatile memory. A TA can contain several profiles of settings. Settings specified in commands service centre address +CSCA, Set Message Parameters +CSMP and Select cell broadcast message Types +CSCB (if implemented) are saved. Certain settings may not be supported by the storage (e.g. SIM SMS parameters) and therefore can not be saved.
OK
If error is related to ME functionality:
ERROR
Reference GSM 07.05
<profile> 0-3 Manufacturer specific profile number where settings are to be stored
AT+CSCB Select Cell Broadcast SMS Messages
Test Command
AT+CSCB=?
Response
+CSCB: (list of supported <mode>s)
OK
Read Command
AT+CSCB?
Response
+CSCB: <mode>,<mids>,<dcss>
OK
Write Command
AT+CSCB=<mode>[,mids>[,<dcss>]]
Response TA selects which types of CBMs are to be received by the ME.
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference GSM 07.05
GSM/GPRS Module
M35 AT Commands Manual
Parameter
8.15. AT+CSCB Select Cell Broadcast SMS Messages
M35_AT_Commands_Manual Confidential / Released 99 / 186
The Command writes the parameters in NON-VOLATILE memory.
<mode> 0 Message types specified in <mids> and <dcss> are accepted 1 Message types specified in <mids> and <dcss> are not accepted <mids> String type; all different possible combinations of CBM message identifiers (refer to <mid>)
(default is empty string)
e.g. "0,1,5,320-478,922" <dcss> String type; all different possible combinations of CBM data coding schemes (refer to
<dcs>) (default is empty string)
e.g. "0-3,5"
AT+CSDH Show SMS Text Mode Parameters
Test Command
AT+CSDH=?
Response
+CSDH: (list of supported <show>s)
OK
Read Command
AT+CSDH?
Response
+CSDH: <show>
OK
Write Command
AT+CSDH=[<show>]
Response TA determines whether detailed header information is shown in text mode result codes.
OK
Reference GSM 07.05
<show> 0 Do not show header values defined in commands +CSCA and +CSMP (<sca>, <tosca>, <fo>, <vp>, <pid> and <dcs>) nor <length>, <toda> or <tooa> in +CMT, +CMGL, +CMGR result codes for SMS-DELIVERs and SMS-SUBMITs in text mode 1 Show the values in result codes
NOTE
M35 AT Commands Manual
GSM/GPRS Module
Parameter
8.16. AT+CSDH Show SMS Text Mode Parameters
Parameter
M35_AT_Commands_Manual Confidential / Released 100 / 186
Loading...