GSM/GPRS Module AT Command Mannual

39 downloads 576 Views 827KB Size Report
Taking ME3000 for example, this manual describes the AT command interfaces of the modules ... specific ZTE commands are added for users' convenience.
GSM Modules

AT Command Manual For ZTE Corporation’s ME3000 Module

VER: V1.6

ZTE Corporation This manual is applicable for MG3006、MG3030、MG3036、MG3080、MG3082、MG3086、MG3088 modules also.

GSM Modules

Copyright Statement Copyright © 2007 by ZTE Corporation All rights reserved. No part of this publication may be excerpted, reproduced, translated or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without the prior written permission of ZTE Corporation. is the registered trademark of ZTE Corporation. All other trademarks appeared in this manual are owned by the relevant companies. ZTE Corporation reserves the right to make modifications on print errors or update specifications in this manual without prior notice. ZTE Corporation keeps the right to make the final explanation to this manual.

1

GSM Modules

With strong technical force, ZTE Corporation can provide CDMA/GPRS module customers with the following all-around technical support: 1. Provide complete technical documentation; 2. Provide the development board used for R&D, test, production, after-sales, etc.; 3. Provide evaluations and technical diagnosis for principle diagram, PCB, test scenarios; 4. Provide test environment;

ZTE Corporation provides customers with onsite supports, and also you could get supports through telephone, website, instant communication, E-mail, etc.

The module website module.ztemt.com.cn provides the relevant industry information and module technical documentation. The authorized module customers could download the latest technical documentation for our website. If you have more requirements, you could send an E-mail to [email protected]. You can also call us at 0755-86360280 for more supports.

2

GSM Modules

Preface Summary This manual is applicable for ME3000、MG3006、MG3030、MG3036、MG3080、MG3082、MG3086、 MG3088 modules. Taking ME3000 for example, this manual describes the AT command interfaces of the modules, which contains standard GSM voice and data applications. According to GSM standard, some specific ZTE commands are added for users’ convenience. This manual might help you to understand how to use AT commands of these modules.

Target Readers z z z z

System Designing Engineers Hardware Engineers Software Engineers Testing Engineers

Brief Introduction Chapters

Contents

1 General Description

Briefly introduces the types and basic formats of ME3000、MG3006、 MG3030、MG3036、MG3080、MG3082、MG3086、MG3088 modules.

2 AT Command

Explains AT command operations of ME3000 modules in details.

Update History The update history includes the update descriptions each time. The update contents will be included in the latest version.

Document Version: V1.6 (2007-08-24) This is the seventh time to release formally. The update contents include: Add +CGMI,ATZ,+COPS,+CMEE commands. Add parameter "ME" in AT+CPBS Add parameters in AT+CPIN.

Document Version: V1.5 (2007-08-17) This is the sixth time to release formally. The update contents include: Add 3 types of modules which are Applicable: MG3036、MG3082、MG3088 Change ME for MG (except ME3000).

Document Version: V1.4 (2007-07-05) This is the fifth time to release formally. The update contents include: Add 3 types of modules which are Applicable: ME3006, ME3080, ME3086

3

GSM Modules

Add 2.1.26 +CPWD: modify password Add 2.6.5 +CNUM: obtain number of current terminal Add 2.5.12 +ZSMGS: full SMS indication 2.10 change contents of TCP/IP chapter

Document Version V1.3 (2007-06-15) This is the fifth time to release formally. The update contents include: Add 2.1.23 AT+CCWA Add 2.1.24 AT+CHLD Add 2.7.7 +ZEDT: set DTR signal detecting Revise 2.10.5 +ZIPSEND:send TCP data to destination address Revise 2.10.12 +ZIPSENDU:send TCP data to destination address

Document Version: V1.2 (June-4-2007) Change the manual name from 《AT Command Manual for ZTE Corporation’s GSM/GPRS Modules》to 《AT Command Manual for ZTE Corporation’s ME3000 Modules》. Add the applicable modules such as ME3000, ME3006, ME3030 and ME3036 modules.

