KEMBAR78
Quectel Cellular Engine: GSM AT Commands Application Note | PDF | Personal Identification Number | General Packet Radio Service
0% found this document useful (0 votes)
455 views46 pages

Quectel Cellular Engine: GSM AT Commands Application Note

Quectel_GSM_ATC_Application_Note

Uploaded by

somx
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)
455 views46 pages

Quectel Cellular Engine: GSM AT Commands Application Note

Quectel_GSM_ATC_Application_Note

Uploaded by

somx
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/ 46

GSM

Quectel Cellular Engine

GSM AT Commands
Application Note
GSM_ATC_AN_V1.2
GSM AT Commands Application Note

Document Title GSM AT Commands Application Note

Version 1.2

Date 2015-05-08

Status Released

Document Control ID GSM_ATC_AN_V1.2

l
General Notes

e
Quectel offers this information as a service to its customers, to support application and

t
engineering efforts that use the products designed by Quectel. The information provided is

c l
based upon requirements specifically provided for Quectel by the customers. Quectel has not

a
undertaken any independent search for additional relevant information, including any

e i
information that may be in the customer’s possession. Furthermore, system validation of this

t
product designed by Quectel within a larger electronic system remains the responsibility of

u
the customer or the customer’s system integrator. All specifications supplied herein are

n
subject to change.

Q ide
Copyright
This document contains proprietary technical information which is the property of Quectel

f
Limited. The copying of this document, distribution to others, and communication of the
contents thereof, are forbidden without express authority. Offenders are liable to the payment

n
of damages. All rights are reserved in the event of grant of a patent or the registration of a
utility model or design. All specification supplied herein are subject to change without notice

o
at any time.

C
Copyright © Quectel Wireless Solutions Co., Ltd. 2015

GSM_ATC_AN_V1.2 -1-
GSM AT Commands Application Note

Contents

Contents ............................................................................................................................................ 2
Table index ........................................................................................................................................ 4
0. Revision history ............................................................................................................................ 5
1. Introduction ................................................................................................................................... 6
1.1. Reference............................................................................................................................. 6
2. Module power on/off .................................................................................................................... 7
2.1. Power on.............................................................................................................................. 7
2.2. Power off module with AT command .................................................................................. 7

l
3. UART communication and module initialization ......................................................................... 8

e
3.1. UART communication ........................................................................................................ 8

t
3.2. Recommended module’s initialization process ................................................................... 8

l
4. Query version and status information ......................................................................................... 10

c
4.1. Query version information ................................................................................................ 10

e ia
4.2. Display current configuration ............................................................................................ 10

t
4.3. Query IMEI ....................................................................................................................... 11

u
4.4. Query CCID ...................................................................................................................... 11

n
4.5. Query IMSI ....................................................................................................................... 11

Q ide
4.6. Restore factory settings / Save settings ............................................................................. 12
5. SIM card security settings ........................................................................................................... 13
5.1. PIN code setting in boot process ....................................................................................... 13
5.2. Change password for function lock ................................................................................... 14

f
6. Network querying and setting ..................................................................................................... 15

n
6.1. Network state information ................................................................................................. 15
6.2. URC to report status of network registration .................................................................... 16

o
6.3. Select the network bands ................................................................................................... 16
7. Call .............................................................................................................................................. 17

C
7.1. Make a call ........................................................................................................................ 17
7.2. Answer an incoming call ................................................................................................... 18
7.3. Auto answer ....................................................................................................................... 18
7.4. DTMF................................................................................................................................ 18
7.5. Call waiting ....................................................................................................................... 19
7.6. Call forwarding ................................................................................................................. 19
7.7. Call hold and multiparty .................................................................................................... 20
7.8. Query call state .................................................................................................................. 21
8. Audio setting ............................................................................................................................... 22
8.1. Swap the audio channels ................................................................................................... 22
8.2. Change ringer sound level when call incoming ................................................................ 22
8.3. Mute when call is progressing ........................................................................................... 22
8.4. Change volume when call is progressing .......................................................................... 23
8.5. Generate local DTMF tone ................................................................................................ 23
9. SMS............................................................................................................................................. 24

GSM_ATC_AN_V1.2 -2-
GSM AT Commands Application Note

9.1. SMS message storage ........................................................................................................ 24


9.2. Write SMS ......................................................................................................................... 25
9.3. Send SMS .......................................................................................................................... 25
9.4. Read SMS.......................................................................................................................... 26
9.5. Delete SMS ....................................................................................................................... 28
9.6. SMS settings...................................................................................................................... 28
9.7. Broadcast SMS .................................................................................................................. 29
10. Phonebook................................................................................................................................. 30
10.1. Phonebook settings .......................................................................................................... 30
10.2. Write phonebook entry .................................................................................................... 30
10.3. Read phonebook entry ..................................................................................................... 30

l
10.4. Delete phonebook entry .................................................................................................. 30
10.5. Find phonebook entry...................................................................................................... 31

e
10.6. Query/set subscriber number ........................................................................................... 31

t
10.7. Dial phonebook ............................................................................................................... 31

c l
11. GPRS......................................................................................................................................... 32

a
11.1. Activate GPRS context .................................................................................................... 32

e i
11.2. Deactivate GPRS context ................................................................................................ 33

u t
11.3. Dial-up internet................................................................................................................ 33

n
12. CSD ........................................................................................................................................... 34
12.1. Set up CSD connection ................................................................................................... 34

Q ide
13. TCPIP ........................................................................................................................................ 36
14. MUX ......................................................................................................................................... 37
15. HTTP......................................................................................................................................... 38

f
16. FTP ............................................................................................................................................ 39
17. MMS ......................................................................................................................................... 40

n
18. FAX........................................................................................................................................... 41

