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, targe t 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
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+IFC=[<DCE_by_DTE> [,<DTE_by_DCE>]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+IFC: <DCE_by_DTE>,<DTE_by_DCE><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+IFC: (list of supported <DCE_by_DTE> values),(list of supported
<DTE_by_DCE> values) <CR><LF>
<CR><LF>OK<CR><LF>
DC1/DC3 on circuit 103; do not pass DC1/DC3 characters to the remote DCE
Circuit 133 (Ready for Receiving)
DC1/DC3 on circuit 103 with DC1/DC3 characters being passed through to the remote DCE in
addition to being acted upon for local flow control
Reserved for future standardization
4.3. AT&S Set Data Set Ready (DSR) Line Mode
Set command controls the RS232 DSR pin behavior.
Parameter
<n>:
0 - always High
1 - High when connected
NOTE: if parameter is omitted, the command has the same behavior as AT&S0. And the value can be available from the command AT&V.
Example
4.4. AT+IFC DTE-DCE Local Flow Control(not support yet)
This set command is used to control the operation of local flow control between the DTE and DCE during the data state. It
accepts two numeric subparameters:
<DCE_by_DTE>, which specifies the method to be used by the DTE to control the flow of received data from the DCE;
<DTE_by_DCE>, which specifies the method to be used by the DCE to control the flow of transmitted data from the DTE.
Parameter
All Rights reserved, No Spreading without GOSUNCN Permission 30
AT Command Reference Guide of Module Product
Reserved for manufacturer-specific use
Circuit 106 (Clear to Send/Ready for Sending)
Reserved for future standardization
Reserved for manufacturer-specific use
NOTE: DC1 is IA5 1/1; DC3 is IA5 1/3.
AT+IFC=?
+IFC: (0-3),(0-2)
OK
<CR><LF>+IPR: <rate><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+IPR:(list of supported auto detectable rate values)[,(list of fixed-only rate
<CR><LF>
<CR><LF>OK<CR><LF>
AT+IPR?
+IPR: 115200
OK
AT+IPR=?
NOTE: the value can be available from the command AT&V. AT command default value is <2> [,<2>]
Example
4.5. AT+IPR Fixed DTE Rate
Set command specifies the data rate at which the DCE will accept commands, in addition to 1200 bit/s or 9600 bit/s. It may be
used to select operation at rates at which the DCE is not capable of automatically detecting the data rate being used by the DTE.
Specifying a value of 0 disables the function and allows operation only at rates automatically detectable by the DCE. The specified
rate takes effect following the issuance of any result code(s) associated with the current command line.
The rate specified does not apply in online data state if direct mode of operation is selected.
Parameter
The<rate>value specified should be the rate in bits per second at which the DTE-DCE interface should operate, e.g., "19200" or
"115200".
Note: The +IPR parameter should permit the setting of any rate supported by the DCE during online operation. Rates which include a
non-integral number of bits per second should be truncated to the next lower integer (e.g., 134.5 bit/s should be specified as 134; 45.45 bit/s
should be specified as 45).
Example
All Rights reserved, No Spreading without GOSUNCN Permission 31
AT Command Reference Guide of Module Product
+IPR:(1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600,1000000,1500000,2000000,2500000,3000000
,3500000)
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+ERROR<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF> ERROR <CR><LF>
<CR><LF>+CMUX: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
4.6. AT+ZUFLOW 4-wires UART flow control command
4-wires UART flow control command.
Parameter
< flag>:
1 Enable 4-wires UART flow control command
0(default) Disable 4-wires UART flow control command
4.7. AT+CMUX Enable CMUX
This command is used to enable CMUX function, there is no need to disable CMUX. When you close CMUX in MCU, the module
will exit CMUX automatically.
Parameter
<mode> (multiplexer Transparency Mechanism)
0 Enable CMUX
Example
All Rights reserved, No Spreading without GOSUNCN Permission 32
AT Command Reference Guide of Module Product
+CLCK=<fac>,<mode>[,<passwd>[,<class>]]
<CR><LF>+CME ERROR: <err><CR><LF>
or
when <mode>=2 and command successful:
<CR><LF>+CLCK: <status>[,<class1><CR><LF>
<CR><LF> [+CLCK: <status>,<class2><CR><LF>
[...]]
<CR><LF>OK<CR><LF>
Or
<CR><LF>OK<CR><LF>
<CR><LF>+CLCK: (list of supported <fac>s) <CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
5. SIM RELATED COMMANDS
5.1. AT+CLCK Facility Lock
Execute command is used to lock, unlock or interrogate a MT or a network facility <fac>. Password is normally needed to do
such actions. When querying the status of a network service (<mode>=2) the response line for 'not active' case (<status>=0) should
be returned only if service is not active for any <class>. This command should be abortable when network facilities are set or
interrogated.
Call barring facilities are based on GSM/UMTS supplementary services (refer 3GPP TS 22.088).
Test command returns facility values supported as a compound value.
Parameter
<fac> values reserved by the present document:
"AB" All Barring services
"AC" All inComing barring services
"AG" All outGoing barring services
"AI" BAIC (Barr All Incoming Calls)
"AO" BAOC (Barr All Outgoing Calls)
"IR" BIC Roam (Barr Incoming Calls when Roaming outside the home country)
"OI" BOIC (Barr Outgoing International Calls)
"OX" BOIC exHC (Barr Outgoing International Calls except to Home Country)
"SC" SIM (lock SIM/UICC card) (SIM/UICC asks password in MT power-up and when this lock command issued)
“FD” SIM card or active application in the UICC (GSM or USIM) fixed dialing memory feature (if PIN2 authentication has not
been done during the current session, PIN2 is required as <passwd>).
"PN" Network Personalization
"PU" network sUbset Personalization
"PP" service Provider Personalization
"PC" Corporate Personalization
"PF" lock Phone to the very First inserted SIM/UICC card
NOTE: The parameters of "PN", "PU", "PP", "PC", "PS" and so on need the support of network service provide, so the setting
All Rights reserved, No Spreading without GOSUNCN Permission 33
AT Command Reference Guide of Module Product
AT+CLCK=?
+CLCK: ("AB","AC","AG","AI","AO","IR","OI","OX","SC","FD","PN","PU","PP","PC","PF")
OK
AT+CLCK="SC",1,"1234" //lock the SIM card
OK
AT+CLCK="SC",0,"1234"
OK
+CPWD=<fac>,<oldpwd>,<newpwd>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CPWD: list of supported (<fac>,<pwdlength>)s<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
command may return ERROR.
<mode>: defines the operation to be done on the facility
0 unlock
1 lock
2 query status
<status>: the current status of the facility
0 not active
1 active
<passwd>: string type; shall be the same as password specified for the facility from the MT user interface or with command
Change Password +CPWD
<class> is a sum of integers each representing a class of information:
2 data (refers to all bearer services; with <mode>=2 this may refer only to some bearer service if TA does not support
values 16, 32, 64 and 128)
8 short message service
16 data circuit sync
32 data circuit async
64 dedicated packet access
128 dedicated PAD access
Example
5.2. AT+CPWD Change Password
Execution command sets a new password for the facility lock function defined by command Facility Lock +CLCK.
Test command returns a list of pairs which present the available facilities and the maximum length of their password.
Parameter
<fac>:
"P2" SIM PIN2
Refer to command Facility Lock +CLCK for other values
All Rights reserved, No Spreading without GOSUNCN Permission 34
AT Command Reference Guide of Module Product
AT+CPWD=?
+CPWD:("AB",4),("AC",4),("AG",4),("AI",4),("AO",4),("IR",4),("OI",4),("OX",4),("SC",8),("P2",8)
OK
AT+CPWD="SC","1234","4321"
OK
AT+CPWD="SC","4321","12341234"
OK
AT+CPWD="SC","4321","1234"
+CME ERROR: incorrect password
AT+CPWD="SC","12341234","1234"
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CPIN: <code><CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<oldpwd>, <newpwd>: string type; <oldpwd> shall be the same as password specified for the facility from the MT user
interface or with command Change Password +CPWD and <newpwd> is the new password; maximum length of password can be
determined with <pwdlength>
<pwdlength>: integer type maximum length of the password for the facility
Example
5.3. AT+CPIN Enter PIN
Set command sends to the MT a password which is necessary before it can be operated (SIM PIN, SIM PUK, PH-SIM PIN, etc.). If
the PIN is to be entered twice, the TA shall automatically repeat the PIN. If no PIN request is pending, no action is taken towards MT
and an error message, +CME ERROR, is returned to TE.
If the PIN required is SIM PUK or SIM PUK2, the second pin is required. This second pin, <newpin>, is used to replace the old pin
in the active application in the UICC (GSM or USIM) or SIM card.
Read command returns an alphanumeric string indicating whether some password is required or not.
Parameter
<pin>, <newpin>: string type values
<code> values reserved by the present document:
READY MT is not pending for any password
SIM PIN MT is waiting UICC/SIM PIN to be given
SIM PUK MT is waiting UICC/SIM PUK to be given
PH-SIM PIN MT is waiting phone-to-SIM/UICC card password to be given
PH-FSIM PIN MT is waiting phone-to-very first SIM/UICC card password to be given
PH-FSIM PUK MT is waiting phone-to-very first SIM/UICC card unblocking password to be given
All Rights reserved, No Spreading without GOSUNCN Permission 35
AT Command Reference Guide of Module Product
+CRSM=<command>[,<fileid>
[,<P1>,<P2>,<P3>[,<data>]]]
<CR><LF>+CRSM: <sw1>,<sw2>[,<response>]<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
SIM PIN2 MT is waiting active application in the UICC (GSM or USIM) or SIM card PIN2 to be given (this <code> is
recommended to be returned only when the last executed command resulted in PIN2 authentication failure (i.e. +CME ERROR: 17); if
PIN2 is not entered right after the failure, it is recommended that MT does not block its operation)
SIM PUK2 MT is waiting active application in the UICC (GSM or USIM) or SIM card PUK2 to be given (this <code> is
recommended to be returned only when the last executed command resulted in PUK2 authentication failure (i.e. +CME ERROR: 18);
if PUK2 and new PIN2 are not entered right after the failure, it is recommended that MT does not block its operation)
PH-NET PIN MT is waiting network personalization password to be given
PH-NET PUK MT is waiting network personalization unblocking password to be given
PH-NETSUB PIN MT is waiting network subset personalization password to be given
PH-NETSUB PUK MT is waiting network subset personalization unblocking password to be given
PH-SP PIN MT is waiting service provider personalization password to be given
PH-SP PUK MT is waiting service provider personalization unblocking password to be given
PH-CORP PIN MT is waiting corporate personalization password to be given
PH-CORP PUK MT is waiting corporate personalization unblocking password to be given
Example
5.4. AT+CRSM Restricted SIM Access
By using this command instead of Generic SIM Access +CSIM TE application has easier but more limited access to the SIM
database. Set command transmits to the MT the SIM <command> and its required parameters. MT handles internally all SIM- MT
interface locking and file selection routines. As response to the command, MT sends the actual SIM information parameters and
response data. MT error result code +CME ERROR may be returned when the command cannot be passed to the SIM, but failure in
the execution of the command in the SIM is reported in <sw1> and <sw2> parameters. Refer to subclause 3.1.2 for <err> values.
Coordination of command requests to SIM and the ones issued by GSM/UMTS/LTE application inside the MT is implementation
dependent. However, the TE should be aware of the precedence of the GSM/UMTS/LTE application commands to the TE commands.
Test command returns the OK result code.
Parameter
<command> (command passed on by the MT to the SIM; refer GSM 11.11):
176 READ BINARY
178 READ RECORD
192 GET RESPONSE
214 UPDATE BINARY
220 UPDATE RECORD
242 STATUS
All Rights reserved, No Spreading without GOSUNCN Permission 36
AT Command Reference Guide of Module Product
AT+CRSM = 176,12258,0,0,10
+CRSM: 144,0,"98680090911109001080"
OK
<CR><LF>+CNUM: [<alpha1>],<number1>,<type1>[,<speed>,<service>[,<itc>]]<CR><LF>
<CR><LF> [+CNUM: [<alpha2>],<number2>,<type2>[,<speed>,<service> [,<itc>]]<CR><LF>
[...]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<fileid>: integer type; this is the identifier of a elementary data file on SIM. Mandatory for every command except STATUS
<P1>, <P2>, <P3>: integer type; parameters passed on by the MT to the SIM. These parameters are mandatory for every
command, except GET RESPONSE and STATUS. The values are described in GSM 11.11
<data>: information which shall be written to the SIM (hexadecimal character format; refer +CSCS)
<sw1>, <sw2>: integer type; information from the SIM about the execution of the actual command. These parameters are
delivered to the TE in both cases, on successful or failed execution of the command
<response>: response of a successful completion of the command previously issued (hexadecimal character format; refer
+CSCS). STATUS and GET RESPONSE return data, which gives information about the current elementary data field. This information
includes the type of file and its size. After READ BINARY or READ RECORD command the requested data will be returned. <response>
is not returned after a successful UPDATE BINARY or UPDATE RECORD command.
Example
5.5. AT+CNUM Subscriber Number
Action command returns the MSISDNs related to the subscriber ((if the phone number of the device has been stored in the SIM
card). If subscriber has different MSISDN for different services, each MSISDN is returned in a separate line.
Parameter
<alphax >: alphanumeric string associated with <numberx >; used character set should be the one selected with command
Select TE Character Set +CSCS
<numberx >: string type phone number of format specified by <typex >
<typex >: type of address octet in integer format (refer GSM 04.08 subclause 10.5.4.7)
<speed>: Please refer to the value defined in the command of +CBST
<service> (service related to the phone number):
0 asynchronous modem
1 synchronous modem
2 PAD Access (asynchronous)
3 Packet Access (synchronous)
4-5 Other service,(reserved)
<itc> (information transfer capability):
0 3,1 kHz
1 UDI
Example
All Rights reserved, No Spreading without GOSUNCN Permission 37
AT Command Reference Guide of Module Product
AT+CNUM
+CNUM: ,"18503039198",129
OK
+ZPINPUK: <pinnumber>,<puknumber>
AT+ZPINPUK=?
+ZPINPUK: 3,10
OK
5.6. AT+ZPINPUK Check PIN and PUK retry times
This command is used to check PIN and PUK left retry times.
Parameter
<pinnumber>: PIN left retry times
<puknumber>: PUK left retry times
Example
All Rights reserved, No Spreading without GOSUNCN Permission 38
AT Command Reference Guide of Module Product
<CR><LF>+CSMS: <mt>,<mo>,<bm><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CSMS: <service>,<mt>,<mo>,<bm><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CSMS: (list of supported <service>s) <CR><LF>
<CR><LF>OK<CR><LF>
//CSMS:1
AT+CSMS=1
+CSMS: 1,1,1
OK
AT+CMGF=1
OK
AT+CMGS="18891006239"
> this
6. SMS COMMANDS
6.1. AT+CSMS Select Message Service
Execution command selects messaging service <service>. It returns the types of messages supported by the ME. If chosen
service is not supported by the ME (but is supported by the TA), final result code +CMS ERROR: <err> shall be returned. See chapter
Message Service Failure Result Code for a list of <err> values.
Read command returns supported message types along the current service setting.
Test command returns a list of all services supported by the TA.
NOTE: The +CMGS, +CMGC can be influenced by the parameter <service>.
Parameter
<service>:
0 3GPP TS 23.040 and 3GPP TS 23.041 , all type of messages supported. (Default Value)
1 3GPP TS 23.040 and 3GPP TS 23.041, the requirement of <service> setting 1 is mentioned under corresponding command
descriptions) , all type of messages supported.
<mt> for mobile terminated messages,
0 type not supported
1 type supported
<mo> for mobile originated messages
0 type not supported
1 type supported
<bm> for broadcast type messages
0 type not supported
1 type supported
Example
All Rights reserved, No Spreading without GOSUNCN Permission 39
AT Command Reference Guide of Module Product
+CMGS: 248,"12/11/05,14:45:39+32"
OK
//CSMS:0
AT+CSMS=0
+CSMS: 1,1,1
OK
AT+CMGS="18891006239"
> this
+CMGS: 249
OK
<CR><LF>+CMGF: <mode><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CMGF: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
AT+CMGF=?
+CMGF: (0-1)
OK
AT+CMGF?
+CMGF: 0
6.2. AT+CMGF Message Format
Set command selects input and output format of messages to use. <mode> indicates the format of messages used with send,
list, read and write commands and unsolicited result codes resulting from received messages. Mode can be either PDU mode (entire
TP data units used) or text mode (headers and body of the messages given as separate parameters). Text mode uses the value of
parameter <chset> specified by command Select TE Character Set +CSCS to inform the character set to be used in the message body
in the TA-TE interface.
Read command reports the current value of the parameter <mode>.
Test command returns supported modes as a compound value.
Parameter
<mode>:
0 PDU mode (default when implemented)
1 Text mode
Example
All Rights reserved, No Spreading without GOSUNCN Permission 40
AT Command Reference Guide of Module Product
<CR><LF>+CSCA: <sca>,<tosca><CR><LF>
<CR><LF>OK<CR><LF>
AT+CSCA?
+CSCA: "+8613010851500",145
OK
+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]]
<CR><LF>+CSMP: <fo>,<vp>,<pid>,<dcs><CR><LF>
<CR><LF>OK<CR><LF>
6.3. AT+CSCA Service Centre Address
Set command sets the Service Center Address to be used for module originated SMS transmissions. In text mode, setting is
used by send and write commands. In PDU mode, setting is used by the same commands, but only when the length of the SMSC
address coded into <pdu> parameter equals zero.
Read command reports the current value of the SCA.
Test command returns the OK result code.
Parameter
<sca>:
String value. It indicates the SMSC number. The number is composed ‘*’, ‘#’ ,’+’ and ‘0”~’9’ The ‘+’ must be the very beginni ng
of the number. The number contains 20 characters at most.
<tosca>:
Integer value. It indicates the number type, where “145” means an international call. For the specific values, see also the
definition of the “type_addr” parameter in the SC number, as described in the section “Short message sending +CMGS”.
Example
6.4. AT+CSMP Set Text Mode Parameters
Set command is used to select values for additional parameters needed when SM is sent to the network or placed in storage
when text format message mode is selected (AT+CMGF=1).
It is possible to set the validity period starting from when the SM is received by the SMSC (<vp> is in range 0...255) or define
the absolute time of the validity period termination (<vp> is a string). If TA supports the EVPF, see 3GPP TS 23.040, it shall be given as
a hexadecimal coded string (refer e.g. <pdu>) with double quotes.
Read command reports the current setting in the format
Test command returns the OK result code.
Parameter
<fo>: depending on the command or result code: first octet of 3GPP TS 23.040 [3] SMS-DELIVER, SMS-SUBMIT (default 17),
All Rights reserved, No Spreading without GOSUNCN Permission 41
AT Command Reference Guide of Module Product
AT+CSMP=17,169,0,0
OK
AT+CSMP=25,169,0,0
ERROR
SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer format . you can refer to 3GPP TS 24.040 9.2.3.12 for detail.
Bit7: RP: Reply Path,
0— no set;
1— set
Bit6: UDHI, User Data Header Information,
0— no User Data Header Information
1— include User Data Header Information(used by long SMS)
Bit5: SRR, Status Report Request
1— need Status Report
0— no need Status Report
Bit4-bit3: VPF: Validity Period Format
00—Not present;
01—reserved
10—integer (standard)
11—Semi-Octet Represented
Bit2: RD : Reject Duplicates
0— receipt duplicates
1— Reject Duplicates
Bit1-bit0: MTI: Message Type Indicator
00—Deliver
01—Submit
02-SMS COMMAND and SMS STATUS REPORT.
<vp>: depending on SMS-SUBMIT <fo> setting: 3GPP TS 23.040 [3] TP-Validity-Period either in integer format (default 167) or
in time-string format (refer <dt> ).
Validity period value: 0 to 143
(VP+1) x 5 minutes (up to 12 hours)
144 to 167
12 hours + (VP-143) x 30 minutes
168 to 196 (VP-166) x 1 day
197 to 255 (VP-192) x 1 week
<pid>: the default value is 0. 3GPP TS 03.40/23.040 TP-Protocol-Identifier in integer format.
<dcs>:depending on the command or result code: 3GPP TS 23.038 [2] SMS Data Coding Scheme (default 0), or Cell Broadcast
Data Coding Scheme in integer format, 8 is UCS2 coding scheme.
Example
All Rights reserved, No Spreading without GOSUNCN Permission 42
AT Command Reference Guide of Module Product
+CSCB=[<mode>[,<mids>[,<dcss>]]]
<CR><LF>+CSCB: <mode>,<mids>,<dcss><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CSCB: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
AT+CSCB?
+CSCB: 0, "50,4370,0-65535",""
OK
AT+CSCB=?
+CSCB: (0-1)
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CSAS: (list of supported <profile>s) <CR><LF>
<CR><LF>OK<CR><LF>
6.5. AT+CSCB Select Cell Broadcast Message Types (Not support yet)
Set command selects which types of CBMs are to be received by the ME.
Read command reports the current value of parameters <mode>, <mids> and <dcss>.
Test command returns supported modes as a compound value.
Parameter
<mode>:
0 message types specified in <mids> and <dcss> are accepted (Default Value)
1 message types specified in <mids> and <dcss> are rejected
<mids>: string type; all different possible combinations of CBM message identifiers (refer <mid>) (default is empty string); e.g.
"0,1,5,320-478,922"
<dcss>: string type; all different possible combinations of CBM data coding schemes (refer <dcs>) (default is empty string); e.g.
"0-3,5"
Example
6.6. AT+CSAS Save Settings
Execution command saves active message service settings to a non-volatile memory. Settings specified in commands Service
Centre Address +CSCA, Set Message Parameters +CSMP and Select Cell Broadcast Message Types +CSCB (if implemented) are saved.
Certain settings may not be supported by the storage (e.g. (U)SIM SMS parameters) and therefore cannot be saved. See chapter
Message Service Failure Result Code for <err> values.
Test command shall display the supported profile numbers for reading and writing of settings.
Parameter
All Rights reserved, No Spreading without GOSUNCN Permission 43
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CRES: (list of supported <profile>s) <CR><LF>
<CR><LF>OK<CR><LF>
+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]
<CR><LF>OK<CR><LF>
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CNMI: (list of supported <mode>s),(list of supported <mt>s),(list
<profile>:
0 Settings specified in commands +CSCA +CSMP +CSCB are saved to NV.
Example
6.7. AT+CRES Restore Settings
Execution command restores message service settings from non-volatile memory to active memory. Settings specified in
commands Service Centre Address +CSCA, Set Message Parameters +CSMP and Select Cell Broadcast Message Types +CSCB (if
implemented) are restored. Certain settings may not be supported by the storage (e.g. (U)SIM SMS parameters) and therefore
cannot be restored. See chapter Message Service Failure Result Code for <err> values.
Parameter
<profile>:
0 Settings specified in commands +CSCA +CSMP +CSCB are restored to NV.
Example
6.8. AT+CNMI New Message Indications to TE
Set command selects the procedure, how receiving of new messages from the network is indicated to the DTE.
If ME does not support requested item (although TA does), final result code +CMS ERROR: <err> is returned. See chapter
Message Service Failure Result Code for a list of <err> values.
Test command gives the settings supported by the TA as compound values.
NOTE: Command Select Message Service +CSMS should be used to detect ME support of mobile terminated SMs and CBMs, and to define
whether a message routed directly to TE should be acknowledged or not
All Rights reserved, No Spreading without GOSUNCN Permission 44
AT Command Reference Guide of Module Product
of supported <bm>s),(list of supported <ds>s),(list of supported <bfr>s)
<CR><LF>
<CR><LF>OK<CR><LF>
Parameter
<mode>- controls the processing of unsolicited result codes specified within this command
0 Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications can be buffered in some other place or
the oldest indications may be discarded and replaced with the new received indications.
1 Discard indication and reject new received message unsolicited result codes when TA-TE link is reserved (e.g. in on-line
data mode). Otherwise forward them directly to the TE.
2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line data mode) and flush them to the TE
after reservation. Otherwise forward them directly to the TE.
3 Forward unsolicited result codes directly to the TE. TA-TE link specific in band technique used to embed result codes and
data when TA is in on-line data mode. (when TA is in on-line data mode, it seems need a MT call to enable TA report to TE)
<mt> -sets the result code indication routing for SMS-DELIVERs (the rules for storing received SMs depend on its data coding
scheme, preferred memory storage (+CPMS) setting and this value; refer table 1;
0 No SMS-DELIVER indications are routed to the TE.
1 If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed to the TE using unsolicited result code:
+CMTI: <mem>,<index>
2 SMS-DELIVERs (except class 2 messages and messages in the message waiting indication group (store message)) are
routed directly to the TE using unsolicited result code:
+CMT: [<alpha>],<length><pdu> (PDU mode enabled); or
+CMT: <oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<data> (text mode enabled)
If ME has its own display device then class 0 messages and messages in the message waiting indication group (discard message)
may be copied to both ME display and to TE. In this case, ME shall send the acknowledgement to the network.
Class 2 messages and messages in the message waiting indication group (store message) result in indication as defined in
<mt>=1.
3 Class 3 SMS-DELIVERs are routed directly to TE using unsolicited result codes defined in <mt>=2. Messages of other data
coding schemes result in indication as defined in <mt>=1.
<bm> -for CBMs (the rules for storing received CBMs depend on its data coding scheme, the setting of Select CBM Types
(+CSCB) and this value):
0 No CBM indications are routed to the TE.
2 New CBMs are routed directly to the TE using unsolicited result code:
+CBM: <length><pdu> (PDU mode enabled); or
+CBM: <sn>,<mid>,<dcs>,<page>,<pages><data> (text mode enabled)
If ME supports data coding groups which define special routing also for messages other than class 3 (e.g. (U)SIM specific
messages), ME may choose not to route messages of such data coding schemes into TE (indication of a stored CBM may be given as
defined in <bm>=1).
<ds>-for SMS-STATUS-REPORTs:
0 No SMS-STATUS-REPORTs are routed to the TE.
1 SMS-STATUS-REPORTs are routed to the TE using unsolicited result code:
+CDS: <length><pdu> (PDU mode enabled); or
All Rights reserved, No Spreading without GOSUNCN Permission 45
AT Command Reference Guide of Module Product
if text mode (+CMGF=1), command successful and SMS-SUBMITs and/or SMS-DELIVERs:
<CR><LF>+CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][, <tooa/toda>,<length>]<data><CR><LF> [
<CR><LF>+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][, <tooa/toda> ,<length>]<data><CR><LF> [...]]
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and SMS-STATUS-REPORTs:
<CR><LF>+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>, <st><CR><LF>
[+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>, <st><CR><LF>[...]]
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and SMS-COMMANDs:
<CR><LF>+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
<CR><LF>+CMGL: <index>,<stat>,<fo>,<ct><CR><LF> [...]]
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and CBM storage:
<CR><LF>+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<data><CR><LF> [
<CR><LF>+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<data><CR><LF> [...]]
<CR><LF>OK<CR><LF>
+CDS: <fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (text mode enabled)
2 Reserved
<bfr>- defines the handling method for buffered result codes when <mode> 1, 2 or 3 is enabled:
0 TA buffer of unsolicited result codes defined within this command is flushed to the TE when <mode> 1...3 is entered (OK
response shall be given before flushing the codes).
1 TA buffer of unsolicited result codes defined within this command is cleared when <mode> 1...3 is entered.
Example
6.9. AT+CMGL List Messages
Execution command returns messages with status value <stat> from message storage <mem1> to the TE.Entire data units <pdu>
are returned for pdu mode.If status of the message is 'received unread', status in the storage changes to 'received read'. If listing fails,
final result code +CMS ERROR: <err> is returned. See chapter Message Service Failure Result Code for <err> values.
NOTE: If the selected <mem1> can contain different types of SMs (e.g. SMS-DELIVERs, SMS-SUBMITs, SMS-STATUS-REPORTs and
SMS-COMMANDs), the response may be a mix of the responses of different SM types. TE application can recognize the response format by
examining the third response parameter.
Test command shall give a list of all status values supported by the TA.
All Rights reserved, No Spreading without GOSUNCN Permission 46
AT Command Reference Guide of Module Product
if PDU mode (+CMGF=0) and command successful:
<CR><LF>+CMGL: <index>,<stat>,[<alpha>],<length><pdu><CR><LF>
[<CR><LF>+CMGL:<index>,<stat>,[<alpha>],<length><pdu><CR><LF>
[...]]
<CR><LF>OK<CR><LF>
otherwise:
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CMGL: (list of supported <stat>s) <CR><LF>
<CR><LF>OK<CR><LF>
AT+CMGF=1
OK
AT+CMGL="all"
+CMGL: 1,"REC READ","130********","",
abcdefg
+CMGL: 2,"REC READ","131********","",
abcdef
+CMGL: 3,"STO SENT","1331********",""
opqrxt
OK
Parameter
<stat>:
(text mode)
"REC UNREAD":
"REC READ"
"STO UNSENT"
"STO SENT"
"ALL"
(pdu mode)
0 REC UNREAD
1 REC READ
2 STO UNSENT
3 STO SENT
4 ALL
<ct>:integer type of 3GPP TS 03.40 TP-Command-Type
For details about these parameters, please refer to 8.1 SMS parameter.
Example
6.10. AT+CMGR Read Message
Execution command returns message with location value <index> from message storage <mem1> to the TE.
All Rights reserved, No Spreading without GOSUNCN Permission 47
AT Command Reference Guide of Module Product
if text mode (+CMGF=1), command successful and SMS-DELIVER:
<CR><LF>+CMGR: <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,
<pid>,<dcs>,<sca>,<tosca>,<length>]<data><CR><LF>
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and SMS-SUBMIT:
<CR><LF>+CMGR: <stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,
[<vp>],<sca>,<tosca>,<length>]<data><CR><LF>
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and SMS-STATUS-REPORT:
<CR><LF>+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>, <st><CR><LF>
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and SMS-COMMAND:
<CR><LF>+CMGR: <stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>], <length><cdata>]<CR><LF>
<CR><LF>OK<CR><LF>
if text mode (+CMGF=1), command successful and CBM storage:
<CR><LF>+CMGR: <stat>,<sn>,<mid>,<dcs>,<page>,<pages> <data><CR><LF>
<CR><LF>OK<CR><LF>
if PDU mode (+CMGF=0) and command successful:
<CR><LF>+CMGR: <stat>,[<alpha>],<length><pdu><CR><LF>
<CR><LF>OK<CR><LF>
otherwise:
<CR><LF>+CMS ERROR: <err><CR><LF>
If status of the message is 'received unread', status in the storage changes to 'received read'. If reading fails, final result code
+CMS ERROR: <err> is returned. See chapter Message Service Failure Result Code for <err> values.
Test command returns the OK result code.
Parameter
<index>:stored SMS number
<stat>:SMS state
0:“REC UNREAD”: received unread message
1:“REC READ”:received read message
2:“STO UNSENT”: stored unsend message
3:“STO SENT”: stored sent message.
<alpha>: Correspoding name to <da> or <oa> on ternimal device
<stat>:message state in memory unit
<oa>: Source number string of SMS
All Rights reserved, No Spreading without GOSUNCN Permission 48
AT Command Reference Guide of Module Product
AT+CMGF=1
OK
AT+CMGR=1
+CMGR: "REC UNREAD","133********",,
"04/02/25,12 :58 :04+ 04"
ABCD
OK
if text mode (+CMGF=1):
+CMGS=<da>[,<toda>]<CR>
text is entered<ctrl-Z/ESC>
if PDU mode (+CMGF=0):
+CMGS=<length><CR>
PDU is given<ctrl-Z/ESC>
if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMGS: <mr>[,<scts>]<CR><LF>
<CR><LF>OK<CR><LF>
if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMGS: <mr>[,<ackpdu>]<CR><LF>
<CR><LF>OK<CR><LF>
if sending fails:
<CR><LF>+CMS ERROR: <err><CR><LF>
<da>: Target address string of SMS
<scts>: Time string of SMS service center
<length>:<data> length or TPDU bytes
<mn>:[0]~255 , integer type, 3GPP TS 24.040 TP-Message-Number
<ct>:integer type, 3GPP TS 03.40 TP-Command-Type
Example
6.11. AT+CMGS Send Message
Execution command sends message from a TE to the network (SMS-SUBMIT). Message reference value <mr> is returned to the
TE on successful message delivery. Value can be used to identify message upon unsolicited delivery status report result code. If
sending fails in a network or an ME error, final result code +CMS ERROR: <err> is returned. See chapter Message Service Failure
Result Code for a list of <err> values. This command should be abortable.
For details about these parameters, please refer to 8.1 SMS parameter.
Note:Sending can be cancelled by giving <ESC> character (IRA 27).
<ctrl-Z> (IRA 26) must be used to indicate the ending of PDU.
Parameter
<da>: Destination-Address
<toda>,<tooa>,<tosca>: 8 bytes Type of address for TP-Destination-Address, TP-Originating-Address, TP-Service-
Centre-Address ( when the initial character of <da> is +(IRA43), default value is 145, otherwise, its value is 129)
<data>: SMS information (less than 160 characters)
<mr>: message parameter
<scts>: Service Centre Time Stamp in time-string format. Can set (+CSMS<service>as 1, network supported) return <scts>
<length> must indicate the number of octets coded in the TP layer data unit to be given (i.e. SMSC address octets are
All Rights reserved, No Spreading without GOSUNCN Permission 49
AT Command Reference Guide of Module Product
AT+CMGS="10086"
> 1234
+CMGS: 242
OK
+CMSS=<index>[,<da>[,<toda>]]
if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMSS: <mr>[,<scts>]<CR><LF>
<CR><LF>OK<CR><LF>
if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMSS: <mr>[,<ackpdu>]<CR><LF>
<CR><LF>OK<CR><LF>
if sending fails:
<CR><LF>+CMS ERROR: <err><CR><LF>
at+cmgw="18682013070"
> sss
+CMGW: 6
OK
at+cmss=6
+CMSS: 245
OK
excluded).
Example
6.12. AT+CMSS Send Message from Storage
Execution command sends message with location value <index> from preferred message storage <mem2> to the network
(SMS-SUBMIT or SMS-COMMAND). If new recipient address <da> is given for SMS-SUBMIT, it shall be used instead of the one stored
with the message. Reference value <mr> is returned to the TE on successful message delivery. Optionally (when +CSMS <service>
value is 1 and network supports) <scts> is returned. Values can be used to identify message upon unsolicited delivery status report
result code. If sending fails in a network or an ME error, final result code +CMS ERROR: <err> is returned. See chapter Message
Service Failure Result Code for a list of <err> values. This command should be abortable.
Parameter
For details about these parameters, please refer to 8.1 SMS parameter.
Example
6.13. AT+CMGW Write Message to Memory
Execution command stores message (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2>. Memory location
<index> of the stored message is returned. By default message status will be set to 'stored unsent', but parameter <stat> allows also
other status values to be given. The entering of text/PDU is done similarly as specified in command Send Message +CMGS. If writing
fails, final result code +CMS ERROR: <err> is returned. See chapter Message Service Failure Result Code for <err> values.
All Rights reserved, No Spreading without GOSUNCN Permission 50
AT Command Reference Guide of Module Product
if text mode (+CMGF=1):
+CMGW[=<oa/da>[,<tooa/toda>[,<stat>]]]<CR>
text is entered<ctrl-Z/ESC>
if PDU mode (+CMGF=0):
+CMGW=<length>[,<stat>]<CR>PDU is given<ctrl-Z/ESC>
<CR><LF>+CMGW: <index>
<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
at+cmgf=1
OK
at+cmgw="10086"
> sdsd
+CMGW: 280
OK
+CMGD=<index>[,<delflag>]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CMGD: (list of supported <index>s)[,(list of
supported <delflag>s)]<CR><LF>
NOTE: SMS-COMMANDs and SMS-STATUS-REPORTs cannot be stored in text mode.
Parameter
For details about these parameters, please refer to 8.1 SMS parameter.
Example
6.14. AT+CMGD Delete Message
Execution command deletes message from preferred message storage <mem1> location <index>. If <delflag> is present and
not set to 0 then the ME shall ignore <index> and follow the rules for <delflag> shown below. If deleting fails, final result code
+CMS ERROR: <err> is returned. See chapter Message Service Failure Result Code for <err> values.
Test command shows the valid memory locations and optionally the supported values of <delflag>.
Parameter
<delflag>: an integer indicating multiple message deletion request as follows:
0 (or omitted) Delete the message specified in <index>
1 Delete all read messages from preferred message storage, leaving unread messages and stored mobile originated
messages (whether sent or not) untouched
2 Delete all read messages from preferred message storage and sent mobile originated messages, leaving unread messages
and unsent mobile originated messages untouched
3 Delete all read messages from preferred message storage, sent and unsent mobile originated messages leaving unread
messages untouched.
4 Delete all messages from preferred message storage including unread messages.
Example
All Rights reserved, No Spreading without GOSUNCN Permission 51
AT Command Reference Guide of Module Product
if text mode (+CMGF=1),can’ t support +CMGC
command, if you want to send SMS in this mode, please
use +CMGS command:
if PDU mode (+CMGF=0):
+CMGC=<length><CR>
PDU is given<ctrl-Z/ESC>
if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMGC: <mr>[,<ackpdu>]<CR><LF>
<CR><LF>OK<CR><LF>
if sending fails:
<CR><LF>+CMS ERROR: <err><CR><LF>
AT+CMGC=14
> 0891685109200905F011000B818198016032F90011FF00
+CMGC: 251
OK
6.15. AT+CMGC Send Command
Execution command sends a command message from a TE to the network (SMS-COMMAND). The entering of text/PDU (3GPP
TS 23.040 TP-Command-Data) is done similarly as specified in command Send Message +CMGS, but for text mode the format is fixed
to be a sequence of two IRA character long hexadecimal numbers which ME/TA converts into 8-bit octets (refer +CMGS). Message
reference value <mr> is returned to the TE on successful message delivery. Optionally (when +CSMS <service> value is 1 and network
supports) <scts>/<ackpdu> is returned. Values can be used to identify message upon unsolicited delivery status report result code. If
sending fails in a network or an ME error, final result code +CMS ERROR: <err> is returned. See chapter Message Service Failure
Result Code for a list of <err> values. This command should be abortable.
For details about these parameters, please refer to 8.1 SMS parameter.
Note: this command can only support PDU format only, not support TEXT mode yet.
<da>: Destination-Address
<toda>,<tooa>,<tosca>: 8 bytes Type of address for TP-Destination-Address, TP-Originating-Address, TP-Service-
Centre-Address ( when the initial character of <da> is +(IRA43), default vaule is 145, otherwise, its value is 129)
<data>: SMS information (less than 160 characters)
<mr>: message parameter
<scts>: Service Centre Time Stamp in time-string format. Can set (+CSMS<service>as 1, network supported) return <scts>
<length>: Message Length, Integer type value indicating in PDU mode (AT+CMGF=0), the length of the actual TP data unit in
<mn>: [0]~255 Message number. 3GPP TS 24.040 TP-Message-Number integer format.
<ackpdu>: Can set (+CSMS<service>as 1, network supported) return <acjpdu>
Example
6.16. AT+CMMS More Messages to Send
Set command controls the continuity of SMS relay protocol link. When feature is enabled (and supported by network) multiple
messages can be sent much faster as link is kept open.
All Rights reserved, No Spreading without GOSUNCN Permission 52
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CMMS: <n><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CMMS: (list of supported <n>s) <CR><LF>
<CR><LF>OK<CR><LF>
AT+CMMS?
+CMMS: 0
OK
AT+CMMS=?
+CMMS: (0,1,2)
OK
+CPMS=<mem1>[,
<mem2>[,<mem3>]]
<CR><LF>+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>, <total3><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,
<total2>,<mem3>,<used3>,<total3><CR><LF>
<CR><LF>OK<CR><LF>
Read command reports the current value of the parameter <n> .
Test command returns supported values as a compound value.
Parameter
<n>:
0 disable (Default Value)
1 keep enabled until the time between the response of the latest message send command (+CMGS, +CMSS, etc.) and the
next send command exceeds 1-5 seconds (the exact value is up to ME implementation), then ME shall close the link and TA switches
<n> automatically back to 0
2 enable (if the time between the response of the latest message send command and the next send command exceeds 1-5
seconds (the exact value is up to ME implementation), ME shall close the link but TA shall not switch automatically back to <n>=0)
Example
6.17. AT+CPMS Preferred Message Storage
Set command selects memory storages <mem1>, <mem2> and <mem3> to be used for reading, writing, etc. If chosen storage
is not appropriate for the ME (but is supported by the TA), final result code +CMS ERROR: <err> shall be returned. See chapter
Message Service Failure Result Code for a list of possible <err> values.
Read command reports the message storage status.
Test command returns lists of memory storages supported by the TA
All Rights reserved, No Spreading without GOSUNCN Permission 53
AT Command Reference Guide of Module Product
or
<CR><LF>+CMS ERROR: <err><CR><LF>
<CR><LF>+CPMS: (list of supported <mem1>s),(list of supported <mem2>s),(list of supported <mem3>s)
<CR><LF>
AT+CPMS?
+CPMS: "SM",10,40,"SM",10,40,"ME",1,100
OK
<CR><LF>+CMTI: <mem>,<index><CR><LF>
Parameter
<mem1>: string type; memory from which messages are read and deleted (commands List Messages +CMGL, Read Message
+CMGR and Delete Message +CMGD); defined values (others are manufacturer specific):
"ME" ME message storage
"SM" (U)SIM message storage
"MT": Same as “ ME” storage (not supported yet)
"SR": Status report storage (not supported yet)
<mem2>: string type; memory to which writing and sending operations are made (commands Send Message from Storage
+CMSS and Write Message to Memory +CMGW) ); refer <mem1> for defined values
<mem3>: string type; memory to which received SMs are preferred to be stored (unless forwarded directly to TE; refer
command New Message Indications +CNMI); refer <mem1> for defined values; received CBMs are always stored in "BM" (or some
manufacturer specific storage) unless directly forwarded to TE; received status reports are always stored in "SR" (or some
manufacturer specific storage) unless directly forwarded to TE
<total1>: integer type; total number of message locations in <mem1>
<total2>: integer type; total number of message locations in <mem2>
<total3>: integer type; total number of message locations in <mem3>
<used1>: integer type; number of messages currently in <mem1>
<used2>: integer type; number of messages currently in <mem2>
<used3>: integer type; number of messages currently in <mem3>
Example
6.18. +CMTI New Message Indications
When new message is received and stored into ME/TA, indication of the memory location is routed to the TE using unsolicited
result code.
Parameter
<mem1>: string type
"ME" ME message storage
"SM" (U)SIM message storage
"SR" status report storage
<index>: integer type; value in the range of location numbers supported by the associated memory
Example
All Rights reserved, No Spreading without GOSUNCN Permission 54
AT Command Reference Guide of Module Product
<CR><LF>+ZSPWAKEUP: <switch>
<CR><LF>OK<CR><LF>
<CR><LF>+ZSPWAKEUP: (e/E,d/D)
<CR><LF>OK<CR><LF>
AT+ZSPWAKEUP=?
+ZSPWAKEUP: (e/E,d/D)
OK
AT+ZSPWAKEUP=d
OK
AT+ZSPWAKEUP?
+ZSPWAKEUP: d
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+ZWAKEUPSMS: <para>
<CR><LF>OK<CR><LF>
6.19. AT+ZSPWAKEUP Enable/disable specified SMS remote wakeup function
This command is used to Enable/disable specified SMl remote wakeup function.
Parameter
<switch>:
E/e--Enable specified SMS remote wakeup function
D/d-- Disable specified SMS remote wakeup function
NOTE:
1. the set value is stored in NVM, and it still takes effect after restart.
2. The read&test command will return ERROR before set command is not sent.
Example
6.20. AT+ZWAKEUPSMS Set the specified SMS content used for remote
wakeup
This command is used to set the specified SMS content used for remote wakeup, and then this command can wakeup the host
machine(AP Side). This command will take effect once send, and it still takes effect after restart.
Parameter
<para>: The contents of SMS, the available characters are ’A’~’Z’, ’a’~’z’, ’0’~’9’. We recomm end that the length of SMS content
is not exceed 20 characters. the set value is stored in NVM, and it still takes effect after restart.
All Rights reserved, No Spreading without GOSUNCN Permission 55
AT Command Reference Guide of Module Product
AT+ZWAKEUPSMS? //When not set the specified SMS content, the return value is Unconfigured
+ZWAKEUPSMS: Unconfigured
OK
AT+ZWAKEUPSMS=123 // The specified SMS content used for remote wakeup is 123
OK
AT+ZWAKEUPSMS?
+ZWAKEUPSMS: 123
OK
<CR><LF>+CMS ERROR: <err><CR><LF>
Note:
1. The read&test command will return ERROR before set command is not sent.
Example
6.21. +CMS ERROR Message Service Failure Result Code
This is NOT a command; it is the error response to +Cxxx 3gpp TS 27.005 commands
Final result code +CMS ERROR: <err> indicates an error related to mobile equipment or network. The operation is similar to
ERROR result code. None of the following commands in the same command line is executed. Neither ERROR nor OK result code shall
be returned. ERROR is returned normally when error is related to syntax or invalid parameters.
Parameter
<err> values used by common messaging commands.
The <err> values are reported in the table:
All Rights reserved, No Spreading without GOSUNCN Permission 56
AT Command Reference Guide of Module Product
3GPP TS 24.011 Annex E-2 values
3GPP TS 24.040 sub clause 9.2.3.22 values
SMS service of ME reserved
invalid PDU mode parameter
invalid text mode parameter
All Rights reserved, No Spreading without GOSUNCN Permission 57
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+CREG: <n>,<stat>[,[<lac>],[<ci>],[<AcT>]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CREG: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
7. NETWORK SERVICE COMMANDS
7.1. AT+CREG Network registration
Set command controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1 and there is a change in the
MT network registration status, or code +CREG: <stat>[,[<lac>],[<ci>],[<AcT>]] when <n>=2 and there is a change of the network cell.
Read command returns the status of result code presentation and an integer <stat> which shows whether the network has
currently indicated the registration of the MT. Location information elements <lac> and <ci> are returned only when <n>=2 and MT
is registered in the network.
Test command returns the range of supported <n>.
Parameter
<n>:
0 disable network registration unsolicited result code
1 enable network registration unsolicited result code +CREG: <stat>
2 enable network registration and location information unsolicited result code(default value)
+CREG: <stat>[,[<lac>],[<ci>],[<AcT>]]
<stat>:
0 not registered, MT is not currently searching a new operator to register to
1 registered, home network
2 not registered, but MT is currently searching a new operator to register to
3 registration denied
4 unknown
5 registered, roaming
<lac>: string type; two bytes location area code in hexadecimal format
<ci>: string type; two byte cell ID in hexadecimal format
<AcT>: integer type; access technology of the serving cell
All Rights reserved, No Spreading without GOSUNCN Permission 58
AT Command Reference Guide of Module Product
AT+CREG?
+CREG: 0,1
OK
AT+CREG=?
+CREG: (0-2)
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+CEREG: <n>,<stat>[,[<lac>],[<ci>],[<AcT>]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CEREG: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
0 GSM
1 GSM Compact
2 UTRAN
3 GSM w/EGPRS
4 UTRAN w/HSDPA
5 UTRAN w/HSUPA
6 UTRAN w/HSDPA and HSUPA
7 E-UTRAN
Example
7.2. AT+CEREG Network registration
Set command controls the presentation of an unsolicited result code +CEREG: <stat> when <n>=1 and there is a change in the
MT network registration status, or code +CEREG: <stat>[,[<lac>],[<ci>],[<AcT>]] when <n>=2 and there is a change of the network
cell.
Read command returns the status of result code presentation and an integer <stat> which shows whether the network has
currently indicated the registration of the MT. Location information elements <lac> and <ci> are returned only when <n>=2 and MT
is registered in the network.
Test command returns the range of supported <n>.
Parameter
<n>:
0 disable network registration unsolicited result code
1 enable network registration unsolicited result code +CEREG: <stat>
2 enable network registration and location information unsolicited result code(default value)
+CEREG: <stat>[,[<lac>],[<ci>],[<AcT>]]
<stat>:
All Rights reserved, No Spreading without GOSUNCN Permission 59
AT Command Reference Guide of Module Product
AT+CEREG?
+CEREG: 0,1
OK
AT+CEREG=?
+CEREG: (0-2)
OK
+COPS=[<mode>[,<format>
[,<oper>[,<AcT>]]]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+COPS: <mode>[,<format>,<oper>[,<AcT>]]<CR><LF>
<CR><LF>OK<CR><LF>
or
0 not registered, MT is not currently searching a new operator to register to
1 registered, home network
2 not registered, but MT is currently searching a new operator to register to
3 registration denied
4 unknown
5 registered, roaming
<lac>: string type; two bytes location area code in hexadecimal format
<ci>: string type; four byte cell ID in hexadecimal format
<AcT>: integer type; access technology of the serving cell
0 GSM
1 GSM Compact
2 UTRAN
3 GSM w/EGPRS
4 UTRAN w/HSDPA
5 UTRAN w/HSUPA
6 UTRAN w/HSDPA and HSUPA
7 E-UTRAN
Example
7.3. AT+COPS Operator selection
Set command forces an attempt to select and register the LTE network operator. <mode> is used to select whether the
selection is done automatically by the MT or is forced by this command to operator <oper>.
Read command returns the current mode and the currently selected operator. If no operator is selected, <format> and <oper>
are omitted.
Test command returns a list of quadruplets, each representing an operator present in the network.
All Rights reserved, No Spreading without GOSUNCN Permission 60
AT Command Reference Guide of Module Product
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+COPS: [list of supported (<stat>,long alphanumeric <oper>,short alphanumeric
<oper>,numeric <oper>[,<AcT>])s][,,(list of supported <mode>s),(list of supported
<format>s)]<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+COPS=?
+COPS: (1,"CHN-UNICOM","UNICOM","46001",7),(3,"CHN-CT","CT","46011",7),,(0-4),(0-2)
OK
Parameter
<mode>:
0 automatic (<oper> field is ignored)
1 manual (<oper> field shall be present)
2 deregister from network
3 set only <format> (for read command +COPS?), do not attempt registration/deregistration ( <oper> field is ignored); this
value is not applicable in read command response
4 manual/automatic (<oper> field shall be present); if manual selection fails, automatic mode (<mode>=0) is entered
<format>:
0 long format alphanumeric <oper>
1 short format alphanumeric <oper>
2 numeric <oper>
<oper>: string type;
<AcT>: access technology selected:
0 GSM
1 GSM Compact
2 UTRAN
3 GSM w/EGPRS
4 UTRAN w/HSDPA
5 UTRAN w/HSUPA
6 UTRAN w/HSDPA and HSUPA
7 E-UTRAN
<stat>:
0 unknown
1 available
2 current
3 forbidden
Example
7.4. AT+CSQ Signal quality
Execution command returns received signal strength indication <rssi> and channel bit error rate <ber> from the MT.
Test command returns values supported as compound values.
All Rights reserved, No Spreading without GOSUNCN Permission 61
AT Command Reference Guide of Module Product
<CR><LF>+CSQ: <rssi>,<ber><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CSQ: (list of supported <rssi>s),(list of supported <ber>s) <CR><LF>
<CR><LF>OK<CR><LF>
Parameter
<rssi>:
0 -113 dBm or less
1 -111 dBm
2...30 -109... -53 dBm
31 -51 dBm or greater
99 not known or not detectable
<ber> (in percent):
0...7 as RXQUAL values in the table in GSM 05.08 subclause 8.2.4
0 – <0.01%
1 – 0.01% --- 0.1%
2 – 0.1% --- 0.5%
3 – 0.5% --- 1.0%
4 – 1.0% --- 2.0%
5 – 2.0% --- 4.0%
6 – 4.0% --- 8.0%
7 – more than 8.0%
99 not known or not detectable
Example
7.5. AT+CPOL Preferred operator list
This command is used to edit the PLMN selector with Access Technology lists in the SIM card or active application in the
UICC(GSM or USIM).
Execute command writes an entry in the SIM/USIM list of preferred PLMNs. If no list has been previously selected, the User
controlled PLMN selector with Access Technology, EF
entry is deleted. If <oper> is given but <index> is left out, <oper> is put in the next free location. If only <format> is given, the format
of the <oper> in the read command is changed. The Access Technology selection parameters, <GSM_AcT>, <GSM_Compact_AcT>
and <UTRAN_AcT>, are required when writing User controlled PLMN selector with Access Technology, EF EF
controlled PLMN selector with Access Technology EF
31.102.
Read command returns all used entries from the SIM/USIM list of preferred PLMNs, previously selected by the command +CPLS,
with the Access Technologies for each PLMN in the list.
All Rights reserved, No Spreading without GOSUNCN Permission 62
PLMNwAcT,
is the one accessed by default. If <index> is given but <oper> is left out,
PLMNwAcT
OPLMNwAcT
and HPLMN selector with Access Technology EF
HPLMNwAcT
, Operator
, see TS
AT Command Reference Guide of Module Product
+CPOL=[<index>][,<format>[,<oper>[,<GSM_A
cT>,<GSM_Compact_AcT>,<UTRAN_AcT>,<E-
UTRAN_AcT>]]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CPOL: <index1>,<format>,<oper1>[,<GSM_AcT1>,
<GSM_Compact_AcT1>,<UTRAN_AcT1>,<E-UTRAN_AcT1>]
+CPOL: <index2>,<format>,<oper2>[,<GSM_AcT2>,
<GSM_Compact_AcT2>,<UTRAN_AcT2>,<E-UTRAN_AcT1>]<CR><LF>
[...]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CPOL: (list of supported <index>s),(list of supported
<format>s)<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+CPOL=,2,"46001",0,0,1,0
OK
AT+CPOL=1
OK
AT+CPOL?
Test command returns the whole index range supported by the SIM.
Parameter
<indexn>: integer type; the order number of operator in the SIM/USIM preferred operator list (1~8)
<format>:
0 long format alphanumeric <oper>
1 short format alphanumeric <oper>
2 numeric <oper>
<opern >: string type; <format> indicates if the format is alphanumeric or numeric (see +COPS)
<GSM_AcTn>: GSM access technology:
0 access technology not selected
1 access technology selected
<GSM_Compact_AcTn>: GSM compact access technology:
0 access technology not selected
1 access technology selected
<UTRA_AcTn>: UTRA access technology:
0 access technology not selected
1 access technology selected
<E-UTRAN_AcTn >: integer type; E-UTRAN access technology
0 access technology not selected
1 access technology selected
Example
All Rights reserved, No Spreading without GOSUNCN Permission 63
AT Command Reference Guide of Module Product
+CPOL: 2,2,"46000",0,0,1,0
+CPOL: 3,2,"46001",0,0,1,0
OK
AT+CPOL=,0
OK
AT+CPOL?
+CPOL: 2,0,"CHINA MOBILE",0,0,1,0
+CPOL: 3,0,"CHN-UNICOM",0,0,1,0
OK
AT+CPOL=,1
OK
AT+CPOL?
+CPOL: 2,1,"CMCC",0,0,1,0
+CPOL: 3,1,"UNICOM",0,0,1,0
OK
<CR><LF>+COPN: <numeric1>,<alpha1><CR><LF>
[<CR><LF>+COPN: <numeric2>,<alpha2><CR><LF>
[...]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+COPN=?
AT+COPN
+COPN: "00101","Test PLMN 1-1"
+COPN: "00102","Test PLMN 1-2"
+COPN: "00201","Test PLMN 2-1"
+COPN: "20201","GR COSMOTE"
+COPN: "20201","GR COSMOTE"
+COPN: "20205","vodafone GR"
7.6. AT+COPN Read operator names
Execute command returns the list of operator names from the MT. Each operator code <numericn > that has an alphanumeric
equivalent <alphan > in the MT memory shall be returned.
Test command returns the OK result code.
Parameter
<numericn >: string type; operator in numeric format (see +COPS)
<alphan >: string type; operator in long alphanumeric format (see +COPS)
Example
All Rights reserved, No Spreading without GOSUNCN Permission 64
AT Command Reference Guide of Module Product
+COPN: "20210","TIM GR"
…
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CTZU: <onoff><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CTZU: (list of supported <onoff>s)<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+CTZU=?
+CTZU: (0-1)
OK
AT+CTZU?
+CTZU: 0
OK
7.7. AT+CTZU Automatic Time Zone Update
Set command enables and disables automatic time zone update via NITZ. If setting fails in an MT error, +CME ERROR: <err> is
returned.
Read command returns the current settings in the MT.
Test command returns supported on- and off-values.
Parameter
<onoff>: integer type value indicating:
0 – Disable automatic time zone update via NITZ
1 – Enable automatic time zone update via NITZ. (default).
Example
7.8. AT+CTZR Time Zone Reporting
This set command enables and disables the time zone change event reporting. If the reporting is enabled the MT returns the
unsolicited result code +CTZV: <tz> whenever the time zone is changed. If setting fails in an MT error, +CME ERROR: <err> is
returned.
Read command returns the current reporting settings in the MT.
All Rights reserved, No Spreading without GOSUNCN Permission 65
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CTZR: <onoff><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CTZR: (list of supported <onoff>s)<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
When registered to LTE, it will return:
<CR><LF>+ZCELLINFO: <TAC>,<Global_Cell_ID>,<Physical_Cell_ID>, <Cell_Band>,<DL_Earfcn><CR><LF>
<CR><LF>OK<CR><LF>
When registered to GSM/WCDMA/TD-SCDMA, it will return:
<CR><LF>+ZCELLINFO: <LAC>,< Cell_ID>, <Cell_Band><CR><LF>
<CR><LF>OK<CR><LF>
When registered to HDR/CDMA, it will return:
<CR><LF>+ZCELLINFO: <Local_ID>,< Cell_ID>, <Cell_Band><CR><LF>
<CR><LF>OK<CR><LF>
When registered to SRLTE, it will return:
<CR><LF>+ZCELLINFO: <Global_cell_ID>,< Physical_Cell_ID>, < Cell_Band>,<earfcn><CR><LF>
<CR><LF>OK<CR><LF>
Or it will return:
Test command returns supported <onoff> values.
NOTE: The time zone reporting is not affected by the Automatic Time Zone setting command, +CTZU.
Parameter
<onoff>: integer type value indicating:
0 – Disable time zone change event reporting (default).
1 – Enable time zone change event reporting.
Example
7.9. AT+ZCELLINFO Request the information about serving cell
This command is used to request LTE cell info, like global cell ID, physical cell ID, band information.
All Rights reserved, No Spreading without GOSUNCN Permission 66
AT Command Reference Guide of Module Product
AT+ZCELLINFO?
+ZCELLINFO: 0X911B,0X0BB75A31,0X0000016B,LTE B3,1675
OK
+ZLOCKCELL=<lock_flag>[,<mode>,<earfcn_or_uar
fcn>,<pci_or_psc>]
<CR><LF>OK<CR><LF>
or
<CR><LF> ERROR<CR><LF>
<CR><LF>+ZLOCKCELL:
lock_flag(0-1),sys_mode(0-1),uarfcn_earfcn(0-65535),psc(0-511),pci(0-50
3)<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF> ERROR<CR><LF>
<CR><LF>+ZLOCKCELL: <CR><LF>
<CR><LF>
wcdma,[uarfcn:<uarfcn>,psc:<psc>,]lock:<lock_state><CR><LF>
<CR><LF>lte,[earfcn:<earfcn>,pci:<pci>,]lock:<lock_state><CR><LF>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR <CR><LF>
Parameter
LTE:
<TAC>: Tracking area code
<Global_Cell_ID>: Global Cell ID
<Physical_Cell_ID>: Physical Cell ID
<Cell_Band>: Cell Band
<DL_Earfcn>: DL Earfcn
GSM/WCDMA/TD-SCDMA :
<LAC>,location area code
< Cell_ID>, Cell ID
<Cell_Band> Cell Band
Example
7.10. AT+ZLOCKCELL lock cell command
This command is used to lock cell and frequency, and only supported on ME3630E1CV1.0B14,
ME3630E2CV1.0B04 and above version. This command will take effect after restart the module,
and the set command will save after the module is powered off.
Parameter:
All Rights reserved, No Spreading without GOSUNCN Permission 67
AT Command Reference Guide of Module Product
AT+ZLOCKCELL=1,1,1650 //lock frequency 1650
OK
AT+ZLOCKCELL =1,1,1650,186 //lock LTE frequency 1650, cell 186
OK
AT+ZLOCKCELL=? //query parameter range list
+ ZLOCKCELL: lock_flag(0-1),sys_mode(0-1),uarfcn_earfcn(0-65535),psc(0-511),pci(0-503)
OK
AT+ZLOCKCELL? //query current frequency that is locked
+ ZLOCKCELL:
wcdma,lock::off
lte,earfcn:1650,lock:on //lock LTE frequency 1650
OK
AT+ZLOCKCELL?
+ ZLOCKCELL:
wcdma,lock::off
lte,earfcn:1650,pci:186,lock::on //lock LTE frequency 1650, cell 186
OK
AT+ZLOCKCELL?
+ ZLOCKCELL:
wcdma,uarfcn:10663,lock::on //lock WCDMA frequency 10663
lte,lock::off
OK
AT+ZLOCKCELL?
+ ZLOCKCELL:
wcdma,uarfcn:10663,psc:447,lock:on //lock WCDMA frequency 10663, cell 447
<lock_flag>: default value is 0
0: unlock
1: lock
<mode>:
0: WCDMA
1:LTE
<earfcn_or_uarfcn>: frequency point, range 0~65535
<pci_or_psc>: physics cell or main scrambler, pci range 0~503, and psc range 0~511
<lock_state>:
on: lock is on
off: lock is off, that is don't lock any frequency
Example
All Rights reserved, No Spreading without GOSUNCN Permission 68
AT Command Reference Guide of Module Product
lte,lock::off
OK
AT+ZLOCKCELL?
+ ZLOCKCELL:
wcdma,lock:off
lte,lock:off //not lock any frequency
OK
AT+ZLOCKCELL =0 //unlock, this command will take effect after restart the module
OK
+ZSNT=<cm_mode>,<net_sel_mode>,<pref_acq>
+CME ERROR: <err> or<CR><LF>OK<CR><LF>
+ZSNT: <cm_mode>,<net_sel_mode>,<pref_acq>
+CME ERROR: <err>
List all values can config.
7.11. AT+ZSNT Configuration of Network Selection Mode
This command is used to configure the network selection mode.
Parameter
<cm_mode>: Preferred network mode.
0: AUTOMATIC (default)
1: GSM_ONLY
2: WCDMA_ONLY
3: TD-SCDMA_ONLY (not support)
4: CDMA ONLY
5: HDR ONLY
6: LTE_ONLY
7: WCDMA AND LTE ONLY
8: TDSCDMA GSM WCDMA And LTE Only (not support)
9: CDMA and HDR only (not support)
10: TDSCDMA_WCDMA_LTE ONLY (not support)
<net_sel_mode>: selection of network selection mode
0: AUTOMATIC network selection (default)
1: MANUAL network selection.
NOTE: This parameter only used for read command. Set manual network selection should use AT+COPS.
2: LIMITIED network selection
<pref_acq>: Preferred network mode acquisition parameter.
0 : AUTOMATIC order (default)
All Rights reserved, No Spreading without GOSUNCN Permission 69
AT Command Reference Guide of Module Product
AT+ZSNT=0,0,2
OK
AT+ZSNT?
+ZSNT: 0,0,2
OK
AT+ZSNT=?
+ZSNT: (0-10),(0-2),(0-3)
OK
+CME ERROR: <err>
or
<CR><LF>OK<CR><LF>
+ZSNTE: <mode2>
+CME ERROR: <err>
+ZSNTE: list of supported <mode>s
AT+ZSNTE=3
OK
AT+ZSNTE?
+ZSNTE: 3
OK
AT+ZSNTE=?
+ZSNTE: 0-4
1 : GSM_WCDMA prefer
2: WCDMA_GSM prefer
3 LTE prefer
Example
7.12. AT+ZSNTE Network Selection according to 2G/3G/4G
This command is used to do network selection according to 2G/3G/4G. it takes effect once setting, and can also be saved after
restart the module.
This command is only valid when the module register to network.
Parameter
<mode>: Preferred network mode, this is used to set the 10th parameter of NV.
0 4G LTE Preferred (all Combination of mode with LTE, LTE preferred)
1 3G Preferred
2 2G ONLY
3 3G ONLY
4 4G ONLY
Example
All Rights reserved, No Spreading without GOSUNCN Permission 70
AT Command Reference Guide of Module Product
<CR><LF>+ZPAS: <network>,<srv_domain>[,<LTE_MODE>]<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
AT+ZPAS?
+ZPAS: "LTE","CS_PS","FDD"
OK
^SYSINFO:<srv_status >,<srv_domain >,<roam_status >,<sys_mode>,<sim
_state >[,[<reserve>],<sys_submode>]
7.13. AT+ZPAS Check Module Status
This command is used to check module status, including the type of current network and service domain. This command can
just be used as read command (i.e. AT+ZPAS?).
When the network changes, the new type of network is routed to TE using unsolicited code.
Defined values
<network>: the type of current network
No Service, Limited Service, GSM, GPRS, CDMA, EVDO, EHRPD, UMTS, HSDPA, HSUPA, HSPA, HSPA+, LTE, TD-SCDMA
<srv_domain>: service domain
CS_ONLY: CS domain service available.
PS_ONLY: PS domain service available.
CS_PS: CS&PS domain service available.
CAMPED: camped in a cell.
<LTE_MODE>: When <network> is LTE,it will return this parameter,the value can be:
FDD When registered to LTE-FDD
TDD When registered to LTE-TDD
Example
7.14. AT^SYSINFO Request System INFO
The Execution command is used to return current system information.
Parameter
< srv_status>:
0 Out of service
1 Restricted service
2 Service
3 restricted region service
All Rights reserved, No Spreading without GOSUNCN Permission 71
AT Command Reference Guide of Module Product
AT^SYSINFO
^SYSINFO: 2,3,0,15,1
OK
4 Power-saving mode
<srv_domain>:
0 Out of service
1 CS service
2 PS service
3 Ps and CS service
4 EPS service
<roam_status> :
0 Non-roaming status
1 Roaming status
<sys_mode>:
0 Out of service
2 CDMA
3 GSM/GPRS mode
4 HDR
5 WCDMA mode
7 GW
9 LTE
10 GWL
11 TDS
Other values Reserved
<sim_state>:
0 invalid card status
1 valid card status
255 card not existed or PIN required
<reserve>:reserved
<sys_submode>: system sub mode
0 Out of service
1 GSM mode
2 GPRS mode
3 EDGE mode
4 WCDMA mode
5 HSDPA mode
6 HSUPA mode
7 HSUPA and HSDPA mode
8 TD-SCDMA mode
9 TDD-SUBACT
10 FDD-SUBACT
Example
All Rights reserved, No Spreading without GOSUNCN Permission 72
AT Command Reference Guide of Module Product
+ZBAND=<gw_band_mask>,<cdma_band
_mask>,<tdscdma_band_mask>,<lte_ban
d_mask>
<CR><LF>OK<CR><LF>
When MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ ZBAND: <CR><LF>
<CR><LF>[(list of supported<gw_band_name>,)]
[(list of supported<cdma_band_name>,)]
[(list of supported<tdscdma_band_name>,)]
[(list of supported<lte_band_name>)]
<CR><LF>+ZBAND:<CR><LF>
(list of supported <gw_band_mask>s) <CR><LF>
(list of supported <cdma_band_mask>s) <CR><LF>
(listof supported <tdscdma_band_mask>s)<CR><LF>
(list of supported<lte_band_mask>s)<CR><LF>
0X0800000 WCDMA BAND2
0X4000000 WCDMA BAND5
0X80 GSM1800
0x300 GSM900(0x300=0x200+0x100, not
support set to 0x200 or 0x100 separately)
0X400000 WCDMA BAND1
0X2000000000000 WCDMA BAND8
0X400000 WCDMA BAND1
0X4000000 WCDMA BAND5
0X8000000 WCDMA BAND6
0X2000000000000 WCDMA BAND8
0X1000000000000000 WCDMA BAND19
00000000 disable ALL the bands in this mode
ALL/all all the bands of above
7.15. AT+ZBAND Band lock
This command is used to lock the specified band(s) according to the BAND MASK input by the users. The set command needs
four hexadecimal parameters, the second and third one are reserved.
When the parameters are all/ALL, the module band is set to support all the bands, when they are set to 0, it will return ERROR.
Note: We don’ t recommend to use this command, as if the setting parameters is not proper set, it may cause the module crash.
If you has any question to the setting parameter of this command, you can consult to our company.
The lock bands need restarting before they can take effect. Full spectrum will be set at the time of unlocking.
Parameters of set command
<gw_band_mask>: a hexadecimal value that specifies the GW frequency band. You can set the value as the one or the
combination of more as follows:
<cdma_band_mask>: a hexadecimal value that specifies the CDMA frequency band.
0X00 disable ALL the bands in this mode
ALL/all all the bands of above
<tdscdma_band_mask>: a hexadecimal value that specifies the TD-S CDMA frequency band.
0X00 disable ALL the bands in this mode
All Rights reserved, No Spreading without GOSUNCN Permission 73
AT Command Reference Guide of Module Product
0X02 LTE BAND2
0X08 LTE BAND4
0X10 LTE BAND5
0X0800 LTE BAND12
0X10000 LTE BAND 17
0X01 LTE BAND1
0X04 LTE BAND3
0X40 LTE BAND7
0X0080 LTE BAND8
0X80000 LTE BAND 20
0X01 LTE BAND1
0X04 LTE BAND3
0X10 LTE BAND5
0X40 LTE BAND7
0X0080 LTE BAND8
0X0400 LTE BAND11
0X20000 LTE BAND18
0X40000 LTE BAND19
0X100000 LTE BAND 21
(note: module can support one of bands 11 and 21 only, and
we support band 21 in default)
0 disable ALL the bands in this mode
ALL/all all the bands of above
2 WCDMA BAND2
5 WCDMA BAND5
1800 GSM1800
900 GSM900
1 WCDMA BAND1
8 WCDMA BAND8
1 WCDMA BAND1
5 WCDMA BAND5
6 WCDMA BAND6
8 WCDMA BAND8
19 WCDMA BAND19
2 LTE BAND2
4 LTE BAND 4
5 LTE BAND 5
12 LTE BAND 12
17 LTE BAND 17
1 LTE BAND1
3 LTE BAND3
7 LTE BAND7
8 LTE BAND8
20 LTE BAND 20
1 LTE BAND1
3 LTE BAND3
5 LTE BAND5
7 LTE BAND7
8 LTE BAND8
11 LTE BAND11
18 LTE BAND18
19 LTE BAND19
21 LTE BAND 21
ALL/all all the bands of above
<lte_band_mask>: a hexadecimal value that specifies the LTE frequency band, You can set the value as the one or the
combination of more as follows
Parameters of Read command(AT+ZBAND?)
<gw_band_name>: Decimal number, the GW band name.
<cdma_band_name>: Decimal number, the CDMA band name.
0 not support
<tdscdma_band_name>: Decimal number, the TD-SCDMA band name.
0 not support
<lte_band_name>: Decimal number, the LTE band name.
All Rights reserved, No Spreading without GOSUNCN Permission 74
AT Command Reference Guide of Module Product
at+zband=0,0,0,0 -------when the set command is all 0, it stands not scan all the frequency bands, and will return ERROR.
ERROR
Lock only one BAND
AT+ZBAND=800000,0,0,0 -------Lock one band: WCDMA BAND2
OK
AT+ZBAND? -------Read the locked BAND
+ZBAND:
GW: 2
OK
Lock all the supported bands
at+zband=all,0,0,all
OK
Enable band B17(LOCK several bands, the module support band 2,4,5,12,17 )
at+zband=all,0,0,1081A //0X1081A =[0X02(TE BAND2)+0X08(LTE BAND4)+0X10(LTE BAND5)+0X0800(LTE BAND12)+0X10000
(LTE BAND 17)]
OK
Disable band B17(LOCK several bands, the module support band 2,4,5,12)
at+zband=all,0,0,81A //0X81A =[0X02(TE BAND2)+0X08(LTE BAND4)+0X10(LTE BAND5)+0X0800(LTE BAND12)]
OK
List all the supported band_mask
AT+ZBAND=?
+ZBAND:
GW:(800000, 4000000)
CDMA:(0)
TDS:(0)
LTE:(2, 8, 10, 800, 10000)
OK
When register to network, return:
<CR><LF><mode>: <value><CR><LF>
Example(Take ME3630-U for example):
7.16. AT+ZARFCN Return current ARFCN
This command is used to return the current ARFCN.
All Rights reserved, No Spreading without GOSUNCN Permission 75
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
Or return:
<CR><LF>ERROR<CR><LF>
In different network mode, the return value is different.
LTE:
<CR><LF>+ZCDS:<earfch>,<mcc>,<mnc>,<tac_id>,<cell_id>,<rx_power>,<tx_power>,
<sinr>,<ecio>,<pci>,<imsi_buf><CR><LF>
<CR><LF>OK<CR><LF>
TD-SCDMA/ WCDMA:
<CR><LF>+ZCDS:<uarfcn>,<mcc>,<mnc>,<lac_id>,<cell_id>,<rx_power>,<tx_power>,
<sinr>,<ecio>,<imsi_buf><CR><LF>
<CR><LF>OK<CR><LF>
GSM:
<CR><LF>+ZCDS:<arfcn>,<mcc>,<mnc>,<lac_id>,<cell_id>,<rx_power>,<tx_power>,<s
inr>,<ecio>,<imsi_buf><CR><LF>
<CR><LF>OK<CR><LF>
Parameters:
<mode>: The registered network
GSM
UMTS
LTE
<value>: the current ARFCN, it has different meaning when the registered network is different.
GSM arfcn
UMTS uarfcn
LTE earfcn
Example
7.17. AT+ZCDS -Query Serving Cell Information
This command is used to query the parameter values of the current serving cell.
Parameter
<channel>: UARFCN UMTS assigned radio channel
<earfcn/arfch/uarfcn>:Absolute Radio Frequency Channel Number of the BCCH carrier
<mcc>: Mobile Country Code
<mnc>: Mobile Network Code
<tac_id> Tracking Area Code
All Rights reserved, No Spreading without GOSUNCN Permission 76
AT Command Reference Guide of Module Product
2. When registered to LTE network:
AT+ZCDS?
+ZCDS:1675,460,1,911B,BB75A31,-99,99,14,-8,363,460019011339325
OK
3. When registered to GSM network:
AT+ZARFCN?
GSM: 108
OK
AT+ZCDS?
+ZCDS:108,460,1,20E6,C8C4,-61,33,0,0,460019011339325
OK
4. When registered to UMTS network:
AT+ZPAS?
+ZPAS: "UMTS","CS_PS"
OK
AT+ZCDS?
+ZCDS:10713,460,1,BB1D,C1D30FF,199,99,0,0,460019011339325
OK
AT+ZARFCN?
UMTS: 10713
OK
<CR><LF>+ZSRSP:<rsrp >,< rsrq>,<rssi >,<sinr><CR><LF>
<cell_id>: Cell identify
<lac_id>: Location Area Code
<pci> Physical cell ID
<sinr> Serving cell SINR information
<rx_power> Receiving Signal strength in dBm
<tx_power> TX power information
<ecio> Pilot Strength
<imsi_buf>: International Mobile Station ID (IMSI)
Example
7.18. AT+ZSRSP Query RSRP,RSRQ,SINR of the main cell
This command is used to query the RSRP,RSRQ,SINR of the module’ s main cell.
Note: This command is only valid when the module register to LTE network.
This command is only supported by module ME3630-E.
All Rights reserved, No Spreading without GOSUNCN Permission 77
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
AT+ZSRSP?
+ZSRSP:"-092.70","-08.70","-065.50","13"
OK
<CR><LF>+ZRSP: <rsrp1>,<rsrq1>,<rsrp2>,<rsrq2>,… ,<sinr><CR><LF>
<CR><LF>OK<CR><LF>
AT+ZARFCN?
LTE: 2850
OK
AT+ZRSP?
+ZRSP:"-1031","-84""-1149","-174""-1094","-113""-1169","-187""-1031","-84",161
OK
Parameter
<rsrp >: Reference Signal Received Power, unit: dBm
<rsrq>: Reference Signal Received Quality , unit: dB
<rssi >: Received Signal Strength Indication
<sinr >: signal to interference plus noise ratio
Example
7.19. AT+ZRSP Query RSRP,RSRQ,SINR of LTE neighbour cell
This command is used to Query RSRP,RSRQ,SINR of LTE neighbour cell.
Note: This command is only available in LTE mode(you can configure by command AT+ZSNT=6,0,0 to lock the LTE mode), and it
will return ERROR in other mode.. you can also send command AT+ZARFCN? To query the network register mode.
Parameters
<rsrpN>: RSRP,Reference Signal Received Power, is 10 times of real RSRP(is equal to the unit is 0.1dBm), If there are several
neighbour cells, this AT command will return rsrp1, rsrp2, … , rsrpN(<rsrp1>,<rsrq1>,<rsrp2>,<rsrq2>,…,<rsrpN>,<rsrqN> ), the max
value of N is 9.
<rsrqN>: RSRQ,Reference Signal Received Quality, is 10 times of real RSRQ(is equal to the unit is 0.1dB), If there are several
neighbour cells, this AT command will return <rsrp1>,<rsrq1>,<rsrp2>,<rsrq2>,…,<rsrpN>,<rsrqN>
<sinr>: signal to interference plus noise ratio,SINR. It is 10 times of real value, and only valid in LTE mode.
Example
All Rights reserved, No Spreading without GOSUNCN Permission 78
AT Command Reference Guide of Module Product
+CGEQOS=[<cid>[,<QCI>[,<DL_GBR>,<UL_G
BR>[,<DL_MBR>,<UL_MBR]]]]
[+CGEQOS: <cid>,<QCI>,[<DL_GBR>,<UL_GBR>],[<DL_MBR>,<UL_MBR>]]
[<CR><LF>+CGEQOS: <cid>,<QCI>,[<DL_GBR>,<UL_GBR>],[<DL_MBR>,<UL_MBR>]
[...]]
+CGEQOS: (range of supported <cid>s),(list of supported <QCI>s),(list of supported
<DL_GBR>s),(list of supported <UL_GBR>s),(list of supported <DL_MBR>s),(list of
supported <UL_MBR>s)
AT+CGEQOS=?
+CGEQOS: (1-24),(0-9),(0-150000),(0-50000),(0-150000),(0-50000)
OK
AT+CGEQOS=1,0
OK
AT+CGEQOS?
+CGEQOS: 1,0,0,0,0,0
7.20. AT+CGEQOS Define EPS quality of service
The set command allows the TE to specify the EPS Quality of Service parameters <cid>, <QCI>, [<DL_GBR> and <UL_GBR>] and
[<DL_MBR> and <UL_MBR>] for a PDP context or Traffic Flows. When in UMTS/GPRS the MT applies a mapping function to
UTMS/GPRS Quality of Service. A special form of the set command, +CGEQOS=<cid> causes the values for context number <cid> to
become undefined.
The read command returns the current settings for each defined QoS.
The test command returns the ranges of the supported parameters as compound values.
Defined values
<cid>: integer type; specifies a particular EPS Traffic Flows definition in EPS and a PDP Context definition in UMTS/GPRS
<QCI>: integer type; specifies a class of EPS QoS (see 3GPP TS 23.203 [85] and 3GPP TS 24.301 [83]).
0 QCI is selected by network
[1 – 4] value range for guaranteed bit rate Traffic Flows
75 value for guaranteed bit rate Traffic Flows
[5 – 9] value range for non-guarenteed bit rate Traffic Flows
79 value for non-guaranteed bit rate Traffic Flows
[128 – 254] value range for Operator-specific QCIs
The QCI values 65, 66, 69 and 70 are not allowed to be requested by the UE. If the TE requests a QCI parameter 65, 66, 69 or 70,
the MT responds with result code +CME ERROR: 181 (unsupported QCI value).
<DL_GBR>: integer type; indicates DL GBR in case of GBR QCI. The value is in kbit/s. This parameter is omitted for a non-GBR QCI.
<UL_GBR>: integer type; indicates UL GBR in case of GBR QCI. The value is in kbit/s. This parameter is omitted for a non-GBR QCI .
<DL_MBR>: integer type; indicates DL MBR in case of GBR QCI. The value is in kbit/s. This parameter is omitted for a non-GBR QCI .
<UL_MBR>: integer type; indicates UL MBR in case of GBR QCI. The value is in kbit/s. This parameter is omitted for a non-GBR QCI.
Example
All Rights reserved, No Spreading without GOSUNCN Permission 79
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<err><CR><LF>
<CR><LF>+ZMONI:(0-2)<CR><LF>
<CR><LF>OK<CR><LF>
When <n>=0, the response is the information of main cell
When register to LTE:
<CR><LF>+ZMONI:<mode>,<s/n>,<earfcn>,<band>,<mcc>,<mnc>,<tac_id>,<cell_id>,<pci>,<rsr
p>,<rsrq>,<rx_pwr>,<sinr>,<ecio><CR><LF>
<CR><LF>OK<CR><LF>
When register to WCDMA:
<CR><LF>+ZMONI:<mode>,<s/n><uarfcn>,<band>,<mcc>,<mnc>,<lac_id>,<cell_id>,<psc>,<UR
A>,<rscp>,<rx_power>,<ecio><CR><LF>
<CR><LF>OK<CR><LF>
When register to GSM:
<CR><LF>+ZMONI:<mode>,<s/n>,<arfcn>,<band>,<mcc>,<mnc>,<lac_id>,<cell_id>,<bsic>,<c1>,
<c2>,<timadv>,<rx_power>,<sinr>,<ecio><CR><LF>
<CR><LF>OK<CR><LF>
When <n>=1, the response is the information of neighbor cells
When neighbor cell is GSM, the GSM neighbor cells can be 6 at most:
<CR><LF>+ZMONI:<mode>,<s/n>,<LAC>,<cell_id>,<ARFCN>,<rx_pwr><CR><LF>
<CR><LF>OK<CR><LF>
When neighbor cell is WCDMA, the WCDMA neighbor cells can be 16 at most:
<CR><LF>+ZMONI:<mode>,<s/n>,<PSC>,<rscp>,<ecio>,<uarfcn>,<rx_pwr><CR><LF>
<CR><LF>OK<CR><LF>
When neighbor cell is LTE, the LTE neighbor cells can be 16 at most:
<CR><LF>+ZMONI:<mode>,<s/n>,<rsrp>,<rsrq>,<physicalCellID>,<arfcn>,<rx_pwr><C
R><LF>
<CR><LF>OK<CR><LF>
7.21. AT+ZMONI Get the information of main& neighbor cells
This command is only supported by firmware of or above ME3630E1CV1.0B10&ME3630J2AV1.0B10 currently.
This command is used to get/set the information of main &neighbor cells.
All Rights reserved, No Spreading without GOSUNCN Permission 80
AT Command Reference Guide of Module Product
When <n>=2, the response is the information of neighbor cells and main cell.
The response format can refer to the above.
EGSM_900
PGSM_900
PCS_1900
Dcs_1800
GSM_850
Invalid band
Not registered
1
2
3
4
5
6
7
8
9
10
11
12
WCDMA EUROPE,JAPAN,and China IMT 2100 band
WCDMA U.S. PCS 1900 band
WCDMA EUROPE and China DCS 1800 band
WCDMA U.S. 1700 band
WCDMA U.S 850 band
WCDMA Japan 800 band
WCDMA Europe 2600 band
WCDMA EUROPE and China 900 band
WCDMA Japan 1700 band
WCDMA BC10-1700 band
WCDMA 1500 band
WCDMA Japan 850 band
LTE band 1
LTE band 3
LTE band 5
LTE band 7
LTE band 8
LTE band 20
The band is the numeric in this mode.
Defined values
<n>: the supported range is 0-2
0 the response of AT+ZMONI? is the information of main cell
1 the response of AT+ZMONI? is the information of neighbor cells
2 the response of AT+ZMONI? is the information of neighbor cells and main cell.
<mode>:
GSM
UMTS: When register to WCDMA/TD-SCDMA
LTE
<s/n>:
s: stands for the main cell
N1/N2/N3… :stands for the first/second/third… neighbor cell.
<band>
All Rights reserved, No Spreading without GOSUNCN Permission 81
AT Command Reference Guide of Module Product
//return ZMONI parameter range
AT+ZMONI=?
+ZMONI: (0-2)
OK
When <n>=0, and register to GSM, return the main cell information:
A T+ZMONI?
+ZMONI: mode: GSM, s, arfcn: 108, band: 0, mcc: 460, mnc: 1.lac id: 8422, cell id: 51396, bsic: 60, cl: 26, c2: 26, timeadv:
4294967295, rx power: -69, sinr: 0, ecio: 0
OK
When <n>=0, and register to WCDMA, return the main cell information:
AT+ZMONI?
+ZMONI:mode:UMTS,s,uarfcn:10663, band:1,mcc:460,mnc:1,lac_id: 47901,cell_id:203242280, psc: 447, ura: 0, rscp:
-85,rx_power:-85, ecio:-6
OK
When <n>=0, and register to LTE, return the main cell information:
AT+ZMONI?
+ZMONI:mode:LTE,s,earfcn:1675,band:3,mcc:460,mnc:1,tac_id:37147,cell_id:196565553,pci:363,rsrp:-94.80,rsrq:-12.90,rx_po
wer:-63.40,sinr:138,ecio:0
OK
When <n>=1, and register to GSM, return the neighbour cells information:
AT+ZMONI?
<earfcn/arfcn>:Absolute Radio Frequency Channel Number of the BCCH carrier
<mcc>: Mobile Country Code
<mnc>: Mobile Network Code
<tac_id> Tracking Area Code
<cell_id>: Cell identify
<lac_id>: Location Area Code
<pci> Physical cell ID
<bsic>:base station identification code
<psc>:primary Scrambing code
<uarfcn>:umts assigned radio channel
<URA>: UTRAN Registration Area Identity
<rscp>: Received Signal Code Power in dBm
<rsrp>: Reference Signal Received Power
<rsrq>: Reference Signal Received Quality
<c1>:C1 reselection parameter
<c2>:C2 reselection paratmeter
<timadv>: timing advance
<sinr> Serving cell SINR information
<rx_power> Receiving Signal strength in dBm(RSSI)
<ecio> Pilot Strength
Example
All Rights reserved, No Spreading without GOSUNCN Permission 82
AT Command Reference Guide of Module Product
+ZMONI: mode: GSM, N1, lac: 8422, cell_id: 51398, arfcn: 112, rx_power:0.00000
+ZMONI:mode:GSM,N2,lac:8422,cell_id: 53978, arfcn:659, rx_power:0.00000
+ZMONI:mode:GSM, N3, lac: 8422,cell_ id: 51397, arfcn: 117,rx_power:0.00000
+ZMON: mode GSM, N4, lac: 8422, cell-id: 53976, arfcn 667, rx power: 0. 000000
+ZMONI:mode:,N5,lac:8422,cell-id: 53977, arfcn: 676,rx_power:0.000000
OK
When <n>=1, and register to WCDMA, return the neighbour cells information:
AT+ZMONI?
+ZMONI: mode: UMTS, N1, psc: 308, rscp:-8t, ecio: -8, uarfcn: 10663, rx power: -66
+ZMONI:mode: UMTS, N2, psc: 292, rscp: -95, ecio: -16, uarfcn: 10663, rx_power:-66
OK
When <n>=1, and register to LTE, return the neighbour cells information:
AT+ZMONI?
+ZMONI:mode:LTE,N1,rsrp:-94.50,rsrq:-9.70,pci:363,earfcn:1675,rx_power:-66.40
+ZMONI:mode:LTE,N2,rsrp:-105.90,rsrq:-16.70,pci:374,earfcn:1675,rx_power:-79.70
OK
When <n>=2, and register to GSM, return the neighbour cells and main cell information:
AT+ZMONI?
+ZMONI: mode: GSM, s, arfcn: 108, band: 0, mcc: 460, mnc: 1.lac id: 8422, cell id: 51396, bsic: 60, cl: 26, c2: 26, timeadv:
4294967295, rx power: -69, sinr: 0, ecio: 0
+ZMONI: mode: GSM, N1, lac: 8422, cell_id: 51398, arfcn: 112, rx_power:0.00000
+ZMONI:mode:GSM,N2,lac:8422,cell_id: 53978, arfcn:659, rx_power:0.00000
+ZMONI:mode:GSM, N3, lac: 8422,cell_ id: 51397, arfcn: 117,rx_power:0.00000
+ZMON: mode GSM, N4, lac: 8422, cell-id: 53976, arfcn 667, rx power: 0. 000000
+ZMONI:mode:,N5,lac:8422,cell-id: 53977, arfcn: 676,rx_power:0.000000
OK
When <n>=2, and register to UMTS, return the neighbour cells and main cell information:
AT+ZMONI?
+ZMONI:mode:UMTS,s,uarfcn:10663, band:1,mcc:460,mnc:1,lac_id: 47901,cell_id:203242280, psc: 447, ura: 0, rscp:
-85,rx_power:-85, ecio:-6
+ZMONI: mode: UMTS, N1, psc: 308, rscp:-8t, ecio: -8, uarfcn: 10663, rx power: -66
+ZMONI:mode: UMTS, N2, psc: 292, rscp: -95, ecio: -16, uarfcn: 10663, rx_power:-66
OK
When <n>=2, and register to LTE, return the neighbour cells and main cell information:
AT+ZMONI?
+ZMONI:mode:LTE,s,earfcn:1675,band:3,mcc:460,mnc:1,tac_id:37147,cell_id:196565553,pci:363,rsrp:-92.70,rsrq:-9.80,rx_pow
er:-64.50,sinr:163,ecio:0
+ZMONI:mode:LTE,N1,rsrp:-92.70,rsrq:-9.80,pci:363,earfcn:1675,rx_power:-64.50
OK
All Rights reserved, No Spreading without GOSUNCN Permission 83
AT Command Reference Guide of Module Product
+CGDCONT=[<cid>[,<PDP_type>[,<APN>[,<PDP_a
ddr>[,<d_comp>[,<h_comp>[,<pd1>[,…[,pdN]]]]]]
]]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>[,<pd1>[,…[,pdN]]]
[+CGDCONT:
<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>[,<pd1>[,…[,pdN]]]
<CR><LF>
[...]]
<CR><LF>OK<CR><LF>
<CR><LF>+CGDCONT: (range of supported <cid>s),<PDP_type>,,,(list of supported
<d_comp>s),(list of supported <h_comp>s)[,(list of supported <pd1>s)[,…[,(list of
supported <pdN>s)]]]
[+CGDCONT: (range of supported <cid>s), <PDP_type>,,,(list of supported
<d_comp>s),
(list of supported <h_comp>s)[,(list of supported <pd1>s)[,…[,(list of supported
<pdN>s)]]] <CR><LF>
[...]]
<CR><LF>OK<CR><LF>
8. PACKET DOMAIN COMMANDS
8.1. AT+CGDCONT Define PDP Context
The set command specifies PDP context parameter values for a PDP context identified by the (local) context identification
parameter, <cid>.
The read command returns the current settings for each defined context.
The test command returns values supported as a compound value. If the MT supports several PDP types, <PDP_type>, the
parameter value ranges for each <PDP_type> are returned on a separate line.
NOTE: A special form of the set command, +CGDCONT=<cid>, causes the values for context number <cid> to become undefined.
Parameter
<cid>: (PDP Context Identifier) a numeric parameter which specifies a particular PDP context definition.
<PDP_type>: (Packet Data Protocol type) a string parameter which specifies the type of packet data protocol
IP Internet Protocol (IETF STD 5)
IPV6 Internet Protocol, version 6 (IETF RFC 2460)
PPP Point to Point Protocol (IETF STD 51)
IPV4V6 Virtual <PDP_type> introduced to handle dual IP stack UE capability. (See 3GPP TS 24.301 [83])
<APN>: (Access Point Name) a string parameter which is a logical name that is used to select the GGSN or the external packet
data network.
If the value is null or omitted, then the subscription value will be requested.
<PDP_address>: a string parameter that identifies the MT in the address space applicable to the PDP.
If the value is null or omitted, then a value may be provided by the TE during the PDP startup procedure or, failing that, a
All Rights reserved, No Spreading without GOSUNCN Permission 84
AT Command Reference Guide of Module Product
AT+CGDCONT?
+CGDCONT: 1,"IP","uninet","0.0.0.0",0,0
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGATT: <state><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CGATT: (list of supported <state>s) <CR><LF>
<CR><LF>OK<CR><LF>
dynamic address will be requested.
The allocated address may be read using the +CGPADDR command.
<d_comp>: a numeric parameter that controls PDP data compression
0 - off (default if value is omitted)
1 - on (manufacturer preferred compression)
2 - V.42bis
<h_comp>: a numeric parameter that controls PDP header compression (refer 3GPP TS 04.65)
0 – off (default if value is omitted)
1 – on (manufacturer preferred compression)
2 – RFC1144
3 – RFC2507
4 - RFC3095 (applicable for PDCP only)
<pd1> … <pdN>: zero to N string parameters whose meanings are specific to the <PDP_type>
Example
8.2. AT+CGATT PS attach or detach
The execution command is used to attach the MT to, or detach the MT from, the Packet Domain service.
Any active PDP contexts will be automatically deactivated when the attachment state changes to detached.
The read command returns the current Packet Domain service state.
The test command is used for requesting information on the supported Packet Domain service states.
Parameter
<state>: indicates the state of PS attachment
0 – detached
1 – attached
Example
All Rights reserved, No Spreading without GOSUNCN Permission 85
AT Command Reference Guide of Module Product
+CGACT=[<state>[,<cid>[,<cid>[,…]]]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGACT: <cid>,<state><CR><LF>
[<CR><LF>+CGACT: <cid>,<state><CR><LF>
[...]]
<CR><LF>OK<CR><LF>
<CR><LF>+CGACT: (list of supported <state>s)<CR><LF>
<CR><LF>OK<CR><LF>
AT+CGACT?
+CGACT: 1,0
…
OK
AT+CGACT=?
+CGACT: (0,1)
OK
8.3. AT+CGACT PDP context activate or deactivate
The execution command is used to activate or deactivate the specified PDP context (s).
If no <cid>s are specified the activation form of the command activates all defined contexts.
If no <cid>s are specified the deactivation form of the command deactivates all active contexts.
The read command returns the current activation states for all the defined PDP contexts.
The test command is used for requesting information on the supported PDP context activation states.
Parameter
<state>: indicates the state of PDP context activation
0 - deactivated
1 – activated
<cid>: a numeric parameter which specifies a particular PDP context definition (see the +CGDCONT and +CGDSCONT
commands).
Example
8.4. AT+CGPADDR Show PDP address
The execution command returns a list of PDP addresses for the specified context identifiers.
The test command returns a list of defined <cid>s.
All Rights reserved, No Spreading without GOSUNCN Permission 86
AT Command Reference Guide of Module Product
+CGPADDR=[<cid>
[,<cid> [,…]]]
<CR><LF>+CGPADDR: <cid>,<PDP_addr><CR><LF>
[<CR><LF>+CGPADDR: <cid>,<PDP_addr><CR><LF>
[...]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGPADDR: (list of defined <cid>s)<CR><LF>
<CR><LF>OK<CR><LF>
AT+CGPADDR=1
+CGPADDR: 1,10.245.21.75
OK
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGEREP: <mode>,<bfr><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CGEREP: (list of supported <mode>s),(list of supported <bfr>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter
<cid>: a numeric parameter which specifies a particular PDP context definition (see the +CGDCONT and +CGDSCONT
commands). If no <cid> is specified, the addresses for all defined contexts are returned.
<PDP_address>: a string that identifies the MT in the address space applicable to the PDP. The address may be static or
dynamic. For a static address, it will be the one set by the +CGDCONT and +CGDSCONT commands when the context was defined.
For a dynamic address it will be the one assigned during the last PDP context activation that used the context definition referred to
by <cid>. <PDP_address> is omitted if none is available.
Example
8.5. AT+CGEREP Packet Domain event reporting
Set command enables or disables sending of unsolicited result codes, +CGEV: XXX from MT to TE in the case of certain events
occurring in the Packet Domain MT or the network. If a setting is not supported by the MT, ERROR or +CME ERROR:<err> is returned.
Read command returns the current mode and buffer settings
Test command returns the modes and buffer settings supported by the MT as compound values.
The following unsolicited result codes and the corresponding events are defined -
+CGEV: REJECT <PDP_type>, <PDP_addr>
A network request for PDP context activation occurred when the MT was unable to report it to the TE with a +CRING
unsolicited result code and was automatically rejected.
+CGEV: NW REACT <PDP_type>, <PDP_addr>, [<cid>]
The network has requested a context reactivation. The <cid> that was used to reactivate the context is provided if known
to the MT.
All Rights reserved, No Spreading without GOSUNCN Permission 87
AT Command Reference Guide of Module Product
AT+CGEREP=?
+CGEREP: (0-2),(0-1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
+CGEV: NW DEACT <PDP_type>, <PDP_addr>, [<cid>]
The network has forced a context deactivation. The <cid> that was used to activate the context is provided if known to
the MT.
+CGEV: ME DEACT <PDP_type>, <PDP_addr>, [<cid>]
The mobile termination has forced a context deactivation. The <cid> that was used to activate the context is provided if
known to the MT.
+CGEV: NW DETACH
The network has forced a PS detach. This implies that all active contexts have been deactivated. These are not reported
separately.
+CGEV: ME DETACH
The mobile termination has forced a PS detach. This implies that all active contexts have been deactivated. These are not
reported separately.
+CGEV: NW CLASS <class>
The network has forced a change of UE class. The highest available class is reported.
+CGEV: ME CLASS <class>
The mobile termination has forced a change of UE class. The highest available class is reported.
Parameter
<mode>: controls the processing of unsolicited result codes specified within this command
0 buffer unsolicited result codes in the MT; if MT result code buffer is full, the oldest ones can be discarded. No codes are
forwarded to the TE.
1 discard unsolicited result codes when MT-TE link is reserved (e.g. in on-line data mode); otherwise forward them directly
to the TE
2 buffer unsolicited result codes in the MT when MT-TE link is reserved (e.g. in on-line data mode) and flush them to the TE
when MT-TE link becomes available; otherwise forward them directly to the TE
<bfr>:
0 MT buffer of unsolicited result codes defined within this command is cleared when <mode> 1 or 2 is entered
1 MT buffer of unsolicited result codes defined within this command is flushed to the TE when <mode> 1 or 2 is entered
(OK response shall be given before flushing the codes)
Example
8.6. AT+CGSMS Select service for MO SMS messages
The set command is used to specify the service or service preference that the MT will use to send MO SMS messages.
The read command returns the currently selected service or service preference.
The test command is used for requesting information on the currently available services and service preferences.
All Rights reserved, No Spreading without GOSUNCN Permission 88
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>+CGSMS: <service><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CGSMS: (list of currently available <service>s)<CR><LF>
<CR><LF>OK<CR><LF>
AT+CGSMS?
+CGSMS: 1
OK
AT+CGSMS=?
+CGSMS: (0-3)
OK
$QCPDPP=<cid>,<auth_type>,<password>,<username>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>$QCPDPP: <cid>,<auth_type>[,<username>]<CR><LF>
[$QCPDPP: <cid>,<auth_type>[,<username>] <CR><LF>
[...]]
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<CR><LF>$QCPDPP: (list of supported <cid>s), (list of supported
<auth_type>s)<CR><LF>
Parameter
<service>: a numeric parameter which indicates the service or service preference to be used
0 Packet Domain
1 circuit switched
2 Packet Domain preferred (use circuit switched if GPRS not available)
3 circuit switched preferred (use Packet Domain if circuit switched not available)
Example
8.7. AT$QCPDPP Set PDP Authentication parameters
This command is used to set the PDP Authentication parameters, that is the username/password assigned by network provider
in LTE/WCDMA/TD-SCDMA/GSM mode. If there is no username/password, you don’ t need to set this command.
This command can be only used when the module has registered to network.
All Rights reserved, No Spreading without GOSUNCN Permission 89
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>
AT$QCPDPP=2,3,"password","user"
OK
AT$QCPDPP?
$QCPDPP: 1,0
$QCPDPP: 2,3,"user"
$QCPDPP: 3,0
$QCPDPP: 4,0
$QCPDPP: 5,0
OK
AT$QCPDPP=?
$QCPDPP: (1-24),(0-3),,
OK
AT$QCPDPP
OK
+ZECMCALL=<action>[,<APN>[,<P
DP_type>[,<username>[,<passwd
>[,<auth_type>]]]]]
+ZECMCALL: CONNECT
or
ERROR
+ZECMCALL: <ip_type>,<ip_addr>,<gateway>,<pri_ dns>,<sec_dns>
OK
Parameters
<cid> (1-24) a numeric parameter which specifies a particular PDP context definition
<auth_type>:a numeric parameter specified the Authentication type
0-Disable PDP Authentication
1 – PAP
2 – CHAP
3-PAP,CHAP auto
<password>: password assigned by network provider in LTE/WCDMA/TD-SCDMA/GSM
<user>: username assigned by network provider in LTE/WCDMA/TD-SCDMA/GSM
Example
8.8. AT+ZECMCALL Make ECM data call
This command used to make data call based on ECM interface. The data call parameter can be also configured by +CGDCONT
command.
All Rights reserved, No Spreading without GOSUNCN Permission 90
AT Command Reference Guide of Module Product
+ZECMCALL: (0-1),,(1-3),,,(1-2)
OK
AT+ZECMCALL=1
+ZECMCALL: CONNECT
OK
AT+ZECMCALL?
+ZECMCALL: IPV4, 1.1.108.220, 1.1.108.221, 192.232.9.24, 221.11.1.67
OK
Defined values
<action>: a number used to control connect or disconnect the data call.
1 – CONNECT
0 – DISCONNECT
<APN>: (Access Point Name) a string parameter which is a logical name that is used to select the P-GW or the external
packet data network.
<PDP_type>: A number used to control the type of packet data protocol
1 – IPV4 Internet Protocol, version 4
2 – IPV6 Internet Protocol, version 6
3--IPV4IPV6 Internet Protocol, version 6&4
<username>: The string parameter username used to authentication
<passwd >: The string parameter password used to authentication
<auth_type>: a number used to control authentication type
1 – PAP
2 – CHAP
<ip_type>: ip type.
“V4” – IPV4 address
“V6” – IPV6 address
<ip_addr>: IP address
<gateway>: gateway address
<pri_dns>: primary DNS address
<sec_dns>: second DNS address
Example
8.9. +ZECMCALL active report the state of auto-dial
Enable auto-dial function, active report function default close.
This command is used to control ECM active report the state of auto-dial by change NV(ecmcall_urc) of AP.
The command will take effect after restart.
Use at+znvwrite=ecmcall_urc,1 command to enable active report the state of auto-dial;
Use at+znvwrite=ecmcall_urc,0 command to disable active report the state of auto-dial;
Use at+znvread=ecmcall_urc command to query state of auto-report switch.
This command is supported on ME3630J2A V1.0B12 , ME3630J2ASV1.0B05 and above
All Rights reserved, No Spreading without GOSUNCN Permission 91
AT Command Reference Guide of Module Product
+ZECMCALL: CONNECTED
or
+ZECMCALL: DISCONNECTED, < code>
+ZECMCALL: CONNECTED
+ZECMCALL: DISCONNECTED,UE is detached
+ZECMCALL: DISCONNECTED,2003
+ZNVWRITE=<auto_dial_mode>,<VALUE><CR>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
version.
Parameter:
<code>
UE is detached----when UE disconnect the ECM
2003-----mistake code
Example
8.10. AT+ZNVWRITE Enable auto-dial function
This command is supported on ME3630J2A V1.0B12 , ME3630J2ASV1.0B05 and above
version.
This command is used to control ECM auto dial by change NV(auto_dial_mode) of AP. This command will take
effect after restart the module.
You should switch USB port according to either command as follows before enable auto-dial function:
1) AT+ZSWITCH=x, AT+ZADSET=r
2) AT+ZSWITCH=l, AT+ZADSET=e
Parameter:
<auto_dial_mode>: string type, auto-dial mode, fixed value, that is auto_dial_mode,.
<value>:default void, means close auto-dial function.
1-----open auto-dial function
0-----close auto-dial function
Example
All Rights reserved, No Spreading without GOSUNCN Permission 92
AT Command Reference Guide of Module Product
AT+ZNVWRITE=auto_dial_mode,enabled //open auto-dial function
OK
AT+ZECMCALL? //query ECM data dial state
+ZECMCALL: IPV4, 10.113.243.70, 10.113.243.69, 211.137.130.18, 211.137.130.20 //only support
auto-dial under IPV4 protocol, auto-dial can be controlled after ECM data connect successfully
OK
AT+ZNVWRITE=auto_dial_mode,disabled //close auto-dial function
OK
+ZNVREAD=<auto_dial_mode><CR>
<CR><LF>+ZNVREAD: auto_dial_mode:<VALUE><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
at+znvread=auto_dial_mode
+ZNVREAD: auto_dial_mode:
OK
AT+ZNVWRITE=auto_dial_mode,1
OK
AT+ZNVREAD=auto_dial_mode
+ZNVREAD: auto_dial_mode:1
OK
8.11. AT+ZNVREAD Query the state of auto-dial function
This command is supported on ME3630J2A V1.0B12 , ME3630J2ASV1.0B05 and above
version.
This command can query whether the ECM auto-dial function is open or not by read the NV(auto_dial_mode)
of AP.
Parameter:
<auto_dial_mode>: string type, auto-dial mode, fixed value, that is auto_dial_mode.
<VALUE>:
void --default void, means close auto-dial function(when not set the +ZNVWRITE command)
0 -- auto-dial function is disabled
1 --auto-dial function is enabled
Example
All Rights reserved, No Spreading without GOSUNCN Permission 93
AT Command Reference Guide of Module Product
+ZSDHCPLEASE=<dhcplease_t
ime><CR>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZSDHCPLEASE:The value cannot be less than
120<CR><LF>
OK<CR><LF>
<CR><LF>+ZSDHCPLEASE:current_dhcplease_time<CR><LF>
OK<CR><LF>
AT+ZSDHCPLEASE=119 //less than 120, response ERROR
ERROR
AT+ZSDHCPLEASE=180 //set as 180s, that is 3 minutes
OK
at+zsdhcplease=? // dhcplease_time value should not less than 120s
+ZSDHCPLEASE:The value cannot be less than 120
OK
AT+ZSDHCPLEASE? //query current dhcplease_time value
+ZSDHCPLEASE:180
OK
8.12. AT+ZSDHCPLEASE Amend DHCP LEASE TIME
This command is supported on ME3630J2A V1.0B12 , ME3630J2ASV1.0B05 and above
version.
This command is used to control IP address lease time by amend NV(dhcp_lease_time) of AP. This command
will take effect after restart.
Parameter
<dhcplease_time >: dhcpe_lease_time value, minimum value is 120, and default value is 43200(unit: s)
Example
All Rights reserved, No Spreading without GOSUNCN Permission 94
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGMODE: <flag><CR><LF>
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGMODE: (1-3)<CR><LF>
<CR><LF>OK<CR><LF>
AT+ZGMODE=1
OK
AT+ZGMODE=?
+ZGMODE: (1-3)
OK
9. GPS RELATIVE COMMANDS
9.1. AT+ZGINIT Initialization Location command
Init a client for GPS application.
Example
9.2. AT+ZGMODE Set location mode
This command is used for set location mode by user.
Defined values
<flag>:
1: MS-BASED
2: MS-ASSISTED
3: STANDALONE_ONLY (Default Value)
Example
9.3. AT+ZGFIXRATE Set location mode choice when reset GPS
This command is used to set location mode choice when reset GPS.
All Rights reserved, No Spreading without GOSUNCN Permission 95
AT Command Reference Guide of Module Product
+ZGFIXRATE=<flag1>,<flag2>
<CR><LF>OK<CR><LF>
MS error:
E<CR><LF>RROR<CR><LF>
<CR><LF>+ZGFIXRATE: <flag1>,<flag2><CR><LF>
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGFIXRATE: (1-100000),(1-255)<CR><LF>
<CR><LF>OK<CR><LF>
AT+ZGFIXRATE=2,5
OK
AT+ZGFIXRATE?
+ZGFIXRATE: 2,5
OK
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGQOS: <flag1>,<flag2><CR><LF>
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGQOS: (2-10000),(0-255)<CR><LF>
<CR><LF>OK<CR><LF>
AT+ZGQOS=50,100
OK
AT+ZGQOS?
Defined values
<flag1>: Set location mode when reset GPS by using AT+ZGRST, 1:one-shot mode, others: tracking mode. Default value
is 1, range 1~100000.
<flag2>: Positioning time interval in second, default value is 1, the range is 1-255, This has been abandoned.
Example
9.4. AT+ZGQOS Set QOS for location
This command used for set QOS for location.
Defined values
<flag1>: Positioning accuracy (default : 50), the range is 2-10000
<flag2>: Desired level of performance. (0-255) (default: 255)
Example
All Rights reserved, No Spreading without GOSUNCN Permission 96
AT Command Reference Guide of Module Product
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGURL: <flag><CR><LF>
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
AT+ZGURL= http://supl.google.com:7276
OK
AT+ZGURL?
+ZGURL: http://supl.google.com:7276
OK
<CR><LF>OK<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGRUN: <running_state><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+ZGRUN: (0-2)<CR><LF>
<CR><LF>OK<CR><LF>
9.5. AT+ZGURL Set URL of SUPL server
This command used for Set URL of SUPL server.
Defined values
<flag>: SUPL server URL
Example
9.6. AT+ZGRUN Location mode choice
Start or stop GPS Application, and choice one-shot or tracking mode location mode.
Defined values
<flag>:
0 Stop GPS location command
1 Start one-shot location mode
2 Start tracking mode (not applicable for MSA), controlled by MS
<running_state>:
All Rights reserved, No Spreading without GOSUNCN Permission 97
AT Command Reference Guide of Module Product
<CR><LF>+ZGPSERROR: <flag><CR><LF>
When restart success, return:
<CR><LF>OK<CR><LF>
0 GPS is off
1 GPS is on and in one-shot location mode
2 GPS is on and in tracking mode
Example
9.7. +ZGPSERROR Report error code
Report error code when some error happen in location process
Defined values
<flag>:
0 ERROR_ACCESS_DENIED
1 ERROR_ BAD_NET_RESP
2 ERROR_ BUSY
3 ERROR_ CANCELLED
4 ERROR_ CONNECTION_ABORTED
5 ERROR_ CONTINUE
6 ERROR_ FATAL_ERROR
7 ERROR_ GEN_FAILURE
8 ERROR_ INCORRECT_ADDRESS
9 GPS_ERR_INSUFFICIENT_SAT_SIGNAL
10 ERROR_ INVALID_CATEGORY
11 ERROR_ INVALID_PARAMETER
12 ERROR_ NETWORK_UNREACHABLE
13 ERROR_ NOT_AUTHENTICATED
14 ERROR_ NOT_CONNECTED
15 ERROR_ REQUEST_ABORTED
16 ERROR_ RETRY
17 ERROR_ OUTOFMEMORY
18 ERROR_ TIMEOUT
19 ERROR_ RADIO_OFF
Example
9.8. AT+ZGRST Reset GPS
This command executes GPS reset.
All Rights reserved, No Spreading without GOSUNCN Permission 98
AT Command Reference Guide of Module Product
<CR><LF>+ZGRST: OK<CR><LF>
When set different modes, the time for +ZGRST returning is different, 20 second for cold restart.
When failed to start searching ephemeris,return:
<CR><LF>OK<CR><LF>
<CR><LF>+ZGRST: ERROR<CR><LF>
MS error:
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGRST: (0-2)<CR><LF>
<CR><LF>OK<CR><LF>
+ZGPSAPN=<id>,<PDP_type>,<APN>[,<s
rv_system_type>]<CR>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<CR><LF>+ZGPSAPN:<id>,<PDP_type>,<APN>,<srv_system_type><C
R><LF>
[+ZGPSAPN:<id>,<PDP_type>,<APN>,<srv_system_type>] <CR><LF>
[...]]
<CR><LF>OK<CR><LF>
<CR><LF>+ZGPSAPN:(1-6),,,(0x1-0x1F)<CR><LF>
<CR><LF>OK<CR><LF>
Defined values
<mode>:
0 Cold restart
1 Warm restart
2 Hot restart
NOTE: This command should be operated when GPS is enabled. The location mode is determined by AT+ZGFIXRATE.
Example
9.9. AT+ZGPSAPN Set AGPS APN
This command is used to set the APN of AGPS. And this set command will take effect once setting. The setting value will be
saved after restart.
Defined values
<id>: ( 1-6): used to assign one APN configuration, a strip of configuration for one type of network, recommend to set as 1
<PDP_type>: used to assign data protocol, recommend to fit to net type
IPV4 Internet protocol V4
IPV6 Internet protocol V6
All Rights reserved, No Spreading without GOSUNCN Permission 99