Document Version: V1.1 (April-17-2007) This is the second time to release formally. The update contents include: 2. AT Command Newly added commands: ATO: Switch from command mode to data mode +++: Switch from data mode to command mode CLIP: Set caller ID presentation CCFC: Set call forwarding number and conditions CLCK: Lock device or network CPWD: Modify password CNMA: SMS confirmation CSCA: Set short message center number CPBS: Select contacts memorizer CPBR: Read contacts CPBW: Write contacts CPBF: Search for contacts IFC: Set flow control &D: Set DTR mode &C: Set DCD mode CGACT: Deactivate/activate PDP mode CGATT: Set GPRS startup CGCLASS: Device class ZIPSETUPU: Bundle UDP port ZIPSENDU: Send UDP data ZIPSTATUSU: Query UDP status ZIPCLOSEU: Close UDP port

4

GSM Modules

ZIPRECVU: Receive UDP data

Document Version: V1.0 (March-05-2007) This is the first time to release formally.

5

GSM Modules

Table of Contents 1

General Description.......................................................................................................9 1.1 AT Commands ...........................................................................................................................9 1.1.1 Type of AT Commands.................................................................................................9 1.1.2 Returned Type and Format of AT Commands..............................................................9 1.2 GSM Glossary..........................................................................................................................10

2

AT Command...............................................................................................................12 2.1 Common Command .................................................................................................................12 2.1.1 A/: repeat previous command ....................................................................................12 2.1.2 ATA: answer a call .....................................................................................................12 2.1.3 ATD: dial a number ....................................................................................................12 2.1.4 ATDL: dial the last outgoing number ..........................................................................12 2.1.5 ATE: enable echo.......................................................................................................13 2.1.6 ATH: hang up the call.................................................................................................13 2.1.7 ATQ: set if returned value displayed on the terminal..................................................13 2.1.8 +++: switch from data mode to command mode ........................................................14 2.1.9 ATO: switch from command mode to data mode .......................................................14 2.1.10 ATP: perform pulse dialing.........................................................................................14 2.1.11 ATS0: set auto answer...............................................................................................14 2.1.12 +CRC: set incoming call type.....................................................................................15 2.1.13 +CLVL: set call volume ..............................................................................................15 2.1.14 +CLIP: set caller ID presentation ...............................................................................15 2.1.15 +ZSETMUTE: mute control........................................................................................16 2.1.16 +CIMI: inquire International ID ...................................................................................16 2.1.17 +CGMR: obtain product version.................................................................................16 2.1.18 +ECHO: remove echo................................................................................................17 2.1.19 +(C) GSN: obtain current IMEI...................................................................................17 2.1.20 +ZVERS: obtain current software version ..................................................................17 2.1.21 +CLCK: function lock .................................................................................................17 2.1.22 +CCFC: set call forwarding number and conditions...................................................18 2.1.23 +CCWA:call waiting control .....................................................................................19 2.1.24 +CHLD:call hold and multiple session.....................................................................20 2.1.25 *TSIMINS: inquire SIM card status ............................................................................21 2.1.26 +CPWD:change password ......................................................................................21 2.1.27 +CGMI:inquire manufacture identification ...............................................................22 2.1.28 +ATZ:reset parameter according to memory setting ...............................................22 2.2 DTMF Command......................................................................................................................22 2.2.1 +VTD: set DTMF duration..........................................................................................22 2.2.2 +VTS: send DTMF .....................................................................................................23 2.3 Network Service Command .....................................................................................................23 2.3.1 +CREG: network registration and roam .....................................................................23 2.3.2 +COPS: network choice.............................................................................................24

6

GSM Modules