o
19. Alarm and others ....................................................................................................................... 42
19.1. Query/set clock ................................................................................................................ 42
19.2. Set alarm.......................................................................................................................... 42

C
19.3. Set phone functionality.................................................................................................... 43
19.4. Query parameters of network .......................................................................................... 43
19.5. Settting of power saving mode ........................................................................................ 44

GSM_ATC_AN_V1.2 -3-
GSM AT Commands Application Note

Table index

TABLE 1: REFERENCE .......................................................................................................................... 6


TABLE 2: RELATED AT COMMANDS ................................................................................................. 7
TABLE 3: VERSION AND STATUS RELATED AT COMMANDS .................................................... 10
TABLE 4: SIM CARD SECURITY SETTINGS RELATED AT COMMANDS ................................... 13
TABLE 5: NETWORK QUERYING AND SETTING AT COMMANDS ............................................ 15
TABLE 6: CALL AT COMMANDS ...................................................................................................... 17
TABLE 7: AUDIO SETTING AT COMMANDS .................................................................................. 22
TABLE 8: SMS AT COMMANDS ........................................................................................................ 24

l
TABLE 9: PHONEBOOK AT COMMANDS ........................................................................................ 30

e
TABLE 10: GPRS AT COMMANDS .................................................................................................... 32

t
TABLE 11: CSD AT COMMANDS ....................................................................................................... 34

l
TABLE 12: TCPIP AT COMMANDS .................................................................................................... 36

c
TABLE 13: MUX AT COMMANDS ..................................................................................................... 37

e ia
TABLE 14: HTTP AT COMMANDS ..................................................................................................... 38

t
TABLE 15: FTP AT COMMANDS ........................................................................................................ 39

u
TABLE 16: MMS AT COMMANDS ..................................................................................................... 40

n
TABLE 17: FAX AT COMMANDS ....................................................................................................... 41

Q ide
TABLE 18: ALARM AND OTHERS AT COMMANDS....................................................................... 42

n f
Co

GSM_ATC_AN_V1.2 -4-
GSM AT Commands Application Note

0. Revision history

Revision Date Author Description of change


1.00 2009-12-03 Jean HU Initial
1.1 2012-06-02 Serena SHEN Modified default value for AT+CSMP
1.2 2015-05-08 Jelly WANG Added applicable modules

t el
e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 -5-
GSM AT Commands Application Note

1. Introduction

This document presents the recommendatory operation process of AT commands and related
applications of Quectel’s modules.

This document is applicable to all Quectel GSM modules.

1.1. Reference

l
Table 1: Reference

t e
SN Document name Remark

c l
[1] Mxx_ATC.pdf AT Commands Set

a
[2] GSM_TCPIP_AN.pdf TCPIP Application Notes

e i
[3] GPRS_Startup_UGD.pdf GPRS Startup User Guide

u t
[4] GSM_MUX_AN.pdf Multiplexer Application Notes

n
[5] GSM_HTTP_ATC.pdf HTTP Service AT Commands
[6] GSM_FTP_ ATC..pdf FTP AT Commands

Q ide
[7] GSM_MMS_ ATC..pdf MMS AT Commands
[8] FAX_Setup_UGD.pdf Fax Setup User Guide

n f
Co

GSM_ATC_AN_V1.2 -6-
GSM AT Commands Application Note

2. Module power on/off

2.1. Power on

Following is the correct boot process for GSM module device. (Take M10 module and EVB
board as an example).
1) Install module on EVB board.
2) Connect antenna.
3) Insert SIM card.

l
4) Connect power adapter and serial cable.
5) Switch on power supply (5V-SW), and press down the PWRKEY on EVB board for more

e
than 2 seconds, the module will power on.

t
6) Please confirm the power indicator led D304 will light lasting, and the network indicator led

c l
D303 will twinkle normally (periodical blink).

e ia
Warning:

u t
S201 (D/L) on EVB board is the switch for downloading software, S203 (VCHG) is the switch

n
for charging. (They should always be in OFF state when module is working).

Q ide
2.2. Power off module with AT command

f
Table 2: Related AT commands

n
AT command Description

o
AT+QPOWD Power off the module

C
2.2.1. Normal powering off

AT+QPOWD=1 // 1 indicates powering off normally


NORMAL POWER DOWN // Module is powered off normally

2.2.2. Urgent powering off

AT+QPOWD=0 // 0 indicates powering off urgently


OK // Module is powered off urgently

GSM_ATC_AN_V1.2 -7-
GSM AT Commands Application Note

3. UART communication and module initialization

3.1. UART communication

For all GSM module firmware of Quectel, the default baud rate setting is autobauding enabled.

Following is the notes for autobauding.


1) It is necessary for UART communication to make sure TE is in sync with TA’s autobauding.
Keep inputting AT<CR><LF> or at<CR><LF> through UART, until the response OK is

l
returned, it indicates synchronization is successful.

e
2) If baud rate is set as autobauding, URCs in boot process will not be reported.

c t l
3) It is strongly recommended to set baud rate as customer’s common fixed baud rare. The

a
following is an example of setting fixed baud rate to 115200.

u e t i
AT+IPR=115200 // Set fixed baud rate to 115200

n
OK

Q ide
AT&W // Save the setting
OK

f
URCs in boot process will be reported in fixed baud rate setting as following:

o n
RDY

+CFUN: 1

C
+CPIN: READY // Unsolicited result information

Call Ready // Initialization is finished, and "Call Ready" is reported

3.2. Recommended module’s initialization process

1) UART communication (e.g. Hyper Terminal).


Open Hyper Terminal -> New Hyper Terminal -> Choose connect port -> Configure baud rate
setting for UART communication (should be consistent with module’s baud rate setting), and the
hardware flow control (hardware flow control is set as default in the module).

