AT Command Reference Guide
Version: V2.0
Date: 2018-07-12
LTE Module Series
Website: www.gosuncnwelink.com
E-mail: welink@gosuncn.com
AT Command Reference Guide of Module Product
ABOUT THIS DOCUMENT
A. Application Range
R&D personnel using LTE modules to make the second development
B. Reading Note
The symbols below are the reading notes you should pay attention on:
: Warning or Attention
: Note or Remark
APPLICATION PRODUCT
All Rights reserved, No Spreading without GOSUNCN Permission I
AT Command Reference Guide of Module Product
Add command of GPS in chapter 11
Add commands AT+ZSPWAKEUP,AT+ZWAKEUPNUM,AT+ZWAKEUPSMS ,
AT+ZBAND ,AT+ZGNMEA in chapter 14.
Update command of +ZCELLINFO,+ZADSET,+ZPAS, ZGRST,+ZCDS
Update command of +ZCELLINOF, +ZIPCLOSE, +CEREG,+ZADSET
Add command of +ZIPCREATE
Update command for GPIO function,+ZCDS,+ZBAND,+ZIPOPEN,+ZIPLISTEN,+CFUN,+CNMA,
+CNMI,+CCLK,&F
Add commands of +ZARFCN, +ZSRSP,+ZRSP,+ZSNTE,+CMUX, +ZIPCONTEXT,
$QCPDPP,+CGEQOSRDP,+CGEQOS
Add commands of FTP&HTTP
Update +ZGPIO ,+CLCK , +CFUN,+CPWD,+CNUM,+COPS,+ZBAND,+CMGC,+BAND command
Delete command of +CNMA
Update command +ZSWICH,+ZDNSGETIP,+ZIPCONTEXT,+CSMP,+CEREG,+ZSRSP,+CMGC,
+CPMS, +ZGPIO, GPS relative commands
Add command of +ZMONI, +ZCLRACQ
Add chapter of 2.2 Setting Commands Saving
Delete phonebook commands
Update the format of document
Update +ZIPCREATE, +ZDST, +ZGPSR ,+ZNVWRITE, +ZNVREAD,+ZBAND commands
Add +ZECMCALL command
Update the notes of +ZGRST and +ZGPSR commands
Add +ZADB
Update ATI ,+ZGFIXRATE commands
Add +ZGPORT, +ZLOCKCELL command
Delete +CGEQOSRDP command
REVISION HISTORY
All Rights reserved, No Spreading without GOSUNCN Permission II
AT Command Reference Guide of Module Product
Full attention must be given to driving at all times in order to reduce the risk of an accident. Using a
mobile while driving (even with a hands free kit) cause distraction and can lead to an accident. You must
comply with laws and regulations restricting the use of wireless devices while driving.
Switch off the cellular terminal or mobile before boarding an aircraft. Make sure it switched off. The
operation of wireless appliances in an aircraft is forbidden to prevent interference with communication
systems. Consult the airline staff about the use of wireless devices on boarding the aircraft, if your device
offers a Airplane Mode which must be enabled prior to boarding an aircraft.
Switch off your wireless device when in hospitals or clinics or other health care facilities. These
requests are designed to prevent possible interference with sensitive medical equipment.
GSM cellular terminals or mobiles operate over radio frequency signal and cellular network and
cannot be guaranteed to connect in all conditions, for example no mobile fee or an invalid SIM card. While
you are in this condition and need emergent help, please remember using emergency call. In order to make
or receive call, the cellular terminal or mobile must be switched on and in a service area with adequate
cellular signal strength.
Your cellular terminal or mobile contains a transmitter and receiver. When it is on, it receives and
transmits radio frequency energy. RF interference can occur if it is used close to TV set, radio, computer or
other electric equipment.
In locations with potentially explosive atmospheres, obey all posted signs to turn off wireless devices
such as your phone or other cellular terminals. Areas with potentially explosive atmospheres including
fuelling areas, below decks on boats, fuel or chemical transfer or storage facilities, areas where the air
contains chemicals or particles such as grain, dust or metal powders.
SAFETY INFORMATION
The following safety precautions must be observed during all phases of the operation, such as usage, service or repair of any
cellular terminal or mobile incorporating ME3630 module. Manufacturers of the cellular terminal should send the following safety
information to users and operating personnel and to incorporate these guidelines into all manuals supplied with the product. If not
so, GOSUNCN does not take on any liability for customer failure to comply with these precautions.
All Rights reserved, No Spreading without GOSUNCN Permission III
AT Command Reference Guide of Module Product
CONTENTS
ABOUT THIS DOCUMENT ................................................................................................................. I
APPLICATION PRODUCT ................................................................................................................... I
REVISION HISTORY ................................................................................................................... II
SAFETY INFORMATION ................................................................................................................. III
CONTENTS .................................................................................................................. IV
1. Introduction ................................................................................................................... 9
1.1. Scope .................................................................................................................................. 9
1.2. Audience ................................................................................................................................. 9
1.3. Document Organization ............................................................................................................. 9
2. Introduction to AT Commands ...................................................................................... 10
2.1. AT Command Syntax .............................................................................................................. 10
2.1.1. String Type Parameters ................................................................................................... 10
2.1.2. Command Lines ............................................................................................................. 10
2.1.3. Information Responses and Result Codes .......................................................................... 11
2.1.4. Command Response Time-Out ......................................................................................... 11
2.1.5. Command Issuing Timing ................................................................................................ 12
2.2. Setting Commands Saving ....................................................................................................... 12
2.3. AT Commands References ....................................................................................................... 13
2.4. ATI Request identification information ....................................................................................... 15
2.5. AT+GMI Request manufacturer identification ............................................................................. 15
2.6. AT+CGMI Request manufacturer identification ........................................................................... 15
2.7. AT+GMM Request model identification ...................................................................................... 16
2.8. AT+CGMM Request model identification .................................................................................... 16
2.9. AT+GMR Request revision identification .................................................................................... 16
2.10. AT+CGMR Request revision identification ................................................................................. 17
2.11. AT+GSN Request IMEI .......................................................................................................... 17
2.12. AT+CGSN Request IMEI ........................................................................................................ 18
2.13. AT+CIMI Request international mobile subscriber identity ......................................................... 18
2.14. AT+ZGETICCID Get the ICCID of (U)SIM ................................................................................. 18
2.15. AT+ZPCB Check PCB No. ....................................................................................................... 19
3. General Commands ...................................................................................................... 20
3.1. ATS5 Command Line Editing Character ..................................................................................... 20
All Rights reserved, No Spreading without GOSUNCN Permission IV
AT Command Reference Guide of Module Product
3.2. AT&F Set to Factory-defined Configuration ................................................................................ 20
3.3. AT&V Display Current Configuration .......................................................................................... 21
3.4. AT&W Store AT command Setting to User Defined Profile ............................................................ 21
3.5. ATZ Reset to default configuration ............................................................................................ 21
3.6. ATO Return to Online Data State .............................................................................................. 22
3.7. ATQ Result Code Suppression .................................................................................................. 22
3.8. ATE Command Echo ............................................................................................................... 23
3.9. ATV DCE Response Format ...................................................................................................... 23
3.10. AT+CFUN Set Phone Functionality .......................................................................................... 24
3.11. AT+CSCS Select TE Character Set .......................................................................................... 25
3.12. AT+CMEE Report Mobile Termination Error .............................................................................. 25
3.13. +CME ERROR ME Error Result Code ........................................................................................ 26
4. Serial Interface Control Commands .............................................................................. 29
4.1. AT&C Circuit 109 (Received line signal detector) behaviour.......................................................... 29
4.2. AT&D Circuit 108 (Data terminal ready) behaviour ..................................................................... 29
4.3. AT&S Set Data Set Ready (DSR) Line Mode ............................................................................... 30
4.4. AT+IFC DTE-DCE Local Flow Control(not support yet) ................................................................ 30
4.5. AT+IPR Fixed DTE Rate ........................................................................................................... 31
4.6. AT+ZUFLOW 4-wires UART flow control command ..................................................................... 32
4.7. AT+CMUX Enable CMUX .......................................................................................................... 32
5. SIM Related Commands ................................................................................................ 33
5.1. AT+CLCK Facility Lock ............................................................................................................ 33
5.2. AT+CPWD Change Password ................................................................................................... 34
5.3. AT+CPIN Enter PIN ................................................................................................................. 35
5.4. AT+CRSM Restricted SIM Access .............................................................................................. 36
5.5. AT+CNUM Subscriber Number ................................................................................................. 37
5.6. AT+ZPINPUK Check PIN and PUK retry times ............................................................................. 38
6. SMS Commands ............................................................................................................ 39
6.1. AT+CSMS Select Message Service ............................................................................................ 39
6.2. AT+CMGF Message Format ...................................................................................................... 40
6.3. AT+CSCA Service Centre Address ............................................................................................. 41
6.4. AT+CSMP Set Text Mode Parameters ........................................................................................ 41
6.5. AT+CSCB Select Cell Broadcast Message Types (Not support yet) ................................................ 43
6.6. AT+CSAS Save Settings .......................................................................................................... 43
6.7. AT+CRES Restore Settings ...................................................................................................... 44
6.8. AT+CNMI New Message Indications to TE .................................................................................. 44
6.9. AT+CMGL List Messages .......................................................................................................... 46
6.10. AT+CMGR Read Message ....................................................................................................... 47
6.11. AT+CMGS Send Message ....................................................................................................... 49
6.12. AT+CMSS Send Message from Storage .................................................................................... 50
6.13. AT+CMGW Write Message to Memory ..................................................................................... 50
All Rights reserved, No Spreading without GOSUNCN Permission V
AT Command Reference Guide of Module Product
6.14. AT+CMGD Delete Message ..................................................................................................... 51
6.15. AT+CMGC Send Command..................................................................................................... 52
6.16. AT+CMMS More Messages to Send.......................................................................................... 52
6.17. AT+CPMS Preferred Message Storage ..................................................................................... 53
6.18. +CMTI New Message Indications ............................................................................................ 54
6.19. AT+ZSPWAKEUP Enable/disable specified SMS remote wakeup function ...................................... 55
6.20. AT+ZWAKEUPSMS Set the specified SMS content used for remote wakeup .................................. 55
6.21. +CMS ERROR Message Service Failure Result Code ................................................................... 56
7. Network Service Commands ......................................................................................... 58
7.1. AT+CREG Network registration ................................................................................................ 58
7.2. AT+CEREG Network registration .............................................................................................. 59
7.3. AT+COPS Operator selection ................................................................................................... 60
7.4. AT+CSQ Signal quality ............................................................................................................ 61
7.5. AT+CPOL Preferred operator list ............................................................................................... 62
7.6. AT+COPN Read operator names ............................................................................................... 64
7.7. AT+CTZU Automatic Time Zone Update .................................................................................... 65
7.8. AT+CTZR Time Zone Reporting ................................................................................................ 65
7.9. AT+ZCELLINFO Request the information about serving cell ......................................................... 66
7.10. AT+ZLOCKCELL lock cell command ......................................................................................... 67
7.11. AT+ZSNT Configuration of Network Selection Mode .................................................................. 69
7.12. AT+ZSNTE Network Selection according to 2G/3G/4G ............................................................... 70
7.13. AT+ZPAS Check Module Status ............................................................................................... 71
7.14. AT^SYSINFO Request System INFO ........................................................................................ 71
7.15. AT+ZBAND Band lock ............................................................................................................ 73
7.16. AT+ZARFCN Return current ARFCN ........................................................................................ 75
7.17. AT+ZCDS -Query Serving Cell Information ............................................................................... 76
7.18. AT+ZSRSP Query RSRP,RSRQ,SINR of the main cell ................................................................. 77
7.19. AT+ZRSP Query RSRP,RSRQ,SINR of LTE neighbour cell ........................................................... 78
7.20. AT+CGEQOS Define EPS quality of service ............................................................................... 79
7.21. AT+ZMONI Get the information of main& neighbor cells ............................................................ 80
8. Packet Domain Commands ........................................................................................... 84
8.1. AT+CGDCONT Define PDP Context ........................................................................................... 84
8.2. AT+CGATT PS attach or detach ................................................................................................ 85
8.3. AT+CGACT PDP context activate or deactivate ........................................................................... 86
8.4. AT+CGPADDR Show PDP address ............................................................................................. 86
8.5. AT+CGEREP Packet Domain event reporting .............................................................................. 87
8.6. AT+CGSMS Select service for MO SMS messages ....................................................................... 88
8.7. AT$QCPDPP Set PDP Authentication parameters ......................................................................... 89
8.8. AT+ZECMCALL Make ECM data call ........................................................................................... 90
8.9. +ZECMCALL active report the state of auto-dial ......................................................................... 91
8.10. AT+ZNVWRITE Enable auto-dial function ................................................................................. 92
8.11. AT+ZNVREAD Query the state of auto-dial function .................................................................. 93
All Rights reserved, No Spreading without GOSUNCN Permission VI
AT Command Reference Guide of Module Product
8.12. AT+ZSDHCPLEASE Amend DHCP LEASE TIME .......................................................................... 94
9. GPS Relative Commands ............................................................................................... 95
9.1. AT+ZGINIT Initialization Location command .............................................................................. 95
9.2. AT+ZGMODE Set location mode ............................................................................................... 95
9.3. AT+ZGFIXRATE Set location mode choice when reset GPS .......................................................... 95
9.4. AT+ZGQOS Set QOS for location .............................................................................................. 96
9.5. AT+ZGURL Set URL of SUPL server .......................................................................................... 97
9.6. AT+ZGRUN Location mode choice ............................................................................................ 97
9.7. +ZGPSERROR Report error code ............................................................................................... 98
9.8. AT+ZGRST Reset GPS ............................................................................................................. 98
9.9. AT+ZGPSAPN Set AGPS APN .................................................................................................... 99
9.10. AT+ZGPORT Set GPS information report port. ........................................................................ 100
9.11. +ZGMEASURE Report satellites measurements ....................................................................... 101
9.12. +ZGPSR Report Location Data .............................................................................................. 102
9.13. AT+ZGPSR Enable/Disable +ZGPSR report ............................................................................. 103
9.14. +ZGPSEVENT Report location status event ............................................................................ 104
9.15. AT+ZGNMEA Set the reported NMEA format of GPS data ......................................................... 105
9.15.1. Syntax of NMEA .......................................................................................................... 108
9.15.2. Standard NMEA output sentence .................................................................................. 109
9.15.3. GGA sentence ............................................................................................................ 109
9.15.4. GSA sentence ............................................................................................................. 110
9.15.5. GSV sentence ............................................................................................................. 111
9.15.6. RMC sentence ............................................................................................................ 112
9.15.7. VTG sentence ............................................................................................................. 112
10. Hardware Relative Commands .................................................................................. 114
10.1. AT+CCLK Clock Management ............................................................................................... 114
10.2. AT+ZTURNOFF Turn Off the Modem ..................................................................................... 114
10.3. AT+ZRST RESET the Module ................................................................................................ 114
10.4. AT+ZGPIO GPIO Pins Set command ...................................................................................... 115
10.5. AT+ZADCx Read pin ADCx value .......................................................................................... 117
10.6. AT+ZSWITCH Switch the port of module in different operation systems .................................... 117
10.7. AT+ZADB Open/close ADB port ............................................................................................ 118
10.8. AT+ZADSET Port Switch between RNDIS/NDIS in Windows System ......................................... 119
10.9. AT+ZSDT Enable SIM card hot-plug function .......................................................................... 121
10.10. AT+ZCHIPTEMP Get the temperature of pmic, xo, pa ............................................................ 122
11. TCP/IP Relative Commands ...................................................................................... 123
11.1. AT+ZIPCFG Set and Query the params of PS Call ................................................................... 123
11.2. AT+ZIPCALL Start or End PS Call .......................................................................................... 123
11.3. AT+ZIPOPEN Establish TCP/UDP Connection .......................................................................... 124
11.4. AT+ZIPCLOSE Close TCP/UDP Connection ............................................................................. 125
11.5. AT+ZIPSEND TCP/UDP Send Data in ASCII format ................................................................. 126
All Rights reserved, No Spreading without GOSUNCN Permission VII
AT Command Reference Guide of Module Product
11.6. +ZIPRECV TCP/UDP Data Receive......................................................................................... 126
11.7. AT+ZIPSTAT Query Socket State .......................................................................................... 127
11.8. AT+ZIPSLCFG Set Parameters of TCP/UDP Server .................................................................. 127
11.9. AT+ZIPLISTEN Open/Close TCP/UDP Server .......................................................................... 128
11.10. AT+ZIPFRWL Set TCP/UDP Internal Firewall ........................................................................ 129
11.11. AT+ZIPSETRPT set the format of received data .................................................................... 130
11.12. AT+ZIPSENDRAW send raw data ........................................................................................ 131
11.13. AT+ZIPCREATE Data transparent transfer ............................................................................ 132
11.14. AT+ZDNSGETIP domain name resolution ............................................................................. 132
11.15. AT+ZIPCONTEXT Switch PDP context .................................................................................. 133
12. FTP Relative Commands ........................................................................................... 135
12.1. AT$ZPDPACT Activate/Deactivate PDP connection .................................................................. 135
12.2. AT$ZFTPCFG FTP Parameters Configuration ......................................................................... 135
12.3. AT$ZFTPSIZE Get the Size of FTP File ................................................................................... 136
12.4. AT$ZFTPGET File Download ................................................................................................. 136
12.5. AT$ZFTPPUT File Upload ...................................................................................................... 137
12.6. AT$ZFTPCLOSE Close FTP Service ......................................................................................... 138
12.7. FTP Example ...................................................................................................................... 138
13. HTTP Relative Commands ......................................................................................... 140
13.1. AT+ZHTTPURL Set URL of HTTP server ................................................................................. 140
13.2. AT+ZHTTPGET Send GET Request to HTTP Server .................................................................. 140
13.3. AT+ZHTTPPOST Send POST Request to HTTP Server .............................................................. 140
14. Extended commands ................................................................................................ 142
14.1. AT+ZCLRACQ Clear the historical earfcn/uarfcn ...................................................................... 142
All Rights reserved, No Spreading without GOSUNCN Permission VIII
AT Command Reference Guide of Module Product
1. INTRODUCTION
1.1. Scope
This document is aimed at providing a detailed specification and a comprehensive listing as a reference for the whole set of AT
command.
Note: All the AT commands follow the Related Documents(3GPP (R99) TS27.005 and TS27.007) is as below:
• 3GPP TS 27.007 specification and rules
http://www.3gpp.org/ftp/Specs/archive/27_series/27.007/
• 3GPP TS 27.005 specification and rules
http://www.3gpp.org/ftp/Specs/archive/27_series/27.005/
1.2. Audience
Readers of this document should be familiar with GOSUNCN modules and their ease of controlling by means of AT Commands.
1.3. Document Organization
This document contains the following chapters:
Chapter 1: “Introduction” provides a scope for this document, target audience, contact and support information, and text
conventions.
Chapter 2: Introduction to AT Commands
Chapter 3~last: “AT Commands” The core of this reference guides.
All Rights reserved, No Spreading without GOSUNCN Permission 9
AT Command Reference Guide of Module Product
2. INTRODUCTION TO AT COMMANDS
The following syntactical definitions apply:
<CR> Carriage return character is the command line and result code terminator character, which value, in decimal ASCII
between 0 and 255, is specified within parameter S3. The default value is 13.
<LF> Linefeed character is the character recognized as line feed character. Its value, in decimal ASCII between 0 and 255, is
specified within parameter S4. The default value is 10. The line feed character is output after carriage return character if verbose
result codes are used (V1 option used) otherwise, if numeric format result codes are used (V0 option used) it will not appear in the
result codes.
<...> Name enclosed in angle brackets is a syntactical element. They do not appear in the command line.
[...] Optional subparameter of a command or an optional part of TA information response is enclosed in square brackets.
Brackets themselves do not appear in the command line. When subparameter is not given in AT commands which have a Read
command, new value equals to its previous value. In AT commands which do not store the values of any of their subparameters, and
so have not a Read command, which are called action type commands, action should be done on the basis of the recommended
default setting of the subparameter.
2.1. AT Command Syntax
The syntax rules followed by GOSUNCN implementation of GSM/WCDMA/LTE commands are very similar to those of standard
basic and extended AT commands.
There are two types of extended command:
- Parameter type commands. This type of commands may be “set” (to store a value or values for later use), “read” (to
determine the current value or values stored), or “test” (to determine ranges of values supported). Each of them has a “test”
command (trailing =?) to give information about the type of its subparameters; they also have a “read” command (trailing?) to check
the current values of subparameters.
- Action type commands. This type of command may be “executed” or “tested”.
NOTE: The response to the Test Command (trailing =?) may be changed in the future by GOSUNCN to allow the description of new
values/functionalities.
If all the subparameters of a parameter type command +CMD are optional, issuing AT+CMD=<CR> causes the OK result code to
be returned and the previous values of the omitted subparameters to be retained.
2.1.1. STRING TYPE PARAMETERS
A string either enclosed between quotes or not, is considered to be a valid string type parameter input. According to V25.ter,
space characters are ignored on the command line and may be used freely for formatting purposes, unless they are embedded in
numeric or quoted string constants; therefore a string containing a space character has to be enclosed between quotes to be
considered a valid string type parameter (e.g. typing AT+COPS=1,0,”A1” is the same as typing AT+COPS=1,0,A1; typing
AT+COPS=1,0,”A BB” is different from typing AT+COPS=1,0,A BB).
A small set of commands requires always writing the input string parameters within quotes: this is explicitly reported in the
specific descriptions.
2.1.2. COMMAND LINES
A command line is made up of three elements: the prefix, the body and the termination character. The command line prefix
consists of the characters “AT” or “at”, or, to repeat the execution of the previous command line, the characters “A/” or “a/”. The
termination character may be selected by a user option (parameter S3), the default being <CR>.
The basic structures of the command line are:
All Rights reserved, No Spreading without GOSUNCN Permission 10
AT Command Reference Guide of Module Product
ATCMD1<CR> where AT is the command line prefix, CMD1 is the body of a basic command (nb: the name of the command
never begins with the character “+”) and <CR> is the command line terminator character
ATCMD2=10<CR> where 10 is a subparameter
AT+CMD1; +CMD2=, ,10<CR> These are two examples of extended commands (nb: the name of the command always begins
with the character “+”). They are delimited with semicolon. In the second command the subparameter is omitted.
+CMD1?<CR> This is a Read command for checking current subparameter values
+CMD1=?<CR> This is a test command for checking possible subparameter values
These commands might be performed in a single command line as shown below:
ATCMD1 CMD2=10+CMD1; +CMD2=, ,10;+CMD1?;+CMD1=?<CR> anyway it is always preferable to separate into different
command lines the basic commands and the extended commands. Furthermore it is suggested to avoid placing several action
commands in the same command line, because if one of them fails, then an error message is received but it is not possible to argue
which one of them has failed the execution.
If command V1 is enabled (verbose responses codes) and all commands in a command line has been performed successfully,
result code <CR><LF>OK<CR><LF> is sent from the TA to the TE, if subparameter values of a command are not accepted by the TA or
command itself is invalid, or command cannot be performed for some reason, result code <CR><LF>ERROR<CR><LF> is sent and no
subsequent commands in the command line are processed. If command V0 is enabled (numeric responses codes), and all commands
in a command line has been performed successfully, result code 0<CR> is sent from the TA to the TE, if subparameter values of a
command are not accepted by the TA or command itself is invalid, or command cannot be performed for some reason, result code
4<CR> and no subsequent commands in the command line are processed.
In case of errors depending on ME operation, ERROR (or 4) response may be replaced by +CME ERROR: <err> or +CMS ERROR:
<err>.
NOTE: The command line buffer accepts a maximum of 80 characters. If this number is exceeded none of the commands will be executed and
TA returns ERROR.
2.1.3. INFORMATION RESPONSES AND RESULT CODES
The TA response, in case of verbose response format enabled, for the previous examples command line could be as shown
below:
Information response to +CMD1? <CR><LF>+CMD1:2,1,10<CR><LF>
Information response to +CMD1=? <CR><LF>+CMD1: (0-2),(0,1),(0-15)<CR><LF>
Final result code <CR><LF>OK<CR><LF>
Moreover there are other two types of result codes:
result codes that inform about progress of TA operation (e.g. connection establishment CONNECT)
result codes that indicate occurrence of an event not directly associated with issuance of a command from TE
2.1.4. COMMAND RESPONSE TIME-OUT
Every command issued to the GOSUNCN modules returns a result response if response codes are enabled (default). The time
needed to process the given command and return the response varies, depending on the command type. Commands that do not
interact with the SIM or the network, and involve only internal set up settings or readings, have an immediate response, depending
on SIM configuration(e.g., number of contacts stored in the phonebook, number of stored SMS), or on the network the command
may interact with.
In the table below are listed only the commands whose interaction with the SIM or the network could lead to long response
timings. When not otherwise specified, timing is referred to set command.
For SMS writing and reading related commands, timing is referred to commands issued after phonebook sorting is completed.
All Rights reserved, No Spreading without GOSUNCN Permission 11
AT Command Reference Guide of Module Product
Estimated maximum time to get response(Seconds)
180 after CTRL-Z; 1 to get ‘>’ prompt
180 after CTRL-Z; 1 to get ‘>’ prompt
5 after CTRL-Z; 1 to get ‘>’ prompt
5 for single SMS deletion, and 25 for 50 SMS deletion
take effect once setting?(Y/N)
N:take effect after restarting
Y:take effect once setting
Save after restart(Y/N/NA)
NA:Not applicable
Y:Save after restart
N: Parameter settings in the command are
not saved after the module is powered off.
For DTMF sending and dialing commands timing is referred to module registered on network (“AT+CREG?” answer is “+CREG: 0,
1” or “+CREG: 0, 5”).
2.1.5. COMMAND ISSUING TIMING
The chain Command -> Response shall always be respected and a new command must not be issued before the module has
terminated all the sending of its response result code (whatever it may be).
This applies especially to applications that “sense” the OK text and therefore may send the next command before the complete
code <CR><LF>OK<CR><LF> is sent by the module. It is advisable anyway to wait for at least 20ms between the end of the reception
of the response and the issue of the next AT command. If the response codes are disabled and therefore the module does not report
any response to the command, then at least the 20ms pause time shall be respected.
During command mode, due to hardware limitations, under severe CPU load the serial port can lose some characters if placed
in auto-bauding at high speeds. Therefore, if you encounter this problem fix the baud rate with +IPR command.
2.2. Setting Commands Saving
The table below list all the set command,which take effect after restart or once setting, and which is still take effect after
restart.
All Rights reserved, No Spreading without GOSUNCN Permission 12
AT Command Reference Guide of Module Product
2.3. AT Commands References
All Rights reserved, No Spreading without GOSUNCN Permission 13
“3GPP TS 27.005 specification”
“3GPP TS 27.007 specification”
AT Command Reference Guide of Module Product
“ITU-T V.25ter specification”
All Rights reserved, No Spreading without GOSUNCN Permission 14
AT Command Reference Guide of Module Product
<CR><LF><manufacturer>
<CR><LF><model>
<CR><LF><revision>
<CR><LF><SVN>
<CR><LF><IMEI>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF><manufacturer><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF><manufacturer><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
Identification Commands
2.4. ATI Request identification information
This command causes the DCE to transmit one or more lines of information text, such as manufacturer, product name,
software revision, IMEI etc., determined by the manufacturer, followed by a final result code.
Parameter
<manufacturer>:manufacturer
<model>:Module name
<revision>: Firmware information
<SVN>:software version number
<IMEI>:IMEI
2.5. AT+GMI Request manufacturer identification
This command causes the DCE to transmit one or more lines of information text, determined by the manufacturer, which is
intended to permit the user of the DCE to identify the manufacturer.
Parameter
<manufacturer>: the total number of characters, including line terminators, in the information text shall not exceed 2048
characters.
2.6. AT+CGMI Request manufacturer identification
Execution command returns the device manufacturer identification code without command echo.
All Rights reserved, No Spreading without GOSUNCN Permission 15
AT Command Reference Guide of Module Product
<CR><LF><model><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF><model><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter
<manufacturer>: the total number of characters, including line terminators, in the information text shall not exceed 2048
characters.
2.7. AT+GMM Request model identification
This command causes the DCE to transmit one or more lines of information text, determined by the manufacturer, which is
intended to permit the user of the DCE to identify the specific model of device.
Parameter
<model>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.
Example
2.8. AT+CGMM Request model identification
Execution command returns the device model identification code without command echo.
Parameter
<model>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.
Example
2.9. AT+GMR Request revision identification
This command causes the DCE to transmit one or more lines of information text, determined by the manufacturer, which is
intended to permit the user of the DCE to identify the version, revision level or date, or other pertinent information of the device.
All Rights reserved, No Spreading without GOSUNCN Permission 16
AT Command Reference Guide of Module Product
<CR><LF><revision><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+GMR
ME3630U1AV1.0B04
OK
<CR><LF><revision><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+CGMR
ME3630U1AV1.0B04
OK
<CR><LF><sn><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter
<revision>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.
Example
2.10. AT+CGMR Request revision identification
Execution command returns device software revision number without command echo.
Parameter
<revision>: the total number of characters, including line terminators, in the information text shall not exceed 2048 characters.
Example
2.11. AT+GSN Request IMEI
This command is used to request IMEI
Parameter
<sn>: IMEI (International Mobile Equipment Identity)
Example
All Rights reserved, No Spreading without GOSUNCN Permission 17
AT Command Reference Guide of Module Product
<CR><LF><sn><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+CGSN
356118040008583 // (or 0xA000001FA43F9C0)
OK
<CR><LF><IMSI><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+CIMI=?
AT+CIMI
460199100106272
OK
<CR><LF>+ZGETICCID: <iccid><CR><LF>
<CR><LF>OK<CR><LF>
2.12. AT+CGSN Request IMEI
This command is used to request IMEI
.
Parameter
<sn>: IMEI (International Mobile Equipment Identity)
Example
2.13. AT+CIMI Request international mobile subscriber identity
This command is used to request IMSI.
Parameter
<IMSI>: International Mobile Subscriber Identity (string without double quotes)
Example
2.14. AT+ZGETICCID Get the ICCID of (U)SIM
This command is used to request the ICCID of (U)SIM.
All Rights reserved, No Spreading without GOSUNCN Permission 18
AT Command Reference Guide of Module Product
AT+ZGETICCID
+ZGETICCID: 86860460020123456381
OK
<CR><LF>+ZPCB: <PCB version><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+ZPCB?
+ZPCB: ME3630MB_B
OK
Parameter
<iccid>: ICCID of (U)SIM
Example
2.15. AT+ZPCB Check PCB No.
This command is used to check PCB No.
Parameter
<PCB version>: PCB No., the string shall not exceed 64 characters
Example
All Rights reserved, No Spreading without GOSUNCN Permission 19
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF><val><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<val> = 1, AT command default value
<val> = 0, AT command default value
<val> = 1, AT command default value
<n> = 1, AT command default value
<n> = 2, AT command default value
<n> = 0, AT command default value
<2> [,<2>] , AT command default value
<n> = 0 , AT command default value
<n> = 0 , AT command default value
<n> = 0 , AT command default value
3. GENERAL COMMANDS
3.1. ATS5 Command Line Editing Character
Set command sets the value of the character recognized by the device as a request to delete from the command line the
immediately preceding character.
Parameter
<val>:
0 to 127 Set command line editing character to this value, factory default value is 8 (ASCII BS). The value can be available
from the command AT&V.
Example
3.2. AT&F Set to Factory-defined Configuration
This command instructs the DCE to set all parameters to default values specified by the manufacturer, which may take into
consideration hardware configuration switches and other manufacturer-defined criteria.
For LTE, the execution of AT&F commands will restored all AT commands, includes 3GPP AT commands and GOSUNCN defined
AT commands, to the default value predefined in AT command table.
AT Command Settings storable with AT&F:
All Rights reserved, No Spreading without GOSUNCN Permission 20
AT Command Reference Guide of Module Product
<DCE_by_DTE> [,<DTE_by_DCE>]
Parameter
<n>:
0 Set parameters to factory defaults. if parameter <n> is omitted, the command has the same behavior as AT&F0
Example
3.3. AT&V Display Current Configuration
This command instructs the DCE to get all parameters values specified by the manufacturer, and it will returns the setting of
several AT command parameters applicable to the current operating mode, including the single-letter AT command parameters
which are not readable otherwise.
Example
3.4. AT&W Store AT command Setting to User Defined Profile
This command instructs the modem to store the current AT command settings to a user defined profile in non-volatile memory.
The AT command settings will automatically be restored from the user defined profile during power-up or if ATZ is used. AT&F
restore
the user profile can be found.
For LTE module, the execution of AT&W command will store the current value of the following AT commands to the NV only.
Example
3.5. ATZ Reset to default configuration
This command instructs the DCE to set all parameters to their factory defaults as specified by the manufacturer. This may
include taking into consideration the settings of hardware configuration switches or non-volatile parameter storage (if implemented).
If the DCE is connected to the line, it is disconnected from the line, terminating any call in progress.
All Rights reserved, No Spreading without GOSUNCN Permission 21
AT Command Reference Guide of Module Product
<CR><LF>CONNECT<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter
For LTE Module, the execution of ATZ command will restore all AT commands to the default value predefined in AT command
table except the following AT commands. The following AT commands will be got from the NV storage value set by AT&W.
AT Command Settings storable with ATZ:
NOTE: if parameter <val> is omitted, the command has the same behavior as ATZ0. The define value is 0, and the value can be available from
the command AT&V or AT\S.
Example
3.6. ATO Return to Online Data State
Causes the DCE to return to online data state and issue a CONNECT or CONNECT<text> result code.
Parameter
<val>: 0 Return to online data state from online command state. Also used to retrain after a modem-on-hold transaction or to
reconnect to a modem that has been placed in an on-hold state per V.92.
Example
3.7. ATQ Result Code Suppression
Set command enables or disables the result codes. Information text transmitted in response to commands is not affected by
the setting of this parameter.
All Rights reserved, No Spreading without GOSUNCN Permission 22
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
ATE0
OK
//Input AT, but the device disable command echo
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter
<val>:
0 DCE transmits result codes.
1 result codes are suppressed and not transmitted.
NOTE: the define value is 0, ATQ means ATQ0, and the value can be available from the command AT&V.
Example
3.8. ATE Command Echo
The setting of this parameter enables/disables the command echo.
Parameter
<val>:
0 DCE disables command echo. (factory default)
1 DCE enables command echo , hence command sent to the device are echoed back to the DTE.
NOTE: if parameter <val> is omitted, the command has the same behavior as ATE1.
Example
3.9. ATV DCE Response Format
The setting of this parameter determines the contents of the header and trailer transmitted with result codes and information
responses. It also determines whether result codes are transmitted in a numeric form or an alphabetic (or "verbose") form. Th e text
portion of information responses is not affected by this setting.
Parameter
All Rights reserved, No Spreading without GOSUNCN Permission 23
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CFUN: <fun><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CFUN: (list of supported <fun>s), (list of supported <rst>s) <CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<val>:
0 DCE transmits limited headers and trailers and numeric text.
1 DCE transmits full headers and trailers and verbose response text.
NOTE: if parameter <val> is omitted, the command has the same behavior as ATV0. The define value is 1, and the value can be available from
the command AT&V or AT\S.
3.10. AT+CFUN Set Phone Functionality
Set command selects the level of functionality <fun> in the MT. Level "full functionality" is where the highest level of power is
drawn. "Minimum functionality" is where minimum power is drawn. Level of functionality between these may also be specified by
manufacturers. When supported by manufacturers, MT resetting with <rst> parameter may be utilized.
NOTE: issuing AT+CFUN=4[,0] actually causes the module to perform either a network deregistration and a SIM deactivation.
Test command returns values supported as a compound value.
Parameter
<fun>:
0 minimum functionality (MT before setting must not 7)
1 full functionality (MT before setting must not 7) (factory default)
4 disable phone both transmit and receive RF circuits (MT before setting must not 7)
5 Factory test mode
6 Reset module
7 Offline Mode,in this status, the NV is lost, and the module can’t register to network,we recommend to restore the NV.
8 module enter sleep mode, no USB interface enumerated(only supported by ME3630-J2A)
<rst>:
0 no need to reset the module to make <fun> effect.
1 need to reset the module to make <fun> effect.
NOTE: This shall be always default 0 when <rst> is not given
Example
All Rights reserved, No Spreading without GOSUNCN Permission 24
AT Command Reference Guide of Module Product
<CR><LF>+CSCS: <chset><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CSCS: (list of supported <chset>s)<CR><LF>
<CR><LF>OK<CR><LF>
AT+CSCS?
+CSCS: "IRA"
OK
AT+CSCS=?
+CSCS: ("IRA",”GSM”,"UCS2")
OK
3.11. AT+CSCS Select TE Character Set
Set command informs TA which character set <chset> is used by the TE. TA is then able to convert character strings correctly
between TE and MT character sets.
When TA-TE interface is set to 8-bit operation and used TE alphabet is 7-bit, the highest bit shall be set to zero.
NOTE 1 : It is manufacturer specific how the internal alphabet of MT is converted to/from the TE alphabet.
Read command shows current setting and test command displays conversion schemes implemented in the TA.
Parameter
<chset>: (conversion schemes not listed here can be defined by manufacturers):
"GSM" GSM 7 bit default alphabet (3GPP TS 23.038); this setting causes easily software flow control (XON/XOFF) problems
NOTE 2: If MT is using GSM 7 bit default alphabet, its characters shall be padded with 8th bit (zero) before converting them to hexadecimal
numbers (i.e. no SMS-style packing of 7-bit alphabet).
"IRA" international reference alphabet (ITU-T T.50 )
"UCS2" 16-bit universal multiple-octet coded character set (ISO/IEC10646); UCS2 character strings are converted to
hexadecimal numbers from 0000 to FFFF; e.g. "004100620063" equals three 16-bit characters with decimal values 65, 98 and 99
Example
3.12. AT+CMEE Report Mobile Termination Error
Set command disables or enables the use of result code +CME ERROR: <err> as an indication of an error relating to the
functionality of the MT. When enabled, MT related errors cause +CME ERROR: <err> final result code instead of the regular ERROR
final result code. ERROR is returned normally when error is related to syntax, invalid parameters, or TA functionality.
All Rights reserved, No Spreading without GOSUNCN Permission 25
AT Command Reference Guide of Module Product
<CR><LF>+CMEE: <n><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CMEE: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
AT+CMEE=0 (+CME ERROR shall not be used)
OK
AT+CGMI
ERROR
AT+CMEE=1 (use numeric <err>)
OK
AT+CGMI
+CME ERROR: 1
AT+CMEE=2 (use verbose <err>)
OK
AT+CGMI
+CME ERROR: no connection to phone
<CR><LF>+CME ERROR: <err><CR><LF>
phone-adaptor link reserved
Read command returns the current value of subparameter <n>.
Test command returns values supported as a compound value.
Parameter
<n>:
0 disable +CME ERROR: <err> result code and use ERROR instead (default value)
1 enable +CME ERROR: <err> result code and use numeric <err> values (refer subclause 3.1.2)
2 enable +CME ERROR: <err> result code and use verbose <err> values (refer subclause 3.1.2)
Example
3.13. +CME ERROR ME Error Result Code
This is NOT a command, it is the error response to +Cxxx 3gpp TS 27.007 commands.
Parameter
<err> - error code can be either numeric or verbose (see +CMEE).
The possible values of <err> are reported in the table:
All Rights reserved, No Spreading without GOSUNCN Permission 26
AT Command Reference Guide of Module Product
Invalid characters in text string
Invalid characters in dial string
Network not allowed -emergency calls only
Network personalization PIN required
Network personalization PUK required
Network subset personalization PIN required
Network subset personalization PUK required
Service provider personalization PIN required
Service provider personalization PUK required
Corporate personalization PIN required
corporate personalization PUK required
Hidden key required (NOTE: This key is required when accessing hidden phonebook entries.)
Errors related to a failure to perform an Attach
All Rights reserved, No Spreading without GOSUNCN Permission 27
AT Command Reference Guide of Module Product
GPRS services not allowed (#7)
Location area not allowed (#12)
Roaming not allowed in this location area (#13)
Errors related to a failure to Activate a Context
service option not supported (#32)
requested service option not subscribed (#33)
service option temporarily out of order (#34)
PDP authentication failure
VBS / VGCS and eMLPP -related errors
VBS/VGCS not supported by the network
No service subscription on SIM
No subscription for group ID
Group Id not activated on SIM
VBS/VGCS call already present
No access rights for SIM file
No subscription for priority
operation not applicable or not possible
All Rights reserved, No Spreading without GOSUNCN Permission 28
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
4. SERIAL INTERFACE CONTROL COMMANDS
4.1. AT&C Circuit 109 (Received line signal detector) behaviour
Set command controls the RS232 DCD output behavior. This parameter determines how the state of circuit 109 relates to the
detection of received line signal from the distant end. Changing the parameter will take effect immediately in both the command
and online command states.
In &C1 mode of operation, DCD (circuit 109) is not off until all data previously received from the remote DCE is delivered to the
local DTE. However, such buffered data shall be discarded and DCD (circuit 109) turned off if the DTE turns off circuit 108 (if &D1 or
&D2 is set).
Parameter
<n>:
0 The DCE always presents the ON condition on DCD (circuit 109).
1 DCD (Circuit 109) changes in accordance with the carrier detect status. DCD signal is high on the data mode;
2 DCD signal is low for the first 1 seconds only with the data disconnected.
NOTE: the define value is AT&C0; Different with the document. And the value can be available from the command AT&V.
Example
4.2. AT&D Circuit 108 (Data terminal ready) behaviour
This parameter determines how the DCE responds to the RS232 DTR transition during online data state.
Parameter
<n>:
0 DCE ignores DTR transitions.
1 Upon an on-to-off transition of circuit 108/2, the DCE enters online command state and issues an OK result code; the call
remains connected.
2 Upon an on-to-off transition of circuit 108/2, the DCE instructs the underlying DCE to perform an orderly clear down of
the call. The DCE disconnects from the line. Automatic answer is disabled while DTR (circuit 108/2) remains off.
NOTE: if parameter is omitted, the command has the same behavior as AT&D2. And the value can be available from the command AT&V.
Example
All Rights reserved, No Spreading without GOSUNCN Permission 29