Professional Documents
Culture Documents
AT Command Set
G18 GSM/GPRS Modem AT Command Set
72E-57474-02
Revision A — March 2003
72E-57474-02
Revision A
March 2003
2002-2003 by Symbol Technologies, Inc. All rights reserved.
No part of this publication may be reproduced or used in any form, or by any electrical or
mechanical means, without permission in writing from Symbol. This includes electronic or
mechanical means, such as photocopying, recording, or information storage and retrieval
systems. The material in this manual is subject to change without notice.
The software is provided strictly on an “as is” basis. All software, including firmware,
furnished to the user is on a licensed basis. Symbol grants to the user a non-transferable
and non-exclusive license to use each software or firmware program delivered hereunder
(licensed program). Except as noted below, such license may not be assigned,
sublicensed, or otherwise transferred by the user without prior written consent of Symbol.
No right to copy a licensed program in whole or in part is granted, except as permitted under
copyright law. The user shall not modify, merge, or incorporate any form or portion of a
licensed program with other program material, create a derivative work from a licensed
program, or use a licensed program in a network without written permission from Symbol.
The user agrees to maintain Symbol’s copyright notice on the licensed programs delivered
hereunder, and to include the same on any authorized copies it makes, in whole or in part.
The user agrees not to decompile, disassemble, decode, or reverse engineer any licensed
program delivered to the user or any portion thereof.
Symbol reserves the right to make changes to any software or product to improve reliability,
function, or design.
Symbol does not assume any product liability arising out of, or in connection with, the
application or use of any product, circuit, or application described herein.
ii
Contents
Chapter 1. Introduction
AT Command Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
iii
G18 GSM/GPRS Modem AT Command Set
iv
Contents
Index
Feedback
v
G18 GSM/GPRS Modem AT Command Set
vi
About This Guide
Introduction
The G18 GSM/GPRS Modem AT Command Set provides information necessary for
developing applications for Symbol terminals using the G18 modem.
Notational Conventions
This document uses these conventions:
xiii
G18 GSM/GPRS Modem AT Command Set
References
The following table lists the documents referenced throughout this guide.
GSM 07.05 GTS 07.05: January 1998 (GSM 07.05 version 5.5.0) Use of Data Terminal
Equipment - Data Circuit terminating Equipment (DTE - DCE) interface for Short
Message Service (SMS) and Cell Broadcast Service (CBS), ETSI
GSM 07.07 ETS 300 916: February 1998 (GSM 07.07 version 5.5.0) AT command set for
GSM Mobile Equipment (ME)
T.32 T.32 (08/95) Asynchronous facsimile DCE control - service class 2, ITU
V.25ter (ITU-T V.25 ter, 1997) ITU-T Recommendation V.25ter; series V: data
communication over the telephone network; Interfaces and voiceband
modems; Serial asynchronous automatic dialing and control, ITU
xiv
About This Guide
GSM 07.05 GTS 07.05: January 1998 (GSM 07.05 version 5.5.0) Use of Data Terminal
Equipment - Data Circuit terminating Equipment (DTE - DCE) interface for Short
Message Service (SMS) and Cell Broadcast Service (CBS), ETSI
GSM 03.40 (ETS 300 901): Digital cellular telecommunications system (Phase 2+);
Technical realization of the Short Message Service (SMS) Point-to-Point (PP).
GSM 04.11 (ETS 300 942): Digital cellular telecommunications system (Phase 2+); Point-
to-Point (PP) Short Message Service (SMS) support on mobile radio interface.
GSM 03.38 (ETS 300 900): Digital cellular telecommunications system (Phase 2+);
Alphabets and language-specific information.
GSM 03.41 (ETS 300 902): Digital cellular telecommunications system (Phase 2+);
Technical realization of Short Message Service Cell Broadcast (SMSCB).
8410.011.00.201 January 6, 2000, ACI - Application Control Interface, Functional Interface
description, Condat
Service Information
If you have a problem with your equipment, contact the Symbol Support Center for your
region. See page xvi for contact information. Before calling, have the model number, serial
number, and several of your bar code symbols at hand.
Call the Support Center from a phone near the scanning equipment so that the service
person can try to talk you through your problem. If the equipment is found to be working
properly and the problem is symbol readability, the Support Center will request samples of
your bar codes for analysis at our plant.
If your problem cannot be solved over the phone, you may need to return your equipment
for servicing. If that is necessary, you will be given specific directions.
xv
G18 GSM/GPRS Modem AT Command Set
xvi
About This Guide
Finland/Suomi France
Oy Symbol Technologies Symbol Technologies France
Kaupintie 8 A 6 Centre d'Affaire d'Antony
FIN-00440 Helsinki, Finland 3 Rue de la Renaissance
9 5407 580 (Inside Finland) 92184 Antony Cedex, France
+358 9 5407 580 (Outside Finland) 01-40-96-52-21 (Inside France)
+33-1-40-96-52-50 (Outside France)
Germany/Deutchland Italy/Italia
Symbol Technologies GmbH Symbol Technologies Italia S.R.L.
Waldstrasse 66 Via Cristoforo Columbo, 49
D-63128 Dietzenbach, Germany 20090 Trezzano S/N Navigilo
6074-49020 (Inside Germany) Milano, Italy
+49-6074-49020 (Outside Germany) 2-484441 (Inside Italy)
+39-02-484441 (Outside Italy)
Latin America Sales Support Mexico/México
2730 University Dr. Symbol Technologies Mexico Ltd.
Coral Springs, FL 33065 USA Torre Picasso
1-800-347-0178 (Inside United States) Boulevard Manuel Avila Camacho No 88
+1-954-255-2610 (Outside United States) Lomas de Chapultepec CP 11000
954-340-9454 (Fax) Mexico City, DF, Mexico
5-520-1835 (Inside Mexico)
+52-5-520-1835 (Outside Mexico)
Netherlands/Nederland Norway/Norge
Symbol Technologies Symbol’s registered and mailing address:
Kerkplein 2, 7051 CX Symbol Technologies Norway
Postbus 24 7050 AA Hoybratenveien 35 C
Varsseveld, Netherlands N-1055 OSLO, Norway
315-271700 (Inside Netherlands)
+31-315-271700 (Outside Netherlands) Symbol’s repair depot and shipping address:
Symbol Technologies Norway
Enebakkveien 123
N-0680 OSLO, Norway
xvii
G18 GSM/GPRS Modem AT Command Set
Visit/shipping address:
Symbol Technologies AB
Solna Strandväg 78
S-171 54 SOLNA
Sweden
If you purchased your Symbol product from a Symbol Business Partner, contact that
Business Partner for service.
xviii
Chapter 1
Introduction
The G18 integrated tri-band GSM/GPRS radio modem allows the terminal wireless
connectivity using the GSM900/1800/1900 cellular networks. This guide describes the AT
command set supported by this radio modem.
1-1
G18 GSM/GPRS Modem AT Command Set
AT Command Tables
The following tables list the commands supported by the modem.
AT Commands
Table 1-1 and Table 1-2 list the AT commands for the modem. Most of these commands are
from the V.25ter reference.
AT<command>
Note: To repeat the previous command, use A/. This is not prefixed with
AT.
1-2
Introduction
1-3
G18 GSM/GPRS Modem AT Command Set
1-4
Introduction
1-5
G18 GSM/GPRS Modem AT Command Set
1-6
Introduction
1-7
G18 GSM/GPRS Modem AT Command Set
1-8
Introduction
1-9
G18 GSM/GPRS Modem AT Command Set
For each command we recommend using the ? option to query the modem for details of
each command. For example, use AT+CR? to get the full details on the +CR command.
Table 1-5. General ETSI 07.07 Commands
Command Description Reference
+CGMI Requests manufacturer identification 5.1
+CGMM Requests model identification 5.2
+CGMR Requests revision identification 5.3
+CGSN Requests product serial number identification 5.4
+CSCS Selects TE character set 5.5
+CIMI Requests international mobile subscriber identity 5.6
+GCAP Requests overall capabilities of TA V25ter section
6.1.9
1-10
Introduction
1-11
G18 GSM/GPRS Modem AT Command Set
1-12
Introduction
1-13
G18 GSM/GPRS Modem AT Command Set
Table 1-9. ETSI 07.07 Mobile Equipment Control and Status Commands
Command Description Reference
+ Phone activity status (off, on, online) 8.1
Return Code - Meaning:
+CPAS:000 - Ready
+CPAS:001 - Unavailable
+CPAS:002 - Unknown
+CPAS:003 - Ringing
+CPAS:004 - Call in process
+CPAS:005 - Asleep
+CPIN Enter/change PIN (4 - 8 digits) 8.3
+CSQ Signal quality 8.5
+CMEC Mobile equipment control mode (optional if keypad and display 8.6
not supported)
+CKPD Keypad control 8.7
+CDEV* Display Control - upon sending AT+CMER=0,0,1 current text 8.8
display report is received
*Not supported by modem. To obtain +CDIS functionality, follow the instructions above.
**Not supported by modem. To obtain +CIND functionality, follow the instructions above.
***Not supported by modem. To obtain +CMUT functionality, use +CIP AT command, and follow the
instructions above.
1-14
Introduction
Table 1-9. ETSI 07.07 Mobile Equipment Control and Status Commands (continued)
Command Description Reference
+CIEV** Indicator Control - upon sending AT+CMER=0,0,0,1 current 8.9
indicator report is received
+CMER Mobile equipment event reporting 8.10
+CPBS Selects phone book memory storage (optional if phone book 8.11
not supported)
+CPBR Reads phone book entries 8.12
+CPBF Finds phone book entries 8.13
+CPBW Writes phone book entry 8.14
+CRSM Restricts SIM access 8.18
+CMUT*** Mute control – use AT+CIP with IP_MUTE_REQ command for 8.24
mute toggling
*Not supported by modem. To obtain +CDIS functionality, follow the instructions above.
**Not supported by modem. To obtain +CIND functionality, follow the instructions above.
***Not supported by modem. To obtain +CMUT functionality, use +CIP AT command, and follow the
instructions above.
Table 1-10. ETSI 07.07 Mobile Equipment Errors and Status Reports
Command Description Reference
+CMEE Report mobile equipment error 9.1
+CME ERROR 0 Phone failure 9.2
1 No connection to phone
2 Phone-adaptor link reserved
3 Operation not allowed
4 Operation not supported
5 PH-SIM PIN required
6 PH-FSIM PIN required
7 PH-FSIM PUK required
1-15
G18 GSM/GPRS Modem AT Command Set
Table 1-10. ETSI 07.07 Mobile Equipment Errors and Status Reports (continued)
Command Description Reference
+CME ERROR 10 SIM not inserted 9.2
11 SIM PIN required
12 SIM PUK required
13 SIM failure
14 SIM busy
15 SIM wrong
16 Incorrect password
17 SIM PIN2 required
18 SIM PUK2 required
20 Memory full
21 Invalid index
22 Not found
23 Memory failure
24 Text string too long
25 Invalid characters in text string
26 Dial string too long
27 Invalid characters in dial string
30 No network service
31 Network time-out
32 Network not allowed - emergency calls only
1-16
Introduction
1-17
G18 GSM/GPRS Modem AT Command Set
1-18
Introduction
Block mode is an older stand-alone mode (provided for compatibility reasons) that makes
use of full text commands and responses to send and receive SMS messages. PDU mode
is the preferred method since it is the easiest to use. Text mode is not supported by the
modem.
1-19
G18 GSM/GPRS Modem AT Command Set
Block Mode
SMS block mode is described in GSM 07.05, section 2.
Table 1-13. ETSI 0705 TE Commands Sent from Host to Phone
Command Description ETSI 07.05
Reference
ACKNOWLEDGE Acknowledges receipt of INC MESSAGE or 2.4.1.12
MESSAGE MESSAGE ARRIVED
DELETE MESSAGE Deletes SMS message 2.4.1.9
END SMS MODE Terminates SMS/CBS mode of the DTE/DCE 2.4.1.11
interface
GET FIRST MESSAGE Retrieves the first message stored on the phone 2.4.1.3
GET MESSAGE Retrieves a specific message stored on the phone 2.4.1.2
GET NEXT MESSAGE Retrieves the next message stored on the phone 2.4.1.4
INDICATE INC SMS Requests notification of any incoming SMS 2.4.1.6
messages
INSERT SMS Sends an SMS message 2.4.1.8
LIST REQUEST Requests list of messages stored on the phone 2.4.1.1
TRANSFER INC CBS Requests direct transfer of broadcast messages 2.4.1.7
directly to host computer
TRANSFER INC SMS Requests direct transfer of incoming SMS messages 2.4.1.5
from the air directly to host computer
UNABLE TO PROCESS Indicates that a phone message could not be 2.4.1.10
processed
1-20
Introduction
Text Mode
Text mode is described in GSM 07.05, section 3. The modem does not support text mode,
however the following commands are supported, since they are used for PDU mode.
Table 1-15. ETSI 07.05 Text Mode
Command Description ETSI 07.05
Reference
+CSMS Select message service (phase 2, phase 2+, etc.) 3.2.1
+CPMS Preferred message storage 3.2.2
+CMGF Message format: PDU or text mode selection, PDU = default 3.2.3
+CESP Enter SMS block mode protocol 3.2.4
1-21
G18 GSM/GPRS Modem AT Command Set
1-22
Introduction
PDU Mode
PDU mode is described in GSM 07.05 Section 4. PDU mode uses the same commands
and responses as Text mode, but different formats for the following commands and
responses.
See GSM 04.11 and GSM 03.40 for details on formatting the Service Center Address and
Transport Data Protocol Unit of the SMS PDU.
Table 1-16. ETSI 0705 PDU Mode
Command Description ETSI 07.05
Reference
+CMGL Lists messages 4.1
+CMGR Reads message 4.2
+CMGS Sends message 4.3
+CMGW Writes message 4.4
+CNMA Acknowledges new message to ME/TA 4.6
+CMSS Sends message from storage 4.7
1-23
G18 GSM/GPRS Modem AT Command Set
GPRS Commands
Table 1-17. ETSI 07.07 Commands for GPRS
Command Function Reference
+CGDCONT Defines, modifies or removes a PDP context 10.1.1
+CGQREQ Defines, modifies or removes a requested Quality of 10.1.2
Service profile
+CGQMIN Defines, modifies or removes a minimum required Quality 10.1.3
of Service profile
+CGATT Attaches/detaches GPRS requests 10.1.4
+CGACT Activates/deactivates PDP context request 10.1.5
+CGPADDR Shows PDP address 10.1.8
+CGCLASS Interfacing mobile station class parameters (stores, 10.1.11
manages, retrieves)
1-24
Chapter 2
Basic Functionality
2-1
G18 GSM/GPRS Modem AT Command Set
Note: The following AT commands are enabled without a valid SIM: GCAP,
GMI,GMR, IFC, CEER, CGMI, CGMM, CGMR, CGSN, CHUP,
CIPE, CKPD, CMEE, CMER, CIP, CRC, CSQ, CR, MTDTR
2-2
Basic Functionality
System Feedback
2-3
G18 GSM/GPRS Modem AT Command Set
Note
In a voice call, when the other side hangs up, DTE receives a “NO CARRIER" message.
Only the second OK in a voice call notifies the user that the call was established.
2-4
Basic Functionality
2-5
G18 GSM/GPRS Modem AT Command Set
2-6
Basic Functionality
2-7
G18 GSM/GPRS Modem AT Command Set
2-8
Chapter 3
AT Command Set
This chapter covers the AT commands supported by the G18 GSM/GPRS modem.
3-1
G18 GSM/GPRS Modem AT Command Set
ATD, Dial
Description
Dials a voice call.
Command Possible Response/Action
ATD <number> OK
Busy
No Carrier
ATD (phone number)
(for voice calls only)
AT*D (phone number)
(for voice calls only)
ATD> <index>
ATD> <name>
ATDS= (n=0 to 3)
ATD> <mem><index>;
ATDL ATDL: “<number>”
ATD*99
(request GPRS service "D".
Manual acceptance of a network request)
at*d xxxxxx
(current call is a voice call)
where:
<number>: data/fax number
<phone number>: for voice calls only
<n>: 0 - 3
<value>: status of call
busy called party not available
no carrier no connection to number
3-2
AT Command Set
Note: Only the second OK for the voice call notifies the user that the call
was established.
Example
AT*D06113611404
OK
OK [call connected]
ATD06512467; [another format for voice call]
ATDL [dial last number]
ATDL: “06512467;”
OK
OK [call connected]
ATH
NO CARRIER
OK
ATD06113611404 [Data call]
OK
BUSY
NO CARRIER
ATD06113611404 [data call - success]
CONNECT
3-3
G18 GSM/GPRS Modem AT Command Set
ATDL, Redial
Description
Redials the last number used in the ATD command. For voice calls only.
Command Possible Response/Action
ATDL OK
3-4
AT Command Set
Description
Returns cost of current call.
Command Possible Response/Action
AT+CAOC=? +CAOC: (list of supported <mode>s)
OK
+CME ERROR: <err>
AT+CAOC [=<mode>] +CAOC: <xxxx>
OK
+CME ERROR: <err>
AT+CAOC? +CAOC: <mode>
OK
+CME ERROR:<err>
where:
<mode>:
0 query CCM value
<xxxx>: actual price of current call (hex)
Note
This command requires the support of the local network.
Example
AT+CAOC=?
+CAOC: 0
OK
AT+CAOC=0
+CAOC: 000000
OK
3-5
G18 GSM/GPRS Modem AT Command Set
Description
Sets band rate.
Command Possible Response/Action
AT+CBAND=? +CBAND: (list of supported <N>s)
OK
AT+CBAND? +CBAND: <N>
OK
AT+CBAND = N OK
+CME ERROR: <err>
where:
<N>:
3 1900Mhz
4 900/1800Mhz
Example
AT+CMEE=2
OK
AT+CBAND?
+CBAND: 4
OK
AT+CPIN?
+CPIN: READY
OK
AT+CBAND=3
OK [modem waits for power cycle]
AT+CPIN?
+CME ERROR: “no network service”
3-6
AT Command Set
Description
Sets baud rate.
Command Possible Response/Action
AT+CBAUD = <n> OK
(or) +CME ERROR: <err>
AT+CBAUD=<rate>
(e.g., AT+CBAUD=8 is equivalent to
AT+CBAUD=57600)
AT+CBAUD? +CBAUD: <rate>
OK
+CME ERROR: <err>
AT+CBAUD=? +CBAUD: (list of supported <n>s, <rate>s)
OK
+CME ERROR: <err>
where:
<n> <rate>:
0 300
1 600
2 1200
3 2400
4 4800
5 9600
6 19200
7 38400
8 57600
9 auto baud rate detection
3-7
G18 GSM/GPRS Modem AT Command Set
Note
Selecting any value other than 9 disables the auto baud rate detection feature.
The G18 supports up to 57600 auto baud within the accuracy limitations of the application’s
baud (G18 meets the RS232 specifications).
If you call MO CSD at 4800 bps (on the air) then do not use 57600 bps on your RS232 port.
Example
AT+CBAUD=?
+CBAUD: (0-9, 300, 600,1200,2400,4800,9600,19200,38400,57600)
OK
AT+CBAUD?
+CBAUD: 57600
OK
3-8
AT Command Set
Description
Selects bearer service type.
Command Possible Response/Action
AT+CBST=? +CBST: (<speed>s),(<name>s),(<ce>s)
(list of supported values)
OK
+CME ERROR: <err>
AT+CBST? +CBST: <speed>,<name>,<ce>
OK
+CME ERROR: <err>
AT+CBST=[<speed> [,<name> Sets the value
[,<ce>]]] OK
+CME ERROR: <err>
where:
<speed>:
6 4800 bps (V.32)
7 9600 bps (V.32)
70 4800 bps (V.110)
71 9600 bps (V.110)
<name>:
0 data circuit asynchronous
<ce>:
0 transparent
1 non-transparent
3-9
G18 GSM/GPRS Modem AT Command Set
Note
The modem supports baud rates of 4800 to 9600 bps.
If you work at 4800 bps, do not use 57600 bps for your RS232 port.
Example
AT+CBST=?
+CBST: (006,007,070,071), (000), (000-001)
OK
AT+CBST?
+CBST: 007,000,001
OK
AT+CBST=1,0,1
+CME ERROR: operation not supported
AT+CBST=6
OK
AT+CBST?
+CBST: 006,000,001
OK
AT+CBST=7
OK
AT+CBST?
+CBST: 007,000,001
OK
3-10
AT Command Set
Description
Specifies call forwarding number and conditions.
Command Possible Response/Action
AT+CCFC? +CME ERROR: <err>
AT+CCFC=? +CCFC: (list of supported values)
OK
+CME ERROR: <err>
AT+CCFC=<reason>,<mode>[, When <mode>=2 and command is successful:
<number>[,<type>[,<class>[, +CCFC:
<subaddr>[,<satype>[,<time>]] <status>,<class1>[,<number>,<type>[,<subaddr>,
]]]] <satype>[,<time>]]][<CR><LF>+CCFC:
<status>,<class2>[,<number>,<type>[,<subaddr>,
<satype>[,<time>]]] [...]]
OK
When <mode> is 0,1
OK
+CME ERROR: <err>
where:
<reason>:
0 unconditional
1 mobile busy
2 no reply
3 not reachable
4 all call forwarding
5 all conditional call forwarded
<mode>:
0 disable
1 enable
3-11
G18 GSM/GPRS Modem AT Command Set
where:
2 query status
3 registration
4 erasure
<type>:
145 international phone
129 regular number
<time>:
1-30 time waited when "no reply" before call is forwarded (default)
<class>:
1 Voice
2 Data
4 Fax
<number> String type phone number of forwarding address in format
specified by <type>
<subaddr> String type subaddress of format specified by <satype>
<satype> Type of subaddress octet in integer format (refer GSM 04.08 [8]
subclause 10.5.4.8); default 128
<status>:
0 Not active
1 Active
Notes
Third parameter must be a multiple of 5 (e.g., 0,5,10).
AT+CCFC=5,2 and AT+CCFC=4,2 are not supported.
First registration mode also enables call forwarding.
3-12
AT Command Set
Example
AT+CCFC=?
+CCFC: (0,1,2,3,4,5)
OK
AT+CCFC?
+CME ERROR: "operation not allowed"
AT+CCFC=0,3,"01256316830",129,1
OK
AT+CCFC=0,2
+CCFC: 1,1,"+441256316830",1
+CCFC: 0,2
+CCFC: 0,4
OK
3-13
G18 GSM/GPRS Modem AT Command Set
Description
Enables call waiting feature.
Command Possible Response/Action
AT+CCWA=? +CCWA: (list of supported <n>s)
OK
+CME Error: <err>
AT+CCWA? +CCWA: <n> (current value)
OK
+CME ERROR: <err>
AT+CCWA=<n>, Enables the call waiting feature.
<mode>,<class x> When <mode>=2 and command are successful:
+CCWA:<status>,<class1>
<CR><LF>+CCWA:
<status>,<class2>[...]]
OK
When <mode> is 0,1
OK
+CME ERROR: <err>
where:
<n>: Shows the result code in TA
0 disable
1 enable
<mode>:
0 disable
1 enable
2 query
<status>:
0 not active
3-14
AT Command Set
where:
1 active
<class>: Sum of integers representing information for call blocking
services.
1 voice
2 data
4 fax
Note
Unsolicited result code does not include alpha tag within the double-quote.
Example
AT+CCWA=?
+CCWA: 00,01
OK
AT+CCWA=0,0
OK
AT+CCWA=0,2 [Status query]
+CCWA: 0,1
+CCWA: 0,2
+CCWA: 0,4
OK
AT+CCWA=1,1 [Enable call waiting for voice call]
OK
AT+CCWA=1,2
+CCWA: 1,1
+CCWA: 1,2
+CCWA: 1,4
OK
3-15
G18 GSM/GPRS Modem AT Command Set
Description
Reports failure reason of last call.
Command Possible Response/Action
AT+CEER +CEER: <report>
OK
+CME ERROR: <err>
AT+CEER=? OK
+CME ERROR: <err>
AT+CEER? +CME ERROR: <err>
where:
<report>: Refer to the Mobile Extended Error Report Table 1-7 on page 1-11
0 query CCM value
<xxxx>: actual price of current call (hex)
Note
At the beginning of a call the ceer value is reset to “No information available”. When the call
is released by the network, the network message is saved by the ceer value until the next
call is started. When the user hangs up, no information is saved. For information on ceer
values see Table 1-8 on page 1-13. The GPRS error values are not supported by this
command.
Example
AT+CEER=?
OK
AT+CEER?
ERROR
AT+CEER
+CEER: “No information available”
OK
3-16
AT Command Set
Description
Enters SMS block mode protocol.
Command Possible Response/Action
AT+CESP OK
+CME ERROR: <err>
AT+CESP? +CME ERROR: <err>
AT+CESP=? OK
+CME ERROR: <err>
Note
To exit SMS Block mode, use block mode command: “exit SMS block mode” or disconnect
the DTR.
Example
AT+CESP
OK
3-17
G18 GSM/GPRS Modem AT Command Set
Description
Activates or deactivates PDP context request.
Command Possible Response/Action
AT +CGACT=? +CGACT: (list of supported <state>s)
OK
+CME ERROR: <err>
AT+CGACT? +CGACT: <cid>, <state>
[<CR><LF> +CGACT: <cid>, <state>
OK
+CME ERROR: <err>
AT+CGACT=[<state> OK
[,<cid>[,<cid>[,]]]] +CME ERROR: <err>
where:
<state>: Indicates the state of the GPRS attachment
0 Detached
1 Attached
<cid>: A numeric parameter that specifies a particular PDP context definition.
Note
In some GPRS networks, for example Germany, +CGACT is not supported. The ATD*99#
command can be used to make a connection.
3-18
AT Command Set
Example
AT+CGACT=?
+CGATT: (0, 1)
OK
AT+CGACT?
+CGACT: 1,0
+CGACT: 2,0
+CGACT: 3,0
OK
AT+CGACT=1
ERROR [GPRS network not present]
3-19
G18 GSM/GPRS Modem AT Command Set
Description
Attaches or detaches GPRS request.
Command Possible Response/Action
AT +CGATT=? +CGATT: (list of supported <state>s)
OK
+CME ERROR: <err>
AT+CGATT? +CGATT: <state>
OK
+CME ERROR: <err>
AT+CGATT= [<state>] OK
+CME ERROR: <err>
where:
<state>: Indicates the state of the GPRS attachment
0 Detached
1 Attached
If no <state> is given, the default state is the current state and nothing needs to be done.
Example
AT+CGATT=?
+CGATT: (0,1)
OK
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=1
ERROR
AT+CGATT=0
OK
3-20
AT Command Set
Description
Sets interfacing MS class parameters.
Command Possible Response/Action
AT+CGCLASS=? +CGCLASS: (list of supported <class>s)
OK
+CME ERROR: <err>
AT+CGCLASS? +CGCLASS: <class>
OK
+CME ERROR: <err>
AT+CGCLASS= [<class>] OK
+CME ERROR: <err>
where:
<class>: String parameter that indicates the GPRS mobile class.
Example
AT+CGCLASS=?
+CGCLASS: (B)
OK
AT+CGCLASS=“B”
OK
AT+CGCLASS=“A”
ERROR
3-21
G18 GSM/GPRS Modem AT Command Set
Description
Defines, modifies, or removes a PDP context.
Command Possible Response/Action
AT+CGDCONT=? +CGDCONT: (range of supported
<cid>s),<PDP_type>,,,(list of supported
<d_comp>s),(list of supported <h_comp>s)
[,(list of supported<pd1>s)[,[,(list of supported
<pdN>s)]]]
[<CR><LF>+CGDCONT: (range of supported
<cid>s),<PDP_type>,,,(list of supported
<d_comp>s),(list of supported <h_comp>s)[,(list of
supported<pd1>s)[,[,(list of supported <pdN>s)]]]
[...]]
OK
+CME ERROR: <err>
AT+CGDCONT? +CGDCONT: <cid>,
<PDP_type>,<APN>,<PDP_addr>, <data_comp>,
<head_comp>[,<pd1>[,[,pdN]]]
[<CR><LF>
+CGDCONT: <cid>, <PDP_type>,<APN>,
<PDP_addr>, <data_comp>,<head_comp>[,
<pd1>[,[,pdN]]]
[...]]
OK
+CME ERROR: <err>
+CGDCONT=[<cid> [,<PDP_type>[, OK
<APN> [,<PDP_addr> [,<d_comp>[, +CME ERROR: <err>
<h_comp> [,<pd1> [,[,pdN]]]]]]]]]
Note
Read command returns the current settings for each defined context. Test command
returns the parameter value ranges for each <PDP_type>.
3-22
AT Command Set
Example
AT+CGDCONT=?
+CGDCONT: (1-3),(“IP”),,,(0,1),(0,1)
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“” ,“0.0.0.0”,0,0
+CGDCONT: 2,“IP”,“” ,“0.0.0.0”,0,0
+CGDCONT: 3,“IP”,“” ,“0.0.0.0”,0,0
OK
AT+CGDCONT=1,“IP”,“RTY”,“123.32.45.9”
OK
AT+CGDCONT=4 [only 3 PDP contexts may be set up]
ERROR
3-23
G18 GSM/GPRS Modem AT Command Set
Description
Requests manufacturer identification.
Command Possible Response/Action
AT+CGMI +CGMI: <manufacturer>
OK
+CME ERROR: <err>
AT+CGMI? +CME ERROR: <err>
AT+CGMI=? OK
+CME ERROR: <err>
where:
<manufacturer>: name of manufacturer
Example
AT+CGMI
+CGMI: “MOTOROLA”
OK
AT+CGMI?
ERROR
3-24
AT Command Set
Description
Requests model identification.
Command Possible Response/Action
AT+CGMM +CGMM: <model>
OK
+CME ERROR: <err>
AT+CGMM? +CME ERROR: <err>
AT+CGMM=? OK
+CME ERROR: <err>
where:
<model>: model identification
Example
AT+CGMM?
ERROR
AT+CGMM=?
OK
AT+CGMM
+CGMM: “L Series”
OK
3-25
G18 GSM/GPRS Modem AT Command Set
Description
Requests revision identification.
Command Possible Response/Action
AT+CGMR +CGMR: <revision>
OK
+CME ERROR: <err>
AT+CGMR? +CME ERROR: <err>
AT+CGMR=? OK
+CME ERROR: <err>
where:
Example
AT+CGMR?
ERROR
AT+CGMR=?
OK
AT+CGMR
+CGMR: g18_vE6.02.07
OK
3-26
AT Command Set
Description
Displays PDP address.
Command Possible Response/Action
AT+CGPADDR=? +CGPADDR:(list of defined <cid>s)
OK
+CME ERROR: <err>
AT+CGPADDR=[<cid> [,<cid> [,]]] +CGPADDR: <cid>,<PDP_addr>
[<CR><LF>+CGPADDR: <cid>,<PDP_addr> [...]]
OK
+CME ERROR: <err>
AT+CGPADDR? +CME ERROR: <err>
where:
<cid>: A numeric parameter that specifies a particular PDP context
definition.
If no <cid> is specified, the addresses for all difined context are
refunded.
Note
The execution command returns a list of PDP addresses for the specified context
identifiers. The test command returns a list of defined <cid>s.
Example
AT+CGPADDR=?
+CGPADDR: (1,2,3)
OK
AT+CGPADDR=1
+CGPADDR: 1, 0.0.0.0
OK
3-27
G18 GSM/GPRS Modem AT Command Set
Description
Indicates GPRS coverage.
Command Possible Response/Action
AT+CGPRS +CGPRS: <mode>
OK
+CME ERROR: <err>
AT+CGPRS? +CGPRS: <mode>
OK
+CME ERROR: <err>
AT+CGPRS=? +CME ERROR: <err>
where:
<mode>:
0 no GPRS coverage
1 GPRS coverage
Note
Without an attachment, this command always returns zero.
Example
AT+CGPRS
+CGPRS: 0
OK
AT+CGPRS?
+CGPRS: 0
OK
AT+CGPRS=1
+CME ERROR: “operation not allowed”
3-28
AT Command Set
Description
Defines, modifies, or removes a minimum required Quality of Service profile.
Command Possible Response/Action
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)
[<CR><LF>+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
+CME ERROR: <err>
AT+CGQMIN? +CGQMIN: <cid>, <precedence>, <delay>,
<reliability>, <peak>, <mean>
[<CR><LF>+CGQMIN: <cid>,
<precedence>,<delay>, <reliability.>, <peak>,
<mean>[...]]
OK
+CME ERROR: <err>
AT+CGQMIN=[<cid> [,<precedence>[, OK
<delay> [,<reliability.> +CME ERROR: <err>
[,<peak>[,<mean>]]]]]]
Note
Read command returns the current settings for each defined context. Test command
returns the parameter value ranges for each <PDP_type>. For more details about Quality
of Service, refer to ETSI specification GSM 03.60.
3-29
G18 GSM/GPRS Modem AT Command Set
Example
AT+CGQMIN=?
+CGQMIN: (1-3),(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
AT+CGQMIN?
+CGQMIN: 1,2,4,3,9,10
+CGQMIN: 2,2,4,3,9,10
+CGQMIN: 3,2,4,3,9,10
OK
3-30
AT Command Set
Description
Defines, modifies, or removes a requested Quality of Service profile.
Command Possible Response/Action
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
+CME ERROR: <err>
AT+CGQREQ? +CGQREQ: <cid>, <precedence>,
<delay>,<reliability>, <peak>, <mean>
OK
+CME ERROR: <err>
AT+CGQREQ=[<cid> [,<precedence> OK
[,<delay>[,<reliability> +CME ERROR: <err>
[,<peak>[,<mean>]]]]]]
3-31
G18 GSM/GPRS Modem AT Command Set
Example
AT+CGQREQ=?
+ CGQREQ: (1-3),(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
AT+CGQREQ?
+CGQREQ: 1,2,4,3,9,10
+CGQREQ: 2,2,4,3,9,10
+CGQREQ: 3,2,4,3,9,10
OK
AT+CGQREQ=1,0,,0,0,0
OK
AT+CGQREQ?
+CGQREQ: 1,0,4,0,0,0
+CGQREQ: 2,2,4,3,9,10
+CGQREQ: 3,2,4,3,9,10
OK
3-32
AT Command Set
Description
Requests serial number identification.
Command Possible Response/Action
AT+CGSN +CGSN: <sn>
OK
+CME ERROR: <err>
AT+CGSN? +CME ERROR: <err>
AT+CGSN=? OK
+CME ERROR: <err>
where:
Example
AT+CGSN?
ERROR
AT+CGSN=?
OK
AT+CGSN
+CGSN: “447764074608839”
OK
3-33
G18 GSM/GPRS Modem AT Command Set
Description
Switches between active calls.
Command Possible Response/Action
AT+CHLD=? +CHLD: (list of supported values)
OK
+CME ERROR: <err>
AT+CHLD=<mode> Switches between the active calls
OK
+CME ERROR: <err>
AT+CHLD? +CME ERROR: <err>
where:
<mode>:
0 releases all held calls or sets User Determined User Busy (UDUB)
for a waiting call
1 releases all active calls (if any exist) and accepts the other (held
or waiting) call
1X releases a specific active call X
2 places all active calls (if any exist) on hold and accepts the other
(held or waiting) call
2X places all active calls on hold except call X with which
communication is supported. If there is no such call, returns error
22
3 adds a held call to the conversation
3-34
AT Command Set
3-35
G18 GSM/GPRS Modem AT Command Set
3-36
AT Command Set
3-37
G18 GSM/GPRS Modem AT Command Set
Example
AT+CHLD=? [list of supported <n>s]
+CHLD: (0,1,1X,2,2X,3)
OK
AT+CHLD =1 [ME is not in conversation]
+CME ERROR: operation not allowed
RING
ATA
OK
AT+CHLD
NO CARRIER
AT+CHLD=2 [call put on hold]
OK
AT+CHLD=2 [call is reconnected]
OK
AT+CHLD=2 [incoming intruder call]
OK [first call put on hold and second call
received]
AT+CHLD=2 [second call put on hold and first call
becomes active]
OK
AT+CHLD=3 [add held call to conversation]
AT+CHLD=21 [second call put on hold]
OK
3-38
AT Command Set
Description
Terminates a call.
Command Possible Response/Action
AT+CHUP NO CARRIER
OK
AT+CHUP? +CME ERROR: <err>
AT+CHUP=? OK
+CME ERROR: <err>
Example
AT+CHUP=?
OK
RING
AT+CHUP
NO CARRIER
OK
AT+CHUP?
ERROR
3-39
G18 GSM/GPRS Modem AT Command Set
Description
Requests IMEI.
Command Possible Response/Action
AT+CIMI +CIMI: <IMSI>
OK
+CME ERROR: <err>
AT+CIMI? +CME ERROR: <err>
AT+CIMI=? OK
+CME ERROR: <err>
where:
<IMSI>: International Mobile Subscriber Identity (string without double quotes)
Example
AT+CIMI=?
OK
AT+CIMI
+CIMI: 425010100420457
OK
3-40
AT Command Set
Description
Sends IP primitives (messages used by the DSC bus) over RS232.
Command Possible Response/Action
AT+CIP=<Data length>,<Prim_Id>, +CIP: <Data length>, <Prim id Cnf/Ind>, <Data>
<Sub_addr>,<Data> OK
+CME ERROR: <err>
AT+CIP? +CME ERROR: <err>
AT+CIP=? +CME ERROR: <err>
where:
<data length>: characters in decimal
<prim_id>: in hex (2 bytes)
<Sub_addr>: destination in hex (2 bytes)
<data>: in hex
Note
There are 2 characters in 1 byte.
Example
AT+CIP=8,a842,0020,00010001
+CIP: 38,a844,0001093033353638343133318105726F6E6974
OK
3-41
G18 GSM/GPRS Modem AT Command Set
Description
Enables +CIP command.
Command Possible Response/Action
AT+CIPE=? +CIPE: (list of supported <mode>s)
OK
+CME ERROR: <err>
AT+CIPE? +CIPE: <mode>
OK
+CME ERROR: <err>
AT+CIPE=<mode> OK
+CME ERROR: <err>
where:
<mode>:
0 disable +CIP command
1 enable +CIP command
Example
AT+CIPE=1
OK
AT+CIPE?
+CIPE: 1
OK
AT+CIPE=?
+CIPE: (0, 1)
OK
3-42
AT Command Set
Description
Controls how ME handles keystrokes.
Command Possible Response/Action
AT+CKPD=<Keys>[,<time>[, OK
<pause>]] +CME ERROR: <err>
AT+CKPD? +CME ERROR: <err>
AT+CKPD=? OK
+CME ERROR: <err>
where:
<keys>:
# hash (number sign)
* star (*)
09 Number keys
: escape character for manufacturer-specific keys
; escape character for string entering
< left arrow
> right arrow
C/c clear display (C/CLR)
D/d volume down
E/e connection end (END)
L/l phone lock (LOCK)
M/m menu (MENU)
Q/q quiet/mute (MUTE)
S/s connection start (SEND)
T/t store/memory (STO/M/M+)
U/u volume up
3-43
G18 GSM/GPRS Modem AT Command Set
where:
V/v down arrow
Y/y delete last character (C)
:0 smart button (colon followed by zero)
:a voice annotator
^ up arrow
<time>, <pause>:
0..255 0-25.5 seconds (default values are manufacturer specific, but should be long
enough for ME to handle key strokes correctly)
Example
AT+CKPD=?
OK
AT+CKPD=M
ERROR
AT+CKPD=”M>>S”
OK
3-44
AT Command Set
Description
Lists current calls and asynchronous answers.
Command Possible Response/Action
AT+CLCC=<state> OK
+CME ERROR: <err>
AT+CLCC=? OK
+CME ERROR: <err>
AT+CLCC? +CLCC: <state>
OK
+CME ERROR: <err>
AT+CLCC +CLCC: <id1>,<direction>,<call
state>,<mode>,<mpty>[,
<number>,<type>,<alpha>
OK
+CME ERROR: <err>
where:
<state>
0 Enable clcc unsolicited indication
1 Disable clcc unsolicited indication
<direction>:
0 Mobile Originated call
1 Mobile Terminated call
<call state>:
0 active
1 held
2 dialing
3 alerting
3-45
G18 GSM/GPRS Modem AT Command Set
where:
4 incoming
5 waiting
6 release
<mode>:
0 voice call
1 data
2 fax
<mpty>: multiparty
0 call is not part of a conference call
1 call is one of multiparty call parties
<number>: phone number
<type>:
129 normal number
145 international number with access character +
<alpha>
The alpha string from phone book, if this phone number exists in
any phone book.
<id>
Integer type call identification number, as described in GSM 02. 30
[19] subclause 4.5.5.1 This number can be used in +CHLD
command operations.
Notes
Add non standard "released" state.
Asynchronous answers are also allowed, using AT+CLCC=1.
In the release state, the call mode is always zero.
3-46
AT Command Set
Example
AT+CLCC=?
OK
AT+CLCC?
+CLCC: 0
OK
AT*d01256316830
OK
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"01256316830",129,“Shmuel”
OK
AT+CHUP
NO CARRIER
3-47
G18 GSM/GPRS Modem AT Command Set
Description
Locks calling facilities.
Command Possible Response/Action
AT+CLCK=? +CLCK: (list of supported <facilitie>s)
OK
+CME ERROR: <err>
AT+CLCK? +CME ERROR: <err>
AT+CLCK=<facility>, When <mode>=2 and command successful and
<mode>,[<password>[,<class>]] <class> is relevant:
+CLCK: <status>, <class1>
[<CR><LF>+CLCK:
<status>,<classe2>[...]]
OK
When <mode>=0,1 and command successful:
OK
+CME ERROR: <err>
where:
<facility>:
CS key pad
SC SIM card
AO block all outgoing calls
OI block all outgoing international calls
OX block outgoing international calls except to home country
AI block all incoming calls
IR block incoming calls when roaming outside home country
AB all blocking services
AG all outgoing blocking services
AC all incoming blocking Services
3-48
AT Command Set
where:
FD SIM fixed dialing feature
<mode>:
0 unlock
1 lock
2 query status
<password>: call block password or PIN1 to lock/unlock SIM or PIN2 for SIM fixed dialing
feature
<class>: sum of integers representing information for call blocking services
1 voice
2 data
4 fax
<status>:
0 not active
1 active
Example
AT+CLCK=?
+CLCK: (“CS”,“SC”,“AO”,“OI”,“OX”,“AI”,“IR”,“AB”,“AG”, “AC”,“FD”)
OK
AT+CLCK?
+CME ERROR: “operation not allowed”
AT+CLCK=“OX”,2
+CLCK: 0,1
+CLCK=0,2
+CLCK: 0,4
OK
AT+CLCK=FD,2
+CLCK: 0,7 [write operations into FD area possible if PIN2 was
entered at least once after power up]
OK
3-49
G18 GSM/GPRS Modem AT Command Set
Description
Shows the number of the calling party.
Command Possible Response/Action
AT+CLIP=? +CLIP:(list of supported <n>s)
OK
+CME ERROR: <err>
AT+CLIP? +CLIP: <n>,<m>
OK
+CME ERROR: <err>
AT+CLIP=<n> Shows the number of the calling party
OK
+CME ERROR: <err>
where:
<n>:
0 disable (default)
1 enable
<m>:
0 CLIP not provisioned
1 CLIP provisioned
2 unknown
3-50
AT Command Set
Example
AT+CLIP=1
OK
RING
+CLIP: “+496113611404”,145
RING
+CLIP: “+496113611404”,145
AT+CLIP=?
+CLIP: (000,001)
OK
AT+CLIP=0
OK
RING
3-51
G18 GSM/GPRS Modem AT Command Set
Description
Shows the number of the called party.
Command Possible Response/Action
AT+CLIR=? +CLIR: (list of supported <n>s)
OK
+CME ERROR: <err>
AT+CLIR? +CLIR: <n>,<m>
OK
+CME ERROR: <err>
AT+CLIR=<n> OK
+CME ERROR: <err>
where:
<n>:
0 used according to the subscription of the CLIR service
1 enable
2 CLIR suppression in permanent mode
<m>:
0 CLIR not provisioned
1 CLIR provisioned
2 unknown
3 CLIR temporarily restricted
4 CLIR temporarily allowed
3-52
AT Command Set
Note
This command enables or disables presentation of the CLI to the called party when
originating a call. The behavior is according to the last action performed by HS or RS232.
For information about When HS affects only the next call and +CLIR command is affected
until phone power off, refer to the following table.
Example
AT+CLIR=?
+CLIR: (0,1,2)
OK
AT+CLIR?
+CLIR: 000,004
AT+CLIR=2
OK
AT+CLIR?
+CLIR: 002,004
3-53
G18 GSM/GPRS Modem AT Command Set
Description
Sets ME control mode.
Command Possible Response/Action
AT+CMEC=? +CMEC: (list of supported <keyp>s),
(list of supported <disp>s),
(list of supported <ind>s)
OK
+CME ERROR: <err>
AT+CMEC? +CMEC: <keyp>,<disp>,<ind>
OK
+CME ERROR: <err>
AT+CMEC= [<keyp>[,<disp>[,<ind>]]] OK
+CME ERROR: <err>
where:
<keyp>:
0 ME can be operated only through its keypad
2 ME can be operated from both ME keypad and TE
<disp>:
0 only ME can write to its display
<ind>:
0 only ME can set the status of its indications
Note
Set command selects the equipment that operates the ME keypad, writes to the ME display,
and sets the ME indications.
3-54
AT Command Set
Example
AT+CMEC?
+CMEC: 02, 00, 00
OK
AT+CMEC=?
+CMEC: (00,02), (00), (00)
OK
AT+CMEC=2, 0, 0
OK
3-55
G18 GSM/GPRS Modem AT Command Set
Description
Reports a description of the error.
Command Possible Response/Action
AT+CMEE=<n> Shows a description of the error
OK
+CME ERROR: <err>
AT+CMEE? +CMEE: <n>
OK
+CME ERROR: <err>
AT+CMEE=? +CMEE: (list of supporting <n>s)
OK
+CME ERROR: <err>
where:
<n>:
0 disable
1 enable (numeric)
2 enable (verbose)
3-56
AT Command Set
Example
AT+CMEE?
+CMEE: 000
OK
AT+CMEE=?
+CMEE: (0-2)
OK.
AT+CMEE=1
OK
AT+CMEE?
+CMEE: 1
OK
AT+CMEE=2
OK
AT+CMEE?
+CMEE: 2
OK
3-57
G18 GSM/GPRS Modem AT Command Set
Description
Sets ME event reporting.
Command Possible Response/Action
AT+CMER=? +CMER: (list of supported <mode>s), (list of
supported <keyp>s), (list of supported <disp>s),
(list of supported <ind>s), (list of supported <bfr>s)
OK
+CME ERROR: <err>
AT+CMER? +CMER: <mode>, <keyp>, <disp>, <ind>, <bfr>
OK
+CME ERROR: <err>
AT+CMER= OK
[<mode>[,<keyp>[,<disp>[,<ind>[<bf +CME ERROR: <err>
r>]]]]]
where:
<mode>:
0 buffer unsolicited result codes in the TA; if TA result code buffer is
full, codes can be buffered elsewhere or the oldest ones can be
discarded
<keyp>:
0 no keypad event reporting
<disp>:
0 no display event reporting
1 display event reporting +CDEV: <upper corner>, <text>, <lower
corner>. The display height is 54 pixels: 0-53.
The upper corner refers to the starting high point and the lower
corner refers to the bottom right ending point.
3-58
AT Command Set
where:
<ind>:
0 no indicator event reporting
1 indicator event +CIEV: <ind>, <value>
<ind> indicates the indicator order number
<value> is the new value of indicator
+ciev:00, 00 Battery indicator (0-3)
+ciev:01, xx Signal bars # (xx=1-5)
+ciev:02, xx Service availability 0/1
+ciev:03, xx SMS envelope ind (0/1)
+ciev:04, xx Call in progress (0/1)
+ciev:05, xx Roaming indicator (0/1)
+ciev:06, xx Sim pin1 requested (0/1)
+ciev:07, x Sim SMS full (0/1)
+ciev:08, x GPRS coverage (0/1)
+CIEV:10, xx Voice volume level (xx=00-07).
+CIEV:11, xxRinger volume level (xx=00-07).
<bfr>:
0 TA buffer of unsolicited result codes defined within this command
is cleared when <mode> 13 is entered
Example
AT+CMER=?
+CMER: (00), (00), (00,01), (00,01), (00)
OK
AT+CMER?
+CMER: 00, 00, 00, 00, 00
OK
AT+CMER=0, 0, 1, 0, 0
OK
+CDEV: 19, “orange”, 35
3-59
G18 GSM/GPRS Modem AT Command Set
Description
Deletes message.
Command Possible Response/Action
AT+CMGD=<index> Deletes SMS or group of SMSs
[,<delflag>] OK
+CME ERROR: <err>
AT+CMGD? +CME ERROR: <err>
AT+CMGD=? OK
+CME ERROR: <err>
where:
Notes
You cannot use ID=0 to delete SMS.
You may use ID=75 to delete SMS.
If you enter an illegal ID or non-existent SMS to delete SMS, you receive an "Invalid index"
error.
For 1-4 above, <index> should be a valid number, for <delflag> = 1/2/3/4, <index> should
be in the range of SMS storage memory (1-75), even though the message with this index
might not exist.
3-60
AT Command Set
Example
AT+MMGL
+MMGL: 004,001,041
07917952140230F2040B917952545600F10000208080418245001965B339DD080147A
492D7A432A152DF15DFDFEA71C10D
+MMGL: 005,001,,023
07917952140230F2040B917952545600F10000208011213182000465B3390D
+MMGL: 006,001,,009
0001FF00800000024122
+MMGL: 007,000,,023
07917952140230F2040B917952545600F100002080112151340004E131D90C
+MMGL: 008,002,,010
0001FF0080000003416213
OK
AT+CMGD=6
OK
AT+MMGL
+MMGL: 004,001,,041
07917952140230F2040B917952545600F10000208080418245001965B339DD080147A
492D7A432152DF15DFDFEA71C10D
+MMGL: 005,001,,023
07917952140230F2040B917952545600F10000208011213182000465B3390D
+MMGL: 008,000,,023
07917952140230F2040B917952545600F100002080112151340004E131D90C
+MMGL: 008,002,,010
0001FF0080000003416213
OK
AT+CMGD=30,1
OK
AT+MMGL
+MMGL: 007,000,,023
07917952140230F2040B917952545600F100002080112151340004E131D90C
3-61
G18 GSM/GPRS Modem AT Command Set
+MMGL: 008,002,,010
0001FF0080000003416213
OK
AT+MMGL=1,3
OK
AT+MMGL
+MMGL: 007,000,,023
07917952140230F2040B917952545600F100002080112151340004E131D90C
OK
AT+CMGD=1,4
OK
3-62
AT Command Set
Description
Selects PDU or text mode message format.
Command Possible Response/Action
AT+CMGF=<mode> OK
+CME ERROR: <err>
AT+CMGF? + CMGF: <mode>
OK
+CME ERROR: <err>
AT+CMGF=? + CMGF: (<list of supporting <mode>s)
OK
+CME ERROR: <err>
where:
Example
AT+CMGF?
+CMGF: 000
OK
AT+CMGF=?
+CMGF: (000)
OK
AT+CMGF=1
+CME ERROR: operation not allowed
3-63
G18 GSM/GPRS Modem AT Command Set
Description
Lists messages.
Command Possible Response/Action
AT+CMGL[=<stat>] If PDU mode (+CMGF=0) and command
successful:
CMGL:
<index>,<stat>,[<alpha>],<length>
<CR><LF><pdu>
[<CR><LF>+CMGL:<index>,<stat>,
[<alpha>],<length><CR><LF><pdu>[...]]
OK
+CMS ERROR: <err>
AT+CMGL=? +CMGL: (list of supported <stat>s)
OK
+CME ERROR: <err>
AT+CMGL? +CME ERROR: <err>
where:<state>
0 "REC UNREAD" received unread message (i.e., new message)
1 "REC READ" received read message
2 "STO UNSENT" stored unsent message
3 "STO SENT" stored sent message
4 "ALL" all messages
<index> The value of the message location in the range of location
numbers is supported by the associated memory.
<alpha> Not supported
3-64
AT Command Set
Notes
Use any valid value of the +CMGL parameter (0-4) to list all messages.
The selection list of messages is valid only in software versions above E6.01.10
Wait for OK before sending new AT commands.
Example
AT+CMGL=?
+CMGL: (000-004)
OK
AT+CMGL?
ERROR
AT+CMGL
+CMGL: 001,000,023
0791947122723033040B831027492204F000009930926145148004C2A2F308
OK
3-65
G18 GSM/GPRS Modem AT Command Set
where:
0 “REC UNREAD”, received unread message (for example, new message).
1 “REC READ”, received read message.
2 “STO UNSENT”, stored unsent message.
3 “STO SENT”, stored sent message.
4 “ALL”, all messages (default).
<index> The value of the message location in the range of location numbers is
supported by the associated memory.
<alpha> Not supported.
Example
AT+CMGR=2
+CMGR: 001,,023
0791947122723033040B831027492204F000009930927190948004C2A2F308
OK
3-66
AT Command Set
Description
Sends a message.
Command Possible Response/Action
(CMGF=0) The command is aborted with <esc>. If the
AT+CMGS=<length> message is sent successfully:
<CR> +CMGS:000.
(PDU is given) OK
<ctrl-z/ESC> If the message is not sent successfully:
(message is terminated with +CMS ERROR:<err>
control-Z character (0x1A))
AT+CMGS? +CME ERROR:<err>
AT+CMGS=? OK
+CME ERROR:<err>
where:
<length>: number of octets coded in the TP
<cr>: after terminating with <cr>, the PDU can be given from the TE
<crtl-z>: indicates the end of the PDU
Notes
When an SMS is sent using AT+CMGS, the DTE receives the status. Sent messages are
not stored in the SIM. After an SMS is sent and stored in the SIM (using block mode
commands), it can be filtered or displayed via AT+CMGL=3. A similar message cannot be
sent later using the AT+CMSS command.
3-67
G18 GSM/GPRS Modem AT Command Set
Description
Writes messages.
Command Possible Response/Action
(CMGF=0) Stores the SMS message
AT+CMGW=<length><CR>PDU is If storage succeeds:
given <ctrl-z/ESC> +CMGW: <index>
OK
If storage fails:
+CMS:<err>
The message is terminated with control-Z
character (0x1A)
The command is aborted with <esc>
AT+CMGW? +CME ERROR:<err>
AT+CMGW=? OK
+CME ERROR:<err>
where:
<length>: number of octets in the TP
<index>: location of the stored message
<cr>: After terminating with <cr>, the PDU can be given from the TE
<crtl-z>: Indicates the end of the PDU
Example
AT+CMGW=24
>07917952140230F2040B917952545630F200000070528141630005A060B10902
<ctr1/Z>
+CMGW: 001
OK
3-68
AT Command Set
Description
Selects calling mode.
Command Possible Response/Action
AT+CMOD=? +CMOD: (list of supported <mode>s)
OK
+CME ERROR:<err>
AT+CMOD? +CMOD: <mode>
OK
+CME ERROR:<err>
AT+CMOD=[<mode>] OK
+CME ERROR:<err>
where:
<mode>:
0 single mode
1 alternating voice/fax (teleservice 61)
Example
AT+CMOD =?
+CMOD: (000, 001)
OK
AT+CMOD?
+CMOD: 000
OK
AT+CMOD=1
OK
3-69
G18 GSM/GPRS Modem AT Command Set
Description
Sends message from storage.
Command Possible Response/Action
AT+CMSS=? OK
+CME ERROR:<err>
AT+CMSS=<index>[,<da>[,<toda>]] If PDU mode (+CMGF=0) and sending successful:
+CMSS: <mr>
OK
If sending fails:
+CMS ERROR: <err>
AT+CMSS? +CME ERROR:<err>
where:
<mr>: message reference
<da>: destination address
<toda>: type of destination address
129 normal format
145 international format
Example
AT+CMSS=1, “054511511”
+CMSS: 002
3-70
AT Command Set
Description
Selects multiplexing mode.
Command Possible Response/Action
AT+CMUX=0 OK
or
+CME ERROR: “Operation not allowed”
AT+CMUX? +CMUX: 0,0,1,31,10,3,30,10,2,0,1,0,0
or
+CME ERROR: <err>
AT+CMUX=? +MECC: (0)
where:
AT+CMUX=0 When sending the command outside the Mux
When sending the command from the Mux
AT+CMUX? When sending the command from the Mux
When sending the command from the Mux
3-71
G18 GSM/GPRS Modem AT Command Set
Description
Acknowledges a new message to ME/TA.
Command Possible Response/Action
AT+CNMA OK
+CME ERROR:<err>
AT+CNMA? +CME ERROR:<err>
AT+CNMA=? +CME ERROR:<err>
Note
This command must be sent within 60 seconds after the DTE receives the message, or the
message is stored on the SIM card and the parameters of the CNMI command is set to
zero.
Refer to AT+CNMI, New Message Indications to TE+CNMI on page 3-73, for examples.
3-72
AT Command Set
Description
Indicates new messages.
Command Possible Response/Action
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
+CMS ERROR: <err>
AT+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
+CMS ERROR: <err>
AT+CNMI=[<mode>[,<mt>[,<b OK
m> +CMS ERROR: <err>
[,<ds>[,<bfr>]]]]]
where:
<mode>:
0 Buffer unsolicited result codes in the TA. If TA result code buffer is
full, indications can be buffered elsewhere or the oldest indications
may be discarded and replaced with the new indications.
<mt>:
0 no SMS DELIVER indications are routed to the TE
1 indication of memory location is routed to the TE
2 SMS DELIVER indications are routed directly to TE
<bm>:
0 no CBM indications are routed to TE
2 new CBMs are routed directly to TE
<ds>:
0 no SMS-STATUS-REPORTs are routed to TE
3-73
G18 GSM/GPRS Modem AT Command Set
where:
1 SMS-STATUS-REPORTs are routed to the TE using unsolicited
result code: +CDS: <length><cr><lf><pdu>
<bfr>:
0 TA buffer of unsolicited result codes defined within this command
is flushed to TE when <mode> 13 is entered (OK response is
returned before flushing the codes)
Notes
While conducting a data call, the receipt of an SMS resets the +CNMI setting, indicating
something unexpected has occurred.
After automatically transferring a SMS/CBM message to the DTE (mt=2 and/or bm=2), the
modem waits for a +CNMA response from the DTE (within one minute). If the DTE does
not respond within this time, or if another message arrives from the network, the modem
saves the message in SIM, exits from SMS mode, and sets all CNMI parameters to zero.
When DTE does not respond on time for other SMS indications (E6.13.24 and above), the
CNMI indication for cell broadcast messages is not cleared automatically.
In the following scenario, the modem ends SMS mode and resets the CNMI
parameters.This indicates that something occurred during the data call:
1 AT CNMI=0,1,0,1,0 or CNMI=0,2,0,1,0
3 SM received.
The G18 will end SMS mode and reset the CNMI parameters. This will indicate to the user
that something occurred during the data call.
3-74
AT Command Set
Example
AT+CMGL
OK [no messages on SIM]
AT+CNMI=0,2,2,1
OK
AT+CNMI?
+CNMI: 000,002,002,001,000
OK
+CMT: 026 [first message indication]
07917952140230F2040B917952545608F500001010034171700007
B12915D49C1E01
AT+CNMA [response of DTE]
OK
+CMT: 036 [second message indication]
07917952140230F2040B917952545608F500001010034183800013C7E793086A3EA5C
EA4F308A23E41D96715
AT+CNMA [response of DTE]
OK
+CMT: 026 [third message indication]
07917952140230F2040B917952545608F500001010034102030007332911D49C1E01
AT+CNMI?
+CNMI: 000,000,002,000,000 [CNMI parameters changed since
DTE did not respond with +CNMA]
OK
AT+CMGL
+CMGL: 001,000,,026 [third message stored in SIM]
07917952140230F2040B917952545608F500001010034102030007332911
D49C1E01
OK
AT+CMGL
+CMGL: 001,001,,026
3-75
G18 GSM/GPRS Modem AT Command Set
07917952140230F2040B917952545608F500001010034102030007332911
D49C1E01
+CMGL: 002,000,,029 [new message also stored in SIM]
07917952140230F2040B917952545608F50000101003414240000BCEE215
D42C4EA7C16311
OK
AT+CNMI=0,2,2,1 [setting CNMI parameters to receive new
messages again on DTE]
OK
AT+CNMI=?
+CNMI: (000),(000-002),(000,002),(000,001),(000)
OK
3-76
AT Command Set
Description
Displays the numbers entered into “My Phone Numbers” from the Handset menu.
Command Possible Response/Action
AT+CNUM +CNUM
<alpha1>,<number1>,<type1>
[<CR><LF>+CNUM:
<alpha2>,<number2>,<type2>[...]]
OK
+CME ERROR:<err>
AT+CNUM?
AT+CNUM=? OK
+CME ERROR:<err>
where:
<alpha>:
Alphanumeric string, associated with <number>
<number>:
String type, phone type
<type>:
129 Normal number
145 International number with access character +.
Note
If you write a name that includes non-standard characters in “My Phone Number”, +CNUM
will read that name incorrectly
3-77
G18 GSM/GPRS Modem AT Command Set
Example
AT+CNUM=?
OK
AT+CNUM
+CNUM: voice, 054556426, 129
+CNUM: data, 054667739, 129
+CNUM: fax, 054422417, 129
OK
3-78
AT Command Set
Description
Selects the GSM network operator.
Command Possible Response/Action
AT+COPS=? +COPS: [list of supported (<stat>, long alpha
numeric <oper>, short alphanumeric <oper>,
numeric <oper>)][,,list of supported <mode>s), (list
of supported <format>s)}
OK
+CME ERROR:<err>
AT+COPS? +COPS: <mode>,<format>,<oper>
(current values)
OK
+CME ERROR:<err>
AT+COPS=[<mode>[,<format>[, Selects the operator
<oper>]]] OK
+CME ERROR:<err>
where:
<mode>:
0 automatic
1 manual
2 de-register from network
3 set only <format>
4 manual/automatic
<format>:
0 long alphanumeric
1 short alphanumeric
2 numeric
3-79
G18 GSM/GPRS Modem AT Command Set
where:
<operator status>:
0 unknown
1 available
2 current
3 forbidden
Note
When set command (=) is used without entering <oper>, the response is OK but no action
is performed (AT+COPS=<mode>,<format><cr>, the response is OK).
When manually de-registering from the network using AT+COPS=1,2, the phone
automatically searches for a new network and logs in.
Example
AT+COPS=?
+COPS: (2,“” ,“D2 PRIVAT”,“26202”),(0,“” ,“A1”,“23201”),(0,“” ,“F SFR”,“20810”),
(0,“” ,“GR PANAFON”,“20205”),(0,“” ,“S EURO”,“24008”),
(0,“” ,“EUROTEL-CZ”,“23002”), (0,“” ,“NL LIBERTEL”,“20404”),
(0,“” ,“I OMNI”,“22210”),(3,“” ,“D1-TELEKOM”,“26201”),,( 0,1,2,3,4),(0,1,2)
OK
AT+COPS?
+COPS: 0,0,“D2 PRIVAT”
OK
AT+COPS=0
OK
AT+COPS=1
OK
AT+COPS=1,0,d1-telekom
ERROR:
AT+COPS=1,1,d02
OK
AT+COPS=1,1,d01
3-80
AT Command Set
ERROR:
AT+COPS=2
OK
AT+COPS=3
OK
AT+COPS=4
OK
AT+COPS=4,2,d01
OK
AT+COPS=4,2,26201
ERROR
AT+COPS=4,0,“D1-Telekom”
ERROR
AT+COPS=4,0,d1-telekom
ERROR
AT+COPS=4,2,d
OK
AT+COPS=4,2,d02
OK
3-81
G18 GSM/GPRS Modem AT Command Set
Description
Reports the status of the phone activity.
Command Possible Response/Action
AT+CPAS=? +CPAS: (list of supported<pas>s)
OK
+CME ERROR:<err>
AT+CPAS +CPAS: <pas>
OK
+CME ERROR:<err>
AT+CPAS? +CME ERROR:<err>
where:
<pas>:
0 ready
1 unavailable
2 unknown
3 ringing (MT calls)
4 call in progress
5 asleep
3-82
AT Command Set
Example
AT+CPAS
+CPAS: 000
OK
AT+CPAS=?
+CPAS: (000-005)
OK
AT+CPAS?
ERROR
3-83
G18 GSM/GPRS Modem AT Command Set
Description
Locates phone book entries.
Command Possible Response/Action
AT+CPBF=? +CPBF: <nlength>, <tlength>
OK
+CME ERROR: <err>
+CPBF=<findtext> +CPBF: <index1>, <number>,<type>, <text>
[<CR><LF>+CBPF:<index2>, <number>, <type>,
<text>[..]]
OK
+CME ERROR: <err>
AT+CPBF? +CME ERROR:<err>
where:
<index1>, <index2>: integer type values in the range of location numbers of phone book
memory
<number>: string type phone number of format <type>
<type>: type of address octet in integer format (refer GSM 04.08 [8] subclause 10.5.4.7)
<find text>, <text>: string type field of maximum length
<tlength>: character set as specified by command Select TE Character Set +CSCS
<nlength>: integer type value indicating the maximum length of field <number>
<tlength>: integer type value indicating the maximum length of field <text>
3-84
AT Command Set
Note
Set command returns phone book entries (from the current phone book memory storage,
selected with +CPBS) when the alphanumeric field starts with <findtext>.
For example:
Example
AT+CPBS =SM
OK
AT+CPBF =?
+CPBF: 020, 014
OK
AT+CPBF =”RON”
+CPBF: 105, “035655555”, 129, “RON”
+CPBF: 106, “054564254”, 129, “RONEN”
OK
AT+CPBF =“ron”
OK
AT + CPBF = [list all entries]
+CPBF: 101, “6251455”, 129, “AVI”
+CPBF: 102, “052646651”, 129, “DAVID”
+CPBF: 103, “04621515”, 129, “BEN”
+CPBF: 104, “02665111”, 129, “CHRIS”
+CPBF: 105, “03565555”, 129, “RON”
+CPBF: 106, “054564254”, 129, “RONEN”
OK
3-85
G18 GSM/GPRS Modem AT Command Set
Description
Reads phone book entries.
Command Possible Response/Action
AT+CPBR=? +CPBR: (list of
supported<index>s),<nlength>,<tlength>
OK
+CME ERROR:<err>
AT+CPBR=<index> +CPBR: <index>,<number>,<type>,<text>
OK
+CME ERROR:<err>
AT+CPBR? +CME ERROR:<err>
where:
3-86
AT Command Set
Example
AT+CPBR=?
+CPBR: (1-200),32,18
OK
AT+CPBR=73
+CPBR: 73, “+496128970912”,145, “Eigene Number”
OK
AT+CPBR=10 [Empty entry]
OK
AT+CPBR=101
+CPBR: 101,“+491721212”,145,“D2-Kundenbetreuung”
OK
AT+CPBR=74
+CPBR: 74,“+496113611400”,145,“test”
OK
AT+CPBR=124
+CPBR: 124,“+4917222333”,145,“D2-Hotelservice”
OK
3-87
G18 GSM/GPRS Modem AT Command Set
Description
Selects phone book memory storage (optional if phone book not supported).
Command Possible Response/Action
AT+CPBS=<storage> OK
+CME ERROR:<err>
AT+CPBS? +CPBS:<storage>[,<used>,<total>]
OK
+CME ERROR:<err>
AT+CPBS=? +CPBS:(list of supported <storage>s)
OK
+CME ERROR:<err>
where:
<storage>:
FD SIM fix dialing phone book
LD Last dialing phone book
ME ME phone book
MT ME and SIM phone book
SM SIM phone book
DD Direct Dial phone book
RC ME received calls list
MC ME missed calls list
Note
The modem responds to AT+CPBS=? with the current initialized phone books:
+CPBS:("FD","LD","ME","MT","SM","DD","RC","MC").
It may take up to 45 seconds to see all the phone books.
3-88
AT Command Set
MC (missed calls) and RC (received calls) share the same area. They are both limited to a
total of 10 records, and they are both sorted by their time stamps, where the first record in
the phone book is the latest call received or not answered.
Example
AT+CPBS=?
+CPBS: (“FD”,“LD”,“ME”,“MT”,“SM”,DD,“RC”,“MC”)
OK
AT+CPBS?
+CPBS: 0,0
OK
AT+CPBS=“fd”
OK
AT+CPBS?
+CPBS: “FD”,1,10
OK
AT+CPBS=“DC”
+CME ERROR: “operation not allowed”
AT+CPBS=“LD”
OK
AT+CPBS?
+CPBS: “LD”,10,10
OK
AT+CPBS=“me”
OK
AT+CPBS?
+CPBS: “ME”,0,100
OK
AT+CPBS=“MT”
OK
AT+CPBS?
+CPBS: “MT”,14,200
OK
3-89
G18 GSM/GPRS Modem AT Command Set
AT+CPBS=“SM”
OK
AT+CPBS?
+CPBS: “SM”,14,100
OK
3-90
AT Command Set
Description
Creates a new phone book entry.
Command Possible Response/Action
AT+CPBW=[<index>], OK
[,<number>[<type> [,<text>]]] +CME ERROR: <err>
AT+CPBW? +CME ERROR:<err>
AT+CPBW=? +CPBW:(list of supported
<index>s),[<nlength>],(list of supported
<type>s),[<tlength>]
OK
+CME ERROR:<err>
where:
<index>: location number of the phone book
<number>: phone number in format <type>
<type>: type of address
129 normal format
145 international format
<text>: String type field of maximum <tlength> length
<tlength>: maximum length of <text>
<nlength>: : maximum length of <number>
Note
When creating a new entry without a name, the response is OK, but no action takes place.
The telephone book "MT" is a combination of "ME" and "SM". Write entries to a specific
phone book (ME or SM) instead of to the MT phone book. When writing to the SM or ME
phone book, the modem validates the string length for phone number and label, as defined
for the specific phone book. When writing to the MT phone book, the modem is unable to
detect errors with a string length less than that allowed in the MT phone book, but more
3-91
G18 GSM/GPRS Modem AT Command Set
than what is defined in the specific phone book. In this case, the write action is not rejected,
but the number and text are truncated to the limit allowed for the specific phone book.
Example 1
AT+CPBS=“sm”;+cpbw=?
+CPBW: (101-220),020,(255,129,145),014 [SM phone book definitions: number
length limited to 20, text length limited to
14]
OK
AT+CPBS=“mt”;+cpbw=?
+CPBW: (001-220),032,(255,129,145),016 [MT phone book definitions:
number length limited to 32, text length
limited to 16.
OK
Example 2
Write a record to the SM area in the MT phone book (record 110 is in this area), with 21
digits for the phone number, and 15 digits for text. This is valid for the MT phone book, and
therefore no error is expected. However, since it is written to the SM area, the phone
number is truncated to 20 digits, and the text is truncated to 14 digits.
AT+CPBW=110,“123456789012345678901” [no error when writing to MT, to a slot
,,“123456789012345” defined in the SM phone book]
OK
AT+CPBR=110
+CPBR: 110,“12345678901234567890”, [record written to phone book as defined
129,“12345678901234” in the definition limitation]
OK
AT+CPBS=“mt”
OK
AT+CPBW=?
+CPBW: (001-200),32,(255,129,145),18
OK
AT+CMEE=2
OK
AT+CPBW=140,“+496113611404”,145,“Raum 1004”
3-92
AT Command Set
OK
AT+CPBS= “SM”
OK
AT+CPBW=140, “496113611404”, 145, “Raum 1004”
OK
AT+CPBS=“ME”
OK
AT+CPBW=73,“491726706014”,145,“eigene number”
OK
AT+CPBW=190,“491728788793”,145,“Freundin”
+CME ERROR: “invalid index”
AT+CPBS?
+CPBS: “ME”,2,100
OK
3-93
G18 GSM/GPRS Modem AT Command Set
Description
Enters or changes pin number. When entering the pin, a new pin is not required.
Command Possible Response/Action
AT+CPIN? +CPIN: <code>
OK
+CME ERROR:<err>
Responds with information about the SIM and
the PIN
AT+CPIN=<pin>[<newpin>] OK
+CME ERROR:<err>
Enters or changes pin number. When entering
the pin, a new pin is not required.
AT+CPIN=? OK
+CME ERROR:<err>
where:
<pin>: current PIN: String type 4-8 digits. To enable SIM card or change PIN, insert the
current PIN. When phone is blocked, insert the puk number.
<newpin>: new pin (after changing or entering PUK) 4 - 8 digits
<code>: indicates status of SIM and PIN
READY PIN not required
SIM PIN PIN required
SIM PUK PUK number required
SIM PUK2 PIN2 blocked
3-94
AT Command Set
Notes
The following AT commands are enabled without a valid SIM: GCAP, GMI,GMR, IFC,
CEER, CGMI, CGMM, CGMR, CGSN, CHUP, CIPE, CKPD, CMEE, CMER, CIP, CRC,
CSQ, CR.
When PUK is required, and only one parameter is given in +CPIN, error "PUK is required"
is returned.
Example
AT+CPIN=“3011” [The current PIN]
OK
AT+CPIN=?
OK
AT+CPIN?
+CPIN: READY
OK
AT+CPIN=“3011”,“2811” [Change PIN to 2811]
OK
AT+CPIN“1111” [Wrong PIN]
ERROR
AT+CPIN“1111” [Wrong PIN]
ERROR
AT+CPIN“1111” [Wrong PIN]
ERROR
AT+CPIN?
+CPIN: SIM PUK [After 3 times, phone is blocked]
OK
AT+CPIN=“71388330”,“3011” [When phone is blocked, release it with
PUK1 and new PIN.]
OK
AT+CLCK=“FD”,2 [check status of Fix Dialing phonebook]
+CLCK: 0,7 [enable dialing of all numbers]
OK
3-95
G18 GSM/GPRS Modem AT Command Set
3-96
AT Command Set
Description
Returns memory storage information.
Command Possible Response/Action
AT+CPMS=? +CPMS:
(list of support <mem1>s),
(list of support <mem2>s)
OK
+CMS ERROR:<err>
AT+CPMS? +CPMS: <mem1>,<used1>,<total1>,<mem2>,
<used2>,<total2>
OK
+CMS ERROR:<err>
AT+CPMS=<mem1>,[<mem2>] +CPMS: <used1>,<total1>,<used2>,<total2>
OK
+CMS ERROR:<err>
where:
3-97
G18 GSM/GPRS Modem AT Command Set
Example
AT+CPMS=?
+CPMS: (“SM”),(“SM”)
OK
AT+CPMS?
+CPMS: “SM”,005,020,“SM”,005,020
OK
AT+CPMS=“SM”
+CPMS: 005,020,005,020
OK
AT+CPMS?
+CPMS: “SM”,005,020,“SM”,005,020
OK
3-98
AT Command Set
Description
Lists preferred operators.
Command Possible Response/Action
AT+CPOL=? +CPOL: (list of supported <index>es),
(list of supported <format>s)
OK
+CME ERROR:<err>
AT+CPOL? +CPOL: <index1>,<format>,<oper1>
[<CR><LF>+CPOL:
<index2>,<format>,<oper2> [...]]
OK
+CME ERROR:<err>
AT+CPOL=[<index>][,<format>[, OK
<oper>]] +CME ERROR:<err>
where:
<index>: integer type; order number of operator in SIM preferred operator list
<format> of <oper>:
0 long format alphanumeric
1 short format alphanumeric
2 numeric
<oper>: string type; <format> indicates whether the format is alphanumeric or numeric
3-99
G18 GSM/GPRS Modem AT Command Set
Example
AT+CPOL =?
+CPOL: (1-32),(0-2)
OK
AT+CPOL ?
+CPOL: 001, 002, “425-01”
+CPOL:00 2, 002, “250-99”
OK
AT+CPOL =1
OK
AT+CPOL =1
+CME ERROR: Not found [index “1” is emptied before test]
3-100
AT Command Set
Description
Changes password.
Command Possible Response/Action
AT+CPWD=? +CPWD: (list of supported <fac>s,<pwdlength>s)
OK
+CME ERROR:<err>
AT+CPWD=<fac>,<oldpwd>,<newpwd> OK
+CME ERROR:<err>
AT+CPWD? +CME ERROR:<err>
where:
<fac>: string type; facility (upper/lower case acceptable)
CS control surface (keypad)
SC SIM card
AO block all outgoing calls
OI block outgoing international calls
OX block outgoing international calls except to home country
AI block all incoming calls
IR block incoming calls when roaming outside home country
AB all blocking services
AG all outgoing blocking services
AC all incoming blocking services
FD SIM fixed dialing feature (not supported)
P2 SIM PIN2
<oldpwd>, <newpwd>: string type
<oldpwd>: same as password specified for facility from ME user interface or using
command Change Password +CPWD
3-101
G18 GSM/GPRS Modem AT Command Set
where:
<newpwd>: new password; maximum length of password can be determined with
<pwdlength>
<pwdlength>: integer type; maximum length of the password for the facility
3-102
AT Command Set
Description
Enables service reporting.
Command Possible Response/Action
AT+CR=? +CR: (list of supported <mode>s)
OK
+CME ERROR:<err>
AT+CR? +CR: <mode>
OK
+CME ERROR:<err>
AT+CR=[<mode>] OK
+CME ERROR:<err>
where:
<mode>:
0 disables reporting
1 enables reporting
<serv>:
REL ASYNC asynchronous non-transparent
REL SYNC synchronous non-transparent
Note
Set command controls whether or not intermediate result code +CR: <ser> is returned from
the TA to the TE. If enabled, the 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
the intermediate result code CONNECT is transmitted.
3-103
G18 GSM/GPRS Modem AT Command Set
Example
AT+CR
ERROR
AT+CR=?
+CR: (000,001)
OK
AT+CR?
+CR: 000
OK
3-104
AT Command Set
Description
Enables extended format result codes.
Command Possible Response/Action
AT+CRC=? +CRC: (list of supported <mode>s)
OK
+CME ERROR:<err>
AT+CRC? +CRC: <mode>
OK
+CME ERROR:<err>
AT+CRC=[<mode>] OK
+CME ERROR:<err>
where:
<mode>:
0 disables extended format
1 enables extended format
<type>:
REL ASYNC asynchronous non-transparent
FAX facsimile (TS 62)
VOICE normal voice (TS 11)
Note
This command controls whether or not the extended format of incoming call indication is
used. When enabled, an incoming call is indicated to the TE with unsolicited result code
+CRING: <type> instead of the normal RING.
3-105
G18 GSM/GPRS Modem AT Command Set
Example
AT+CRC?
+CRC:000
OK
AT+CRC=1
OK
AT+CRC=?
+CRC: (000,001)
OK
+CRING: VOICE // Incoming voice call
3-106
AT Command Set
Description
Enables network registration.
Command Possible Response/Action
AT+CREG=? +CREG: (list of supported <n>s)
OK
+CME ERROR:<err>
AT+CREG? +CREG: <n>,<stat>[,<lac>,<ci>]
OK
+CME ERROR:<err>
AT+CREG=[<n>] OK
+CME ERROR:<err>
Controls the presentation of an unsolicited result code +CREG: <stat>
where:
<n>:
0 disables network registration
unsolicited result code
1 enables network registration
unsolicited result code
2 enables network registration and location information
unsolicited result code
<stat>:
0 not registered
1 registered (home network)
2 not registered but ME search for a network
3 registration denied
4 unknown
5 registered roaming
<lac>: 2 byte location code (hex)
3-107
G18 GSM/GPRS Modem AT Command Set
where:
<ci>: 2 bytes cell ID (hex)
Example
AT+CREG=?
+CREG: (000,001,002)
OK
AT+CREG?
+CREG: 000,001
OK
AT+CREG=2
OK
AT+CREG?
+CREG: 002,001,“6202”,“6113”
OK
AT+CREG=1
OK
AT+CREG?
+CREG: 001,001
OK
AT+CREG=0
OK
AT+CREG=2,5
ERROR
AT+CREG?
+CREG: 002, 001, “6202”, “6113”
OK
AT+CREG=1
OK
AT+CREG?
+CREG: 001,001
OK
3-108
AT Command Set
Description
Sets radio link protocol parameters.
Command Possible Response/Action
AT+CRLP=? +CRLP: (list of supported <iws>s), (list of
supported <mws>s), (list of supported <T1>s), (list
of supported <N2>s)
OK
+CME ERROR:<err>
AT+CRLP? +CRLP: <iws>, <mws>, <T1>, <N2>
OK
+CME ERROR:<err>
AT+CRLP=[<iws>[,<mws>[, OK
<T1>[,<N2>]]]] +CME ERROR:<err>
where:
<iws>: IWF to MS window size (default 61)
<mws>: MS to IWF window size (default 61)
<T1>: acknowledgement timer (default 48)
<N2>: retransmission attempts (default 6) in integer format (refer to GSM 04.22 [18]
subclause 5.4.3)
Example
AT+CRLP=?
+CRLP: (010-061),(010-061),(048-255),(006-010)
OK
AT+CRLP?
+CRLP: 061, 061, 048, 006
OK
3-109
G18 GSM/GPRS Modem AT Command Set
Description
Restricts SIM access.
Command Possible Response/Action
AT+CRSM=? +CRSM:
(list of supported <command>s)
(list of supported <fields>s)
OK
+CME ERROR:<err>
AT+CRSM=<command>,<fileid> +CRSM:
<sw1>,<sw2>[,response>]
OK
+CME ERROR:<err>
AT+CRSM? +CME ERROR:<err>
where:
<fileid>:
1 Flex-ID
2 Factory Info #1
3 Factory Info #2
197 IMSI
214 GID1
242 ICC ID
243 GID2
<sw1>, <sw2>: reason
00 success
01 SEEM not allowed: SIM card was removed or no such element
02 bad record number: record number is out of valid range
03 bad PIN: user has entered an incorrect PIN code
3-110
AT Command Set
where:
04 other technical problem: SIM card malfunction
05 unavailable: data is temporarily unavailable (initializing)
255 253 not allowed: call processor is still initializing
255 254 bad device: call processor has an internal error
255 255 locked: phone is locked by user
<response>: indicates successful completion of the command previously issued (hexa-
decimal character uppercase format). Requested data is returned.
Note
Only command 176 is supported.
Example
AT+CRSM=?
CRSM: (176),(197,214,242,243)
OK
AT+CRSM=176,214
CRSM: 0,0,FFFFFFFFFFFFFFFFFF00 0000000000000000
OK
3-111
G18 GSM/GPRS Modem AT Command Set
Description
Selects ring tone.
Command Possible Response/Action
AT+CRTT=? +CRTT: (list of supported <ring type number>s),
(list of supported <operation>s)
OK
+CME ERROR:<err>
AT+CRTT? +CRTT: <RingTypeNumber>
OK
+CME ERROR:<err>
AT+CRTT=<RingTypeNumber>, OK
<operation> +CME ERROR:<err>
where:
<RingTypeNumber>:
0 standard
1 British
2 French
3 German
4 Bravo
5 3 tone
6 siren
7 quick
8 1 ring
9 high
10 music
<operation>:
3-112
AT Command Set
where:
0 play
1 set
Example
AT+CRTT=?
+CRTT: (0-10), (0,1)
OK
AT+CRTT=4, 1
OK
AT+CRTT?
+CRTT: 4
OK
3-113
G18 GSM/GPRS Modem AT Command Set
Description
Sets service center address.
Command Possible Response/Action
AT+CSCA=? OK
+CME ERROR:<err>
AT+CSCA? +CSCA: <sca>,<type>
OK
+CMS ERROR:<err>
AT+CSCA= <sca>,<type> OK
+CMS ERROR:<err>
where:
3-114
AT Command Set
Example
AT+CSCA?
+CMS ERROR: SMSC address unknown
AT+CSCA=?
OK
AT+CSCA=“491722270333”,145
OK
AT+CSCA?
+CSCA: “+491722270333”,145
OK
3-115
G18 GSM/GPRS Modem AT Command Set
Description
Selects the cell broadcast message type.
Command Possible Response/Action
AT+CSCB=? +CSCB: (list of supported <mode>s)
OK
+CME ERROR:<err>
AT+CSCB? +CSCB: <mode>,<mids>,<dcss>
OK
+CME ERROR:<err>
CSCB=[<mode>[,<mids>[,<dc If mode=0 and <mids> is not specified or is an
ss>]]] empty string, then no channels are accepted, and
the g18 channel/mid list is cleared.
If mode=0 and <mids> is specified, but <dcss> in
not specified or is an empty string, then accept all
coding formats.
If mode=1 and <mids> is not specified or is an
empty string, then the g18 channel list will stay as
is.
If mode=1 and <mids> is specified, but <dcss> is
not specified or is an empty string, then accept all
coding formats.
OK
+CME ERROR:<err>
where:
<mode>:
0 Message types specified in <mids> and <dcss> are accepted.
1 Message type specified in <mids> and <dcss> are not accepted
<mids> Message ID/Channel: 0-65354
String type: Default is an empty string
<dcss> Data Coding Schemme: 0-255
String type: Default is an empty string
3-116
AT Command Set
+CSCB Parameters
• The default value for missing <mode> is 0.
• A comma must be followed with a value.
• When using <dcs> GSM 3.38, only non compressed messages with default
alphabet or UCS2 are transferred to TCU, and 8-bit data support is required.
• No more than 16 channels will be submitted in <mids>.
• The string type list <mids> and <dcss> may include only numbers (0-9), blanks,
comma and minus (-) characters.
• <mids> = 1-5 is equivalent to five channels.
• When <mode> is 0 and <mids> is a non-empty list, the list will be added to the
current G18 list. An error will not be issued if an item does not exist in the G18 list.
• When <mode> is 1 and <mids> is a non-empty list, the list will be deleted from the
current G18 list. An error will not be issued if an item does not exist in the G18 list.
• The <dcss> list can include schemes that are not handled by G18, without error
notification.
• AT+CSCB=0, “x,x”, “y,y”
When specifying a mid or a dcs several times in the same AT+CSCB request, the
mid/dcs will be added the same number of times to the G18 internal lists.
• AT+CSCB does not affect or represent SIM cell broadcast channel/language lists.
• The dcss specified refers to all incoming messages, and not only to mids specified
in the same AT command. For example, AT+CSCB=0, “1-5”, “1-7” followed by
AT+CSCB=0, “6-10”, “8” will update the G18 mids list to 1-10, and the dcs list to 1-
8. Any CB message that arrives with mid value of 1-10 and a dcs value between 1-
8 will be accepted by G18.
3-117
G18 GSM/GPRS Modem AT Command Set
• The number of concurrent cell broadcast channels from which the G18 forwards
cell broadcast messages to the DTE is not less than 21. (Five of the channels are
user-defined lists through SIM and menu handling).
• The G18 NAD delivers multiple pages of a cell broadcast messages to the DTE.
Each page is sent as an individual message, even though the pages will be
delivered in page based sequence.
• AT+CNMA in not requested for cell broadcast.
• G18 is unable to save all pages being processed in its memory. G18 will send
each page as it arrives. The page could not be a duplicate, or unorganized and
multiplexed with other pages. TCU should reconstruct messages and remove
duplicates. These messages should be shown to the user only after a
successful build.
• The G18 supports up to 15 pages in a message.
• the G18 NAD does not store CBM messages in SIM or NRM.
• +CNM’s <bm> value is not conververted to 0 by G18, unless requested to do so.
• Messages are sent to the TCU only when CNMI’s <bm> value is 2, and either
+CSCB’s channel list is not empty or SIM user’s list is not empty.
• The following two entities may be required to handle or listen to cell broadcasts:
• DTE using AT+CSCB command
• User predefined SIM list, where the user controls the list using the handset
menu.
These entities will be referred to later as requesters.
3-118
AT Command Set
Example
Testing the modes supported:
AT+CSCB=?
+CSCB: (0,1)
OK
Removing channels 4 and 6 from channel list, and removing the default dcs (0) from the
dcs list:
3-119
G18 GSM/GPRS Modem AT Command Set
AT+CSCB=1, “4,6” “”
OK
3-120
AT Command Set
Description
Reads the SIM card.
where:
<sim_type>:
1 External SIM card
2 Internal SIM card
Note
This command tells which SIM card reader is being used, either the internal one on the G18
board, or an external card reader via the DSC bus.
Example
AT+CSCR=?
ERROR
AT+CSCR?
+CSCR: 2 [Internal sim card.]
3-121
G18 GSM/GPRS Modem AT Command Set
Description
Selects character set.
Command Possible Response/Action
AT+CSCS=? +CSCS: (list of supported <chest>s)
OK
+CME ERROR:<err>
AT+CSCS? +CSCS: <chest>
OK
+CME ERROR:<err>
AT+CSCS= <chset> OK
+CME ERROR:<err>
where:
3-122
AT Command Set
Example
AT+CSCS=?
+CSCS: (“GSM”,“IRA”,”UCS2”)
OK
AT+CSCS?
+CSCS: “IRA”
OK
AT+CSCS=“gsm”
OK
AT+CSCS?
+CSCS: “GSM”
OK
AT+CSCS=“IRA”
OK
AT+CSCS?
+CSCS: “IRA”
OK
3-123
G18 GSM/GPRS Modem AT Command Set
Description
Sets SMS SIM parameters.
Command Possible Response/Action
AT+CSMP=? OK
+CME ERROR:<err>
AT+CSMP? +CSMP: <fo>,<vp>,<pid>,<dcs>
OK
+CME ERROR:<err>
AT+CSMP= OK
[<fo>[,<vp>[,<pid>[,<dcs>]]]] +CME ERROR:<err>
where:
<fo>: First Octet. Default, and after power up =17. This parameter is saved on the g18 NVM.
<vp>: Validity Period. Uses a relative format.
Range 0-225
Default Value= 167
000-143
(<vp>+1) x 5 minutes, meaning five-minute intervals for up to 12 hours.
144-167 12 hours + ((<vp> - 143) x 30 minutes)
168-196 (<vp> - 166) x 1 day
197-255 (<vp> - 192) x 1 week. This parameter is saved in SIM.
<pid>: Protocol Identifier
Range: 0-255
Default Value=0
Support Values
0 Text
34 Fax
36 Voice
3-124
AT Command Set
where:
37 ERMES
38 Paging
49 X400
50 eMail This parameter is saved on SIM
<dcs> Data Coding Scheme. Default, and after power up = 0. This parameter is ignored,
not verified, and stored in the g18 NVM.
Example
AT+CSMP=?
OK
AT+CSMP?
+CSMP: 17,119,0,0
OK
AT+CSMP= [Set default parameters]
OK
AT+CSMP?
+CSMP: 17,167,0,0
OK
AT+CSMP=20
OK
AT+CSMP?
+CSMP: 20,167,0,0
OK
+CSMP: 19,119,36,1
OK
[POWER CYCLE]
AT+CSMP?
+CSMP: 17,119,36,0 [Only <vp> and <pid> are saved. Other parameters are
ignored and not saved]
OK
3-125
G18 GSM/GPRS Modem AT Command Set
Description
Selects message service.
Command Possible Response/Action
AT+CSMS=? +CSMS: (list of supported <service>s)
OK
+CMS ERROR:<err>
AT+CSMS? +CSMS: <service>, <mt>, <mo>,<bm>
OK
+CMS ERROR:<err>
AT+CSMS=<service> +CSMS: <mt>, <mo>, <bm>
OK
+CMS ERROR:<err>
where:
<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 new command syntax may
be supported.
<mt>, <mo>, <bm>:
0 type not supported
1 type supported
<mt>: Mobile terminating message
<mo>: Mobile originate message
<bm>: Broadcast type message
3-126
AT Command Set
Example
AT+CSMS
ERROR
AT+CSMS=?
+CSMS: (000)
OK
AT+CSMS?
+CSMS: 000,001,001,001
OK
AT+CSMS=0
+CSMS: 001,001,001
OK
3-127
G18 GSM/GPRS Modem AT Command Set
Description
Returns signal quality.
Command Possible Response/Action
AT+CSQ=? +CSQ: (list of supported <rssi>s), (list of supported <ber>s)
OK
+CME ERROR:<err>
AT+CSQ +CSQ: <rssi>,<ber>
OK
+CME ERROR:<err>
AT+CSQ? +CME ERROR:<err>
where:
<rssi>:
0 0 Bars <-108 dBm
1 1 Bar -102 to -108 dBm
10 2 Bars -93 to -101 dBm
20 3 Bars -87 to -92 dBm
30 4 Bars -77 to -86 dBm
31 5 Bars >-76 dBm
99 unknown or undetectable
<ber> channel bit error rate (in percent):
0-7 RXQUAL values in the GSM 05.08 table
99 unknown or undetectable
Note
BER information is not supported.
3-128
AT Command Set
Example
AT+CSQ
+CSQ: 031,099
OK
AT+CSQ=?
+CSQ: (000-031,099), (000-007,099)
OK
3-129
G18 GSM/GPRS Modem AT Command Set
Description
Selects type of address and dial characters allowed in dial string.
Command Possible Response/Action
AT+CSTA=? +CSTA: (list of supported <type>s)
OK
+CME ERROR:<err>
AT+CSTA? +CSTA: <type>
OK
+CME ERROR:<err>
AT+CSTA=[<type>] OK
+CME ERROR:<err>
where:
<type>:
129 local phone number
145 with international access character +
Use default 145 when dialing string includes international access code character ‘+’,
otherwise 129.
3-130
AT Command Set
Example
AT+CSTA?
+CSTA: 129
OK
AT+CSTA=145
OK
AT+CSTA?
+CSTA: 145
OK
AT+CSTA=129
OK
AT+CSTA?
+CSTA: 129
OK
3-131
G18 GSM/GPRS Modem AT Command Set
Description
Sets Voice Mail Parameters.
Command Possible Response/Action
AT+CSVM= Sets or clears the voice mail number in the
<mode>[,number>[,<type>]] EEPROM or SIM, depending on the type of SIM
card.
OK
+CME ERROR:<err>
AT+CSVM? For mode=1:
+CSVM:
1, <number>, <type>
OK
For mode=0:
+CSVM: 0
OK
+CME ERROR:<err>
AT+CSVM=? +CSVM: (list of supporting <mode>s), (list of
supported <type>s)
OK
+CME ERROR:<err>
where:
<mode>:
0 Disable. Clears the number in the EEprom.
1 Enable. Must be followed by a number.
<number>: String format up to 35 characters.
+ International, allowed at start only.
0,9,0*,#: Digits and instruction
/,-,(blank,), Allowed,, ignored, not saved.
A, B, C, D:
3-132
AT Command Set
where:
, Pause control
: Allowed at end of number. May be omitted or ignored, but not
saved.
<type>: Type of number
Range: 0-255:
129: International or unknown international
145: International number
If <number> starts with +, then <type> must be 145 or omitted.
If <type> is 145 and <number> does not start with +, then add + to the start
of <number> (length of new <number> should not exceed 35).
<number>: Must include at least one digit.
The updated <number> is saved on either the EEPROM or SIM, depending on
the type of SIM card.
Example
AT+CSVM=?
+CSVM: (0,1),(129,145)
OK
AT+CSVM?
+CSVM: 1,”*155”, 129
OK
AT+CSVM=0 //Number cleared from eeprom
OK
AT+CSVM?
+CSVM: 0
OK
AT+CSVM=1
ERROR [Must be followed by a number]
AT+CSVM=1,”+155”,129
ERROR [If <number> starts with ‘+’ then <type> must be 145 or
3-133
G18 GSM/GPRS Modem AT Command Set
omitted]
AT+CSVM=1,”+155”,145
OK
AT+CVSM?
+CSVM: 1,”+155”,145
AT+CSVM=1,”*155AB “[(/,_,(,blank,),A,B,C,D): allowed, ignored, not saved.]
OK
AT+CSVM?
+CSVM: 1,”*155”,129
OK
AT+CSVM=1, “bcd” [Characters not allowed.]
ERROR
AT+CSVM=1,”” [<number> must be with at least one digit.]
ERROR
3-134
AT Command Set
Description
Rejects an incoming call and diverts it to voice mail.
Command Possible Response/Action
AT+CTFR1 OK
+CME ERROR:<err>
AT+CTFR1? +CME ERROR:<err>
AT+CTFR1=? +CME ERROR:<err>
Note
This command returns +CME ERROR: <err> if there is no waiting call in progress.
Example
RING
AT+CTFR1
OK
AT+CTFR1 [when a call is not received]
+CME ERROR: “operation not allowed”
3-135
G18 GSM/GPRS Modem AT Command Set
Description
Selects a mode.
Command Possible Response/Action
AT+FCLASS=? +FCLASS: (list of supported <n>s)
OK
+CME ERROR:<err>
AT+FCLASS? +FCLASS:<n>
OK
+CME ERROR:<err>
AT+FCLASS=<n> OK
Puts the TA into a particular mode of operation
+CME ERROR:<err>
where:
<n>:
0 Data
1 Fax
Example
AT+FCLASS=?
0, 1
OK
AT+FCLASS?
+FCLASS: 0
OK
3-136
AT Command Set
Description
Requests all capabilities of TA.
Command Possible Response/Action
AT+GCAP GCAP: (list of capabilities)
OK
+CME ERROR:<err>
AT+GCAP? +CME ERROR:<err>
AT+GCAP=? +CME ERROR:<err>
Example
AT+GCAP
+GCAP: +FCLASS
OK
AT+GCAP=?
ERROR
AT+GCAP?
ERROR
3-137
G18 GSM/GPRS Modem AT Command Set
Description
Describes setting and saving the baud rate.
Command Possible Response/Action
AT+IPRL=[<baud_rate>] OK
or +CME ERROR:<err>
AT+IPR= [n]
AT+IPR? +IPR: <baud_rate>
OK
+CME ERROR: <err>
AT+IPR=? +IPR: (list of supported <n>s, <baud_rate>s)
OK
+CME ERROR:<err>
where:
<n>: <baud_rate>
0 300>
1 600
2 1200
3 2400
4 4800
5 9600
6 19200
7 38400
8 57600
9 Auto baud rate detection
3-138
AT Command Set
Note
For example, AT+IPR=8 is equivalent to AT+IPR=57600.
Using AT+IPR=<baud> with a <baud> value other than 9 will disable the auto baud rate
detection feature. The entered baud rate is stored in the unit and restored after power up.
The power up default baud rate is 9600, with enabled auto baud rate detection feature. If
AT+IPR was not used or its last use was AT+IPR=9, the baud rate at power up will be the
default.
The baud rate can be switched to 4800, 9600, 19200, 38400, or 57600 using
AT+IPR=<baud>,<baud> values are 4-8, 9 or 4800, 9600, 19200, 38400, 57600. Value
represents auto baud rate detection.
AT+IPR is similar to AT+CBAUD with the ability to save.
3-139
G18 GSM/GPRS Modem AT Command Set
Description
Describes the cell.
Command Possible Response/Action
AT+MCELL=<mode> +mcell: <screen_num><screen_info>
<screen_num> OK
+CME ERROR:<err>
AT+MCELL? OK
AT+MCELL=? +MCELL: (000), list of supported <screen>s)
OK
+CME ERROR:<err>
where:
<mode>:
0 One shot requested
<screen_num>
An integer number between 1-20
<screen_info>
Refer to External Screen Information, below.
3-140
AT Command Set
* N1-N6 information concerning Neighbor Cell 1-6 appears on screens 5-10 respectively.
** When the information is not available, an * is displayed instead.
3-141
G18 GSM/GPRS Modem AT Command Set
Note
The information in screens 1-20 is for internal use, except for those listed in Table, above.
Set command can be used to retrieve the specified cell parameters.
Read command returns OK.
Test command returns the whole <mode> and <screen> options, supported by this
command.
Example
1. To find MCC value:
+ MCELL = 0,1
MCELL: 1 BC 0095 51-057B<LF>425001 39051 33<LF>047 047*** ***<LF>0
A1aN 09800 20<LF>7***4 1 32 04<LF>104 GPI1****
OK
MCC is at a position 19-21: 425
2. To find Neighbor 5 (NS) BSIC value (N5 appears at screen 9)
+MCELL = 0,9
+MCELL: 9 BC 0095 51-059B<LF>045 045*** ***<LF>N5 0638 51-097B<LF>-01
** *** <LF>095C000 T00M30<LF>CA0 CQ0 GP1 RA
OK
N5 BSIC is at position 11-12: 51.
3-142
AT Command Set
Description
Controls the SMS alert tone.
Command Possible Response/Action
AT+MCSAT=<mode>[<dcs Suppresses or removes suppressed SMS alert
mask>,[...]] tone for all arriving messages, or for some
messages, as defined in <dcs mask>.
OK
+CME ERROR:<err>
AT+MCSAT? +MCSAT:
<mode>, [<current dcs mask>,[..]]
OK
+CME ERROR:<err>
AT+MCSAT=? +MCSAT: (list of supported <mode>s)
OK
+CME ERROR:<err>
where:
<mode>:
0 Suppress alart tone
1 enable alert tone (default)
2 Exercise alert tone
<dcs mask>
SMS Data Coding Scheme masl, which either suppresses or activates
the alert tone.
Note
This command suppresses the SMS alert tone for a specific SMS type whenever the SMS
alert tone is generated (receiving, storing, or sending SMS).
When the <dcs mask> parameter is omitted, the alert tone is suppressed for all SMS
arrivals.
3-143
G18 GSM/GPRS Modem AT Command Set
Example
On power up, the alert tone is not suppressed.
AT+MCSAT= 0 will suppress the alert tone for all SMS messages.
AT+MCSAT= 0, 11110111 will suppress the alert tone for dcs= $F7
AT+MCSAT= 0,00xx01xx111101xx will suppress the alert tone for 8-bit data.
AT+MCSAT= 1 will delete all suppressed conditions.
AT+MCSAT= 2 will exercise the alert tone.
AT+MCSAT=?
+MCSAT: (0-2)
OK
AT+MCSAT?
+MCSAT: 1
OK
AT+MCSAT= 1
OK
AT+MCSAT=2
OK
AT+MCSAT=1
OK
AT+MCSAT= 0,00000001 [Disable SMS alert tone for DCS value 1.]
OK
3-144
AT Command Set
Description
Selects whether an indication is sent when GPRS coverage goes on/off.
Command Possible Response/Action
AT+MCWAKE= <mode> OK
+CME ERROR:<err>
AT+MCWAKE? +MCWAKE: <mode>
OK
+CME ERROR:<err>
AT+MCWAKE=? +MCWAKE: (list of supported <mode>s)
OK
+CME ERROR:<err>
where:
<mode>:
0 send no indication
1 send indication when GPRS coverage goes off
2 send indication when GPRS coverage goes on (default)
3-145
G18 GSM/GPRS Modem AT Command Set
Description
Checks extended characters.
Command Possible Response/Action
AT+MECC= <mode> Enables or disables standard checking of ASCII
characters with values less than 32 on parsing AT
commands.
OK
+CME ERROR:<err>
AT+MECC? +MECC: <mode>
OK
+CME ERROR:<err>
AT+MECC=? +MECC: (list of supported <mode>s)
OK
+CME ERROR:<err>
Note
This command prevents the standard check of ASCII characters, and allows all characters
to be entered in the phone book, for example @. Indications that are affected by this
command are: +CCWA, +CLCC, +CLIP.
3-146
AT Command Set
Example
AT+MECC=?
+MECC: (0-1)
OK
AT+MECC?
+MECC: 1
OK
AT+CPBS= “ME”
OK
AT+CPBW=, “030303”, 129, “ABC” [Cannot display and include the alpha tag
“ Ω ” in the phone book entry.]
OK
AT+MECC=0
OK
AT+CPBW=, “0303030”, 129, “ABC” [The “ Ω ” character was added to the
end of the string, but it cannot be seen in
Windows Hyper terminal]
OK
AT+CPBF= “”
+CPBF: 001, “030303”, 129, “ABC”
+CPBF: 002, 0303030”, 129, “ABC” [ “ Ω ” character can be seen on the
handset display, but not in Windows
Hyper Terminal.]
OK
3-147
G18 GSM/GPRS Modem AT Command Set
Description
Sets the frequency of search.
Command Possible Response/Action
AT+MFS= <freq>[,<mode>] OK
+CME ERROR:<err>
AT+MFS? +MFS: <freq>,<mode>
OK
+CME ERROR:<err>
AT+MFS=? +MFS: (list of supported <freq>s), (list of supported
<mode>s)
OK
+CME ERROR:<err>
where:
<freq>: Frequency of search
0 Continous
1 Medium
2 Slow
3 Fast
<mode>:
0 Automatic
1 Manual
Note
This command will set or read the EEPROM Frequency of Search.
3-148
AT Command Set
Example
AT+MFS=?
+MFS: (0-3),(0,1)
OK
AT+MFS?
+MFS:1,0
OK
AT+MFS=3
OK
AT+MFS?
+MFS:3,0
OK
AT+MFS=2,1
OK
AT+MFS?
+MFS:2,1
[//////////////////////POWER CYCLE]
AT+MFS?
+MFS:2,1
OK
AT+MFS=0
OK
AT+MFS?
+MFS:0,1
OK
3-149
G18 GSM/GPRS Modem AT Command Set
Description
Changes the specific message attribute from received-unread to received-read and vice
versa.
Command Possible Response/Action
AT+MMGA=<index>, <attribute> OK
+CME ERROR:<err>
AT+MMGA? +CME ERROR:<err>
AT+MMGA=? +MMGA: (001 – 075), (000-001)
OK
+CME ERROR:<err>
where:
<index>: integer between 1 and 75
<attribute>:
0 <received-unread>
1 <received-read>
Note
This command is supported in software versions above E6.01.10.
SMS attributes can be one of the following: received-unread, received-read, stored-sent,
and stored-unsent.Since there are new AT commands (MMGR and MMGL) that return the
message without changing its attribute from received-unread to received-read, this set
command can be used to change the specific message attribute from received-unread to
received-read and vice versa.
The test command returns the entire available <index>es and <attribute>s supported by
this command.
3-150
AT Command Set
Description
Returns the SMS message list without changing the message status from unread to read.
It is used in the same way as +CMGL. This command is supported in software versions
above E6.01.10.
Command Possible Response/Action
AT+MMGL[=<stat>] If PDU mode (+CMGF=0) and command
successful:
+MMGL:
<index>,<stat>,[<alpha>],<length>
<CR><LF><pdu>
[<CR><LF>+MMGL:<index>,<stat>,[<alpha>],
<length><CR><LF><pdu>[...]]
OK
If not:
+CMS ERROR: <err>
AT+MMGL? +CMS ERROR:<err>
AT+MMGL=? +MMGL: (list of supported <stat>s)
OK
+CME ERROR:<err>
where:
<stat>: message reference
0 “REC UNREAD” received unread message
1 “REC READ” received read message
2 “STO UNSENT” stored unsent message
3 “STO SENT” stored sent message
4 “ALL” all messages (default)
3-151
G18 GSM/GPRS Modem AT Command Set
Note
This new AT command returns the SMS message list without changing the message status
from unread to read. It is used in the same way as +CMGL. This command is supported in
software versions above E6.01.10.
3-152
AT Command Set
Description
Reads the SMS message without changing the message status from unread to read. It is
used in the same way as +CMGL. This command is supported in software versions above
E6.01.10.
Command Possible Response/Action
AT+MMGR=<index> If PDU mode (+CMGF=0) and command successful:
+MMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
OK
If not:
+CMS ERROR: <err>
AT+MMGR? +CME ERROR:<err>
AT+MMGR=? OK
+CME ERROR:<err>
where:
<stat>:
0 “REC UNREAD” received unread message (for example, new
message).
1 “REC READ” received read message
2 “STO UNSENT” stored unsent message
3 “STO SENT” stored sent message
4 “ALL” all messages (default)
<index> Value of message location in the range of location numbers, supported
by the associated memory.
<alpha> Not supported
Note
This new AT command returns the SMS message list without changing the message status
from unread to read. It is used in the same way as +CMGR.
This command is supported in software versions E6.01.10.
3-153
G18 GSM/GPRS Modem AT Command Set
Where
<control>:
0 Default. Ignores the wakeup line state.
1 When the g18 is awakened and the DTE wakeup line
is high, CTS will not be activated.
Note
This new activity AT command controls CTS behavior and will deactivate it when the unit is
in sleep mode. When there is no activity, g18 may enter the sleep-awake sequence, which
can occur every 30-40 milliseconds.
When sending data, use the wakeup line, either pin #15 at the FC 36 pin, or pin #10 at the
DIN 28 pin, to awaken the g18.
This command is supported in software versions E6.13.24 and above.
WARNING
When the DTE is not connected to the wakeup line, do not
use this command.
Using AT+MSCTS=1 will deactivate the CTS after g18 has entered sleep mode, and the
DTE will be unable to communicate with the g18 until powered on.
3-154
AT Command Set
To enable communication between the DTE and the g18 when the DTE is powered off:
1 Change the DTE flow control to none, and then send AT&K0; +MSCTS=0.
3 Wait for OK, and then change the DTE floe control to HW.
Example
AT+MSCTS=1 [feature ON]
OK
AT+MSCTS?
+MSCTS: 1
OK
AT+MSCTS=?
+MSCTS: (0,1)
OK
AT+MSCTS=0
OK
AT+MSCTS?
+MSCTS: 0
OK
3-155
G18 GSM/GPRS Modem AT Command Set
Description
Command for line test.
Command Possible Response/Action
AT+MTCTS OK
+CME ERROR:<err>
AT+MTCTS? +CME ERROR:<err>
AT+MTCTS=? OK
+CME ERROR:<err>
Note
Deactivates CTS. Wait approximately 1 second, then activate CTS.
3-156
AT Command Set
Description
Returns whether or not the DTR is active.
Command Possible Response/Action
AT+MTDR? +MTDTR: <n>
OK
+CME ERROR: <err>
AT+MTDR +MTDTR: <n>
OK
+CME ERROR: <err>
AT+MTDR=? OK
+CMS ERROR:<err>
where:
<n>: message reference
1 DTR is active
0 DTR is not active
Note
The command is accepted even when the SIM card is missing.
3-157
G18 GSM/GPRS Modem AT Command Set
AT+PT42
Description
This command disables echo suppression and echo cancellation processing in normal
mode.
Note
This command disables echo suppression and echo cancellation processing in normal
mode until the MS is turned off, which affects the handset screen. Registration starts when
the command is completed.
3-158
Index
A CHLD . . . . . . . . . . . . . . . . . . . . . . . . 3-34
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . xiv CHUP . . . . . . . . . . . . . . . . . . . . . . . . 3-39
Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . xiv CIMI . . . . . . . . . . . . . . . . . . . . . . . . . 3-40
CIP . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41
CIPE . . . . . . . . . . . . . . . . . . . . . . . . . 3-42
B CKPD . . . . . . . . . . . . . . . . . . . . . . . . 3-43
basic command CLCC . . . . . . . . . . . . . . . . . . . . . . . . 3-45
CPIN . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 CLCK . . . . . . . . . . . . . . . . . . . . . . . . 3-48
basic commands . . . . . . . . . . . . . . . . . . . . . 2-1 CLIP . . . . . . . . . . . . . . . . . . . . . . . . . 3-50
CLIR . . . . . . . . . . . . . . . . . . . . . . . . . 3-52
C CMEC . . . . . . . . . . . . . . . . . . . . . . . . 3-54
command CMEE . . . . . . . . . . . . . . . . . . . . . . . . 3-56
ATD . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 CMER . . . . . . . . . . . . . . . . . . . . . . . . 3-58
ATDL . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 CMGD . . . . . . . . . . . . . . . . . . . . . . . . 3-60
CAOC . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 CMGF . . . . . . . . . . . . . . . . . . . . . . . . 3-63
CBAND . . . . . . . . . . . . . . . . . . . . . . . . 3-6 CMGL . . . . . . . . . . . . . . . . . . . . . . . . 3-64
CBAUD . . . . . . . . . . . . . . . . . . . . . . . . 3-7 CMGR . . . . . . . . . . . . . . . . . . . . . . . . 3-66
CBST . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 CMGS . . . . . . . . . . . . . . . . . . . . . . . . 3-67
CCFC . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 CMGW . . . . . . . . . . . . . . . . . . . . . . . 3-68
CCWA . . . . . . . . . . . . . . . . . . . . . . . . 3-14 CMOD . . . . . . . . . . . . . . . . . . . . . . . . 3-69
CEER . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 CMSS . . . . . . . . . . . . . . . . . . . . . . . . 3-70
CESP . . . . . . . . . . . . . . . . . . . . . . . . . 3-17 CMUX . . . . . . . . . . . . . . . . . . . . . . . . 3-71
CGACT . . . . . . . . . . . . . . . . . . . . . . . 3-18 CNMA . . . . . . . . . . . . . . . . . . . . . . . . 3-72
CGATT . . . . . . . . . . . . . . . . . . . . . . . 3-20 CNMI . . . . . . . . . . . . . . . . . . . . . . . . . 3-73
CGCLASS . . . . . . . . . . . . . . . . . . . . . 3-21 CNUM . . . . . . . . . . . . . . . . . . . . . . . . 3-77
CGDCONT . . . . . . . . . . . . . . . . . . . . 3-22 COPS . . . . . . . . . . . . . . . . . . . . . . . . 3-79
CGMI . . . . . . . . . . . . . . . . . . . . . . . . . 3-24 CPAS . . . . . . . . . . . . . . . . . . . . . . . . 3-82
CGMM . . . . . . . . . . . . . . . . . . . . . . . . 3-25 CPBF . . . . . . . . . . . . . . . . . . . . . . . . 3-84
CGMR . . . . . . . . . . . . . . . . . . . . . . . . 3-26 CPBR . . . . . . . . . . . . . . . . . . . . . . . . 3-86
CGPADDR . . . . . . . . . . . . . . . . . . . . . 3-27 CPBS . . . . . . . . . . . . . . . . . . . . . . . . 3-88
CGPRS . . . . . . . . . . . . . . . . . . . . . . . 3-28 CPBW . . . . . . . . . . . . . . . . . . . . . . . . 3-91
CGQMIN . . . . . . . . . . . . . . . . . . . . . . 3-29 CPIN . . . . . . . . . . . . . . . . . . . . . . . . . 3-94
CGQREQ . . . . . . . . . . . . . . . . . . . . . . 3-31 CPMS . . . . . . . . . . . . . . . . . . . . . . . . 3-97
CGSN . . . . . . . . . . . . . . . . . . . . . . . . 3-33 CPOL . . . . . . . . . . . . . . . . . . . . . . . . 3-99
Index-1
G18 GSM/GPRS Modem AT Command Set
Index-2
Tell Us What You Think...
We’d like to know what you think about this Manual. Please take a moment
to fill out this questionnaire and fax this form to: (631) 738-3318, or mail to:
How familiar were you with this product before using this manual?
Very familiar Slightly familiar Not at all familiar