2) After module is powered on, input AT<CR><LF> or at<CR><LF> through UART, until

GSM_ATC_AN_V1.2 -8-
GSM AT Commands Application Note

OK is returned. Make sure the UART communication is fine.

3) It is recommended to make sure that the SIM card has registered to the network before doing
other operations. The following is the detail steps.

AT+CSQ // Query the signal strength of current network


+CSQ: 30,0 // Signal strength indication 30, channel bit error rate 0

OK

l
AT+CREG? // Query register state of GSM network
+CREG: 0,1 // <stat>=1 means GSM network is registered

t e
OK

AT+CGREG?

e c ia l // Query register state of GPRS network

u t
+CGREG: 0, 1 // <stat>=1 means GPRS network is registered

n
OK

AT+COPS?

Q ide // Query the currently selected operator

f
+COPS: 0,0,"CHINA MOBILE"

n
OK

Co

GSM_ATC_AN_V1.2 -9-
GSM AT Commands Application Note

4. Query version and status information

Table 3: Version and status related AT commands

AT command Description
ATI Query version information
AT&F Restore to factory settings
AT&W Save current settings
AT&V Display current settings
AT+GSN / AT+CGSN Query IMEI

l
AT+QCCID Query CCID

e
AT+CIMI Query IMSI

c t l
The following sections give some examples for related AT in details.

e ia
4.1. Query version information

u n t
ATI // Query version information

Q ide
Quectel_Ltd // Quectel made
Quectel_M10 // M10 GSM module
Revision:M10R04A01M32_SST // Firmware version: M10R04A01M32_SST

f
OK

o n
4.2. Display current configuration

C
AT&V // Query the current configuration
ACTIVE PROFILE

E: 0

Q: 0

V: 1
…. // Omit some configuration
+QECHO(NORMAL_AUDIO): 221,1024,16388,849,0

+QECHO(Earphone_AUDIO): 221,1024,0,849,1

+QECHO(LoudSpk_AUDIO): 224,1024,5128,374,2

GSM_ATC_AN_V1.2 - 10 -
GSM AT Commands Application Note

+QSIDET(NORMAL_AUDIO): 80

+QSIDET(HEADSET_AUDIO): 144

+QCLIP: 0

+CSNS: 0

OK // End of configuration output, "OK" is returned.

l
4.3. Query IMEI

t e
AT+GSN // Query IMEI

l
359231030000010 // IMEI is “359231030000010”

e c ia
OK

u n t
AT+CGSN // Query IMEI

Q ide
359231030000010

OK

n f
4.4. Query CCID

o
AT+QCCID // Query CCID
898600220909A0206023 // CCID is "898600220909A0206023"

C
OK

4.5. Query IMSI

AT+CIMI // Query IMSI


460023210226023 // IMSI is "460023210226023"

OK

GSM_ATC_AN_V1.2 - 11 -
GSM AT Commands Application Note

4.6. Restore factory settings / Save settings

AT&F // Restore factory settings


OK

AT&W // Save settings


OK

Note:
AT&F can restore the settings of AT commands to factory settings (excluding the settings of

l
+IPR ). AT&W can save the settings of AT commands. The effected AT commands can be listed

e
with AT&V.

c t a l
u e n t i
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 12 -
GSM AT Commands Application Note

5. SIM card security settings

Table 4: SIM card security settings related AT commands

AT command Description
AT+CLCK Lock function
AT+CPIN Query the status of PIN or enter PIN
AT+CPWD Change password

l
The following sections give the examples for related AT commands.

e
5.1. PIN code setting in boot process

c t l
AT+CLCK="SC",0,"1234" // <mode>=0 , cancel lock function for PIN code

a
OK

u e
AT+CLCK="SC",2
+CLCK: 0

n t i // <mode>=2 means to Query the state of PIN lock


// <mode>=0 means the state of PIN lock is off

Q ide
OK

f
AT+CLCK="SC",1,"1234" // <mode>=1 means Open lock function for PIN code

n
OK // Open PIN lock successfully

o
AT+CPIN? // Query the status of PIN

C
+CPIN: SIM PIN // Need to input PIN code

OK

AT+CPIN=1234 // Input PIN code "1234"


+CPIN: READY // PIN authentication is successful

OK

Warning:
PIN code cannot be mismatched for 3 times, otherwise it will enter PUK state.

+CPIN: SIM PIN

GSM_ATC_AN_V1.2 - 13 -
GSM AT Commands Application Note

AT+CPIN=1111 // Input wrong PIN code


+CME ERROR: 16

AT+CPIN=1111
+CME ERROR: 16

AT+CPIN=1111 // Input wrong PIN code for 3 times


+CPIN: SIM PUK // SIM card enter PUK state

l
+CME ERROR: 12

t e
AT+CPIN="26601934","1234" // Unlock PUK, "26601934" is PUK code, "1234" is

c l
new PIN code

a
+CPIN: READY

u e t i
OK

Q ide n
5.2. Change password for function lock

Example: Change PIN code

f
AT+CPWD="SC","1234","4321" // Change SIM card’s PIN code from "1234" to

n
"4321"
OK

Co

GSM_ATC_AN_V1.2 - 14 -
GSM AT Commands Application Note

6. Network querying and setting

Table 5: Network querying and setting AT Commands

AT command Description
AT+CSQ Signal quality report
AT+CREG GSM network registration status
AT+CGREG GPRS network registration status
AT+COPS Operator selection

l
AT+CPOL Preferred operator list
AT+COPN Read operator name

e
AT+QBAND Select the network bands

c t l
The following sections give the examples for related AT command.

e ia
6.1. Network state information

u n t
AT+CSQ // Query the signal strength of current network

Q ide
+CSQ: 30,0 // Signal strength indication is 30, channel bit error rate is 0

