0% found this document useful (0 votes)
184 views186 pages

m35 at Command

m35 at Command

Uploaded by

MaiDung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views186 pages

m35 at Command

m35 at Command

Uploaded by

MaiDung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 186

M35

AT Commands Manual

GSM/GPRS Module Series

Rev. M35_AT_Commands_Manual_V1.0

Date: 2013-07-11

www.quectel.com
GSM/GPRS Module
M35 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: [email protected]

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


GSM/GPRS Module
M35 AT Commands Manual

About the Document

History
Revision

1.0
Date

t
2013-07-11

e l
Author

l
Bonnie ZHAO
Description

Initial

e c t i a
u
Q fid e n
o n
C
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


GSM/GPRS Module
M35 AT Commands Manual

Table 1: Types of AT Commands and Responses

This command returns the list of parameters and value ranges


Test Command AT+<x>=?
set by the corresponding Write Command or internal processes.
This command returns the currently set value of the parameter
Read Command AT+<x>?
or parameters.

Write Command AT+<x>=<…> This command sets the user-definable parameter values.

Execution This command reads non-variable parameters affected by


AT+<x>
Command internal processes in the GSM engine

1.2.1. Combining AT Commands on the Same Command Line

You can enter several AT Commands on the same line. In this case, you do not need to type the “AT” or
“at” prefix before every command. Instead, you only need type “AT” or “at” at the beginning of the
command line. Please note that use a semicolon as command delimiter.

The command line buffer can accept a maximum of 256 characters. If the input characters exceeded the
maximum then no command will be executed and TA will return “ERROR”.

1.2.2. Entering Successive AT Commands on Separate Lines

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

1.3. Supported Character Sets

The 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


GSM/GPRS Module
M35 AT Commands Manual

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.

1.4. Flow Control

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
control. M35 supports both two kinds of flow control.

In Multiplex mode, it is recommended to use the hardware flow control.

The default flow control approach of 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.

NOTE

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

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


GSM/GPRS Module
M35 AT Commands Manual

2 General Commands

2.1. ATI Display Product Identification Information

ATI Display Product Identification Information


Execution Command Response
ATI TA issues product information text

Quectel_Ltd
Quectel_M35
Revision: M85EARxxAxxW64

OK
Reference
V.25ter

Example
ATI
Quectel_Ltd
Quectel_M35
Revision: M85EAR21A01W64

OK

2.2. AT+GMI Request Manufacture Identification

AT+GMI Request Manufacture Identification


Test Command Response
AT+GMI=? OK
Execution Command Response
AT+GMI TA reports one or more lines of information text which permit
the user to identify the manufacturer.
Quectel_Ltd

M35_AT_Commands_Manual Confidential / Released 15 / 186


GSM/GPRS Module
M35 AT Commands Manual

Quectel_M35
Revision: MTK 1132

OK
Reference
V.25ter

2.3. AT+GMM Request TA Model Identification

AT+GMM Request TA Model Identification


Test Command Response
AT+GMM=? OK
Execution Command Response
AT+GMM TA returns a product model identification text.
Quectel_M35

OK
Reference
V.25ter

2.4. AT+GMR Request TA Revision Identification of Software Release

AT+GMR Request TA Revision Identification of Software Release


Test Command Response
AT+GMR=? OK
Execution Command Response
AT+GMR 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

Parameter

<revision> Revision of software release

M35_AT_Commands_Manual Confidential / Released 16 / 186


GSM/GPRS Module
M35 AT Commands Manual

Example
AT+GMR
Revision: M85EAR21A01W64

OK

2.5. AT+GOI Request Global Object Identification

AT+GOI Request Global Object Identification


Test Command Response
AT+GOI=? OK
Execution Command Response
AT+GOI 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

Parameter

<Object Id> Identifier of device type

NOTE

See X.208, 209 for the format of <Object Id>. For example, in M35 wireless module, string “M35” is
displayed.

2.6. AT+CGMI Request Manufacturer Identification

AT+CGMI Request Manufacture Identification


Test Command Response
AT+CGMI=? OK
Execution Command Response

M35_AT_Commands_Manual Confidential / Released 17 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CGMI TA returns manufacturer identification text.


Quectel_Ltd
Quectel_M35
Revision: MTK 1132

OK
Reference
GSM 07.07

2.7. AT+CGMM Request Model Identification

AT+CGMM Request Model Identification


Test Command Response
AT+CGMM=? OK
Execution Command Response
AT+CGMM TA returns product model identification text.
<model>

OK
Reference
GSM 07.07

Parameter

<model> Product model identification text

2.8. AT+CGMR Request TA Revision Identification of Software Release

AT+CGMR Request TA Revision Identification of Software Release


Test Command Response
AT+CGMR=? OK
Execution Command Response
AT+CGMR TA returns product software version identification text.
Revision: <revision>

OK
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 18 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<revision> Product software version identification text

2.9. AT+GSN Request International Mobile Equipment Identity (IMEI)

AT+GSN Request International Mobile Equipment Identity (IMEI)


Test Command Response
AT+GSN=? OK
Execution Command Response
AT+GSN 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

Parameter

<sn> IMEI of the telephone

NOTE

The serial number (IMEI) is varied with the individual ME device.

2.10. AT+CGSN Request Product Serial Number Identification

AT+CGSN Request Product Serial Number Identification (Identical with +GSN)


Test Command Response
AT+CGSN=? OK
Execution Command Response
AT+CGSN <sn>

OK

M35_AT_Commands_Manual Confidential / Released 19 / 186


GSM/GPRS Module
M35 AT Commands Manual

Reference
GSM 07.07

NOTE

See AT+GSN.

2.11. AT&F Set all Current Parameters to Manufacturer Defaults

AT&F Set all Current Parameters to Manufacturer Defaults


Execution Command Response
AT&F[<value>] TA sets all current parameters to the manufacturer defined
profile.
OK
Reference
V.25ter

Parameter

<value> 0 Set all TA parameters to manufacturer defaults

2.12. AT&V Display Current Configuration

AT&V Display Current Configuration


Execution Command Response
AT&V[<n>] TA returns the current parameter setting.
ACTIVE PROFILE
<current configurations text>
OK
Reference
V.25ter

Parameter

<n> 0 Profile number

M35_AT_Commands_Manual Confidential / Released 20 / 186


GSM/GPRS Module
M35 AT Commands Manual

Table 2: AT&V Display Current Configuration List

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

M35_AT_Commands_Manual Confidential / Released 21 / 186


GSM/GPRS Module
M35 AT Commands Manual

+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

2.13. AT&W Store Current Parameter to User Defined Profile

AT&W Store Current Parameter to User Defined Profile


Execution Command Response
AT&W[<n>] TA stores the current parameter setting in the user defined
profile.
OK
Reference
V.25ter

Parameter

<n> 0 Profile number to store to

NOTE

The profile defined by user is stored in non volatile memory.

2.14. ATQ Set Result Code Presentation Mode

ATQ Set Result Code Presentation Mode


Execution Command Response
ATQ<n> This parameter setting determines whether or not the TA

M35_AT_Commands_Manual Confidential / Released 22 / 186


GSM/GPRS Module
M35 AT Commands Manual

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

Parameter

<n> 0 TA transmits result code


1 Result codes are suppressed and not transmitted

2.15. ATV TA Response Format

ATV TA Response Format


Execution Command Response
ATV<value> 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

Parameter

<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

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

M35_AT_Commands_Manual Confidential / Released 23 / 186


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

ATV1 ATV0 Description

OK 0 Acknowledges execution of a command

A connection has been established; the DCE is moving


CONNECT 1
from command state to online data state
The DCE has detected an incoming call signal from
RING 2
network
The connection has been terminated or the attempt to
NO CARRIER 3
establish a connection failed
Command not recognized, command line maximum
ERROR 4 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

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

PROCEEDING 9 An AT command is being processed

Same as CONNECT, but includes


manufacturer-specific text that may specify DTE
CONNECT <text> Manufacturer-specific
speed, line speed, error control, data compression, or
other status

M35_AT_Commands_Manual Confidential / Released 24 / 186


GSM/GPRS Module
M35 AT Commands Manual

2.16. ATX Set CONNECT Result Code Format and Monitor Call Progress

ATX Set CONNECT Result Code Format and Monitor Call Progress
Execution Command Response
ATX<value> This parameter setting determines whether or not the TA
detected the presence of dial tone and busy signal and
whether or not TA transmits particular result codes.
OK
Reference
V.25ter

Parameter

<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

2.17. ATZ Set all Current Parameters to User Defined Profile

ATZ Set all Current Parameters to User Defined Profile


Execution Command Response
ATZ[<value>] TA sets all current parameters to the user defined profile.
OK
Reference
V.25ter

Parameter

<value> 0 Reset to profile number 0

M35_AT_Commands_Manual Confidential / Released 25 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTES
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.

2.18. AT+CFUN Set Phone Functionality

AT+CFUN Set Phone Functionality


Test Command Response
AT+CFUN=? +CFUN: (list of supported <fun>s), (list of supported <rst>s)

OK
Read Command Response
AT+CFUN? +CFUN: <fun>

OK
Write Command Response
AT+CFUN=<fun>[,<rst>] OK

If error is related to ME functionality:


+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<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

Example
AT+CFUN=0 // Switch phone to minimum functionality
+CPIN: NOT READY

OK

M35_AT_Commands_Manual Confidential / Released 26 / 186


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

AT+QPOWD Power off


Write Command Response
AT+QPOWD=<n> When <n>=0
OK
When <n>=1
NORMAL POWER DOWN
Reference

Parameter

<n> 0 Urgent power off ( Do not send out URC "NORMAL POWER DOWN")
1 Normal power off (Send out URC "NORMAL POWER DOWN")

M35_AT_Commands_Manual Confidential / Released 27 / 186


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

AT+CMEE Report Mobile Equipment Error


Test Command Response
AT+CMEE=? +CMEE: (list of supported <n>s)

OK
Read Command Response
AT+CMEE? +CMEE: <n>

OK
Write Command Response
AT+CMEE=[<n>] TA disables or enables the use of result code +CME ERROR:
<err> as an indication of an error related to the functionality of
the ME.
OK
Reference
GSM 07.07

Parameter

<n> 0 Disable result code


1 Enable result code and use numeric values
2 Enable result code and use verbose values

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


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

AT+CSCS Select TE Character Set


Test Command Response
AT+CSCS=? +CSCS: (list of supported <chset>s)

OK
Read Command Response
AT+CSCS? +CSCS: <chset>

OK
Write Command Response
AT+CSCS=<chset> Set character set <chset> which is used by the TE. The TA
can then convert character strings correctly between the TE
and ME character sets.
OK
Reference
GSM 07.07

Parameter

<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

Example
AT+CSCS? // Query the current character set
+CSCS: "GSM"

OK

M35_AT_Commands_Manual Confidential / Released 29 / 186


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

AT+GCAP Request Complete TA Capabilities List


Test Command Response
AT+GCAP=? OK
Execution Command Response
AT+GCAP TA reports a list of additional capabilities.
+GCAP: <name>s

OK
Reference
V.25ter

Parameter

<name> +CGSM GSM function is supported


+FCLASS FAX function is supported

M35_AT_Commands_Manual Confidential / Released 30 / 186


GSM/GPRS Module
M35 AT Commands Manual

3 Serial Interface Control Commands

3.1. AT&C Set DCD Function Mode

AT&C Set DCD Function Mode


Execution Command Response
AT&C[<value>] 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

Parameter

<value> 0 DCD line is always ON


1 DCD line is ON only in the presence of data carrier

3.2. AT&D Set DTR Function Mode

AT&D Set DTR Function Mode


Execution Command Response
AT&D[<value>] 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

Parameter

<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 Confidential / Released 31 / 186


GSM/GPRS Module
M35 AT Commands Manual

2 ON->OFF on DTR: Disconnect data call, change to command mode. During state
DTR = OFF auto-answer is off

3.3. AT+ICF Set TE-TA Control Character Framing

AT+ICF Set TE-TA Control Character Framing


Test Command Response
AT+ICF=? +ICF: (list of supported <format>s), (list of supported
<parity>s)

OK
Read Command Response
AT+ICF? +ICF: <format>,<parity>

OK
Write Command Response
AT+ICF=[<format>,[<parity>]] This parameter setting determines the serial interface
character framing format and parity received by TA from TE.
OK
Reference
V.25ter

Parameter

<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

1. The command is applied for command state.


2. The <parity> field is ignored if the <format> field specifies no parity.

M35_AT_Commands_Manual Confidential / Released 32 / 186


GSM/GPRS Module
M35 AT Commands Manual

3.4. AT+IFC Set TE-TA Local Data Flow Control

AT+IFC Set TE-TA Local Data Flow Control


Test Command Response
AT+IFC=? +IFC: (list of supported <dce_by_dte>s), (list of supported
<dte_by_dce>s)

OK
Read Command Response
AT+IFC? +IFC: <dce_by_dte>,<dte_by_dce>

OK
Write Command Response
AT+IFC=<dce_by_dte>,<dte_by_dce> This parameter setting determines the data flow control on
the serial interface for data mode.
OK
Reference
V.25ter

Parameter

<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

This flow control is applied for data mode.

Example
AT+IFC=2,2 // Open the hardware flow control
OK
AT+IFC?
+IFC: 2,2

M35_AT_Commands_Manual Confidential / Released 33 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK

3.5. AT+ILRR Set TE-TA Local Data Rate Reporting Mode

AT+ILRR Set TE-TA Local Data Rate Reporting Mode


Test Command Response
AT+ILRR=? +ILRR: (list of supported <value>s)

OK
Read Command Response
AT+ILRR? +ILRR: <value>

OK
Write Command Response
AT+ILRR=[<value>] 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

Parameter

<value> 0 Disables reporting of local port rate


1 Enables reporting of local port rate

NOTE

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

M35_AT_Commands_Manual Confidential / Released 34 / 186


GSM/GPRS Module
M35 AT Commands Manual

38400
57600
115200

3.6. AT+IPR Set TE-TA Fixed Local Rate

AT+IPR Set TE-TA Fixed Local Rate


Test Command Response
AT+IPR=? +IPR: (list of supported auto detectable <rate>s),(list of
supported fixed-only<rate>s)

OK
Read Command Response
AT+IPR? +IPR: <rate>

OK
Write Command Response
AT+ IPR=<rate> This parameter setting determines the data rate of the TA on
the serial interface. After the delivery of any result code
associated with the current command line, the rate of
command takes effect.
OK
Reference
V.25ter

Parameter

<rate> Baud rate per second


0 (Autobauding)
75
150
300
600
1200
2400
4800
9600
14400
19200
28800
38400

M35_AT_Commands_Manual Confidential / Released 35 / 186


GSM/GPRS Module
M35 AT Commands Manual

57600
115200

NOTES

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”.

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
module is started up with adaptive baud enabled. Otherwise undefined characters might be
returned.
2. Restriction on adaptive baud operation.
 The serial interface shall be used with 8 data bits, no parity and 1 stop bit (factory setting).

M35_AT_Commands_Manual Confidential / Released 36 / 186


GSM/GPRS Module
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.

NOTE

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

3.7. AT+CMUX Multiplexer Control

AT+CMUX Multiplexer Control


Test Command Response
AT+CMUX=? +CMUX: (list of supported <mode>s), (<subset>s),

M35_AT_Commands_Manual Confidential / Released 37 / 186


GSM/GPRS Module
M35 AT Commands Manual

4 Status Control Commands

4.1. AT+CEER Extended Error Report

AT+CEER Extended Error Report


Test Command Response
AT+CEER=? OK
Execution Command Response
AT+CEER TA returns an extended report of the reason for the last call
release.
+CEER: <locationID>,<cause>

OK
Reference
GSM 07.07

Parameter

<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

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


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

AT+CPAS Mobile Equipment Activity Status


Test Command Response
AT+CPAS=? +CPAS: (list of supported <pas>s)

OK
Execution Command Response
AT+CPAS TA returns the activity status of ME.
+CPAS: <pas>

OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<pas> 0 Ready
2 Unknown (ME is not guaranteed to respond to instructions)
3 Ringing
4 Call in progress or call hold

Example
AT+CPAS
+CPAS: 0 // Module is idle

OK
ATD10086;
OK

M35_AT_Commands_Manual Confidential / Released 39 / 186


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

AT+QINDRI Indicate RI when Using URC


Test Command Response
AT+QINDRI=? +QINDRI: (list of supported <status>s)

OK
Read Command Response
AT+QINDRI? +QINDRI: <status>

OK
Write Command Response
AT+QINDRI=<status> OK
ERROR
Reference

Parameter

<status> 0 Off
1 On

M35_AT_Commands_Manual Confidential / Released 40 / 186


GSM/GPRS Module
M35 AT Commands Manual

4.4. AT+QMOSTAT Show State of Mobile Originated Call

AT+QMOSTAT Show State of Mobile Originated Call


Test Command Response
AT+QMOSTAT=? +QMOSTAT: (list of supported <mode>s)

OK
Read Command Response
AT+QMOSTAT? +QMOSTAT: <mode>

OK
Write Command Response
AT+QMOSTAT=<mode> OK
ERROR
Reference

Parameter

<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

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

AT+QIURC Enable or Disable Initial URC Presentation


Test Command Response
AT+QIURC=? +QIURC: (list of supported <mode>s)

M35_AT_Commands_Manual Confidential / Released 41 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Read Command Response
AT+QIURC? +QIURC: <mode>

OK
Write Command Response
AT+QIURC=<mode> OK
ERROR
Reference

Parameter

<mode> 0 Disable URC presentation


1 Enable URC presentation

NOTE

When the module powers on and initialization procedure is over, URC "Call Ready" will be presented if
<mode> is 1.

4.6. AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited

Indications

AT+QEXTUNSOL Enable/Disable Proprietary Unsolicited Indications


