You are on page 1of 208

G18 GSM/GPRS Modem

AT Command Set
G18 GSM/GPRS Modem AT Command Set

72E-57474-02
Revision A — March 2003

2 Symbol Technologies, Inc. One Symbol Plaza, Holtsville N.Y. 11742


G18 GSM/GPRS Modem
AT Command Set

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.

No license is granted, either expressly or by implication, estoppel, or otherwise under any


Symbol Technologies, Inc., intellectual property rights. An implied license only exists for
equipment, circuits, and subsystems contained in Symbol products.

Symbol is a registered trademarks of Symbol Technologies, Inc. Inet is a trademark of INET,


Inc. Other product names mentioned in this document may be trademarks or registered
trademarks of their respective companies and are hereby acknowledged.

Symbol Technologies, Inc.


One Symbol Plaza
Holtsville, N.Y. 11742-1300
WWW: http://www.symbol.com

ii
Contents

About This Guide


Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Notational Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Abbreviations and Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Service Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv

Chapter 1. Introduction
AT Command Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2

Chapter 2. Basic Functionality


AT+CPIN, PIN and PUK Code Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
System Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Establishing a Voice Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Answering a Voice Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Finding a Phonebook Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Writing a Phonebook Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
Reading a Phonebook Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
Phone Book Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
Sending an SMS in PDU Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7

Chapter 3. AT Command Set


ATD, Dial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
ATDL, Redial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
AT+CAOC, Advice of Charge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
AT+CBAND, Change Band . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
AT+CBAUD, Set Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
AT+CBST, Select Bearer Service Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9

iii
G18 GSM/GPRS Modem AT Command Set

AT+CCFC, Call Forwarding Number and Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11


AT+CCWA, Call Waiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
AT+CEER, Extended Error Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16
AT+CESP, Enter SMS Block Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17
AT+CGACT, PDP Context Activation/Deactivation Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
AT+CGATT, GPRS Attach/Detach Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20
AT+CGCLASS, GPRS MS Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21
AT+CGDCONT, Define PDP Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-22
AT+CGMI, Request Manufacturer Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
AT+CGMM, Request Model Identification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25
AT+CGMR, Request Revision Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26
AT+CGPADDR, Show PDP Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
AT+CGPRS, GPRS Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
AT+CGQMIN, Quality of Service Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
AT+CGQREQ, Define/Modify/Remove Requested Quality of Service Profile . . . . . . . . . . . . . . . 3-31
AT+CGSN, Request Product Serial Number Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33
AT+CHLD, Call Related Supplementary Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34
AT+CHUP, Hang Up Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39
AT+CIMI, Request International Mobile Subscriber Identity (IMEI) . . . . . . . . . . . . . . . . . . . . . . . 3-40
AT+CIP, IP Primitive Over AT Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41
AT+CIPE, Enable +CIP AT Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42
AT+CKPD, Keypad Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43
AT+CLCC, List Current Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
AT+CLCK, Facility Lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-48
AT+CLIP, Calling Line Identification Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-50
AT+CLIR, Calling Line Identification Restriction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-52
AT+CMEC, Mobile Equipment Control Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-54
AT+CMEE, Report Mobile Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-56
AT+CMER, Mobile Equipment Event Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-58
AT+CMGD, Delete SMS Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60
AT+CMGF, Message Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-63
AT+CMGL, List Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-64
AT+CMGR, Read Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-66
AT+CMGS, Send SMS Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-67
AT+CMGW, Write Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-68
AT+CMOD, Calling Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-69
AT+CMSS, Send Message from Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-70
AT+CMUX, Multiplexing Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-71
AT+CNMA, DTE Confirming the Previous Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-72
AT+CNMI, New Message Indications to TE+CNMI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-73
AT+CNUM, Subscriber Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-77
AT+COPS, Operator Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-79
AT+CPAS, Phone Activity Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-82
AT+CPBF, Find Phone Book Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-84

iv
Contents

AT+CPBR, Read Phone Book Entries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-86


AT+CPBS, Select Phone Book Memory Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-88
AT+CPBW, Write Phone Book Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-91
AT+CPIN, Enter Pin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-94
AT+CPMS, Preferred Message Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-97
AT+CPOL, Preferred Operator List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-99
AT+CPWD, Change Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-101
AT+CR, Service Reporting Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-103
AT+CRC, Cellular Result Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-105
AT+CREG, Network Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-107
AT+CRLP, Radio Link Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-109
AT+CRSM, Restrict SIM Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-110
AT+CRTT, Select Ring Tone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-112
AT+CSCA, Service Center Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-114
AT+CSCB, Select Cell Broadcast Message Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-116
AT+CSCR, SIM Card Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-121
AT+CSCS, Select TE Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-122
AT+CSMP, Set SMS SIM Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-124
AT+CSMS, Select Message Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-126
AT+CSQ, Signal Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-128
AT+CSTA, Select Type of Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-130
AT+CSVM, Set Voice Mail Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-132
AT+CTFR1, Divert an Incoming Call to Voice Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-135
AT+FCLASS, Select Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-136
AT+GCAP, Request Complete Capabilities List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-137
AT+IPR, Setting and Saving Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-138
AT+MCELL, Motorola Cell Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-140
AT+MCSAT, Control SMS Alert Tone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-143
AT+MCWAKE, DTE Wake Line Control Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-145
AT+MECC, Motorola Extended Characters Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-146
AT+MFS, Frequency of Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-148
AT+MMGA, Change Message Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-150
AT+MMGL, Message List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-151
AT+MMGR, Read Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-153
AT+MSCTS, Sleep CTS Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-154
AT+MTCTS, CTS Line Test Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-156
AT+MTDTR, DTR Line Test Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-157
AT+PT42 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-158

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:

• “terminal” refers to any Symbol terminal using the G18 modem.


• “User” refers to anyone using an application on the terminal.
• “You” refers to the developer or other person using this manual as a reference to
develop applications for the terminal.
• Italics are used to indicate command variables, highlight specific items in the
general text, and to identify chapters and sections in this and related documents.
It also identifies names of dialog boxes and tabs within dialog boxes.
• Bullets (•) indicate:
• lists of alternatives or action items.
• lists of required steps that are not necessarily sequential.
• Numbered lists indicate a set of sequential steps, i.e., those that describe step-by-
step procedures.

xiii
G18 GSM/GPRS Modem AT Command Set

Abbreviations and Acronyms


The following abbreviations/acronyms are used throughout this guide:

• AT: ATtention, used to start a command line.


• ETSI: European Telecommunications Standards Institute.
• GPRS: General Packet Radio Service
• GSM: Global System for Mobile communications.
• ITU-T: International Telecommunication Union = Telecommunication
Standardization Sector.
• ME: Mobile Equipment. Refers to the GSM Modem.
• MOC: Mobile Originated Call; a call from the SPT 1834 to the fixed network
(outgoing call).
• MS: Mobile Station
• MTC: Mobile Terminated Call; a call from the fixed network to the SPT 1834
(incoming call).
• PIN: Personal Identification Number, 4-digit code used to protect the SIM.
• PUK: Unblocking Key, 8-digit code used to unblock SIM PIN.
• SIM: Subscriber Identity Module.
• TA: Terminal Adapter. Refers to the GSM Modem.
• TE: Terminal Equipment. Refers to the host device/application.

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.