OK

n f
AT+CREG? // Query GSM network registration status
+CREG: 0,1 // <stat>=1 means GSM network is registered

o
OK

C
AT+CGREG? // Query GPRS network registration status
+CGREG: 0, 1 // <stat>=1 means GPRS network is registered

OK

AT+COPS? // Query the currently selected operator


+COPS: 0,0,"CHINA MOBILE"

OK

GSM_ATC_AN_V1.2 - 15 -
GSM AT Commands Application Note

6.2. URC to report status of network registration

AT+CREG=2 // <n>=2, enable URC to report GSM network registration


status

OK

AT+CGREG=2 // <n>=2, enable URC to report GPRS network registration


status
OK

t el
+CREG: 1,"1806","2012" // <n>=1, registered to GSM network

c l
+CGREG: 1, "1806", "2012" // <n>=1, registered to GPRS network

u e t ia
6.3. Select the network bands

Q ide n
AT+QBAND=? // Query network bands supported
+QBAND:(EGSM_MODE,DCS_MODE,PCS_MODE,EGSM_DCS_MODE,GSM850_PCS_
MODE,GSM850_EGSM_DCS_PCS_MODE)

f
OK

AT+QBAND?

o n // Query current selected band mode


+QBAND: "GSM850_EGSM_DCS_PCS_MODE"

C
OK

AT+QBAND="DCS_MODE" // Select the new band mode as "DCS_MODE"


OK

GSM_ATC_AN_V1.2 - 16 -
GSM AT Commands Application Note

7. Call

Table 6: Call AT commands

AT command Description
ATD Mobile originated call
ATDL Redial last number used
ATA Answer a call
ATH Disconnect existing connection
ATS0 Set number of rings before automatically answering the call

l
AT+COLP Connected line identification presentation

e
AT+CLIP Calling line identification presentation

t
AT+CCWA Call waiting control

c l
AT+CCFC Call forwarding number and conditions control

a
AT+CLCC List current calls of ME

e i
AT+CPAS Mobile equipment activity status

u t
AT+CEER Extended error report

n
AT+CHLD Call hold and multiparty
AT+VTS DTMF tone generation

Q ide
AT+CKPD Keypad control

The following sections give the examples for related AT commands in details.

n f
7.1. Make a call

o
7.1.1. Make a voice call

C
ATD10086; // Make a voice call
OK // "OK" is returned, operation succeeds

7.1.2. Set URC control of call connected

AT+COLP=1 // <n>=1, enable URC report when call connected success


OK

ATD10086; // Make a call


+COLP: "10086",129,"",0 // When call connected, URC is reported

OK

GSM_ATC_AN_V1.2 - 17 -
GSM AT Commands Application Note

7.2. Answer an incoming call

7.2.1. Answer an incoming call

RING // New incoming call, URC "RING" is reported

RING
ATA // Accept the incoming call
OK

l
7.2.2. Set URC control of incoming call

t e
AT+CLIP=1 // <n>=1, enable URC report when call is incoming

l
OK

c a
RING // There is an incoming call, "RING" is reported

u e t i
+CLIP: "13764920730",129,"",,"",0 // URC is reported

Q ide
7.3. Auto answer

ATS0=2
n // <n>=2, set auto answer function that after "RING" is reported

f
twice, call will be accepted automatically (default is 0)

n
OK

o
RING // An incoming call

C
RING // After "RING" is reported twice, call is accepted automatically

AT+CLCC
+CLCC: 1,1,0,0,0,"13764920730",129,"" // <stat>=0, the incoming call is active

OK

7.4. DTMF

DTMF is used for dialing extent number or some auto service system. After call is connected, it is
necessary to use DTMF to send number to network. Following is an example to dial the phone

GSM_ATC_AN_V1.2 - 18 -
GSM AT Commands Application Note

number 02151082965-816.

ATD02151082965; // Dial the phone number 02151082965


OK

AT+CLCC
+CLCC: 1,0,0,0,0," 02151082965",129,""

OK // The mobile originated call is active.

l
AT+VTS="8,1,6" // Dial the extent number 816 by sending DTMF.

e
OK

c t l
Note: After call is connected, need sending DTMF to dial extent phone number.

u e t ia
7.5. Call waiting

Q ide n
AT+CCWA=1,1 // Enable to display URC for an incoming waiting call
OK

f
ATD10086; // Make a voice call

n
OK
+CCWA: "02164011559",129,1

o
// If there is a new incoming call when the call is progressing,
URC of call waiting will be reported

OK
C
7.6. Call forwarding

AT+CCFC=2,3,"02151082965",129,,,,5
// <reads>=2, <mode>=3, set call forwarding when no reply (If no
reply in 5 seconds, call will be forwarded to 02151082965)

AT+CCFC=2,2 // <reads>=2,<mode>=2, query the state of call forwarding when


no reply
+CCFC: 1,1,"+862151082965",145,,,5

+CCFC: 1,16,"+862151082965",145,,,5
GSM_ATC_AN_V1.2 - 19 -
GSM AT Commands Application Note

OK

AT+CCFC=2,4 // <reads>=2,<mode>=4, delete all call forwarding when no


reply
OK

7.7. Call hold and multiparty

l
ATD10086; // Make the first voice call

e
OK

c t l
ATD10086; // Make the second voice call

e ia
OK

u n t
AT+CLCC // Query call state

Q ide
+CLCC: 1,0,1,0,0,"10086",129,""

+CLCC: 2,0,0,0,0,"10086",129,""

f
OK

o n
AT+CHLD=2 // <n>=2 means to place active call on hold and activate the other
OK call (waiting call or held call)

C
AT+CLCC // Query call state, make sure AT+CHLD is successful
+CLCC: 1,0,0,0,0,"10086",129,""

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

