At Commands g18

105
98-08901C39-A 27 4. SOFTWARE INTERFACE 4.1 GENERAL The operating functions of the g18 modem are implemented in the base unit into which the g18 is integrated. The g18 is a GSM900/1800/1900 Phase II+ device with GPRS capabil- ities. The corresponding functions are implemented conforming to V.25ter, GSM07.07, and GSM07.05. AT+C commands conforming to GSM07.07 and GSM07.05 and a number of manufacturer-specific AT commands are available via the serial interface of the g18 for functionality implementation. Commands are input via the operating functions of the base unit. The base unit translates the operating functions into AT commands and the g18 executes the requested action. The V.25ter modem guidelines apply to the time sequence of interference commands. In accordance with these guide- lines, commands start with the string AT and end with a carriage return (<CR> or 0x0D). Commands are acknowl- edged with OK or ERROR. A command currently being processed will be interrupted by each subsequent incoming character, so the next command must not be sent until the acknowledgement has been received that the command has been processed. If this does happen, the current command will be cancelled. 4.2 MODEM COMMUNICATION MODES The g18 modem supports the following communications modes: voice, data, SMS and fax. 4.2.1 Voice Communication Analog Audio: Analog audio communication is provided via a standard analog headset such as the headset used with the StarTAC cellular phone. In this case, the controls for answering calls, dialing, and hanging up are provided by the AT command set interface. This mode is used if the modem is integrated into a handheld terminal that supports voice communications. Digital Audio: Digital audio is provided by the Motorola Proprietary DSC interface. This interface is used when an external handset, like that used in an automotive installa- tion, is used. In this case, the call controls are provided on the handset. DSC handsets that support this interface are manufactured by and available from Motorola. The AT command set can also be used to control calls. The DSC interface is a Motorola proprietary feature that requires licensing from Motorola. Please contact your Motorola representative for more information. 4.2.1.1 Configuration Setup and Audio Routing in g18 Voice Connectivity The g18 is an OEM data and voice module. Voice connec- tivity can be performed using two main channels: analog voice and digital voice. Note The standards bodies regularly update these standards, therefore there is no guarantee that the commands supported by the g18 exactly conform to the latest versions of these specifi- cations. Some commands listed in these stan- dards do not apply in the GSM environment. Note You should wait to receive OK before sending a new AT command.

Transcript of At Commands g18

Page 1: At Commands g18

98-08901C39-A

4. SOFTWARE INTERFACE

4.1 GENERAL

The operating functions of the g18 modem are implementedin the base unit into which the g18 is integrated. The g18 isa GSM900/1800/1900 Phase II+ device with GPRS capabil-ities.

The corresponding functions are implemented conformingto V.25ter, GSM07.07, and GSM07.05.

AT+C commands conforming to GSM07.07 and GSM07.05and a number of manufacturer-specific AT commands areavailable via the serial interface of the g18 for functionalityimplementation.

Commands are input via the operating functions of the baseunit. The base unit translates the operating functions into ATcommands and the g18 executes the requested action.

The V.25ter modem guidelines apply to the time sequence ofinterference commands. In accordance with these guide-lines, commands start with the string AT and end with acarriage return (<CR> or 0x0D). Commands are acknowl-edged with OK or ERROR. A command currently beingprocessed will be interrupted by each subsequent incomingcharacter, so the next command must not be sent until theacknowledgement has been received that the command hasbeen processed. If this does happen, the current commandwill be cancelled.

4.2 MODEM COMMUNICATION MODES

The g18 modem supports the following communicationsmodes: voice, data, SMS and fax.

4.2.1 Voice Communication

• Analog Audio: Analog audio communication is providedvia a standard analog headset such as the headset usedwith the StarTAC cellular phone. In this case, the controlsfor answering calls, dialing, and hanging up are providedby the AT command set interface. This mode is used if themodem is integrated into a handheld terminal thatsupports voice communications.

• Digital Audio: Digital audio is provided by the MotorolaProprietary DSC interface. This interface is used when anexternal handset, like that used in an automotive installa-tion, is used. In this case, the call controls are provided onthe handset. DSC handsets that support this interface aremanufactured by and available from Motorola. The ATcommand set can also be used to control calls. The DSCinterface is a Motorola proprietary feature that requireslicensing from Motorola. Please contact your Motorolarepresentative for more information.

4.2.1.1 Configuration Setup and Audio Routing in g18

Voice Connectivity

The g18 is an OEM data and voice module. Voice connec-tivity can be performed using two main channels: analogvoice and digital voice.

Note

The standards bodies regularly update thesestandards, therefore there is no guarantee thatthe commands supported by the g18 exactlyconform to the latest versions of these specifi-cations. Some commands listed in these stan-dards do not apply in the GSM environment.

Note

You should wait to receive OK before sendinga new AT command.

27

Page 2: At Commands g18

Software Interface

The audio route for the different devices is described in thefollowing table, where HF refers to the connected externalspeaker and microphone, and DHFA refers to the externalcar kit.

• Sidetone - Reduces the microphone audio input that isrouted to the selected speaker so that the people speakingwill hear themselves talking. This also creates a slightecho because the speaker sound then gets picked up againby the microphone and again output to the speaker, and soon. Echo suppress is designed to take care of this echo.

• Echo Suppress - Cancels a small amount of the outputsound picked up by the input device (suppresses theecho). It is designed to be used where there will be littleor no echo (for example, in a handset) rather than where

there will be a lot of echo (for example, in a hands-freedevice).

• Echo Cancel - Suppresses a large amount of the outputsound picked up by the input device (cancels all echo).

• Noise Suppress - Improves audio quality in all modes.

If the application uses the DSC bus, HF selection can beperformed via the new IP.

To activate the hands free mode, see the following table:

4.2.2 Data Communication

There are two modes in which to use the data port:

• GPRS: This mode is for package data communication.This mode starts from the command mode and after aninitialization of a PDP context the data sent from the DTEwill be over PPP. A GPRS wizard is available to do the

Table 9. Voice Connectivity

Configuration Setup Audio Route to…

Off hook handset (overrides all other conditions)

Handset

On hook handset, or absence of handset:

•HF + HF was selected byATS96 command

•HF + HF was not selectedby ATS96 command

•DHFA

•Headset + HF was selectedby ATS96 command

•Headset + HF was notselected by AT command

•HF external speakerwith echo cancelling

•HF external speaker, without echo cancelling

•DHFA speaker

•Headset with echocancelling

•Headset without echocancelling

Table 10. Regular (HS) and HF Mode using RS232

CharacteristicsRegular Mode

(Handset)HF mode

Echo Cancelling (EC)

-

Disable

+

Enable

Sidetone + -Mute

Echo Suppression (ES)

+Enable

-Disable

Full Duplex Half Duplex

Table 11. Regular (HS) and HF Mode using DSC Bus

CharacteristicsRegular Mode

(Handset)HF mode

Echo Cancelling (EC)

-

Disable

+

Enable

Sidetone + -Mute

Echo Suppression (ES)

+Enable

-Disable

DSC Mic -

Mute

+

Table 12. HF Mode Selection using AT Commands

Command Description Notes

ATS96 = 1 Hands free mode ON

+Enable

ATS96 = 0 Hands free mode OFF

-Mute

Default Hands free mode OFF

Once the HF has been set, the setting is kept in the flex even after power cycling the g18.

28 98-08901C39-A

Page 3: At Commands g18

Software Interface

PDP connectivity (for PC applications). This is a veryeffective tool for transferring data at a high rate and onlywhen data is available, without the need to dial again.

• CSD - Circuit Switch Data: The default setting for theg18 is RS232 full flow control. In this mode, data, SMSand Fax class 1 are transferred using a full flow control(hardware flow control), Xon/Xoff or non-flow control.The main difference between this mode and the GPRSmode is the need to dial the desired number wheneverdata needs to be transferred.

4.2.3 SMS Communication

• Block mode: This is a binary SMS presentation. Anapplication SMS build is required for this mode.

• Text mode: This mode is not supported by the g18.

• PDU mode: This is the recommended mode for SMScommunications. Note that the PDU packet has acomplex structure, so careful examination of GSM 04.11and GSM 03.40 is required.

4.2.4 Fax Communication

Class 1: This is the basic set of fax commands that issupported by all types of fax machines. To support faxcommunication with g18, use WinFax in your computer.

Class 2: This mode is not supported by the g18.

4.3 BASIC OPERATIONS

4.3.1 Making a Voice Call

Note

The g18 does not support non-transparent CSDwith a baud rate of less than 4800 bps.

Table 13. Features Supported using CSD/GPRS

CSD Supports

Flow Control

HWXon/XoffNone

Data Type TransparentNon transparent

SMS SMS PDU mode

SMS Block mode

Fax Class 1

GPRS Supports

Flow Control

HWXon/XoffNone

Data Type Data over PPP

Multi Slot Class 1, 2 and 4 1 uplink 1,2 or 3 downlinks

Coding Schemes

CS1, CS2, CS3, CS4

AT+CPIN=”nnnn” Enter the PIN number which enables the SIM card (4-8 digits).

ATDnnnnnn OR

AT*Dnnnnn OR

ATD><index> OR

ATD>”name” OR

ATDS=n (n=0 to 3) OR

ATDS=n (n=0 to 3) OR

ATD><mem><index>

Initiates the voice call to the remote phone. The voice communications commence.

Phone book storage should first be selected at+cpbs=”sm”.

Phone number corresponding to the name entered.

Phone number from register #1 after setting at&z1=035658452.

Phone number from register #0 after setting at&z1=035658452.

Phone number from SIM card #101, for example, ATD>SM101.

Note: Only the second OK for the voice call notifies the user that the call is established.

ATH Hangs up the voice call.Note: In multi-party calls, ATH does not end the last call, only AT+CHLD=1 does.

98-08901C39-A 29

Page 4: At Commands g18

Software Interface

4.3.2 Receiving a Voice Call

4.3.3 Commencing Voice Communication

4.3.4 Making a CSD - Data Call

4.3.5 Receiving a Data Call

4.3.6 Enabling Cell Broadcast (CB) Reception

Send AT+CKPD=”M>>S>>>>>S<SCC”

In order to receive the CB message on the TE, use theAT+CNMI command.

For example:

AT+CNMI=0,2,2,0,0

AT+CPIN=”nnnn” Enter the PIN number that enables the SIM Card (4 -8 digits).

AT+CRC=1 Enables cellular result codes extended format. A remote phone dials the g18 voice number.

+CRING:VOICE

or+RING

If AT+CRC=1, VOICE indicates an incoming voice call. If AT+CRC=0 then +RING indicates an incoming call.Note: To retrieve the call type, use the CMER command.

ATA Answers the call

ATH or

AT+CHUP

Hangs up. Call ends.Note: In multi-party calls, ATH does not end the last call, only AT+CHLD=1 does.

If the remote phone hangs up first, the modem will stay online, (AT+CPAS returns +CPAS:004) for approximately 60 seconds, at which point it will time out and the call will be cleared (AT+CPAS returns +CPAS: 000). At any time during this period, the modem can execute an ATH command.

ATDnnnnnnn Dials the remote modem.

CONNECT xxxx

Indicates that the connection is made. Proceeds with data communications.

+++ Escapes to Command mode.

ATO Returns to Online mode.

+++ Escapes to Command mode.

ATH or AT+CHUP

Hangs up the connection.

The remote modem dials the g18 data number.

AT+CRC=1 Enables cellular result codes extended format. The remote phone dials the g18 voice number.

+CRING: REL ASYNCor+RING

If AT+CRC=1, DATA indicates an incoming data call.

If AT+CRC=0, then +RING indicates an incoming call.Note: To retrieve the call type, use the CMER command.

ATA Answers manually.

ATS0=1 enables an automatic answer after one ring.

+++ Escapes from Online mode.

ATH or AT+CHUP

Hangs up call.Note: In multi-party calls, ATH does not end the last call, only AT+CHLD=1 does.

If the remote phone hangs up first, the modem will stay online (+CPAS:004) for approximately 60 seconds, at which point it will time out and the call will be cleared (+CPAS: 000). At any time during this period, the modem can execute an ATH command.

30 98-08901C39-A

Page 5: At Commands g18

Software Interface

4.3.7 Setting Up the g18 in CSD Mode

When a data call is received, the RI signal goes to ActiveLow for one second and then to Inactive High for fourseconds repeatedly, as shown below.

Figure 32. RI Waveform

When a data carrier is detected by the g18, it sets the DCDsignal to Active Low.

Figure 33. g18 Receiving a Data Call

4.4 SENDING AND RECEIVING DATA IN DIFFERENT FLOW CONTROLS

4.4.1 Flow Control Set to Hardware Flow Control (FC)

4.4.1.1 Sending Data

When data is sent by the g18, the only dynamic signalsthrough the data transfer are TXD and CTS. The DTE deviceshould be kept at DTR ON.

TXD is used in order to transmit the data from the terminalto the g18, and CTS is used in order to control the data flow.When data is transferred too rapidly to the modem, at a ratewhich is greater than its transfer rate, and its buffers becomefull, the modem sets CTS to Inactive High, until it completesthe transfer.

When the modem is ready to accept more data, it sets theCTS signal to Active Low again.

Figure 34. g18 Sending Data Hardware Flow Control

4.4.1.2 Receiving Data

When data is received by the g18, the only dynamic signalduring the data transfer is RXD, with which the data is sentto the terminal. The DTE device should keep DTR ON. RTScan be used to alert the g18 that the DTE buffer is full.

Figure 35. g18 Receiving Data Hardware Flow Control

4.4.2 Flow Control - Flow Control Set to Xon/Xoff

The g18 should be configured to Xon/Xoff flow control,using AT&K4.

To return to the hardware flow control, use AT&K3.

4.4.2.1 Sending Data

When data is sent in this mode, it is transferred on the TXDline. The DTE device should keep DTR ON.

When data is transferred too rapidly to the modem, its buff-ers may become full, and the transmission cannot succeed.In this case, it sends an Xoff signal to the terminal on theRXD line.

When the modem has sent the data in the buffer and is readyto receive more data, it sends an Xon signal on the RXD line.

Note

The g18 does not support non-transparent CSDwith a baud rate of less than 4800 bps.

98-08901C39-A 31

Page 6: At Commands g18

Software Interface

.

Figure 36. Sending Data Xon/Xoff

4.4.2.2 Receiving Data

When data is received in Xon/Xoff flow control, the data istransferred from the g18 to the terminal on the RXD line.The DTE device should keep DTR ON.

Figure 37. g18 Receiving Data Xon/Xoff

4.4.3 Flow Control Set to None

The g18 should be configured to Xon/Xoff, using AT&K0.

To return to the hardware flow control, use AT&K3.

4.4.3.1 Sending Data

When data is sent in this mode, it is transferred on the TXDline, and there is no flow control. The DTE device shouldkeep DTR ON.

When the modem cannot keep up with the rate of data trans-mission from the terminal, an error occurs.

Figure 38. Sending Data in None FC

4.4.3.2 Receiving Data

When data is received by the g18, the only dynamic signalduring the data transfer is RXD, with which the data is sentto the terminal. The DTE device should keep DTR ON.

Figure 39. g18 Receiving Data in None FC

4.5 CALL WAITING, CALL FORWARD-ING, AND CONFERENCE CALLS