Test Command Response
AT+QEXTUNSOL=? +QEXTUNSOL: (list of supported <exunsol>s)

OK
Write Command Response
AT+QEXTUNSOL=<exunsol>,<mode> OK
ERROR
Reference

Parameter

<exunsol> String type. Values currently reserved by the present document


"SQ" Signal Quality Report. Displays signal strength and channel bit error rate (similar

M35_AT_Commands_Manual Confidential / Released 42 / 186


GSM/GPRS Module
M35 AT Commands Manual

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

M35_AT_Commands_Manual Confidential / Released 43 / 183


GSM/GPRS Module
M35 AT Commands Manual

4.7. AT+QINISTAT Query State of Initialization

AT+QINISTAT Query State of Initialization


Test Command Response
AT+QINISTAT=? OK
Execution Command Response
AT+QINISTAT +QINISTAT: <state>

OK
Reference

Parameter

<state> 0 No initialization
1 Ready to execute AT command
2 Phonebook has finished initialization
3 SMS has finished initialization

NOTE

When <state> is 3, it also means initialization of SIM card related functions has been finished.

4.8. AT+QNSTATUS Query GSM Network Status

AT+QNSTATUS Query GSM Network Status


Test Command Response
AT+QNSTATUS=? OK
Execution Command Response
AT+QNSTATUS +QNSTATUS: <status>

OK

If error is related to ME functionality:


+CME ERROR: <err>
Reference

M35_AT_Commands_Manual Confidential / Released 44 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<status> 255 Not ready to retrieve network status


0 Work in normal state
1 No available cell
2 Only limited service is available

4.9. AT+QSIMDET Switch on or off Detecting SIM Card

AT+QSIMDET Switch on or off Detecting SIM Card


Test Command Response
AT+QSIMDET=? +QSIMDET: (0,1),(0,1)

OK
Read Command Response
AT+QSIMDET? +QSIMDET: <mode>,<active>

OK
Write Command Response
AT+QSIMDET=<mode>[,<active>] OK
ERROR
Reference

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 45 / 186


GSM/GPRS Module
M35 AT Commands Manual

5 SIM Related Commands

5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI)

AT+CIMI Request International Mobile Subscriber Identity (IMSI)


Test Command Response
AT+CIMI=? OK
Execution Command Response
AT+CIMI 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

Parameter

<IMSI> International Mobile Subscriber Identity (string without double quotes)

Example
AT+CIMI
460023210226023 // Query IMSI number of SIM which is attached to ME

OK

5.2. AT+CLCK Facility Lock

AT+CLCK Facility Lock

M35_AT_Commands_Manual Confidential / Released 46 / 186


GSM/GPRS Module
M35 AT Commands Manual

Test Command Response


AT+CLCK=? +CLCK: (list of supported <fac>s)

OK
Write Command Response
AT+CLCK=<fac>,<mode>,<passwd>[, This command is used to lock, unlock or interrogate a ME or a
<class>] 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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 47 / 186


GSM/GPRS Module
M35 AT Commands Manual

"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

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

AT+CPIN Enter PIN


Test Command Response
AT+CPIN=? OK
Read Command Response
AT+CPIN? TA returns an alphanumeric string indicating whether or not
some password is required.

M35_AT_Commands_Manual Confidential / Released 48 / 186


GSM/GPRS Module
M35 AT Commands Manual

+CPIN: <code>

OK
Write Command Response
AT+CPIN=<pin>[, <new pin>] 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

Parameter

<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

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


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

AT+CPWD Change Password


Test Command Response
AT+CPWD=? 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 Response
AT+CPWD=<fac>,<oldpwd>,<newpwd TA sets a new password for the facility lock function.
>
OK
Reference
GSM 07.07

Parameter

<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)

M35_AT_Commands_Manual Confidential / Released 50 / 186


GSM/GPRS Module
M35 AT Commands Manual

"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

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

AT+CRSM Restricted SIM Access


Test Command Response
AT+CRSM=? OK
Write Command Response
AT+CRSM=<Command>[,<fileId>[,<P +CRSM: <sw1>, <sw2> [,<response>]
1>,<P2>,<P3>[,<data>]]]

M35_AT_Commands_Manual Confidential / Released 51 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
ERROR
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<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

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


GSM/GPRS Module
M35 AT Commands Manual

5.6. AT+CSIM Generic SIM Access

AT+CSIM Generic SIM Access


Test Command Response
AT+CSIM=? +CSIM: (list of supported
<operation>s),<file_id>,<offset>/<record_id>,<len>/"data
"

OK
Write Command Response
AT+CSIM=<operation>,<file_id>,<offs +CSIM: <command>,<response>
et>,<record_id>,<len>,<data>
OK
ERROR
Reference
GSM 07.07

Parameter

<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

5.7. AT+QCSPWD Change PS Super Password

AT+QCSPWD Change PS Super Password


Test Command Response
AT+QCSPWD=? OK
Write Command Response
AT+QCSPWD=<oldpwd>,<newpwd> OK
ERROR
Reference

Parameter

<oldpwd> String type. Old password and length should be 8

M35_AT_Commands_Manual Confidential / Released 53 / 186


GSM/GPRS Module
M35 AT Commands Manual

<newpwd> String type. New password and length should be 8

NOTES

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.

5.8. AT+QCCID Show ICCID

AT+QCCID Show ICCID


Test Command Response
AT+QCCID=? OK
Execution Command Response
AT+QCCID ICCID data

OK
Reference

Example
AT+QCCID // Query ICCID of the SIM card
898600220909A0206023

OK

5.9. AT+QGID Get SIM Card Group Identifier

AT+QGID Get SIM Card Group Identifier


Execution Command Response
AT+QGID +QGID: <gid1> <gid2>

OK
ERROR
Reference

M35_AT_Commands_Manual Confidential / Released 54 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<gid1> Integer type of SIM card group identifier 1


<gid2> Integer type of SIM card group identifier 2

NOTE

If the SIM supports GID files, the GID values are returned. Otherwise 0xff is returned.

5.10. AT+QSIMVOL Select SIM Card Operating Voltage

AT+QSIMVOL Select SIM Card Operating Voltage


Test Command Response
AT+QSIMVOL=? +QSIMVOL: (list of supported <mode>s)

OK
Read Command Response
AT+QSIMVOL? +QSIMVOL: <mode>

OK
Write Command Response
AT+QSIMVOL=<mode> OK
ERROR
+CME ERROR: <err>
Reference

Parameter

<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

AT+QSIMVOL can take effect only when the command is set successfully and the module is restarted.

M35_AT_Commands_Manual Confidential / Released 55 / 186


GSM/GPRS Module
M35 AT Commands Manual

6 Network Service Commands

6.1. AT+COPS Operator Selection

AT+COPS Operator Selection


Test Command Response
AT+COPS=? 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 Response
AT+COPS? 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 Response
AT+COPS TA forces an attempt to select and register the GSM network
=<mode>[,<format>[,<oper>]] 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 Confidential / Released 56 / 186


GSM/GPRS Module
M35 AT Commands Manual

+CME ERROR: <err>


Reference
GSM 07.07

Parameter

<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

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

AT+CREG Network Registration


Test Command Response
AT+CREG=? +CREG: (list of supported <n>s)

OK

M35_AT_Commands_Manual Confidential / Released 57 / 186


GSM/GPRS Module
M35 AT Commands Manual

Read Command Response


AT+CREG? TA returns the status of result code presentation and an
integer <stat> which shows whether the network has
currently indicated the registration of the ME. Location
information elements <lac> and <ci> are returned only when
<n>=2 and ME is registered in the network.
+CREG: <n>,<stat>[,<lac>,<ci>]

OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command Response
AT+CREG=<n> 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

Parameter

<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

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>]

Example
AT+CREG=1

M35_AT_Commands_Manual Confidential / Released 58 / 186


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

AT+CSQ Signal Quality Report


Test Command Response
AT+CSQ=? +CSQ: (list of supported <rssi>s),(list of supported <ber>s)

OK
Execution Command Response
AT+CSQ +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

Parameter

<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

Example
AT+CSQ=?

M35_AT_Commands_Manual Confidential / Released 59 / 186


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

AT+CPOL Preferred Operator List


Test Command Response
AT+CPOL=? +CPOL: (list of supported <index>s),(list of supported
<format>s)

OK
Read Command Response
AT+CPOL? +CPOL: <index1>,<format>,<oper1>
[<CR><LF>+CPOL: <index2>,<format>,<oper2>
[…]]

OK
+CME ERROR: <err>
Write Command Response
AT+CPOL=<index>[,<format>[,<oper> OK
]]
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<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)

M35_AT_Commands_Manual Confidential / Released 60 / 186


GSM/GPRS Module
M35 AT Commands Manual

6.5. AT+COPN Read Operator Names

AT+COPN Read Operator Names


Test Command Response
AT+COPN=? OK
Execution Command Response
AT+COPN +COPN: <numeric1>,<alpha1 >
[<CR><LF>+COPN: <numeric2>,<alpha2>
[…]]

OK
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<numericn> String type: operator in numeric format (see +COPS)


<alphan> String type: operator in long alphanumeric format (see +COPS)

6.6. AT+QBAND Get and Set Mobile Operation Band

AT+QBAND Get and Set Mobile Operation Band


Test Command Response
AT+QBAND=? +QBAND: (list of supported <op_band>s)

OK
Read Command Response
AT+QBAND? +QBAND: <op_band>

OK
Write Command Response
AT+QBAND=<op_band> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference

Parameter

M35_AT_Commands_Manual Confidential / Released 61 / 186


GSM/GPRS Module
M35 AT Commands Manual

<op_band> "EGSM_MODE"
"DCS_MODE"
"PCS_MODE"
"GSM350_MODE"
"EGSM_DCS_MODE"
"GSM850_PCS_MODE"
"GSM850_EGSM_DCS_PCS_MODE”

NOTE

The following radio setting to be updated is stored in non-volatile memory.

M35_AT_Commands_Manual Confidential / Released 62 / 186


GSM/GPRS Module
M35 AT Commands Manual

7 Call Related Commands

7.1. ATA Answer an Incoming Call

ATA Answer an Incoming Call


Execution Command Response
ATA 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

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.

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


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

ATD Mobile Originated Call to Dial a Number


Execution Command Response
ATD<n>[<mgsm][;] 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

Parameter

<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)

M35_AT_Commands_Manual Confidential / Released 64 / 186


GSM/GPRS Module
M35 AT Commands Manual

<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

NOTES

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.

Example
ATD10086; // Dialing out the party‟s number
OK

7.3. ATH Disconnect Existing Connection

ATH Disconnect Existing Connection


Execution Command Response
ATH[n] Disconnect existing call by local TE from command line and
terminate call.
OK

M35_AT_Commands_Manual Confidential / Released 65 / 186


GSM/GPRS Module
M35 AT Commands Manual

Reference
V.25ter

Parameter

<n> 0 Disconnect from line and terminate call

NOTE

OK is issued after circuit 109(DCD) is turned off, if it was previously on.

7.4. +++ Switch From Data Mode to Command Mode

+++ 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

NOTES

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.

M35_AT_Commands_Manual Confidential / Released 66 / 186


GSM/GPRS Module
M35 AT Commands Manual

7.5. ATO Switch from Command Mode to Data Mode

ATO Switch from Command Mode to Data Mode


Execution Command Response
ATO[n] 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

Parameter

<n> 0 Switch from command mode to data mode

NOTE

TA returns to data mode from command mode CONNECT <text>,<text> only if parameter setting is X>0.

7.6. ATP Select Pulse Dialing

ATP Select Pulse Dialing


Execution Command Response
ATP OK
Reference
V.25ter

NOTE

No effect in GSM.

M35_AT_Commands_Manual Confidential / Released 67 / 186


GSM/GPRS Module
M35 AT Commands Manual

7.7. ATS0 Set Number of Rings before Automatically Answering Call

ATS0 Set Number of Rings before Automatically Answering Call


Read Command Response
ATS0? <n>

OK
Write Command Response
ATS0=<n> This parameter setting determines the number of rings before
auto-answer.
OK
Reference
V.25ter

Parameter

<n> 0 Automatic answering is disabled


1-255 Enable automatic answering on the ring number specified

NOTE

If <n> is set too high, the calling party may hang up before the call can be answered automatically.

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

ATS6 Set Pause before Blind Dialing


Read Command Response
ATS6? <n>

OK

M35_AT_Commands_Manual Confidential / Released 68 / 186


GSM/GPRS Module
M35 AT Commands Manual

Write Command Response


ATS6=<n> OK
Reference
V.25ter

Parameter

<n> 0-2-10 Number of seconds to wait before blind dialing

NOTE

No effect in GSM

7.9. ATS7 Set Number of Seconds to Wait for Connection Completion

ATS7 Set Number of Seconds to Wait for Connection Completion


Read Command Response
ATS7? <n>

OK
Write Command Response
ATS7=<n> 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

Parameter

<n> 1-60-255 Number of seconds to wait for connection completion

NOTES

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.

M35_AT_Commands_Manual Confidential / Released 69 / 186


GSM/GPRS Module
M35 AT Commands Manual

7.10. ATS8 Set the Number of Seconds to Wait for Comma Dial Modifier

ATS8 Set the Number of Seconds to Wait for Comma Dial Modifier
Read Command Response
ATS8? <n>

OK
Write Command Response
ATS8=<n> OK
Reference
V.25ter

Parameter

<n> 0 No pause when comma encountered in dial string


1-2-255 Number of seconds to wait

NOTE

No effect in GSM.

7.11. ATS10 Set Disconnect Delay after Indicating the Absence of Data

Carrier

ATS10 Set Disconnect Delay after Indicating the Absence of Data Carrier
Read Command Response
ATS10? <n>

OK
Write Command Response
ATS10=<n> 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

M35_AT_Commands_Manual Confidential / Released 70 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<n> 1-15-254 Number of delay in 100ms

7.12. ATT Select Tone Dialing

ATT Select Tone Dialing


Execution Command Response
ATT OK
Reference
V.25ter

NOTE

No effect in GSM.

7.13. AT+CBST Select Bearer Service Type

AT+CBST Select Bearer Service Type


Test Command Response
AT+CBST=? +CBST: (list of supported <speed>s) ,(list of supported
<name>s) ,(list of supported <ce>s)

OK
Read Command Response
AT+CBST? +CBST: <speed>,<name>,<ce>

OK
Write Command Response
AT+CBST=[<speed>[,<name>[,<ce>]]] 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

M35_AT_Commands_Manual Confidential / Released 71 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<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

NOTE

GSM 02.02 lists the allowed combinations of the sub parameters.

7.14. AT+CSTA Select Type of Address

AT+CSTA Select Type of Address


Test Command Response
AT+CSTA=? +CSTA: (list of supported <type>s)

OK
Read Command Response
AT+CSTA? +CSTA: <type>

OK
Reference
GSM 07.07

Parameter

< type > Current address type setting.

M35_AT_Commands_Manual Confidential / Released 72 / 186


GSM/GPRS Module
M35 AT Commands Manual

129 Unknown type (IDSN format number)


145 International number type (ISDN format )
161 National number type (IDSN format)

7.15. AT+CLCC List Current Calls of ME

AT+CLCC List Current Calls of ME


Test Command Response
AT+CLCC=? OK
Execution Command Response
AT+CLCC 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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 73 / 186


GSM/GPRS Module
M35 AT Commands Manual

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 )

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

AT+CR Service Reporting Control


Test Command Response
AT+CR=? +CR: (list of supported <mode>s)

OK
Read Command Response
AT+CR? +CR: <mode>

OK
Write Command Response
AT+CR=[<mode>] 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

Parameter

<mode> 0 Disable
1 Enable
<serv> ASYNC Asynchronous transparent
SYNC Synchronous transparent

M35_AT_Commands_Manual Confidential / Released 74 / 186


GSM/GPRS Module
M35 AT Commands Manual

REL ASYNC Asynchronous non-transparent


REL SYNC Synchronous non-transparent

NOTE
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.

7.17. AT+CRC Set Cellular Result Codes for Incoming Call Indication

AT+CRC Set Cellular Result Codes for Incoming Call Indication


Test Command Response
AT+CRC=? +CRC: (list of supported <mode>s)

OK
Read Command Response
AT+CRC? +CRC: <mode>

OK
Write Command Response
AT+CRC=[<mode>] TA controls whether or not the extended format of incoming
call indication is used.
OK
Reference
GSM 07.07

Parameter

<mode> 0 Disable extended format


1 Enable extended format

NOTE

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

M35_AT_Commands_Manual Confidential / Released 75 / 186


GSM/GPRS Module
M35 AT Commands Manual

SYNC Synchronous transparent


REL ASYNC Asynchronous non-transparent
REL SYNC Synchronous non-transparent
FAX Facsimile
VOICE Voice

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

AT+CRLP Select Radio Link Protocol Parameter


Test Command Response
AT+CRLP=? 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 Response
AT+CRLP? 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

M35_AT_Commands_Manual Confidential / Released 76 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CRLP=[<iws>[,<mws>[,<T1>[,<N2 TA sets radio link protocol (RLP) parameters used when


>[,<ver>[,<T4>]]]]]] non-transparent data calls are set up.
OK
Reference
GSM 07.07

Parameter

<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

7.19. AT+CSNS Single Numbering Scheme

AT+CSNS Single Numbering Scheme


Test Command Response
AT+CSNS=? +CSNS: (list of supported <mode>s)

OK
Read Command Response
AT+CSNS? +CSNS: <mode>

OK
Write Command Response
AT+CSNS=[<mode>] OK
ERROR
Reference
GSM 07.07

Parameter

<mode> 0 Voice
1 Alternating voice/FAX, voice first
2 FAX
3 Alternating voice/data, voice first
4 Data

M35_AT_Commands_Manual Confidential / Released 77 / 186