Note: Symbol Technologies is not responsible for any damages incurred


during shipment if the approved shipping container is not used.
Shipping the units improperly can possibly void the warranty. If the
original shipping container was not kept, contact Symbol to have
another sent to you.

xv
G18 GSM/GPRS Modem AT Command Set

Symbol Support Center


For service information, warranty information or technical assistance contact or call the
Symbol Support Center in:

United States 1 Canada


Symbol Technologies, Inc. Symbol Technologies Canada, Inc.
One Symbol Plaza 2540 Matheson Boulevard East
Holtsville, New York 11742-1300 Mississauga, Ontario, Canada L4W 4Z2
1-800-653-5350 905-629-7226
United Kingdom Asia/Pacific
Symbol Technologies Symbol Technologies Asia, Inc (Singapore
Symbol Place Branch)
Winnersh Triangle, Berkshire RG41 5TP 230 Victoria Street #05-07/09
United Kingdom Bugis Junction Office Tower
0800 328 2424 (Inside UK) Singapore 188024
+44 118 945 7529 (Outside UK) Tel : +65-6796-9600
Fax : +65-6337-6488
Australia Austria/Österreich
Symbol Technologies Pty. Ltd. Symbol Technologies Austria GmbH
432 St. Kilda Road Prinz-Eugen Strasse 70 / 2.Haus
Melbourne, Victoria 3004 1040 Vienna, Austria
1-800-672-906 (Inside Australia) 01-5055794-0 (Inside Austria)
+61-3-9866-6044 (Outside Australia) +43-1-5055794-0 (Outside Austria)
Denmark/Danmark Europe/Mid-East Distributor Operations
Symbol Technologies AS Contact your local distributor or call
Dr. Neergaardsvej 3 +44 118 945 7360
2970 Hørsholm
7020-1718 (Inside Denmark)
+45-7020-1718 (Outside Denmark)

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

+47 2232 4375

xvii
G18 GSM/GPRS Modem AT Command Set

South Africa Spain/España


Symbol Technologies Africa Inc. Symbol Technologies S.L.
Block B2 Avenida de Bruselas, 22
Rutherford Estate Edificio Sauce
1 Scott Street Alcobendas, Madrid 28108
Waverly 2090 Johannesburg Spain
Republic of South Africa 91 324 40 00 (Inside Spain)
11-809 5311 (Inside South Africa) +34 91 324 40 00 (Outside Spain)
+27-11-809 5311 (Outside South Africa) Fax: +34.91.324.4010
Sweden/Sverige
“Letter” address:
Symbol Technologies AB
Box 1354
S-171 26 SOLNA
Sweden

Visit/shipping address:
Symbol Technologies AB
Solna Strandväg 78
S-171 54 SOLNA
Sweden

Switchboard: 08 445 29 00 (domestic)


Call Center: +46 8 445 29 29 (international)
Support E-Mail:
Sweden.Support@se.symbol.com
1Customer support is available 24 hours a day, 7 days a week.

If you purchased your Symbol product from a Symbol Business Partner, contact that
Business Partner for service.

For the latest version of this guide go to:http://www.symbol.com/manuals.

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.

The format of the command is:

AT<command>

For example, ATE0 turns off the echo command.

Note: To repeat the previous command, use A/. This is not prefixed with
AT.

Table 1-1. Basic Call Control Commands (Including V.25ter)


Command Function
A Goes off-hook and attempts to answer a call
Dn Dial modifier. For voice calls use one of the following commands:
ATDxxx
AT*Dxxxx
ATD>102
ATD>DAN
ATDS=1
ATDS=0
ATD>SM101
E0 Turns off command echo
E1 Turns on command echo
F No action, compatibility only
H Initiates a hang-up sequence
I0 Reports product code

1-2
Introduction

Table 1-1. Basic Call Control Commands (Including V.25ter) (continued)


Command Function
I1 Reports pre-computed checksum
I2 Reports processor name
I3 Reports firmware revision
I4 Reports product name
I6 Reports processor name
L No action, compatibility only
M No action, compatibility only
N No action, compatibility only
P No action, compatibility only
O Goes on-line
Q0 Allows result codes to the DTE
Q1 Inhibits result codes to the DTE
Sn=x Sets value x for S-register n
Sn? Returns the value of S-register n
S0 Reads/sets the number of rings before Automatic Answer
S2 Reads/sets Escape code character
S3 Reads/sets Carriage return code character
S4 Line feed code character
S5 Command line editing character
Note: In command line editing, all characters with a hexadecimal value of 0 to $1F,
except for Backspace, Line Feed and Carriage Return, are ignored.
S7 Wait time for data call carrier
S24 ATS24=0: the modem is not in sleep mode
ATS24=#: the modem is in sleep mode and will enter sleep mode after # seconds
Sn for n Bit map registers
equal to 14,
21, 22, 31, 36,
39, 40, 41

1-3
G18 GSM/GPRS Modem AT Command Set

Table 1-1. Basic Call Control Commands (Including V.25ter) (continued)


Command Function
S95 Bitmap register for extended result code
S96 Echo cancelling feature for audio devices by ATS96=1
S97 Antenna diagnostic feature: ATS97? responds with 000 or 001. 000 means that
either the antenna is not connected or the hardware does not support this feature.
S98 ATS98=1 allows the handset’s backlight to behave as if the unit was not powered by
the TS line. It turns off the backlight immediately, for the first time after powering up.
Note: ATS98=x is allowed only for x=1.
S99 ATS99=x defines the length in ms of the hardware pulse given when the GPRS
coverage is changed from no coverage to coverage. The pulse length is 2x when
the data indication is sent. The default value is 30 ms; 0 is not allowed. S99
responds with an error if the value is greater than 2,147,483,647 or equal to zero.
S100 ATS100=x, where x defines the number of seconds. To avoid frequent hardware
interrupts, the modem uses hardware indication for data only after x seconds from
the last sent character to the DTE. The default value of x is 1 second; 0 is not
allowed. S100 responds with an error if the value is greater than 32,767 or equal to
zero.
S101 Sets the wakeup line forever when x=1, and resets it when x=0. ATS101? returns
the current state. These operations are allowed only when the factory bit is set.
When the parameters are wrong, or the factory bit is not set, it returns an error.
T No action, compatibility only
V0 Reports short form (terse) result codes
V1 Reports long form (verbose) result codes
W0 Reports DTE in Error Correction (EC) mode
X0 Reports basic call progress result codes: OK, CONNECT, RING, NO CARRIER
(also for busy, if enabled, and dial tone not detected), NO ANSWER, and ERROR.
X1 Reports basic call progress result codes and connection baud rates: OK,
CONNECT, RING, NO CARRIER (also for busy, if enabled, and dial tone not
detected), NO ANSWER, CONNECT XXXX, and ERROR.
X4 Reports all calls progress result codes and connection rates: OK, CONNECT, RING,
NO CARRIER, NO ANSWER, CONNECT XXXX and ERROR
Y No action, compatibility only
Z Resets to default configuration

1-4
Introduction

Table 1-1. Basic Call Control Commands (Including V.25ter) (continued)