2.4 Mobile Device Control and Status Report ................................................................................24 2.4.1 +CPAS: module status query .....................................................................................24 2.4.2 +CFUN: set module function......................................................................................24 2.4.3 +CMEE:mobile device error report ..........................................................................25 2.4.4 +ZPWROFF: turn off module .....................................................................................25 2.4.5 +CPIN: input PIN code...............................................................................................25 2.4.6 +CSQ: signal strength query......................................................................................26 2.4.7 +CCLK: clock management .......................................................................................26 2.5 SMS Command........................................................................................................................27 2.5.1 +CSCA: set SMS center number ...............................................................................27 2.5.2 +CNMA: confirm SMS................................................................................................27 2.5.3 +CMGF: set SMS mode.............................................................................................27 2.5.4 +CNMI: set SMS indicator format ..............................................................................28 2.5.5 +CMGR: view SMS....................................................................................................29 2.5.6 +CSMS: select SMS service ......................................................................................31 2.5.7 +CMGS: message origination ....................................................................................31 2.5.8 +CPMS: prioritize message memorizer .....................................................................32 2.5.9 +CMGD: delete a message .......................................................................................32 2.5.10 +CMGL: message list ................................................................................................33 2.5.11 +CMSS: send messages stored in SIM card .............................................................35 2.5.12 +ZSMGS:SMS full indication ...................................................................................35 2.6 Phonebook Command .............................................................................................................35 2.6.1 +CPBS: select phonebook .........................................................................................35 2.6.2 +CPBR: read phonebook...........................................................................................36 2.6.3 +CPBW: write phonebook..........................................................................................37 2.6.4 +CPBF: find phonebook.............................................................................................37 2.6.5 +CNUM:obtain number of current terminal..............................................................38 2.7 Data Compression Command ..................................................................................................38 2.7.1 +IFC: flow control.......................................................................................................38 2.7.2 &D: set DTR mode.....................................................................................................39 2.7.3 &C: set DCD mode ....................................................................................................39 2.7.4 +IPR: set the module’s baud rate...............................................................................39 2.7.5 &F: factory default......................................................................................................40 2.7.6 &W: save setting ........................................................................................................40 2.7.7 +ZEDT: set detecting DTR signal...............................................................................40 2.8 ZTE Exclusive Command.........................................................................................................40 2.8.1 +ZGPIO: read/write GPIO..........................................................................................40 2.8.2 +SPEAKER: switch audio channel.............................................................................41 2.8.3 +ZDSLEEP: 32KHz deep sleep mode .......................................................................41 2.8.4 +ZSTR: query module’s status...................................................................................41 2.9 GPRS Command .....................................................................................................................42 2.9.1 +CGDCONT: set PDP format.....................................................................................42 2.9.2 + CGACT: deactivate/activate PDP setting ................................................................42 2.9.3 +CGATT: set GPRS ...................................................................................................42

7

GSM Modules

2.9.4 +CGCLASS: query GPRS class ................................................................................43 2.10 TCP/IP Command ....................................................................................................................43 2.10.1 +ZPNUM: set APN, username, password ..................................................................43 2.10.2 +ZPPPOPEN: open GPRS data link..........................................................................43 2.10.3 +ZPPPCLOSE: close GPRS data link .......................................................................44 2.10.4 +ZIPSETUP: establish TCP server connection ..........................................................44 2.10.5 +ZIPSEND: send TCP data to target address............................................................44 2.10.6 +ZPPPSTATUS: query GPRS connecting status .......................................................45 2.10.7 +ZIPCLOSE: close TCP link ......................................................................................45 2.10.8 +ZIPGETIP: query current IP address of the module.................................................45 2.10.9 +ZIPSTATUS: query current TCP link status..............................................................45 2.10.10 +ZIPRECV: Prompt to Receive Data from Current Data Link ....................................45 2.10.11 +ZIPSETUPU: establish UDP server link...................................................................46 2.10.12 +ZIPSENDU: send data to UDP server......................................................................46 2.10.13 +ZIPSTATUSU: query UDP status .............................................................................46 2.10.14 +ZIPCLOSEU: close UDP link ...................................................................................47 2.10.15 +ZIPRECVU: prompt to receive UDP data.................................................................47

Appendix............................................................................................................................48

8

GSM Modules

1 1.1

General Description AT Commands

ME3000、MG3006、MG3030、MG3036、MG3080、MG3082、MG3086、MG3088 modules provide AT command interfaces, through which the modules could communicate with external devices. AT command set provided by ME3000、MG3006、MG3030、MG3036、MG3080、MG3082、MG3086、 MG3088 modules not only covers standard GSM voice and short message applications, but adds some commands according to GSM specification and some ZTE exclusive commands for users.