Note

In the figure above, the Z Modem transfer proto-col was used, with crash recovery setup. Whenan error is encountered, the terminal sends amessage to the sending side, asking it toresend the specific block.

Note

These operations are network dependent, andare not supported by some networks. Somenetworks behave unexpectedly, such as roam-ing or call dropout.

32 98-08901C39-A

Page 7: At Commands g18

Software Interface

4.6 SENDING AN SMS

4.6.1 Sending an SMS in PDU Mode

For example:

AT+CMGS=19

>07914483056100F511000B914410927856F40000000541E1905804<0x1A>

will return +CMGS:000 after sending “ABCDE” to phonenumber 44-012-987-654 via the SMS center at 44-385-016-005.

The following ASCII string is the ASCII representation ofthe hexadecimal values that will be transmitted as a binarystring.

‘F’’4’ below means that the hexadecimal values 0xF and 0x4will be transmitted over the air. CMGS=19 is the length ofthe TPDU in octets, see below.

AT+CMGS=19

>07914483056100F511000B914410927856F40000000541E190F804<CTRL-Z>

07 = LENGTH OF SCA element including the TON/NPI

91 = TON/NPI,TON=9=Type of number, NPI=1=Number-ing Plan Identifier

4483056100F5 SCA =SERVICE CENTER ADDRESS(This means that the real phone number for the SCA is 44-385-016-005).

Explanation of phone number coding: One hexadecimaldigit for each phone number digit is used. Each pair of hexa-decimal digits is considered an octet (8 bit binary number).Then, the two hexadecimal digits are reversed in order toform a semi-octet. So, the phone digits 3, 8 will become 0x3,0x8, then 0x38, and then reversed to become 0x83. TheASCII characters ‘8’ and ‘3’, the string ‘83’ are then insertedinto the full ASCII string above. Since there is an oddnumber of digits, the last digit, 5, is placed in the lowernibble of the last octet and then its top nibble is filled with1s. This means that ‘5’ becomes 0x5, then 0x05, then 0xf5,and then ‘f5’, which are the last two characters in the ServiceCenter address.

Refer to ETSI 04.11 for more details.

Looking at the remainder of the message after the SCA, wefind the Transport Protocol Data Unit (TPDU). The TPDUcontains the destination device address (phone number), andthe user data or message. There are 38 characters, whichrepresent 19 octets, this being the length of the TPDU.

11000B914410927856F40000000541E190F804 = TPDU

11 = 8 bits MTI,RD,VPF,SRR,UDHI,RP,MMS,SRI

00 = MR Message Reference

0B914410927856F4 = DA Transport DestinationAddress

0B = Number of digits (11) in phone number

91=TON/NPI (as above)

4410927856F4 = Destination phone number 44-012-987-654

AT+CPIN=”nnnn” Enter the PIN number that enables the SIM card (4 - 8 digits).

AT+CSMS=0 Select message service response. The response will be +CSMS:001,001,001.

AT+CPMS=”SM” Select preferred message storage. The response will be similar to +CPMS:001,0015,001,015, depending on your SIM card.

AT+CMGS=<length of TPDU><cr>

<SCA><TPDU><ctrl-Z> <SCA>: Service Center Address, refer to GSM 04.11<TPDU>: Transport Protocol Data Unit, refer to GSM 03.40

Note

This is an example only. This particular SMScenter is a UK number.

Note

The message is terminated with a Control-Zcharacter (0x1A).

Note

The destination phone number is converted toan ASCII string in the same manner as theSCA.

98-08901C39-A 33

Page 8: At Commands g18

Software Interface

The user data control information and the user data followthe phone number:

0000000541e190f804

00 = PID Protocol ID

00 = DCS Data Coding Scheme

00 = VP Validity Period

05 = UDL User Data Length

41E190F804 = The user data ‘ABCDE’

Description of encoding the user data: The user data isencoded as GSM characters. The GSM character set is amethod of encoding 7 bit ASCII characters into 8 bitnumbers. GSM only supports 128 characters with ASCIIvalues 0x00 to 0x7f. Since these only need 7 bits to definethem, and the SMS message is transmitted as a series of 8-bitvalues, GSM uses a method of packing the series of 7 bitvalues into 8 bit octets. For example:

ABCDE is encoded as 41E190F804 as follows.

A B C D Ein ASCII hexadecimal is:0x41 0x42 0x43 0x44 0x45in 8 bit binary is:01000001 01000010 01000011 01000100 01000101

The most significant bit is truncated, resulting in a series ofseven bit values. The now unused most significant bit(s) arepacked with enough least significant bits from the followingvalue to make up eight bits.

This results in the string of eight-bit hexadecimal numbers0x41, 0xE1, 0x90, 0x58, 0x04. By continuing this process, astring of 160 ASCII characters can be stored as a string of140 bytes (octets).

The Service Center Address is described in ETSI GSM 04.11.

The Transport Protocol Data Unit is described in ETS GSM03.40.

4.6.2 Sending an SMS in PDU Mode - Wave Forms

4.6.3 Sending an SMS in CSD Mode

When sending an SMS in PDU mode, after executing theat+cmgs=n command, the DCD line goes to Active Low,and the data is transferred on the TXD line.

After executing the <Ctrl+Z> command, the DCD linereturns to Active High, and the message is sent via thephone.

Figure 40. Sending an SMS

4.6.4 Receiving an SMS

Note

Sending and receiving of SMS messages inter-fere with each other when the time intervalbetween them is too short, or when both opera-tions take place simultaneously.

AT+CPIN="nnnn" Enter the PIN which enables the SIM card (4 -8 digits).

AT+CSMS=0 Selects the message service.

AT+CPMS="SM" Selects the preferred message storage.

AT+CNMI=0,1 Allows buffering of unsolicited result codes in the TA. Indication of memory location is routed to TE.

+CMTI: "SM",001 Is displayed (001 message location).

To display incoming messages:

AT+CMGL=4 Lists all the stored messages.

AT+CMGR=1 Reads the message at location 001.

34 98-08901C39-A

Page 9: At Commands g18

Software Interface

Once the message has been received, the next step is todecode it into something comprehensible. This particularmessage is generated by a Rohde and Schwarz CMD55GSM Test station. In the first line of data, we see the infor-mation about the service center, followed by the TPDU.

038021430402802100006990502100000064D2279258049940D321F21A946A4

03 = Length of service center address

80 = Type of number = unknown, number plan identifier =unknown

2143 = Service center address = 1234

04 = MTI = SMS-DELIVER, MMS = no moremessages, SRI = no status report UDHI = no UDheader, RP = reply path not set

02 = OA length

80 =TON = unknown, NPI = unknown

21 = OA = 12

00 = PID =Protocol ID

00 = DCS = Data Coding Scheme

69905021000000=SCTS ServiceCenter Time Stamp = 5th Sept. 1996 12:00:00 GMT

64=UDL=UserData Length=100octets

Following is the user data:

D2279258049940D321F21A946A4153F45B4E0735CBF379F85C064DCB727B7A5C0651CB73BA0B44459741D17A7ABC0609E5EFBB1B647CE341CA7A1B3E073DED6539888A2E8398617D1E447C9F5DA0986C46ABD96EB81C4C01

This is a string of GSM characters, which must be translatedback into ASCII. The process is the reverse of the codingprocess described previously. This converts the charactersback from a series of octets to a series of 7 bit ASCIInumbers.

Looking at the first 6 octets:

This decoding process continues for the entire user datastring. Translating the entire string comes up with ROHDE& SCHWARZ THE QUICK BROWN FOX JUMPEDOVER THE LAZY DOG.

4.6.5 Sending and Receiving Binary Data Via SMS

Your specific application may require binary data to be sent,instead of an ASCII text message. In this case, you cansimply insert your raw data as the user data, instead of usingthe GSM character coding process. This limits you to 140octets of data. So long as your application controls theencoding and decoding of the SMS PDUs at either end of thesolution, you can use the 140 octets of user data as you seefit.

4.6.6 Receiving an SMS in CSD Mode - Wave Forms

When an SMS is received, it is stored on the SIM card.

Figure 41 shows a reading command sent on the TXD line,and the message transferred from the SIM card to theterminal.

Figure 41. Receiving an SMS

+CMGR: 000,,102

038021430402802100006990502100000064D2279258049940D321F21A946A4153F45B4E0735CBF379F85C064DCB727B7A5C0651CB73BA0B44459741D17A7ABC0609E5EFBB1B647CE341CA7A1B3E073DED6539888A2E8398617D1E447C9F5DA0986C46ABD96EB81C4C01.OK.

98-08901C39-A 35

Page 10: At Commands g18

Software Interface

4.6.6.1 SMS Error Messages

Message Types

#define MMISMS_MSG_TYPE_LIST_REQUEST 0x00

#define MMISMS_MSG_TYPE_GET_MESSAGE 0x01

#define MMISMS_MSG_TYPE_GET_FIRST_MESSAGE 0x02

#define MMISMS_MSG_TYPE_GET_NEXT_MESSGAE 0x03

#define MMISMS_MSG_TYPE_TRANSFER_INC_SMS 0x04

#define MMISMS_MSG_TYPE_INDICATE_INC_SMS 0x05

#define MMISMS_MSG_TYPE_TRANSFER_INC_CBS 0x06

#define MMISMS_MSG_TYPE_INSERT_SMS 0x07

#define MMISMS_MSG_TYPE_DELETE_MESSAGE 0x08

#define MMISMS_MSG_TYPE_TE_UNABLE_TO_PROCESS 0x09

#define MMISMS_MSG_TYPE_TE_SET_MESSAGE_REQUEST 0x0A

#define MMISMS_MSG_TYPE_TE_BEGIN_SMS_MODE 0x1d Added to support 07.05

#define MMISMS_MSG_TYPE_TE_END_SMS_MODE 0x1e

#define MMISMS_MSG_TYPE_ACKNOWLEDGE_MESSAGE 0x1f

#define MMISMS_MSG_TYPE_MESSAGE_LIST 0x20

#define MMISMS_MSG_TYPE_MESSAGE 0x21

#define MMISMS_MSG_TYPE_GET_MESSAGE_FAILURE 0x22

#define MMISMS_MSG_TYPE_INC_MESSAGE 0x23

#define MMISMS_MSG_TYPE_MESSAGE_ARRIVED 0x24

#define MMISMS_MSG_TYPE_INSERT_SMS_COMPLETE 0x25

#define MMISMS_MSG_TYPE_INSERT_SMS_FAILURE 0x26 38

#define MMISMS_MSG_TYPE_DELETE_MESSAGE_COMPLETE 0x27

#define MMISMS_MSG_TYPE_DELETE_MESSAGE_FAILURE 0x28

#define MMISMS_MSG_TYPE_MT_UNABLE_TO_PROCESS 0x29

36 98-08901C39-A

Page 11: At Commands g18

Software Interface

#define MMISMS_MSG_TYPE_REQUEST_CONFIRMED 0x2a

#define MMISMS_MSG_TYPE_SET_MESSAGE_CONFIRMED 0x2b

#define MMISMS_MSG_TYPE_SET_MESSAGE_FAIL_CONFIRMED 0x2c

#define MMISMS_MSG_TYPE_MT_END_SMS_MODE 0x3f

Message Types

Information Element Identifier

#define MMISMS_IEI_SHORT_MSG_REF 0x00

#define MMISMS_IEI_TRANSFER_TYPE 0x01

#define MMISMS_IEI_INDICATE_TYPE 0x02

#define MMISMS_IEI_INSERT_TYPE 0x03

#define MMISMS_IEI_SHORT_MSG_INDEX 0x04

#define MMISMS_IEI_CBS_SHORT_MSG_INDEX 0x05

#define MMISMS_IEI_SHORT_MSG_DATA 0x06

#define MMISMS_IEI_CBS_SHORT_MSG_DATA 0x07

#define MMISMS_IEI_CAUSE 0x08

#define MMISMS_IEI_INDEX_COUNT 0x09

#define MMISMS_IEI_CBS_TRANSFER_TYPE 0x0A

#define MMISMS_IEI_PAGE_INDEX 0x0B

#define MMISMS_IEI_LAST_SHORT_MSG 0x0C

#define MMISMS_IEI_CONFIRM_TYPE 0x0D

#define MMISMS_IEI_TP_FAILURE_CAUSE 0x0E

98-08901C39-A 37

Page 12: At Commands g18

Software Interface

Transfer CBS Types

#define MMISMS_CBS_TRANSFER_TYPE_NO_CBS 0x00

#define MMISMS_CBS_TRANSFER_TYPE_TE_SPECIFIC 0x01

#define MMISMS_CBS_TRANSFER_TYPE_RESERVED 0x02

#define MMISMS_CBS_TRANSFER_TYPE_ALL_CBS 0x03

#define MMISMS_CBS_TRANSFER_TYPE_BIT_MASK 0x03 first two bits

#define MMISMS_CBS_TRANSFER_TYPE_RESERVED_BIT_MASK 0xFC bits 3 to 8

Indicate Types

#define MMISMS_INDICATE_TYPE_NO_MSG 0x00

#define MMISMS_INDICATE_TYPE_RESERVED 0x01

#define MMISMS_INDICATE_TYPE_ALL_SMS 0x02

#define MMISMS_INDICATE_TYPE_TE_SPECIFIC_SMS 0x03

#define MMISMS_INDICATE_TYPE_ALL_CBS 0x04

#define MMISMS_INDICATE_TYPE_TE_SPECIFIC_CBS 0x05

#define MMISMS_INDICATE_TYPE_ALL_CBS_SMS 0x06

#define MMISMS_INDICATE_TYPE_ALL_TE_SPECIFIC_MSG 0x07

#define MMISMS_INDICATE_TYPE_REPORT 0x08

#define MMISMS_INDICATE_TYPE_BIT_MASK 0x07 first three bits

#define MMISMS_INDICATE_TYPE_REPORT_BIT_MASK 0x08 fourth bit

#define MMISMS_INDICATE_TYPE_RESERVED_BIT_MASK 0xF0 bits 5 to 8

38 98-08901C39-A

Page 13: At Commands g18

Software Interface

Cause Values

#define MMISMS_CAUSE_NO_SUCH_MESSAGE 0x00

#define MMISMS_CAUSE_NO_MEMORY 0x01

#define MMISMS_CAUSE_NO_AIR_INTERFACE 0x02

#define MMISMS_CAUSE_RECEIVING_ENTITY_BUSY 0x03

#define MMISMS_CAUSE_COMMAND_NOT_UNDERSTOOD 0x04

#define MMISMS_CAUSE_INCOMING_DATA_CALL 0x05

#define MMISMS_CAUSE_USER_INVOKED_EXIT 0x06

#define MMISMS_CAUSE_MESSAGE_TRANSFER_FAILED 0x87

Short Message Statuses

#define MMISMS_STATUS_NOT_READ 0x00

#define MMISMS_STATUS_NOT_SENT 0x00

#define MMISMS_STATUS_NOT_READ_SENT 0x00

#define MMISMS_STATUS_READ 0x01

#define MMISMS_STATUS_SENT 0x01

#define MMISMS_STATUS_READ_SENT 0x01

Confirm Types

#define MMISMS_CONFIRM_TYPE_BEGIN_SMS_REQ_CNF 0x00 Added to support 07.05