Command Function
&C0 DCD is forced ON at all times
&C1 DCD is set to ON when the CSD carrier is detected or when the GPRS session is
started
&C2 DCD is set to ON when the PDP is active and the IP address is received from the
network. This command should not be used with a computer dial-up networking
program.
&D0 Interprets the DTR on-to-off transition; modem ignores DTR
&D1 Interprets the DTR on-to-off transition; modem performs as asynchronous to
command mode
&D2 Interprets the DTR on-to-off transition; modem hangs up
&D3 Interprets the DTR on-to-off transition; modem hangs up
&F0 Restores the factory configuration 0
&F1 Restores the factory configuration 1
&G No action, compatibility only
&J No action, compatibility only
&K0 Disables all DTE/DCE flow controls
&K3 Enables RTS/CTS DTE/DCE flow controls
&K4 Enables XON/XOFF DTE/DCE flow controls
&K6 Enables RTS/CTS DTE/DCE flow controls
&L No action, compatibility only
&M No action, compatibility only
&P No action, compatibility only
&Q0 Selects a direct asynchronous mode (this has no effect on the modem since it only
has a non-transparent mode)
&Q5 Modem negotiates an error corrected link (default) (this has no effect on the modem,
since it only has a non-transparent mode)
&Q6 Selects an asynchronous operation in normal mode (this has no effect on the
modem, since it only has a non-transparent mode)
&R No action, compatibility only

1-5
G18 GSM/GPRS Modem AT Command Set

Table 1-1. Basic Call Control Commands (Including V.25ter) (continued)


Command Function
&S Defines the DSR's behavior (always active)
&T No action, compatibility only
&V Displays the current configuration and stores the profiles
&W0 Stores the active profile in NVRAM profile 0
&W1 Stores the active profile in NVRAM profile 1
&Y0 Recalls the stored profile 0 upon power up
&Y1 Recalls the stored profile 1 upon power up
&Zn=x Stores the dial string x (up to 35 characters) into location n = (0 to 3)
\N1 Selects the direct mode (this has no effect on the modem, since it only has a non-
transparent mode)
\N2 Selects the reliable link mode (this has no effect on the modem, since it only has a
non-transparent mode)
AT*A Same as ATA
AT*D Dials voice call numbers
AT*P No action, compatibility only
AT*V No action, compatibility only
A/ Repeats last command
AT? Returns the value of the last updated S-Register
AT$ Lists the supported AT commands

1-6
Introduction

Table 1-2. Advanced AT Commands List


Command Function
+CRTT Selects ring tone
+CIPE Enables/disables CIP command
+CIP Sends IP primitives (messages used by the DSC bus) over RS232
+CBAUD Selects the baud rate
+CGPRS Indicates the GPRS coverage
+MTDTR Supported for DTR line test command
+MTCTS Supported for CTS line test command
+MCWAKE Supported for DTE wake line control command
+MMGL Lists the messages without changing their attributes
+MMGR Reads the message without changing its attributes
+MMGA Changes the message attributes
+CMSS Sends the message from storage

1-7
G18 GSM/GPRS Modem AT Command Set

Error Correction And Compression (ECC) Commands


The modem supports the commands listed in Table 1-3.
Table 1-3. Supported ECC Commands List
Command Function
%C0 Disables data compression (this has no effect on the modem, since it does not have
compression)
%C1 Enables MNP 5 data compression (this has no effect on the modem, since it does
not have compression)
%C2 Enables V.42 bis data compression (this has no effect on the modem, since it does
not have compression)
%C3 Enables both V.42 bis and MNP 5 compression (this has no effect on the modem,
since it does not have compression)
\A0 Sets the maximum block size in MNP to 64
\A1 Sets the maximum block size in MNP to 128
\A2 Sets the maximum block size in MNP to 192
\A3 Sets the maximum block size in MNP to 256
\G Uses XON/XOFF flow controls; not supported by the modem
\S Shows the status of the commands and S-Registers in effect

1-8
Introduction

FAX Class 1 Commands

Table 1-4. FAX Class Commands


Command Function Remark
"FCLASS" Selects mode 0 – data
1 – fax Class 1
"FAE" fax_auto_answer Class 1
"FRH" fax_receive_hdlc_data Class 1
"FRM" fax_receive_data Class 1
"FRS" fax_receive_silence Class 1
"FTH" fax_transmit_hdlc_data Class 1
"FTM" fax_transmit_data Class 1
"FTS" fax_transmit_silence Class 1

1-9
G18 GSM/GPRS Modem AT Command Set

ETSI 07.07 Standard


The following tables list the commands defined by ETSI standard 07.07 Phase 1, supported
by the modem. For more information on ETSI commands, see the ETSI document GSM
07.07 — prETS 300 916, GSM 07.05, GSM 03.40 Sections 9.1 and 9.2, GSM 04.11
Sections 8.2.5.1 and 8.2.5.2, and GSM 03.38.

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

Table 1-6. ETSI 07.07 Call Control Commands and Methods


Command Description Reference
+CSTA Selects type of address and dial characters allowed in dial 6.1
string
D Dial modes 6.2
Dial modifiers for V.25ter dialing (TP!W,>IiGg)
Dx V.25ter: Direct dialing from phone books where x is the location 6.3
+CMOD Call mode 6.4
+CHUP Hangs up call (similar to ATH) 6.5
+CBST Selects bearer service type (baud rate, V110/RLP, etc.) 6.7
+CRLP Radio link protocol parameters 6.8
+CR Service reporting control (result codes) 6.9
+CEER E Extended error report (report failure reason of last call) 6.10
+CRC Cellular result codes 6.11
ITU-T V.25ter Call control commands 6.20

Table 1-7. ETSI 07.07 Mobile Extended Error Report


Command Description
+CEER Extended error report
+CEER ERROR 1 Unassigned or unallocated number
3 No route to destination
6 Channel unacceptable
8 Operator determined barring
16 Normal call clearing
17 User busy
18 No user responding
19 User alerting, no answer

1-11
G18 GSM/GPRS Modem AT Command Set

Table 1-7. ETSI 07.07 Mobile Extended Error Report (continued)


Command Description
+CEER ERROR 21 Call rejected
22 Number changed
26 Non selected user clearing
27 Destination out of order
28 Invalid number format (incomplete number)
29 Facility rejected
30 Response to STATUS ENQUIRY
31 Normal, unspecified
33 Command aborted
34 No circuit/channel available
38 Network out of order
41 Temporary failure
42 Switching equipment congestion
43 Access information discarded
44 Requested circuit/channel unavailable
47 Resources unavailable, unspecified
49 Quality of Service unavailable
50 Requested facility not subscribed
55 Incoming calls barred within the CUG
57 Bearer capability not authorized
58 Bearer capability not presently available
63 Service or option not available, unspecified
65 Bearer service not implemented
69 Requested facility not implemented
70 Only restricted digital information bearer capability is available
79 Service or option not implemented, unspecified
81 Invalid transaction identifier value

1-12
Introduction

Table 1-7. ETSI 07.07 Mobile Extended Error Report (continued)