1.1.1 Type of AT Commands Since AT command is used as a standard interface, the returned values and formats of the command are both fixed. As a whole, AT command could be divided into four types: z Non-parameter command: a type of simple command with the format of AT[+|&],e.g.: AT+CSQ, AT&W z Query command: used to inquire the current setting value. The format is AT[+|&]?, e.g.: AT+CNMI? z Help command: used to list the possible parameters of the command. The format is AT[+|&]=?, e.g.: AT+CMGL=? z Parameter command: normally used format which provides strong flexibility. The format is AT[+|&]=,,… The returned values of this type of command are all the same. This will be clarified in details later. The basic frame format of the returned value is: [ERROR INFO]

1.1.2 Returned Type and Format of AT Commands The following are ME3000、MG3006、MG3030、MG3036、MG3080、MG3082、MG3086、MG3088 modules’ AT command and their format and returned descriptions: z AT command format: --AT command starts with “AT” and ends with ; --After the module runs, the serial port default setting will be: 8-digit data bit, 1-digit stop bit, no parity check, no CTS/RTS, data rate 115200bps. z AT command returned format: -- --An exceptional case: e.g.: AT+ZPOWEROFF (response format) directly return with “OK” z AT command status report (OK, ERROR): --If there is error in AT command format, “Error” will return; --If AT command executes successfully, “OK” will return.

9

GSM Modules

1.2

GSM Glossary

Abbreviations ADC

Definitions Analog-Digital Converter

AFC

Automatic Frequency Control

AGC

Automatic Gain Control

ARFCN

Absolute Radio Frequency Channel Number

ARP

Antenna Reference Point

ASIC

Application Specific Integrated Circuit

BER

Bit Error Rate

BTS

Base Transceiver Station

CDMA

Code Division Multiple Access

CDG

CDMA Development Group

CS

Coding Scheme

CSD

Circuit Switched Data

CPU

Central Processing Unit

DAI

Digital Audio interface

DAC

Digital-to-Analog Converter

DCE

Data Communication Equipment

DSP

Digital Signal Processor

DTE

Data Terminal Equipment

DTMF

Dual Tone Multi-Frequency

DTR

Data Terminal Ready

EFR

Enhanced Full Rate

EGSM

Enhanced GSM

EMC

Electromagnetic Compatibility

EMI

Electro Magnetic Interference

ESD

Electronic Static Discharge

ETS

European Telecommunication Standard

FDMA

Frequency Division Multiple Access

FR

Full Rate

GPRS

General Packet Radio Service

GSM

Global Standard for Mobile Communications

HR

Half Rate

IC

Integrated Circuit

IMEI

International Mobile Equipment Identity

ISO

International Standards Organization

ITU

International Telecommunications Union

LCD

Liquid Crystal Display

LED

Light Emitting Diode

MCU

Machine Control Unit

MMI

Man Machine Interface

10

GSM Modules

Abbreviations

Definitions

MS

Mobile Station

PCB

Printed Circuit Board

PCL

Power Control Level

PCS

Personal Communication System

PDU

Protocol Data Unit

PLL

Phase Locked Loop

PPP

Point-to-point protocol

RAM

Random Access Memory

RF

Radio Frequency

ROM

Read-only Memory

RMS

Root Mean Square

RTC

Real Time Clock

SIM

Subscriber Identification Module

SMS

Short Message Service

SRAM

Static Random Access Memory

TA

Terminal adapter

TDMA

Time Division Multiple Access

TE

Terminal Equipment also referred it as DTE

UART

Universal asynchronous receiver-transmitter

UIM

User Identifier Management

USB

Universal Serial Bus

VSWR

Voltage Standing Wave Ratio

ZTE

ZTE Corporation

11

GSM Modules

2 2.1

AT Command Common Command

2.1.1 A/: repeat previous command Description

This command is used to repeat the previous command.

Format

A/

Example

AT+CSQ

Inquire current signal strength

A/

Repeat AT+CSQ command

2.1.2 ATA: answer a call Description

This command is used to answer a call.

Format

ATA