#define MMISMS_CONFIRM_TYPE_TRANSFER_INC_SMS_REQ_CNF 0x01

#define MMISMS_CONFIRM_TYPE_TRANSFER_INC_CBS_REQ_CNF 0x02

#define MMISMS_CONFIRM_TYPE_INDICATE_INC_SMS_REQ_CNF 0x03

#define MMISMS_CONFIRM_TYPE_ATTEMPT_SEND_SMS_REQ_CNF 0x04

98-08901C39-A 39

Page 14: At Commands g18

Software Interface

Number of SMS Message Headers per Page

#define MMISMS_NUM_HEADERS_PER_PAGE 5

#define MMISMS_MIN_PAGE_INDEX 1

#define MMISMS_MAX_PAGE_INDEX 51

Text Mode and PDU Mode Error Values

#define MMISMS_ERROR_ME_FAILURE 300

#define MMISMS_ERROR_ME_SMS_SERVICE_RESERVED 301

#define MMISMS_ERROR_OPERATION_NOT_ALLOWED 302

#define MMISMS_ERROR_OPERATION_NOT_SUPPORTED 303

#define MMISMS_ERROR_INVALID_PDU_MODE_PARAMETER 304

#define MMISMS_ERROR_INVALID_TEXT_MODE_PARAMETER 305

#define MMISMS_ERROR_SIM_NOT_INSERTED 310

#define MMISMS_ERROR_SIM_PIN_NECESSARY 311

#define MMISMS_ERROR_PH_SIM_PIN_NECESSARY 312

#define MMISMS_ERROR_SIM_FAILURE 313

#define MMISMS_ERROR_SIM_BUSY 314

#define MMISMS_ERROR_SIM_WRONG 315

#define MMISMS_ERROR_MEMORY_FAILURE 320

#define MMISMS_ERROR_INVALID_MEMORY_INDEX 321

#define MMISMS_ERROR_MEMORY_FULL 322

#define MMISMS_ERROR_SMSC_ADDRESS_UNKNOWN 330

#define MMISMS_ERROR_NO_NETWORK_SERVICE 331

#define MMISMS_ERROR_NETWORK_TIMEOUT 332

#define MMISMS_ERROR_UNKNOWN_ERROR 500

40 98-08901C39-A

Page 15: At Commands g18

Software Interface

#define MMISMS_SUCCESS 512

Text Mode and PDU Mode Error Values (Continued)

#define TD_SMS_RP_CAUSE_MASK 127 0x7F (MSB of RP-Cause is an ext bit)

#define TD_SMS_RP_CAUSE_NUM_MO_RP_CAUSES 22

#define TD_SMS_RP_CAUSE_NUM_MT_RP_CAUSES 8

#define TD_SMS_RP_CAUSE_UNASSIGNED_NUMBER 1

#define TD_SMS_RP_CAUSE_OPERATOR_BARRING 8

#define TD_SMS_RP_CAUSE_CALL_BARRED 10

#define TD_SMS_RP_CAUSE_SM_TRANSFER_REJECTED 21

#define TD_SMS_RP_CAUSE_MEMORY_CAPACITY_EXCEEDED 22 (MT specific)

#define TD_SMS_RP_CAUSE_DESTINATION_OUT_OF_ORDER 27

#define TD_SMS_RP_CAUSE_UNIDENTIFIED_SUBSCRIBER 28

#define TD_SMS_RP_CAUSE_FACILITY_REJECTED 29

#define TD_SMS_RP_CAUSE_UNKNOWN_SUBSCRIBER 30

#define TD_SMS_RP_CAUSE_NETWORK_OUT_OF_ORDER 38

#define TD_SMS_RP_CAUSE_TEMPORARY_FAILURE 41

#define TD_SMS_RP_CAUSE_CONGESTION 42

#define TD_SMS_RP_CAUSE_NO_RESOURCES 47

#define TD_SMS_RP_CAUSE_FACILITY_NOT_SUBSCRIBED 50

#define TD_SMS_RP_CAUSE_FACILITY_NOT_IMPLEMENTED 69

#define TD_SMS_RP_CAUSE_INVALID_RP_MR 81 Bad RP-MR

#define TD_SMS_RP_CAUSE_SEMANTICAL_ERROR 95 Error in an IE

#define TD_SMS_RP_CAUSE_MANDATORY_IE_ERROR 96 Mandatory IE missing/has error

98-08901C39-A 41

Page 16: At Commands g18

Software Interface

#define TD_SMS_RP_CAUSE_RP_MT_NOT_IMPLEMENTED 97 Specific message type not supported

#define TD_SMS_RP_CAUSE_BAD_STATE 98 RP-MT not compatible with SM-RL state

#define TD_SMS_RP_CAUSE_IE_NOT_IMPLEMENTED 99 IE missing or nonexistent

#define TD_SMS_RP_CAUSE_UNSPECIFIED_ERROR 111 Protocol error unspecified

#define TD_SMS_RP_CAUSE_INTERWORKING_ERROR 127

#define TD_SMS_RP_CAUSE_SUCCESS 128 INTERNAL MOTOROLA DEFINITION

#define TD_SMS_RP_CAUSE_SUCCESS_ACK 129 INTERNAL MOTOROLA DEFINITION

#define TD_SMS_RP_CAUSE_NO_TRANSACTION_ID 253 INTERNAL MOTOROLA DEFINITION

#define TD_SMS_RP_CAUSE_CM_INTERNAL_ERROR 254 INTERNAL MOTOROLA DEFINITION

#define TD_SMS_RP_CAUSE_RL_TIMEOUT 255 INTERNAL MOTOROLA DEFINITION

SMS TIMERS

#define TD_TIMER_LENGTHS_CMSMS_TC1M 20000 20 sec for both mob. orig. and mob. term. SMS CM

#define TD_TIMER_LENGTHS_MMISMS_TR1M 45000 45 sec for SMS mobile originated relay layer TR1M timeout

#define TD_TIMER_LENGTHS_MMISMS_TRAM 35000 35 sec for SMS memory available relay layer TRAM timeout

#define TD_TIMER_LENGTHS_MMISMS_SHORTCUT_MSG_TIMEOUT 60000 60 sec for "Message - Read Now?" message window timeout

#define TD_TIMER_LENGTHS_MMISMS_TL_IP_ACK 60000 msec

#define TD_TIMER_LENGTHS_MMIIPS_IP_RING_IND_VALUE 5000 msec

42 98-08901C39-A

Page 17: At Commands g18

Software Interface

4.6.7 Sending a Fax

4.6.7.1 Installing the Modem DriverFrom the Control Panel, select Modems > Add modem> Next > (Windows finds "standard modem" on one of theCOM ports) > Change > Have Disk > Enter the path tomodem driver (for example, D:\motorola\modem) and selectL-series > Next > Finish. (You may have to restart beforeusing the modem.)

4.6.7.2 Configuring the Modem in WinFax1. Run WinFax.

2. Select Tools > Program Setup > Modemsand Communications Devices > Properties.

3. Set Motorola L Series to Active (WinFax begins test-ing the modem and the result is Failed. This result isacceptable).

4. Click Next and select CLASS 1 (Hardware FlowControl) > Next > Finish, set Default (or other) > OK .

5. In the Modem and Communications Devices Proper-ties window, click Properties.

6. In General > Communications port, set the COM portto which the modem is connected and initialize it at57600 bps.

4.6.8 Establishing GPRS PDP Context

When using the GPRS Network for HTTP/FTP browsing,you must be attached to the GPRS Network before activatingPDP context.

Connection may be performed in one of the following twoways:� Automatically after powering up your MS. The GPRS

logo is displayed on your screen.

� Using the AT+CGATT=1 command. You can check yourconnection status by using the AT+CGATT? commandAT+CGDCONT=1,"IP","RTY","123.32.45.9

Following are the three main ways in which to activate PDPcontext:1. If the GPRS Wizard application is used, double-click

the button predefined as the dialer for this provider toautomatically establish PDP context. If the g18 was notpreviously attached to GPRS, it will be attached auto-matically.

Setup Configuration

1. Enter into the wizard parameters provided by youroperator.

2. Set definitions to allow your http\ftp browser to usethe g18 as a port to the Internet.

Usage

1. Open the GPRS wizard.

2. Double-click the dialer icon to select and activate theprovider of your choice (multiple providers may bedisplayed in the list).

3. After dialing, your temporary IP address and then theGPRS DATA session message will be displayed onthe handset.

4. Minimize the GPRS wizard window and use yourhttp\ftp browser (Internet Explorer, Netscape).

2. If you use AT commands to activate PDP context, youmust perform the following steps:

1. Define the PDP contact (profile). For example: AT+CGDCONT=1,"IP","RTY","

2. Define Quality of Service. For example: At+CGQREQ=3,2,4,5,8,12

3. Define minimum acceptable Quality of Service. For example: At+CGQMIN=1,0,0,0,0

4. Activate PDP context using the AT+CGACT=1command.

#define TD_TIMER_LENGTHS_MMISMS_VIAG_SCAN 60000 60 sec timer in msec

#define MMISMS_SET_TR1M_TIMER (1) Used by send_timer method to determine which timer task port a timer primitive is sent to.

#define MMISMS_RESET_TR1M_TIMER (0)

SMS TIMERS

98-08901C39-A 43

Page 18: At Commands g18

Software Interface

Setup Configuration

AT+CGQMIN=1,0,0,0,0,0

AT+CGQREQ=1,0,0,0,0,0

AT+CGCONT=1,"IP","APN","0.0.0.0",0,0 // APN –replace it with the provider name

AT

AT &F0 &D2 &C1 E0

AT V1 W1 S95=47

AT&K3

ATD*99#

3. Using the ATD* command set: The GSM 07.07 version7.5.0, Chapter 10.2.1.1 states:

Request GPRS service 'D':

D*<GPRS_SC>[*[called_address>][*[L2P][*<cid>]]]]#

The g18 supports TCP/IP protocol only, and thiscommand can be used in the following format:

ATD*99***(CID)#

The CID includes the APN (defined by theAT+CGDCONT command) to which you want to beconnected. (This depends on the ability of the SIM cardto be attached to the different networks)

The format ATD*99# may also be used. In this case, theg18 will first try to activate a non-empty (predefined)CID. If the attempt fails, the g18 will try the next CID,and so on.

4.6.9 Changing the PIN Code Number

1 Check your CPIN status. If AT+CPIN? returns +CPIN:READY then proceed to the next step.If AT+CPIN? returns +CPIN: SIM PIN, enter the PINnumber and recheck whether the status is READY.

2 Check that AT+CLCK=SC,2 returns +CLCK: 1,7. Ifnot, send AT+CLCK=SC,1, your PIN# command.

3 You can now change the PIN number by using the+CPIN command as follows:AT+CPIN=Old PIN#, New PIN#

4.6.10 Writing into the Fix Dialing (FD) Phone Book

Send AT+CLCK="FD",2 (Query Status)

If the response is: +CLCK: 1,7- Enter AT+CLCK="FD",0,"PIN2".

After receiving OK, write operations are allowed in the FDarea.

If the response is: +CLCK: 0,7enter AT+CLCK="FD",1,"PIN2", OK, then enter AT+CLCK="FD",0,"PIN2".

Note

Bear in mind that the AT command AT+CGACTis not supported in all countries with GPRS. AGPRS connection is also possible withATD*99#. See the following section for moreinformation.

Note

The above list is only for the AT command level.PPP information (DNSs) is not shown here.

Note

When buffering the DTE message data in theg18 (both inbound and outbound data), thefollowing apply:

•Turning off the g18 clears any buffered data.

•Removing power from the g18 clears anybuffered data.

•Whenever the DTE drops the PPP connectionwith the g18, via LCP terminate, the buffereddata is cleared.

•Whenever the g18 drops the PPP connectionwith the DTE, with LCP terminate, the buffereddata is cleared. LCP termination triggers thetermination of the data in the g18 buffer.

•Whenever the g18 drops the PPP connectionwith the DTE, without an LCP terminate, thebuffered data is cleared. Dropping the DTRalso clears the buffer.

•When the network sends a deactivationmessage or a detached message, the g18buffer is cleared.

•When the g18 transfers data in the uplink andGPRS coverage is lost, the data may flow-off.If the mobile has lost coverage and is unable tosend the packets from the DTE to the network,the buffers will continue to store the packetsuntil the buffers are full. The DTE will then beflowed off and the packets will be stored untilthey can be sent to the GPRS network.

•The amount of time that takes before the useris notified is specified in the T3312 timer that islocated in the mobile side. The default delaytime of T3312 is 54 minutes, as per the GSM0408 specification. After 54 minutes, the g18deactivates the PDP session.

44 98-08901C39-A

Page 19: At Commands g18

Software Interface

After receiving OK, write operations are allowed in the FDarea.

at+cpbs="fd"

OK

at+cpbw=10,"123",,"time"

ERROR

at+clck="fd",2

+CLCK: 0,7

OK

at+clck="fd",0,"7391"

OK

at+clck="fd",2

+CLCK: 0,7

OK

at+cpbw=10,"123",,"time"

OK

The following is an example of a SIM card that is configuredwith the Fixed Dial number phonebook of 0 possible entries:

at+cmee=2

OK

at+clck=?

+CLCK:("CS","SC","AO","OI","OX","AI","IR","AB","AG","AC","FD")

OK

at+clck="FD",2

+CLCK: 3,7

OK

at+cpbs=?

+CPBS: ("FD","LD","ME","MT","SM","DD","RC")

OK

at+clck="FD",0,"8625"

OK

at+clck="FD",2

+CLCK: 0,7

OK

at+cpbs="FD"

+CME ERROR: "operation not allowed"

Possible explanations could be “Fixed Dial Phonebook notavailable” or “No memory space available on the SIM cardfor the fixed Dial Phonebook”.

4.7 BASIC AT COMMANDS

Table 14 lists the basic AT commands for the g18 modem.Most of the basic commands are from the V.25ter reference.Commands shown in bold are factory defaults.

The format of the command is:

AT<command>

For example: ATE0 will turn off the echo command.

Note

To repeat the command, use the command A/which will repeat the previous command. This isnot prefixed with AT.

Table 14. 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 useATDxxx; or AT*Dxxxx or ATD>102or ATD>DAN or ATDS=1 or ATDS=0 or 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.

I1 Reports pre-computed checksum.

I2 Reports processor name.

I3 Reports firmware revision.

I4 Reports product name.

98-08901C39-A 45

Page 20: At Commands g18

Software Interface

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 g18 is not in sleep mode. ATS24=# The g18 is in sleep mode and will enter sleep mode after # seconds. Refer to “How/When to Wake Up the Unit”, page 15.

Sn for n equal to 14, 21, 22, 31, 36, 39, 40, 41

Bit map registers.

Table 14. 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 using the TS line. It will turn off the backlight immediately, for the first time after powering up.Note: ATS98=x is allowed only for x=1.

S99 ATS99=x to define 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 value 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 g18 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 value 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.

Table 14. Basic Call Control Commands (Including V.25ter) (Continued)

Command Function

46 98-08901C39-A

Page 21: At Commands g18

Software Interface

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.

&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. The modem ignores DTR.

&D1 Interprets the DTR on-to-off transition. The modem performs as asynchronous to command mode.