Command Description
+CEER ERROR 87 User not member of CUG
88 Incompatible destination
91 Invalid transit network selection
95 Semantically incorrect message
96 Invalid mandatory information
97 Message type non-existent or not implemented
98 Message type not compatible with protocol state
99 Information element non-existent or not implemented
100 Conditional IE error
101 Message not compatible with protocol state
102 Recovery on timer expiry
111 Protocol error, unspecified
127 Inter-working, unspecified

Table 1-8. ETSI 07.07 Network Service Related Commands


Command Description Reference
+CNUM Subscriber number 7.1
+CREG Network registration 7.2
+COPS GSM network operator selection 7.3
+CLCK Facility lock 7.4
+CPWD Changes password 7.5
+CLIP Calling line identification presentation 7.6
+CLIR Calling line identification restriction 7.7
+CCFC Call forwarding number and conditions 7.10
+CCWA Call waiting 7.11

1-13
G18 GSM/GPRS Modem AT Command Set

Table 1-8. ETSI 07.07 Network Service Related Commands (continued)


Command Description Reference
+CHLD Call-related supplementary services 7.12
+CTFR1* Reject an incoming call, and divert it to the voice mail (not to 7.13
another number)
+CAOC Advice of charge 7.15
+CLCC Lists current calls and asynchronous answers 7.17
+CPOL Preferred operator list 7.18
*This command is based on the +CTFR standards.

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

V.25TER Commands Used With GSM


The following tables list the V.25ter commands that can be used with GSM.
Table 1-11. V.25ter Commands Used with GSM
Command Description V.25ter
Reference
&C DCD (received line signal detector) behavior 6.2.8
&D DTR (data terminal ready) behavior 6.2.9
&F Set to factory-defined configuration 6.1.2
+GCAP Request complete capabilities list 6.1.9
+CGMI Request manufacturer identification 6.1.4
+CGMM Request model identification 6.1.5
+CGMR Request revision identification 6.1.6
+CGSN Request product serial number ID (IMEI) 6.1.7
A Answer 6.3.5
D Dial 6.3.1
E Command echo 6.2.4
H Hook control 6.3.6
I Request identification information 6.1.3
O Return to online data state 6.3.7
S0 Automatic answer 6.3.8
S2 Read/set escape code character
S3 Command line termination character 6.2.1
S4 Response formatting character 6.2.2
S5 Command line editing character 6.2.3
S7 Connection completion time-out 6.3.10
S24 Sleep mode

1-17
G18 GSM/GPRS Modem AT Command Set

Table 1-11. V.25ter Commands Used with GSM (continued)


Command Description V.25ter
Reference
Sn for n Bit map registers
equals to 14, Note: S14 is a read only register. When entering it returns OK
21, 22, 31, 36, but value is not changed.
39, 40, 41
S94 Sidetone enable/disable (unmute/mute) feature for analog
audio devices. When ATS94=1, sidetone is enabled (default).
S95 Bitmap register for extended result code
S96 Echo cancelling feature for audio devices by ATS96=1
After sending this command, restart the modem to activate this
feature.
S97 Antenna diagnostic feature: ATS97? responds with 000 or 001.
000 means the antenna is not connected or the hardware does
not support this feature
S98 ATS98=1 allows the handset’s backlight to behave as if the unit
was not powered using the TS line. It turns off the backlight
immediately, for the first time after powering up.
Note: ATS98=x is allowed only for x=1.
S99 ATS99=x, where x defines the length in ms of the hardware
pulse given when GPRS coverage is changed from no
coverage to coverage. The pulse length is 2x when data
indication is sent. The default value is 30 ms; 0 is not allowed.
S99 responds with an error if the value is greater than
2,147,483,647.
S100 ATS100=x, where x defines number of seconds. To avoid
frequent hardware interrupts, the modem uses hardware
indication for data only after x seconds from the time the last
character was sent to the DTE. The default value of x is 1
second; 0 value is not allowed. S100 responds with an error if
the value is greater than 32,767.
S101 Sets wakeup line forever when x=1, and resets it when x=0.
ATS101? returns the current state. These operations are
allowed only when the factory bit is set. When the parameters
are incorrect, or the factory bit is not set, returns an error.
V DCE response format 6.2.6

1-18
Introduction

Table 1-11. V.25ter Commands Used with GSM (continued)


Command Description V.25ter
Reference
X Result code selection and call progress monitoring control 6.2.7
Z0 Restores stored profile 0 6.1.1
Z1 Restores stored profile 1 6.1.1

Table 1-12. V.25ter Voice Commands


Command Description
*A Voice answer
*D Voice dial
ATD*99 Request GPRS service "D"
ATD*100 Manually accepts a network request
; Dial modifier Modifier for voice dial
A Voice answer
H Voice hang-up

ETSI 07.05 Standard (SMS)


The following tables list the complete set of commands as described in ETSI standard
07.05. For each command we recommended 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.

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

Table 1-14. ETSI07.05 MT Responses Sent from Phone to Host


Response Description ETSI 07.05
Reference
DELETE MESSAGE Host’s request to delete a message has been 2.4.2.8
COMPLETE completed
DELETE MESSAGE Host’s request to delete a message has failed 2.4.2.9
FAILURE

1-20
Introduction

Table 1-14. ETSI07.05 MT Responses Sent from Phone to Host (continued)


Response Description ETSI 07.05
Reference
END SMS MODE Phone is exiting SMS mode 2.4.2.11
GET MESSAGE Request for a message cannot be fulfilled 2.4.2.3
FAILURE
INC MESSAGE Incoming message transfer to host requested 2.4.2.4
INSERT SMS Host’s request to insert a message completed 2.4.2.6
COMPLETE
INSERT SMS FAILURE Host’s request to insert a message failed 2.4.2.7
MESSAGE Indicates a message requested 2.4.2.2

MESSAGE ARRIVED Indicates an incoming messages requested 2.4.2.5


MESSAGE LIST Indicates receipt of LIST REQUEST 2.4.2.1
REQUEST CONFIRMED Request received and will be performed 2.4.2.12
UNABLE TO PROCESS Host’s request could not be processed 2.4.2.10

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

Table 1-15. ETSI 07.05 Text Mode (continued)


Command Description ETSI 07.05
Reference
+CMS Message service failure result code: 3.2.5
0 - 127 GSM 04.11 Appendix E-2 values
128 - 255 GSM 03.40 sub-clause 9.2.3.22 values
300 ME failure
301 SMS service of ME reserved
302 Operation not allowed
303 Operation not supported
304 Invalid PDU mode parameter
305 Invalid text mode parameter
310 SIM not inserted +CMS
311 SIM PIN required
312 PH-SIM PIN required
313 SIM failure
314 SIM busy
315 SIM incorrect
316 SIM PUK required
317 SIM PIN2 required
318 SIM PUK2 required
320 Memory failure
321 Invalid memory index
322 Memory full
330 SMSC address unknown
331 No network service
332 Network time-out
340 No +CNMA acknowledgement expected
500 Unknown error
+CMGD Deletes message 3.5.4
+CSCA Service centre address 3.3.1
+CNMI Indicates new message 3.4.1
+CMGL Lists messages 3.4.2
+CMGR Reads message 3.4.3

1-22
Introduction

Table 1-15. ETSI 07.05 Text Mode (continued)