Example

RING

Incoming call

ATA

Answer a call

2.1.3 ATD: dial a number Description

This command is used to dial a number, transmit data or send a fax.

Format

ATD; ATD>; ATD>;

Example

AT+CPBS=“SM” ATD13024540756;

Select SIM card phonebook as the current contacts Search for this number in SIM card phonebook and dial it

AT+CPBS=“SM” ATD>2; OK

Select SIM card phonebook as the current contacts Dial the second number in the current phonebook

ATD>SM1;

Dial the first number in SIM card phonebook

Description

: contacts “SM”: SIM card phonebook; “LD”: last dialled number in the contacts; “MC”: missed call contacts; “ME”: local contacts; : the n-th option of the contacts. : called number, e.g. *99#.

2.1.4 ATDL: dial the last outgoing number Description

This command is used to dial the last outgoing number. 12

GSM Modules

Format

ATDL

Example

ATD34394036; OK

Call 34394036

ATH OK

Hang up the call

ATDL

Dial 34394036 again

2.1.5 ATE: enable echo Description

This command is used to enable echo.

Format

ATE

Example

ATE0 OK

ATE0, don’t display input command on the terminal

OK ATE1 OK ATE1 OK Parameters

=0 Disable. =1 Enabled.

2.1.6 ATH: hang up the call Description

This command is used to hang up the call.

Format

ATH

Example

ATA OK

Answer the call

ATH

Hang up the call

2.1.7 ATQ: set if returned value displayed on the terminal Description

This command is used to set if the returned value is displayed on the terminal.

Format

ATQ

Example

ATQ0 OK ATQ0 OK

Display the returned value on the terminal

ATQ1 OK ATQ1ATQ1

Do not display the returned value on the terminal

13

GSM Modules

2.1.8 +++: switch from data mode to command mode Description

This command is used to switch from data mode to command mode.

Format

+++

Example

ATD*99# CONNECT +++ …… AT OK

Dial and enter data mode switch from data mode to command mode

2.1.9 ATO: switch from command mode to data mode Description

This command is used to switch from command mode to data mode.

Format

ATO

Example

ATD*99# CONNECT +++ …… ATO ……

Dial and establish GPRS data connection Switch from data mode to command mode Switch from command mode to data mode

2.1.10 ATP: perform pulse dialing Description

This command is used to perform pulse dialing.

Format

ATP

Example

ATP OK

Set pulse dialing method

2.1.11 ATS0: set auto answer Description

This command is used to control auto answer mode of the module.

Format

ATS0=

Example

ATS0=2 OK

Auto answer after ringing twice

ATS0? 2 OK

Query the current setting

ATS0=0 OK

Cancel auto answer

Parameters

:times for ringing.

14

GSM Modules

2.1.12 +CRC: set incoming call type Description

This command is used to set the incoming call type.

Format

AT+CRC=num

Example

AT+CRC=1 OK +CRING: VOICE

Parameters

RING prompts the incoming call type Set CRC as the prompt of incoming call

num: 0: don’t display incoming call type; 1: display incoming call type Incoming call type: -VOICE; -GPRS; -FAX.

2.1.13 +CLVL: set call volume Description

This command is used to set the volume of the speaker.

Format

AT+CLVL=

Example

AT+CLVL=100 OK

Set the current volume as 100 for the receiver

AT+CLVL? +CLVL:100

Query the current volume

Parameters

between 0 and 100 .

2.1.14 +CLIP: set caller ID presentation Description

This command is used to set caller ID presentation. The default setting is “Turn off caller ID presentation”.

Format

AT+CLIP= +CLIP: retuned value of AT+CLIP? Command +CLIP: ,, caller ID presentation format

Example

AT+CLIP=1 OK RING:+CLIP: “130********”,129, “”,“”,0

Turn on caller ID presentation.

There is an incoming call, and the number is 130******** AT+CLIP=0 OK RING

Turn off caller ID presentation. No alert upon an incoming call

15

GSM Modules

Parameters

: 0: Turn off caller ID presentation; 1: Turn on caller ID presentation. : Incoming call number (need apply for relevant service). : 129.