GSM/GPRS Module
M35 AT Commands Manual

5 Alternating voice/FAX, FAX first


6 Alternating voice/data, data first
7 Voice followed by data

7.20. AT+CMOD Configure Alternating Mode Calls

AT+CMOD Configure Alternating Mode Calls


Test Command Response
AT+CMOD=? +CMOD: (list of supported <mode>s)

OK
Write Command Response
AT+CMOD=[<mode>] OK
ERROR
Reference
GSM 07.07

Parameter

<mode> 0 Single mode


1 Alternating voice/FAX
2 Alternating voice/data
3 Voice followed by data

7.21. AT+QSFR Preference Speech Coding

AT+QSFR Preference Speech Coding


Test Command Response
AT+QSFR=? +QSFR: (list of supported <mode>s)

OK
Read Command Response
AT+QSFR? +QSFR: <mode>

OK
Write Command Response
AT+QSFR=<mode> OK
ERROR

M35_AT_Commands_Manual Confidential / Released 78 / 186


GSM/GPRS Module
M35 AT Commands Manual

Reference

Parameter

<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

This setting is stored in the non-volatile memory and will be used whenever the module is powered up
again.

M35_AT_Commands_Manual Confidential / Released 79 / 186


GSM/GPRS Module
M35 AT Commands Manual

8 SMS Commands

8.1. AT+CSMS Select Message Service

AT+CSMS Select Message Service


Test Command Response
AT+CSMS=? +CSMS: (list of supported <service>s)

OK
Read Command Response
AT+CSMS? +CSMS: <service>,<mt>,<mo>,<bm>

OK
Write Command Response
AT+CSMS=<service> +CSMS: <mt>,<mo>,<bm>

OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference
GSM 07.05

Parameter

<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 Confidential / Released 80 / 186


GSM/GPRS Module
M35 AT Commands Manual

0 Type not supported


1 Type supported

8.2. AT+CMGF Select SMS Message Format

AT+CMGF Select SMS Message Format


Test Command Response
AT+CMGF=? +CMGF: (list of supported <mode>s)

OK
Read Command Response
AT+CMGF? +CMGF: <mode>

OK
Write Command Response
AT+CMGF=[<mode>] TA sets parameter to denote which kind of I/O format of
messages is used.
OK
Reference
GSM 07.05

Parameter

<mode> 0 PDU mode


1 Text mode

8.3. AT+CSCA SMS Service Center Address

AT+CSCA SMS Service Center Address


Test Command Response
AT+CSCA=? OK
Read Command Response
AT+CSCA? +CSCA: <sca>,<tosca>

OK
Write Command Response
AT+CSCA=<sca>[,<tosca>] TA updates the SMSC address, through which mobile
originated SMS are transmitted. In text mode, setting is used

M35_AT_Commands_Manual Confidential / Released 81 / 186


GSM/GPRS Module
M35 AT Commands Manual

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

Parameter

<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>)

NOTE

The Command writes the parameters in NON-VOLATILE memory.

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

AT+CPMS Preferred SMS Message Storage


Test Command Response
AT+CPMS=? +CPMS: (list of supported <mem1>s),(list of supported
<mem2>s),(list of supported <mem3>s)

OK
Read Command Response
AT+CPMS? +CPMS:

M35_AT_Commands_Manual Confidential / Released 82 / 186


GSM/GPRS Module
M35 AT Commands Manual

<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<m
em3>,<used3>,<total3>

OK
Write Command Response
AT+CPMS=<mem1>[,<mem2>[,<mem TA selects memory storages <mem1>, <mem2> and
3>]] <mem3> to be used for reading, writing, etc.
+CPMS:
<used1>,<total1>,<used2>,<total2>,<used3>,<total3>

OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference
GSM 07.05

Parameter

<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

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.

Example
AT+CPMS="SM","SM","SM" // Set SMS message storage as “SM”

M35_AT_Commands_Manual Confidential / Released 83 / 186


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

AT+CMGD Delete SMS Message


Test Command Response
AT+CMGD=? +CMGD: (list of supported <index>s),(list of supported
<delflag>s)

OK
Write Command Response
AT+CMGD=<index>[,<delflag>] 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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 84 / 186


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

AT+CMGL List SMS Messages from Preferred Store


Test Command Response
AT+CMGL=? +CMGL: (list of supported <stat>s)

OK
Write Command Response
AT+CMGL=<stat>[,<mode>] 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:

M35_AT_Commands_Manual Confidential / Released 85 / 186


GSM/GPRS Module
M35 AT Commands Manual

<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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 86 / 186


GSM/GPRS Module
M35 AT Commands Manual

+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

If parameter is omitted the command returns the list of SMS with “REC UNREAD” status.

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


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

AT+CMGR Read SMS Message


Test Command Response
AT+CMGR=? OK
Write Command Response
AT+CMGR=<index>[,<mode>] 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:

M35_AT_Commands_Manual Confidential / Released 88 / 186


GSM/GPRS Module
M35 AT Commands Manual

+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>

OK

3) If error is related to ME functionality:


+CMS ERROR: <err>
Reference
GSM 07.05

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 89 / 186


GSM/GPRS Module
M35 AT Commands Manual

<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>)

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


GSM/GPRS Module
M35 AT Commands Manual

OK

8.8. AT+CMGS Send SMS Message

AT+CMGS Send SMS Message


Test Command Response
AT+CMGS=? OK
Write Command Response
1) If text mode (+CMGF=1): TA sends message from a TE to the network (SMS-SUBMIT).
AT+CMGS=<da>[,<toda>]<CR> Message reference value <mr> is returned to the TE on
text is entered successful message delivery. Optionally (when +CSMS
<ctrl-Z/ESC> <service> value is 1 and network supports) <scts> is
ESC quits without sending returned. Values can be used to identify message upon
unsolicited delivery status report result code.
2) If PDU mode (+CMGF=0): 1) If text mode (+CMGF=1) and sent successfully:
AT+CMGS=<length><CR> +CMGS: <mr>
PDU is given <ctrl-Z/ESC>
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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 91 / 186


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

AT+CMGW Write SMS Message to Memory


Test Command Response
AT+CMGW=? OK
Write Command Response
1) If text mode (+CMGF=1): TA transmits SMS message (either SMS-DELIVER or
AT+CMGW[=<oa/da>[,<tooa/toda>[,<s SMS-SUBMIT) from TE to memory storage <mem2>.
tat>]]] Memory location <index> of the stored message is returned.
<CR> text is entered By default message status will be set to 'stored unsent', but
<ctrl-Z/ESC> parameter <stat> also allows other status values to be given.
<ESC> quits without sending
If writing is successful:
2) If PDU mode (+CMGF=0): +CMGW: <index>
AT+CMGW=<length>[,<stat>]<CR>
PDU is given <ctrl-Z/ESC> OK

If error is related to ME functionality:


+CMS ERROR: <err>
Reference
GSM 07.05

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 92 / 186


GSM/GPRS Module
M35 AT Commands Manual

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>

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

AT+CMSS Send SMS Message from Storage


Test Command Response
AT+CMSS=? OK
Write Command Response

M35_AT_Commands_Manual Confidential / Released 93 / 186


GSM/GPRS Module
M35 AT Commands Manual

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

Parameter

<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

8.11. AT+CMGC Send SMS Command

AT+CMGC Send SMS Command


Test Command Response

M35_AT_Commands_Manual Confidential / Released 94 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CMGC=? OK
Write Command Response
1) If text mode (+CMGF=1): TA transmits SMS command message from a TE to the
AT+CMGC=<fo>[,<ct>,<pid>,<mn>,<d network (SMS-COMMAND). Message reference value <mr>
a>,<toda>]<CR> is returned to the TE on successful message delivery. Value
text is entered can be used to identify message upon unsolicited delivery
<ctrl-Z/ESC> status report result code.
ESC quits without sending 1) If text mode(+CMGF=1) and sent successfully:
+CMGC: <mr> [,<scts>]
2) If PDU mode (+CMGF=0):
AT+CMGC=<length><CR> OK
PDU is given <ctrl-Z/ESC>
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

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 95 / 186


GSM/GPRS Module
M35 AT Commands Manual

8.12. AT+CNMI New SMS Message Indications

AT+CNMI New SMS Message Indications


Test Command Response
AT+CNMI=? +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 Response
AT+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>

OK
Write Command Response
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds TA selects the procedure on how the received new messages
>[,<bfr>]]]]] from the network are indicated to the TE when TE is active,
e.g. DTR 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

Parameter

<mode> 0 Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications
can be buffered in some other place or the oldest indications may be discarded
and replaced with the new received indications
1 Discard indication and reject new received message unsolicited result codes
when TA-TE link is reserved (e.g. in on-line data mode). Otherwise forward them
directly to the TE
2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in
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

M35_AT_Commands_Manual Confidential / Released 96 / 186


GSM/GPRS Module
M35 AT Commands Manual

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
1 SMS-STATUS-REPORTs are routed to the TE by using unsolicited result code:
+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
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

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


GSM/GPRS Module
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

8.13. AT+CRES Restore SMS Settings

AT+CRES Restore SMS Settings


Test Command Response
AT+CRES=? +CRES: (list of supported <profile>s)

OK
Write Command Response
AT+CRES[=<profile>] 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

Parameter

<profile> 0-3 Manufacturer specific profile number where settings are to be stored

8.14. AT+CSAS Save SMS Settings

AT+CSAS Save SMS Settings

M35_AT_Commands_Manual Confidential / Released 98 / 186


GSM/GPRS Module
M35 AT Commands Manual

Test Command Response


AT+CSAS=? +CSAS: (list of supported <profile>s)

OK
Write Command Response
AT+CSAS[=<profile>] 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

Parameter

<profile> 0-3 Manufacturer specific profile number where settings are to be stored

8.15. AT+CSCB Select Cell Broadcast SMS Messages

AT+CSCB Select Cell Broadcast SMS Messages


Test Command Response
AT+CSCB=? +CSCB: (list of supported <mode>s)

OK
Read Command Response
AT+CSCB? +CSCB: <mode>,<mids>,<dcss>

OK
Write Command Response
AT+CSCB=<mode>[,mids>[,<dcss>]] TA selects which types of CBMs are to be received by the ME.
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Reference
GSM 07.05

M35_AT_Commands_Manual Confidential / Released 99 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<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"

NOTE

The Command writes the parameters in NON-VOLATILE memory.

8.16. AT+CSDH Show SMS Text Mode Parameters

AT+CSDH Show SMS Text Mode Parameters


Test Command Response
AT+CSDH=? +CSDH: (list of supported <show>s)

OK
Read Command Response
AT+CSDH? +CSDH: <show>

OK
Write Command Response
AT+CSDH=[<show>] TA determines whether detailed header information is shown
in text mode result codes.
OK
Reference
GSM 07.05

Parameter

<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

M35_AT_Commands_Manual Confidential / Released 100 / 186


GSM/GPRS Module
M35 AT Commands Manual

Example
AT+CSDH=0
OK
AT+CMGR=3
+CMGR: "REC READ","+8615021012496","","2010/09/25 15:06:37+32"
This is a test from Quectel

OK
AT+CSDH=1
OK
AT+CMGR=3
+CMGR: "REC READ","+8615021012496", ,"2010/09/25 15:06:37+32",145,4,0,241,"+861
3800210500",145,27
This is a test from Quectel

OK

8.17. AT+CSMP Set SMS Text Mode Parameters

AT+CSMP Set SMS Text Mode Parameters


Test Command Response
AT+CSMP=? +CSMP: (list of supported <fo>s), (list of supported <vp>s),
(list of supported <pid>s), (list of supported <dcs>s)

OK
Read Command Response
AT+CSMP? +CSMP: <fo>,<vp>,<pid>,<dcs>

OK
Write Command Response
AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>] TA selects values for additional parameters needed when SM
]]] is sent to the network or placed in a storage when text mode
is selected (+CMGF=1). It is possible to set the validity period
starting from when the SM is received by the SMSC (<vp> is
in range 0... 255) or define the absolute time of the validity
period termination (<vp> is a string).
OK
Reference
GSM 07.05

M35_AT_Commands_Manual Confidential / Released 101 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<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. SMS status report is supported under text mode if <fo> is set
to 49
<vp> Depending on SMS-SUBMIT <fo> setting: GSM 03.40 TP-Validity-Period either in integer
format (default 167) or in time-string format (refer to <dt>)
<pid> GSM 03.40 TP-Protocol-Identifier in integer format (default value is 0)
<dcs> GSM 03.38 SMS Data Coding Scheme in Integer format

NOTE

The Command writes the parameters in NON-VOLATILE memory.

8.18. AT+QCLASS0 Store Class 0 SMS to SIM when Receiving Class 0

SMS

AT+QCLASS0 Store Class 0 SMS to SIM when Receiving Class 0 SMS


Test Command Response
AT+QCLASS0=? +QCLASS0: (list of supported <mode>s)

OK
Read Command Response
AT+QCLASS0? +QCLASS0: <mode>

OK
Write Command Response
AT+QCLASS0=<mode> OK
ERROR
Reference

Parameter

<mode> 0 Disable to store Class 0 SMS when receiving Class 0 SMS


1 Enable to store Class 0 SMS when receiving Class 0 SMS

M35_AT_Commands_Manual Confidential / Released 102 / 186


GSM/GPRS Module
M35 AT Commands Manual

Example
For example message in text mode:
AT+CPMS?
+CPMS: "SM",6,50,"SM",6,50,"SM",6,50

OK
AT+QCLASS0=0 // Disable to store SMS when receiving Class 0 SMS
OK

+CMT: "+8615021012496",,"2010/09/26 09:55:37+32"


TEST1 from Quectel // Short message is output directly
AT+QCLASS0=1 // Enable to store SMS when receiving Class 0 SMS
OK

+CMTI: "SM",7 // Indicate that new message has been received


AT+CMGR=7
+CMGR: "REC UNREAD","+8615021012496","","2010/09/26 09:56:17+32"
TEST2 from Quectel

OK

8.19. AT+QMGDA Delete all SMS

AT+QMGDA Delete all SMS


Test Command Response
AT+QMGDA=? +QMGDA: (listed of supported <type>s)

OK
Write Command Response
AT+QMGDA=<type> OK
ERROR
+CME ERROR: <err>
Reference

Parameter

<type> 1) If text mode:


"DEL READ" Delete all read messages
"DEL UNREAD" Delete all unread messages
"DEL SENT" Delete all sent SMS

M35_AT_Commands_Manual Confidential / Released 103 / 186


GSM/GPRS Module
M35 AT Commands Manual

"DEL UNSENT" Delete all unsent SMS


"DEL INBOX" Delete all received SMS
"DEL ALL" Delete all SMS
2) If PDU mode:
1 Delete all read messages
2 Delete all unread messages
3 Delete all sent SMS
4 Delete all unsent SMS
5 Delete all received SMS
6 Delete all SMS

8.20. AT+QSMSCODE Configure SMS Code Mode

AT+QSMSCODE Configure SMS Code Mode


Test Command Response
AT+QSMSCODE=? +QSMSCODE: (list of supported <mode>s)

OK
Read Command Response
AT+QSMSCODE? +QSMSCODE: <mode>

OK
Write Command Response
AT+QSMSCODE=<mode> OK
ERROR
Reference

Parameter

<mode> 0 Code mode according with NOKIA


1 Code mode according with SIEMENS
2 Code mode according with NOKIA, and hexadecimal 0x11 treated as ”_”
hexadecimal 0x02 treated as "$"

M35_AT_Commands_Manual Confidential / Released 104 / 186


GSM/GPRS Module
M35 AT Commands Manual

9 Phonebook Commands

9.1. AT+CPBS Select Phonebook Memory Storage

AT+CPBS Select Phonebook Memory Storage


Test Command Response
AT+CPBS=? +CPBS: (list of supported <storage>s)

OK
Read Command Response
AT+CPBS? +CPBS: <storage>[,<used>,<total>]

OK
Write Command Response
AT+CPBS=<storage> TA selects current phone book memory storage, which is
used by other phone book commands.
OK
Reference
GSM 07.07

Parameter

<storage> "MC" ME missed (unanswered) calls list


"RC" ME received calls list
"DC" ME dialed calls list(+CPBW may not be applicable or this storage)(same as LD)
"LA" Last Number All list (LND/LNM/LNR)
"ME" ME phonebook
"BN" SIM barred dialed number
"SD" SIM service dial number
"VM" SIM voice mailbox
"FD" SIM fix dialing-phone book
"LD" SIM last-dialing-phone book
"ON" SIM (or ME) own numbers (MSISDNs) list
"SM" SIM phonebook
<used> Integer type value indicating the total number of used locations in selected memory
<total> Integer type value indicating the total number of locations in selected memory

M35_AT_Commands_Manual Confidential / Released 105 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTE

SIM phonebook record can stores up to 250pcs and ME phonebook record can store up to 200pcs.

9.2. AT+CPBW Write Phonebook Entry

AT+CPBW Write Phonebook Entry


Test Command Response
AT+CPBW=? TA returns location range supported by the current storage,
the maximum length of <number> field, supported number
formats of the storage, and the maximum length of <text>
field.
+CPBW: (The range of supported <index>s), <nlength>, (list
of supported <type>s), <tlength>

OK
Write Command Response
AT+CPBW=[<index1>][,<number>[,<t TA writes phone book entry in location number <index> in the
ype>[,<text>]]] current phone book memory storage selected with +CPBS.
Entry fields written are phone number <number> (in the
format <type>) and text <text> associated with the number. If
those fields are omitted, phone book entry is deleted. If
<index> is left out, but <number> is given, entry is written to
the first free location in the phone book.
OK
Reference
GSM 07.07

Parameter

<nlength> Maximum length of phone number