Command Description ETSI 07.05
Reference
+CNMA Acknowledges new message to ME/TA 3.4.4
+CMSS Sends message from storage 3.5.2

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

AT+CPIN, PIN and PUK Code Entry


If your SIM card requests a PIN number, use the following commands:

AT Command Reaction Remarks


AT+CPIN=”nnnn” +CME ERROR: <err> nnnn = PIN number (4 - 8 digits).
Enables the SIM card. If PIN is correct, returns “OK”.
If PIN is incorrect, returns “ERROR”.
AT+CPIN? +CPIN: <code> When no SIM is available: +CME ERROR:<err>
+CME ERROR: <err> When PIN is not needed: +CPIN:READY
Responds with When PIN is needed: +CPIN: SIM PIN
information about the SIM When PUK number is needed: +CPIN: SIM PUK
and PIN.
When PIN2 is blocked: +cpin: SIM PUK2
AT+CPIN=? OK

Table 2-1. CPIN Results


AT Command
Allowed Result for +CPIN? Code
SIM/PIN Status Commands Non-allowed +CPIN? Result Output
Commands
No SIM G1 SIM Not inserted SIM Not inserted -

2-1
G18 GSM/GPRS Modem AT Command Set

Table 2-1. CPIN Results (continued)


AT Command
Allowed Result for +CPIN? Code
SIM/PIN Status Commands Non-allowed +CPIN? Result Output
Commands
Bad SIM G1 SIM Failure SIM Failure -
Required SIM Card G1, G2 SIM PIN Required OK SIM PIN
PIN
PIN1 Blocked G1, G2 SIM PUK Required OK SIM PUK
Permanent Blocked G1 SIM Failure SIM Failure -
(PUK)
PIN2 required All Depends on AT OK SIM PIN2
command
PIN2 blocked All Depends on AT OK SIM PUK2
command
Permanent Blocked G1 SIM Failure SIM Failure -
(PUK2)
Other All Depends on AT OK READY
command

G1 is the following AT commands group:

• Basic AT command (includes ATD, ATA, ATH).


• AT+CKPD (to simulate handset key strokes).
• AT+CMER (to get handset screen output).
G2 is the AT command group which interacts with the ME. The following commands are
accepted when ME is pending: SIM PIN, SIM PUK or PH-SIM (GSM 7.07 section 8.3):
+CGMI, +CGMM, +CGMR, +CGSN, +CPAS, +CPIN.

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

AT Command Reaction Remark


ATI3 Provides software version E.g., E6.02.07
AT+CGMR Provides hardware information +CGMR: g18_v_E6_02_07 (PC card)
AT+CGMI Provides hardware information +CGMI: "MOTOROLA"
AT+CNUM Provides subscriber number +CNUM: "VOICE","054445561",129
+CNUM: "DATA","054626515",129
+CNUM: "FAX","054562511",129
AT+COPS? Provides network operator name E.g., +COPS: 000, 000, "IL ORANGE"
AT+CSQ Provides signal strength E.g., +CSQ: 030, 099
indication e.g., +csq: 031,099 Note: Ber information not supported
AT+CMEE=<n> Report mobile equipment error; 0 = disabled (ERROR)
should always be set to 2 1 = enabled (numeric, +CME ERROR: 3)
2 = enabled (string, +CME ERROR:
“operation not allowed”)
AT+CMER Mobile equipment event E.g., AT+CMER=0,0,1,1,0
reporting to IP

2-3
G18 GSM/GPRS Modem AT Command Set

Establishing a Voice Call


The following table shows the basic commands to be sent to the modem to establish a voice
call.

AT Command Response/Action Remark


Power up the modem.
AT+CPIN= “xxxx” Enables SIM card. DSC LED lights up.
xxxx = PIN number (4 - 8 digits).
ATD (phone number); or Dials the phone number (voice call). OK.
AT*D (phone number) or For example: NO CARRIER
ATD> <index>; or ATD123456;
ATD> <name>or ATD>102; or
ATDS=n (n=0 to 3) or ATD>”DAN” or
ATD><mem><index>; ATDS=1; or
ATDS=0 or
ATD>SM101;
ATDL Redials the last number.
AT*dxxxx Current call is a voice call.
ATH Hangs up. In Multi-party calls, ATH does not
end the last call; you must use
AT+CHLD=1.

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

Answering a Voice Call


The following table shows the basic commands to be sent to the modem to answer a voice
call.

AT Command Response/Action Remarks


Power up the modem.
AT+CPIN=<nnnn> Enables SIM card. nnnn = PIN number (4 - 8 digits)
ATA Answers the call.

Finding a Phonebook Entry


The following table shows the basic commands to be sent to the modem to find a
phonebook entry.

AT Command Response/Action Remark


Power up the modem.
AT+CPIN= “nnnn” Enables SIM card. nnnn = PIN number (4 - 8 digits)
AT+CPBS= “mt” Enables the phone and SIM
memory.
AT+CPBF= “Name” Modem shows the number on that <name> is a string of up to 3
position +CPBF: xxx, <phone characters:
number>, yyy, <name of entry> <xxx> = position in the memory:
0-100 = phone memory
101-220 = SIM card memory
<yyy> = phone number:
129 normal number
145 international number

2-5
G18 GSM/GPRS Modem AT Command Set

Writing a Phonebook Entry

AT Command Response/Action Remark


Power up the modem.
AT+CPIN= “nnnn” Enables SIM card. nnnn = PIN number (4 - 8 digits)
AT+CPBS= “mt” Enables the phone and SIM
memory.
AT+CPBW=xxx, “Phone Modem writes the number on that <xxx> = position in the memory:
number”, yyy, “Name of position. 0-100 = phone memory
entry” 101-220 = SIM card memory
<yyy> = phone number:
129 normal number
145 international number

Reading a Phonebook Entry

AT Command Response/Action Remark


Power up the modem.
AT+CPIN= “nnnn” Enables SIM card. nnnn = PIN number (4 - 8 digits)
AT+CPBS= “mt” Enables the phone and SIM
memory.
AT+CPBR= xxx Modem shows the number on that <xxx> = position in the memory:
position +CPBR: xxx, “phone 0-100 = phone memory
number”, yyy, “Name” 101-220 = SIM card memory
<yyy> = phone number:
129 normal number
145 international number

2-6
Basic Functionality

Phone Book Function

AT Command Response/Action Remark


AT+CPBS=”NN” Use this first to select the phone <NN>:
book. FD = SIM fix dialing phonebook
LD = last dialing phonebook
ME = ME phonebook
MT = ME and SIM phonebook
SM = SIM phonebook
DD = Direct Dial phonebook
RC = ME received calls list
MC = ME missed calls list
AT+CPBS? e.g., +CPBS: "SM",45, 100
AT+CPBS=? +CPBS: ("FD","LD","ME","MT", List of supported memory
"SM","DD","RC","MC")
AT+CPBR= xxx e.g., <xxx>is a number 0-100 for
AT+CPBR=101 reading from ME phonebook;
+CPBR: 101,"123456",129,"AVI" 101-220 for reading from SIM
phone book

Sending an SMS in PDU Mode