2.1.15 +ZSETMUTE: mute control Description

This command is used for mute control, and it can be used only during the calling.

Format

AT+ZSETMUTE=

Example

AT+ZSETMUTE=? +ZSETMUT:(0-1) OK

Query the settable parameters

AT+ZSETMUTE=1 OK

Turn on mute

AT+ZSETMUTE=0 OK

Turn off mute

Parameters

0: Turn on mute; 1: Turn off mute.

2.1.16 +CIMI: inquire International ID Description

This command is used to read SIM card’s international ID and query the PIN code you need input.

Format

AT+CIMI

Example

AT+CIMI 460030916875923 OK

Inquire CIMI Return with CIMI

2.1.17 +CGMR: obtain product version Description

This command is used to obtain the product version.

Format

AT+CGMR

Example

AT+CGMR=? OK

No meaning

AT+CGMR

Return with the current module version

16

GSM Modules

2.1.18 +ECHO: remove echo Description

This command is used to remove echo.

Format

AT+ECHO=num

Example

AT+ECHO? +ECHO:1 OK

Inquire the current echo setting

AT+ECHO=0 OK

Cancel remove echo

Parameters

Num: default value,1. 1:set remove echo; 0:cancel remove echo.

2.1.19 +(C) GSN: obtain current IMEI Description

This command is used to obtain the current IMEI of the device.

Format

AT+GSN

Example

AT+GSN N

Return with the current IEMI

2.1.20 +ZVERS: obtain current software version Description

This command is used to obtain current software version

Format

AT+ZVERS

Example

AT+ZVERS +ZVERS: ***.bin OK

Obtain the current software version

2.1.21 +CLCK: function lock Description

This command is used to lock the terminal or the network..

Format

AT+CLCK=,[,[,]] +CLCK:

Example

AT+CLCK=? +CLCK:(“SC”,“AO”, “OI”,“OX”,“AI”,“IR”, “AB”,“AG”,“AC”,“FD”, “BN”,“PN”,“PU”,“PP”, “PC”) OK

17

GSM Modules

Parameters

: “SC”: SIM card, “AO”: All originated calls, “OI”: Originate International Calls, “OX”: All international calls except local area; “AI”: All Incoming Calls, “IR”: Roam all incoming calls except local area; “AB”: All call services, “AG”: all outgoing call services, “AC”: all incoming call services, “FD”: SIM card fixed dial space, “PN”: network certification; “PU”network unit certification;“PP”: provider certification; “PC”corporate certification. : 0: unlock; 1: lock; 2: query status. :password, character string “***” : 1: voice service; 2: data service; 4: fax service; 7: all service. : 0: Disable; 1: Enable.

2.1.22 +CCFC: set call forwarding number and conditions Description

This command is used to set call forwarding number and conditions.

Format

AT+CCFC=,[, [,[,[,[,[,time]]]]]] If mode!=2,return after setting is successful: OK; If mode=2, return after setting is successful: +CCFC:,

Example

AT+CCFC=? +CCFC: (0,1,2,3,4,5) OK

Query call forwarding setting range Return with reason

18

GSM Modules

Parameters

0: unconditional; 1: mobile device busy; 2: no reply; 3: unreachable ; 4: all calls; 5: All. 0: disable; 1: enable; 2: query; 3: register; 4: delete. number: phone number. 145: international number; 129: other number. : string address. :128. 1: voice; 2: data; 4: fax; 7: all. Time:1..20..30 (muliply 5) : 0: Disable; 1: Enable.

2.1.23 +CCWA:call waiting control Description

This command is used to control call waiting.

Format

AT+CCWA=[] [, [,]]

Example

AT+CCWA=?

Enumerate all supported +CCWA: (list of supported s) OK

AT+CCWA?

Read current +CCWA: OK

19

GSM Modules

AT+CCWA=[] [, [,]]

Parameters

Call waiting setup When mode!=2,if succeed: OK When mode==2,respond: +CCWA:,[ +CCWA:,[...]] OK If operation is incorrect: +CME ERROR: If =1, it will generate call waiting result code: +CCWA: ,, [,][,] When call waiting function is enabled, in the initial process, or system terminates the establishment, it will generate this result code automatically.