Table 14. Basic Call Control Commands (Including V.25ter) (Continued)

Command Function

&D2 Interprets the DTR on-to-off transition. The modem hangs up.

&D3 Interprets the DTR on-to-off transition. The 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 g1,8 since it only has a non-transparent mode.)

&Q5 Modem negotiates an error corrected link (default). (This has no effect on the g18, since it only has a non-transparent mode.)

&Q6 Selects an asynchronous operation in normal mode. (This has no effect on the g18, since it only has a non-transparent mode.)

&R No action, compatibility only.

&S Defines the DSR's behavior. (This is always active).

Table 14. Basic Call Control Commands (Including V.25ter) (Continued)

Command Function

98-08901C39-A 47

Page 22: At Commands g18

Software Interface

4.8 ERROR CORRECTION AND COMPRESSION (ECC) COMMANDS

The g18 modem supports the commands listed in Table 16.

&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 g18, since it only has a non-transparent mode.)

\N2 Selects the reliable link mode. (This has no effect on the g18, 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.

Table 14. Basic Call Control Commands (Including V.25ter) (Continued)

Command Function

Table 15. Advanced AT Commands List

Command Function

+CRTT Selects ring tone.

+CIPE Enables/disables CIP command.

+CIP Sends IP primitives over RS232 (IP primitives are messages used by the DSC bus).

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

Table 16. Supported ECC Commands List

Command Function

%C0 Disables data compression. (This has no effect on the g18, since it does not have compression.)

%C1 Enables MNP 5 data compression. (This has no effect on the g18, since it does not have compression.)

48 98-08901C39-A

Page 23: At Commands g18

Software Interface

4.9 FAX CLASS 1 COMMANDS

4.10 ETSI 07.07 STANDARD

The following tables list the commands defined by ETSIstandard 07.07 Phase 1, which are supported by the g18modem.

For a more detailed description of ETSI commands, refer toETSI document GSM 07.07 — prETS 300 916, GSM 07.05,GSM 03.40 Sections 9.1 and 9.2, GSM 04.11 Sections8.2.5.1 and 8.2.5.2, and GSM 03.38.

For each command it is recommended that you use the ?option to query the modem for the particular details of eachcommand. For example, use AT+CR? to get the full detailson the +CR command.

%C2 Enables V.42 bis data compression. (This has no effect on the g18, since it does not have compression.)

%C3 Enables both V.42 bis and MNP 5 compression. (This has no effect on the g18, 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 g18.

\S Shows the status of the commands and S-Registers in effect.

Table 17. FAX Class Commands

Command Function Remark

"FCLASS" Selects mode 0 – data1 – 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

Table 16. Supported ECC Commands List (Continued)

Table 18. 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

Table 19. ETSI 07.07 Call Control Commands and Methods

Command Description Reference

+CSTA Selects type of address and selects dial characters allowed in dial string

6.1

98-08901C39-A 49

Page 24: At Commands g18

Software Interface

D Dial modesDial modifiers for V.25ter dialing (TP!W,>IiGg)

6.2

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, and so on.)

6.7

+CRLP Radio link protocol parameters

6.8

+CR Service reporting control (result codes)

6.9

+CEER 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 20. ETSI 07.07 Mobile Extended Error Report

Command Description

+CEER Extended error report

+CEER ERROR

1 Unassigned or unallocated number

3 No route to destination6 Channel unacceptable8 Operator determined barring

16 Normal call clearing17 User busy18 No user responding

19 User alerting, no answer

Table 19. ETSI 07.07 Call Control Commands and Methods (Continued)

Command Description Reference

+CEER ERROR

21 Call rejected

22 Number changed26 Non selected user clearing27 Destination out of order

28 Invalid number format (incomplete number)

29 Facility rejected30 Response to STATUS ENQUIRY31 Normal, unspecified

34 No circuit/channel available38 Network out of order41 Temporary failure

42 Switching equipment congestion43 Access information discarded44 Requested circuit/channel

unavailable47 Resources unavailable, unspecified

49 Quality of Service unavailable50 Requested facility not subscribed55 Incoming calls barred within the

CUG57 Bearer capability not authorized

58 Bearer capability not presently available

63 Service or option not available, unspecified

65 Bearer service not implemented69 Requested facility not implemented70 Only restricted digital information

bearer capability is available79 Service or option not implemented,

unspecified81 Invalid transaction identifier value

87 User not member of CUG88 Incompatible destination91 Invalid transit network selection

95 Semantically incorrect message96 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 error101 Message not compatible with

protocol state

Table 20. ETSI 07.07 Mobile Extended Error Report (Continued)

Command Description

50 98-08901C39-A

Page 25: At Commands g18

Software Interface

+CEER ERROR

102 Recovery on timer expiry

111 Protocol error, unspecified127 Inter-working, unspecified

Table 21. 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

+CHLD Call-related supplementary services

7.12

+CTFR1* Reject an incoming call, and divert it to the voice mail (not to another number)

7.13

+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 20. ETSI 07.07 Mobile Extended Error Report (Continued)

Command Description

Table 22. ETSI 07.07 Mobile Equipment Control and Status Commands

Command Description Reference

+ Phone activity status (off, on, online)

Return Code - Meaning+CPAS:000 - Ready+CPAS:001- Unavailable+CPAS:002 - Unknown

+CPAS:003 - Ringing+CPAS:004 - Call in process+CPAS:005 - Asleep

8.1

+CPIN Enter/change PIN (4 - 8 digits)

8.3

+CSQ Signal quality 8.5

+CMEC Mobile equipment control mode (optional if keypad and display not supported)

8.6

+CKPD Keypad control 8.7

+CDIS* Display Control - upon sending AT+CMER=0,0,1 current text display report is received

8.8

+CIND† Indicator Control - upon sending AT+CMER=0,0,0,1 current indicator report is received

8.9

+CMER Mobile equipment event reporting

8.10

+CPBS Selects phone book memory storage (optional if phone book not supported)

8.11

+CPBR Reads phone book entries

8.12

+CPBF Finds phone book entries

8.13

98-08901C39-A 51

Page 26: At Commands g18

Software Interface

4.11 V.25TER COMMANDS USED WITH GSM

The following are the V.25ter commands that can be usedwith GSM.

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

8.24

*This command is not supported by the g18. To obtain +CDIS func-tionality, follow the instructions above.

†This command is not supported by the g18. To obtain +CIND func-tionality, follow the instructions above.

‡This command is not supported by the g18. To obtain +CMUT functionality, use +CIP AT command, and follow the instructions above.

Table 23. ETSI 07.07 Mobile Equipment Errors and Status Reports

Command Description Reference

+CMEE Report mobile equipment error

9.1

+CME ERROR

0 Phone failure

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

10 SIM not inserted11 SIM PIN required12 SIM PUK required

13 SIM failure14 SIM busy15 SIM wrong

16 Incorrect password

9.2

Table 22. ETSI 07.07 Mobile Equipment Control and Status Commands (Continued)

Command Description Reference +CME ERROR

17 SIM PIN2 required

18 SIM PUK2 required

20 Memory full21 Invalid index22 Not found

23 Memory failure24 Text string too

long25 Invalid characters

in text string26 Dial string too

long27 Invalid characters

in dial string30 No network

service31 Network time-out32 Network not

allowed - emergency calls only

9.2

Table 24. V.25ter Commands Used with GSM

Command DescriptionV.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

Table 23. ETSI 07.07 Mobile Equipment Errors and Status Reports (Continued)

52 98-08901C39-A

Page 27: At Commands g18

Software Interface

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

Sn for n equals to 14, 21, 22, 31, 36, 39, 40, 41

Bit map registers.Note: S14 is a read only register. When trying to type it will return OK but value is not changed.

Table 24. V.25ter Commands Used with GSM (Continued)

Command DescriptionV.25ter

Reference

S95 Bitmap register for extended result code.

S96 Echo cancelling feature for audio devices by ATS96=1. After sending this command, the radio should be restarted to activate this feature.

S97 Antenna diagnostic feature: ATS97? will respond 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 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 value is not allowed.

S99 responds with an error if the value is greater than 2,147,483,647.

Table 24. V.25ter Commands Used with GSM (Continued)

Command DescriptionV.25ter

Reference

98-08901C39-A 53

Page 28: At Commands g18

Software Interface

4.12 ETSI 07.05 STANDARD (SMS)

The following tables list the complete set of commands asdescribed in ETSI standard 07.05. For each command it isrecommended that you use the ? option to query the modemfor the particular details of each command. For example, useAT+CR? to get the full details on the +CR command.

Block mode is a stand-alone mode that makes use of full textcommands and responses to send and receive SMSmessages. This is an older mode that is provided for compat-ibility reasons. It is recommended that PDU mode be usedinstead of block mode. Text mode is not supported by themodem. PDU mode is the preferred method since it is thesimplest and easiest to use.

4.12.1 Block Mode

SMS block mode is described fully in GSM 07.05, section 2.

S100 ATS100=x, where x defines the number of seconds. To avoid frequent hardware interrupts, the g18 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

X Result code selection and call progressmonitoring control.

6.2.7

Z0 Restores stored profile 0 6.1.1

Z1 Restores stored profile 1 6.1.1

Table 25. 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.

Table 24. V.25ter Commands Used with GSM (Continued)

Command DescriptionV.25ter

Reference

; Dial modifier

Modifier for voice dial.

A Voice answer.

H Voice hang-up.

Table 26. ETSI 0705 TE Commands Sent from Host to Phone

Command DescriptionETSI 07.05Reference

ACKNOWLEDGE MESSAGE

Acknowledges receipt of INC MESSAGE or MESSAGE ARRIVED

2.4.1.12

DELETE MESSAGE

Deletes SMS message

2.4.1.9

END SMS MODE Terminates SMS/CBS mode of the DTE/DCE interface

2.4.1.11

Table 25. V.25ter Voice Commands (Continued)

Command Description

54 98-08901C39-A

Page 29: At Commands g18

Software 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 messages

2.4.1.6

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 directly to host computer

2.4.1.7

TRANSFER INC SMS

Requests direct transfer of incoming SMS messages from the air directly to host computer

2.4.1.5

UNABLE TO PROCESS

Indicates that a phone message could not be processed

2.4.1.10

Table 26. ETSI 0705 TE Commands Sent from Host to Phone (Continued)

Command DescriptionETSI 07.05Reference

Table 27. ETSI07.05 MT Responses Sent from Phone to Host

Response DescriptionETSI 07.05Reference

DELETE MESSAGE COMPLETE

Host’s request to delete a message has been completed

2.4.2.8

DELETE MESSAGE FAILURE

Host’s request to delete a message has failed

2.4.2.9

END SMS MODE

Phone is exiting SMS mode

2.4.2.11

GET MESSAGE FAILURE

Request for a message cannot be fulfilled

2.4.2.3

INC MESSAGE

Incoming message transfer to host has been requested

2.4.2.4

INSERT SMS COMPLETE

Host’s request to insert a message has been completed

2.4.2.6

INSERT SMS FAILURE

Host’s request to insert a message has failed

2.4.2.7

MESSAGE Indicates a message has been requested

2.4.2.2

MESSAGE ARRIVED

Indication of incoming messages has been 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

98-08901C39-A 55

Page 30: At Commands g18

Software Interface

4.12.2 Text Mode

Text mode is fully described in GSM 07.05, section 3.

The g18 module does not support text mode, however thefollowing commands are supported, since they are useful forPDU mode.

Table 28. ETSI 07.05 Text Mode

Command DescriptionETSI 07.05Reference

+CSMS Select message service (phase 2, phase 2+, and so on)

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

+CMS Message service failure result code:0 - 127 GSM 04.11 Appendix E-2 values128 - 255 GSM 03.40 sub-clause 9.2.3.22 values

300 ME failure301 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

3.2.5

+CMS 311 SIM PIN required

312 PH-SIM PIN required

313 SIM failure314 SIM busy315 SIM incorrect

316 SIM PUK required

317 SIM PIN2 required

318 SIM PUK2 required

320 Memory failure321 Invalid

memory index322 Memory full330 SMSC

address unknown

331 No network service

332 Network time-out

340 No +CNMA acknowledge-ment expected

500 Unknown error

3.2.5

+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

+CNMA Acknowledges new message to ME/TA

3.4.4

+CMSS Sends message from storage

3.5.2

Table 28. ETSI 07.05 Text Mode (Continued)

Command DescriptionETSI 07.05Reference

56 98-08901C39-A

Page 31: At Commands g18

Software Interface

4.12.3 PDU Mode

PDU mode is described fully in GSM 07.05 Section 4. PDUmode uses the same commands and responses as the Textmode described above. However, PDU mode uses differentformats for the following commands and responses.

In addition, refer to GSM 04.11 and GSM 03.40 for detailson formatting the Service Center Address and TransportData Protocol Unit of the SMS PDU.

4.13 GPRS COMMANDS

Table 29. ETSI 0705 PDU Mode

Command DescriptionETSI 07.05Reference

+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

Table 30. 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 Service profile

10.1.2

+CGQMIN Defines, modifies or removes a minimum required Quality of Service profile

10.1.3

+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, manages, retrieves)

10.1.11

98-08901C39-A 57

Page 32: At Commands g18

98-08901C39-A

G. AT COMMANDS

7.1 BASIC FUNCTIONALITY

Make sure that the g18 is mounted and linked correctly to the developer board. The power supply must provide 3-6 V DC with-out any voltage spikes.

Use Telix or any other terminal program on your computer and set it to a normal RS232 connection, using a one-to-one connec-tion cable.

After all the links have been established correctly, use the power switch to power up the board.

7.1.1 PIN and PUK Code Entry

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

G1 is the group containing the following AT commands:

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

• AT+CKPD (to simulate handset key strokes).

• AT+CMER (to obtain handset screen output).

AT Command Reaction Remarks

at+cpin=”nnnn” +CME ERROR: <err>

Enables the SIM card.

nnnn = PIN number (4 - 8 digits).If PIN is correct, “OK” is shown. If PIN is incorrect, “ERROR” is shown.

When incorrect PIN is entered:ERROR

When correct PIN is entered:OK

at+cpin? +CPIN: <code>+CME ERROR: <err>Responds with information about the SIM and the PIN.

When no SIM is available: ERROR

When PIN is not needed:+CPIN:READY

When PIN is needed: +CPIN: SIM PIN

When PUK number is needed:+CPIN: SIM PUK

When PIN2 is blocked:+cpin: SIM PUK2

69

Page 33: At Commands g18

AT Commands

G2 is the group containing the AT commands which interacts with the ME. The following commands are accepted when theME is pending SIM PIN, SIM PUK or PH-SIM (GSM 7.07 section 8.3): +CGMI, +CGMM, +CGMR, +CGSN, +CPAS, +CPIN.

7.1.2 Feedback from the System

SIM/PIN StatusAllowed

CommandsAT Command Result for Non-allowed Commands

+CPIN? Result+CPIN? Code

Output

No SIM G1 SIM not inserted SIM not inserted -

Bad SIM G1 SIM failure SIM failure -

Required SIM Card PIN G1, G2 SIM PIN required OK SIM PIN

PIN1 Blocked G1, G2 SIM PUK required OK SIM PUK

Permanent Blocked (PUK) G1 SIM failure SIM failure -