OK

AT+CHLD=3 //<n>=3 means to add the held call to the active calls
OK

AT+CLCC // Query call state, make sure AT+CHLD is successful

GSM_ATC_AN_V1.2 - 20 -
GSM AT Commands Application Note

+CLCC: 1,0,0,0,1,"10086",129,""

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

OK

7.8. Query call state

AT+CPAS // Query state of ME


+CPAS: 0 // <pas>=0 indicates ME is in idle state

el
OK

c t l
ATD10086; // Make voice call

e ia
OK

u n t
AT+CLCC // Query call state

Q ide
+CLCC: 1,0,0,0,0,"10086",129,""

OK

n f
AT+CPAS // Query state of ME
+CPAS: 4 // <pas>=4 indicates ME is progressing a call

o
OK

C
GSM_ATC_AN_V1.2 - 21 -
GSM AT Commands Application Note

8. Audio setting

Table 7: Audio setting AT commands

AT command Description
AT+QADUCH Swap the audio channels
AT+CLVL Loud speaker volume level
AT+CRSL Ringer sound levels
AT+CALM Alert sound mode
AT+CMUT Mute control

l
AT+QMIC Change the microphone gain level

e
AT+QLDTMF Generate local DTMF tone

c t l
About the detail settings of audio ECHO, Gain etc, please refer to document GSM Module Audio

a
Design User Guide.pdf.

e t i
The following sections give the examples for related AT commands in details.

u n
8.1. Swap the audio channels

Q ide
AT+QAUDCH=1 // Swap the audio channels, <n>=1 indicates
switching to auxiliary channel (headset channel)

f
OK

o n
8.2. Change ringer sound level when call incoming

C
RING // New incoming call, RING indication

RING
AT+CRSL=100 // Change ringer sound level to 100
OK

AT+CALM=1 // <n>=1 start alert mute function


OK

8.3. Mute when call is progressing

AT+CLCC

GSM_ATC_AN_V1.2 - 22 -
GSM AT Commands Application Note

+CLCC: 1,0,0,0,0,"15021012496",129,"" // Call is progressing

OK
AT+CMUT=1 // <n>=1 mute the call, now the peer cannot hear
the sound from the module
OK

8.4. Change volume when call is progressing

AT+CLCC

l
+CLCC: 1,0,0,0,0,"15021012496",129,"" // Call is progressing

t e
OK

e c ia l
AT+CLVL=80 // Set volume to 80

t
OK

u
Q ide n
8.5. Generate local DTMF tone

AT+QLDTMF=100,"3" // Generate local DTMF tone. <n>=100 indicates DTMF

f
tone will play for 10 seconds, "3" is the content to play.
OK

o n
AT+QLDTMF // Stop playing DTMF tone
OK

C
GSM_ATC_AN_V1.2 - 23 -
GSM AT Commands Application Note

9. SMS

Table 8: SMS AT commands

AT command Description
AT+CPMS Preferred SMS message storage
AT+CSMP Set SMS text mode parameters
AT+CMGF Select SMS message format
AT+CSCS Select TE character set
AT+CMGW Write SMS message to memory

l
AT+CMGR Read SMS message

e
AT+CMGL List SMS messages from preferred store

t
AT+CMGS Send SMS message

c l
AT+CMGD Delete SMS message

a
AT+QMGDA Delete all SMS

e i
AT+CSDH Show SMS text mode parameters

u t
AT+CSCA SMS service center address

n
AT+CNMI New SMS message indications
AT+CSAS Save SMS settings

Q ide
AT+CRES Restore SMS settings
AT+CSCB Select cell broadcast SMS messages

f
The following sections give some examples for SMS AT commands in details.

n
9.1. SMS message storage

o
AT+CPMS=? // Query supported SMS storage

C
+CPMS: ("SM", "ME", "MT"), ("SM", "ME", "MT"), ("SM", "ME", "MT")

OK // "SM" indicates that SMS is stored in SIM card storage, "ME" indicates
module storage, and "MT" indicates SIM card storage and module
storage (SIM card storage is preferred)

AT+CPMS? // Query the setting of SMS storage


+CPMS: "SM",8,30,"SM",8,30,"SM",8,30

OK // <mem1>="SM" indicates to read and delete SMS from SIM card


storage, <used1>=8 indicates there are 8 SMS to be read and
deleted,<total1>=30 indicates the SMS capacity of SIM card is 30

GSM_ATC_AN_V1.2 - 24 -
GSM AT Commands Application Note

9.2. Write SMS

9.2.1. Write SMS in text mode

AT+CMGF=1 // <mode>=1 ,set text mode


OK

AT+CSCS="GSM" // <chset>="GSM" , set character set to "GSM"


OK

el
AT+CMGW // Write SMS

t
> Hello, Quectel! // Input the content of SMS, "Hello, Quectel!", use

c l
<Ctrl+Z>/Esc to write SMS or exit.
+CMGW: 18 // Written SMS is stored in the storage and the index is 18

e t ia
OK

u
Q ide n
9.2.2. Write SMS in PDU mode

AT+CMGF=0
OK
// <mode>=0, set PDU mode

n f
AT+CMGW=43 // Write SMS (PDU code)

o
>0011000D91683118876788F30018011C00480065006C006C006F002C0051007500650063007
40065006C0021 // Input the content of SMS: "Hello, Quectel!"

C
+CMGW: 2 // Written SMS is stored in the storage and the index is 2

OK

9.3. Send SMS

9.3.1. Send SMS in text mode

AT+CMGF=1 // <mode>=1 , set text mode


OK

AT+CSCS="GSM" // <chset>="GSM", set character set to "GSM"


OK

GSM_ATC_AN_V1.2 - 25 -
GSM AT Commands Application Note