0:don’t generate call waiting result code; 1:generate call waiting result code on its own. 0:disable call waiting;1:enable call waiting;2:inquire current status 1:voice service 0:disabled;1:enabled. call address number in waiting state, whose type is defined byparameter. format , please refer to AT+CLIP

2.1.24 +CHLD:call hold and multiple session Description

This command is used to call hold and multiple session.

Format

AT+CHLD=[]

Example

AT+CHLD=?

Inquire supported +CHLD: (list of supported s ) OK

AT+CHLD=[]

Configure call hold and operation: If setup is successful: OK If operation is incorrect: +CME ERROR:

20

multiple

session

GSM Modules

Parameters

0:release all held call or set a waiting call as UDUB. 1:release all active call and receive a held or waiting call. 1X:release call X. 2:hold all active calls, and receive another held or waiting call. 2X:hold all calls except X 3:join a held call to multiple session.

Remark

1、this command is only used for telecommunication service 11. 2、the value range of X is: 1~7. 3、if both held and waiting calls exist, above flow should be used for waiting call. 4. please use AT+CHLD=1first to release current call and use ATH to hang up. 5. the usage of AT+CHLD=3 depends on multiple application supplied by service provider.

2.1.25 *TSIMINS: inquire SIM card status Description

This command is used to inquire SIM card status.

Format

AT*TSIMINS=num, status

Example

AT*TSIMINS? *TSIMINS:0,0 OK

Parameters

Inquire SIM card status No SIM card

num:0 or 1 has no meaning. status: 0:no SIM card; 1:SIM card.

2.1.26 +CPWD:change password Description

This command is used to change password.

Format

AT+CPWD=,, +CPWD:s

Example

AT+CPWD=? +CPWD: ("SC",8),("AO",4), ("OI",4),("OX",4),("AI",4), ("IR",4),("AB",4),("AG",4), ("AC",4),("FD",8),("BN",8), ("P2",8) OK AT+CPWD ="SC","1234","2345" OK

Inquire setup range of this command Returned parameter list

Change password of SIM card

21

GSM Modules

Parameters

fac: "SC":SIM card; "AO" : originated call; "OI": international originated call; "OX":all international originated calls except local;"AI": all incoming calls,"IR":all incoming calls after roaming from local address,"AB": all call service,"AG": all originated call service,"AC": all incoming call service,"FD":SIM card fixed dial space,"PN": network authentication,"PU": network sub-system anthentication,"PP":service provider anthentication,"PC":corporate anthentication. passwd: password or operation code, character type "***". newpasswd: new password or operation code, character type "***". length: code length supported by fac.

2.1.27 +CGMI:inquire manufacturer identification Description

This command is used to inquire manufacturer identification.

Format

AT+CGMI

Example

AT+CGMI ZTE Mobile Ltd

Inquire manufacturer identification

OK

2.1.28 +ATZ:reset parameters according to memory setting Description

This command is used to read the parameters in module’s NVRAM and set into current value..

Format

ATZ

Example

ATZ0 OK

2.2

reset parameter according to memory setting correctly

DTMF Command

2.2.1 +VTD: set DTMF duration Description

AT+VTD set DTMF duration.

Format

AT+VTD=

Example

AT+VTD=? +VTD:(1-255) OK

Query the range for DTMF duration

AT+VTD? OK

Return with “OK”

AT+VTD=200 OK

Set DTMF duration as 20s

22

GSM Modules

Parameters

0:default setting. 1-255 length, unit: 100ms.

2.2.2 +VTS: send DTMF Description

This command is used to send DTMF.

Format

AT+VTS=

Example