AT Command Response/Action Remark


Power up the modem.
AT+CPIN= “nnnn” Enables SIM card. nnnn = PIN number (4 - 8 digits)
AT+CSMS=<service> Select message service response: <Service>
+CSMS: <mt>,<mo>, <bm> 0 for phase 2
+CSMS: 001,001,001
OK <mt>,<mo>,<bm>
1 supported
2 not supported

2-7
G18 GSM/GPRS Modem AT Command Set

AT Command Response/Action Remark


AT+CPMS= “sm” Preferred message storage
response:
+CPMS:<used1>,<total1>,<used2>,
<total2>
+CPMS: 001,0015,001,015
OK
AT+CMGS=160 Send SMS in PDU mode return: Send "TEST":
>0791947122720 +CMGS: 000 to phone # 49-172- 6188234
00011000c91947 to SMS center 49-172- 2720000
1628128430000a
704f4f29c0e ctrl-z

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

AT+CAOC, Advice of Charge

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

AT+CBAND, Change Band

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

AT+CBAUD, Set Baud Rate

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

AT+CBST, Select Bearer Service Type

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

AT+CCFC, Call Forwarding Number and Conditions

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

AT+CCWA, Call Waiting

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

AT+CEER, Extended Error Report

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

AT+CESP, Enter SMS Block Mode

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

AT+CGACT, PDP Context Activation/Deactivation


Request

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

AT+CGATT, GPRS Attach/Detach Request

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

AT+CGCLASS, GPRS MS Class

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

AT+CGDCONT, Define PDP Context

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

AT+CGMI, Request Manufacturer Identification

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

AT+CGMM, Request Model Identification

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

AT+CGMR, Request Revision Identification

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:

<revision>: revision number of the software

Example
AT+CGMR?
ERROR
AT+CGMR=?
OK
AT+CGMR
+CGMR: g18_vE6.02.07
OK

3-26
AT Command Set

AT+CGPADDR, Show PDP Address

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

AT+CGPRS, GPRS Coverage

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

AT+CGQMIN, Quality of Service Provider

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

AT+CGQREQ, Define/Modify/Remove Requested


Quality of Service Profile

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

AT+CGSN, Request Product Serial Number


Identification

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:

<sn>: IMEI number

Example
AT+CGSN?
ERROR
AT+CGSN=?
OK
AT+CGSN
+CGSN: “447764074608839”
OK

3-33
G18 GSM/GPRS Modem AT Command Set

AT+CHLD, Call Related Supplementary Services

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

Table 3-1. +CHLD Modes (continued)


CALL
STATE CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3
(+CLCC)
IDLE error 3 error 3 error 3 error 3 error 3; if no error 3
such call,
returns error
22
SINGLE error 3 release when X = 1 put call on error 3; if no error 3
ACTIVE active release is hold such call,
active. returns error
Else, returns 22
error 22
MPTY error 3 release mpty release put mpty on split; if no error 3
ACTIVE call. Returns specific call hold such call,
2 "no carrier" x; if no such returns error
when there call, returns 22
are 2 error 22
outgoing
calls
INCOMING release error 3 error 3 error 3 error 3; if no error 3
CALL incoming call such call,
returns error
22
ACTIVE + release release release put active error 3; if no error 3
WAITING waiting call active, specific call call on hold, such call,
accept x; if no such accept returns error
waiting call call, returns waiting call 22
error 22
Notes:
Split: place all active calls on hold except a specific call
Switch: put active call on hold and accept the held call
Error 3: operation not allowed
Error 22: not found

3-35
G18 GSM/GPRS Modem AT Command Set

Table 3-1. +CHLD Modes (continued)


CALL
STATE CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3
(+CLCC)
MPTY release release release put mpty on Splits; if no error 3
ACTIVE + waiting call mpty, accept specific call hold, accept such call,
WAITING waiting x; if no such waiting call returns error
call, returns 22
error 22
SINGLE release held accept held error 3; if no accept held error 3; if no error 3
HELD call call such call, call such call,
returns error returns error
22 22
HELD release held accept mpty error 3; if no accept mpty error 3; if no error 3
MPTY call call such call, call such call,
returns error returns error
22 22
DUAL release held release release switch error 3; if no make
call active, specific call such call, conference
accept the x; if no such returns error call
other call call, returns 22
error 22
HELD+ release held release release a switch error 3; if no make
MPTY call mpty, specific call such call, conference
ACTIVE accepts the x, if there is returns error call
other call no such call, 22
returns error
22.
ACTIVE+ release held releases release switch error 3; if no make
MPTY call active, specific call such call, conference
HELD accepts the x; if no such returns error call
mpty call, returns 22
error 22
Notes:
Split: place all active calls on hold except a specific call
Switch: put active call on hold and accept the held call
Error 3: operation not allowed
Error 22: not found

3-36
AT Command Set

Table 3-1. +CHLD Modes (continued)


CALL
STATE CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3
(+CLCC)
HELD + release accept error 3; if no accept the error 3. if error 3
WAITING waiting call waiting call such call, waiting call there is no
returns error such call,
22 returns error
22
HELD+ Releases Accepts the error 3 accepts the error 3. if error 3
MPTY waiting call waiting call waiting call there is no
ACTIVE such call,
WAITING returns error
22
DUAL + release release release error 3 (too error 3. if join dual
WAITING waiting call active, specific call many calls there is no calls.
accept x; if no such on hold) such call,
waiting call call, returns returns error
error 22 22
ACTIVE+ release release mpty release a error 3 (too error 3. if join the dual
MPTY waiting call active, specific call many calls there is no and the mpty
HELD+ accept x. if there is on hold) such call, calls
WAITING waiting call no such call, returns error
returns error 22
22
ACTIVE+ release release release a error 3 (too error 3. if join the dual
MPTY waiting call active, specific call many calls there is no and the mpty
HELD accept x. if there is on hold) such call, calls
+WAITING waiting call no such call, returns error
returns error 22
22
Notes:
Split: place all active calls on hold except a specific call
Switch: put active call on hold and accept the held call
Error 3: operation not allowed
Error 22: not found

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

AT+CHUP, Hang Up Call

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

AT+CIMI, Request International Mobile Subscriber


Identity (IMEI)

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

AT+CIP, IP Primitive Over AT Command

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

AT+CIPE, Enable +CIP AT Command

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

AT+CKPD, Keypad Control

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

AT+CLCC, List Current Calls

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

AT+CLCK, Facility Lock

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

AT+CLIP, Calling Line Identification Presentation

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

AT+CLIR, Calling Line Identification Restriction

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.

Order of Action First Call Behavior Other Calls Behavior


CLIR via RS232 According to the action According to the action
performed by RS232. performed by RS232.
CLIR by HS According to the action Default Behavior
performed by HS.
CLIR by HS and then CLIR According to the action According to the action
via RS232 performed by RS232. performed by RS232.
CLIR via RS232 and then According to the action According to the action
by HS performed by HS. performed by RS232.

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

AT+CMEC, Mobile Equipment Control Mode

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

AT+CMEE, Report Mobile Equipment

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

AT+CMER, Mobile Equipment Event Reporting

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