AT+CMGS="15021012496" // Send text SMS


> Hello,Quectel! // Input the content of SMS
+CMGS: 26

OK

9.3.2. Send SMS in PDU mode

AT+CMGF=0 // <mode>=0, set PDU mode

l
OK

t e l
AT+CMGS=43 // Send PDU SMS

c
>0011000D91685120012194F60008011C00480065006C006C006F002C0051007500650063007

e ia
40065006C0021 //The destination number is 8615021012496, the content

t
of SMS is "Hello,Quectel!"

u
+CMGS: 254

Q ide n
OK

f
9.4. Read SMS

n
9.4.1. Read saved SMS

o
AT+CMGF=1 // <mode>=1 , set text mode
OK

OK

AT+CMGW
C
AT+CSCS="GSM"

> Hello,Quectel!
// <chset>="GSM", set character set to "GSM"

// Write SMS
// Input message
+CMGW: 3 // The index of written SMS in the storage is 3

OK

AT+CMGR=3 // Read the SMS whose index in the storage is 3

GSM_ATC_AN_V1.2 - 26 -
GSM AT Commands Application Note

+CMGR: "STO UNSENT","",""


Hello,Quectel!

OK

9.4.2. Read new arrived SMS

+CMTI: "SM",4 // New SMS arrived, the index of the new SMS in SIM card storage is 4

AT+CMGR=4 // Read the SMS whose index in the storage is 4

l
+CMGR: "REC UNREAD","+8615021012496","","2009/10/15 16:32:51+32"

e
Hello,Quectel!

t l
OK // Then number of the sender is +8615021012496

e c t ia
9.4.3. Read all SMS in specified type

u n
AT+CMGL="REC READ" // "REC READ" means to read all read SMS. In PDU
mode, please use 1 to replace "REC READ" to read all read

Q ide
SMS.
+CMGL: 4,"REC READ","+8615021012496","","2009/10/15 11:10:56+32"
Hello,Quectel!

f
OK

o n
AT+CMGL="ALL" // "ALL" means to read all SMS. In PDU mode, please replace
"ALL" with 4 to read all SMS.

C
+CMGL: 1,"STO UNSENT","","",
Hello,Quectel!

+CMGL: 2,"REC READ","+8615021012496","","2009/11/23 19:48:44+32"


Hello,Quectel!

+CMGL: 3,"REC UNREAD","+8615021012496","","2009/11/23 19:49:03+32"


Hello,Quectel!

OK

GSM_ATC_AN_V1.2 - 27 -
GSM AT Commands Application Note

9.5. Delete SMS

9.5.1. Delete specified SMS

AT+CMGD=1 // Delete the SMS whose index in the storage is 1


OK

9.5.2. Delete all SMS in specified type

AT+QMGDA="DEL ALL" // Delete all SMS. In PDU mode, please use 6 to replace

l
"DEL ALL " to read all read SMS.
OK

c
9.6. SMS settings

t e l
u e t ia
9.6.1. Query and set the number of SMS center

n
AT+CSCA? // Query the number of SMS center

Q ide
+CSCA: "+8613800210500",145 // The number of SMS center is "+8613800210500"

OK

n f
AT+CSCA="+8613800210500" // Set the number of SMS center as “+8613800210500”
OK

o
Note:

C
It is strongly recommended not to change the number of SMS center in normal use, in case it
may cause sending SMS to be failed with the SIM card.

9.6.2. SMS report setting

AT+CSMP=49,167,0,0 // SMS status report is supported under text mode if the first
parameter <fo> is set to 49.
OK

AT+CNMI=2,1,0,1,0 // Set <ds>=1, SMS notification will be reported


OK

GSM_ATC_AN_V1.2 - 28 -
GSM AT Commands Application Note

AT+CMGS="15021012496" // Send SMS


> Hello,Quectel!
+CMGS: 25

OK

+CDS: 6,25,"15021012496",129,"2009/10/15 17:04:11+32","2009/10/15 17:04:12+32",


// Receive SMS report

9.7. Broadcast SMS

el
AT+CSCB=0,"50","1" // Select specified broadcast SMS

t
OK

e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 29 -
GSM AT Commands Application Note

10. Phonebook

Table 9: Phonebook AT commands

AT command Description
AT+CPBS Select phonebook storage
AT+CPBW Write phonebook entry
AT+CPBR Read current phonebook entries
AT+CPBF Find phonebook entries
AT+CNUM Subscriber number

el
The following sections give some examples for Phonebook AT commands in details.

c t l
10.1. Phonebook settings

e ia
AT+CPBS="SM" // Set storage type of phonebook to "SM"

u t
OK // It means to operate the phonebook in SIM card

Q ide n
AT+CSCS="GSM" // Set character set to “GSM”
OK

n f
10.2. Write phonebook entry

o
AT+CPBW=1,"15021012496",129,"Quectel" // Write phone entry whose index is 1
OK

C
10.3. Read phonebook entry

AT+CPBR=1 // Read phonebook entry whose index is 1


+CPBR: 1,"15021012496",129,"Quectel"

OK

10.4. Delete phonebook entry

AT+CPBW=1 // Delete phonebook entry whose index is 1


OK

GSM_ATC_AN_V1.2 - 30 -
GSM AT Commands Application Note

10.5. Find phonebook entry

AT+CPBF="Quectel" // Find all entries whose names containing "Quectel" in current


phonebook
+CPBF: 1,"15021012496",129,"Quectel"

OK

10.6. Query/set subscriber number

l
AT+CPBS="ON" // Select phonebook of "ON" type

e
OK

c t a l
AT+CPBW=1,"13761832100",129,"Own number1"

e i
OK // Write subscriber number 1

u n t
AT+CPBW=2,"15021012496",129,"Own number2"

Q ide
OK // Write subscriber number 2