AT+VTS=? +VTS:(0-9,*#,A,B,C,D),,(1-255) OK

Query +VTS parameter

ATD********; AT+VTS=“3,6,9”

Dial the call Send DTMF 369

Parameters

2.3

String, use comma to separate the symbols. Symbols 0-9,*,#,A-D.

Network Service Command

2.3.1 +CREG: network registration and roam Description

This command is used to query the module’s registration and roaming status. Note: need AT&W command to save the results as you set 0 or 1.

Format

AT+CREG= +CREG :, return code

Example

AT+CREG=0 OK

Forbid network registration to provide result code

AT+CREG? +CREG: 0,1

Display module registration status

AT+CREG=? +CREG: (0-2) OK

Quert status range

Parameters

0: Forbid network registration to provide result code(default setting); 1:allow network registration to provide result code:+CREG:; 2:allow network registration to provide local information. 0:Unregistered, terminal isn’t searching for new operator; 1:Registered to local network; 2:Unregistered, terminal is searching for BS; 4:Unknow code; 5:Registered, roaming.

23

GSM Modules

2.3.2 +COPS: network choice Description

This command is used to choose network.

Format

AT+COPS=[[,[,]]]

Example

AT+COPS? +COPS=[,,] OK

Return to current network’s register mode and register network

AT+COPS=[[,[,]]] OK

Choose and register network

Parameters

2.4

: 0 choose network automatically,ignoring parameter 1 choose network manually with parameter 3 this command is used to set with the parameter 4 if register network manually is unsuccessful, then register network automatically. : 0 long format alpha ,up to 16 character 1 short , up to 8 character 2 numeric (MCC+MNC), default. : 0 unknown 2 current register network 3 forbid register network

Mobile Device Control and Status Report

2.4.1

+CPAS: module status query

Description

This command is used to query the module’s work status.

Format

AT+CPAS

Example

AT+CPAS +CPAS:2 OK

Parameters

: 0:get ready to receive AT command; 2:unknow status (default); 3:Incoming call (ring); 4:In calling.

Query the module’s current work status

2.4.2 +CFUN: set module function Description

This command is used to set module function.

Format

AT+CFUN=,

24

GSM Modules

Example

Parameters

AT+CFUN=? +CFUN(0,1,4),(0-1) OK

Query setting range

AT+CFUN=1,0

Setting valid immediately

AT+CFUN=1,1

Reset valid

: 0: minor function; 1: Full function; 4: Turn off RF Rx/Tx circuit. : 0: the function activated immediately after setting; 1: the function activated after reset.

2.4.3 +CMEE:mobile device error report Description

This command is used for mobile device error report.

Format

AT+CMEE=

Example

AT+CMEE?

+CMEE: OK Inquire current error providing method.

AT+CMEE=

OK Choose error providing method

Parameters

0 Only the indication: ERROR 1 Provide the mistake number codes 2 Provide the mistake number codes and indications for detail

2.4.4 +ZPWROFF: turn off module Description

This command is used to turn off the module.

Format

AT+ZPWROFF

Example

AT+ZPWROFF OK

Turn off the module

2.4.5 +CPIN: input PIN code Description

This command is used to query PIN code status and input PIN code. The functions can be used only after the correct PIN code is entered.

Format

AT+CPIN=

25

GSM Modules

Example

AT+CPIN? +CPIN:READY

Query current PIN code No need to input new PIN code

OK AT+CPIN? +CPIN:SIM PIN AT+CPIN="****" OK Parameters

Query current PIN code status PIN code must be correct Enter the correct PIN code

AT+CPIN?: check if what kind of passwords should be entered. +CPIN: READY: don’t need enter any password. +CPIN: SIM PIN: need enter PIN code. +CPIN: SIM PUK:PIN code unlock password +CPIN: PH-SIM PIN: SIM card bundle password +CPIN: SIM PIN2: PIN2 code password +CPIN: SIM PUK2: PIN2 code unlock password +CPIN: PH-NET PIN: network password Pin: string value.

2.4.6 +CSQ: signal strength query Description

This command is used to inquire receive signal strength indicator(rssi) and bit error rate (ber)

Format

AT+CSQ

Example

AT+CSQ +CSQ:,

Parameters

: 0–113dbm; 1-111dbm; 2..30–109..-53dbm; 31-51dbm; 99: network unavailable. : 0~7: normal; 99: network unavailable.

2.4.7 +CCLK: clock management Description

This command is used to set and query the data/time of real-time clock.

Format

AT+CCLK=