<tlength> Maximum length of text for number
<index> Location number
<number> Phone number
<type> Type of number
129 Unknown type(IDSN format number)
145 International number type(ISDN format )
<text> Text for phone number in current TE character set specified by +CSCS

M35_AT_Commands_Manual Confidential / Released 106 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTE

The following characters in <text> must be entered via the escape sequence:
GSM char Seq.Seq.(hex) Note
\ \5C 5C 35 43 (backslash)
" \22 5C 32 32 (string delimiter)
BSP \08 5C 30 38 (backspace)
NULL \00 5C 30 30 (GSM null)
„0‟ (GSM null) may cause problems for application layer software when reading string lengths.

Example
AT+CSCS="GSM"
OK
AT+CPBW=10,"15021012496",129,"QUECTEL"
OK // Make a new phonebook entry at location 10
AT+CPBW=10 // Delete entry at location 10
OK

9.3. AT+CPBR Read Current Phonebook Entries

AT+CPBR Read Current Phonebook Entries


Test Command Response
AT+CPBR=? TA returns location range supported by the current storage as
a compound value and the maximum lengths of <number>
and <text> fields.
+CPBR: (list of supported <index>s),<nlength>,<tlength>

OK
Write Command Response
AT+CPBR=<index1>[,<index2>] TA returns phone book entries in location number range
<index1>... <index2> from the current phone book memory
storage selected with +CPBS. If <index2> is left out, only
location <index1> is returned.
+CPBR:<index1>,<number>,<type>,<text>[<CR><LF>+C
PBR: .....+CPBR: <index2>, <number>, <type>, <text>]

OK
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 107 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<index> Location number


<nlength> Maximum length of phone number
<tlength> Maximum length of name for number
<index1> The first phone book record to read
<index2> The last phonebook record to read
<number> Phone number
<type> Type of number
<text> Text name for phone number in current TE character set specified by +CSCS

Example
AT+CSCS="GSM"
OK
AT+CPBR=10 // Query phone book entries in location 10
+CPBR: 10,"15021012496",129,"QUECTEL"

OK

9.4. AT+CPBF Find Phonebook Entries

AT+CPBF Find Phonebook Entries


Test Command Response
AT+CPBF=? +CPBF: <nlength>,<tlength>