f
AT+CNUM // Query subscriber number
+CNUM: "Own number1","13761832100",129,7,4

o n
+CNUM: "Own number2","15021012496",129,7,4

OK

ATD>1;
OK
C
10.7. Dial phonebook

Dial phonebook with ATD command as following:


// Dial the number whose index is 1 in current phonebook

GSM_ATC_AN_V1.2 - 31 -
GSM AT Commands Application Note

11. GPRS

Table 10: GPRS AT commands

AT command Description
AT+CGATT Attach to/detach from GPRS service
AT+CGDCONT Define PDP context
AT+CGACT Activate or deactivate PDP context
AT+CGQMIN Quality of service profile (minimum acceptable)
AT+CGQREQ Quality of service profile (requested)

l
AT+CGDATA Enter data state

e
AT+CGPADDR Show PDP address

t
AT+CGCLASS GPRS mobile station class

c l
AT+CGEREP Control GPRS unsolicited GPRS event reporting

a
AT+CGREG GPRS network registration status

e i
AT+CGSMS Select service for MO SMS messages

u n t
Following sections are examples for GPRS AT commands in details.

Q ide
11.1. Activate GPRS context

AT+CGATT? // Query whether GPRS network is attached or not

f
+CGATT: 1 // <state>=1 indicates GPRS is attached

n
OK

Co
AT+CGDCONT=1,"IP","CMNET" // Define the content of the PDP context 1
OK

AT+CGACT=1,1 // Activate GPRS context 1


OK

AT+CGPADDR =1 // Query PDP address of context 1


+CGPADDR: 1,"10.78.195.244" // PDP address of context 1 is "10.78.195.244"

OK

GSM_ATC_AN_V1.2 - 32 -
GSM AT Commands Application Note

11.2. Deactivate GPRS context

AT+CGACT=0,1 // Deactivate GPRS context 1


NO CARRIER // Deactivate successfully

11.3. Dial-up internet

Detail steps and applications, please refer to: GPRS_Startup_UGD.pdf.

t el
e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 33 -
GSM AT Commands Application Note

12. CSD

Table 11: CSD AT commands

AT command Description
ATD Mobile originated call to dial a number
AT+CSNS Single numbering scheme
+++ Switch from data mode to command mode
ATO Switch from command mode to data mode

l
The following sections give some examples for CSD AT commands in details.

t e
12.1. Set up CSD connection

c a l
Here is an example that module A make a CSD call to module B. After connection is set up,

e i
module A hang up the call.

u n t
Module A:
ATD15052251387 // StepA1: Make a CSD Call

Q ide
CONNECT 9600 // Response for StepB1: CSD connection is set up
QUECTEL TEST001 // StepA2: Send data to module B, the data is "QUECTEL
TEST002"

f
Response for StepB2: Receive data from module B "QUECTEL
TEST001"

n
OK // StepA3: Input +++, switch from data mode to command mode

Co
ATO // StepA4: Input ATO, enter data mode
CONNECT 9600
QUECTEL TEST003 // Response for StepB3: Receive data from module B "QUECTEL
TEST003"
OK // StepA5: Input +++, switch from data mode to command mode

ATH // StepA6: Hang up CSD connection


OK

Module B:
AT+CSNS=4 // Set data transfer mode for CSD
OK

GSM_ATC_AN_V1.2 - 34 -
GSM AT Commands Application Note

RING // Response for StepA1: New incoming CSD call


ATA // StepB1: Answer CSD call
CONNECT 9600 // Response for StepB1: CSD connection is set up
QUECTEL TEST002 // Response for StepA2: Receive data from module A "QUECTEL
TEST002"
StepB2: Send data to module B "QUECTEL TEST001"
StepB3: Send data to module B "QUECTEL TEST003"
NO CARRIER // Response for StepA6: Hang up CSD connection

Note:
M95, M66, M72, GC10, M10 and M85 module do not support to set up CSD.

t el
e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 35 -
GSM AT Commands Application Note

13. TCPIP

Table 12: TCPIP AT commands

AT command Description
AT+QIFGCNT Select a context as foreground context
AT+QIMODE Set TCPIP transferring mode
AT+QIMUX Control whether to display local IP address
AT+QISACK Query the data information for sending
AT+QISERVER Configure as a server

l
AT+QIOPEN Start up TCP or UDP connection

e
AT+QICLOSE Close TCP or UDP connection

t
AT+QISTAT Query current connection status

c l
AT+QIDEACT Deactivate GPRS/CSD PDP context

a
AT+QISEND Send data through TCP or UDP connection

e i
AT+QIREGAPP Start TCPIP task and set APN, user name, password

u t
AT+QIACT Bring up wireless connection with GPRS or CSD

n
AT+QILOCIP Get local IP address
AT+QILPORT Set local port

Q ide
AT+QIDNSCFG Configure domain name server
AT+QIDNSGIP Query the IP address of given domain name
AT+QIDNSIP Connect with IP address or domain name server

f
AT+QIHEAD Add an IP header when receiving data
AT+QISHOWRA Set whether to display the address of sender

n
AT+QIAUTOS Set auto sending timer

o
AT+QIPROMPT Set prompt of ‘>’ when sending data
AT+QICSGP Select CSD or GPRS as the bearer

C
AT+QISRVC Choose connection
AT+QISCON Save TCPIP application context
AT+QITCFG Configure transparent transferring mode
AT+QISHOWPT Control whether to show the protocol type
AT+QISHOWLA Control whether to display local IP address

About detailed steps and information, please refer to document: GSM_TCPIP_AN.pdf.

GSM_ATC_AN_V1.2 - 36 -
GSM AT Commands Application Note

14. MUX

Table 13: MUX AT commands

AT command Description
AT+CMUX Set MUX mode