PIN2 Required All Depends on AT command OK

PIN2 Blocked All Depends on AT command OK SIM PUK2

Permanent Blocked (PUK2) G1 SIM failure SIM failure -

Other All Depends on AT command OK READY

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.

AT Command Reaction Remarks

ati3 Provides the software version. For example, E6.02.07.

at+cgmr Provides hardware information. PC Card: g18_v_E6_02_07.

at+cgmi Provides hardware information. CGMI: “MOTOROLA”.

at+cnum Provides the subscriber number. +cnum: “VOICE”,”054445561”,129.+cnum: “DATA”,”054626515”,129.

+cnum: “FAX”,”054562511”,129.

at+cops? Provides the name of the network operator.

For example,+COPS: 000, 000, “IL ORANGE”.

70 98-08901C39-A

Page 34: At Commands g18

AT Commands

7.1.3 Establishing a Voice Call

The following procedure shows the basic commands to be sent to the g18 to establish a voice call.

at+csq Provides the signal strength indication, for example +csq: 031,099.

For example, +CSQ: 030, 099.

Note: Does not support BER information.

at+cmee=1 or 2 Reports mobile equipment error. Must always be set to 2.

0 = disabled. 1 = enabled. 2 = enabled.

at+cmer Reports mobile equipment events to the IP.

For example,AT+CMER=0,0,1,1,0.

AT Command Reaction Remarks

Power up the g18.

at+cpin=”xxxx” Enables the SIM card. DSC LED lights up.xxxx = PIN number (4 - 8 digits).

ATD (phone number); orAT*D (phone number) orATD> <index>; or

ATD> <”name”> orATDS=n (n=0 to 3) orATD><mem><index>;

Dials the phone number (voice call). For example,

ATD123456;ATD>102; ORATD>”DAN” OR

ATDS=1; ORATDS=0 ORATD>SM101;

OK. No Carrier.

Atdl Redials the last number.

at*dxxxx Current call is a voice call.

Ath Hangs up. Note: In Multi-party calls, ATH does not end the last call, only AT+CHLD=1 does.

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.

AT Command Reaction Remarks

98-08901C39-A 71

Page 35: At Commands g18

AT Commands

7.1.4 Answering a Voice Call

The following procedure shows the basic commands to be sent to the g18 to answer a voice call.

7.1.5 Finding a Phone Book Entry

The following procedure shows the basic commands to be sent to the g18 to find a phone book entry.

AT Command Reaction Remarks

Power up the g18.

at+cpin=”nnnn” Enables the SIM card. nnnn = PIN number (4 - 8 digits).

ata Answers the call.

AT Command ReactionRemarks

Power up the g18.

at+cpin=”nnnn” Enables the SIM card. nnnn = PIN number (4 - 8 digits).

at+cpbs=“mt“ Enables the phone and SIM memory.

at+cpbf= “Name” The g18 shows the number on that position +cpbf: xxx, “phone number“, yyy, “Name of the entry“.

The “NAME” is a string up to 3 characters. <xxx> Position in the memory.

0-100 Phone memory. 101-220 SIM card memory.<yyy>

129 Normal number.145 International number.

72 98-08901C39-A

Page 36: At Commands g18

AT Commands

7.1.6 Writing a Phone Book Entry

7.1.7 Reading a Phone Book Entry

7.1.8 Phone Book Function

AT Command Reaction Remarks

Power up the g18.

at+cpin=”nnnn” Enables the SIM card. nnnn = PIN number (4 - 8 digits).

at+cpbs=“mt“ Enables the phone and SIM memory.

at+cpbw=xxx,“Phone number“, yyy, “Name of the entry“

The g18 writes the number on that position.

<xxx> Position in the memory. 0-100 Phone memory. 101-220 SIM card memory.

<yyy> 129 Normal number.145 International number.

AT Command Reaction Remarks

Power up the g18.

at+cpin= ”nnnn” Enables the SIM card. nnnn = PIN number (4 - 8 digits).

at+cpbs= “mt“ Enables the phone and SIM memory.

at+cpbr= xxx The g18 shows the number on that position

+CPBR: xxx, “phone number“, yyy, “Name“.

<xxx> Position in the memory. 0-100 Phone memory. 101-220 SIM card memory.

<yyy> 129 Normal number.145 International number.

AT Command Reaction Remarks

at+cpbs=”NN” This AT should be the first one to be used to select the phone book.

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

98-08901C39-A 73

Page 37: At Commands g18

AT Commands

7.1.9 Sending an SMS in PDU Mode

7.1.10 Establishing GPRS PDP Context

When using the GPRS network for HTTP/FTP browsing, you must be connected to the GPRS network before the activation ofPDP context.

Connection may be performed in one of two ways:

• Automatically, after powering up of your MS. On the screen, the “GPRS” logo is displayed.

• Using the AT+CGATT=1 command.

at+cpbs? For example, +CPBS: “SM”,45, 100

at+cpbs=? +CPBS: (“FD”,”LD”,”ME”,”MT”, ”SM”,”DD”,"RC","MC")

List of supported memory.

at+cpbr= xxx For example:at+cpbr=101

+CPBR: 101,”123456”,129,”AVI”

<xxx> is a number from 0 to 100, used to read from ME phone books and 101 to 220, used to read from SIM phone books.

AT Command Reaction Remarks

Power up the g18.

at+cpin=”nnnn” Enables the SIM card. nnnn = PIN number (4 - 8 digits).

at+csms=<service> Selects the message service response: +CSMS: <mt>,<mo>,<bm>

<Service>

0 for phase 2

+CSMS: 001,001,001 OK.

<mt>,<mo>,<bm>1 supported2 not supported

at+cpms=”sm” Preferred message storage response: +CPMS:<used1>,<total1>,<used2>,<total2>+CPMS: 001,0015,001,015 OK.

at+cmgs=160 >0791947122720 00011000c91947 1628128430000a 704f4f29c0e ctrl-z

Sends an SMS in PDU mode return:+CMGS: 000.

Sends “TEST”:to phone # 49 -172 - 6188234 to SMS center 49 -172 - 2720000.

For the coding of SMS, refer to “SMS Error Messages”, page 36.

AT Command Reaction Remarks

74 98-08901C39-A

Page 38: At Commands g18

AT Commands

You can check your connection status by using the AT+CGATT? command:

AT+CGDCONT=1, “IP”,“RTY”,“123.32.45.9”

Following are the three main ways in which to activate PDP context:

1. If the GPRS Wizard application is used, double-click the button predefined as the dialer for this provider to automaticallyestablish PDP context. If the g18 was not previously attached to GPRS, it will be attached automatically.

Setup Configuration

1. Enter into the wizard parameters provided by your operator.

2. Set definitions to allow your http\ftp browser to use the g18 as a port to the Internet.

Usage

1. Open the GPRS wizard.

2. Double-click the dialer icon to select and activate the provider of your choice (multiple providers may be displayed inthe list).

3. After dialing, your temporary IP address and then the GPRS DATA session message will be displayed on the handset.

4. Minimize the GPRS wizard window and use your http\ftp browser (Internet Explorer, Netscape).

2. If you use AT commands to activate PDP context, you must perform the following steps:

1. Define the PDP contact (profile). For example: AT+CGDCONT=1,“IP”,“RTY”,“

2. Define Quality of Service. For example: At+CGQREQ=3,2,4,5,8,12

3. Define minimum acceptable Quality of Service. For example: At+CGQMIN=1,0,0,0,0

4. Activate PDP context using the AT+CGACT=1 command.

Setup Configuration

AT+CGQMIN=1,0,0,0,0,0

AT+CGQREQ=1,0,0,0,0,0

AT+CGCONT=1,“IP”,“APN”,“0.0.0.0”,0,0 // APN – replace it with the provider name

AT

AT &F0 &D2 &C1 E0

AT V1 W1 S95=47

AT&K3

ATD*99#

3. Using the ATD* command set:

To select the provider, protocol and the profile, use ATD*99***(CID)#. In fact, providers use the ATD*99# command toattach to their GPRS service.

Note

Bear in mind that the AT command AT+CGACT is not supported in all countries with GPRS. A GPRS connectionis also possible with ATD*99#. See the following section for more information.

Note

The above list is only for the AT command level. PPP information (DNSs) is not shown here.

98-08901C39-A 75

Page 39: At Commands g18

AT Commands

7.2 AT COMMAND LISTING

7.2.1 ATD, Dialing

Example

at*d06113611404

OK

OK // When the call is connected

atd06512467; //Another format for a voice call

atdl //Dial last number

ATDL: “06512467;”

OK

OK // When the call is connected

AT Command Reaction Remarks

atd<number> <busy>, <no carrier> <number>

Data/Fax number<busy> Called party is not available

<no carrier>No connection to the number

ATD (phone number); or

AT*D (phone number) orATD> <index>; orATD> <”name”> or

ATDS=n (n=0 to 3) orATD><mem><index>;ATDL

ATD*99

For voice calls only

Without “;”, is for Data Call

Requests GPRS service "D".Manual acceptance of a network request.

at*d xxxxxx Current call is a voice call.

Note

Only the second OK for the voice call notifies the user that the call was established.

76 98-08901C39-A

Page 40: At Commands g18

AT Commands

ath

NO CARRIER

OK

atd06113611404 // Data call

OK

BUSY

NO CARRIER

atd06113611404 // Data call - success

CONNECT

7.2.2 AT+CAOC, Charge Advice

Example

at+caoc=?

+CAOC: 0

OK

at+caoc=0

+CAOC: 000000

OK

AT Command Reaction Remarks

at+caoc=<mode> +caoc: <xxxx> <mode> 0 = Query CCM value

<xxxx>

The actual price of the current call (hex).

Note

Only available if the local network supports this command.

98-08901C39-A 77

Page 41: At Commands g18

AT Commands

7.2.3 AT+CCFC, Call Forwarding Number and Conditions

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

AT Command Reaction Remarks

at+ccfc = <reason>,<mode>[,<number>[,<type>[,<class>[,<subaddr>[,<satype>[,<time>]]]]]]

+CCFC: (0,1,2,3,4,5) <Reason> 0 Unconditional1 Mobile busy

2 No reply3 Not reachable4 All calls forwarding

5 All conditional calls forwarding

<Mode>0 Disable1 Enable

2 Query status3 Registration4 Erasure

<Type> 145 International number 129 Regular number

<Time> 1-30 Time to wait before the call is

forwarded when there is no reply (default)

<Class> 7 Equal for all classes

at+ccfc=? Returns all reasons supported

Note

The third parameter must be a multiple of 5 (0,5,10,...)

at+ccfc=5,2 and at+ccfc=4,2 are not supported by the network.

The first registration mode also enables the call forward.

78 98-08901C39-A

Page 42: At Commands g18

AT Commands

+CCFC: 0,2

+CCFC: 0,4

OK

at+ccfc=0,4,,,1

OK

7.2.4 AT+CCWA, Call Waiting

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 Command Reaction Remarks

at+ccwa=<n>, <mode>, <class x>

at+ccwa=?

at+ccwa?

Enables the call waiting feature

+CCWA: (list of supported <n>s)

+CCWA: <n>

<n>shows the result code in TA 0 Disable

1 Enable

<mode> 0 Disable

1 Enable 2 Query<status>

0 Not active 1 Active

<class x>

1 Voice 2 Data 4 Fax

Note

The unsolicited result code does not include the alpha tag within the double-quote.

98-08901C39-A 79

Page 43: At Commands g18

AT Commands

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

7.2.5 AT+CHLD, Call Related Supplementary Services

AT Command Reaction Remarks

at+chld=<mode>

at+chld=?

at+chld?

Switches between the active calls

+CHLD: (supported <mode>s)

+CME ERROR: “operation not allowed”

<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 will be supported. If there is no such call, returns error 22.

3 Adds a held call to the conversation.

CALL STATE (+CLCC)

+CHLD modes

CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3

IDLE Error 3. Error 3. Error 3. Error 3. Error 3. If there is no such call, returns error 22.

Error 3.

80 98-08901C39-A

Page 44: At Commands g18

AT Commands

SINGLE ACTIVE

Error 3. Release active.

When X = 1, release is active. If not, returns error 22.

Puts call on hold.

Error 3. If there is no such call, returns error 22.

Error 3.

MPTY ACTIVE

Error 3. Release mpty call. Returns 2 "no carrier" when there are 2 outgoing calls.

Releases a specific call x. If there is no such call, returns error 22.

Put mpty on hold.

Split. If there is no such call, returns error 22.

Error 3.

INCOMING CALL

Releases incoming call.

Error 3. Error 3. Error 3. Error 3. If there is no such call, returns error 22.

Error 3.

ACTIVE + WAITING

Releases waiting call.

Releases active call and accepts waiting call.

Releases a specific call x. If there is no such call, returns error 22.

Puts active call on hold and accepts the waiting call.

Error 3. If there is no such call, returns error 22.

Error 3.

MPTY ACTIVE + WAITING

Releases waiting call.

Release mpty, accepts waiting.

Releases a specific call x. If there is no such call, returns error 22.

Puts mpty on hold, accepts the waiting call.

Splits. If there is no such call, returns error 22.

Error 3.

SINGLE HELD

Releases held call.

Accepts held call.

Releases a specific call x. If there is no such call, returns error 22.

Accepts held call.

Error 3. If there is no such call, returns error 22.

Error 3.

HELD MPTY Releases held call.

Accept mpty call.

Releases a specific call x. If there is no such call, returns error 22.

Accepts mpty call.

Error 3. If there is no such call, returns error 22.

Error 3.

CALL STATE (+CLCC)

+CHLD modes (Continued)

CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3

98-08901C39-A 81

Page 45: At Commands g18

AT Commands

DUAL Releases held call.

Releases active, accepts the other call.

Releases a specific call x. If there is no such call, returns error 22.

Switches. Error 3. If there is no such call, returns error 22.

Makes a conference call.

DUAL + MPTY ACTIVE

Releases held call.

Releases mpty, accepts the other call.

Releases a specific call x. If there is no such call, returns error 22.

Switches. Error 3. If there is no such call, returns error 22.

Makes a conference call.

DUAL+ MPTY HELD

Releases held call.

Releases active, accepts the mpty.

Releases a specific call x. If there is no such call, returns error 22.

Switches. Error 3. If there is no such call, returns error 22.

Makes a conference call.

HELD + WAITING

Releases waiting call.

Accepts the waiting call.

Releases a specific call x. if there is no such call, returns error 22.

Accepts the waiting call.

Error 3. If there is no such call, returns error 22.

Error 3.

HELD MPTY + WAITING

Releases waiting call.

Accepts the waiting call.

Releases a specific call x. If there is no such call, returns error 22.

Accepts the waiting call.

Error 3. If there is no such call, returns error 22.

Error 3.

DUAL + WAITING

Releases waiting call.

Releases active, accepts waiting call.

Releases a specific call x. If there is no such call, returns error 22.

Error 3 (too many calls on hold).

Error 3. If there is no such call, returns error 22.

Joins the dual calls.

DUAL + MPTY ACTIVE + WAITING

Releases waiting call.

Releases mpty active, accepts waiting call.

Releases a specific call x. if there is no such call, returns error 22.

Error 3 (too many calls on hold).

Error 3. If there is no such call, returns error 22.