OK
Write Command Response
AT+CPBF=[<findtext>] TA returns phone book entries (from the current phone book
memory storage selected with +CPBS) which contain
alphanumeric string <findtext>.
[+CPBF: <index1>, <number>,<type>, <text>[[...]
<CR><LF>+CBPF: <index2>,<number>,<type>,<text>]

OK
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 108 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<findtext> String type field of maximum length <tlength> in current TE character set specified by
+CSCS.
<index1> Integer type values in the range of location numbers of phone book memory
<index2> Integer type values in the range of location numbers of phone book memory
<number> Phone number in string type of format <type>
<type> Type of address octet in integer format:
129 Unknown type (IDSN format number)
145 International number type (ISDN format )
<text> String type field of maximum length <tlength> in current TE character set specified by
+CSCS
<nlength> Integer type value indicating the maximum length of field <number>
<tlength> Integer type value indicating the maximum length of field <text>

9.5. AT+CNUM Subscriber Number

AT+CNUM Subscriber Number


Test Command Response
AT+CNUM=? OK
Execution Command Response
AT+CNUM +CNUM:
[<alpha1>],<number1>,<type1>[,<speed>,<service>[,<itc
>]]
[<CR><LF>+CNUM: [<alpha2>],<number2>,<type2>[,<sp
eed>,<service> [,<itc>]]
[...]]

OK

+CME ERROR: <err>


Reference
GSM 07.07

Parameter

<alphax> Optional alphanumeric string associated with <numberx>;used character set should be the
one selected with command. Select TE character set +CSCS
<numberx> Phone number in string type of format specified by <typex>
<typex> Type of address octet in integer format (refer to GSM 04.08subclause 10.5.4.7)
<speed> As defined by the +CBST command

M35_AT_Commands_Manual Confidential / Released 109 / 186


GSM/GPRS Module
M35 AT Commands Manual

<service> (Service related to the phone number: )


0 Asynchronous modem
1 Synchronous modem
2 PAD Access (asynchronous)
3 Packet Access (synchronous)
4 Voice
5 FAX
<itc> (Information transfer capability: )
0 3.1 kHz
1 UDI

M35_AT_Commands_Manual Confidential / Released 110 / 186


GSM/GPRS Module
M35 AT Commands Manual

10 GPRS Commands

10.1. AT+CGATT Attach to/Detach from GPRS Service

AT+CGATT Attach to/Detach from GPRS Service


Test Command Response
AT+CGATT=? +CGATT: (list of supported <state>s)

OK
Read Command Response
AT+CGATT? +CGATT: <state>

OK
Write Command Response
AT+CGATT=<state> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<state> Indicates the state of GPRS attachment


0 Detached
1 Attached
Other values are reserved and will result in an ERROR response to the Write Command

Example
AT+CGATT=1 // Attach to GPRS service
OK
AT+CGATT=0 // Detach from GPRS service
OK
AT+CGATT? // Query the current GPRS service state
+CGATT: 0

M35_AT_Commands_Manual Confidential / Released 111 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK

10.2. AT+CGDCONT Define PDP Context

AT+CGDCONT Define PDP Context


Test Command Response
AT+CGDCONT=? +CGDCONT: (range of supported <cid>s), <PDP_type>,
<APN>, <PDP_addr>, (list of supported <data_comp>s),
(list of supported <head_comp>s)

OK
Read Command Response
AT+CGDCONT? +CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<data_comp>,<h
ead_comp>
<CR><LF>+CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<data_comp>,<h
ead_comp>

OK
Write Command Response
AT+CGDCONT=<cid>[,<PDP_type>[,< OK
APN>[,<PDP_addr>[,<d_comp>[,<h_c ERROR
omp>]]]]]
Reference
GSM 07.07

Parameter

<cid> (PDP Context Identifier) a numeric parameter which specifies a particular PDP context
definition. The parameter is local to the TE-MT interface and is used in other PDP
context-related commands. The range of permitted values (minimum value=1) is returned
by the test form of the command
<PDP_type> (Packet Data Protocol type) a string parameter which specifies the type of packet data
protocol X25 ITU-T/CCITT X.25 layer 3 IP Internet Protocol (IETF STD 5) OSPIH Internet
Hosted Octet Stream Protocol PPP Point to Point Protocol (IETF STD 51)
<APN> (Access Point Name) a string parameter that is a logical name that is used to select the
GGSN or the external packet data network. If the value is null or omitted, then the
subscription value will be requested
<PDP_addr> A string parameter identifies the MT in the address space applicable to the PDP. If the value

M35_AT_Commands_Manual Confidential / Released 112 / 186


GSM/GPRS Module
M35 AT Commands Manual

is null or omitted, then a value may be provided by the TE during the PDP startup
procedure or, failing that, a dynamic address will be requested. The allocated address may
be read using the +CGPADDR command
<d_comp> A numeric parameter that controls PDP data compression
0 off (default if value is omitted)
Other values are reserved
<h_comp> A numeric parameter that controls PDP header compression
0 off (default if value is omitted)
Other values are reserved

Example
AT+CGDCONT=1,"IP","CMNET" // Define PDP context, <cid>=1,
<PDP_type>=IP,<APN>=CMNET
OK

10.3. AT+CGQREQ Quality of Service Profile (Requested)

AT+CGQREQ Quality of Service Profile (Requested)


Test Command Response
AT+CGQREQ=? +CGQREQ: <PDP_type>,(list of supported <precedence>s),
(list of supported <delay>s),(list of supported <reliability>s),
(list of supported <peak>s),(list of supported <mean>s)

OK
Read Command Response
AT+CGQREQ? +CGQREQ:
<cid>,<precedence>,<delay>,>reliability>,<peak>,<mean
>
<CR><LF>+CGQREQ:
<cid>,<precedence>,<delay>,<reliability>,<peak >,<mean
>

OK
Write Command Response
AT+CGQREQ=<cid>[,<precedence>[, OK
<delay>[,<reliability>[,<peak>[,<mean If error is related to ME functionality:
>]]]]] +CME ERROR: <err>
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 113 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<cid> A numeric parameter which specifies a particular PDP context definition (see
+CGDCONT command)
The following parameter are defined in GSM 03.60
<precedence> A numeric parameter which specifies the precedence class
<delay> A numeric parameter which specifies the delay class
<reliability> A numeric parameter which specifies the reliability class
<peak> A numeric parameter which specifies the peak throughput class
<mean> A numeric parameter which specifies the mean throughput class

10.4. AT+CGQMIN Quality of Service Profile (Minimum Acceptable)

AT+CGQMIN Quality of Service Profile (Minimum Acceptable)


Test Command Response
AT+CGQMIN=? +CGQMIN: <PDP_type>, (list of supported <precedence>s),
(list of supported <delay>s), (list of supported <reliability>s),
(list of supported <peak>s), (list of supported <mean>s)

OK
Read Command Response
AT+CGQMIN? +CGQMIN:
<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean
>
<CR><LF>+CGQMIN:
<cid>,<precedence>,<delay>,<reliability>,<peak>,<mean
>

OK
Write Command Response
AT+CGQMIN=<cid>[,<precedence>[,< OK
delay>[,<reliability>[,<peak>[,<mean> If error is related to ME functionality:
]]]]] +CME ERROR: <err>
Reference
GSM 07.07

Parameter

<cid> A numeric parameter which specifies a particular PDP context definition (see
+CGDCONT command)

M35_AT_Commands_Manual Confidential / Released 114 / 186


GSM/GPRS Module
M35 AT Commands Manual

The following parameters are defined in GSM 03.60.


<precedence> A numeric parameter which specifies the precedence class
<delay> A numeric parameter which specifies the delay class
<reliability> A numeric parameter which specifies the reliability class
<peak> A numeric parameter which specifies the peak throughput class
<mean> A numeric parameter which specifies the mean throughput class

10.5. AT+CGACT PDP Context Activate or Deactivate

AT+CGACT PDP Context Activate or Deactivate


Test Command Response
AT+CGACT=? +CGACT: (list of supported <state>s)

OK
Read Command Response
AT+CGACT? +CGACT:
<cid>,<state>[<CR><LF>+CGACT:<cid><state>…]

OK
Write Command Response
AT+CGACT=<state>,<cid> OK
NO CARRIER
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<state> Indicates the state of PDP context activation


0 Deactivated
1 Activated
Other values are reserved and will result in an ERROR response to the Write Command
<cid> A numeric parameter which specifies a particular PDP context definition (see +CGDCONT
command)

NOTE

If context is deactivated successfully, NO CARRIER is returned.

M35_AT_Commands_Manual Confidential / Released 115 / 186


GSM/GPRS Module
M35 AT Commands Manual

Example
AT+CGDCONT=1,"IP","CMNET" // Define PDP context
OK
AT+CGACT=1,1 // Activated PDP
OK
AT+CGACT=0,1 // Deactivated PDP
NO CARRIER

10.6. AT+CGDATA Enter Data State

AT+CGDATA Enter Data State


Test Command Response
AT+CGDATA=? +CGDATA: (list of supported <L2P>s)

OK
Write Command Response
AT+CGDATA=<L2P>[,<cid>[,<cid>[,… OK
]]] NO CARRIER
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<L2P> A string parameter that indicates the layer 2 protocol to be used between the TE and MT:
PPP – Point to Point protocol for a PDP such as IP
Other values are not supported and will result in an ERROR response to the execution
command
<cid> A numeric parameter which specifies a particular PDP context definition (see +CGDCONT
command)

10.7. AT+CGPADDR Show PDP Address

AT+CGPADDR Show PDP Address


Test Command Response
AT+CGPADDR=? +CGPADDR: (list of defined <cid>s)

M35_AT_Commands_Manual Confidential / Released 116 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Write Command Response
AT+CGPADDR=<cid> +CGPADDR: <cid>,<PDP_addr>

OK
ERROR
Reference
GSM 07.07

Parameter

<cid> A numeric parameter which specifies a particular PDP context definition (see +CGDCONT
command)
<PDP_addr> A string that identifies the MT in the address space applicable to the PDP. The address may
be static or dynamic. For a static address, it will be the one set by the +CGDCONT
command when the context was defined. For a dynamic address it will be the one assigned
during the last PDP context activation that used the context definition referred to <cid>.
<PDP_ address> is omitted if none is available

NOTE

This command dictates the behavior of PPP in the ME but not that of any other GPRS-enabled
foreground layer, e.g. browser.

Example
AT+CGDCONT=1,"IP","CMNET" // Define PDP context
OK
AT+CGACT=1,1 // Activated PDP
OK
AT+CGPADDR=1 // Show PDP address
+CGPADDR: 1,"10.76.51.180"

OK

10.8. AT+CGCLASS GPRS Mobile Station Class

AT+CGCLASS GPRS Mobile Station Class


Test Command Response
AT+CGCLASS=? +CGCLASS: (list of supported <class>s)

M35_AT_Commands_Manual Confidential / Released 117 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Read Command Response
AT+CGCLASS? +CGCLASS: <class>

OK
Write Command Response
AT+CGCLASS=<class> OK
ERROR
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<class> A string parameter which indicates the GPRS mobile class (Functionality in descending
order)
"B" Class B
"CG" Class C in GPRS only mode
"CC" Class C in circuit switched only mode

10.9. AT+CGEREP Control Unsolicited GPRS Event Reporting

AT+CGEREP Control Unsolicited GPRS Event Reporting


Test Command Response
AT+CGEREP=? +CGEREP: (list of supported <mode>s)

OK
Read Command Response
AT+CGEREP? +CGEREP: <mode>

OK
Write Command Response
AT+CGEREP=<mode> OK
ERROR
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 118 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<mode> 0 Buffer unsolicited result codes in the MT; if MT result code buffer is full, the oldest
one can be discarded. No codes are forwarded to the TE
1 Discard unsolicited result codes when MT-TE link is reserved (e.g. in on-line data
mode); otherwise forward them directly to the TE

NOTE

Unsolicited Result Codes supported:


+CGEV: NW DEACT <PDP_type>, <PDP_addr>[,<cid>]
+CGEV: ME DEACT <PDP_type>, <PDP_addr>[,<cid>]
+CGEV: NW DETACH
+CGEV: ME CLASS <class>
Parameters
<PDP_type> Packet Data Protocol type (see +CGDCONT command)
<PDP_addr> Packet Data Protocol address (see +CGDCONT command)
<cid> Context ID (see +CGDCONT command)
<class> GPRS mobile class (see +CGCLASS command)

10.10. AT+CGREG Network Registration Status

AT+CGREG Network Registration Status


Test Command Response
AT+CGREG=? +CGREG: (list of supported <n>s)

OK
Read Command Response
AT+CGREG? +CGREG: <n>,<stat>[,<lac>,<ci>]

OK
Write Command Response
AT+CGREG=[<n>] OK
ERROR
Reference
GSM 07.07

Parameter

<n> 0 Disable network registration unsolicited result code


1 Enable network registration unsolicited result code +CGREG:<stat>

M35_AT_Commands_Manual Confidential / Released 119 / 186


GSM/GPRS Module
M35 AT Commands Manual

2 Enable network registration and location information unsolicited result code


+CGREG: <stat>[,<lac>,<ci>]
<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 (e.g. "00C3" equals 195 in
decimal)
<ci> String type; two bytes cell ID in hexadecimal format

NOTE

For parameter state, options of 0 and 1 are supported only.

Example
AT+CGATT=0
NO CARRIER

+CGREG: 0,"1878","0873"
AT+CGATT=1
OK

+CGREG: 2,"1878","0873"

+CGREG: 1,"1878","0873"

10.11. AT+CGSMS Select Service for MO SMS Messages

AT+CGSMS Select Service for MO SMS Messages


Test Command Response
AT+CGSMS=? +CGSMS: (list of currently available <service>s)

OK
Read Command Response
AT+CGSMS? +CGSMS: <service>

OK
Write Command Response

M35_AT_Commands_Manual Confidential / Released 120 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CGSMS=[<service>] OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<service> A numeric parameter which indicates the service or service preference to be used
0 GPRS
1 Circuit switch
2 GPRS preferred (use circuit switched if GPRS not available)
3 Circuit switch preferred (use GPRS if circuit switched not available)

NOTE

The circuit switched service route is the default method.

10.12. AT+QGPCLASS Change GPRS Multi-slot Class

AT+QGPCLASS Change GPRS Multi-slot Class


Test Command Response
AT+QGPCLASS=? MULTISLOT CLASS: (list of currently available <class>s)

OK
Read Command Response
AT+QGPCLASS? MULTISLOT CLASS: <class>

OK
Write Command Response
AT+QGPCLASS=<class> OK
ERROR
Reference

Parameter

<class> GPRS multi-slot class

M35_AT_Commands_Manual Confidential / Released 121 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTES

Need to reboot for the change of GPRS multi-slot class to take effect.

M35_AT_Commands_Manual Confidential / Released 122 / 186


GSM/GPRS Module
M35 AT Commands Manual

11 TCPIP Commands

11.1. AT+QIOPEN Start up TCP or UDP Connection

AT+QIOPEN Start up TCP or UDP Connection


Test Command Response
AT+QIOPEN=? +QIOPEN: (list of supported <mode>),(IP address
range),(port range)
<CR><LF>+QIOPEN: (list of supported <mode>),(domain
name),(port range)

OK
Write Command Response
AT+QIOPEN=[<index>,]<mode>,<IP If format is right, respond:
address>/<domain name>,<port> OK
Otherwise respond:
ERROR
If the connection has already existed, respond:
ALREADY CONNECT
And then if connection is successful, respond:
[<index>,] CONNECT OK
Otherwise respond:
[<index>,] CONNECT FAIL
Reference

Parameter

<index> A numeric indicates which socket opens the connection. M35 supports at most 6
sockets at the same time. This parameter is necessary only if AT+QIMUX was set as 1
(refer to AT+QIMUX). When AT+QIMUX was set as 0, the parameter MUST be
omitted
<mode> A string parameter which indicates the connection type
"TCP" Establish a TCP connection
"UDP" Establish a UDP connection
<IP address> A string parameter that gives the address of the remote server in dotted decimal style.

M35_AT_Commands_Manual Confidential / Released 123 / 186


GSM/GPRS Module
M35 AT Commands Manual

<port> The port of the remote server


<domain name> A string parameter which represents the domain name address of the remote server

NOTES
1. This command is allowed to establish a TCP/UDP connection only when the state is IP INITIAL or IP
STATUS or IP CLOSE. So it is necessary to process "AT+QIDEACT" or "AT+QICLOSE" before
establishing a TCP/UDP connection with this command when the state is not IP INITIAL or IP
STATUS or IP CLOSE.
2. If AT+QIMUX was set as 0 and the current state is CONNECT OK, which means the connection
channel is used, it will reply "ALREADY CONNECT" after issuing the Write command.

11.2. AT+QISEND Send Data through TCP or UDP Connection

AT+QISEND Send Data through TCP or UDP Connection


Test Command Response
AT+QISEND=? +QISEND: <length>

OK
Execution Command Response
AT+QISEND This command is used to send changeable length data.
response"> ", then type data to send, If connection is not established or disconnected:
tap CTRL+Z to send, tap ESC to cancel ERROR
the operation If sending succeeds:
SEND OK
If sending fails:
SEND FAIL
Write Command Response
AT+QISEND=[<index>,]<length> This command is used to send fixed-length data or send data
on the given socket (defined by <index>).
If connection is not established or disconnected:
ERROR
If sending succeeds:
SEND OK
If sending fails:
SEND FAIL
Reference

M35_AT_Commands_Manual Confidential / Released 124 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<index> The index of the socket for sending data. This parameter is necessary only if AT+QIMUX
was set as 1 (refer to AT+QIMUX). When AT+QIMUX was set as 0, the parameter MUST
be omitted
<length> A numeric parameter which indicates the length of data to be sent, it MUST be less than
1460

NOTES

1. This command is used to send data on the TCP or UDP connection that has been established
already. Ctrl+Z is used as a termination symbol. ESC is used to cancel sending data.
2. The maximum length of the data to input at a time is 1460.
3. This command is invalid when QIMUX is 1 (refer to AT+QIMUX).
4. There are at most 1460 bytes that can be sent each time.
5. Only send data at the status of connection, otherwise respond with ERROR.
6. SEND OK means the data have been put into the send window to send rather than it has received
the ACK message for the data from the remote node. To check whether the data has been sent to the
remote note, it is necessary to execute the command AT+QISACK to query it.

11.3. AT+QICLOSE Close TCP or UDP Connection

AT+QICLOSE Close TCP or UDP Connection


Test Command Response
AT+QICLOSE=? OK
Execution Command Response
AT+QICLOSE If close succeeds:
CLOSE OK
If close fails:
ERROR
Write Command Response
AT+QICLOSE=<index> If close succeeds:
<index>, CLOSE OK
If close fails:
ERROR
Reference

Parameter

<index> The index of the socket for sending data. This parameter is necessary only if AT+QIMUX

M35_AT_Commands_Manual Confidential / Released 125 / 186


GSM/GPRS Module
M35 AT Commands Manual

was set as 1 (refer to AT+QIMUX). When AT+QIMUX was set as 0, the parameter MUST
be omitted

NOTES

1. Execution Command AT+QICLOSE:


 If QISRVC is 1 (please refer to AT+QISRVC) and QIMUX is 0 (please refer to AT+QIMUX), this
command will close the connection in which the module is used as a client.
 If QISRVC is 1 and QIMUX is 1, it will return ERROR.
 If QISRVC is 2 and QIMUX equals 0 and the module is used as a server and some clients have
been connected to it, this command will close the connection between the module and the
remote client.
 If QISRVC is 2 and QIMUX is 0 and the module is in listening state without any client, this
command will cause the module to quit the listening state.
 If QISRVC is 2 and QIMUX is 1 and the module is used as a server, this command will close all
the income connection and cause the module to quit the listening state.
2. Write Command AT+QICLOSE=<index>:
 This command is valid only if QIMUX is 1.
 If QISRVC is 1 and QIMUX is 1, this command will close the corresponding connection
according to <index> and the module used as a client in the connection.
 If QISRVC is 2 and QIMUX is 1, this command will close the incoming connection according to
<index>.
3. If QISRVC is 1 and QIMUX is 0, AT+QICLOSE only closes the connection when the statue is
CONNECTING or CONNECT OK, otherwise respond with ERROR. After closing the connection, the
status is IP CLOSE.

11.4. AT+QIDEACT Deactivate GPRS/CSD PDP Context

AT+QIDEACT Deactivate GPRS/CSD PDP Context


Test Command Response
AT+QIDEACT=? OK
Execution Command Response
AT+QIDEACT If close succeeds:
DEACT OK
If close fails:
ERROR
Reference

M35_AT_Commands_Manual Confidential / Released 126 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTES

1. Except at the status of IP INITIAL, you can deactivate GPRS/CSD PDP context by AT+QIDEACT.
After closing the connection, the status becomes to IP INITIAL.
2. CSD context is not supported at present.

11.5. AT+QILPORT Set Local Port

AT+QILPORT Set Local Port


Test Command Response
AT+QILPORT=? +QILPORT: (list of supported <port>s)

OK
Read Command Response
AT+QILPORT? <mode>: <port>
<CR><LF><mode>: <port>

OK
Write Command Response
AT+QILPORT=<mode>,<port> OK
ERROR
Reference

Parameter

<mode> A string parameter which indicates the connection type


"TCP" TCP local port
"UDP" UDP local port
<port> 0-65535 A numeric parameter which indicates the local port

NOTES

This command is used to set the port for listening.

M35_AT_Commands_Manual Confidential / Released 127 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.6. AT+QIREGAPP Start TCPIP Task and Set APN, User Name and

Password

AT+QIREGAPP Start TCPIP Task and Set APN, User Name and Password
Test Command Response
AT+QIREGAPP=? +QIREGAPP: "APN","USER","PWD"

OK
Read Command Response
AT+QIREGAPP? +QIREGAPP: <apn>,<user name>,<password>

OK
Write Command Response
AT+QIREGAPP=<apn>,<user OK
name>,< password>[,<rate>] ERROR
Execution Command Response
AT+QIREGAPP OK
ERROR
Reference

Parameter

<apn> A string parameter which indicates the GPRS access point name or the call number of CSD
<user name>A string parameter which indicates the GPRS/CSD user name
<password> A string parameter which indicates the GPRS/CSD password
<rate> The speed of data transmit for CSD

NOTES

1. The write command and execution command of this command is valid only at the status of IP
INITIAL. After operating this command, the status will become to IP START.
2. The value of QICSGP (please refer to AT+QICSGP) defines what kind of bearer (GPRS or CSD) the
parameters are used for.
3. CSD function and related configuration are not supported at present.

11.7. AT+QIACT Activate GPRS/CSD Context

AT+QIACT Activate GPRS/CSD Context

M35_AT_Commands_Manual Confidential / Released 128 / 186


GSM/GPRS Module
M35 AT Commands Manual

Test Command Response


AT+QIACT=? OK
Execution Command Response
AT+QIACT OK
ERROR
Reference

NOTES

1. AT+QIACT only activates GPRS/CSD context at the status of IP START. After operating this
command, the status will become to IP CONFIG. If TA accepts the activated operation, the status will
become to IP IND; after GPRS/CSD context is activated successfully, the status will become to IP
GPRSACT, respond with OK, and otherwise respond with ERROR.
2. CSD context is not supported at present.

11.8. AT+QILOCIP Get Local IP Address

AT+QILOCIP Get Local IP Address


Test Command Response
AT+QILOCIP=? OK
Execution Command Response
AT+QILOCIP If execution successful, respond
<IP address>
Otherwise respond
ERROR
Reference

Parameter

<IP address> A string parameter which indicates the IP address assigned from GPRS or CSD
network

NOTES

1. Only at the following status: IP GPRSACT, IP STATUS, TCP/UDP CONNECTING, CONNECT OK, IP
CLOSE can get local IP address by AT+QILOCIP, otherwise respond ERROR. And if the status
before executing the command is IP GPRSACT, the status will become to IP STATUS after the
command.
2. CSD function is not supported at present.

M35_AT_Commands_Manual Confidential / Released 129 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.9. AT+QISTAT Query Current Connection Status

AT+QISTAT Query Current Connection Status


Test Command Response
AT+QISTAT=? OK
Execution Command Response
AT+QISTAT When AT+QIMUX=0, respond
OK

STATE: <state>
When AT+QIMUX=1, respond
List of
(+QISTAT: <index>,<mode>,<addr>,<port><CR><LF>)

OK
Reference

Parameter

<state> A string parameter to indicate the status of the connection


"IP INITIAL" The TCPIP stack is in idle state
"IP START" The TCPIP stack has been registered
"IP CONFIG" It has been start-up to activate GPRS/CSD context
"IP IND" It is activating GPRS/CSD context
"IP GPRSACT" GPRS/CSD context has been activated successfully
"IP STATUS" The local IP address has been gotten by the command
AT+QILOCIP
"TCP CONNECTING" It is trying to establish a TCP connection
"UDP CONNECTING" It is trying to establish a UDP connection
"IP CLOSE" The TCP/UDP connection has been closed
"CONNECT OK" The TCP/UDP connection has been established successfully
"PDP DEACT" GPRS/CSD context was deactivated because of unknown
reason

If ATV was set to 0 by the command ATV0, the TCPIP stack gives the following numeric to
indicate the former status
0 "IP INITIAL"
1 "IP START"
2 "IP CONFIG"
3 "IP IND"
4 "IP GPRSACT"
5 "IP STATUS"

M35_AT_Commands_Manual Confidential / Released 130 / 186


GSM/GPRS Module
M35 AT Commands Manual

6 "TCP CONNECTING" or "UDP CONNECTING"


7 "IP CLOSE"
8 "CONNECT OK"
9 "PDP DEACT"

<index> The index of the connection, the range is (0-5)


<mode> The type of the connection
"TCP" TCP connection
"UDP" UDP connection
<addr> The IP address of the remote
<port> The port of the remote

NOTES

1. Display former style of response when QIMUX=0 and the later style of response when QIMUX=1.
2. CSD context is not supported at present.

11.10. AT+QISTATE Query Connection Status of the Current Access

AT+QISTATE Query Connection Status of the Current Access


Test Command Response
AT+QISTATE=? OK
Execution Command Response
AT+QISTATE When AT+QIMUX=0, respond
OK

STATE: <state>
When AT+QIMUX=1, respond
OK

STATE: <state>

+QISTAT: <index>,<mode>,<addr>,<port>,<socketstate>

OK
Otherwise respond
ERROR
Reference

M35_AT_Commands_Manual Confidential / Released 131 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<state> A string parameter to indicate the status of the connection

When AT+QIMUX=0:
"IP INITIAL" The TCPIP stack is in idle state
"IP START" The TCPIP stack has been registered
"IP CONFIG" It has been start-up to activate GPRS/CSD context
"IP IND" It is activating GPRS/CSD context
"IP GPRSACT" GPRS/CSD context has been activated successfully
"IP STATUS" The local IP address has been gotten by the command
AT+QILOCIP
"TCP CONNECTING" It is trying to establish a TCP connection
"UDP CONNECTING" It is trying to establish a UDP connection
"IP CLOSE" The TCP/UDP connection has been closed
"CONNECT OK" The TCP/UDP connection has been established successfully
"PDP DEACT" GPRS/CSD context was deactivated because of unknown
reason
When AT+QIMUX=1:
"IP INITIAL" The TCPIP stack is in idle state
"IP START" The TCPIP stack has been registered
"IP CONFIG" It has been start-up to activate GPRS/CSD context
"IP IND" It is activating GPRS/CSD context
"IP GPRSACT" GPRS/CSD context has been activated successfully
"IP STATUS" The local IP address has been gotten by the command
AT+QILOCIP
“IP PROCESSING” Data phase. Processing the existing connection now
"PDP DEACT" GPRS/CSD context was deactivated because of unknown
reason
<index> The index of the connection, the range is (0-5)
<mode> The type of the connection
"TCP" TCP connection
"UDP" UDP connection
<addr> The IP address of the remote
<port> The port of the remote
<socketstate> A string parameter to indicate the status of the access connection, including
INITIAL,CONNECTED

M35_AT_Commands_Manual Confidential / Released 132 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.11. AT+QISSTAT Query the Current Server Status

AT+QISSTAT Query the Current Server Status


Test Command Response
AT+QISSTAT=? OK
Execution Command Response
AT+QISSTAT When AT+QIMUX=0, respond
OK

S: <ServerState>
When AT+QIMUX=1, respond
OK
S: <ServerState>
C : <index>,<mode>,<addr>,<port>
Otherwise respond
ERROR
Reference

Parameter

<ServerState> A string parameter to indicate the status of the connection


"INITIAL" The TCPIP stack is in idle state
"OPENNING" The TCPIP stack has been registered
"LISTENING" Listening to server port
"CLOSING" Closing connection now
<index> The index of the connection, the range is (0-4)
<mode> The type of the connection
"TCP" TCP connection
"UDP" UDP connection
<addr> The IP address of the remote
<port> The port of the remote

11.12. AT+QIDNSCFG Configure Domain Name Server

AT+QIDNSCFG Configure Domain Name Server


Test Command Response
AT+QIDNSCFG=? OK
Read Command Response
AT+QIDNSCFG? PrimaryDns: <pri_dns>

M35_AT_Commands_Manual Confidential / Released 133 / 186


GSM/GPRS Module
M35 AT Commands Manual

SecondaryDns: <sec_dns>

OK
Write Command Response
AT+QIDNSCFG=<pri_dns>[,<sec_dns OK
>] ERROR
Reference

Parameter

<pri_dns> A string parameter which indicates the IP address of the primary domain name server
<sec_dns> A string parameter which indicates the IP address of the secondary domain name server

NOTES

1. Because TA will negotiate to get the DNS server from GPRS/CSD network automatically when
activating GPRS/CSD context, it is STRONGLY recommended to configure the DNS server at the
status of IP GPRSACT, IP STATUS, CONNECT OK and IP CLOSE if it is necessary.
2. CSD function and configuration are not supported currently.

11.13. AT+QIDNSGIP Query the IP Address of Given Domain Name

AT+QIDNSGIP Query the IP Address of Given Domain Name


Test Command Response
AT+QIDNSGIP=? OK
Write Command Response
AT+QIDNSGIP=<domain name> OK
ERROR
If succeeds, return:
<IP address>
If fails, return:
ERROR: <err>
STATE: <state>
Reference

Parameter

<domain name> A string parameter which indicates the domain name


<IP address> A string parameter which indicates the IP address corresponding to the domain name

M35_AT_Commands_Manual Confidential / Released 134 / 186


GSM/GPRS Module
M35 AT Commands Manual

<err> A numeric parameter which indicates the error code


1 DNS not Authorization
2 Invalid parameter
3 Network error
4 No server
5 Time out
6 No configuration
7 No memory
8 Unknown error
<state> Refer to AT+QISTAT

11.14. AT+QIDNSIP Connect with IP Address or Domain Name Server

AT+QIDNSIP Connect with IP Address or Domain Name Server


Test Command Response
AT+QIDNSIP=? +QIDNSIP: (list of supported <mode>s)

OK
Read Command Response
AT+QIDNSIP? +QIDNSIP: <mode>

OK
Write Command Response
AT+QIDNSIP=<mode> OK
ERROR
Reference

Parameter

<mode> A numeric parameter indicates which kind of server format is used when establishing the
connection: IP address server or domain name server
0 The address of the remote server is a dotted decimal IP address
1 The address of the remote server is a domain name

11.15. AT+QIHEAD Add an IP Header when Receiving Data

AT+QIHEAD Add an IP Header when Receiving Data


Test Command Response

M35_AT_Commands_Manual Confidential / Released 135 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+QIHEAD=? +QIHEAD: (list of supported <mode>s)

OK
Read Command Response
AT+QIHEAD? +QIHEAD: <mode>

OK
Write Command Response
AT+QIHEAD=<mode> OK
ERROR
Reference

Parameter

<mode> A numeric parameter which indicates whether or not to add an IP header before the
received data
0 DO Not add IP header
1 Add a header before the received data, and the format is "IPD(data length):"

11.16. AT+QIAUTOS Set Auto Sending Timer

AT+QIAUTOS Set Auto Sending Timer


Test Command Response
AT+QIAUTOS=? +QIAUTOS: (list of supported <mode>s), (list of supported
<time>s)

OK
Read Command Response
AT+QIAUTOS? +QIAUTOS: <mode>,<time>

OK
Write Command Response
AT+QIAUTOS=<mode>[,<time>] OK
ERROR
Reference

Parameter

<mode> A numeric parameter which indicates whether or not to set timer when sending data

M35_AT_Commands_Manual Confidential / Released 136 / 186


GSM/GPRS Module
M35 AT Commands Manual

0 DO Not set timer for data sending


1 Set timer for data sending
<time> A numeric parameter which indicates a time in seconds
After the time expires since AT+QISEND, the input data will be sent automatically

11.17. AT+QIPROMPT Set Prompt of „>‟ when Sending Data

AT+QIPROMPT Set Prompt of „>‟ when Sending Data


Test Command Response
AT+QIPROMPT=? +QIPROMPT: (list of supported <send prompt>s)

OK
Read Command Response
AT+QIPROMPT? +QIPROMPT: <send prompt>

OK
Write Command Response
AT+QIPROMPT=<send prompt> OK
ERROR
Reference

Parameter

<send prompt> A numeric parameter which indicates whether or not to echo prompt ">" after
issuing AT+QISEND Command
0 No prompt ">" and show "SEND OK" when sending successes
1 Echo prompt ">" and show "SEND OK" when sending successes
2 No prompt and not show "SEND OK" when sending successes
3 Echo prompt ">" and show “socket ID” "SEND OK" when sending
successes

11.18. AT+QISERVER Configure as Server

AT+QISERVER Configure as Server


Test Command Response
AT+QISERVER=? OK
Read Command Response
AT+QISERVER? +QISERVER: <mode>, <num>

M35_AT_Commands_Manual Confidential / Released 137 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Execution Command Response
AT+QISERVER OK
ERROR
If configured as server successfully, return:
SERVER OK
If configured as server unsuccessfully, return:
CONNECT FAIL
Write Command Response
AT+QISERVER=<type>[,<max>] OK
ERROR
If configured as server successfully, return:
SERVER OK
If configured as server unsuccessfully, return:
CONNECT FAIL
Reference

Parameter

<mode> 0 NOT configured as server


1 Configured as server
<num> The number of clients that have been connected in. The range is 1~5
<type> A numeric indicates the type of the server
0 TCP server
1 UDP server
<max> The maximum number of clients allowed to connect in. The default value is 1. The range
is 1-5

NOTES

1. This command configures the module as a TCP server and the maximum allowed client is 1.
2. The parameter <max> is excluded when QIMUX is 0.

M35_AT_Commands_Manual Confidential / Released 138 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.19. AT+QICSGP Select CSD or GPRS as the Bearer

AT+QICSGP Select CSD or GPRS as the Bearer


Test Command Response
AT+QICSGP=? +QICSGP: 0-CSD,DIAL NUMBER,USER
NAME,PASSWORD,RATE(0-3)
+QICSGP: 1-GPRS,APN,USER NAME,PASSWORD

OK
Read Command Response
AT+QICSGP? +QICSGP: <mode>

OK
Write Command Response
AT+QICSGP=<mode>[,(<apn>,<user OK
name>,<password>)/(<dial ERROR
number>,<user
name>,<password>,<rate>)]
Reference

Parameter

<mode> A numeric parameter which indicates the bearer type


0 Set CSD as the bearer for TCPIP connection
1 Set GPRS as the bearer for TCPIP connection

GPRS parameters:
<apn> A string parameter which indicates the access point name
<user name> A string parameter which indicates the user name
<password> A string parameter which indicates the password

CSD parameters:
<dial number> A string parameter which indicates the CSD dial numbers
<user name> A string parameter which indicates the CSD user name
<password> A string parameter which indicates the CSD password
<rate> A numeric parameter which indicates the CSD connection rate
0 2400
1 4800
2 9600
3 14400

M35_AT_Commands_Manual Confidential / Released 139 / 186


GSM/GPRS Module
M35 AT Commands Manual

NOTE

CSD configuration is not supported at present.

11.20. AT+QISRVC Choose Connection

AT+QISRVC Choose Connection


Test Command Response
AT+QISRVC=? +QISRVC: (list of supported <connection>s)

OK
Read Command Response
AT+QISRVC? +QISRVC: <connection>

OK
Write Command Response
AT+QISRVC=<connection> OK
ERROR
Reference

Parameter

<connection> A numeric parameter which indicates the chosen connection


1 Choose the connection in which MS used as a client
2 Choose the connection in which MS used as a server

NOTE

There could be two connections at one time: one connection is that MS connects with a remote server as
a client; the other connection is that MS accepts a remote client as a server. Using this Command to
specify which connection data will be sent through.

11.21. AT+QISHOWRA Set Whether or not to Display the Address of

Sender

AT+QISHOWRA Set Whether or not to Display the Address of Sender

M35_AT_Commands_Manual Confidential / Released 140 / 186


GSM/GPRS Module
M35 AT Commands Manual

Test Command Response


AT+QISHOWRA=? +QISHOWRA: (list of supported <mode>s)

OK
Read Command Response
AT+QISHOWRA? +QISHOWRA: <mode>

OK
Write Command Response
AT+QISHOWRA=<mode> OK
ERROR
Reference

Parameter

<mode> A numeric parameter which indicates whether to show the address (including IP address
in dotted decimal style and port of the remote end) before the received data or not
0 DO NOT show the address. Default
1 Show the address; the format to show the address is like: RECV FROM:
<IP ADDRESS>:<PORT>

11.22. AT+QISCON Save TCPIP Application Context

AT+QISCON Save TCPIP Application Context


Test Command Response
AT+QISCON=? OK
Read Command Response
AT+QISCON? TA returns TCPIP application context, which consists of the
following AT command parameters.
SHOW APPTCPIP CONTEXT
+QIDNSIP:<mode>
+QIPROMPT:<sendprompt>
+QIHEAD:<iphead>
+QISHOWRA:<srip>
+QICSGP:<csgp>
Gprs Config APN:<apn>
Gprs Config UserId:<gusr>
Gprs Config Password:<gpwd>
Gprs Config inactivityTimeout:<timeout>
CSD Dial Number:<cnum>

M35_AT_Commands_Manual Confidential / Released 141 / 186


GSM/GPRS Module
M35 AT Commands Manual

CSD Config UserId:<cusr>


CSD Config Password:<cpwd>
CSD Config rate:<crate>
App Tcpip Mode:<mode>
In Transparent Transfer Mode
Number of Retry:<nmRetry>
Wait Time:<waitTm>
Send Size:<sendSz>
esc:<esc>

OK
Execution Command Response
AT+QISCON OK
Reference

Parameter

<mode> See AT+QIDNSIP


<sendprompt> See AT+QIPROMPT
<iphead> See AT+QIHEAD
<srip> See AT+QISHOWRA
<csgp> See AT+QICSGP
<apn> See AT+QICSGP
<gusr> See AT+QICSGP
<gpwd> See AT+QICSGP
<timeout> See AT+QICSGP
<cnum> See AT+QICSGP
<cusr> See AT+QICSGP
<cpwd> See AT+QICSGP
<crate> See AT+QICSGP

The following four parameters are only for transparent transfer mode.
<nmRetry> See AT+QITCFG
<waitTm> See AT+QITCFG
<sendSz> See AT+QITCFG
<esc> See AT+QITCFG

NOTES
1. The execution command TA saves TCPIP Application Context which consists of the following AT
Command parameters, and when system is rebooted, the parameters will be loaded automatically:
AT+QIDNSIP,AT+QIPROMPT,AT+QIHEAD,AT+QISHOWRA, AT+QICSGP, AT+QITCFG.
2. The execution command only save the corresponding parameters of the foreground context (refer to

M35_AT_Commands_Manual Confidential / Released 142 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+QIFGCNT).
3. CSD configuration is not supported at present.

11.23. AT+QIMODE Select TCPIP Transfer Mode

AT+QIMODE Select TCPIP Transfer Mode


Test Command Response
AT+QIMODE=? +QIMODE:(0-NORMAL MODE,1-TRANSPARENT MODE)

OK
Read Command Response
AT+QIMODE? +QIMODE: <mode>

OK
Write Command Response
AT+QIMODE=<mode> OK
ERROR
Reference

Parameter

<mode> 0 Normal mode. In this mode, the data should be sent by the command
AT+QISEND
1 Transparent mode. In this mode, UART will enter data mode after TCP/UDP
connection has been established. In data mode, all input data from UART will be
sent to the remote end. +++ can help to switch data mode to command mode. And
then ATO can help to switch command mode to data mode

11.24. AT+QITCFG Configure Transparent Transfer Mode

AT+QITCFG Configure Transparent Transfer Mode


Test Command Response
AT+QITCFG=? +QITCFG: (list of supported <NmRetry>s),(list of supported
<WaitTm>s),(list of supported <SendSz>s),(list of supported
<esc>s)

OK
Read Command Response

M35_AT_Commands_Manual Confidential / Released 143 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+QITCFG? +QITCFG: <NmRetry>,<WaitTm>,<SendSz>,<esc>

OK
Write Command Response
AT+QITCFG=<NmRetry>,<WaitTm>,< OK
SendSz>,<esc> ERROR
Reference

Parameter

<NmRetry> Number of times to retry to send an IP packet


<WaitTm> Number of 100ms intervals to wait for serial input before sending the packet
<SendSz> Size in bytes of data block to be received from serial port before sending
<esc> Whether to turn on the escape sequence or not, default is TRUE

NOTES

1. <WaitTm> and <SendSz> are two conditions to send data packet.


2. Firstly, if the length of the input data from UART is greater than or equal to <SendSz>, the TCPIP
stack will send the data by length <SendSz> to the remote.
3. Secondly, if the length of the input data from UART is less than <SendSz>, and the idle time keeps
beyond the time defined by <WaitTm>, the TCPIP stack will send all the data in the buffer to the
remote.
4. This command is invalid when QIMUX is 1.

11.25. AT+QISHOWPT Control Whether or not to Show the Protocol

Type

AT+QISHOWPT Control Whether or not to Show the Protocol Type


Test Command Response
AT+QISHOWPT=? +QISHOWPT: (list of supported <mode>s)

OK
Read Command Response
AT+QISHOWPT? +QISHOWPT: <mode>

OK
Write Command Response
AT+QISHOWPT=<mode> OK

M35_AT_Commands_Manual Confidential / Released 144 / 186


GSM/GPRS Module
M35 AT Commands Manual

ERROR
Reference

Parameter

<mode> 0 DO NOT show the transport protocol type at the end of header of the received
TCP/UDP data
1 Show the transport protocol type at the end of header of the received TCP/UDP
data as the following format.IPD(data length)(TCP/UDP):

NOTE

This command is invalid if QIHEAD was set as 0 by the command AT+QIHEAD=0.

11.26. AT+QIMUX Control Whether or not to Enable Multiple TCPIP

Session

AT+QIMUX Control Whether or not to Enable Multiple TCPIP Session


Test Command Response
AT+QIMUX=? +QIMUX: (list of supported <mode>s)

OK
Read Command Response
AT+QIMUX? +QIMUX: <mode>

OK
Write Command Response
AT+QIMUX=<mode> OK
ERROR
Reference

Parameter

<mode> 0 DO NOT enable multiple TCPIP session at the same time


1 Enable multiple TCPIP session at the same time

M35_AT_Commands_Manual Confidential / Released 145 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.27. AT+QISHOWLA Control Whether or not to Display Local IP

Address

AT+QISHOWLA Control Whether or not to Display Local IP Address


Test Command Response
AT+QISHOWLA=? +QISHOWLA: (list of supported <mode>s)

OK
Read Command Response
AT+QISHOWLA? +QISHOWLA: <mode>

OK
Write Command Response
AT+QISHOWLA=<mode> OK
ERROR
Reference

Parameter

<mode> A numeric parameter indicates whether to show the destination address before the
received data or not
0 DO NOT show the destination address
1 Show the destination address: TO:<IP ADDRESS>

NOTE

Because M35 can activate two GPRS contexts at the same time. i.e. M35 can get two local IP addresses.
It is necessary to point out the destination of the received data when two GPRS contexts have been
activated at the same time.

11.28. AT+QIFGCNT Select a Context as Foreground Context

AT+QIFGCNT Select a Context as Foreground Context


Test Command Response
AT+QIFGCNT=? +QIFGCNT: (list of supported <id>s)

OK
Read Command Response

M35_AT_Commands_Manual Confidential / Released 146 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+QIFGCNT? +QIFGCNT: <id>,<channel>

OK
Write Command Response
AT+QIFGCNT=<id> OK
ERROR
Reference

Parameter

<id> A numeric indicates which context will be set as foreground context. The range is 0-1
<channel> A numeric indicates which channel is controlling the context <id>
0 VIRTUAL_UART_1
1 VIRTUAL_UART_2
2 VIRTUAL_UART_3
3 VIRTUAL_UART_4
255 The context is not controlled by any channel

NOTE

When CMUX is opened, if the status of the context defined by <id> is not IP_INITIAL and the context is
controlled by the other channel, it will return ERROR.

11.29. AT+QISACK Query the Data Information for Sending

AT+QISACK Query the Data Information for Sending


Test Command Response
AT+QISACK=? OK
Execution Command Response
AT+QISACK +QISACK: <sent>, <acked>, <nAcked>

OK
Write Command Response
AT+QISACK=<n> +QISACK: <sent>, <acked>, <nAcked>

OK
Reference

M35_AT_Commands_Manual Confidential / Released 147 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<n> The index for querying the connection


<sent> A numeric indicates the total length of the data that has been sent through the session
<acked> A numeric indicates the total length of the data that has been acknowledged by the remote
<nAcked> A numeric indicates the total length of the data that has been sent but not acknowledged by
the remote

NOTES

1. This command is invalid when QIMUX was set as 0 by the command AT+QIMUX=0.
2. This command could be affected by the command AT+QISRVC. If the QISRVC was set as 1, this
command is used to query the information of sending data during the session in which M35 serves as
a client. If the QISRVC was set as 2, this command is used to query the data information for sending
during the session in which M35 serves as a server.

11.30. AT+QINDI Set the Method to Handle Received TCP/IP Data

AT+QINDI Set the Method to Handle Received TCP/IP Data


Test Command Response
AT+QINDI=? +QINDI: (list of supported <m>s)

OK
Read Command Response
AT+QINDI? +QINDI: <m>

OK
Write Command Response
AT+QINDI=<m> OK
ERROR
Reference

Parameter

<m> A numeric indicates how the mode handles the received data
0 Output the received data through UART directly. In the case, it probably includes
header at the beginning of a received data packet. Please refer to the commands.
AT+QIHEAD,AT+QISHOWRA, AT+QISHOWPT,AT+QISHOWLA
1 Output a notification statement “+QIRDI: <id>,<sc>,<sid>” through UART. This
statement will be displayed only one time until all the received data from the
connection (defined by <id>,<sc>,<sid>) has been retrieved by the command

M35_AT_Commands_Manual Confidential / Released 148 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+QIRD<id> A numeric points out which context the connection for the received
data is based on. Please refer to the parameter <id> in the command
AT+QIFGCNT. The range is 0-1
<sc> A numeric points out the role of M35 in the connection for the received data.
1 The module serves as the client of the connection
2 The module serves as the server of the connection
<sid> A numeric indicates the index of the connection for the received data. The range is 0-5
When QIMUX was set as 0 by the command AT+QIMUX=0, this parameter will be always
0.

11.31. AT+QIRD Retrieve the Received TCP/IP Data

AT+QIRD Retrieve the Received TCP/IP Data


Test Command Response
AT+QIRD=? +QIRD: (list of supported <id>s),(list of supported <sc>s),(list
of supported <sid>s),(list of supported <len>s)

OK
Write Command Response
AT+QIRD=<id>,<sc>,<sid>,<len> [+QIRD:
<ipAddr>:<port>,<type>,<length><CR><LF><data>]
OK

ERROR
Reference

Parameter

<id> A numeric points out which context the connection for the received data is based on.
Please refer to the parameter <id> in the command AT+QIFGCNT. The range is 0-1
<sc> A numeric points out the role of M35 in the connection for the received data
1 The module serves as the client of the connection
2 The module serves as the server of the connection
<sid> A numeric indicates the index of the connection for the received data. The range is 0-5.
When QIMUX was set as 0 by the command AT+QIMUX=0, this parameter will be always
0
<len> The maximum length of data to be retrieved. The range is 1-1500
<ipAddr> The address of the remote end. It is a dotted-decimal IP
<port> The port of the remote end
<type> An alpha string without quotation marks indicates the transport protocol type
TCP the transport protocol is TCP

M35_AT_Commands_Manual Confidential / Released 149 / 186


GSM/GPRS Module
M35 AT Commands Manual

UDP the transport protocol is UDP


<length> The real length of the retrieved data
<data> The retrieved data

NOTES

1. <id>, <sc> and <sid> are the same as the parameters in the statement “+QIRDI: <id>,<sc>,<sid>”.
2. If it replies only OK for the write command, it means there is no received data in the buffer of the
connection.

11.32. AT+QISDE Control Whether or Not to Echo the Data for QISEND

AT+QISDE Control Whether or Not to Echo the Data for QISEND


Test Command Response
AT+QISDE=? +QISDE: (list of supported <m>s)

OK
Read Command Response
AT+QISDE? +QISDE: <m>

OK
Write Command Response
AT+QISDE=<m> OK
ERROR
Reference

Parameter

<m> A numeric indicates whether or not to echo the data for AT+QISEND
0 Do not echo the data
1 Echo the data

11.33. AT+QPING Ping a Remote Server

AT+QPING Ping a Remote Server


Test Command Response
AT+QPING=? +QPING: "HOST",(list of supported <timeout>s),(list of
supported <pingnum>s)

M35_AT_Commands_Manual Confidential / Released 150 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Write Command Response
AT+QPING=“<host>”[,[<timeout>][,<p OK
ingnum>]]
[+QPING:
<result>[,<ipAddr>,<bytes>,<time>,<ttl>]<CR><LF>
…]<CR><LF>
+QPING:<finresult>[,<sent>,<rcvd>,<lost>,<min>,<max>,
<avg>]

ERROR
Reference

Parameter

<host> The host address in string style. It could be a domain name or a dotted decimal IP address
<timeout> A numeric gives the maximum time to wait for the response of each ping request. Unit:
second. Range: 1-255. Default: 1
<pingnum> A numeric indicates the maximum time of ping request. Range: 1-10. Default: 4
<result> The result of each ping request
0 Received the ping response from the server. In the case, it is followed by
“,<ipAddr>,<bytes>,<time>,<ttl>”
1 Timeout for the ping request. In the case, no other information follows it
<ipAddr> The IP address of the remote server. It is a dotted decimal IP
<bytes> The length of sending each ping request
<time> The time expended to wait for the response for the ping request. Unit: ms
<ttl> The value of time to live of the response packet for the ping request
<finresult> The final result of the command
2 It is finished normally. It is successful to activate GPRS and find the host. In the
case, it is followed by “,<sent>,<rcvd>,<lost>,<min>,<max>,<avg>”
3 The TCP/IP stack is busy now. In the case, no other information follows it
4 Do NOT find the host. In the case, no other information follows it
5 Failed to activate PDP context. In the case, no other information follows it
<sent> Total number of sending the ping requests
<rcvd> Total number of the ping requests that received the response
<lost> Total number of the ping requests that were timeout
<min> The minimum response time. Unit: ms
<max> The maximum response time. Unit: ms
<avg> The average response time. Unit: ms

M35_AT_Commands_Manual Confidential / Released 151 / 186


GSM/GPRS Module
M35 AT Commands Manual

11.34. AT+QNTP Synchronize the Local Time Via NTP

AT+QNTP Synchronize the Local Time Via NTP


Test Command Response
AT+QNTP=? +QNTP: “SERVER”,(list of supported <port>s)

OK
Read Command Response
AT+QNTP? +QNTP: "<server>",<port>

OK
Execution Command Response
AT+QNTP OK

+QNTP: <result>
Write Command Response
AT+QNTP="<server>"[,<port>] OK

+QNTP: <result>

ERROR
Reference

Parameter

<server> The address of the Time Server in string style. It could be a domain name or a dotted
decimal IP address
<port> The port of the Time Server
<result> The result of time synchronization
0 Successfully synchronize the local time
1 Failed to synchronize the local time because of unknown reason
2 Failed to receive the response from the Time Server
3 The TCP/IP stack is busy now
4 Do Not find the Time Server
5 Failed to activate PDP context

NOTE

The factory Time Server is the National Time Service Centre of China whose address is "210.72.145.44"
and port is 123.

M35_AT_Commands_Manual Confidential / Released 152 / 186


GSM/GPRS Module
M35 AT Commands Manual

12 Supplementary Service
Commands

12.1. AT+CACM Accumulated Call Meter (ACM) Reset or Query

AT+CACM Accumulated Call Meter (ACM) Reset or Query


Test Command Response
AT+CACM=? OK
Read Command Response
AT+CACM? TA returns the current value of ACM.
+CACM: <acm>

OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command Response
AT+CACM=[<passwd>] TA resets the advice of charge related Accumulated Call
Meter (ACM) value in SIM file EF (ACM). ACM contains the
total number of home units for both the current and preceding
calls.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<acm> String type; three bytes of the current ACM value in hexa-decimal format (e.g. “00001E”
indicates decimal value 30)
000000 – FFFFFF
<passwd> String type: SIM PIN2

M35_AT_Commands_Manual Confidential / Released 153 / 186


GSM/GPRS Module
M35 AT Commands Manual

12.2. AT+CAMM Accumulated Call Meter Maximum (ACM Max) Set or

Query

AT+CAMM Accumulated Call Meter Maximum (ACM Max) Set or Query


Test Command Response
AT+CAMM=? OK
Read Command Response
AT+CAMM? TA returns the current value of ACM max.
+CAMM: <acmmax>

OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command Response
AT+CAMM=[<acmmax>[,<passwd>]] TA sets the advice of charge related Accumulated Call Meter
maximum value in SIM file EF (ACM max). ACM max
contains the maximum number of home units allowed to be
consumed by the subscriber.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<acmmax> String type; three bytes of the max. ACM value in hex-decimal format (e.g. “00001E”
indicates decimal value 30)
000000
Disable ACM max feature
000001-FFFFFF
<passwd> String type: SIM PIN2

12.3. AT+CAOC Advice of Charge

AT+CAOC Advice of Charge


Test Command Response
AT+CAOC=? +CAOC: (list of supported <mode>s)

M35_AT_Commands_Manual Confidential / Released 154 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Read Command Response
AT+CAOC? +CAOC: <mode>

OK
Write Command Response
AT+CAOC=<mode> TA sets the advice of charge supplementary service function
mode.
If error is related to ME functionality:
+CME ERROR: <err>
If <mode>=0, TA returns the current call meter value
+CAOC: <ccm>

OK
If <mode>=1, TA deactivates the unsolicited reporting of
CCM value
OK
If <mode>=2. TA activates the unsolicited reporting of CCM
value
OK
Reference
GSM 07.07

Parameter

<mode> 0 Query CCM value


1 Deactivate the unsolicited reporting of CCM value
2 Activate the unsolicited reporting of CCM value
<ccm> String type; three bytes of the current CCM value in hex-decimal format (e.g. “00001E”
indicates decimal value 30); bytes are similarly coded as ACM max value in the SIM
000000-FFFFFF

12.4. AT+CCFC Call Forwarding Number and Conditions Control

AT+CCFC Call Forwarding Number and Conditions Control


Test Command Response
AT+CCFC=? +CCFC: (list of supported <reads>s)

OK
Write Command Response
AT+CCFC=<reads>,<mode>[,<numbe TA controls the call forwarding supplementary service.

M35_AT_Commands_Manual Confidential / Released 155 / 186


GSM/GPRS Module
M35 AT Commands Manual

r>[,<type>[,<class>[,<subaddr>[,<sat Registration, erasure, activation, deactivation, and status


ype>[,time]]]]]] query are supported.
Only ,<reads> and <mode> should be entered with mode
(0-2,4)
If <mode><>2 and command successful
OK
If <mode>=2 and command successful (only in connection
with <reads> 0 –3)
For registered call forwarding numbers:
+CCFC: <status>, <class1>[, <number>, <type>
[,<subaddr>,<satype>[,<time>]]] [<CR><LF>+CCFC: ....]

OK
If no call forwarding numbers are registered (and therefore all
classes are
inactive):
+CCFC: <status>, <class>

OK
where <status>=0 and <class>=15
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<reads> 0 Unconditional
1 Mobile busy
2 No reply
3 Not reachable
4 All call forwarding (0-3)
5 All conditional call forwarding (1-3)
<mode> 0 Disable
1 Enable
2 Query status
3 Registration
4 Erasure
<number> Phone number in string type of forwarding address in format specified by <type>
<type> Type of address in integer format; default value is 145 when dialing string includes
international access code character “+”, otherwise 129
<subaddr> String type sub-address of format specified by <satype>
<satype> Type of sub-address in integer

M35_AT_Commands_Manual Confidential / Released 156 / 186


GSM/GPRS Module
M35 AT Commands Manual

<class> 1 Voice
2 Data
4 FAX
7 All telephony except SMS
8 Short message service
16 Data circuit sync
32 Data circuit async
<time> 1…30 When “no reply” (<reads>=no reply) is enabled or queried, this gives the time in
seconds to wait before call is forwarded, default value is 20
<status> 0 Not active
1 Active

Example
AT+CCFC=0,3,”15021012496” // Register the destination number for unconditional call
forwarding (CFU)
OK
AT+CCFC=0,2 // Query the status of CFU without specifying <class>
+CCFC: 1,1,"+8615021012496",145

+CCFC: 1,4,"+8615021012496",145

+CCFC: 1,32,"+8615021012496",145

+CCFC: 1,16,"+8615021012496",145

OK
AT+CCFC=0,4 // Erase the registered CFU destination number
OK
AT+CCFC=0,2 // Query the status, no destination number
+CCFC: 0,7

OK

12.5. AT+CCUG Closed User Group Control

AT+CCUG Closed User Group Control


Test Command Response
AT+CCUG=? OK
Read Command Response
AT+CCUG? +CCUG: <n>,<index>,<info>

M35_AT_Commands_Manual Confidential / Released 157 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Write Command Response
AT+CCUG=[<n>][,<index>[,<info>]] TA sets the closed user group supplementary service
parameters as a default adjustment for all following calls.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> 0 Disable CUG


1 Enable CUG
<index> 0...9 CUG index
10 No index (preferred CUG taken from subscriber data)
<info> 0 Bo information
1 Suppress OA (Outgoing Access)
2 Suppress preferential CUG
3 Suppress OA and preferential CUG

12.6. AT+CCWA Call Waiting Control

AT+CCWA Call Waiting Control


Test Command Response
AT+CCWA=? +CCWA: (list of supported <n>s)

OK
Read Command Response
AT+CCWA? +CCWA: <n>

OK
Write Command Response
AT+CCWA=[<n>][,<mode>[,<class>]] TA controls the call waiting supplementary service. Activation,
deactivation and status query are supported.
If <mode><>2 and command successful
OK
If <mode>=2 and command successful
+CCWA:<status>,<class1>[<CR><LF>+CCWA:<status>,<
class2>[...]]

M35_AT_Commands_Manual Confidential / Released 158 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> 0 Disable presentation of an unsolicited result code


1 Enable presentation of an unsolicited result code
<mode> When <mode> parameter is not given, network is not interrogated
0 Disable
1 Enable
2 Query status
<class> A sum of integers, each integer represents a class of information
1 Voice (telephony)
2 Data (bearer service)
4 FAX(facsimile)
16 Data circuit sync
32 Data circuit async
<status> 0 Disable
1 Enable

NOTES

1. <status>=0 should be returned only if service is not active for any <class> i.e. +CCWA: 0, 7 will be
returned in this case.
2. When <mode>=2, all active call waiting classes will be reported. In this mode the command is
abortable by pressing any key.
3. Unsolicited result code
When the presentation call waiting at the TA is enabled (and call waiting is enabled) and a terminating
call set up during an established call, an unsolicited result code is returned:
+CCWA: <number>,<type>,<class>[,<alpha>]
Parameters
<number> Phone number in string type of calling address in format specified by <type>
<type> Type of address octet in integer format
129 Unknown type (IDSN format number)
145 International number type (ISDN format )
<alpha> Optional string type alphanumeric representation of <number> corresponding to the
entry found in phone book

Example

M35_AT_Commands_Manual Confidential / Released 159 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CCWA=1,1 // Enable presentation of an unsolicited result code


OK
ATD10086; // Establish a call
OK

+CCWA: "02154450293",129,1 // Indication of a call that has been waiting

12.7. AT+CHLD Call Hold and Multiparty

AT+CHLD Call Hold and Multiparty


Test Command Response
AT+CHLD=? +CHLD: (list of supported <n>s)

OK
Write Command Response
AT+CHLD=[<n>] TA controls the supplementary services call hold, multiparty
and explicit call transfer. Calls can be put on hold, recovered,
released, added to conversation and transferred.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> 0 Terminate all held calls or UDUB (User Determined User Busy) for a waiting call. If
a call is waiting, terminate the waiting call. Otherwise, terminate all held calls (if
any)
1 Terminate all active calls (if any) and accept the other call (waiting call or held
call). It can not terminate active call if there is only one call
1X Terminate the specific call number X (X= 1-7)( active, waiting or held)
2 Place all active calls on hold (if any) and accept the other call (waiting call or held
call) as the active call
2X Place all active calls except call X (X= 1-7) on hold
3 Add the held call to the active calls

NOTE

M35_AT_Commands_Manual Confidential / Released 160 / 186


GSM/GPRS Module
M35 AT Commands Manual

These supplementary services are only available to the teleservice 11 (Speech: Telephony).

Example
ATD10086; // Establish a call
OK

+CCWA: "02154450293",129,1 // Indication of a call that has been waiting


AT+CHLD=2 // Place the active call on hold and accept the waiting call as
the active call
OK
AT+CLCC
+CLCC: 1,0,1,0,0,"10086",129,"" // The first call on hold

+CLCC: 2,1,0,0,0,"02154450293",129,"" // The second call becomes active

OK
AT+CHLD=21 // Place the active call except call X=1 on hold
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"10086",129,"" // The first call becomes active

+CLCC: 2,1,1,0,1,"02154450293",129,"" // The second call on hold

OK
AT+CHLD=3 // Add a held call to the active calls in order to set up a
conference (multiparty) call
OK
AT+CLCC
+CLCC: 1,0,0,0,1,"10086",129,""

+CLCC: 2,1,0,0,1,"02154450293",129,""

OK

12.8. AT+CLIP Calling Line Identification Presentation

AT+CLIP Calling Line Identification Presentation


Test Command Response
AT+CLIP=? +CLIP: (list of supported <n>s)

M35_AT_Commands_Manual Confidential / Released 161 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Read Command Response
AT+CLIP? +CLIP: <n>,<m>

OK
Write Command Response
AT+CLIP=[<n>] TA enables or disables the presentation of the calling line
identity (CLI) at the TE. It has no effect on the execution of the
supplementary service CLIP in the network.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> 0 Suppress unsolicited result codes


1 Display unsolicited result codes
<m> 0 CLIP not provisioned
1 CLIP provisioned
2 Unknown

NOTE

Unsolicited result code


When the presentation of the CLI at the TE is enabled (and calling subscriber allows), an unsolicited
result code is returned after every RING (or +CRING: <type>) at a mobile terminating call.
+CLIP: <number>, <type>,"",,<alphaId>,<CLI validity>
Parameters
<number> Phone number in string type of calling address in format specified by <type>
<type> Type of address octet in integer format;
129 Unknown type (IDSN format number)
145 International number type (ISDN format )
<alphaId> String type alphanumeric representation of <number> corresponding to the entry found in
phone book
<CLI validity> 0 CLI valid
1 CLI has been withheld by the originator
2 CLI is not available due to interworking problems or limitations of originating
network

Example

M35_AT_Commands_Manual Confidential / Released 162 / 186


GSM/GPRS Module
M35 AT Commands Manual

AT+CPBW=1,"02151082965",129,"QUECTEL"
OK
AT+QCLIP=1
OK
AT+CLIP=1
OK

RING

+CLIP: "02151082965",129,"",,"QUECTEL",0

12.9. AT+CLIR Calling Line Identification Restriction

AT+CLIR Calling Line Identification Restriction


Test Command Response
AT+CLIR=? +CLIR: (list of supported <n>s)

OK
Read Command Response
AT+CLIR? +CLIR: <n>,<m>

OK
Write Command Response
AT+CLIR=[<n>] TA restricts or enables the presentation of the calling line
identity (CLI) to the called party when originating a call.
The command overrides the CLIR subscription (default is
restricted or allowed) when temporary mode is provisioned as
a default adjustment for all following outgoing calls. This
adjustment can be revoked by using the opposite Command.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> (Parameter sets the adjustment for outgoing calls)


0 presentation indicator is used according to the subscription of the CLIR service
1 CLIR invocation
2 CLIR suppression

M35_AT_Commands_Manual Confidential / Released 163 / 186


GSM/GPRS Module
M35 AT Commands Manual

<m> (Parameter shows the subscriber CLIR service status in the network)
0 CLIR not provisioned
1 CLIR provisioned in permanent mode
2 Unknown (e.g. no network, etc.)
3 CLIR temporary mode presentation restricted
4 CLIR temporary mode presentation allowed

12.10. AT+COLP Connected Line Identification Presentation

AT+COLP Connected Line Identification Presentation


Test Command Response
AT+COLP=? +COLP: (list of supported <n>s)

OK
Read Command Response
AT+COLP? +COLP: <n>,<m>

OK
Write Command Response
AT+COLP=[<n>] TA enables or disables the presentation of the COL
(Connected Line) at the TE for a mobile originating a call. It
has no effect on the execution of the supplementary service
COLR in the network.
Intermediate result code is returned from TA to TE before any
+CR or V.25ter responses.
OK
Reference
GSM 07.07

Parameter

<n> (Parameter sets/shows the result code presentation status in the TA)
0 Disable
1 Enable
<m> (Parameter shows the subscriber COLP service status in the network)
0 COLP not provisioned
1 COLP provisioned
2 Unknown (e.g. no network, etc.)

NOTE

M35_AT_Commands_Manual Confidential / Released 164 / 182


GSM/GPRS Module
M35 AT Commands Manual

Intermediate result code


When enabled (and called subscriber allows), an intermediate result code is returned before any +CR or
V.25ter responses:
+COLP: <number>,<type>[,<subaddr>,<satype> [,<alpha>]]
Parameters
<number> Phone number in string type, format specified by <type>
<type> Type of address octet in integer format
129 Unknown type(IDSN format number)
145 International number type(ISDN format )
<subaddr> String type sub-address of format specified by <satype>
<satype> Type of sub-address octet in integer format (refer to GSM 04.08 sub clause 10.5.4.8)
<alpha> Optional string type alphanumeric representation of <number> corresponding to the entry
found in phone book

Example
AT+CPBW=1,"02151082965",129,"QUECTEL"
OK
AT+QCOLP=1
OK
AT+COLP=1
OK
ATD02151082965;
+COLP: "02151082965",129,"",0,"QUECTEL"

OK

12.11. AT+CPUC Price Per Unit and Currency Table

AT+CPUC Price Per Unit and Currency Table


Test Command Response
AT+CPUC=? OK
Read Command Response
AT+CPUC? +CPUC: <currency>,<ppu>

OK
Write Command Response
AT+CPUC=<currency>,<ppu>[,<pass OK
wd>] If error is related to ME functionality:
+CME ERROR: <err>
Reference

M35_AT_Commands_Manual Confidential / Released 165 / 186


GSM/GPRS Module
M35 AT Commands Manual

GSM 07.07

Parameter

<currency> String type; three-character currency code (e.g. "GBP", "DEM"); character set as specified
by command select TE character set +CSCS
<ppu> String type; price per unit; dot is used as a decimal Separator (e.g. "2.66")
<passwd> String type; SIM PIN2

12.12. AT+CCWE Call Meter Maximum Event

AT+CCWE Call Meter Maximum Event


Test Command Response
AT+CCWE=? +CCWE: (list of supported <mode>s)

OK
Read Command Response
AT+CCWE? +CCWE: <mode>

OK
Write Command Response
AT+CCWE=[<mode>] OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<mode> 0 Disable call meter warning event


1 Enable call meter warning event

NOTE

Unsolicited result codes supported:


+CCWV Shortly before the ACM (Accumulated Call Meter) maximum value is reached, an unsolicited
result code +CCWV will be sent, if enabled by this command. The warning is issued approximately when
5 seconds call time remains. It is also issued when starting a call if less than 5s call time remains

M35_AT_Commands_Manual Confidential / Released 166 / 186


GSM/GPRS Module
M35 AT Commands Manual

12.13. AT+CUSD Unstructured Supplementary Service Data

AT+CUSD Unstructured Supplementary Service Data


Test Command Response
AT+CUSD=? +CUSD: (list of supported <n>s)

OK
Read Command Response
AT+CUSD? +CUSD: <n>

OK
Write Command Response
AT+CUSD=[<n>[,<str>[,<dcs>]] OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> A numeric parameter which indicates control of the unstructured supplementary service data
0 Disable the result code presentation in the TA
1 Enable the result code presentation in the TA
2 Cancel session (not applicable to read command response)
<str> String type USSD-string
<dcs> Cell Broadcast Data Coding Scheme in integer format (default 0)

Example
AT+CSCS=“UCS2”
OK
AT+CUSD=1,"002A0031003000300023"
+CUSD:
1,"0031002E59296C14000A0032002E65B095FB000A0033002E8BC15238000A0034002E5F6979680
00A0035002E751F6D3B000A0036002E5A314E50000A0037002E5E385DDE98CE91C7000A002A002
E900051FA000A", 72

OK

M35_AT_Commands_Manual Confidential / Released 167 / 186


GSM/GPRS Module
M35 AT Commands Manual

12.14. AT+CSSN Supplementary Services Notification

AT+CSSN Supplementary Services Notification


Test Command Response
AT+CSSN=? +CSSN: (list of supported <n>s), (list of supported <m>s)

OK
Read Command Response
AT+CSSN? +CSSN: <n>,<m>

OK
Write Command Response
AT+CSSN=[<n>[,<m>]] OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> A numeric parameter which indicates whether to show the +CSSI:<code1>[,<index>]


result code presentation status after a mobile originated call setup
0 Disable
1 Enable
<m> A numeric parameter which indicates whether to show the +CSSU:<code2> result code
presentation status during a mobile terminated call setup or during a call, or when a forward
check supplementary service notification is received
0 Disable
1 Enable
<code1> 0 Unconditional call forwarding is active
1 Some of the conditional call forwarding are active
2 Call has been forwarded
3 Call is waiting
4 This is a CUG call (also <index> present)
5 Outgoing calls are barred
6 Incoming calls are barred
7 CLIR suppression rejected
<index> Closed user group index
<code2> 0 This is a forwarded call

M35_AT_Commands_Manual Confidential / Released 168 / 186


GSM/GPRS Module
M35 AT Commands Manual

13 Audio Commands

13.1. ATL Set Monitor Speaker Loudness

ATL Set Monitor Speaker Loudness


Execution Command Response
ATL<value> OK
Reference
V.25ter

Parameter

<value> 0 Low speaker volume


1 Low speaker volume
2 Medium speaker volume
3 High speaker volume

NOTE

The two commands ATL and ATM are implemented only for V.25 compatibility reasons and have no
effect.

13.2. ATM Set Monitor Speaker Mode

ATM Set Monitor Speaker Mode


Execution Command Response
ATM<value> OK
Reference
V.25ter

M35_AT_Commands_Manual Confidential / Released 169 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<value> 0 Speaker is always off


1 Speaker is on until TA inform TE that carrier has been detected
2 Speaker is always on when TA is off-hook

NOTE

The two commands ATL and ATM are implemented only for V.25 compatibility reasons and have no
effect.

13.3. AT+VTD Tone Duration

AT+VTD Tone Duration


Test Command Response
AT+VTD=? +VTD: ( list of supported <internalduration>s )[,( list of
supported <duration>s )]

OK
Read Command Response
AT+VTD? +VTD: <internalduration>,<duration>

OK
Write Command Response
AT+VTD=<internalduration>[,<duratio This command refers to an integer <internalduration> that
n>] defines the length of tones emitted as a result of the +VTS
command. This does not affect the D command.
OK
Reference
GSM 07.07

Parameter

<internalduration> 1-255 Duration between two tones in 1/10 second


<duration> 0 Do not set duration of every single tone.
1-100000 Duration of every single tone in 1 ms

M35_AT_Commands_Manual Confidential / Released 170 / 186


GSM/GPRS Module
M35 AT Commands Manual

13.4. AT+VTS DTMF and Tone Generation

AT+VTS DTMF and Tone Generation


Test Command Response
AT+VTS=? +VTS: (list of supported <dtmf>s), ,(list of supported
<duration>s)

OK
Write Command Response
AT+VTS=<dtmf-string> This command allows the transmission of DTMF tones and
arbitrary tones in voice mode. These tones may be used (for
example) when announcing the start of a recording period.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<dtmf-string> It has a max length of 20 characters, must be entered between double quotes (" ") and
consists of combinations of the following separated by commas. But a single character
does not require quotes
1) <dtmf> A single ASCII characters in the set 0-9, #,*, A-D. This is
interpreted as a sequence of DTMF tones whose duration
is set by the +VTD command
2) {<dtmf>, <duration>} This is interpreted as a DTMF tone whose duration is
determined by <duration>
<duration> Duration of the tone in 1/10 seconds range :1-255

