ZTE MG3006 GSM Module User Manual GSM GPRS Module AT Command Mannual
ZTE Corporation GSM Module GSM GPRS Module AT Command Mannual
ZTE >
User Manual
MG3006 Module ZTE MG3006 Module User Manual VER: V 1.2 ZTE Corporation ME3000 Module 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. ME3000 Module 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 module@zte.com.cn. You can also call us at 0755-86360280 for more supports. ME3000 Module Preface Summary This manual is applicable for ME3000, ME3006, ME3030 and ME3036 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 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, ME3006, ME3030 and ME3036 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.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 ME3000 Module 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 ZIPRECVU: Receive UDP data Document Version: V1.0 (March-05-2007) This is the first time to release formally. ME3000 Module Table of Contents General Description.......................................................................................................8 1.1 AT Commands ........................................................................................................................................... 8 1.1.1 Type of AT Commands .............................................................................................................. 8 1.1.2 Returned Type and Format of AT Commands............................................................................ 8 1.2 GSM Glossary ........................................................................................................................................... 9 AT Command............................................................................................................... 11 2.1 Common Command................................................................................................................................. 11 2.1.1 A/: repeat previous command .................................................................................................. 11 2.1.2 ATA: answer a call ................................................................................................................... 11 2.1.3 ATD: dial a number.................................................................................................................. 11 2.1.4 ATDL: dial the last outgoing number ...................................................................................... 12 2.1.5 ATE: enable echo ..................................................................................................................... 12 2.1.6 ATH: hang up the call .............................................................................................................. 12 2.1.7 ATQ: set if returned value displayed on the terminal .............................................................. 12 2.1.8 +++: switch from data mode to command mode ..................................................................... 13 2.1.9 ATO: switch from command mode to data mode .................................................................... 13 2.1.10 ATP: perform pulse dialing...................................................................................................... 13 2.1.11 ATS0: set auto answer.............................................................................................................. 14 2.1.12 +CRC: set incoming call type.................................................................................................. 14 2.1.13 +CLVL: set call volume........................................................................................................... 14 2.1.14 +CLIP: set caller ID presentation ............................................................................................ 15 2.1.15 +ZSETMUTE: mute control.................................................................................................... 15 2.1.16 +CIMI: inquire International ID .............................................................................................. 15 2.1.17 +CGMR: obtain product version ............................................................................................. 16 2.1.18 +ECHO: remove echo.............................................................................................................. 16 2.1.19 +(C) GSN: obtain current IMEI............................................................................................... 16 2.1.20 +ZVERS: obtain current software version............................................................................... 16 2.1.21 +CLCK: function lock ............................................................................................................. 17 2.1.22 +CCFC: set call forwarding number and conditions ............................................................... 17 2.1.23 *TSIMINS: inquire SIM card status ........................................................................................ 18 2.2 DTMF Command..................................................................................................................................... 19 2.2.1 +VTD: set DTMF duration ...................................................................................................... 19 2.2.2 +VTS: send DTMF .................................................................................................................. 19 2.3 Network Service Command..................................................................................................................... 19 2.3.1 +CREG: network registration and roam .................................................................................. 20 2.4 Mobile Device Control and Status Report ............................................................................................... 20 2.4.1 +CPAS: module status query ................................................................................................... 20 2.4.2 +CFUN: set module function................................................................................................... 21 2.4.3 +ZPWROFF: turn off module.................................................................................................. 21 2.4.4 +CPIN: input PIN code............................................................................................................ 21 2.4.5 +CSQ: signal strength query.................................................................................................... 22 2.4.6 +CCLK: clock management .................................................................................................... 22 2.5 SMS Command........................................................................................................................................ 22 ME3000 Module 2.5.1 +CSCA: set SMS center number ............................................................................................. 22 2.5.2 +CNMA: confirm SMS ........................................................................................................... 23 2.5.3 +CMGF: set SMS mode .......................................................................................................... 23 2.5.4 +CNMI: set SMS indicator format .......................................................................................... 23 2.5.5 +CMGR: view SMS ................................................................................................................ 25 2.5.6 +CSMS: select SMS service .................................................................................................... 27 2.5.7 +CMGS: message origination.................................................................................................. 28 2.5.8 +CPMS: prioritize message memorizer ................................................................................... 28 2.5.9 +CMGD: delete a message ...................................................................................................... 29 2.5.10 +CMGL: message list .............................................................................................................. 29 2.5.11 +CMSS: send messages stored in SIM card ............................................................................ 31 2.6 Phonebook Command.............................................................................................................................. 31 2.6.1 +CPBS: select phonebook ....................................................................................................... 31 2.6.2 +CPBR: read phonebook ......................................................................................................... 32 2.6.3 +CPBW: write phonebook....................................................................................................... 32 2.6.4 +CPBF: find phonebook .......................................................................................................... 33 2.7 Data Compression Command .................................................................................................................. 34 2.7.1 +IFC: flow control ................................................................................................................... 34 2.7.2 &D: set DTR mode .................................................................................................................. 34 2.7.3 &C: set DCD mode.................................................................................................................. 35 2.7.4 +IPR: set the module’s baud rate ............................................................................................. 35 2.7.5 &F: factory default................................................................................................................... 35 2.7.6 &W: save setting...................................................................................................................... 35 2.8 ZTE Exclusive Command........................................................................................................................ 35 2.8.1 +ZGPIO: read/write GPIO....................................................................................................... 36 2.8.2 +SPEAKER: switch audio channel.......................................................................................... 36 2.8.3 +ZDSLEEP: 32KHz deep sleep mode..................................................................................... 36 2.8.4 +ZSTR: query module’s status ................................................................................................ 37 2.9 GPRS Command...................................................................................................................................... 37 2.9.1 +CGDCONT: set PDP format.................................................................................................. 37 2.9.2 + CGACT: deactivate/activate PDP setting ............................................................................. 37 2.9.3 +CGATT: set GPRS ................................................................................................................. 38 2.9.4 +CGCLASS: query GPRS class .............................................................................................. 38 2.10 TCP/IP Command.................................................................................................................................... 38 2.10.1 +ZPNUM: set APN, username, password................................................................................ 39 2.10.2 +ZPPPOPEN: open GPRS data link ........................................................................................ 39 2.10.3 +ZPPPCLOSE: close GPRS data link ..................................................................................... 39 2.10.4 +ZIPSETUP: establish TCP server connection........................................................................ 39 2.10.5 +ZIPSEND: send TCP data to target address........................................................................... 40 2.10.6 +ZPPPSTATUS: query GPRS connecting status ..................................................................... 40 2.10.7 +ZIPCLOSE: close TCP link................................................................................................... 40 2.10.8 +ZIPGETIP: query current IP address of the module .............................................................. 41 2.10.9 +ZIPSTATUS: query current TCP link status .......................................................................... 41 2.10.10 +ZIPRECV: Prompt to Receive Data from Current Data Link................................................ 41 ME3000 Module 2.10.11 2.10.12 2.10.13 2.10.14 2.10.15 +ZIPSETUPU: establish UDP server link ............................................................................... 41 +ZIPSENDU: send data to UDP server ................................................................................... 42 +ZIPSTATUSU: query UDP status.......................................................................................... 42 +ZIPCLOSEU: close UDP link ............................................................................................... 42 +ZIPRECVU: prompt to receive UDP data ............................................................................. 42 ME3000 Module 1.1 General Description AT Commands ME3006, ME3030 and ME3036 modules provide AT command interfaces, through which the modules could communicate with external devices. AT command set provided by ME3006, ME3030 and ME3036 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 ME3006, ME3030 and ME3036 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. ME3000 Module 1.2 GSM Glossary Abbreviations ADC Definitions 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 Analog-Digital Converter ME3000 Module 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 10 ME3000 Module 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#. 11 ME3000 Module 2.1.4 ATDL: dial the last outgoing number Description This command is used to dial the last outgoing number. 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 12 ME3000 Module Example ATQ0 OK ATQ0 OK Display the returned value on the terminal ATQ1 OK ATQ1ATQ1 Do not display the returned value on the terminal 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 13 ME3000 Module 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? OK Query the current setting ATS0=0 OK Cancel anto answer Parameters :times for ringing. 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 . 14 ME3000 Module 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 Parameters Turn off caller ID presentation. No alert upon an incoming call : 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. 15 ME3000 Module 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 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 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 16 ME3000 Module 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 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. 17 ME3000 Module 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 Parameters Query call forwarding setting range Return with reason 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 *TSIMINS: inquire SIM card status Description This command is used to inquire SIM card status. Format AT*TSIMINS=num,status 18 ME3000 Module Example Parameters 2.2 AT*TSIMINS? *TSIMINS:0,0 OK Inquire SIM card status No SIM card num:0 or 1 has no meaning. status: 0:no SIM card; 1:SIM card. 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 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 19 ME3000 Module 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 2.4 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. 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 20 ME3000 Module 2.4.2 +CFUN: set module function Description This command is used to set module function. Format AT+CFUN= , Example 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 Parameters : 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 +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.4 +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= 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 Query current PIN code status PIN code must be correct Enter the correct PIN code 21 ME3000 Module Parameters 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. Pin: string value. 2.4.5 +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.6 +CCLK: clock management Description This command is used to set and query the data/time of real-time clock. Format AT+CCLK=