Joins the dual and the mpty calls.

CALL STATE (+CLCC)

+CHLD modes (Continued)

CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3

82 98-08901C39-A

Page 46: At Commands g18

AT Commands

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 goes to hold

OK

at+chld=2 //Call is reconnected

OK

at+chld=2 //Incoming intruder call

OK //First call goes to hold and second call is received

at+chld=2 //Second call goes to hold and first call becomes active

OK

DUAL + MPTY HELD + WAITING

Releases waiting call.

Releases active, accepts waiting call.

Releases a specific call x. If there is no such call, returns error 22.

Error 3 (too many calls on hold).

Error 3. If there is no such call, returns error 22.

Joins the dual and the mpty calls.

Note

Split: Places all active calls on hold except a specific call.

Switch:Puts the active call on hold and accepts the held call.

Error 3: "operation not allowed"

Error 22: "not found"

CALL STATE (+CLCC)

+CHLD modes (Continued)

CHLD = 0 CHLD = 1 CHLD = 1X CHLD = 2 CHLD = 2X CHLD = 3

98-08901C39-A 83

Page 47: At Commands g18

AT Commands

at+chld=3 //Add the held call to the conversation

at+chld=21 //Second call goes to hold

OK

7.2.6 AT+CLCC, List Current Calls

Example

AT+CLCC=?

OK

AT+CLCC?

+CME ERROR: “operation not allowed”

AT Command Reaction Remarks

at+clcc +CLCC: <id1>,<dir>,<call state>,<mode>,<mpty>[,<number>,<type>

<Direction> 0 Mobile originated call

1 Mobile terminated call

<Call State> 0 Active

1 Held 2 Dialing 3 Alerting

4 Incoming 5 Waiting 6 Released

<Mode> 0 Voice Call 1 Data

2 Fax<Multiparty> 0 Call is not part of a conference

call 1 Call is one of multiparty call

parties

<Phone Number>

<Type>129 Normal number145 International number with

access character +

at+clcc=? OK

at+clcc? +CLCC: 0 or +CLCC: 1

Note

Alpha string from phone book is not displayed.

Add non-standard "released" state.

Asynchronous answers are also allowed, by using at+clcc=1.

In Release state, the call mode will always be zero.

84 98-08901C39-A

Page 48: At Commands g18

AT Commands

at*d01256316830

OK

OK

AT+CLCC

+CLCC: 1,0,0,0,0,“01256316830”,129,“Shmuel”

OK

AT+CHUP

NO CARRIER

7.2.7 AT+CLCK, Facility Lock

AT Command Reaction Remarks

at+clck=<facility>,

<mode>[,<password>[,<class>]]

at+clck=?

+CME ERROR: <err>

when <mode>=2 and command successful:+CLCK: <status>, <class1>

+CLCK: (list of supported facilities)

<Facility>

CS Key padSC SIM CardAO Block all outgoing calls

OI Block all outgoing international calls

OX Block outgoing internationalcalls except to home country

AI Block all incoming calls

IR Block incoming calls when roaming outside home country

AB All blocking servicesAG All outgoing blocking servicesAC All incoming blocking Services

FD SIM fixed dialing feature

<Mode>0 Unlock

1 Lock2 Query status

< Password>

Call Block password or PIN1 to Lock/ Unlock SIM or PIN2 for SIM Fixed Dialing Feature

<Class>Sum of integers representing of information for call blocking services 1 Voice2 Data

4 Fax

<Status>0 Not active

1 Active

98-08901C39-A 85

Page 49: At Commands g18

AT Commands

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=“CS”,2

+CLCK: 0,7

OK

AT+CLCK=FD,2

+CLCK: 0,7 // means that write operations into FD area are possible if PIN2 was entered at least once after power up.

OK

7.2.8 AT+CLIP, Calling Line Identification Presentation

Example

at+clip=1

OK

RING

+CLIP: “+496113611404”,145

RING

+CLIP: “+496113611404”,145

AT Command Reaction Remarks

at+clip=<n>

at+clip?

at+clip=?

Shows the number of the calling party

+CLIP: <n>,<m>

+CLIP: (000,001)

<n>0 disable

1 enable <m>0 Clip not provisioned

1 Clip provisioned2 Unknown

86 98-08901C39-A

Page 50: At Commands g18

AT Commands

at+clip=?

+CLIP: (000,001)

OK

at+clip=0

OK

RING

7.2.9 AT+CLIR, Calling Line Identification Restriction

Example

at+clir=?

+CLIR: (0,1,2)

OK

at+clir?

+clir: 000,004

at+clir=2

OK

at+clir?

+clir: 002,004

AT Command Reaction Remarks

at+clir =<n> Shows the own number at the called party

<n> 0 Used according to the subscription

of the clir service1 Enable

2 CLIR suppression in permanent mode

<m> 0 Clir not provisioned 1 Clir provisioned

2 Unknown 3 Clir temporarily restricted4 Clir temporarily allowed

at+clir? +clir: <n>,<m>

at+clir=? +clir: (list of supported <n>s)

98-08901C39-A 87

Page 51: At Commands g18

AT Commands

7.2.10 AT+CMEE, Report Mobile Equipment

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

AT Command Reaction Remarks

at+cmee=<n> Shows a description of the error <n> 0 Disable 1 Enable (numeric)

2 Enable (verbose)

88 98-08901C39-A

Page 52: At Commands g18

AT Commands

7.2.11 AT+CMGS, Sending an SMS Message

7.2.12 AT+CNUM, Subscriber Number

Example

at+CNUM=?

OK

at+CNUM

+CNUM: voice, 054556426, 129

+CNUM: data, 054667739, 129

+CNUM: fax, 054422417, 129

at+CNUM=?

+CNUM: voice, 054525215, 129

+CNUM: data, 054215155, 129

+CNUM: fax, 054626618, 129

OK

AT Command Reaction Remarks

(cmgf=0)at+cmgs=<length> <cr>

>PDU is given

<ctrl-z/ESC>

Sends the SMS message

The message is terminated with control-Z character (0x1A)

<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

AT Command Reaction Remarks

at+cnum Shows the numbers which were entered into “My Phone Numbers” from the Handset menu.

98-08901C39-A 89

Page 53: At Commands g18

AT Commands

7.2.13 AT+COPS, Operator Selection

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

+CME ERROR: 027

AT Command Reaction Remarks

at+cops=<mode>,<format>,<oper> Selects the operator <mode> 0 Automatic 1 Manual

2 De-register from network3 Set only <format>4 Manual/automatic

<format> 0 Long alphanumeric1 Short alphanumeric

2 Numeric

<Operator status> 0 Unknown

1 Available 2 Current 3 Forbidden

at+cops=? +COPS: list of supported (<stat>, long alpha numeric <oper>, short alphanumeric <oper>, numeric <oper>)

at+cops? +COPS: <mode>,<present>,<oper>

Note

When set command (=) is used without entering <oper>, the response is OK but no action will beperformed (at+cops=<mode>,<format><cr>, the response is OK).

When manually de-registering from the network using AT+COPS=1,2, the phone automaticallysearches for a new network and logs in.

90 98-08901C39-A

Page 54: At Commands g18

AT Commands

at+cops=1,1,d02

OK

at+cops=1,1,d01

+CME ERROR: 100

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

98-08901C39-A 91

Page 55: At Commands g18

AT Commands

7.2.14 AT+CPBS, Selected Phone Book Memory Storage

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: 003

at+cpbs=“LD”

OK

AT Command Reaction Remarks

at+cpbs=<storage> +CPBS: <storage>[,<used>,<total>] <storage> FD SIM fix dialing phone book LD Last dialing phone book

ME ME phone book MT ME and SIM phone bookSM SIM phone book

DD Direct Dial phone bookRC ME received calls listMC ME missed calls list

Note

The g18 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.

MC (missed calls) and RC (received calls) share the same area. They are both limited to a total of 10 records, andthey are both sorted by their time stamps, where the first record in phone book is the latest call received or notanswered.

92 98-08901C39-A

Page 56: At Commands g18

AT Commands

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

at+cpbs=“SM”

OK

at+cpbs?

+CPBS: “SM”,14,100

OK

98-08901C39-A 93

Page 57: At Commands g18

AT Commands

7.2.15 AT+CPBW, Writing Phone Book Entries

Example,

at+cpbs=“sm”;+cpbw=?

+CPBW: (101-220),020,(255,129,145),014 // SM phone book definitions: number length limited to 20, text length limitedto 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 limitedto 16.

OK

In the next statement, try to write a record to the SM area in the MT phone book (record 110 is in this area), with 21 digits forthe 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”,,“123456789012345” // No error when writing to MT, to a slot defined in the SMphone book

OK

at+cpbr=110

+CPBR: 110,“12345678901234567890”,129,“12345678901234” // Record wrriten to phone book as defined in the definitionlimitation.

OK

AT Command Reaction Remarks

at+cpbw=[<index>], [,<number> [<type> [,<text>]]]

+cpbw: (list of supported <index>s),[<nlength>], (list of supported <type>s), [<tlength>]

<index> Location number of the phone book

<number>

Phone number in format <type>

<type> type of address: 129 - Normal format

145 - International format

<text> Name of the entry <nlength> with maximum length of <number>

<tlength>

Maximum length of <text>

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". Entries should be written 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 g18 validates the stringlength for phone number and label, as defined for the specific phone book. When writing to the MT phone book, theg18 is unable to detect errors with a string length less than that allowed in MT phone book, but more than what isdefined in the specific phone book. In this case, the write action is not rejected, but the number and text will be trun-cated to the limit allowed for the specific phone book.

94 98-08901C39-A

Page 58: At Commands g18

AT Commands

at+cpbs=“mt”

OK

at+cpbw=?

+CPBW: (1-200),32,(255,129,145),18

at+cmee=1

OK

at+cpbw=140,“+496113611404”,145,“Raum 1004”

+CME ERROR: 003

at+cpbw=140,“496113611404”,145,“Raum1004”

+CME ERROR: 003

at+cpbs=“SM”

OK

at+cpbw=140,“496113611404”,145,“Raum1004”

OK

at+cpbs=“ME”

OK

at+cpbw=73,“491726706014”,145,“eigene number”

+CME ERROR: 100

at+cpbw=73,“491726706014”,145,“eigene number”

OK

at+cpbw=190,“491728788793”,145,“Freundin”

+CME ERROR: 021.

at+cpbs?

+CPBS: “ME”,2,100

OK

at+cpbs=“MT”

OK

98-08901C39-A 95

Page 59: At Commands g18

AT Commands

at+cpbw=73,“496128970912”,145,“Eigene Number”

OK

at+cpbw=190,“491728788793”,145,“Freundin”

OK

7.2.16 AT+CPIN, Enter Pin

Example

at+cpin=“3011”

OK

at+cpin=?

OK

at+cpin?

+CPIN: READY

OK

at+cpin=“3011”,“2811”

OK

at+cpin“1111”

ERROR

at+cpin?

+CPIN: SIM PIN

AT Command Reaction Remarks

at+cpin=[<puk>or <pin>[<newpin>]

at+cpin?

+CME ERROR: <err>Enters or changes pin number. When entering the pin, a new pin is not required +CPIN: <code>+CME ERROR: <err>

<puk> PUK code for blocked phone

<pin> Current pin

<newpin>

New pin (after changing or after entering PUK) 4 - 8 digits

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.

When PUK is required, and only one parameter is given in +CPIN, error "PUK is required" is returned.

96 98-08901C39-A

Page 60: At Commands g18

AT Commands

OK

at+cpin=“71388330”,“3011”

OK

AT+CLCK=“FD”,2 // Checking the status of Fix Dialing phonebook

+CLCK: 0,7 // Enable dialing of all numbers

OK

AT+CLCK=“FD”,1,“2035” // Closing FD phonebook for changes, and allowed to originate calls // only to the numbers from the 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 the phonebook

+CME ERROR: “SIM PIN2 required”

AT+CPIN?

+CPIN: READY

OK

AT+CLCK=“FD”,0,“1234” // Wrong PIN2 is inserted

+CME ERROR: “incorrect password”

A/ // Wrong PIN2 is inserted

+CME ERROR: “incorrect password”

A/ // Wrong PIN2 is inserted

+CME ERROR: “SIM PUK2 required”

AT+CPIN?

+CPIN: SIM PUK2 // PIN2 is blocked. Need PUK2 to release it.

OK

AT+CPIN=“61356375”,“2035” // Enter PUK2 and new PIN2

OK

AT+CPIN?

+CPIN: READY

OK

at+cpin=“2222” // Incorrect PIN

98-08901C39-A 97

Page 61: At Commands g18

AT Commands

ERROR

at+cpin?

+CPIN: SIM PIN

OK

at+cpin=“3333” // Incorrect PIN

ERROR

at+cpin?

+CPIN: SIM PIN

OK

at+cpin=“4444” // Incorrect PIN

ERROR

at+cpin?

+CPIN: SIM PUK // SIM is locked and PUK number is required

OK

at+cpin=“58887756”,“1234”

OK

98 98-08901C39-A

Page 62: At Commands g18

AT Commands

7.2.17 AT+CREG, Network Registration

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

AT Command Reaction Remarks

at+creg=<n> <n> 0 Disables network registration

Unsolicited result code1 Enables network registration

unsolicited result code2 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)

<ci>

2 bytes cell ID (hex)

at+creg? +creg: <n>,<stat>[,<lac>,<ci>].OK

at+creg=? +CREG: (0,1,2)

98-08901C39-A 99

Page 63: At Commands g18

AT Commands

OK

at+creg=2,5

ERROR

at+creg?

+CREG: 002,001,“6202”,“6113”

OK

at+creg=1

OK

at+creg?

+CREG: 001,001

OK

7.2.18 CSTA, Selecting Type of Address

Example

at+csta?

+CSTA: 129

OK

at+csta=145

OK

at+csta?

+CSTA: 145

OK

at+csta=129

OK

at+csta?

+CSTA: 129

OK

AT Command Reaction Remarks

at+csta=<type> <type> number format129 Local phone number145 With international access

character +at+csta? +csta: <type>

OK

at+csta=? +csta: (129,145)

100 98-08901C39-A

Page 64: At Commands g18

AT Commands

7.2.19 AT+CBST, Selecting Bearer Service Type

Example

at+cbst=?

+CBST: (000,004-007,068,070,071), (000), (000-003)

OK

at+cbst?

+CBST: 007,000,001

OK

at+cbst=1,0,1

OK

at+cbst?

+CBST: 001,000,000

OK

at+cbst=7,3,4

+CME ERROR: operation not allowed

at+cbst=7,0,1

AT Command Reaction Remarks

at+cbst?

at+cbst=<speed>,<name>,<ce>

at+cbst=?

+cbst: <speed>,<name>,<ce>

OK

+CME ERROR: operation not allowed

+CBST: (list of supported <speed>),(list of supported <name>),(list of supported <ce>)

<speed> 0 autobauding4 2400 bps (V.22bis)

5 2400 bps (V.26ter) 6 4800 bps (V.32) 7 9600 bps (V.32)

68 2400 bps (V.110)70 4800 bps (V.110) 71 9600 bps (V.110)

<name> 0 data circuit asynchronous

<ce>

0 Transparent1 Non-transparent2 Both, transparent preferred

3 Both, non-transparent preferred

Note

The g18 supports baud rates of 4800 to 9600 bps.

98-08901C39-A 101

Page 65: At Commands g18

AT Commands

OK

at+cbst?

+CBST: 007,000,001

OK

7.2.20 AT+CGMI, Requesting Manufacturer Identification

Example

at+cgmi

+CGMI: “MOTOROLA”

OK

at+cgmi?

ERROR

7.2.21 AT+CGMM, Requesting Model Identification

Example

at+cgmm?

ERROR

at+cgmm=?

OK

at+cgmm

+cgmm: “L Series”

OK

AT Command Reaction Remarks

at+cmgi +cgmi: <manufacture> <manufacture> Name of the manufacturer

AT Command Reaction Remarks

at+cgmm +cgmm: <model> <model>

Model identification

102 98-08901C39-A

Page 66: At Commands g18

AT Commands

7.2.22 AT+CGMR, Requesting Revision Identification

Example

at+cgmr?

ERROR

at+cgmr=?

OK

at+cgmr

+cgmr: g18_vE6.02.07

OK

7.2.23 AT+CGSN, Requesting Product Serial Number Identification

Example

at+cgsn?

ERROR

at+cgsn=?

OK

at+cgsn

+CGSN: “447764074608839”

OK

AT Command Reaction Remarks

at+cgmr +cgmr: <revision> <revision> Revision number of the softwareRequests revision identification

AT Command Reaction Remarks

at+cgsn +cgsn <sn> <sn>

IMEI number

98-08901C39-A 103

Page 67: At Commands g18

AT Commands

7.2.24 AT+CHUP, Hanging Up Calls

Example

at+chup=?

OK

at+chup

OK

RING

at+chup?

ERROR

7.2.25 AT+CMGD, Deleting SMS Messages

Example

at+cmgd

ERROR

at+cmgd=?

OK

at+cmgd?

ERROR

at+cmgl=?

+CMGL: (000-004)

OK

at+cmgl

+CMGL: 001,000,023

AT Command Reaction Remarks

at+chup= Phone hangs up

AT Command Reaction Remarks

at+cmgd=<index> Deletes SMS <index>

Position of the SMS in the storage

Note

Delete SMS with ID=0 is not allowed.

Delete SMS with ID=75 is allowed.

Delete SMS with illegal ID or with non-existent SMS, ends with "Invalid index"

104 98-08901C39-A

Page 68: At Commands g18

AT Commands

0791947122723033040B831027492204F000009930926145148004C2A2F308

OK

at+cmgd=1

OK

at+cmgl

OK

7.2.26 AT+CMGF, Message Format

Example

at+cmgf?

+CMGF: 000

OK

at+cmgf=?

+CMGF: (000)

OK

at+cmgf=1

+CME ERROR: operation not allowed

AT Command Reaction Remarks

at+cmgf= <mode> +cmgf: <mode> <mode> 0 PDU mode

1 Text mode (not supported)

98-08901C39-A 105

Page 69: At Commands g18

AT Commands

7.2.27 AT+CMGL, Listing Messages

Example

at+cmgl=?

+CMGL: (000-004)

OK

at+cmgl

+CMGL: 001,000,023

0791947122723033040B831027492204F000009930926145148004C2A2F308

OK.

7.2.28 AT+CMGR, Reading Messages

Example

at+cmgr=2

+CMGR: 001,,023

0791947122723033040B831027492204F000009930927190948004C2A2F308

OK

AT Command Reaction Remarks

at+cmgl=<stat>

at+cmgl

Lists SMS messages with a selected status

<stat> 0 "REC UNREAD" received unread

message (i.e. new message)1 "REC READ" received read

message2 "STO UNSENT" stored unsent

message 3 "STO SENT" stored sent

message 4 "ALL" all messages

Note

Use of any valid value of +CMGL parameter (0-4) lists of all messages.

The selection list of messages is valid only in software versions above E6.01.10

Note

Wait for OK before sending new AT commands.

AT Command Reaction Remarks

at+cmgr=<index> Reads SMS message+CMS ERROR: <err>

<index> Location of the SMS in the storage

106 98-08901C39-A

Page 70: At Commands g18

AT Commands

7.2.29 AT+CPAS, Phone Activity Status

Example

at+CPAS

+CPAS: 000

OK

at+CPAS=?

+CPAS: (000-005)

OK

at+cpas?

ERROR

7.2.30 AT+CPBR, Reading Phone Book Entries

AT Command Reaction Remarks

AT+CPAS +CPAS: <pas> +CME ERROR: <err>

<pas>0 Ready1 Unavailable

2 Unknown3 Ringing (MT calls)4 Call in progress

5 Asleep

AT+CPAS=? +CPAS: (list of supported <pas>s)+CME ERROR: <err>

AT Command Reaction Remarks

at+cpbr= <index> +cpbr: <index>,<number>,<type>,<text>

<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

98-08901C39-A 107

Page 71: At Commands g18

AT Commands

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

7.2.31 AT+CPMS, Preferred Message Storage

Example

at+cpms=?

+CPMS: (“SM”),(“SM”)

AT Command Reaction Remarks

at+cpms=<mem1>,

<mem2>

+CPMS: <used1>,<total1>,<used2>,<total>

<mem>

Memory storage

<used> Used memory storage

<total> Total memory storage

108 98-08901C39-A

Page 72: At Commands g18

AT Commands

OK

at+cpms?

+CPMS: “SM”,005,020,“SM”,005,020

OK

a

OK

at+cpms=“SM”

+CPMS: 005,020,005,020

OK

at+cpms?

+CPMS: “SM”,005,020,“SM”,005,020

OK

7.2.32 AT+CSCA, Service Center Address

Example

at+csca?

+CMS ERROR: SMSC address unknown

at+csca=?

OK

at+csca=“491722270333”,145

OK

at+csca?

+CSCA: “+491722270333”,145

OK

AT Command Reaction Remarks

at+csca= <sca>,<type> +csca: <sca>,<type> <sca> Service center number

<type> format of the number

129 Local number 145 International number with

access character +

98-08901C39-A 109

Page 73: At Commands g18

AT Commands

7.2.33 AT+CSCS, Selecting TE Character Set

Example

at+cscs=?

+CSCS: (“GSM”,“IRA”)

OK

at+cscs?

+CSCS: “IRA”

OK

at+cscs=“gsm”

OK

at+cscs?

+CSCS: “GSM”

OK

at+cscs=“IRA”

OK

at+cscs?

+CSCS: (“IRA”)

OK

AT Command Reaction Remarks

at+cscs= [<chset> +cscs: <chset> <chset> GSM GSM alphabet IRA International alphabet

110 98-08901C39-A

Page 74: At Commands g18

AT Commands

7.2.34 AT+CSMS, Selecting the Message Service

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

AT Command Reaction Remarks

at+csms Selects the message service

at+csms =<service> +CSMS: <mt>, <mo>, <bm>+CMS ERROR: <err>

<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 supported1 Type supported

at+csms? +CSMS: <service>, <mt>, <mo>, <bm>

at+csms=? +CSMS: (list of supported <service>)

98-08901C39-A 111

Page 75: At Commands g18

AT Commands

7.2.35 AT+CSQ, Signal Quality

Example

at+csq

+CSQ: 030 ,099

OK

at+CSQ=?

+CSQ: (000-031,099), (099)//

7.2.36 AT+CEER, Extended Error Report

Example

at+ceer=?

OK

at+ceer?

ERROR

at+ceer

+CEER: “No information available”

OK

AT Command Reaction Remarks

at+csq +CSQ: <rssi>,<ber> <rssi> 0 0 Bars <-108 dBm1 1 Bar -102 to -108 dBm

10 2 Bars -93 to -101 dBm20 3 Bars -87 to -92 dBm30 4 Bars -77 to -86 dBm

31 5 Bars >-76 dBm

<ber> (in percent) 99 Not known or detectable

Note

BER information is not supported.

AT Command Response

at+CEER +CEER: <report>

at+CEER=? OK

At+CEER? Error

112 98-08901C39-A

Page 76: At Commands g18

AT Commands

7.2.37 AT+CKPD, Keypad Control

Example

at+ckpd=?

OK

at+ckpd=M

ERROR

at+ckpd=�M>>S�

OK

AT Command Reaction Remarks

at+CKPD=<Keys>[,<time>[,<pause>]] OK+CME ERROR: <err>

<Keys> # Hash (number sign) * Star (*) 09 Number keys : Escape character for

manufacturerspecific 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 V/v Down arrow Y/y Delete last character (C) :0 Smart button. (Colon followed

by zero) :a Voice annotator ^ Up arrow

<time>, <pause>: 0255 025.5 seconds (default values are manufacturer specific, but should be long enough that a normal ME can handle key strokes correctly).

98-08901C39-A 113

Page 77: At Commands g18

AT Commands

7.2.38 AT+FCLASS, Selecting a Mode

Example

AT+FCLASS=?

FCLASS: 0, 1

OK

AT+FCLASS?

+FCLASS: 0

OK

7.2.39 AT+GCAP, Requesting Complete Capabilities List

Example

AT+GCAP

+GCAP: +FCLASS

OK

AT+GCAP=?

ERROR

AT+GCAP

ERROR

AT Command Response

at+FCLASS=<n> If n= 0 or n=1 OK. If not, returns ERROR

at+FCLASS? <n>

at+FCLASS=? FCLASS: (list of supported <n>s)

AT Command Response

at+GCAP GCAP: (list of capabilities)

114 98-08901C39-A

Page 78: At Commands g18

AT Commands

7.2.40 AT+CMOD, Calling Mode

Example

AT+CMOD =?

+CMOD: (000, 001)

OK

AT+CMOD?

+CMOD: 000

OK

AT+CMOD=1

OK

7.2.41 AT+CRLP, Radio Link Protocol

AT Command Reaction Remarks

+CMOD=[<mode>] <mode> 0 single mode1 alternating voice/fax

(teleservice 61)

+CMOD? +CMOD: <mode>

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

AT Command Reaction Remarks

+CRLP= [<iws>[,<mws>[,<T1>[,<N2>]]]]

<iws>, <mws>, <T1>, <N2>: IWF to MS window size (default 61), MS to IWF window size (default 61), Acknowledgement timer T1 (default 48), Retransmission attempts N2 (default 6) in integer format (refer to GSM 04.22 [18] subclause 5.4.3)

+CRLP? +CRLP= <iws>,<mws>,<T1>,<N2>

+CRLP=? +CRLP= (list of supported <iws>s), (list of supported <mws>s), (list of supported <T1>s), (list of supported <N2>s)

98-08901C39-A 115

Page 79: At Commands g18

AT Commands

Example

AT+CRLP=?

+CRLP: (010-061),(010-061),(048-255),(006-010)

OK

AT+CRLP?

+CRLP: 061, 061, 048, 006

OK

7.2.42 AT+CR, Service Reporting Control

Example

AT+CR

ERROR

AT+CR=?

+CR: (000,001)

OK

AT+CR?

+CR: 000

OK

AT Command Reaction Remarks

+CR= [<mode>] <mode>0 Disables reporting

1 Enables reporting

<serv>REL ASYNC Asynchronous non-

transparentREL SYNC Synchronous non-

transparent

+CR? +CR: <mode>

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

116 98-08901C39-A

Page 80: At Commands g18

AT Commands

7.2.43 AT+CRC, Cellular Result Codes

Example

AT+CRC?

+CRC:000

OK

AT+CRC

ERR1OR

AT+CRC=?

+CRC: (000,001)

OK

AT Command Reaction Remarks

+CRC= [<mode>] <mode> 0 Disables extended format1 Enables extended format

<type>:REL ASYNC Asynchronous non-

transparentFAX Facsimile (TS 62)VOICE Normal voice (TS 11)

+CRC? +CRC: <mode>

+CRC? +CRC: (list of supported <modes>s)

98-08901C39-A 117

Page 81: At Commands g18

AT Commands

7.2.44 AT+CNMI, New Message Indications to TE+CNMI

AT Command Reaction Remarks

+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]

+CMS ERROR: <err> <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 received indications.

<mt>0 No SMS DELIVER indications are

routed to the TE route message to 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 the TE.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 given before flushing the codes).