About detail steps and information, please refer to document GSM_MUX_AN.pdf.

t el
e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 37 -
GSM AT Commands Application Note

15. HTTP

Table 14: HTTP AT commands

AT command Description
AT+QHTTPURL Set HTTP server URL
AT+QHTTPGET Send HTTP GET request
AT+QHTTPREAD Read HTTP server response
AT+QHTTPPOST Send HTTP POST request

l
About detailed steps and information, please refer to document GSM_HTTP_ATC.pdf.

c t e l
u e t ia
Q ide n
n f
Co

GSM_ATC_AN_V1.2 - 38 -
GSM AT Commands Application Note

16. FTP

Table 15: FTP AT commands

AT command Description
AT+QFTPOPEN Open an FTP service to the given FTP server
AT+QFTPCLOSE Close the FTP service
AT+QFTPPUT Upload a file to the FTP server
AT+QFTPGET Download a file from the FTP server
AT+QFTPPATH Set the path in the FTP server to upload or download file

l
AT+QFTPUSER Set the user name of the account to open FTP service

e
AT+QFTPPASS Set the password of the account to open FTP service

t
AT+QFTPCFG Set some configurable parameters for the FTP service

c l
AT+QFTPSTAT Query status of FTP service

e ia
About detailed steps and information, please refer to document GSM_FTP_ATC.pdf.

u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 39 -
GSM AT Commands Application Note

17. MMS

Table 16: MMS AT commands

AT command Description
AT+QMMURL Set the URL of the MMSC
AT+QMMPROXY Set the MMS proxy
AT+QMMCFG Set the parameter for sending MMS
AT+QFLDS Get UFS information
AT+QFUPL List UFS files

l
AT+QFDEL Upload file to UFS

e
AT+QMMSCS Download file from UFS

t
AT+QMMSW Delete file in UFS

c l
AT+QMMSEND Set character sets and input mode

a
AT+QMMRM Write MMS

e i
AT+QMMRR Send MMS

u t
AT+QMMRECV Manage the received MMS

n
AT+QMMPRI Read a received MMS

Q ide
About detailed steps and information, please refer to document GSM_MMS_ATC.pdf.

n f
Co

GSM_ATC_AN_V1.2 - 40 -
GSM AT Commands Application Note

18. FAX

Table 17: FAX AT commands

AT command Description
AT+FCLASS Set FAX mode
AT+CSNS Set data transferring mode

About detailed steps and information, please refer to document FAX Setup.pdf.

t el
e c ia l
u n t
Q ide
n f
Co

GSM_ATC_AN_V1.2 - 41 -
GSM AT Commands Application Note

19. Alarm and others

Table 18: Alarm and others AT commands

AT command Description
AT+QALARM Set alarm
AT+CCLK Set clock
AT+CFUN Set phone functionality
AT+QENG Report cell description in engineer mode
ATV TA response format

l
ATE Set command echo mode

e
A/ Re-issue last AT command given

t
AT+CMEE Report mobile equipment error

c a l
The following sections give some examples for the related AT commands in details.

u e t i
19.1. Query/set clock

Q ide n
AT+CCLK? // Query current clock
+CCLK: "08/01/01,06:06:24+00"

OK

n f
AT+CCLK="09/09/09,12:00:00+00" // Set clock

o
OK

C
19.2. Set alarm

Example 1: Normal alarm


AT+CCLK? // Query current clock
+CCLK: "08/01/02,00:04:29+00"

OK

AT+QALARM=1, "08/01/02,00:06:00+00",0,0 // <power>=0, set as normal alarm


OK

ALARM RING // Alarm expires

GSM_ATC_AN_V1.2 - 42 -
GSM AT Commands Application Note

Example 2: Boot alarm


AT+QALARM=1, "08/01/02,00:06:00+00",0,2 // Set boot alarm, <power>=2 indicates
boot alarm
OK

AT+QPOWD=1 // Power off with AT command (can also power


off with power key)
NORMAL POWER DOWN

l
RDY // Alarm expires, system will auto boot and enter
ALARM MODE Alarm mode

t e
+CFUN: 0

c a l
NORMAL POWER DOWN // System will auto power off after entering

e i
alarm mode for 90 seconds

u n t
19.3. Set phone functionality

Q ide
AT+CFUN=1 // Set phone functionality as full function
OK

n f
19.4. Query parameters of network

o
AT+QENG=1 // <mode>=1, start monitoring parameters of network,

C
no unsolicited information reported
OK

AT+QENG? // Query service cell description etc.


+QENG: 1,0

+QENG: 0,460,00,1806,2602,64,46,-54,189,189,5,8,x,x,x,x,x,x,x

OK

AT+QENG=2 // <mode>=2, start monitoring parameters of network, and


cell description will be reported as unsolicited information
OK
GSM_ATC_AN_V1.2 - 43 -
GSM AT Commands Application Note

+QENG: 0,460,00,1806,2602,64,46,-54,190,190,5,8,x,x,x,x,x,x,x
// URC reported

AT+QENG=0 // <mode>=0, stop monitoring parameters of network,


OK

19.5. Settting of power saving mode

l
AT+QSCLK? // Query the setting of power saving mode. (Power saving

e
is disabled as default)

t
+QSCLK: 0

e c ia l
OK

u n t
AT+QSCLK=1 // <n>=1 , allow to enter power saving mode

Q ide
OK

AT+QSCLK=0 // <n>=0 , forbid to enter power saving mode

f
OK

o n
C
GSM_ATC_AN_V1.2 - 44 -
Shanghai Quectel Wireless Solutions Co., Ltd.
Room 501, Building 13, No.99, Tianzhou Road, Shanghai, China 200233
Tel: +86 21 5108 6236
Mail: info@quectel.com

You might also like