Example
ATD10086; // Establish a call
OK
AT+VTS=1 // Send a single DTMF tone according to the prompts of voice
OK

M35_AT_Commands_Manual Confidential / Released 171 / 186


GSM/GPRS Module
M35 AT Commands Manual

13.5. AT+CALM Alert Sound Mode

AT+CALM Alert Sound Mode


Test Command Response
AT+CALM=? +CALM: (list of supported <mode>s)

OK
Read Command Response
AT+CALM? +CALM: <mode>

OK
Write Command Response
AT+CALM=<mode> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<mode> 0 Normal mode


1 Silent mode (all sounds from ME are prevented)

13.6. AT+CRSL Ringer Sound Level

AT+CRSL Ringer Sound Level


Test Command Response
AT+CRSL=? +CRSL: (list of supported <level>s)

OK
Read Command Response
AT+CRSL? +CRSL: <level>

OK
Write Command Response
AT+CRSL=<level> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

M35_AT_Commands_Manual Confidential / Released 172 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<level> Integer type value(0-100) with manufacturer specific range (Smallest value represents the
lowest sound level)

13.7. AT+CLVL Loud Speaker Volume Level

AT+CLVL Loud Speaker Volume Level


Test Command Response
AT+CLVL=? +CLVL: (list of supported <level>s)