+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>

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

Note

While conducting a g18 data call, the arrival of an SMS resets the +CNMI setting, thereby notifying that somethingunexpected has occurred.

After automatically transferring a SMS/CBM message to the DTE (mt=2 and/or bm=2), the g18 waits for a +CNMAresponse from the DTE (within one minute). If DTE does not respond within this time, or if another message arrivesfrom the network, the g18 saves the message in SIM, exits from SMS mode, and sets all CNMI parameters to zero.

118 98-08901C39-A

Page 82: At Commands g18

AT Commands

In the following scenario:

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 thedata call.

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

07917952140230F2040B917952545608F500001010034171700007B12915D49C1E01

at+cnma // Response of the DTE

OK

+CMT: 036// Second message indication

07917952140230F2040B917952545608F500001010034183800013C7E793086A3EA5CEA4F308A23E

41D96715

at+cnma// Response of the DTE

OK

+CMT: 026// Third message indication

07917952140230F2040B917952545608F500001010034102030007332911D49C1E01

at+cnmi?

+CNMI: 000,000,000,000,000// CNMI parameters changed since the DTE did not response with +CNMA

OK

at+cmgl

+CMGL: 001,000,,026// The third message stored in the SIM

07917952140230F2040B917952545608F500001010034102030007332911D49C1E01

OK

at+cmgl

+CMGL: 001,001,,026

07917952140230F2040B917952545608F500001010034102030007332911D49C1E01

+CMGL: 002,000,,029 // New message also stored in the SIM

07917952140230F2040B917952545608F50000101003414240000BCEE215D42C4EA7C16311

98-08901C39-A 119

Page 83: At Commands g18

AT Commands

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

at+cmni?

ERROR

at+cnmi=0,2,2,1,0

OK

7.2.45 AT+CMEC, Mobile Equipment Control Mode

Example

AT+CMEC?

+CMEC: 02, 00, 00

OK

AT+CMEC=?

+CMEC: (00,02), (00), (00)

OK

AT+CMEC=2, 0, 0

OK

AT Command Reaction Remarks

+CMEC= [<keyp>[,<disp>[,<ind>]]] +CMEC ERROR: <err> <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

+CMEC? +CMEC: <keyp>,<disp>,<ind>

+CMEC=? +CMEC: (list of supported <keyp>s), (list of supported <disp>s), (list of supported <ind>s)

120 98-08901C39-A

Page 84: At Commands g18

AT Commands

7.2.46 AT+CMER, Mobile Equipment Event Reporting

AT Command Reaction Remarks

+CMER= [<mode>[,<keyp>[, <disp>[,<bfr>]]]]]

+CME ERROR: <err> <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.

<text> New value of text element.

<ind>0 No indicator event reporting1 Indicator event +CIEV: <ind>,

<value>. <ind> indicates the indicator order number and <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)

<bfr>0 TA buffer of unsolicited result

codes defined within this command is cleared when <mode> 13 is entered.

+CMER? +CMER: <mode>, <keyp>, <disp>, <ind>, <bfr>

98-08901C39-A 121

Page 85: At Commands g18

AT Commands

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

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

AT Command Reaction Remarks

122 98-08901C39-A

Page 86: At Commands g18