AT+CMGD, Delete SMS Messages

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:

<index>: position of the SMS in the memory


<deflag>
0 or omitted Delete message

1 Delete all messages, except unread or stored messages

2 Delete all messages, except unread or unsent messages.

3 Delete all messages, except unread messages

4 Delete all messages.

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

AT+CMGF, Message Format

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:

<mode>: position of the SMS in storage


0 PDU mode
1 text mode (not supported)

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

AT+CMGL, List Messages

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

AT+CMGR, Read Messages


Description
Reads message.
Command Possible Response/Action
AT+CMGR=<index> If PDU mode (+CMGF=0) and command are
successful:
+CMGR:
<stat>,[<alpha>],<length><CR><LF><pdu>
OK
+CMS ERROR: <err>
AT+CMGR? +CME ERROR: <err>
AT+CMGR=? OK
+CME ERROR:<err>

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

AT+CMGS, Send SMS Message

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

AT+CMGW, Write Messages

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

AT+CMOD, Calling Mode

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

AT+CMSS, Send Message from Storage

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

AT+CMUX, Multiplexing Mode

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

AT+CNMA, DTE Confirming the Previous Message

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

AT+CNMI, New Message Indications to TE+CNMI

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

2 MO DATA call, connected state.

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

AT+CNUM, Subscriber Number

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

AT+COPS, Operator Selection

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

AT+CPAS, Phone Activity Status

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

AT+CPBF, Find Phone Book Entries

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:

The name “RONEN” is in PB.


AT+CPBF=”RON” +CPBF:106,”054567432”,129,”RONEN”
whereas,
AT+CPBF=”ONE” will yield no result

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

AT+CPBR, Read Phone Book Entries

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:

<index>: location number in the storage

<number>: phone number in the <type> format


<type>:
129 local number
145 international number with access character +

<text>: name of the entry

<tlength> : Maximum length of <text>

<nlength> : Maximum llength of <number>

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

AT+CPBS, Select Phone Book Memory Storage

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

AT+CPBW, Write Phone Book Entries

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

AT+CPIN, Enter Pin

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

AT+CLCK=“FD”,1,“2035” [close FD phonebook for changes, and


allow calls only to numbers from FD
phonebook]
OK
AT+CLCK=“FD”,2
+CLCK: 1,7
OK
AT+CPBS=“FD” [select FD phonebook]
OK
AT+CPBW=1,“343434”,129 [try to change entry in phonebook]
+CME ERROR: “SIM PIN2 required”
AT+CPIN?
+CPIN: READY
OK
AT+CLCK=“FD”,0,“1234” [wrong PIN2 entered]
+CME ERROR: “incorrect password”
A/ [wrong PIN is inserted]
+CME ERROR: “incorrect password”
A/ [wrong PIN2 is inserted]
+CME ERROR: “SIM PUK2 required”
AT+CPIN?
+CPIN: SIM PUK2 [PIN2 blocked; need PUK2 to release it]
AT+CPIN=“61356375”,“2035” [enter PUK2 and new PIN2]
OK
AT+CPIN?
+CPIN: READY
OK

3-96
AT Command Set

AT+CPMS, Preferred Message Storage

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:

<mem1><mem2>: “SM” memory storage


<used>: used memory storage
<total>: total memory storage

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

AT+CPOL, Preferred Operator List

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

AT+CPWD, Change Password

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

AT+CR, Service Reporting Control

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

AT+CRC, Cellular Result Codes

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

AT+CREG, Network Registration

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

AT+CRLP, Radio Link Protocol

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

AT+CRSM, Restrict SIM Access

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

AT+CRTT, Select Ring Tone

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

AT+CSCA, Service Center Address

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:

<sca>: service center number


+ International, allowed at start only

0,9,*,# Digits and instruction

/,-,(,blank),A,B,C,D Allowed, ignored, not saved


Pause control
,
Allowed at end of number. May be omitted or ignored, but not
;
saved

<type>: format of number


129 local number
145 international number with access character +

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

AT+CSCB, Select Cell Broadcast Message Types

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.

Cell Broadcast Support in G18


• The G18 allows selection of the SMS service for cell broadcast. The AT command
for selecting the service is:
• +CSMS=<service>
• +CSMS?
• <service> 0 is allowed
• The G18 supports text and binary data coding schemes for cell broadcast
messages.

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.

Incoming Cell Broadcast Messages


In release up to E6.11.23, the handset is set to receive accumulated messages. This
means that if the message exceeds one page then the message is not sent to the handset
until whole message is accumulated in a buffer. The maximum number of accumulated
pages is three, which means that sometimes only part of the intended message is sent.
Using AT+CSCB, DTE is set to receive page-by-page messages, meaning that a message
with several pages is reported to DTE page by page.
There will be two behavior methods: One that keeps the previous release’s behavior
(backward compatible), and another for those who will use AT+CSCB.
• Previous version-SIM/handset is the sole requester (by default, after AT+CSCB=0
or any other sequence of AT commands that leads to an empty G18 CSCB’s mid
list):
• CB control (on/off) is via Menu-Messages-Cell_Broadcast-On/Off

3-118
AT Command Set

• mid control is via Menu-Cell Broadcast-Channel index