OK
Read Command Response
AT+CLVL? +CLVL: <level>

OK
Write Command Response
AT+CLVL=<level> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<level> Integer type value(0-100) with manufacturer specific range (Smallest value represents
the lowest sound level)

13.8. AT+CMUT Mute Control

AT+CMUT Mute Control


Test Command Response
AT+CMUT=? +CMUT: (list of supported <n>s)

OK
Read Command Response
AT+CMUT? +CMUT: <n>

M35_AT_Commands_Manual Confidential / Released 173 / 186


GSM/GPRS Module
M35 AT Commands Manual

OK
Write Command Response
AT+CMUT=<n> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<n> 0 Mute off


1 Mute on

13.9. AT+QSIDET Change the Side Tone Gain Level

AT+QSIDET Change the Side Tone Gain Level


Test Command Response
AT+QSIDET=? +QSIDET: (list of supported <gainlevel>s)

OK
Read Command Response
AT+QSIDET? +QSIDET(NORMAL_AUDIO): <gainlevel>

OK
+QSIDET(HEADSET_AUDIO): <gainlevel>

OK
Write Command Response
AT+QSIDET=<gainlevel> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<gainlevel> Range is 0 - 255

NOTES

M35_AT_Commands_Manual Confidential / Released 174 / 186


GSM/GPRS Module
M35 AT Commands Manual