AT Commands

7.2.47 AT+CPBF, Finding Phone Book Entries

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 Command Reaction Remarks

+CPBF=<findtext> +CPBF: <index1>, <number>, <type>, <text> [[] <CR><LF>+CBPF: <index2>, <number>, <type>, <text>]+CME ERROR: <err>

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

+CPBF=? +CPBF: <nlength>, <tlength>+CME ERROR: <err>

98-08901C39-A 123

Page 87: At Commands g18

AT Commands

at+cpbf =“ron”

OK

at + cpbf = /list of 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

7.2.48 AT+CESP, Entering SMS Block Mode

Example

at+cesp

OK

7.2.49 AT+CMGW, Writing Messages

Example

at+cmgw=24

>07917952140230F2040B917952545630F200000070528141630005A060B10902

<ctr/Z>

+CMGW: 001

OK

AT Command Reaction Remarks

at+cespat+cesp=?

OK Prior to entering the block mode

AT Command Reaction Remarks

At+cmgw=<nn> +cmgw: <index> <nn> The message length

<index>

The location of the stored message is returned

124 98-08901C39-A

Page 88: At Commands g18

AT Commands

7.2.50 AT+CTFR1, Diverting an Incoming Call to the Voice Mail

Example

RING

at+ctfr1

OK

at+ctfr1 // When a call is not received

+CME ERROR: “operation not allowed”

7.2.51 AT+CNMA, DTE Confirming the Previous Message

7.2.52 AT+CBAND, Changing Band

AT Command Reaction Remarks

AT+CTFR1 +CME ERROR: <err>OK

If there is no waiting call in progress

AT Command Reaction Remarks

AT+CNMA OK Must be sent within 60 seconds from the arrival of the message to the DTE. If not, the message will be stored on the SIM card and the parameters of the CNMI command will be set to zero.

Note

Refer to “AT+CNMI, New Message Indications to TE+CNMI”, page 118for examples.

AT Command Reaction Remarks

AT+CBAND = N

AT+CBAND?

AT+CBAND=?

OKERROR

+CBAND: <N>

+CBAND: 3,4

Wait for power cycle to apply the change.Not valid value<N>

3 For 1900Mhz4 For 900/1800Mhz

98-08901C39-A 125

Page 89: At Commands g18

AT Commands

Example

at+cmee=2

OK

at+cband?

+CBAND: 4

OK

at+cpin?

+CPIN: READY

OK

at+cband=3

OK // g18 waits for power cycle

at+cpin?

+CME ERROR: “no network service”

7.2.53 AT+CBAUD, Setting the Baud Rate

AT Command Reaction Remarks

AT+CBAUD=<n>

ORAT+CBAUD=<rate>

OK

ERROR

<n> <rate>

0 3001 6002 1200

3 24004 48005 9600

6 192007 384008 57600

9 Auto baud rate detection

Note

For example, AT+CBAUD=8 is equivalent to AT+CBAUD=57600.

Using AT+CBAUD=<baud> with <baud> value other than 9 will disable the auto baud rate detection feature.

126 98-08901C39-A

Page 90: At Commands g18

AT Commands

7.2.54 AT+CGPRS, GPRS Coverage

Example

AT+CGPRS

+CGPRS: 0

OK

AT+CGPRS?

+CGPRS: 0

OK

AT+CGPRS=1

+CME ERROR: “operation not allowed”

7.2.55 AT+CGPADDR, Showing the PDP Address

Example

AT+CGPADDR=?

+CGPADDR: (1,2,3)

OK

AT Command Reaction Remarks

AT+CGPRSAT+CGPRS?

+CGPRS: <mode>,OKERROR

<mode>0 No GPRS coverage1 GPRS coverage

Note

This command without an attachment will return always zero.

AT Command Reaction

AT+CGPADDR=[<c id> [,<cid> [,]]] +CGPADDR: <cid>,<PDP_addr>[<CR><LF>+CGPADDR: <cid>,<PDP_addr>

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

98-08901C39-A 127

Page 91: At Commands g18

AT Commands

7.2.56 AT+CGCLASS, GPRS MS Class

Example

AT+CGCLASS=?

+CGCLASS: (B)

OK

AT+CGCLASS=“B”

OK

AT+CGCLASS=“A”

ERROR

7.2.57 AT+CGDCONT, Defining the PDP Context

AT Command Reaction

AT+ +CGCLASS= [<class>] OKERROR

AT +CGCLASS? +CGCLASS: <class>

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

AT Command Reaction

+CGDCONT=[<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp> [,<h_comp> [,<pd1> [,[,pdN]]]]]]]]]

OKERROR

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

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

128 98-08901C39-A

Page 92: At Commands g18

AT Commands

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 allowed to set up to 3 PDP contexts

ERROR

7.2.58 AT+CGQMIN, Quality of Service Provider

AT Command Reaction

AT+CGQMIN=[<cid> [,<precedence> [,<delay> [,<reliability.> [,<peak> [,<mean>]]]]]]

OKERROR

AT+CGQMIN? +CGQMIN: <cid>, <precedence >, <delay>,

<reliability>, <peak>, <mean>[<CR><LF>+CGQMIN: <cid>, <precedence >,<delay>, <reliability.>, <peak>, <mean>

[]]

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 ofsupported <precedence>s), (list of

supported <delay>s), (list of supported<reliability>s), (list of supported<peak>s), (list of supported <mean>s)

98-08901C39-A 129

Page 93: At Commands g18

AT Commands

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

7.2.59 AT+CGACT, PDP Context Activation/Deactivation Request

Example

AT+CGACT=?

+CGATT: (0, 1)

OK

AT+CGACT?

+CGACT: 1,0

+CGACT: 2,0

+CGACT: 3,0

Note

For more details about Quality of Service, refer to ETSI specification GSM 03.60.

AT Command Reaction

AT+CGACT=[<state> [,<cid>[,<cid>[,]]]]

OKERROR

AT+CGACT? +CGACT: <cid>, <state>

[<CR><LF>+CGACT: <cid>, <state>

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

130 98-08901C39-A

Page 94: At Commands g18

AT Commands

OK

AT+CGACT=1

ERROR // GPRS network not present.

7.2.60 AT+CGATT, GPRS Attach/Detach Request

Example

AT+CGATT=?

+CGATT: (0, 1)

OK

AT+CGATT?

+CGATT: 0

OK

AT+CGATT=1

ERROR

AT+CGATT=0

OK

Note

In some GPRS networks, for example Germany, +CGACT is not supported. The ATD*99# command can be usedto make a connection.

AT Command Reaction

AT+CGATT= [<state>] OKERROR

AT+CGATT? +CGATT: <state>

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

98-08901C39-A 131

Page 95: At Commands g18

AT Commands

7.2.61 AT+CGQREQ, Defining/Modifying/Removing a Requested Quality of Service Profile

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

+CGQREQ: 1,0,4,0,0,0

+CGQREQ: 2,2,4,3,9,10

+CGQREQ: 3,2,4,3,9,10

OK

7.2.62 AT+CIMI, Requesting International Mobile Subscriber Identity (IMEI)

AT Command Reaction

AT+CGQREQ=[<cid> [,<precedence> [,<delay>[,<reliability.> [,<peak> [,<mean>]]]]]]

OK

ERROR

AT+CGQREQ? +CGQREQ: <cid>, <precedence >, <delay>,<reliability>, <peak>, <mean>

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)

AT Command Reaction Remarks

AT+CIMI OKERROR

<IMSI>+CME ERROR: <err>

132 98-08901C39-A

Page 96: At Commands g18

AT Commands

Example

AT+CIMI=?

OK

7.2.63 AT+CRSM, Restricting SIM Access

Example

AT+CRSM=?

CRSM: (176),(197,214,242,243)

OK

AT+CRSM=176,214

CRSM: 0,0,FFFFFFFFFFFFFFFFFF00 0000000000000000

OK

AT Command Reaction Remarks

AT+CRSM=<command>[,<fileid> OKERROR

Only command 176 is supported.+CRSM: <sw1>,<sw2>[,<response>]+CME ERROR: <err>

<fileid>197 IMSI214 GID1

242 ICC ID243 GID2

<sw1>, <sw2>:Reason

0 0 Success0 1 SEEM not allowed: SIM card has

been removed or no such element.

0 2 Bad record number: Record number is out of valid range

0 3 Bad PIN: User has entered an incorrect PIN code

0 4 Other technical problem: SIM card malfunction

0 5 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>Response of a successful completion of the command previously issued (hexa-decimal character uppercase format). The requested data will be returned.

AT+CRSM=? CRSM: (176), (197, 214, 242, 243)

98-08901C39-A 133

Page 97: At Commands g18

AT Commands

7.2.64 AT+CPOL, Preferred Operator List

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

AT Command Reaction Remarks

AT+CPOL=[<index>][,<format>[,<oper>]]

+CME ERROR: <err> <index>Integer type; the order number of the operator in the 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

AT+CPOL? +CPOL: <index1>,<format>,<oper1>[<CR><LF>+CPOL: <index2>,<format>,<oper2>[...]]

+CME ERROR: <err>

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

134 98-08901C39-A

Page 98: At Commands g18

AT Commands

7.2.65 AT+CIPE, ENABLE +CIP AT Command

Example

AT+CIPE=1

OK

AT+CIPE?

+CIPE: 1

OK

AT+CIPE=?

+CIPE: (0, 1)

OK

7.2.66 AT+CIP, IP Primitive Over AT Command

Example

at+cip=8,a842,0020,00010001

+CIP: 38,a844,0001093033353638343133318105726F6E6974

OK

AT Command Reaction Remarks

AT+CIPE=<mode> OK+CME ERROR: <err>

<mode>0 Disable +CIP command1 Enable +CIP command

AT+CIPE? +CIPE: <mode>OK

AT+CIPE=? +CIPE: <list of supported modes>

OK

AT Command Reaction Remarks

AT+CIP=<Data length> ,<Prim_Id>,<Sub_addr> ,<Data>

+CIP: <Data length>, <Prim id Cnf/Ind>, <Data>

OK

+CME ERROR: <err>

Data length (characters) – In decimalPrim_Id - in hex (2 bytes)Sub_addr (Destination) - in hex (2 bytes)Data - in hex

Note: 2 characters in 1 byte

98-08901C39-A 135

Page 99: At Commands g18

AT Commands

7.2.67 AT+CRTT, Selecting the Ring Tone

Example

AT+CRTT=?

+CRTT: (0-10), (0,1)

OK

AT+CRTT=4, 1

OK

AT+CRTT?

+CRTT: 4

OK

AT Command Reaction Remarks

AT+CRTT= <RingTypeNumber>,<operation>

OK

ERROR

<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>0 PlaySet

AT+CRTT? +CRTT: <RingTypeNumber>OK

AT+CRTT=? +CRTT: <list of supported tone type numbers>, <list of supported operations>OK

136 98-08901C39-A

Page 100: At Commands g18

AT Commands

7.2.68 AT+CPWD, Changing the Password

7.2.69 Fax AT Commands

AT Command Reaction Remarks

AT+CPWD=<fac>,<oldpwd>,<newpwd>

+CME ERROR: <err> <fac> string type; facility (upper/lower case acceptable)

CS Control surface (keypad)SC SIM cardAO Block all outgoing calls

OI Block outgoing internationalcalls

OX Block outgoing international

calls except to home countryAI Block all incoming callsIR Block incoming calls when roaming

outside home countryAB All blocking services

AG All outgoing blocking servicesAC All Incoming blocking servicesFD SIM fixed dialing feature (not

supported)P2 SIM PIN2

<oldpwd>, <newpwd>string type

<oldpwd>

The same as the password specified for the facility from the ME user interface or using the command Change Password +CPWD. <newpwd>The new password; maximum length of password can be determined with <pwdlength>.

<pwdlength>Integer type; maximum length of the password for the facility.

AT+CPWD=? +CPWD: list of supported (<fac>,<pwdlength>s)+CME ERROR: <err>

AT Command Function Remarks

"FCLASS" Select mode 0 Data

1 Fax

"FAE" fax_auto_answer Class 1

98-08901C39-A 137

Page 101: At Commands g18

AT Commands

7.2.70 AT+MTDTR, DTR Line Test Command

7.2.71 AT+MTCTS, CTS Line Test Command

"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

AT Command Reaction

AT+MTDTR Returns 1 when DTR is active and 0 when DTR is not active

AT+MTDTR=? OK

AT+MTDTR? Returns 1 when DTR is active and 0 when DTR is not active

Note

The command is accepted even when the SIM card is missing.

AT Command Reaction Remarks

AT+MTCTS Deactivates CTS. Wait approximately 1 second and then activate CTS.

AT+MTCTS=? OK

AT Command Function Remarks

138 98-08901C39-A

Page 102: At Commands g18

AT Commands

7.2.72 AT+MCWAKE, DTE Wake Line Control Command

7.2.73 AT+CMSS, Send Message from Storage

Example

AT+CMSS=1, “054511511”

+CMSS: 000

AT Command Reaction Remarks

AT+MCWAKE= <Mode> <Mode>0 Send no indication1 Send indication when GPRS

coverage goes off 2 Send indication when GPRS

coverage goes on (default)

AT+MCWAKE=? +MCWAKE: (0, 1, 2)

AT+MCWAKE? +MCWAKE: <Mode>

AT Command Reaction Remarks

AT+CMSS=<index>[,<da>[,<toda>]] If PDU mode (+CMGF=0) and sending successful:+CMSS: <mr>[,<scts>]

If sending fails:+CMS ERROR: <err>

<mr> Message reference<scts> Service center time stamp

<da> Destination address<toda> Type of destination address

129145

AT+CMSS=? +

98-08901C39-A 139

Page 103: At Commands g18

AT Commands

7.2.74 AT+MMGL, Message List

7.2.75 AT+MMGR, Read Message

AT Command Reaction Remarks

+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>[...]]

If not:+CMS ERROR: <err>

<stat>0 “REC UNREAD” received

unread message1 “REC READ” received read

message2 “STO UNSENT” stored unsent

message3 “STO SENT” stored sent

message4 “ALL” all messages

+MMGL=? +MMGL: (list of supported <stat>s)

Note

This new AT command returns the SMS message list without changing the message status from unread to read. Itis used in the same way as +CMGL.

This command is supported in software versions above E6.01.10.

AT Command Reaction

+MMGR=<index> If PDU mode (+CMGF=0) and command successful:

+MMGR: <stat>,[<alpha>],<length><CR><LF><pdu>If not:+CMS ERROR: <err>

+MMGR=? OK

Note

This new AT command returns the SMS message list without change the message status from unread to read. It isused in the same way as +CMGL.

This command is supported in software versions above E6.01.10.

140 98-08901C39-A

Page 104: At Commands g18

AT Commands

7.2.76 AT+MMGA, Changing the Message Attributes

AT Command Reaction Remarks

+MMGA = <index>, <attribute> OK +CME ERROR: <err>

<index>An integer between 1 and 75

<attribute>

0 <received-unread>1 <received-read>

+MMGA =? +MMGA: (001 – 075), (000-001)

OK+CME ERROR: <err>

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. Sincethere are new AT commands: MMGR & 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.

98-08901C39-A 141

Page 105: At Commands g18

AT Commands

142 98-08901C39-A