GSM Atc An V1.00
GSM Atc An V1.00
GSM Atc An V1.00
GSM AT Commands
Application Notes
GSM_ATC_AN_V1.00
GSM AT Commands Application Notes
Version 1.00
Date 2009-12-15
Status Release
General Notes
l
Quectel offers this information as a service to its customers, to support application and
engineering efforts that use the products designed by Quectel. The information provided is
e
based upon requirements specifically provided for Quectel by the customers. Quectel has not
t l
undertaken any independent search for additional relevant information, including any
c a
information that may be in the customer’s possession. Furthermore, system validation of this
i
product designed by Quectel within a larger electronic system remains the responsibility of
e t
the customer or the customer’s system integrator. All specifications supplied herein are
subject to change.
u
Q fide n
Copyright
This document contains proprietary technical information which is the property of Quectel
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
of damages. All rights are reserved in the event of grant of a patent or the registration of a
n
utility model or design. All specification supplied herein are subject to change without notice
at any time.
o
Copyright © Quectel Wireless Solutions Co., Ltd. 2009
C
GSM_ATC_AN_V1.00 -1-
GSM AT Commands Application Notes
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
l
2.2. Power off module with AT command..................................................................................7
3. UART communication and module initialization .........................................................................8
e
3.1. UART communication ........................................................................................................8
t l
3.2. Recommended module’s initialization process ...................................................................8
c
4. Query version and status information .........................................................................................10
i a
4.1. Query version information ................................................................................................10
e t
4.2. Display current configuration............................................................................................10
4.3. Query IMEI ....................................................................................................................... 11
u n
4.4. Query CCID ...................................................................................................................... 11
4.5. Query IMSI ....................................................................................................................... 11
Q fide
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
6. Network querying and setting .....................................................................................................15
n
6.1. Network state information.................................................................................................15
o
6.2. URC to report status of network registration ....................................................................16
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 settings .............................................................................................................................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...........................................................................................23
8.4. Change volume when call is progressing ..........................................................................23
8.5. Generate local DTMF tone................................................................................................23
9. SMS.............................................................................................................................................24
GSM_ATC_AN_V1.00 -2-
GSM AT Commands Application Notes
l
10.4. Delete phonebook entry ..................................................................................................30
10.5. Find phonebook entry......................................................................................................31
t e
10.6. Query/set subscriber number...........................................................................................31
l
10.7. Dial phonebook ...............................................................................................................31
c a
11. GPRS.........................................................................................................................................32
i
11.1. Activate GPRS context ....................................................................................................32
e t
11.2. Deactivate GPRS context ................................................................................................33
u
11.3. Dial-up internet................................................................................................................33
n
12. CSD...........................................................................................................................................34
Q fide
12.1. Set up CSD connection ...................................................................................................34
13. TCPIP........................................................................................................................................36
14. MUX .........................................................................................................................................37
15. HTTP.........................................................................................................................................38
16. FTP............................................................................................................................................39
n
17. MMS .........................................................................................................................................40
18. FAX...........................................................................................................................................41
o
19. Alarm and others.......................................................................................................................42
19.1. Query/set clock................................................................................................................42
C
19.2. Set alarm..........................................................................................................................42
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.00 -3-
GSM AT Commands Application Notes
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 RELATED AT COMMAND............................15
TABLE 6: CALL RELATED AT COMMANDS....................................................................................17
TABLE 7: AUDIO SETTINGS RELATED AT COMMAND................................................................22
l
TABLE 8: SMS RELATED AT COMMANDS......................................................................................24
TABLE 9: PHONEBOOK RELATED AT COMMANDS .....................................................................30
e
TABLE 10: GPRS RELATED AT COMMANDS..................................................................................32
t l
TABLE 11: CSD RELATED AT COMMANDS ....................................................................................34
c
TABLE 12: TCPIP RELATED AT COMMANDS .................................................................................36
i a
TABLE 13: MUX RELATED AT COMMANDS...................................................................................37
e t
TABLE 14: HTTP RELATED AT COMMANDS ..................................................................................38
TABLE 15: FTP RELATED AT COMMANDS .....................................................................................39
u n
TABLE 16: MMS RELATED AT COMMANDS...................................................................................40
TABLE 17: FAX RELATED AT COMMANDS ....................................................................................41
Q fide
TABLE 18: ALARM AND OTHERS RELATED AT COMMANDS....................................................42
o n
C
GSM_ATC_AN_V1.00 -4-
GSM AT Commands Application Notes
0. Revision history
t e l l
e c t i a
u
Q fide n
o n
C
GSM_ATC_AN_V1.00 -5-
GSM AT Commands Application Notes
1. Introduction
This document presents the recommendatory operation process of AT commands and related
applications of Quectel’s modules.
1.1. Reference
l
Table 1: Reference
e
SN Document name Remark
t l
[1] Mxx_ATC AT Commands Set
c a
[2] GSM_TCPIP_AN TCPIP Application Notes
i
[3] GPRS_Startup_UGD GPRS Startup User Guide
e t
[4] GSM_MUX_AN Multiplexer Application Notes
u n
[5] GSM_HTTP_ATC HTTP Service AT Commands
[6] GSM_FTP_ ATC FTP AT Commands
Q fide
[7] GSM_MMS_ ATC MMS AT Commands
[8] FAX_Setup Fax Setup User Guide
o n
C
GSM_ATC_AN_V1.00 -6-
GSM AT Commands Application Notes
2.1. Power on
The following is a process to turn on GSM module, taking M10 module and its EVB board as an
example).
1) Install module on EVB board.
2) Connect antenna.
l
3) Insert SIM card.
e
4) Connect power adapter and serial cable.
t l
5) Switch on power supply (5V-SW), and press down PWRKEY button on EVB board for more
than 2 seconds, the module will power on.
c a
6) Please confirm the power indicator LED D304 will light, and the network indicator LED
i
D303 will blink periodically.
u e n t
Warning:
S201 (D/L) on EVB board is the switch for download software, S203 (VCHG) is the switch
Q fide
for charging. (They should always be set to OFF state when module is in working status).
n
Table 2: Related AT commands
o
AT command description
AT+QPOWD Power off the module
2.2.1.
C
Normal powering off
AT+QPOWD=1
NORMAL POWER DOWN
GSM_ATC_AN_V1.00 -7-
GSM AT Commands Application Notes
For all GSM module firmware of Quectel, the default baud rate setting is autobauding enabled.
l
autobauding. Keep inputting AT<CR><LF> or at<CR><LF> through UART, until the
e
response OK is returned, it indicates synchronization is successful.
t l
2) If baud rate is set as autobauding, URCs in boot process will not be reported.
c i a
3) It is strongly recommended to set baud rate as customer’s common fixed baud rate. The
e t
following is an example of setting fixed baud rate to 115200:
u n
AT+IPR=115200 // Set fixed baud rate to 115200
OK
Q fide
AT&W // Save the setting
OK
n
When fixed baud rate is set, URCs in boot process will be reported as following:
RDY
o
+CFUN: 1
C
+CPIN: READY // Unsolicited result information
2) After module is powered on, input AT<CR><LF> or at<CR><LF> through UART, until
OK is returned. Make sure the UART communication is fine.
GSM_ATC_AN_V1.00 -8-
GSM AT Commands Application Notes
3) It is recommended to make sure that the SIM card has been registered to network before
doing other operations. The following is the detailed steps.
OK
l
+CREG: 0,1 // <stat>=1 means GSM network is registered
t e
OK
AT+CGREG?
t
+CGREG: 0, 1 // <stat>=1 means GPRS network is registered
u n
OK
Q fide
AT+COPS? // Query the currently selected operator
+COPS: 0,0,"CHINA MOBILE"
n
OK
C o
GSM_ATC_AN_V1.00 -9-
GSM AT Commands Application Notes
AT command Description
ATI Query version information
AT&F Restore to factory default settings
AT&W Save current settings
l
AT&V Display current settings
AT+GSN / AT+CGSN Query IMEI
e
AT+QCCID Query CCID
t l
AT+CIMI Query IMSI
c i a
The following sections give some examples for related AT command operations and applications.
u e n t
4.1. Query version information
Q fide
ATI // Query version information
Quectel_Ltd // Quectel made
Quectel_M10 // M10 GSM module
Revision:M10R04A01M32_SST // Firmware version: M10R04A01M32_SST
n
OK
o
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.00 - 10 -
GSM AT Commands Application Notes
+QSIDET(NORMAL_AUDIO): 80
+QSIDET(HEADSET_AUDIO): 144
+QCLIP: 0
+CSNS: 0
e l
4.3. Query IMEI
t l
AT+GSN // Query IMEI
c a
359231030000010 // IMEI is “359231030000010”
e t i
OK
u
Q fide n
AT+CGSN // Query IMEI
359231030000010
OK
o n
4.4. Query CCID
C
AT+QCCID // Query CCID
898600220909A0206023 // CCID is "898600220909A0206023"
OK
OK
GSM_ATC_AN_V1.00 - 11 -
GSM AT Commands Application Notes
Note:
l
AT&F can restore the settings of AT commands to factory settings (exclude the settings of +IPR ).
AT&W can save the settings of AT commands.
e
Those affected AT commands can be listed with AT&V.
ct i a l
u e n t
Q fide
o n
C
GSM_ATC_AN_V1.00 - 12 -
GSM AT Commands Application Notes
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 command operations and applications.
t e l
5.1. PIN code setting in boot process
e c i a
AT+CLCK="SC",0,"1234" // <mode>=0 , cancel lock function of PIN code
t
OK
u
Q fide n
AT+CLCK="SC",2 // <mode>=2 means Query state of PIN lock
+CLCK: 0 // <mode>=0 means the state of PIN lock is off
OK
n
AT+CLCK="SC",1,"1234" // <mode>=1 means Open lock function of PIN code
o
OK // Open PIN lock successfully
C
AT+CPIN? // Query the status of PIN
+CPIN: SIM PIN // Need to input PIN code
OK
OK
Warning:
PIN code can’t be mismatched for 3 times, otherwise it will enter PUK state.
+CPIN: SIM PIN
GSM_ATC_AN_V1.00 - 13 -
GSM AT Commands Application Notes
AT+CPIN=1111
+CME ERROR: 16
l
+CME ERROR: 12
t e l
AT+CPIN="26601934","1234" // Unlock PUK, "26601934" is PUK code, "1234" is
c a
new PIN code
i
+CPIN: READY
u e t
OK
Q fide n
5.2. Change password for function lock
n
"4321"
o
OK
C
GSM_ATC_AN_V1.00 - 14 -
GSM AT Commands Application Notes
AT command Description
AT+CSQ Signal quality report
AT+CREG GSM network registration status
AT+CGREG GPRS network registration status
l
AT+COPS Operator selection
AT+CPOL Preferred operator list
e
AT+COPN Read operator name
t l
AT+QBAND Select the network bands
c i a
The following sections give the examples for related AT command operations and applications.
u e n t
6.1. Network state information
Q fide
AT+CSQ // Query RF signal strength of current network
+CSQ: 30,0 // RF signal strength indication 30, channel bit error rate 0
OK
n
AT+CREG? // Query register state of GSM network
o
+CREG: 0,1 // <stat>=1 means GSM network is registered
C
OK
OK
OK
GSM_ATC_AN_V1.00 - 15 -
GSM AT Commands Application Notes
e l
+CREG: 1,"1806","2012" // <n>=1, registered to GSM network
ct l
+CGREG: 1, "1806", "2012" // <n>=1, registered to GPRS network
e t i a
6.3. Select the network bands
u
Q fide 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)
OK
o n
AT+QBAND? // Query current selected band mode
+QBAND: "GSM850_EGSM_DCS_PCS_MODE"
C
OK
GSM_ATC_AN_V1.00 - 16 -
GSM AT Commands Application Notes
7. Call
AT command Description
ATD Mobile originated call
ATDL Redial last number used
ATA Answer a call
l
ATH Disconnect existing connection
ATS0 Set number of rings before automatically answering the call
e
AT+COLP Connected line identification presentation
t l
AT+CLIP Calling line identification presentation
c a
AT+CCWA Call waiting control
i
AT+CCFC Call forwarding number and conditions control
e t
AT+CLCC List current calls of ME
u
AT+CPAS Mobile equipment activity status
n
AT+CEER Extended error report
Q fide
AT+CHLD Call hold and multiparty
AT+VTS DTMF tone generation
AT+CKPD Keypad control
The following sections give the examples for related AT command operations and applications.
o n
7.1. Make a call
C
7.1.1. Make a voice call
OK
GSM_ATC_AN_V1.00 - 17 -
GSM AT Commands Application Notes
RING
ATA // Accept the incoming call
OK
l
7.2.2. Set URC control of incoming call
t e l
AT+CLIP=1 // <n>=1, enable URC report when call incoming
OK
e c i a
RING // There is an incoming call, "RING" is reported
u n t
+CLIP: "13764920730",129,"",,"",0 // URC is reported
Q fide
7.3. Auto answer
ATS0=2 // <n>=2, set auto answer function that after "RING" is reported
twice, call will be accepted automatically (default is 0)
OK
RING
o n // 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
number 02151082965-816.
GSM_ATC_AN_V1.00 - 18 -
GSM AT Commands Application Notes
AT+CLCC
+CLCC: 1,0,0,0,0," 02151082965",129,""
l
OK
t e
Note: After call is connected, send DTMF tone to dial extent phone number.
e c
7.5. Call waiting
i a l
u n t
AT+CCWA=1,1 // Enable to display URC for an incoming waiting call
OK
Q fide
ATD10086; // Make a voice call
OK
+CCWA: "02164011559",129,1
n
// If there is a new incoming call when the call is progressing,
URC of call waiting will be reported
C o
7.6. Call forwarding
AT+CCFC=2,3,"02151082965",129,,,,5
OK
// <reads>=2, <mode>=3, set call forwarding when no reply (If no
reply in 5 seconds, call will be forwarded to 02151082965)
+CCFC: 1,16,"+862151082965",145,,,5
OK
GSM_ATC_AN_V1.00 - 19 -
GSM AT Commands Application Notes
l
OK
t e l
ATD10086; // Make the second voice call
OK
AT+CLCC
e c t i a
// Query call state
u n
+CLCC: 1,0,1,0,0,"10086",129,""
Q fide
+CLCC: 2,0,0,0,0,"10086",129,""
OK
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
+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
GSM_ATC_AN_V1.00 - 20 -
GSM AT Commands Application Notes
+CLCC: 2,0,0,0,1,"10086",129,""
OK
l
OK
t e l
ATD10086; // Make voice call
OK
AT+CLCC
e c t i a
// Query call state
u n
+CLCC: 1,0,0,0,0,"10086",129,""
Q fide
OK
o n
OK
C
GSM_ATC_AN_V1.00 - 21 -
GSM AT Commands Application Notes
8. Audio settings
AT command Description
AT+QADUCH Swap the audio channels
AT+CLVL Loud speaker volume level
AT+CRSL Ringer sound levels
l
AT+CALM Alert sound mode
AT+CMUT Mute control
e
AT+QMIC Change the microphone gain level
t l
AT+QLDTMF Generate local DTMF tone
c i a
About the detail settings of audio ECHO, Gain etc, please refer to document
e t
GSM_AUDIO_UGD.pdf.
u n
The following sections give the examples for related AT command operations and applications.
Q fide
8.1. Swap the audio channels
n
OK // auxiliary channel (headset channel)
o
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
GSM_ATC_AN_V1.00 - 22 -
GSM AT Commands Application Notes
AT+CLCC
+CLCC: 1,0,0,0,0,"15021012496",129,"" // Call is progressing
OK
AT+CMUT=1 // <n>=1 mute the call, now the peer can’t hear sound
from the module
OK
l
8.4. Change volume when call is progressing
t e l
AT+CLCC
c a
+CLCC: 1,0,0,0,0,"15021012496",129,"" // Call is progressing
e t i
OK
u
Q fide n
AT+CLVL=80 // Set volume to 80
OK
n
AT+QLDTMF=100,"3" // Generate local DTMF tone. <n>=100 indicates DTMF
o
tone will play for 10 seconds, "3" is the content to play.
OK
OK
C
AT+QLDTMF // Stop playing DTMF tone
GSM_ATC_AN_V1.00 - 23 -
GSM AT Commands Application Notes
9. SMS
AT command Description
AT+CPMS Preferred SMS message storage
AT+CSMP Set SMS text mode parameters
AT+CMGF Select SMS message format
l
AT+CSCS Select TE character set
AT+CMGW Write SMS message to memory
e
AT+CMGR Read SMS message
t l
AT+CMGL List SMS messages from preferred store
c a
AT+CMGS Send SMS message
i
AT+CMGD Delete SMS message
e t
AT+QMGDA Delete all SMS
u
AT+CSDH Show SMS text mode parameters
n
AT+CSCA SMS service center address
Q fide
AT+CNMI New SMS message indications
AT+CSAS Save SMS settings
AT+CRES Restore SMS settings
AT+CSCB Select cell broadcast SMS messages
n
The following sections give some examples for related AT command operations and applications.
o
9.1. SMS message storage
C
AT+CPMS=? // Query supported SMS storage
+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(prior to store in SIM card storage)
GSM_ATC_AN_V1.00 - 24 -
GSM AT Commands Application Notes
e l
AT+CMGW // Write SMS
t l
> Hello, Quectel! // Input the content of SMS, "Hello, Quectel!", use
c
<Ctrl+Z>/Esc to write SMS or exit.
i a
+CMGW: 18 // Written SMS is stored in storage and the index is 18
e t
OK
u
Q fide n
9.2.2. Write SMS in PDU mode
n
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 storage and the index is 2
OK
GSM_ATC_AN_V1.00 - 25 -
GSM AT Commands Application Notes
OK
l
AT+CMGF=0 // <mode>=0, set PDU mode
OK
ct e l
AT+CMGS=43 // Send PDU SMS
i a
>0011000D91685120012194F60008011C00480065006C006C006F002C0051007500650063007
e t
40065006C0021 //The destination number is 8615021012496 , the content
of SMS is "Hello,Quectel!"
u n
+CMGS: 254
Q fide
OK
n
9.4.1. Read saved SMS
o
AT+CMGF=1 // <mode>=1, set text mode
C
OK
OK
GSM_ATC_AN_V1.00 - 26 -
GSM AT Commands Application Notes
OK
+CMTI: "SM",4 // New SMS arrived, the index of the new SMS in SIM card storage is 4
l
AT+CMGR=4 // Read the SMS whose index in storage is 4
+CMGR: "REC UNREAD","+8615021012496","","2009/10/15 16:32:51+32"
e
Hello,Quectel!
ct l
OK // The number of the sender is +8615021012496
e t i a
9.4.3. Read all SMS in specified type
u n
AT+CMGL="REC READ" // "REC READ" means to list all read SMS. In PDU
Q fide
mode, please use 1 to replace "REC READ" to list all read
SMS.
+CMGL: 4,"REC READ","+8615021012496","","2009/10/15 11:10:56+32"
Hello,Quectel!
n
OK
o
AT+CMGL="ALL" // "ALL" means to read all SMS. In PDU mode, please replace
C
"ALL" with 4 to read all SMS.
+CMGL: 1,"STO UNSENT","","",
Hello,Quectel!
OK
GSM_ATC_AN_V1.00 - 27 -
GSM AT Commands Application Notes
AT+QMGDA="DEL ALL" // Delete all SMS. In PDU mode, please use 6 to replace
l
"DEL ALL" to delete all SMS.
e
OK
ct a l
9.6. SMS settings
u e t i
9.6.1. Query and set the number of SMS center
n
AT+CSCA? // Query the number of SMS center
Q fide
+CSCA: "+8613800210500",145 // The number of SMS center is "+8613800210500"
OK
n
AT+CSCA="+8613800210500" // Set the number of SMS center as “+8613800210500”
o
OK
Note:
C
It is strongly recommended not to change the number of SMS center in normal use. Otherwise, it
may cause failing of sending SMS with the SIM card.
AT+CSMP=49,167,0,241 // SMS status report is supported under text mode if the first
parameter <fo> is set to 49.
OK
GSM_ATC_AN_V1.00 - 28 -
GSM AT Commands Application Notes
+CMGS: 25
OK
l
AT+CSCB=0,"50","1" // Select specified broadcast SMS
OK
ct e a l
u e n t i
Q fide
o n
C
GSM_ATC_AN_V1.00 - 29 -
GSM AT Commands Application Notes
10. Phonebook
AT command Description
AT+CPBS Select phonebook storage
AT+CPBW Write phonebook entry
AT+CPBR Read current phonebook entries
l
AT+CPBF Find phonebook entries
AT+CNUM Subscriber number
t e l
The following sections give some examples for related AT command operations and applications.
c i a
10.1. Phonebook settings
u e n t
AT+CPBS="SM" // Set storage type of phonebook to "SM"
OK // It means to operate the phonebook in SIM card
Q fide
AT+CSCS="GSM" // Set character set of the content of phonebook number and
OK // phonebook name to "GSM"
o n
10.2. Write phonebook entry
C
AT+CPBW=1,"15021012496",129,"Quectel" // Write phone entry whose index is 1
OK
OK
GSM_ATC_AN_V1.00 - 30 -
GSM AT Commands Application Notes
OK
OK
e l
10.6. Query/set subscriber number
ct a l
AT+CPBS="ON" // Select phonebook of "ON" type
i
OK
u e n t
AT+CPBW=1,"13761832100",129,"Own number1"
Q fide
OK // Write subscriber number 1
AT+CPBW=2,"15021012496",129,"Own number2"
OK // Write subscriber number 2
o n
AT+CNUM // Query subscriber number
+CNUM: "Own number1","13761832100",129,7,4
C
+CNUM: "Own number2","15021012496",129,7,4
OK
GSM_ATC_AN_V1.00 - 31 -
GSM AT Commands Application Notes
11. GPRS
AT command Description
AT+CGATT Attach to/detach from GPRS service
AT+CGDCONT Define PDP context
AT+CGACT Activate or deactivate PDP context
l
AT+CGQMIN Quality of service profile (minimum acceptable)
AT+CGQREQ Quality of service profile (requested)
e
AT+CGDATA Enter data state
t l
AT+CGPADDR Show PDP address
c a
AT+CGCLASS GPRS mobile station class
i
AT+CGEREP Control GPRS unsolicited GPRS event reporting
e t
AT+CGREG GPRS network registration status
u
AT+CGSMS Select service for MO SMS messages
Q fide n
Following sections are examples for related AT command operations and applications.
n
+CGATT: 1 // <state>=1 indicates GPRS is attached
o
OK
C
AT+CGDCONT=1,"IP","CMNET" // Define the content of the PDP context 1
OK
OK
GSM_ATC_AN_V1.00 - 32 -
GSM AT Commands Application Notes
t e l l
e c t i a
u
Q fide n
o n
C
GSM_ATC_AN_V1.00 - 33 -
GSM AT Commands Application Notes
12. CSD
AT command Description
ATD Mobile originated call to dial a number
AT+CSNS Single numbering scheme
+++ Switch from data mode to command mode
l
ATO Switch from command mode to data mode
e
The following sections give some examples for related AT command operations and applications.
ct a l
12.1. Set up CSD connection
e t i
Here is an example that module A make a CSD call to module B. After connection is established,
u n
module A hangs up the call.
Q fide
Module A:
ATD15052251387 // StepA1: Make a CSD Call
CONNECT 9600 // Response for StepB1: CSD connection is established
QUECTEL TEST001 // StepA2: Send data to module B, the data is "QUECTEL
TEST002"
n
Response for StepB2: Receive data from module B "QUECTEL
TEST001"
o
OK // StepA3: Input +++, switch from data mode to command mode
ATO // StepA4: Input ATO, enter data mode
C
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.00 - 34 -
GSM AT Commands Application Notes
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
t e l l
e c t i a
u
Q fide n
o n
C
GSM_ATC_AN_V1.00 - 35 -
GSM AT Commands Application Notes
13. TCPIP
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
l
AT+QISACK Query the data information for sending
AT+QISERVER Configure as a server
e
AT+QIOPEN Start up TCP or UDP connection
t l
AT+QICLOSE Close TCP or UDP connection
c a
AT+QISTAT Query current connection status
i
AT+QIDEACT Deactivate GPRS/CSD PDP context
e t
AT+QISEND Send data through TCP or UDP connection
u
AT+QIREGAPP Start TCPIP task and set APN, user name, password
n
AT+QIACT Bring up wireless connection with GPRS or CSD
Q fide
AT+QILOCIP Get local IP address
AT+QILPORT Set local port
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
n
AT+QIHEAD Add an IP header when receiving data
AT+QISHOWRA Set whether to display the address of sender
o
AT+QIAUTOS Set auto sending timer
AT+QIPROMPT Set prompt of ‘>’ when sending data
C
AT+QICSGP Select CSD or GPRS as the bearer
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
GSM_ATC_AN_V1.00 - 36 -
GSM AT Commands Application Notes
14. MUX
AT command Description
AT+CMUX Set MUX mode
t e l l
e c t i a
u
Q fide n
o n
C
GSM_ATC_AN_V1.00 - 37 -
GSM AT Commands Application Notes
15. HTTP
AT command Description
AT+QHTTPURL Set HTTP server URL
AT+QHTTPGET Send HTTP GET request
AT+QHTTPREAD Read HTTP server response
l
AT+QHTTPPOST Send HTTP POST request
e
For detailed steps and information, please refer to document GSM_HTTP_ATC.pdf.
ct i a l
u e n t
Q fide
o n
C
GSM_ATC_AN_V1.00 - 38 -
GSM AT Commands Application Notes
16. FTP
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
l
AT+QFTPGET Download a file from the FTP server
AT+QFTPPATH Set the path in the FTP server to upload or download file
e
AT+QFTPUSER Set the user name of the account to open FTP service
t l
AT+QFTPPASS Set the password of the account to open FTP service
c a
AT+QFTPCFG Set some configurable parameters for the FTP service
i
AT+QFTPSTAT Query status of FTP service
u e n t
For detailed steps and information, please refer to document GSM_FTP_ATC.pdf.
Q fide
o n
C
GSM_ATC_AN_V1.00 - 39 -
GSM AT Commands Application Notes
17. MMS
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
l
AT+QFLDS Get UFS information
AT+QFUPL List UFS files
e
AT+QFDEL Upload file to UFS
t l
AT+QMMSCS Download file from UFS
c a
AT+QMMSW Delete file in UFS
i
AT+QMMSEND Set character sets and input mode
e t
AT+QMMRM Write MMS
u
AT+QMMRR Send MMS
n
AT+QMMRECV Manage the received MMS
Q fide
AT+QMMPRI Read a received MMS
o n
C
GSM_ATC_AN_V1.00 - 40 -
GSM AT Commands Application Notes
18. FAX
AT command Description
AT+FCLASS Set FAX mode
AT+CSNS Set data transferring mode
l
For detailed steps and information, please refer to document FAX_ Setup.pdf.
ct e a l
u e n t i
Q fide
o n
C
GSM_ATC_AN_V1.00 - 41 -
GSM AT Commands Application Notes
AT command Description
AT+QALARM Set alarm
AT+CCLK Set clock
AT+CFUN Set phone functionality
l
AT+QENG Report cell description in engineer mode
ATV TA response format
e
ATE Set command echo mode
t l
A/ Re-issue last AT command given
c a
AT+CMEE Report mobile equipment error
e t i
The following sections give some examples for related AT command operations and applications.
u n
19.1. Query/set clock
Q fide
AT+CCLK? // Query current clock
+CCLK: "08/01/01,06:06:24+00"
OK
o n
AT+CCLK="09/09/09,12:00:00+00"
OK
// Set clock
C
19.2. Set alarm
OK
l
RDY // Alarm expires, system will automatically
t e
boot and enter ALARM MODE
l
// Alarm mode
c i a
+CFUN: 0
u e t
NORMAL POWER DOWN // System will automatically power off after
n
entering alarm mode for 90 seconds
Q fide
19.3. Set phone functionality
n
OK
o
19.4. Query parameters of network
C
AT+QENG=1 // <mode>=1, start monitoring parameters of network,
no unsolicited information reported
OK
+QENG: 0,460,00,1806,2602,64,46,-54,189,189,5,8,x,x,x,x,x,x,x
OK
OK
+QENG: 0,460,00,1806,2602,64,46,-54,190,190,5,8,x,x,x,x,x,x,x
// URC reported
l
AT+QSCLK? // Query the setting of power saving mode. (Power saving
e
is disabled in default)
t l
+QSCLK: 0
e c t i a
OK
u n
AT+QSCLK=1 // <n>=1 , allow to enter power saving mode
Q fide
OK
o n
C
GSM_ATC_AN_V1.00 - 44 -
Shanghai Quectel Wireless Solutions Co., Ltd.
Room 801, Building E, No.1618, Yishan Road, Shanghai, China 201103
Tel: +86 21 5108 2965
Mail: [email protected]