<gainlevel> value is related to specific channel.

13.10. AT+QMIC Change the Microphone Gain Level

AT+QMIC Change the Microphone Gain Level


Test Command Response
AT+QMIC=? +QMIC: (list of supported <channel>s), (list of supported
<gainlevel>s)

OK
Read Command Response
AT+QMIC? +QMIC:
<gainlevel(Normal_Mic)>,<gainlevel(Headset_Mic)>,<gai
nlevel(Loudspeaker_Mic)>

OK
Write Command Response
AT+QMIC=<channel>,<gainlevel> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference

Parameter

<channel> 0 Normal microphone


1 Headset microphone
2 Loudspeaker microphone
<gainlevel> Range is 0 - 15

M35_AT_Commands_Manual Confidential / Released 175 / 186


GSM/GPRS Module
M35 AT Commands Manual

14 Hardware Related Commands

14.1. AT+CCLK Clock

AT+CCLK Clock
Test Command Response
AT+CCLK=? OK
Read Command Response
AT+CCLK? +CCLK: <time>

OK
Write Command Response
AT+CCLK=<time> OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<time> String type value; format is "yy/MM/dd,hh:mm:ss±zz", where characters indicate year (two
last digits),month, day, hour, minutes, seconds and time zone (indicates the difference,
expressed in quarters of an hour, between the local time and GMT; range -48...+48). E.g.
May 6th, 1994, 22:10:00 GMT+2 hours equals to "94/05/06,22:10:00+08"

Example
AT+CCLK? // Query the local time
+CCLK: "08/01/04, 00:19:43+00"

OK

M35_AT_Commands_Manual Confidential / Released 176 / 186


GSM/GPRS Module
M35 AT Commands Manual

14.2. AT+CBC Battery Charge

AT+CBC Battery Charge


Test Command Response
AT+CBC=? +CBC: (list of supported <bcs>s),(list of supported
<bcl>s),(voltage)

OK
Execution Command Response
AT+CBC +CBC: <bcs>, <bcl>,<voltage>

OK
If error is related to ME functionality:
+CME ERROR: <err>
Reference
GSM 07.07

Parameter

<bcs> Charge status


0 ME is not charging
1 ME is charging
2 Charging has finished
<bcl> Battery connection level
1...100 Battery has 1-100 percent of capacity remaining vent
<voltage> Battery voltage(mV)

M35_AT_Commands_Manual Confidential / Released 177 / 186


GSM/GPRS Module
M35 AT Commands Manual

14.3. AT+QTEMP Set Temperature Detection Mode or Query

Temperature

AT+QTEMP Set Critical Temperature Operating Mode or Query Temperature


Test Command Response
AT+QTEMP=? +QTEMP: (list of supported <mode>s), (list of supported <
Temperature>s)

OK
Read Command Response
AT+QTEMP? QTEMP: <mode><Temperature>

OK
Write Command Response
AT+ QTEMP=<mode> OK
ERROR
Reference

Parameter

<mode> 0 Disable to query temperature


1 Enable to query temperature
2 Reserved
<Temperature> Range is from -40°C ~ +90°C.

M35_AT_Commands_Manual Confidential / Released 178 / 186


GSM/GPRS Module
M35 AT Commands Manual

14.4. AT+QSCLK Configure Slow Clock

AT+QSCLK Configure Slow Clock


Test Command Response
AT+QSCLK=? +QSCLK: (list of supported <n>s)

OK
Read Command Response
AT+QSCLK? +QSCLK: <n>

OK
Write Command Response
AT+QSCLK=<n> OK
Reference

Parameter

<n> 0 Disable slow clock


1 Enable slow clock, it is controlled by DTR
2 The module decides when it enters sleep mode. When there is no data on
serial port in 5 seconds, module can enter sleep mode. Otherwise, it will quit from
sleep mode

M35_AT_Commands_Manual Confidential / Released 179 / 186


GSM/GPRS Module
M35 AT Commands Manual

15 Others Commands

15.1. A/ Re-issues the Last Command Given

A/ Re-issues the Last Command Given


Execution Command Response
A/ Re-issues the previous command
Reference
V.25ter

NOTE

This command does not work when the serial multiplexer is active. It does not have to end with
terminating character.

Example
AT
OK
A/ // Re-issues the previous command
OK

15.2. ATE Set Command Echo Mode

ATE Set Command Echo Mode


Execution Command Response
ATE<value> This setting determines whether or not the TA echoes
characters received from TE during command state.
OK
Reference
V.25ter

M35_AT_Commands_Manual Confidential / Released 180 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<value> 0 Echo mode off


1 Echo mode on

15.3. ATS3 Set Command Line Termination Character

ATS3 Set Command Line Termination Character


Read Command Response
ATS3? <n>

OK
Write Command Response
ATS3=<n> This parameter setting determines the character recognized
by TA to terminate an incoming command line. The TA also
returns this character in output.
OK
Reference
V.25ter

Parameter

<n> 0-13-127 Command line termination character (Default 13=<CR>)

15.4. ATS4 Set Response Formatting Character

ATS4 Set Response Formatting Character


Read Command Response
ATS4? <n>

OK
Write Command Response
ATS4=<n> This parameter setting determines the character generated
by the TA for result code and information text.
OK
Reference
V.25ter

M35_AT_Commands_Manual Confidential / Released 181 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<n> 0-10-127 Response formatting character (Default 10=<LF>)

15.5. ATS5 Set Command Line Editing Character

ATS5 Set Command Line Editing Character


Read Command Response
ATS5? <n>

OK
Write Command Response
ATS5=<n> This parameter setting determines the character recognized
by TA as a request to delete the immediately preceding
character from the command line.
OK
Reference
V.25ter

Parameter

<n> 0-8-127 Response editing character (Default 8=<Backspace>)

15.6. AT+DS V.42bis Data Compression Control

AT+DS V.42bis Data Compression Control


Test Command Response
AT+DS=? +DS: (list of supported <p0>s), (list of supported <n>s), (list
of supported <p1>s), (list of supported <p2>s)

OK
Read Command Response
AT+DS? +DS: <p0>,<n>,<p1>,<p2>

OK
Write Command Response
AT+DS=[<p0>[,<n>[,<p1>[,<p2>]]]] This parameter setting determines the possible data

M35_AT_Commands_Manual Confidential / Released 182 / 186


GSM/GPRS Module
M35 AT Commands Manual

compression mode by TA at the compression negotiation with


the remote TA after a call set up.
OK
Reference
V.25ter

Parameter

<p0> 0 NONE
<n> 0 Allow negotiation of <p0> down
1 Do not allow negotiation of <p0> - disconnect on difference
<p1> 512-4096 Dictionary size
<p2> 6-250 Maximum string size (Default value is 6)

NOTES

1. This command is only for data call.


2. GSM transmits the data transparently. The remote TA may support this compression.
3. This command must be used in conjunction with command AT+CRLP to enable compression
(AT+CRLP=X,X,X,X,1,X).

15.7. AT+DR V.42bis Data Compression Reporting Control

AT+DR V.42bis Data Compression Reporting Control


Test Command Response
AT+DR=? +DR: (list of supported <value>s)

OK
Read Command Response
AT+DR? +DR: <value>

OK
Write Command Response
AT+DR=[<value>] This parameter setting determines whether or not
intermediate result code of the current data compressing is
reported by TA to TE after a connection is established.
OK
Reference
V.25ter

M35_AT_Commands_Manual Confidential / Released 183 / 186


GSM/GPRS Module
M35 AT Commands Manual

Parameter

<value> 0 Reporting disabled

15.8. AT+QRIMODE Set RI Time

AT+QRIMODE Set RI Time


Test Command Response
AT+QRIMODE=? +QRIMODE: (list of supported <timemode>s)

OK
Read Command Response
AT+QRIMODE? +QRIMODE: <timemode>

OK
Write Command Response
AT+QRIMODE=<timemode> OK

If error is related to ME functionality:


+CME ERROR: <err>
Reference

Parameter

<timemode> Time mode


0 Receive SMS, RI 120ms low pulse, other URC RI 120ms low pulse
1 Receive SMS, RI 120ms low pulse, other URC RI 50ms low pulse
2 When a SMS is received, RI changes to LOW and holds low level for 120ms,
other URCs have no effect on RI.

M35_AT_Commands_Manual Confidential / Released 184 / 186


GSM/GPRS Module
M35 AT Commands Manual

16 Appendix A Reference

Table 3: Related Documents

SN Document name Remark

[1] V.25ter Serial asynchronous automatic dialling and control

Digital cellular telecommunications (Phase 2+); AT


[2] GSM 07.07
command set for GSM Mobile Equipment (ME)
Use of Data Terminal Equipment - Data Circuit
terminating Equipment (DTE- DCE) interface for Short
[3] GSM 07.05
Message Service (SMS) and Cell Broadcast Service
(CBS)

[4] GSM 07.10 Support GSM 07.10 multiplexing protocol

[5] GSM_TCPIP_Application_Note GSM TCPIP Application Note

[6] GPRS_Startup_ User_Guide GPRS Startup User Guide

[7] GSM_MUX_Application_Note MUX Application Note

[8] SMS_ Application_Note SMS Application Note

[9] M35_ Hardware_Design M35 Hardware Design

Table 4: Terms and Abbreviations

Abbreviation Description

AMR Adaptive Multi-Rate

ME Mobile Equipment

TA Terminal Adapter

MS Mobile Station

DCE Data Communication Equipment

M35_AT_Commands_Manual Confidential / Released 185 / 186


GSM/GPRS Module
M35 AT Commands Manual

TE Terminal Equipment

DTE Data Terminal Equipment

RTS/CTS Request To Send/Clear To Send

GPRS General Packet Radio Service

DCD Dynamic Content Delivery

DTR Data Terminal Ready

CSD Circuit Switch Data

PSC Primary Synchronization Code

PDP Packet Data Protocol

TCP Transmission Control Protocol

UDP User Datagram Protocol

M35_AT_Commands_Manual Confidential / Released 186 / 186

You might also like