Page 1
GSM Modules AT Command Manual For ZTE Corporation’s MG2636 Modules Version: V1.4 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 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-86140899 for more supports.
Page 4
Preface Summary This user manual applies to MG2636 modules. AT command set provided by ZTE modules not only covers standard GSM voice and data applications, but adds some commands according to GSM specification and some ZTE exclusive commands for users. Refer to the manual to help you understand AT command operations of MG2636 modules.
Page 5
GSM Modules Modify 2.1 +CREG Modify 4.3 +CNMI Modify 4.5 +CSMS Modify 4.6 +CMGS Modify 4.7 +CPMS Modify 6.1 $MYNETCON Modify 8.1 $MYNETCREATE Version V1.1(2010-05-18) It is the 2 time to release the document. See the updates below: Add 8.1 $MYNETCREATE Modify 6.1 $MYNETCON Modify 7.1 $MYNETSRV Modify 7.2 $MYNETOPEN...
GSM Modules Contents Common Commands ..............7 1.1 ATA: Answer ..............7 1.2 ATD: Dial ............... 7 1.3 ATE:Enable ..............7 1.4 ATH: Hang up ..............8 1.5 ATI: Indicate..............8 1.6 ATQ:Display returned value ............8 1.7 +++: switch from data mode to command mode ........9 1.8 ATO: switch from command mode to data mode........
GSM Modules 1. Common Commands 1.1 ATA: Answer Description This command is used to answer a call. Format RING Example Incoming call Answer a call 1.2 ATD: Dial Description This command is used to dial, transmit data or send a fax. Format ATD<string>;...
1.5 ATI: Indicate Description This command is used to indicate the manufacturer’s information of the module. Format Example indicate the manufacturer’s information of the ZTE Mobile LTD module GSM/GPRS Mobile Station Revision: 1.0 1.6 ATQ:Display returned value Description This command is used to set whether or not display the returned value Format ATQ<n>...
GSM Modules 1.7 +++: switch from data mode to command mode Description This command is used to switch from data mode to command mode. Format Example ATD*99# Dial to enter data mode CONNECT Switch from data mode to command mode ……...
GSM Modules Parameter Num: 0:do not display the caller ringer type 1:display the caller ringer type Descriptions of caller ringer type -VOICE -GPRS -FAX 1.11 +CLVL: caller volume level Description This command is used to set the volume level of the speaker. Format AT+CLVL=<level>...
GSM Modules 1.13 +CIMI: check international mobile identification Description This command is used to read SIM card’s international identification. Format AT+CIMI Example AT+CIMI Check CIMI 460030916875923 Return CIMI 1.14 +(C) GMR: get mobile revision Description This command is used to get the current software revision. Format AT+(C)GMR Example...
GSM Modules Parameter <fac>: "PF" lock the phone into the firstly inserted SIM card; "SC" SIM card; "AO" all outgoing calls; "OI" Outgoing international calls; "AI" all incoming calls; "IR" Incoming roaming; "AB" all services barring; "AG" barring of all outgoing calls; "AC" barring of all incoming calls;...
This command is used to check the manufacturer’s information of the module. Format AT+CGMI Example AT+CGMI check the manufacturer’s information of the ZTE Mobile LTD module 1.19 +IPR: set module’s baud rate Description This command is used to set the module’s baud rate and auto save the current baud rate.
GSM Modules AT+CCWA=[<n>] Call waiting setting [,<mode> As mode!=2, if succeeded, [,<class>]] As mode==2, return: +CCWA:<status>,<class1>[<CR><LF> +CCWA:<status>,<class2>[...]] OK If operation error occurs: +CME ERROR: <err> If <n>=1, send call waiting result code: +CCWA: <number>,<type>,<class> [,<alpha>][,<CLI validity>] Under the premise of call waiting activated, in the process of call connection, As the system terminates the call, actively send the result code.
GSM Modules Parameter <n>: 0: release all held calls or set a waiting call as UDUB 1: Release all activated calls and receive a held or waiting call. 1X: Release call X 2: Hold all activated calls and receive another held or waiting call. 2X: hold all calls except for call X 3: Add the held call into the conference call Remarks...
GSM Modules 1.24 ESIMS: check SIM card status Format This command is used to check SIM card status. Example AT+ESIMS? Example AT+ ESIMS? Check SIM card status + ESIMS: 0 No SIM card Parameter Status: 0:SIM card does not exist. 1:SIM card exists.
GSM Modules 2. Network Service Command 2.1 +CREG: network registration and roaming Format This command is used to check the module’s network registration and roaming status. Example AT+CREG=<mode> +CREG :<mode>,<stat> return code Example AT+CREG=0 Disabled network registration and provide result code AT+CREG? Display the module’s registration status +CREG: 0,1...
Page 20
GSM Modules Parameter <mode> 0 auto select, omit <format> <oper> 1 manual select, need <format><oper> 3 not involve network registration, this command is used to set format only; at this point, need <format> 4 manual/auto; If manual registration fails, auto register <format>...
GSM Modules 3. Mobile Device Control and Status Report 3.1 +CPAS: check module’s status Format This command is used to check the module’s work status. Example AT+CPAS Example AT+CPAS Check the module’s current work status. +CPAS:0 Parameter <pas> Ready to receive AT command 1: not ready to receive AT command 2: Unknown status (not insert card or no signal) 3: Incoming call (ring)
GSM Modules Parameter <n> Only ERROR Provide error’s specific number Provide error’s specific number and detailed prompt 3.4 +CPIN: input PIN Format This command is used to check PIN status and input PIN. The functions can be used only after the correct PIN is entered. Example AT+CPIN= Example...
GSM Modules 3.6 +CCLK: clock management Description This command is used to set and check the date/time of real-time clock. Format AT+CCLK=<time> Example AT+CCLK? Check current time and date +CCLK: "04/02/09,17:34:23" Current network time and date parameters AT+CCLK="04/02/09,18:34:23" Set current date and time Time string format: "yy/mm/dd,hh: mm: ss "...
GSM Modules 4. SMS Service Command 4.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 Parameters <sca>:SMS center address <tosca>: SMS center format 4.2 +CMGF: Set SMS mode Description This command is used to set SMS input method.
Page 25
GSM Modules Returned results +CMTI:<mem>,<index> : receive new message +CMT:,<length><CR><LF><pdu> : directly output message (PDU mode) +CBM:<length><CR><LF><pdu> : directly output cell broadcast message (PDU mode) 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;...
GSM Modules 4.4 +CMGR: read message Description This command is used to read the received message. Format AT+CMGR=? Example AT+CMGF=1 +CMTI: AT+CMGR=1 “MT”:1 +CMGR:"REC UNREAD","133********",, Receive the message, saved at index 1 "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...
GSM Modules 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”...
GSM Modules Format Text mode (AT+CMGF=1) AT+CMGS=<de><CR> <data><Ctrl-Z/ESC> PDU mode(AT+CMGF=0) AT+CMGS=<length><CR> <pdu><Ctrl-Z/ESC> Example AT+CMGF=1 Set as text mode AT+CMGS="13316538879"<CR> Send a “ABC” message to 13316538879 ABC<ctrl/Z> AT+CMGF=0 Set as PDU mode AT+CMGS=17<CR> Send a “ABC” message to 13028862427 0891683108705505f011000b81312 0882624f700f1ff0361f118<Ctrl-Z> +CMGS:2 Parameter <de>:message sending number under text mode...
GSM Modules 4.8 +CMGD: delete messages Description This command is used to delete a message from selected memory. Format AT+CMGD=<Index> 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...
GSM Modules 4.9 +CMGL:message list Description The command is used to read a kind of messages saved in the selected memory via +CPMS command. Format AT+CMGL=<stat> 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...
GSM Modules Parameters 1. text mode(+CMGF=1) <stat> REC UNREAD: receive unread message REC READ: receive read message STO UNSENT: store unsent message STO SENT: store sent message ALL: all messages 2.PDU Mode (+CMGF=0) <stat> <stat>: 0: received unread message 1: received read message 2: saved unsent message 3: saved unsent message 4: All messages...
Page 32
GSM Modules AT+CMSS=2 As the message is saved +CMSS:1 Do not designate the number to send the message Message sent,(send to the address used to save the message CMSS return value 1 AT+CMSS=2,"1302755****" Use number 1302755**** to replace the +CMSS:2 original number 1331653****, and send a message to new number...
GSM Modules 5. Phonebook Command 5.1 +CPBS: phonebook selection 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 card +CPBS: ("ME", "SM", "LD", "MC",...
GSM Modules AT+CPBS="SM" Select SIM card phonebook Check SIM card phonebook information AT+CPBR=? Read the contacts information from 1 to 3 +CPBR: (1-10),40,13 AT+CPBR=1,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...
GSM Modules 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 5.4 +CPBF: phonebook find Description This command is used to find the information in phonebook. Format AT+CPBF= <name>...
GSM Modules 5.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.
GSM Modules 6. GPRS Command 6.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 Parameter cid: used to used to designate PDP context mark, min. 1. type: PDP packet type IP: use TCP/IP packet;...
GSM Modules 6.4 +CGCLASS: GPRS device levels 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...
GSM Modules 7. Public Transmitting Commands $MYNETCON: set network connection initializing parameters Type Command Possible returned results Descriptions AT$MYNETCON=<chann Succeed el>, attention case <type>,<typename> sensitive of the parameters ERROR[:<errornumber>] Error {Error!parameter invalid, Error list: {invalid parameters Error!Service type not configure, Not set service type Error!channel has been opened, Path On...
Page 40
GSM Modules AT$MYNETCON=0,conType,GPRS(default as GPRS, optional setting) Example AT$MYNETCON=0,userpwd,"user,1234"(optional setting) AT$MYNETCON=0,APN,"cmnet"(must set APN before connecting to network) AT$MYNETCON=0,CFGT,200 AT$MYNETCON=0,CFGP,800 AT$MYNETCON? 0,conType,GPRS 0,userpwd,"user,1234" 0,APN,"cmnet" 0,CFGT,200 0,CFGP,800 1,conType,GPRS 1,CFGT,1000 1,CFGP,1000 2,conType,GPRS 2,CFGT,1000 2,CFGP,1000 3,conType,GPRS 3,CFGT,1000 3,CFGP,1000 4,conType,GPRS 4,CFGT,1000 4,CFGP,1000 5,conType,GPRS 5,CFGT,1000 5,CFGP,1000 Description This command is used to set APN, username, password and transparent transmitting parameters.
GSM Modules 7.2 $MYTYPE: check module’s work mode and network type Type Command Possible returned Descriptions results $MYTYPE: Two bytes, work mode + <workType>,<netType > Query AT$MYTYPE? network type command ERROR Error Test AT$MYTYPE =? $MYTYPE:OK command Parameter <workType>: First byte 8bit Position 0: indicating transparent transmission Position 1: indicating non-transparent transmission <netType >:...
GSM Modules 8. Non Transparent Transmission Command $MYNETSRV: set service parameters Type Command Possible returned results Descriptions Succeed AT$MYNETSRV=<channe Pay attention to the l>, case sensitive command <nettype>,<value> each parameter ERROR[:<errornumber>] Error number : $MYNETSRV <channel>,< parameters nettype >,< value > Query displayed according AT$MYNETSRV?
Page 43
GSM Modules at$mynetsrv?(display the setting options) 0,type,SOCKET 0,address,UDP:119.123.203.72:7000 1,type,SOCKET 1,address,TCP:116.24.228.196:6800 2,type,FTP 2,address,FTPget"ftp://hj:1234@119.122.174.84:21/hujin\test20.txt;type=a" 3,type,FTP 3,address,FTPput"ftp://hj:1234@119.122.174.84:21/hujin\test20.txt;type=a;mode=a" This command is used to set SOCKET or FTP service address. Descriptions In SOCKET service mode, the address format: mode: IP address: port(mode: TCP or UDP) In FTP service mode, the address format: (1 )...
GSM Modules Note: when a certain channel is ON, you are not allowed to use the command again to set, otherwise it wound return with error. 8.2 AT$MYNETOPEN: open service Type Command Possible returned results Descriptions AT$MYNE Succeed TOPEN= command <channel>...
Page 45
GSM Modules at$mynetopen?(echo display the open channel information) netchannel:0,type:TCP,Local_ip:10.9.114.150,DNS1:211.136.20.203,DNS2:211. 136.20.203,Dest_ip:116.25.79.29,Dest_port:6800 netchannel:1,type:UDP,Local_ip:10.9.114.150,DNS1:211.136.20.203,DNS2:211. 136.20.203,Dest_ip:116.25.79.29,Dest_port:7000 at$mynetsrv=2,type,FTP at$mynetsrv=2,address,FTPget"ftp://hj:1234@119.122.174.84:21/hujin;type=d" (obtain hujin file list) at$mynetopen=2 total 110 drw-rw-rw- 1 user group 0 May 14 14:29 . drw-rw-rw- 1 user group 0 May 14 14:29 .. -rw-rw-rw- 1 user group 8 Apr 28 14:01 test1.txt...
GSM Modules 8.3 AT$MYNETCLOSE: close service Type Command Possible returned results Descriptions AT$MYNETCLOSE= Succeed <channel> command ERROR[:<errornumber>] Error $MYNETCLOSE: Succeed Query AT$MYNETCLOSE? command ERROR Error Test AT$MYNETCLOSE $MYNETCLOSE:OK command Parameters 1.<netchannel>:channel No. ranging from 0 to 5; AT$MYNETCLOSE=1 Example $MYNETCLOSE: 1 $MYNETCLOSE: 0 (actively report, indicating channel 0 is closed at the server end)...
GSM Modules no data for this channel. $MYNETREAD: 0,47 (actively report, indicating channel 0 received 47 bytes) Example AT$MYNETREAD=0,10 (read 10 data) $MYNETREAD: 0,10 TCP:testby AT$MYNETREAD=0,48 $MYNETREAD: 0,47(only 47 data) TCP:testbyZTEMT2010.4.13,send_string=0123456789(data) In non transparent transmission SOCKET mode, as the module receives the data, Descriptions actively report it and use the command to read the data in the designated channel;...
Page 48
GSM Modules pe=a;mode=a” at$mynetopen=3 at$mynetwrite=0,80 Input data Descriptions Used for non transparent transmission SOCKET service mode and FTP service mode, FTPput command (mode not delete) is used to transmit data. For each channel, the received data’s buffer size is 2K and FTP service is 10K. If there is anything wrong with the server (cut-off or drop), using the command in TCP mode to transmit the data will prompt with server abnormal.
GSM Modules 9. Transparent Transmission Command 9.1 AT$MYNETCREATE: open transparent transmission service Type Command Possible returned results Descriptions AT$MYNETCREATE=<mode>,<ne Succeed tchannel>,[<local_port>],<ip>,<port command > ERROR[:<errornumber>] Error List channels on Query the link AT$MYNETCREATE? command Test AT$MYNETCREATE =? $MYNETCREATE:OK command Parameters 1.<mode>:value(1, 2); 1:udp;2:TCPclient; 2.
Page 50
GSM Modules abandoned in command mode, do not display the received data. Use AT$MYNETCLOSE command to close the connection. If there is anything wrong with the server (cut-off or drop), using the command in TCP mode to transmit the data will prompt with server abnormal. Note: The overall size of transparent transmission data is within 2K;...
Need help?
Do you have a question about the MG2636 and is the answer not in the manual?
Questions and answers