Table of Contents

Advertisement

Quick Links

GSM Module
AT Command Manual
For ZTE Corporation's ME3000_V2 Module
Version: V1.5
ZTE CORPORATION

Advertisement

Table of Contents
loading

Summary of Contents for Zte ME3000_V2

  • Page 1 GSM Module AT Command Manual For ZTE Corporation’s ME3000_V2 Module Version: V1.5 ZTE CORPORATION...
  • Page 2 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.
  • Page 3 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 from 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 technical support.
  • Page 4  Test engineers  Update History V1.0  Realize ME3000_V2 module’s self-defined AT commands; V1.2  Add the function of network LED, complete and verify the server’s function; V1.3  Modify the commands of ZPPPCLOSE, ZIPSEND, IFC, IPR, ZDNSGETIP, etc.
  • Page 5: Table Of Contents

    GSM Module Contents General Description ............8 1.1 Description of AT Commands ............8 1.1.1 Type of AT Commands ............8 1.1.2 Returned Format of AT Commands ........... 8 1.1.3 AT Command Format ............8 1.2 Abbreviations..............9 AT Commands ............12 2.1 Common Commands .............
  • Page 6 2.8 GPRS Command..............47 2.8.1 +CGDCONT: set PDP format ..........47 2.8.2 +CGACT: activate/deactivate PDP .......... 47 2.8.3 +CGATT: set GPRS service ........... 47 2.8.4 +CGCLASS : GPRS device class ..........48 2.9 ZTE Exclusive Commands ............49 2.9.1 +ZGPIO: read/write GPIO............ 49...
  • Page 7 GSM Module 2.9.2 +ZSTR: check module’s status ..........49 2.9.3 +ZGETICCID: set ICCID ............49 2.9.4 +ZCSQ: set auto display CSQ ..........50 2.9.5 +ZEDT: set DTR inspection mode ..........50 2.9.6 +ZDSLEEP: 32KHz Deep sleep mode .......... 51 2.9.7 +CUSD: send USSD data............. 51 2.9.8 +ZRINGPINMODE: set RING PIN signal mode ........
  • Page 8 GSM Module 2.16.1 +CCED: obtain cell information ..........71 2.16.2 +ZBCCH: lock BCCH ............72 2.16.3 +ZBAND: lock GSM band ............ 73 2.16.4 +ZOPT: lock network operator ..........74 2.16.5 +ZCALIST: read carrier wave list ..........75 Application Cases and Precautions........76 3.1 SMS Application Case.............
  • Page 9: General Description

    ME3000_V2 provides AT command interfaces, through which the module could communicate with the external devices conveniently. The AT commands set provided by ME3000_V2 module not only covers the standard GSM voice call and SMS applications, but adds some other commands based on GSM specification and some ZTE exclusive commands for users to use conveniently.
  • Page 10: Abbreviations

    GSM Module no parity check, no CTS/RTS, data rate 115200bps. 1.2 Abbreviations Analog-Digital Converter Automatic Frequency Control Automatic Gain Control ARFCN Absolute Radio Frequency Channel Number Antenna Reference Point ASIC Application Specific Integrated Circuit Bit Error Rate Base Transceiver Station CDMA Code Division Multiple Access CDMA Development Group...
  • Page 11 GSM Module FDMA Frequency Division Multiple Access Full Rate GPRS General Packet Radio Service Global Standard for Mobile Communications Half Rate Integrated Circuit IMEI International Mobile Equipment Identity International Standards Organization International Telecommunications Union Liquid Crystal Display Light Emitting Diode Machine Control Unit Man Machine Interface Mobile Station...
  • Page 12 Subscriber Identification Module Short Message Service SRAM Static Random Access Memory Terminal adapter TDMA Time Division Multiple Access Terminal Equipment also referred it as DTE UART Universal asynchronous receiver-transmitter User Identifier Management Universal Serial Bus VSWR Voltage Standing Wave Ratio ZTE Corporation...
  • Page 13: At Commands

    GSM Module 2 AT Commands 2.1 Common Commands 2.1.1 A/: repeat Description This command is used to repeat the previous command. Format AT+CSQ Inquire current signal strength Repeat AT+CSQ command Example AT+CMGS=”13714393404” Send a text message >123→ Repeat AT+CMGS command >123→...
  • Page 14: Atdl: Dial Last

    GSM Module ATD>”name”; Search phone number with “name” in SIM card and nvram Parameters <mem>: phonebook “SM”: SIM card phonebook. “ME”: local phonebook. “LD”: last dialled calls in phonebook. “MC”: missed calls “RC”: received calls <n>: the n-th option in phonebook. <string>: the number of called party, e.g., *99#.
  • Page 15: Ati: Information

    2.1.7 ATI: Information Description This command is used to display the module manufacturer’s information. Format Example display the module manufacturer’s ZTE Mobile LTD information. GSM/GPRS Mobile Station Revision: 1.0 2.1.8 ATQ: set whether or not to display the returned value. Description This command is used to set whether or not to display the returned value.
  • Page 16: Atp: Pulse

    GSM Module Example ATD*99# Dial to enter GPRS data connection CONNECT Switch from data mode to command mode …… Switch from command mode to data …… mode 2.1.11 ATP: pulse Description This command is used for pulse dialling. Format Example Set pulse dialling method 2.1.12 ATS0: auto answer setting Description...
  • Page 17: Clvl: Volume Level

    GSM Module VOICE: Voice GPRS: GPRS service FAX: Fax 2.1.14 +CLVL: volume level Description This command is used to set the volume level of the speaker. Format AT+CLVL=<level> Example AT+CLVL=100 Set current receiver volume as 100 Parameters AT+CLVL? Check the current receiver volume +CLVL:100 <level>...
  • Page 18: Cimi: International Mobile Identification

    GSM Module AT+ZSETMUTE=1 Mute on AT+ZSETMUTE=0 Mute off <Mode>: Parameters 0: Turn off mute 1: Turn on mute. 2.1.17 +CIMI: International Mobile Identification Description This command is used to read the International Mobile Identification of SIM card and check current PIN. Format AT+CIMI Example...
  • Page 19: Zvers: Get Current Software Version

    GSM Module Format AT+GSN Example AT+GSN Return current IMEI 2.1.21 +ZVERS: get current software version Description This command is used to get the current software version. Format AT+ZVERS Example AT+ZVERS get the current software version. +ZVERS: ***.bin 2.1.22 +CLCK: lock Description This command is used to lock the terminal or network function.
  • Page 20: Ccfc: Call Forwarding Number And Conditions

    GSM Module 2.1.23 +CCFC: call forwarding number and conditions Description This command is used to set call forwarding number and conditions. Format AT+CCFC=<reason>,<mode>[,<number> [,<type>[,<class>[,<subaddr>[,<saytype>[,time]]]]]] If mode!=2, setting successfully return: OK; If mode=2, setting successfully return: +CCFC:<status>,<class> Example AT+CCFC=? Check call forwarding control setting +CCFC: (0,1,2,3,4,5) Return reason range.
  • Page 21 GSM Module Parameters <reason>: 0:unconditional 1: mobile device busy 2: No answer 3: Can’t be connected 4: All calls 5: all conditions <mode>: 0: disabled 1: enabled 2: check status 3: register 4: delete <number>: phone number <type>: 145: international number 129: other number <subaddr>: address of character string type <saytype>: 128...
  • Page 22: Ccwa: Call Waiting

    GSM Module 2.1.24 +CCWA: call waiting Description This command is used for call waiting. Format AT+CCWA=[<n>] [,<mode> [,<class>]] Example AT+CCWA=? List all supported <n> +CCWA: (list of supported <n>s) AT+CCWA? Read current <n> +CCWA: <n> AT+CCWA=[<n>] Call waiting setting [,<mode> As mode!=2, if successful: [,<class>]] As mode!=2, return:...
  • Page 23: Chld: Call Hold

    GSM Module 2.1.25 +CHLD: call hold Description This command is used to set call held and conference call. Format AT+CHLD=[<n>] Example AT+CHLD=? Check supported <n> +CHLD: (list of supported <n>s ) AT+CHLD=[<n>] Set call held and conference call; If the setting is successful: If there is an error in operation: +CME ERROR: <err>...
  • Page 24: Cpwd: Change Password

    This command is used to inquire manufacturer’s information. Format AT+CGMI Example AT+CGMI Inquire manufacturer’s information +CGMI: ZTE Mobile LTD 2.1.29 ATZ: reset Description This command is used to read the parameter in NVRAM and set it as the current parameter. Format ATZ<n>...
  • Page 25: Cscs: Character Set Selection

    GSM Module 2.1.30 +CSCS: character set selection Description This command is used to select the type of languages; Format AT+CSCS=<string> Example AT+CSCS=? +CSCS: "IRA", "GSM", "HEX", "PCCP437", "8859-1", "UCS2", "UCS2_0X81" AT+CSCS=”IRA” AT+CSCS? +CSCS: ”IRA” 2.1.31 +CLCC: check call status Description This command is used to check the status of current calls or each call;...
  • Page 26 GSM Module Parameters <idx>: caller ID <dir>: call direction, taking the following value: 0: MO 1: MT <stat> call status, taking the following value: 0: activated 1: call held status 2: call originated, dialing 3: call originated, ringing 4: Incoming call ring status 5: call waiting <mode>: call type, taking the following value: 0: voice call...
  • Page 27: Dtmf Command

    GSM Module 2.2 DTMF Command 2.2.1 +VTS: send DTMF Description This command is used to send DTMF. Format AT+VTS=<string> Example AT+VTS=? Check +VTS parameter +VTS:(0-9,*#,A,B,C,D),,(1-255) ATD********; Dial AT+VTS=“3,6,9” Send 369 DTMF AT+VTS=3 AT+VTS=6 AT+VTS=9 Parameters String is a combination of characters, separated by comma. The character ranges from 0 to 9,*, #, A-D.
  • Page 28: Cops: Network Selection

    GSM Module Parameter <mode>: 0 Disabled network registration and provide result code (default) 1 Enabled network registration and provide result code: +CREG: <stat> 2 Enabled network registration and provide the location information. <stat>: 0: Not logged on the network yet, currently not searching for new operator 1: Already logged on the local network.
  • Page 29: Mobile Device Control And Status Report

    GSM Module 2.4 Mobile Device Control and Status Report 2.4.1 +CPAS: check module’s status Description This command is used to check the module’s work status. Format AT+CPAS Example AT+CPAS Check the module’s current work +CPAS:2 status. Parameter <pas> Ready to receive AT command 2: Unknown status (default) 3: Incoming call (ring) 4: In a call...
  • Page 30: Zpwroff: Power Off

    GSM Module Parameter <n> Only ERROR Provide error’s specific number Provide error’s specific number and detailed prompt 2.4.4 +ZPWROFF: power off Description This command is used to power off the module. Format AT+ZPWROFF Example AT+ZPWROFF Power off the module 2.4.5 +CPIN: input PIN Description This command is used to check PIN status and input PIN.
  • Page 31: Cclk: Clock Management

    GSM Module parameters <rssi>: 0–113dbm 1-111dbm 2..30–109..-53dbm 31-51dbm 99:network unavailable <ber>: 0~7:normal 99:network unavailable 2.4.7 +CCLK: clock management Description This command is used to set and check the date/time of real-time clock. Format AT+CCLK=<time> AT+CCLK? Example Check current time and date +CCLK: "04/02/09,17:34:23"...
  • Page 32: Message Service Command

    GSM Module 2.5 Message Service Command 2.5.1 +CSCA: SMS center number Description This command is used to set SMS center number. Format AT+CSCA=<sca>[,<tosca>] Example AT+CSCA="+861380****500" Set SMS center number Check SMS center number AT+CSCA? +CSCA: "8613800755500", 145 Parameters <sca>:SMS center address <tosca>: SMS center format 2.5.2 +CNMA: message acknowledgement Description...
  • Page 33: Cnmi: Message Indication

    GSM Module 2.5.4 +CNMI: message indication Description This command is used to set new message indication. Format AT+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr> Example AT+CNMI=? Check current setting range +CNMI: (0-3),(0-3),(0,2,3),(0,1),(0,1) AT+CNMI=3,1,0,0,0 Set message receiving mode as +CMTI: men, index +CMTI: "SM",19 Receive new messages AT+CNMI=3,2,0,0,0 Set message receiving mode AT+CMGF=1...
  • Page 34 GSM Module Parameters <mode>:control the method of notifying TE, default 2 0: cache the notice firstly and send it according to <mt> value; 1: notify TE as the data cable is idle, otherwise, do not notify TE; 2: Directly notify TE as the data cable is idle, otherwise cache the notice first and transmit it again as the date cable is idle;...
  • Page 35: Cmgr: Message Read

    GSM Module 2.5.5 +CMGR: message read Description This command is used to read the received message. Format AT+CMGR=? Example AT+CMGF=1 +CMTI: “MT”:1 AT+CMGR=1 +CMGR:"REC Receive the message, saved at index UNREAD","133********",, "04/02/25,12 :58 :04+04" Set TEXT format ABCD Read the first TEXT message AT+CMGF=0 Set PDU mode AT+CMGR=1...
  • Page 36: Csms: Select Sms Service

    GSM Module Parameter <alpha>:the name of corresponding <da> or <oa> on the terminal. <stat>:the message status in memory. <oa>:message original number string <da>:message target string <scts>:message service center time string <lenth>: length of message body <data> <pdu>:ME/TA hex value <stat>: 0:“REC UNREAD”...
  • Page 37: Cmgs: Message Send

    GSM Module 2.5.7 +CMGS: message send Description This command is used to send the message from the terminal to the network. Return the parameter to the terminal after the message is sent. Note: there is error prompt as the message is sent to illegal number. Format Text mode (AT+CMGF=1) AT+CMGS=<de><CR>...
  • Page 38: Cmgd: Message Delete

    GSM Module Example AT+CPMS="SM","SM","SM" Check message storage in SIM card mem1 total capacity 50 entries, 4 used +CPMS:4,50,4,50,4,50 mem2 total capacity 50 entries, 4 used mem3 total capacity 50 entries, 4 used at+cpms=? +CPMS: ("SM", "ME", "SM_P", "ME_P", "MT"), ("SM", "ME", "SM_P", "ME_P", "MT"), ("SM", "ME", "SM_P", "ME_P", "MT")
  • Page 39: Cmgl: Message List

    GSM Module Example AT+CMGF=1 Set as text mode AT+CMGL="all" List all messages +CMGL:1,"REC READ","130********","", abcdefg +CMGL:2,"REC READ","131********","", abcdef +CMGL:3,"STO SENT","1331********","" opqrxt AT+CMGD=2 Delete the second message AT+CMGF=0 Set as PDU mode AT+CMGL=4 List all messages +CMGL: 1,3,,21 0891683108705505F0010F0B813 120882624F700 0808738B54084F1F5927 +CMGL: 2,3,,21 0891683108705505F001100B813 120882624F700...
  • Page 40 GSM Module Example AT+CMGF=1 Set as text mode AT+CMGL="ALL" Use text mode Check all messages +CMGL:1,"REC READ","130********","", abcdefg +CMGL:2,"REC READ","131********","", abcdef +CMGL:3,"STO SENT","1331********","", opqrxt Returned 1) text mode as below: format +CMGL :<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>] <CR><LF><data><CR><LF> +CMGL :<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>] <CR><LF><data> […] (Received/transmitted message list) 2)PDU mode as below: +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>...
  • Page 41: Cmss: Messages Saved In Sim Card

    GSM Module 2.5.11 +CMSS: messages saved in SIM card Description This command is used to send the messages saved in SIM card. Format AT+CMSS=<index>[,<da> [,<toda>]] Return format: +CMSS : <mr> 或+CMS ERROR: <err> If the new target number is designated, the new number will replace the number saved in the message.
  • Page 42: Phonebook Command

    GSM Module 2.6 Phonebook Command 2.6.1 +CPBS: phonebook storage Description This command is used to select phonebook memory. Format AT+CPBS=<type> Example AT+CPBS? Check current phonebook settings +CPBS: "SM",1,250 Select SIM card as current phonebook AT+CPBR=1 Check phonebook storage memory +CPBR=1,"130********",129,"" AT+CPBS=? Select the phonebook saved in SIM +CPBS: ("ME", "SM", "LD", "MC",...
  • Page 43: Cpbw: Phonebook Write

    GSM Module AT+CPBS="SM" Select SIM card phonebook Check card phonebook AT+CPBR=? information +CPBR: (1-10),40,13 Read the contacts information from 1 AT+CPBR=1,3 to 3 +CPBR: 1,"8151****",129,"" +CPBR: 2,"8636****",129,"" +CPBR: 3,"8604****",129,"" Parameters index1: read phonebook index index2: read the contacts information from index1 to index2 index: index number: phone number type: phone type...
  • Page 44: Cpbf: Phonebook Find

    GSM Module Parameters index: index length: number length type: phone type 129: domestic 145: international tlength: length of contact’s name Number: phone number Name: number’s corresponding name 2.6.4 +CPBF: phonebook find Description This command is used to find the information in phonebook. Format AT+CPBF= <name>...
  • Page 45: Cnum: Owner's Number

    GSM Module 2.6.5 +CNUM: owner’s number Description This command is used to read the owner’s number. Format AT+CNUM Example AT+CNUM Read the owner’s number +CNUM: "","130********",129,7,4 Parameter The owner’s number can be written into SIM card through AT+CPBS="ON" ;AT+CPBW command and read through AT+CNUM command.
  • Page 46: Data Compression Command

    GSM Module 2.7 Data Compression Command 2.7.1 +IFC: flow control Description This command is used to set the flow control between TE-TA. Format AT+IFC=[<mode1 >[,<mode2>]] Example AT+IFC=2,2 Set mode1 of TE-TA flow control as RTS, mode2 as CTS Parameter mode1: 0: no flow control.
  • Page 47: F: Restore Factory Settings

    GSM Module Example AT+IPR? Check current module’s baud rate +IPR: 115200 Parameter AT+IPR=? Check supported baud rate AT+IPR=115200 Set the baud rate as 115200 It only supports the baud rate higher than 115200 bps under EDGE and 3G platform. If the setting baud rate needs to be saved, use AT&W command;...
  • Page 48: Gprs Command

    GSM Module 2.8 GPRS Command 2.8.1 +CGDCONT: set PDP format Description This command is used to set GPRS PDP format; Format AT + CGDCONT=cid, type, APN[,PDP_ADDR] Example At + CGDCONT=1, "IP","CMNET" ATD*99# …… Connect Parameters cid: used to mark the number of PDP, minimum 1; type: type pf PDP package;...
  • Page 49: Cgclass : Gprs Device Class

    GSM Module 2.8.4 +CGCLASS : GPRS device class Description This command is used to check GPRS device levels. Format AT+CGCLASS=[<class>] Example AT+CGCLASS? Check GPRS device levels. +CGCLASS:"B" Parameter class: A: support A level B: support B level CG :support GPRS only CC: support circuit exchange only...
  • Page 50: Zte Exclusive Commands

    GSM Module 2.9 ZTE Exclusive Commands 2.9.1 +ZGPIO: read/write GPIO Description This command is used to set input/output interface and read/write GPIO value. Format AT+ZGPIO=<flag>,<index>,<value> AT+ZGPIO=0,5(read) Example +ZGPIO: 0 AT+ZGPIO=1,22,1(write) <flag>: Parameter 0:read 1:write <index>:Index for GPIO to read/write; <value>:...
  • Page 51: Zcsq: Set Auto Display Csq

    GSM Module values 2.9.4 +ZCSQ: set auto display CSQ Description This command can be used to set a threshold value <NUM>. As the RSSI is larger than the threshold value, the module will send +CSQ at the COM port. Note: Note: the threshold value <NUM>...
  • Page 52: Zdsleep: 32Khz Deep Sleep Mode

    GSM Module AT+ZEDT? +ZEDT: 1 AT+ZEDT =? +ZEDT: (0,1) <NUM> range: 0~1 Parameter Remarks The command “+ZEDT” is mainly used to set the module at low power consumption mode; under low power consumption mode; the module could intermittently turn off the RF components, besides, the MCU、 DSP、 PLL , external clock at digital baseband part can enter dormant mode, and 26MHz main crystal oscillator would enable/disable regularly to reduce the module’s power consumption.
  • Page 53 GSM Module Format AT+CUSD=n,0,”str”,dcs Parameter 1. <n> : 0 disable result code presentation in the TA  1 enable result code presentation in the TA  2 cancel session  2. <str> string type: USSD string (see 3GPP 27.007 for use)。 Please use ASCII code.
  • Page 54: Zringpinmode: Set Ring Pin Signal Mode

    GSM Module returned value Among: <m> 0 no further user action required 1 further user action required 2 USSD terminated by network 3 other local client has responded 4 operation not supported 5 network time out Example at+cusd=1,5,15 1. Connect *100#, and >...
  • Page 55: Network Parameter Commands

    GSM Module 2.10 Network Parameter Commands 2.10.1 +ZPNUM: set APN, username and password Description This command is used to set the operator’s APN, username and password. Format AT+ZPNUM=<APN>,<USER>,<PWD> Example AT+ZPNUM="cmnet", "user", "pwd" AT+ZPNUM? Check current APN,USER,PWD settings Parameter APN:GPRS APN provided by operator; USER: username PWD: password APN: USER, PWD is a kind of character "string".
  • Page 56: Zipgetip: Check Current Ip Address

    GSM Module 2.10.4 +ZIPGETIP: check current IP address Description This command is used to obtain the IP address. Format AT+ZIPGETIP Example AT+ZIPGETIP Obtain the module’s IP address +ZIPGETIP: *.*.*.* * is a value from 0~255; Parameter 2.10.5 +ZDNSSERV: set DNS IP address Description This command is used to set the IP address of the DNS.
  • Page 57: Tcp Link Commands

    GSM Module 2.11 TCP Link Commands 2.11.1 +ZIPSETUP: Set up TCP server link Description This command is used to send data to a bundled TCP server. Format AT+ZIPSETUP=<N>,<IP>,<M> Example AT+ZIPSETUP=1,61.144.216.219,2332 Connect to TCP server. +ZIPSETUP:CONNECTED Parameter N: the channel No. of TCP links, ranging from 0 to 4; support 5 TCP links with 5 different IP addresses and ports;...
  • Page 58: Zipstatus:check Current Tcp Link Status

    GSM Module 2.11.4 +ZIPCLOSE: close TCP link Description This command is used to close TCP link. Format AT+ZIPCLOSE=<N> Example AT+ZIPCLOSE=1 Close TCP link. +ZIPCLOSE:OK Parameter N: the number of TCP links and the value is 1; 2.11.5 +ZIPSTATUS:check current TCP link status Description This command is used to check the status of current TCP link.
  • Page 59: Udp Link Commands

    GSM Module 2.12 UDP Link Commands 2.12.1 +ZIPSETUPU: set up UDP server link Description This command is used to bundle with the UDP server link. Format AT+ZIPSETUPU=<N>,<IP>,<M> Example AT+ZIPSETUPU=1,61.144.216.219,2332 The UDP server’s bundled address is 61.144.216.219, with the port no. 2332.
  • Page 60: Ziprecvu: Receive Udp Data

    GSM Module 2.12.4 +ZIPCLOSEU: close UDP link Description This command is used to close the designated UDP link. Format AT+ZIPCLOSEU=<N> Example AT+ZIPCLOSEU=1 Successfully close the No. 1 UDP link +ZIPCLOSE:OK Prompt that the No.1 UDP link closed. Parameter N: the channel number of UDP links; representing the channels to be closed, ranging from 0 to 4.
  • Page 61: Server Commands

    GSM Module 2.13 Server Commands 2.13.1 +ZTCPLISTEN: set port monitoring Descriptio This command is used to enable/disable port monitoring function. Format AT+ZTCPLISTEN=<on/off>,<portNum> AT+ZTCPLISTEN? Paramete On/off 1:start listening 2:stop listening portNum the listening port num If <on/off> is 2, please set this parameter as 0. Format AT+ZTCPLISTEN=1,1174 Monitoring port 1174...
  • Page 62: Ztcpclosep: Close Monitored Connection

    GSM Module recommended), it will trigger the transmitting process. Example AT+ZTCPSENDP=10 Send 10 characters through >1234567890 the monitored link. +ZTCPSEND(P):OK Note Prior to the use of this command, the monitored connection must be established. 2.13.3 +ZTCPCLOSEP: close monitored connection Description This command is used to close the monitored connection.
  • Page 63: Ztcpstatusp: Check Passively Opened Link

    GSM Module 67890123456789012345678901234567890123 45678901234567890123456789012345678012 34567890123456789012345678901234567890 12345678901234567890123456789012345678 01234567890123456789012345678901234567 89012345678901234567890123456789012345 67801234567890123456789012345678901234 56789012345678901234567890123456789012 34567801234567890123456789012345678901 23456789012345678901234567890123456789 01234567801234567890123456789012345678 90123456789012345678901234567890123456 78901234567801234567890123456789012345 67890123456789012345678 2.13.5 +ZTCPSTATUSP: check passively opened link Description This command is used to check if there is any passively opened link. Format AT+ZTCPSTATUSP=<channel> Descriptions +ZTCPSTATUS(P):DISCONNECT One passively link not existed returned value +ZTCPSTATUS(P):CONNECT...
  • Page 64 GSM Module +ZIPTIMEOUT:(5-120),(5-18000) timeout value AT+ZIPTIMEOUT=30,60 Set the timeout at+ziptimeout? Check the range of +ZIPTIMEOUT:30,60 current timeout...
  • Page 65: Ztcptimeout: Set The Timeout For Receiving Data

    GSM Module 2.13.7 +ZTCPTIMEOUT: set the timeout for receiving data Description This command is used to set the timeout for receiving data. Format AT+ZTCPTIMEOUT=<recv_data_timeout> Description If the module does not receive the data within the specified time, it parameters will close the connection, otherwise, the number of connections exceeds the limit, other client-ends can not be connected.
  • Page 66: Ftp Commands

    GSM Module 2.14 FTP Commands 2.14.1 +ZFTPGET: download data from FTP server Description This command is used to download data from the FTP server. Format AT+ZFTPGET=<IP>,<PORT>,<username>,<password>,<dir&filename>,<type>, <Content or Info>,<output interval> Parameter IP: server’s IP address PORT:server’s FTP port number, default 21 (Note: recommended to set the port number as 21 according to RFC959;)...
  • Page 67 GSM Module Example at+zftpget=121.35.129.237,21,ls,1,ls1\ls6 Read the file ls1\ls68.txt on the 8.txt,1,1,0 server 121.35.129.237. The username is ls, +ZFTPGET: Recv Over.length is 10 the password is 1 and the method 1234567890 is ASCII mode. The file can be read successfully, and the file content is 1234567890.
  • Page 68 GSM Module Mode: operation mode, ranging from 1 to 3. Refer to the following descriptions : --1: STOR mode : create a file on the server to write the data. If the file already exists, cover the original file. --2: APPE mode : if the file does not exist on the server, create a file. If the file exists, attach the data at the end of the file.
  • Page 69: Relevant Audio Commands

    GSM Module depends on the settings of your FTP server’s software. 2. The data length transmitted each time should not exceed 1900 bytes; if you want to write a large file, please firstly use STOR mode and then use APPE mode. 3.
  • Page 70: Speaker: Audio Channel Switch Command

    GSM Module 0~9 :play DTMF tone from 0 to 9; 10~13 :play DTMF tone from A to D; 14 : play * DTMF tone; 15 : play # DTMF tone; 16 :stop playing DTMF tone ; <Duration> DTMF playing duration, unit: 20ms. Value range: 0-1000。Set as 0, continue to play Descriptions returned value...
  • Page 71: Zmicgb: Set Mic Audio Parameters

    GSM Module 2.15.4 +ZMICGB: set MIC audio parameters Description This command is used to change MIC input channel’s audio parameters. Format AT+ZMICGB=<Gain>,<Bias>,<PGA> //set parameters AT+ZMICGB=? //check parameter setting format AT+ZMICGB? //check current parameters Parameter Refer to the definitions of three parameters in MIC output circuit in figure 1.
  • Page 72 GSM Module MIC_PGA_1db5 MIC_PGA_3db0 MIC_PGA_4db5 MIC_PGA_6db0 MIC_PGA_7db5 MIC_PGA_9db0 MIC_PGA_10db5 MIC_PGA_12db0 MIC_PGA_13db5 MIC_PGA_15db0 MIC_PGA_16db5 MIC_PGA_18db0 MIC_PGA_19db5 MIC_PGA_21db0 MIC_PGA_22db5 L1BbcInputPgaGain; OK:parameter settings succeed; Descriptions of returned ERROR:incorrect parameter format value Example AT+ZMICGB=0,3,12 Note: Gain: 0; Bias: 3; PGA: 12 Figure 1...
  • Page 73: Relevant Base Station Commands

    GSM Module 2.16 Relevant Base Station Commands 2.16.1 +CCED: obtain cell information Description This command is used to obtain the information of main cell and adjacent cells. Format AT+CCED=<mode>,<requested dump> Parameters <mode> 0 : respond once now (default) 1 : auto output 2 : stop auto output <requested dump>...
  • Page 74 GSM Module CI: cell identification BSIC: base station identification code; BCCH:Broadcast channel FREQ:frequency; NCELL:Neighbor cell RxLev: received level (signal reception strength, indicating the signal strength of received BCCH)) RxQual: Rx. quality Example AT+CCED? Check current settings +CCED: 0, 1 AT+CCED=? Check parameter range +CCED: (0-2), (1, 2, 8, Obtain main cell’s information...
  • Page 75: Zbcch: Lock Bcch

    GSM Module +ZBCCH: lock BCCH 2.16.2 Lock one designated BCCH to achieve the purpose of Descriptio locking CELL-ID; The inquiry command is used to get the current locked BCCH No. and the corresponding zone bit code, cell ID and operator code; the test command is used to get the strongest 7 BCCH No.
  • Page 76: Zband: Lock Gsm Band

    GSM Module Example AT+ZBCCH=? +ZBCCH:(0,1),80,66,68,74,84,72,54,62,64,56,31,28,13,16, 607,594,592,540,532,528,524,522,516,514,512 AT+ZBCCH? +ZBCCH: 80,MCC:460,MNC:00,LAC:2533,CELL ID:10ba AT+ZBCCH=1,80 +ZBCCH:LOCK SUCCESS +ZBAND: lock GSM band 2.16.3 Lock the GSM specified band: 850/900/1800/1900MHZ and Descriptio currently support 900/1800MHZ only in China. After locking one frequency band, use the setting command to lock another band, then the locked band will be automatically unlocked.
  • Page 77: Zcalist: Read Carrier Wave List

    GSM Module value Example AT+ZBAND=1 +ZBAND:LOCK SUCCESS AT+ZSGBAND? +ZBAND:1 AT+ZBAND=? +ZBAND:(0-2),0:auto,1:gsm900,2:dcs1800 +ZOPT: lock network operator 2.16.4 Lock GSM/GPRS network operator: China Mobile, China Descriptio Unicom, etc. AT+ ZOPT =<opt> Setting succeeded Format +ZOPT:<state> Failed ERROR AT+ ZOPT =? Test + ZOPT: <opt list> <opt>...
  • Page 78: Application Cases And Precautions

    GSM Module BCCH 没有锁定,读取是最强信道的载波数 AT+ ZCALIST Format +ZCALIST:<ca0>…<ca63> <ca> 0 ~ 63 有效的载波数目 Paramete Descriptio 成功 ERROR 失败 returned value AT+ZCALIST Example +ZCALIST:2,8,19,34,45,80,94 Application Cases and Precautions 3.1 SMS Application Case Note: The following text marked in red should be entered; at+cmgf=1...
  • Page 79 GSM Module ——Set the message’s input mode as text mode. at+cmgs="13360504647"<CR> hallo<ctrl/Z> +CMGS: 1 ——Send one message. "13360504647" is the number of message recipient, and hallo is the message text. at+cmgw="13360504647"<CR> goodbye<ctrl/Z> +CMGW: 1 ——write a message in "SM"."13360504647" is the number of message recipient, and goodbye is the message text.
  • Page 80 GSM Module at+cnmi=3,2,0,0,0 ——Set the status of newly received message as “Directly display but not save” +CMT: "+8615986672056","OK","07/08/27,13:23:56+32" WESDDR ——Receive a new message, which is directly displayed but not saved. "+8615986672056" is the number of message recipient, "07/08/27,13:23:56+32" is the sending time and WESDDR is the message text.
  • Page 81 GSM Module ——Check the current memory. From +CPMS, we know that the entry has been stored at the index 1 in the current phone memory “SM”. at+cpbr=1 +CPBR: 1,"13086672098",129,"john" ——Read the phonebook entry. atd>1; ——Dial the index number in the current phonebook. atd>"john";...
  • Page 82 GSM Module +CPBR: 1,"13086672098",129,"john" ——Read this phonebook entry.

Table of Contents