• dcs control is via Menu-Messages-Cell Broadcast-Languages
• Messages received accumulated.
• Maximum number of pages received in a message is three.
• Handset does not support 8-bit data and compressed data. Additional
screening by data coding scheme is done via the SIM language list.
• AT+CNMI=0,0,2 is required to transfer data to DTE.
• G18 mid list assigned by AT+CSCB is not empty:
• DTE gets all messages page by page (maximum of 15 pages per message).
Messages are not sent to handset.
• G18 tracks incoming cell broadcast messages. After receiving a CB message
with a specific mid, G18 will not receive CB messages with that same mid
unless its update number is different. For example, CB mid=1, update=-CB is
acce[pted; CB mis=1, update=1- the CB is not accepted; CB mid=1, update=2-
CB is accepted; CB mid=1, update=1-CB is accepted.

Example
Testing the modes supported:
AT+CSCB=?
+CSCB: (0,1)
OK

Reading the current mid and dcs lists:


AT+CSCB?
+CSCB: 0, “”, “”
OK

Adding channels 3,4,5,6,22 to mid list and language 1 to dcs list:


AT+CSCB=0, “3-6, 22”, “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

Reading the current mid and dcs lists:


AT+CSCB?
+CSCB: 0,0”3,5,22”, “1”
OK

Adding channel 4 to mid list, and language 2 to dcs list:


AT+CSCB=0, “4”, “2”
OK

Reading the current mid and dcs lists:


AT+CSCB?
+CSCB: 0, “3,5,22,4”, “1,2”
OK

Clearing both lists:


AT+CSCB=0
OK

3-120
AT Command Set

AT+CSCR, SIM Card Reader

Description
Reads the SIM card.

Command Possible Response/Action


AT+CSCR +CME ERROR:<err>
AT+CSCR? +CSCR: <sim_type>
OK
+CME ERROR:<err>
AT+CSCR=? +CME ERROR:<err>

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

AT+CSCS, Select TE Character 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:

<chset>: service center number


GSM GSM alphabet
IRA international alphabet
UCS2 16-bit universal multiple-octet coded character set

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

AT+CSMP, Set SMS SIM Parameters

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

AT+CSMS, Select Message Service

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

AT+CSQ, Signal Quality

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

AT+CSTA, Select Type of Address

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

AT+CSVM, Set Voice Mail Parameters

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

AT+CTFR1, Divert an Incoming Call to Voice Mail

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

AT+FCLASS, Select Mode

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

AT+GCAP, Request Complete Capabilities List

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

AT+IPR, Setting and Saving Baud Rate

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

AT+MCELL, Motorola Cell Description

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.

Table 3-2. External Screen Information


Item Description Screen
Main Cell MCC Mobile Country Code Screen 1
Position 19-21
Main Cell MNC Mobile Network Code Screen 1
Position 22-24
Main Cell LAC Location Area Code Screen 1
Position 58-62

3-140
AT Command Set

Table 3-2. External Screen Information (continued)


Item Description Screen
Main Cell BSIC Base Station Identity Screen 1
Code Position 11-12
Main Cell BCCH Freq Basic Control Channel Screen 1
(absolute) Position 6-9
Main Cell RxLev Signal strength of the cell Screen 1
being viewed Position 13-16
Main Cell RxLev Full Signal strength of the Screen 1 in dedicated
beacon channel of the mode
serving cell. Position 35-39
Main Cell RxLev Sub Signal strength of the Screen 1 in dedicated
active dedicated channel mode
Position 51-55
Main Cell RxLevQual Full Received signal quality in Screen 1 in dedicated
the base channel mode
(carrying the BCCH) Position 41-42
Main Cell RxQual Sub Received signal quality in Screen 1 in dedicated
the dedicated active mode
channel Position 57-58
Neighbor Cell Base Station Identity Screen*
BSIC Code Position 11-12
Neighbor Cell Basic Control Channel Screen*
BCCH Freq Position 6-9
Timing Advance Timing Advance quarter Screen 1 in dedicated
of bits mode
Position 45-49

* 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

AT+MCSAT, Control SMS Alert Tone

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

Up to ten <dcs mask> are allowed.


<dcs mask> format is an 8-bit information K7K6K5K4K3K2K1K0 parameter. Each Kn
contains 0,1, or X (ascii character):
• 0: Condition is met if arrival SMS includes dcs with 0 in this position.
• 1: Condition is met if arrival SMS includes dcs with 1 in this position.
• x or X: This bit in an arrival dcs is ignored.

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

AT+MCWAKE, DTE Wake Line Control Command

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

AT+MECC, Motorola Extended Characters Check

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

AT+MFS, Frequency of Search

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

AT+MMGA, Change Message Attributes

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

AT+MMGL, Message List

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

AT+MMGR, Read Message

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

AT+MSCTS, Sleep CTS Control

Command Possible Response/Action


AT+MSCTC= <control> OK
+CME ERROR: <err>
AT+MSCTS? +MSCTS: <control>
OK
+CME ERROR: <err>
AT+MSCTS=? +MSCTS: (list of supported <control>s)
OK
+CME ERROR: <err>

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.

2 Wait for OK, and then send AT&K3.

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

AT+MTCTS, CTS Line Test Command

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

AT+MTDTR, DTR Line Test Command

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.

Command Possible Response/Action


AT+PT42 OK
+CME ERROR: <err>
AT+PT42? +CME ERROR: <err>
AT+PT42=? +CME ERROR:<err>

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

CPWD . . . . . . . . . . . . . . . . . . . . . . . 3-101 MFS . . . . . . . . . . . . . . . . . . . . . . . . . 3-148


CR . . . . . . . . . . . . . . . . . . . . . . . . . . 3-103 MMGA . . . . . . . . . . . . . . . . . . . . . . . 3-150
CRC . . . . . . . . . . . . . . . . . . . . . . . . 3-105 MMGL . . . . . . . . . . . . . . . . . . . . . . . 3-151
CREG . . . . . . . . . . . . . . . . . . . . . . . 3-107 MMGR . . . . . . . . . . . . . . . . . . . . . . . 3-153
CRLP . . . . . . . . . . . . . . . . . . . . . . . 3-109 MSCTS . . . . . . . . . . . . . . . . . . . . . . 3-154
CRSM . . . . . . . . . . . . . . . . . . . . . . . 3-110 MTCTS . . . . . . . . . . . . . . . . . . . . . . . 3-156
CRTT . . . . . . . . . . . . . . . . . . . . . . . 3-112 MTDTR . . . . . . . . . . . . . . . . . . . . . . 3-157
CSCA . . . . . . . . . . . . . . . . . . . . . . . 3-114 PT42 . . . . . . . . . . . . . . . . . . . . . . . . 3-158
CSCB . . . . . . . . . . . . . . . . . . . . . . . 3-116 commands
CSCR . . . . . . . . . . . . . . . . . . . . . . . 3-121 basic . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
CSCS . . . . . . . . . . . . . . . . . . . . . . . 3-122 CPIN . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
CSMP . . . . . . . . . . . . . . . . . . . . . . . 3-124 contacting Symbol . . . . . . . . . . . . . . . . . . . . .xv
CSMS . . . . . . . . . . . . . . . . . . . . . . . 3-126
CSQ . . . . . . . . . . . . . . . . . . . . . . . . 3-128
N
CSTA . . . . . . . . . . . . . . . . . . . . . . . 3-130
notational conventions . . . . . . . . . . . . . . . . xiii
CSVM . . . . . . . . . . . . . . . . . . . . . . . 3-132
CTFR1 . . . . . . . . . . . . . . . . . . . . . . 3-135
FCLASS . . . . . . . . . . . . . . . . . . . . . 3-136 R
GCAP . . . . . . . . . . . . . . . . . . . . . . . 3-137 references . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
IPR . . . . . . . . . . . . . . . . . . . . . . . . . 3-138
MCELL . . . . . . . . . . . . . . . . . . . . . . 3-140
MCSAT . . . . . . . . . . . . . . . . . . . . . . 3-143
S
MCWAKE . . . . . . . . . . . . . . . . . . . . 3-145 service information . . . . . . . . . . . . . . . . . . . .xv
MECC . . . . . . . . . . . . . . . . . . . . . . . 3-146 symbol support center . . . . . . . . . . . . . . . . . xvi

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:

Symbol Technologies, Inc.


One Symbol Plaza M/S B-4
Holtsville, NY 11742-1300
Attention: Technical Publications Manager

IMPORTANT: If you need product support, please call the appropriate


customer support number provided. Unfortunately, we cannot provide
customer support at the fax number above.

User’s Manual Title:___________________________________________


(please include revision level)

How familiar were you with this product before using this manual?
Very familiar Slightly familiar Not at all familiar

Did this manual meet your needs? If not, please explain.


___________________________________________________________
___________________________________________________________

What topics need to be added to the index, if applicable?


___________________________________________________________
___________________________________________________________

What topics do you feel need to be better discussed? Please be specific.


___________________________________________________________
___________________________________________________________

What can we do to further improve our manuals?


___________________________________________________________
___________________________________________________________

You might also like