Quectel EM12EG12EG18 at Commands Manual V1.0
Quectel EM12EG12EG18 at Commands Manual V1.0
Quectel EM12EG12EG18 at Commands Manual V1.0
AT Commands Manual
Rev. EM12&EG12&EG18_AT_Commands_Manual_V1.0
Date: 2020-01-08
Status: Released
www.quectel.com
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
GENERAL NOTES
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF
QUECTEL WIRELESS SOLUTIONS CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION
AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT ARE
FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF
DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR
REGISTRATION OF A UTILITY MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2020. All rights reserved.
EM12&EG12&EG18_AT_Commands_Manual 1 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Revision History
Revision Date Author Description
Amos ZHANG/
1.0 2020-01-08 Initial
Ned WANG
EM12&EG12&EG18_AT_Commands_Manual 2 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Contents
1 Introduction .......................................................................................................................................... 9
1.1. Scope of the Document ............................................................................................................. 9
1.2. AT Command Syntax ................................................................................................................ 9
1.3. Supported Character Sets ....................................................................................................... 10
1.4. AT Command Interface ........................................................................................................... 10
1.5. Unsolicited Result Code .......................................................................................................... 10
1.6. Turn off Procedure ................................................................................................................... 11
EM12&EG12&EG18_AT_Commands_Manual 3 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 4 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 5 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 6 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 7 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Table Index
EM12&EG12&EG18_AT_Commands_Manual 9 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
1 Introduction
This document presents the AT command set supported by Quectel LTE-A modules EM12, EG12 and
EG18.
The "AT" or "at" prefix must be set at the beginning of each command line. To terminate a command line,
<CR> should be entered. Commands are usually followed by a response that includes
"<CR><LF><response><CR><LF>". Throughout this document, only the responses are presented,
"<CR><LF>" are omitted intentionally.
All these AT commands can be split into three categories syntactically: "Basic Syntax", "S Parameter
Syntax", and "Extended Syntax". They are listed as follows:
Basic Syntax
These AT commands are in the format of "AT<x><n>", or "AT&<x><n>", in which "<x>" is the command,
and "<n>" is/are the argument(s) for that command. An example of this is "ATE<n>", which tells the DCE
whether received characters should be echoed back to the DTE according to the value of "<n>". "<n>" is
optional and the default value will be used if it is null.
S Parameter Syntax
These AT commands are in the format of "ATS<n>=<m>", in which "<n>" is the index of the S register to
set, and "<m>" is the value to assign to it.
Extended Syntax
The types of these AT commands and the corresponding responses are shown in the following table.
EM12&EG12&EG18_AT_Commands_Manual 9 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Write Command AT+<x>=<…> The command sets the user-definable parameter values.
The AT command interface of EM12/EG12/EG18 uses the GSM character set by default and supports the
following character sets:
GSM format
UCS2
IRA
The character set can be configured and interrogated by executing the AT+CSCS command (3GPP TS
27.007) and it is defined in 3GPP TS 27.005. The character set affects transmission and reception of SMS
and SMS Cell Broadcast Messages, as well as the entry and display of phone book entries text field.
The AT command interface includes two USB ports (USB MODEM port and USB AT port) and one main
UART port. The main UART port and two USB ports support AT command communication and data
transfer.
As an Unsolicited Result Code and a report message, URC is not issued as part of the response related
to an executed AT command. URC is a report message issued by the EM12/EG12/EG18 without being
requested by the TE and it is issued automatically when a certain event occurs. Typical events leading to
URCs are incoming calls (RING), received short messages, high/low voltage alarm, high/low temperature
alarm, etc.
EM12&EG12&EG18_AT_Commands_Manual 10 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
It is recommended to execute AT+QPOWD command to power off the module, as it is the safest and best
way. This procedure is realized by letting the module log off from the network and allowing the software to
enter a secure and safe data state before disconnecting the power supply.
After sending AT+QPOWD, please do not enter any other AT commands. When the command is
executed successfully, the module will output message POWERED DOWN and then enter into the
power-off state. In order to avoid data loss, it is suggested to wait for 1s to disconnect the power supply
after the URC POWERED DOWN is outputted. If POWERED DOWN cannot be received within 65s, the
power supply shall be disconnected compulsorily.
EM12&EG12&EG18_AT_Commands_Manual 11 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
2 General Commands
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
ATI
Quectel
EM12
Revision: EM12GPAR01A07M4G
OK
EM12&EG12&EG18_AT_Commands_Manual 12 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command returns a manufacturer identification text. It is identical with AT+CGMI command.
OK
Maximum Response Time 300ms
Reference
V.25ter
The command returns an MT model identification text. It is identical with AT+CGMM command.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
EM12&EG12&EG18_AT_Commands_Manual 13 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to deliver an identification text of MT firmware version. It is identical with
AT+CGMR command.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
AT+GMR
EM12GPAR01A07M4G
OK
The command returns a manufacturer identification text. It is identical with AT+GMI command.
EM12&EG12&EG18_AT_Commands_Manual 14 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Reference
3GPP TS 27.007
The command returns an MT model identification text. It is identical with AT+GMM command.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
The command is used to deliver an identification text of MT firmware version. It is identical with AT+GMR
command.
EM12&EG12&EG18_AT_Commands_Manual 15 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
The command requests the International Mobile Equipment Identity (IMEI) number of the ME which
permits the user to identify individual ME device. It is identical with AT+CGSN command.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
NOTE
The IMEI is unique to every ME, thus it can be used to identify an ME.
EM12&EG12&EG18_AT_Commands_Manual 16 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command requests International Mobile Equipment Identity (IMEI) number of the ME. It is identical
with AT+GSN command.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
NOTE
The IMEI is unique to every ME, thus it can be used to identify an ME.
The command is used to reset AT command settings to the manufacturer default values.
EM12&EG12&EG18_AT_Commands_Manual 17 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
The command is used to display the current settings of several AT command parameters, even including
the single-letter AT command parameters which are not readable.
AT&V
&C: 1
&D: 2
&F: 0
&W: 0
E: 1
Q: 0
V: 1
X: 4
Z: 0
S0: 0
S3: 13
S4: 10
S5: 8
S6: 2
S7: 0
S8: 2
S10: 15
OK
EM12&EG12&EG18_AT_Commands_Manual 18 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command stores the current AT command settings to a user defined profile in non-volatile memory.
The AT command settings will be automatically restored from the user defined profile during power-up or if
ATZ is executed.
Parameter
2.13. ATZ Restore All AT Command Settings from User Defined Profile
The command first resets the AT command settings to their manufacturer defaults, similar to AT&F.
Afterwards the AT command settings are restored from the user defined profile in non-volatile memory, if
they have been stored with AT&W before.
EM12&EG12&EG18_AT_Commands_Manual 19 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
The command is used to control whether the result code is transmitted to the TE. Other information text
transmitted as response is not affected.
If <n>=1:
(none)
Maximum Response Time 300ms
Reference
V.25ter
Parameter
The command determines the contents of header and trailer transmitted with AT command result codes
and information responses.
The numeric equivalents and brief descriptions of results code are listed in the following Table 3.
EM12&EG12&EG18_AT_Commands_Manual 20 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
When <value>=1
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
ATV1 //Set <value>=1
OK
AT+CSQ
+CSQ: 30,99
Table 3: The Numeric Equivalents and Brief Description of ATV0&ATV1 Result Codes
EM12&EG12&EG18_AT_Commands_Manual 21 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
"@" (Wait for Quiet Answer) dial modifier was used, but
NO ANSWER 8 remote ringing followed by five seconds of silence was not
detected before expiration of the connection timer (S7)
The command is used to control whether TA echoes characters received from TE or not during AT
command mode.
Parameter
The command is used to repeat previous AT command line, and "/" acts as the line termination character.
EM12&EG12&EG18_AT_Commands_Manual 22 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
ATI
Quectel
EM12
Revision: EM12GPAR01A07M4G
OK
A/ //Repeat the previous command.
Quectel
EM12
Revision: EM12GPAR01A07M4G
OK
The command determines the character recognized by TA to terminate an incoming command line. It is
also generated for result codes and information text, along with character value set via ATS4.
OK
Write Command Response
ATS3=<n> This parameter setting determines the character recognized
by TA to terminate an incoming command line. TA also returns
this character in output.
OK
Maximum Response Time 300ms
Reference
V.25ter
EM12&EG12&EG18_AT_Commands_Manual 23 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
The command determines the character generated by TA for result code and information text, along with
the command line termination character set via ATS3.
OK
Write Command Response
ATS4=<n> This parameter setting determines the character generated
by TA for result code and information text.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
The command is used to determine the value of editing character used by TA to delete the immediately
preceding character from the AT command line (i.e. equates to backspace key).
OK
EM12&EG12&EG18_AT_Commands_Manual 24 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
2.21. ATX Set CONNECT Result Code Format and Monitor Call
Progress
The command is used to determine whether TA transmits particular result codes to TE or not. It also
controls whether TA detects the presence of a dial tone when it begins dialing and the engaged tone (busy
signal) or not.
ATX Set CONNECT Result Code Format and Monitor Call Progress
Execution Command Response
ATX<value> This parameter setting determines whether TA detects the
presence of dial tone and busy signal or not and whether TA
transmits particular result codes or not.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<value> 0 CONNECT result code only returned, dial tone and busy detection are both
disabled
1 CONNECT<text> result code only returned, dial tone and busy detection are
both disabled
2 CONNECT<text> result code returned, dial tone detection is enabled, busy
detection is disabled
EM12&EG12&EG18_AT_Commands_Manual 25 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to control the functionality level. It can also be used to reset the UE.
OK
Read Command Response
AT+CFUN? +CFUN: <fun>
OK
Write Command Response
AT+CFUN=<fun>[,<rst>] OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 26 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+CFUN=0 //Switch UE to minimum functionality.
OK
AT+COPS?
+COPS: 0 //No operator is registered.
OK
AT+CPIN?
+CME ERROR: 13 //(U)SIM failure
AT+CFUN=1 //Switch UE to full functionality.
OK
+CPIN: READY
+QUSIM: 1
+QIND: PB DONE
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE CMCC",7 //Operator is registered.
OK
The command is used to control the format of error result codes: ERROR, error numbers or verbose
messages as +CME ERROR: <err>.
EM12&EG12&EG18_AT_Commands_Manual 27 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
OK
Write Command Response
AT+CMEE=<n> TA disables or enables the use of result code +CME ERROR:
<err> as an indication of an error related to the functionality of
the MT.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CMEE=0 //Disable result code.
OK
AT+CPIN?
ERROR //Only ERROR will be displayed.
AT+CMEE=1 //Enable error result code with numeric values.
OK
AT+CPIN?
+CME ERROR: 10
AT+CMEE=2 //Enable error result code with verbose (string)
values.
OK
AT+CPIN?
+CME ERROR: SIM not inserted
The Write Command informs the MT which character set is used by the TE. This enables the MT to
convert character strings correctly between TE and MT character sets.
EM12&EG12&EG18_AT_Commands_Manual 28 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Read Command Response
AT+CSCS? +CSCS: <chset>
OK
Write Command Response
AT+CSCS=<chset> Set character set <chset> which is used by the TE. Then the
MT can convert character strings correctly between the TE
and MT character sets.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CSCS? //Query the current character set.
+CSCS: "GSM"
OK
AT+CSCS="UCS2" //Set the character set to "UCS2".
OK
AT+CSCS?
+CSCS: "UCS2"
OK
EM12&EG12&EG18_AT_Commands_Manual 29 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Write Command If the configuration parameter <urcportvalue> is omitted,
AT+QURCCFG="urcport"[,<urcport return the current configuration:
value>] +QURCCFG: "urcport",<urcportvalue>
OK
Parameter
NOTES
Example
AT+QURCCFG=?
+QURCCFG: "urcport",("usbat","usbmodem","uart1","all")
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","usbat"
OK
AT+QURCCFG="urcport","usbmodem"
EM12&EG12&EG18_AT_Commands_Manual 30 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","usbmodem"
OK
EM12&EG12&EG18_AT_Commands_Manual 31 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Execution Command Response
AT+CPAS TA returns the activity status of MT:
+CPAS: <pas>
OK
Or
ERROR
Parameter
<pas> 0 Ready
3 Ringing
4 Call in progress or call hold
EM12&EG12&EG18_AT_Commands_Manual 31 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+CPAS
+CPAS: 0 //MT is idle.
OK
RING
AT+CLCC
+CLCC: 1,1,4,0,0,"15695519173",161
OK
AT+CPAS
+CPAS: 3 //MT is ringing.
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"10010",129
OK
AT+CPAS
+CPAS: 4 //Call in progress.
OK
The command is used to query an extended error and report the cause of the last failed operation, such
as:
The release cause <text> is a text to describe the cause information given by the network.
EM12&EG12&EG18_AT_Commands_Manual 32 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Or
ERROR
Parameter
<text> Release cause text. Reason for the last call failure to setup or release (listed in
Chapter 13.9). Both CS and PS domain call types are reported. Cause data is
captured from Call Manager events and cached locally to later use by this command.
EM12&EG12&EG18_AT_Commands_Manual 33 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 34 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
OK
Or
ERROR
Parameter
OK
EM12&EG12&EG18_AT_Commands_Manual 35 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
OK
EM12&EG12&EG18_AT_Commands_Manual 36 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
<bandval> A hexadecimal value that specifies the WCDMA frequency band. If set
<bandval> to 0, it means not to change the WCDMA frequency band.
00000000 No change
00000010 WCDMA 2100 B1
00000020 WCDMA 1900 B2
00000040 WCDMA 850 B5
00000080 WCDMA 900 B8
00000200 WCDMA 1700 B4
00000800 WCDMA 1800 B3
00001000 WCDMA Japan 850 B19
00004000 WCDMA Japan 1700 B9
0000FFFF Any frequency band
<ltebandval> A hexadecimal value that specifies the LTE frequency band. If it is set to 0 or
0x40000000, it means not to change LTE frequency band. (eg.: 0x15=0x1(LTE
B1)+0x4(LTE B3)+0x10(LTE B5))
0x1 (CM_BAND_PREF_LTE_EUTRAN_BAND1) LTE B1
0x2 (CM_BAND_PREF_LTE_EUTRAN_BAND2) LTE B2
0x4 (CM_BAND_PREF_LTE_EUTRAN_BAND3) LTE B3
0x8 (CM_BAND_PREF_LTE_EUTRAN_BAND4) LTE B4
0x10 (CM_BAND_PREF_LTE_EUTRAN_BAND5) LTE B5
0x20 (CM_BAND_PREF_LTE_EUTRAN_BAND6) LTE B6
0x40 (CM_BAND_PREF_LTE_EUTRAN_BAND7) LTE B7
0x80 (CM_BAND_PREF_LTE_EUTRAN_BAND8) LTE B8
…
0x80000(CM_BAND_PREF_LTE_EUTRAN_BAND20) LTE B20
0x7FFFFFFFFFFFFFFF(CM_BAND_PREF_ANY) Any frequency band
<effect> When to take effect
0 Take effect after UE reboots
1 Take effect immediately
<tdsbandval> Not supported. The default value is 0.
OK
EM12&EG12&EG18_AT_Commands_Manual 37 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
OK
EM12&EG12&EG18_AT_Commands_Manual 38 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 39 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Parameter
OK
EM12&EG12&EG18_AT_Commands_Manual 40 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
OK
Parameter
<enable> 0 Refuse to establish multi PDNs with the same APN profile
1 Allow to establish multi PDNs with the same APN profile
EM12&EG12&EG18_AT_Commands_Manual 41 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Parameter
OK
EM12&EG12&EG18_AT_Commands_Manual 42 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
<enable> 0 URC indication will be output when ring indicator pulse starts.
1 URC indication will be output when ring indicator pulse ends (only effective
when the type of ring indicator is "pulse".
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 43 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
3.3.14. AT+QCFG="sarcfg" Set SAR Power Backoff Value for LTE/WCDMA Bands
OK
Parameter
<RAT> The SAR power backoff value for supported LTE/WCDMA bands.
"LTE_WCDMA" Set/get configuration for all supported LTE&WCDMA bands.
"LTE" Set/get configuration for all supported LTE bands.
"WCDMA" Set/get configuration for all supported WCDMA bands.
<max_power> The value of SAR power backoff [level1]. The value ranges from 60 to 300 (i.e.
6dBm-30dBm). And the default value is 230 (23dBm).
<row_grads> The reduced value for each grade. The default value is 10 (1dBm).
backoff[leveln] = backoff[leveln-1] - <row_grads>
The [leveln] ranges from 2 to 8.
<band> WCDMA:
1 WCDMA B1 WCDMA2100
2 WCDMA B2 WCDMA1900
3 WCDMA B3 WCDMA1700s
4 WCDMA B4 WCDMA1700
5 WCDMA B5 WCDMA850
8 WCDMA B8 WCDMA900
9 WCDMA B9 WCDMA1700
11 WCDMA B11 WCDMA1500
19 WCDMA B19 WCDMA850
LTE:
1 LTE B1
2 LTE B2
EM12&EG12&EG18_AT_Commands_Manual 44 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
3 LTE B3
4 LTE B4
5 LTE B5
6 LTE B6
7 LTE B7
8 LTE B8
9 LTE B9
10 LTE B10
11 LTE B11
12 LTE B12
13 LTE B13
14 LTE B14
17 LTE B17
18 LTE B18
19 LTE B19
20 LTE B20
21 LTE B21
23 LTE B23
25 LTE B25
26 LTE B26
27 LTE B27
28 LTE B28
30 LTE B30
34 LTE B34
38 LTE B38
39 LTE B39
40 LTE B40
41 LTE B41
42 LTE B42
43 LTE B43
46 LTE B46
47 LTE B47
48 LTE B48
66 LTE B66
71 LTE B71
250 LTE B250
NOTES
1. This command will take effect after module reboot.
2. When backoff[leveln-1] - <row_grads> < 0, the backoff[leveln] equals backoff[leveln-1]. And
<row_grads> must be smaller than <max_power>.
3. The <band> setting is effective to all channels of each supported band.
4. Once the AT+QCFG="sarcfg" is executed, the SAR power takeoff will take effect when DPR is at
EM12&EG12&EG18_AT_Commands_Manual 45 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
low level.
5. For detailed bands of each module supported, please refer to corresponding product specifications.
OK
Write Command Response
AT+QCFG="gpsdrx",<mode> OK
or
ERROR
Parameter
<mode > GNSS antenna connection mode.
0 GNSS antenna uses the dedicated GNSS connector.
1 GNSS antenna and DIV antenna share the DIV&GNSS connector.
NOTES
EM12&EG12&EG18_AT_Commands_Manual 46 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 47 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
"UNKNOWN"
The examples of URC are as below:
+QIND: "act","HSDPA&HSUPA"
+QIND: "act","UNKNOWN"
The description of "act" is as below:
1. If MT does not register on network, the <actvalue>
would be "UNKNOWN".
2. If this configuration is ON, the URC of "act" will be
reported immediately. Only when the network
access technology changes, a new URC will be
reported.
<enable> URC indication is ON or OFF
0 OFF
1 ON
<savetonvram> Whether to save configuration into NVM.
0 Not save
1 Save
EM12&EG12&EG18_AT_Commands_Manual 48 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to request the International Mobile Subscriber Identity (IMSI) which is intended to
permit the TE to identify the individual SIM card or active application in the UICC (GSM or USIM) that is
attached to MT.
OK
Parameter
Example
AT+CIMI
460023210226023 //Query IMSI number of (U)SIM which is attached to MT.
OK
EM12&EG12&EG18_AT_Commands_Manual 49 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to lock/unlock or interrogate an MT or a network facility <fac>. It can be aborted
when network facilities are being set or interrogated. The factory default password of PF, PN, PU, PP and
PC lock is "12341234".
OK
Write Command Response
AT+CLCK=<fac>,<mode>[,<passwd> The command is used to lock, unlock or interrogate the MT or
[,<class>]] network facility <fac>. Password is normally needed to do
such actions. When querying the status of 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>.
OK
Maximum Response Time 5s
Reference
3GPP TS 27.007
Parameter
<fac> "SC" (U)SIM (lock SIM/UICC card inserted in the currently selected card slot)
(SIM/UICC asks password in MT power-up and when this lock command is
issued).
"AO" BAOC (Bar All Outgoing Calls) (refer to 3GPP TS 22.088).
"OI" BOIC (Bar Outgoing International Calls) (refer to 3GPP TS 22.088).
"OX" BOIC-exHC (Bar Outgoing International Calls except to Home Country) (refer to
3GPP TS 22.088).
"AI" BAIC (Bar All Incoming Calls) (refer to 3GPP TS 22.088).
"IR" BIC-Roam (Bar Incoming Calls when Roaming outside the home country) (refer
EM12&EG12&EG18_AT_Commands_Manual 50 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
to 3GPP TS 22.088).
"AB" All Barring services (refer to 3GPP TS 22.030) (applicable only for <mode>=0).
"AG" All outgoing barring services (refer to 3GPP TS 22.030) (applicable only for
<mode>=0).
"AC" All incoming barring services (refer to 3GPP TS 22.030) (applicable only for
<mode>=0).
"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>).
"PF" Lock Phone to the very first inserted SIM/UICC card (also referred in the present
document as PH-FSIM) (MT asks password when other SIM/UICC cards are
inserted).
"PN" Network Personalization (refer to 3GPP TS 22.022)
"PU" Network Subset Personalization (refer to 3GPP TS 22.022)
"PP" Service Provider Personalization (refer to 3GPP TS 22.022)
"PC" Corporate Personalization (refer to 3GPP TS 22.022)
<mode> 0 Unlock
1 Lock
2 Query status
<passwd> Password
<class> 1 Voice
2 Data
4 FAX
7 All telephony except SMS
8 Short message service
16 Data circuit synchronization
32 Data circuit asynchronization
<status> 0 OFF
1 ON
Example
AT+CLCK="SC",2 //Query the status of (U)SIM card.
+CLCK: 0 //The (U)SIM card is unlocked (OFF).
OK
AT+CLCK="SC",1,"1234" //Lock (U)SIM card, and the password is 1234.
OK
AT+CLCK="SC",2 //Query the status of (U)SIM card.
+CLCK: 1 //The (U)SIM card is locked (ON).
OK
AT+CLCK="SC",0,"1234" //Unlock (U)SIM card.
OK
EM12&EG12&EG18_AT_Commands_Manual 51 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to enter a password or query whether MT requires a password or not before it can
be operated. The password may be (U)SIM PIN, (U)SIM PUK, PH-SIM PIN, etc.
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 52 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
//Enter PIN
AT+CPIN?
+CPIN: SIM PIN //Waiting SIM PIN to be given.
OK
AT+CPIN=1234 //Enter PIN.
OK
+CPIN: READY
AT+CPIN? //PIN has already been entered.
+CPIN: READY
OK
AT+CPIN?
+CPIN: SIM PUK //Waiting SIM PIN to be given.
OK
AT+CPIN="26601934","1234" //Enter PUK and the new password.
OK
+CPIN: READY
AT+CPIN?
+CPIN: READY //PUK has already been entered.
OK
EM12&EG12&EG18_AT_Commands_Manual 53 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to set a new password for the facility lock function defined by AT+CLCK.
OK
Write Command Response
AT+CPWD=<fac>,<oldpwd>,<newpw MT sets a new password for the facility lock function.
d>
OK
Maximum Response Time 5s
Reference
3GPP TS 27.007
Parameter
<fac> "SC" (U)SIM (lock SIM/UICC card) (SIM/UICC asks password in MT power-up and
when this lock command is issued)
"AO" BAOC (Bar All Outgoing Calls, refer to 3GPP TS 22.088)
"OI" BOIC (Bar Outgoing International Calls, refer to 3GPP TS 22.088)
"OX" BOIC-exHC (Bar Outgoing International Calls except to Home Country, refer to
3GPP TS 22.088)
"AI" BAIC (Bar All Incoming Calls, refer to 3GPP TS 22.088)
"IR" BIC-Roam (Bar Incoming Calls when Roaming outside the home country, refer
to 3GPP TS 22.088)
"AB" All barring services (refer to 3GPP TS 22.030, applicable only for <mode>=0)
"AG" All outgoing barring services (refer to 3GPP TS 22.030, applicable only for
<mode>=0)
"AC All incoming barring services (refer to 3GPP TS 22.030, applicable only for
<mode>=0)
"P2" (U)SIM PIN2
<pwdlength> Maximum length of password
<oldpwd> Password specified for the facility from the user interface or with command.
<newpwd> New password
EM12&EG12&EG18_AT_Commands_Manual 54 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+CPIN?
+CPIN: READY
OK
AT+CPWD="SC","1234","4321" //Change (U)SIM card password to "4321".
OK
OK
AT+CPIN="4321" //PIN must be entered to define a new password "4321".
OK
+CPIN: READY
The command is used to allow a direct control of the (U)SIM that is inserted in the currently selected card
slot by a distant application on TE. TE should then keep the processing of (U)SIM information within the
frame specified by GSM/UMTS.
OK
Or
ERROR
EM12&EG12&EG18_AT_Commands_Manual 55 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
The command is used to offer easy and limited access to the (U)SIM database. It transmits the (U)SIM
command number <command> and its required parameters to MT.
Parameter
EM12&EG12&EG18_AT_Commands_Manual 56 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command returns the ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card.
OK
Or
ERROR
Maximum Response Time 300ms
Parameter
<iccid> ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card
EM12&EG12&EG18_AT_Commands_Manual 57 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+QCCID //Query ICCID of the (U)SIM card.
+QCCID: 89860025128306012474
OK
The command is used to query the number of attempts left to enter the password of (U)SIM PIN/PUK.
OK
Read Command Response
AT+QPINC? +QPINC: "SC", <pincounter>,<pukcounter>
+QPINC: "P2", <pincounter>,<pukcounter>
OK
Write Command Response
AT+QPINC=<facility> +QPINC: <facility>,<pincounter>,<pukcounter>
OK
Or
ERROR
Parameter
EM12&EG12&EG18_AT_Commands_Manual 58 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Execution Command Response
AT+QINISTAT +QINISTAT: <status>
OK
Maximum Response Time 300ms
Parameter
<status> Initialization status of (U)SIM card. Actual value is the sum of several of the following four
kinds (e.g. 7=1+2+4 means CPIN READY & SMS DONE & PB DONE).
0 Initial state
1 CPIN READY. Operation like locking/unlocking PIN is allowed.
2 SMS initialization completed
4 Phonebook initialization completed
The command is used to enable (U)SIM card hot-swap function. (U)SIM card is detected by GPIO
interrupt. The level of (U)SIM card detection pin should also be set when the (U)SIM card is inserted.
OK
Read Command Response
AT+QSIMDET? +QSIMDET: <enable>,<insertlevel>
OK
Write Command Response
EM12&EG12&EG18_AT_Commands_Manual 59 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
AT+QSIMDET=<enable>,<insertlevel> OK
Or
ERROR
Maximum Response Time 300ms
Parameter
NOTES
1. Hot-swap function is invalid if the configured value of <insertlevel> is inconsistent with hardware
design.
2. Hot-swap function takes effect after the MT is restarted.
Example
AT+QSIMDET=1,0 //Set (U)SIM card detection pin level as low when (U)SIM card is inserted.
OK
The command is used to query (U)SIM card insertion status or determine whether (U)SIM card insertion
status report is enabled. The configuration of this command can be saved by AT&W.
EM12&EG12&EG18_AT_Commands_Manual 60 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Read Command Response
AT+QSIMSTAT? +QSIMSTAT: <enable>,<insertedstatus>
OK
Write Command Response
AT+QSIMSTAT=<enable> OK
Or
ERROR
Maximum Response Time 300ms
Parameter
<enable> Enable or disable (U)SIM inserted status report. If it is enabled, when (U)SIM card
is inserted or removed the URC +QSIMSTAT: <enable>,<insertedstatus> will be
reported.
0 Disable
1 Enable
<insertedstatus> (U)SIM card is inserted or removed. This parameter is not allowed to be set.
0 Removed
1 Inserted
2 Unknown, before (U)SIM initialization
Example
AT+QSIMSTAT? //Query (U)SIM card insertion status.
+QSIMSTAT: 0,1
OK
AT+QSIMDET=1,0
OK
AT+QSIMSTAT=1 //Enable (U)SIM card insertion status report.
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,1
OK
EM12&EG12&EG18_AT_Commands_Manual 61 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
+CPIN: READY
The command is used to query the slot currently used by the (U)SIM and decide which to use.
OK
Read Command Response
AT+QUIMSLOT? +QUIMSLOT: <slot>
OK
Write Command Response
AT+QUIMSLOT=<slot> OK
Or
ERROR
Maximum Response Time 300ms
Parameter
EM12&EG12&EG18_AT_Commands_Manual 62 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+QUIMSLOT? //Query the (U)SIM slot currently used.
+QUSIMSLOT: 1
OK
AT+QUIMSLOT=2 //Switch to slot2.
OK
EM12&EG12&EG18_AT_Commands_Manual 63 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to return the current operators and their status, and allow setting automatic or
manual network selection.
OK
OK
EM12&EG12&EG18_AT_Commands_Manual 64 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Parameter
<stat> 0 Unknown
1 Operator available
2 Current operator
3 Operator forbidden
<oper> Operator in format as per <mode>
<mode> 0 Automatic mode. <oper> field is ignored
1 Manual operator selection. <oper> field shall be present and <Act> optionally
2 Manually deregister from network
3 Set only <format> (for AT+COPS? Read Command), and do not attempt
registration/deregistration (<oper> and <Act> fields are ignored). This value is
invalid in the response of Read Command.
4 Manual/automatic selection. <oper> field shall be presented. If manual selection
fails, automatic mode (<mode>=0) will be entered
<format> 0 Long format alphanumeric <oper> which can be up to 16 characters long
1 Short format alphanumeric <oper>
2 Numeric <oper>. GSM location area identification number
<Act> Access technology selected. Values 4, 5, 6 occur only in the response of Read Command
while MS is in data service state and is not intended for the AT+COPS Write Command.
2 UTRAN
4 UTRAN W/HSDPA
5 UTRAN W/HSUPA
6 UTRAN W/HSDPA and HSUPA
7 E-UTRAN
Example
AT+COPS=? //List all current network operators.
+COPS:
(1,"CHN-UNICOM","UNICOM","46001",2),(2,"CHN-UNICOM","UNICOM","46001",7),(3,"46011","460
EM12&EG12&EG18_AT_Commands_Manual 65 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
11","46011",7),(3,"CHINA MOBILE","CMCC","46000",7),,(0-4),(0-2)
OK
AT+COPS? //Query the currently selected network operator.
+COPS: 0,0,"CHN-UNICOM",7
OK
The Read Command returns the network registration status. The Write Command sets whether to present
URC or not.
OK
Read Command Response
AT+CREG? MT returns the status of result code presentation and an
integer <stat> which shows whether the network has
currently indicated the registration of MT. Location information
parameters <lac> and <ci> are returned only when <n>=2
and MT is registered on the network.
+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
EM12&EG12&EG18_AT_Commands_Manual 66 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
Example
AT+CREG=1
OK
+CREG: 1,"D509","80D413D",7 //URC reports that operator has found location area code and
cell ID.
The command is used to indicate the received signal strength <rssi> and the channel bit error rate <ber>.
EM12&EG12&EG18_AT_Commands_Manual 67 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Execution Command Response
AT+CSQ The Execution Command returns received signal strength
indication <rssi> and channel bit error rate <ber> from MT.
+CSQ: <rssi>,<ber>
OK
Parameter
Example
AT+CSQ=?
+CSQ: (0-31,99),(0-7,99)
OK
AT+CSQ
+CSQ: 28,99 //The current signal strength indication is 28 and channel bit error rate is 99.
OK
NOTE
After using network related commands such as AT+CCWA and AT+CCFC, it is recommended to wait for
3s before entering AT+CSQ so as to ensure that any network access required for the preceding
command has been finished.
EM12&EG12&EG18_AT_Commands_Manual 68 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to edit and query the list of preferred operators.
OK
Read Command Response
AT+CPOL? Query the list of preferred operators:
+CPOL: <index>,<format>,<oper>[,<GSM>,<GSM_compa
ct>,<UTRAN>,<E-UTRAN>]
…
OK
Write Command Response
AT+CPOL=<index>[,<format>[,<oper> Edit the list of preferred operators:
[<GSM>,<GSM_compact>,<UTRAN>, OK
<E-UTRAN>]]] Or
ERROR
If the <index> is given but the <oper> is left out, the entry will
be deleted.
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<index> The order number of operator in the (U)SIM preferred operator list
<format> 0 Long format alphanumeric <oper>
1 Short format alphanumeric <oper>
2 Numeric <oper>
<oper> <format> indicates the format is alphanumeric or numeric (see AT+COPS)
<GSM> GSM access technology
0 Access technology is not selected
1 Access technology is selected
EM12&EG12&EG18_AT_Commands_Manual 69 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
NOTES
The command returns the list of the supported operator names from MT. Each operator code
<numericn> that has an alphanumeric equivalent <alphan> in the MT memory is returned.
OK
Parameter
EM12&EG12&EG18_AT_Commands_Manual 70 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to enable/disable automatic time zone update via NITZ. The configuration is stored
to NVM automatically.
OK
Write Command Response
AT+CTZU=<onoff> OK
Or
ERROR
Read Command Response
AT+CTZU? +CTZU: <onoff>
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CTZU? //Test command
+CTZU: 0
OK
AT+CTZU=? //Read command
+CTZU: (0,1)
OK
AT+CTZU=1 // enable automatic time zone update
EM12&EG12&EG18_AT_Commands_Manual 71 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
AT+CTZU?
+CTZU: 1
OK
The command is used to control the time zone reporting of changed event. If reporting is enabled, MT
returns the unsolicited result code +CTZV: <tz> or +CTZE: <tz>,<dst>,<time> whenever the time zone is
changed. The configuration is stored to NVM automatically.
OK
Write Command Response
AT+CTZR=<reporting> OK
Or
ERROR
Read Command Response
AT+CTZR? +CTZR: <reporting>
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
EM12&EG12&EG18_AT_Commands_Manual 72 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
AT+CTZR=2
OK
AT+CTZR?
+CTZR: 2
OK
The command is used to obtain the latest time synchronized through network.
OK
Execution Command Response
AT+QLTS The Execution Command returns the latest time that has been
synchronized through network:
+QLTS: <time>,<ds>
OK
Write Command Response
AT+QLTS=<mode> +QLTS: <time>,<ds>
EM12&EG12&EG18_AT_Commands_Manual 73 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Or
ERROR
Parameter
NOTE
If the time has not been synchronized through network, the command will return a null time string: +QLTS:
"".
Example
AT+QLTS=? //Query supported network time modes.
+QLTS: (0-2)
OK
AT+QLTS //Query the latest time synchronized through network.
+QLTS: "2017/01/13,03:40:48+32,0"
OK
AT+QLTS=0 //Query the latest time synchronized through network. It offers the same
function as Execution Command AT+QLTS.
+QLTS: "2017/01/13,03:40:48+32,0"
EM12&EG12&EG18_AT_Commands_Manual 74 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
AT+QLTS=1 //Query the current GMT time calculated from the latest time that has been
synchronized through network.
+QLTS: "2017/01/13,03:41:22+32,0"
OK
AT+QLTS=2 //Query the current LOCAL time calculated from the latest time that has been
synchronized through network.
+QLTS: "2017/01/13,11:41:23+32,0"
OK
The command is used to query network information such as access technology selected, the operator
and the band selected.
OK
Maximum Response Time 300ms
Parameter
EM12&EG12&EG18_AT_Commands_Manual 75 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
"WCDMA 1800" B3
"WCDMA 1700 US" B4
"WCDMA 850" B5
"WCDMA 900" B8
"WCDMA 1700 JAPAN" B9
"WCDMA 850 JAPAN" B19
"LTE BAND 1" – "LTE BAND 66"
<channel> Channel ID
NOTES
1. If the devices have not been registered on a network, the command will return +QNWINFO: No
Service.
2. For detailed bands of each module supported, please refer to corresponding product specifications.
Example
AT+QNWINFO=?
OK
AT+QNWINFO
+QNWINFO: "FDD LTE",46001,"LTE BAND 3",1650
OK
OK
Reference
EM12&EG12&EG18_AT_Commands_Manual 76 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
NOTES
1. If <alphabet> is 0, <FNN> and <SNN> will be shown in GSM 7-bit default alphabet string.
2. If <alphabet> is 1, <FNN> and <SNN> will be shown in UCS2 hexadecimal string.
Example
AT+QSPN //Query the service provider name.
+QSPN: "CHN-UNICOM","UNICOM","",0,"46001"
OK
Information
The command is used to obtain the network information, such as serving cell, neighbour cells.
OK
Write Command Response
Query the serving cell information In LTE mode:
AT+QENG="servingcell" +QENG: "servingcell",<state>,"LTE",<is_tdd>,<mcc>,<m
nc>,<cellid>,<pcid>,<earfcn>,<freq_band_ind>,<ul_band
width>,<dl_bandwidth>,<tac>,<rsrp>,<rsrq>,<rssi>,<sin
r>,<cqi>,<tx_power>,<srxlev>
In WCDMA mode:
EM12&EG12&EG18_AT_Commands_Manual 77 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
+QENG: "servingcell",<state>,"WCDMA",<mcc>,<mnc>,
<lac>,<cellid>,<uarfcn>,<psc>,<rac>,<rscp>,<ecio>,<phy
ch>,<sf>,<slot>,<speech_code>,<comMod>
OK
Write Command Response
Query the information of neighbour cells In LTE mode:
AT+QENG="neighbourcell" [+QENG: "neighbourcell intra","LTE",<earfcn>,<pcid>,<r
srq>,<rsrp>,<rssi>,<sinr>,<srxlev>,<cell_resel_priority>,
<s_non_intra_search>,<thresh_serving_low>,<s_intra_s
earch>…
[+QENG: "neighbourcell inter","LTE",<earfcn>,<pcid>,<r
srq>,<rsrp>,<rssi>,<sinr>,<srxlev>,<cell_resel_priority>,
<threshX_low>,<threshX_high>
…
[+QENG:"neighbourcell","WCDMA",<uarfcn>,<cell_resel
_priority>,<thresh_Xhigh>,<thresh_Xlow>,<psc>,<rscp><
ecno>,<srxlev>
…
In WCDMA mode:
[+QENG:"neighbourcell","WCDMA",<uarfcn>,<srxqual>,
<psc>,<rscp>,<ecno>,<set>,<rank>,<srxlev>
…
[+QENG: "neighbourcell","LTE",<earfcn>,<cellid>,<rsr
p>,<rsrq>,<s_rxlev>
…
OK
Reference
Parameter
EM12&EG12&EG18_AT_Commands_Manual 78 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 79 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
EM12&EG12&EG18_AT_Commands_Manual 80 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
NOTE
Example
AT +QENG="servingcell"
+QENG: "servingcell","LIMSRV","LTE","FDD",460,11,6935932,30,1825,3,4,4,6934,-115,-13,-83,13,0
OK
AT +QENG="neighbourcell"
+QENG: "neighbourcell intra","LTE",38950,276,-3,-88,-65,0,37,7,16,6,44
+QENG: "neighbourcell inter","LTE",39148,-,-,-,-,-,37,0,30,7,-,-,-,-
+QENG: "neighbourcell inter","LTE",37900,-,-,-,-,-,0,0,30,6,-,-,-,-
OK
OK
EM12&EG12&EG18_AT_Commands_Manual 81 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
EM12&EG12&EG18_AT_Commands_Manual 82 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Parameter
<state> UE state.
"SEARCH" UE is searching but could not (yet) find a suitable 3G/4G cell.
"LIMSRV" UE is camping on a cell but has not registered on the network.
"NOCONN" UE is camping on a cell and has registered on the network, and it is
in idle mode.
"CONNECT" UE is camping on a cell and has registered on the network, and a
voice call is in progress.
<is_tdd> LTE mode
TDD
FDD
<mcc> Mobile Country Code (first part of the PLMN code)
<mnc> Mobile Network Code (second part of the PLMN code)
<cellid> Cell ID. The parameter determines the 16-bit (GSM) or 28-bit
(UMTS) cell ID. Range: 0-0xFFFFFFF.
<pcid> Physical Cell ID
<earfcn> The parameter determines the E-UTRA-ARFCN of the cell that was
scanned
<freq_band_ind> E-UTRA frequency band (see 3GPP 36.101)
<rsrp> Reference Signal Received Power (see 3GPP 36.214)
<rsrq> Reference Signal Received Quality (see 3GPP 36.214)
<rssi> Received Signal Strength Indication
<sinr> Logarithmic value of SINR. Values are in 1/5th of a dB. Range 0-250, which
translates to -20dB - +30dB.
<dl_bandwidth> DL bandwidth
0 1.4MHz
1 3MHz
2 5MHz
EM12&EG12&EG18_AT_Commands_Manual 83 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
3 10MHz
4 15MHz
5 20MHz
<ul_bandwidth> Number format. UL bandwidth
0 1.4MHz
1 3MHz
2 5MHz
3 10MHz
4 15MHz
5 20MHz
<tac> Tracking Area Code (see 3GPP 23.003)
<srxlev> Select RX Level Value for base station in dB (see 3GPP 25.304).
The command is used to test the Internet protocol reachability of a host. Before using ping tools, the host
should activate the context corresponding to <contextID> via AT+QIACT. It will return the result during the
set value of <timeout>.
OK
Write Command Response
AT+QPING=<contextID>,<host>[,<tim If ping a remote server successfully, response:
eout>[,<pingnum>]] OK
[+QPING: <result>[,<IP_address>,<bytes>,<time>,<ttl>]<
CR><LF>…]
+QPING: <finresult>[,<sent>,<rcvd>,<lost>,<min>,<ma
x>,<avg>]
Or
ERROR
Parameter
EM12&EG12&EG18_AT_Commands_Manual 84 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
<timeout> Integer type. Set the maximum time to wait for the response of each ping request. The
range is 1-255, and the default value is 4. If this parameter is not set, the default value
will be used.Unit: second.
<pingnum> Integer type. Set the maximum number of time for sending ping request. The range is
1-10, and the default value is 4. If this parameter is not set, the default value will be
used.
<result> The result of each ping request.
0 Received the ping response from the server. In this case, it is followed by
<IP_address>,<bytes>,<time>,<ttl>
Others Please refer to Chapter 2.
<IP_address> The IP address of the remote server formatted as a dotted decimal IP.
<bytes> The length of each sent ping request. Unit: byte.
<time> The time wait for the response of the ping request. Unit: ms.
<ttl> Time to live value of the response packet for the ping request.
<finresult> The final result of the command.
0 It is finished normally. It is successful to activate the context and find the
host. In this case, it is followed by
<sent>,<rcvd>,<lost>,<min>,<max>,<avg>.
Others Please refer to Chapter 2.
<sent> Total number of sent ping requests.
<rcvd> Total number of the ping requests that received the response.
<lost> Total number of the ping requests that are timeout.
<min> The minimum response time. Unit: ms.
<max> The maximum response time. Unit: ms.
<avg> The average response time. Unit: ms.
Example
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,"10.168.121.86"
OK
AT+QPING=1,"www.baidu.com"
OK
+QPING: 0,"14.215.177.38",32,39,255
+QPING: 0,"14.215.177.38",32,42,255
+QPING: 0,"14.215.177.38",32,41,255
EM12&EG12&EG18_AT_Commands_Manual 85 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
+QPING: 0,"14.215.177.38",32,38,255
+QPING: 0,4,4,0,38,42,39
EM12&EG12&EG18_AT_Commands_Manual 86 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to connect the MT to an incoming voice or data call indicated by a RING URC.
Response if no connection:
NO CARRIER
Maximum Response Time 90s, determined by the network.
Reference
V.25ter
NOTES
EM12&EG12&EG18_AT_Commands_Manual 87 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Example
RING //A voice call is ringing.
AT+CLCC
+CLCC: 1,0,0,1,0,"",128 //PS call in LTE mode.
+CLCC: 2,1,4,0,0,"02154450290",129 //Incoming call.
OK
ATA //Accept the voice call with ATA.
OK
The command is be used to set up outgoing voice and data calls. Supplementary services can also be
controlled with this command.
EM12&EG12&EG18_AT_Commands_Manual 88 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Reference
V.25ter
Parameter
NOTES
1. This command may be aborted generally caused by receiving an ATH command or a character
during execution. The aborting is not impossible happened during some connection establishment
such as handshaking.
2. Parameter "I" and "i" only valid if no "*" or "#" code is within the dial string.
3. See ATX command for setting result code and call monitoring parameters.
4. Responses returned after dialing with ATD:
For voice call, two different responses mode can be determined. MT returns OK immediately either
after dialing was completed or after the call was established. The setting is controlled by AT+COLP.
For factory version, the default is AT+COLP=0, which causes the MT to return OK immediately after
dialing was completed. Otherwise MT will return OK, BUSY, NO DIAL TONE, or NO CARRIER.
5. Using ATD during an active voice call:
When a user originates a second voice call while there is already an active voice call, the first
call will be automatically put on hold.
The current states of all calls can be easily checked at any time by using AT+CLCC command.
Example
ATD10086; //Dialing out the party’s number.
OK
The command is used to disconnect data calls or voice calls. AT+CHUP is also used to disconnect the
voice call.
EM12&EG12&EG18_AT_Commands_Manual 89 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
<n> 0 Disconnect existing call from command line and terminate the call
The command is used to control whether ATH can be used to disconnect the voice call.
OK
Read Command Response
AT+CVHU? +CVHU: <mode>
OK
Write Command Response
AT+CVHU=<mode> OK
Or
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
EM12&EG12&EG18_AT_Commands_Manual 90 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
The command is used to cancel all voice calls in the state of Active, Waiting and Held. For data
disconnections, use ATH.
Example
RING //Incoming call.
The +++ character sequence supports the MT to switch from data mode to AT command mode. It allows
executing AT commands while maintaining the data connection with the remote device.
OK
Maximum Response Time 300ms
Reference
EM12&EG12&EG18_AT_Commands_Manual 91 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
V.25ter
NOTES
1. To prevent the +++ escape sequence from being misinterpreted as data, the following sequence
should be followed:
Do not input any character within 1s before inputting +++.
Input +++ within 1s, and other characters cannot be inputted during the time.
Do not input any character within 1s after +++ has been inputted.
Switch to command mode successfully; otherwise return to step 1.
2. To return back to data mode from command mode, please enter ATO.
3. Another way to change to command mode is through DTR level change, and please refer to AT&D
command for details.
The command is used to resume the connection and switch back from command mode to data mode.
Parameter
EM12&EG12&EG18_AT_Commands_Manual 92 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
NOTE
When MT returns to data mode from command mode successfully, CONNECT <text> is returned. Please
note that <text> outputs only when <value> set by ATX<value> is greater than 0.
The command is used to control automatic answering mode for the incoming calls.
OK
Write Command Response
ATS0=<n> This parameter setting determines the number of rings before
auto-answer.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
NOTE
If <n> is set too high, the calling party may hang up before the call is answered automatically.
Example
ATS0=3 //Set three rings before automatically answering a call
OK
EM12&EG12&EG18_AT_Commands_Manual 93 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
incoming call.
RING
##0
The command is implemented for compatibility reasons only, and has no effect.
OK
Write Command Response
ATS6=<n> OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
The command is used to specify the duration (unit: second) to wait for the connection completion in case
of answering or originating a call. If no connection is established during the time, MT will be disconnected
from the line.
OK
EM12&EG12&EG18_AT_Commands_Manual 94 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
<n> 0 Disabled
1-255 Duration of seconds to wait for connection completion
6.11. ATS8 Set the Time to Wait for Comma Dial Modifier
The command is implemented for compatibility reasons only, and has no effect.
OK
Write Command Response
ATS8=<n> OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
EM12&EG12&EG18_AT_Commands_Manual 95 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Data Carrier
The command is used to determine the duration (unit: tenths of a second) during which the UE remains
connected in absence of a data carrier.
ATS10 Set Disconnection Delay after Indicating the Absence of Data Carrier
Read Command Response
ATS10? <n>
OK
Write Command Response
ATS10=<n> This parameter setting determines the amount of time (unit:
tenths of a second) during which the MT will remain
connected in absence of a data carrier. If the data carrier is
once more detected before disconnection, the MT remains
connected.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<n> 1-15-254 Duration of tenths of seconds to wait before disconnecting after UE has indicated
the absence of received line signal
The command is used to select the type of number for further dialing commands ATD according to 3GPP
Specifications. The Test Command returns values supported a compound value.
OK
Read Command Response
EM12&EG12&EG18_AT_Commands_Manual 96 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Write Command Response
AT+CSTA=<type> OK
Reference
3GPP TS 27.007
Parameter
The command returns the list of all current calls. If the command is executed successfully, but no calls
existed, then no information will be responded but OK will be sent to TE.
OK
EM12&EG12&EG18_AT_Commands_Manual 97 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
Parameter
<idx> The call identification number as described in 3GPP TS 22.030 can be used in AT+CHLD
command operations.
<dir> 0 Mobile originated (MO) call
1 Mobile terminated (MT) call
<stat> State of the call
0 Active
1 Held
2 Dialing (MO call)
3 Alerting (MO call)
4 Incoming (MT call)
5 Waiting (MT call)
<mode> Bearer/teleservice
0 Voice
1 Data
2 FAX
<mpty> 0 Call is not one of multiparty (conference) call parties
1 Call is one of multiparty (conference) call parties
<number> Phone number in string type in format specified by <type>
<type> Type of address of octet in integer format (Refer to 3GPP TS 24.008, subclause 10.5.4.7
for details). Usually, it has three kinds of values:
129 Unknown type
145 International type (contains the character "+")
161 National type
<alpha> Alphanumeric representation for <number> corresponding to the entry found in
phonebook.
Example
ATD10086; //Establish a call.
OK
AT+CLCC
+CLCC: 1,0,0,1,0,"",128 //PS call in LTE mode.
+CLCC: 2,0,0,0,0,"10086",129 //Establish a call, and the call has been answered.
OK
The command is used to control whether the MT to transmit an intermediate result code +CR: <serv> to
the TE or not when a call is set up.
EM12&EG12&EG18_AT_Commands_Manual 98 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
If it is enabled, an intermediate result code is transmitted at the point during connect negotiation at which
the MT has determined which speed and quality of service will be used, before any error control or data
compression reports and before any final result code (e.g. CONNECT) is transmitted.
OK
Read Command Response
AT+CR? +CR: <mode>
OK
Write Command Response
AT+CR=[<mode>] MT controls whether intermediate result code +CR: <serv> is
returned from TA to TE or not when a call is set up.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> 0 Disable
1 Enable
<serv> ASYNC Asynchronous transparent
SYNC Synchronous transparent
REL ASYNC Asynchronous non-transparent
REL SYNC Synchronous non-transparent
6.16. AT+CRC Set Cellular Result Codes for Incoming Call Indication
The command controls whether to use the extended format of incoming call indication or not. When it is
enabled, an incoming call is indicated to TE with unsolicited result code +CRING: <type> instead of the
normal RING.
EM12&EG12&EG18_AT_Commands_Manual 99 / 234
LTE-A Module Series
EM12&EG12&EG18 AT Commands Manual
OK
Read Command Response
AT+CRC? +CRC: <mode>
OK
Write Command Response
AT+CRC=[<mode>] MT controls whether the extended format of incoming call
indication is used or not.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CRC=1 //Enable extended format.
OK
The command selects radio link protocol (RLP) parameters used when non-transparent data calls are
originated.
OK
Read Command Response
AT+CRLP? MT returns current settings for RLP version. RLP versions 0
and 1 share the same parameter set. TA returns only one line
for this set (during which <ver> is not presented).
+CRLP: <iws>,<mws>,<T1>,<N2>,<ver>
...
OK
Write Command Response
AT+CRLP=[<iws>[,<mws>[,<T1>[,<N TA sets radio link protocol (RLP) parameters used when
2>[,<ver>]]]]] non-transparent data calls are set up.
OK
Maximum Response Time 300ms
Reference
3GPP TS27.007
Parameter
The command is used to query, add and delete ECC numbers (emergency call numbers). There are two
kinds of ECC numbers: ECC numbers without (U)SIM and ECC numbers with (U)SIM. The default ECC
numbers without (U)SIM is 911, 112, 00, 08, 110, 999, 118 and 119. The default ECC number with (U)SIM
is 911 and 112. 911 and 112 will always be supported as ECC numbers, and cannot be deleted. ECC
numbers can be saved into NVM automatically. If the (U)SIM card contains ECC file, the numbers in ECC
file can also be regarded as ECC numbers.
OK
Write Command Response
AT+QECCNUM=<mode>,<type>[,<ecc If <mode> is equal to 0, query the ECC numbers. In this
num1>[,<eccnum2>,…[,<eccnum case, <eccnumN> should be omitted
N>]]] +QECCNUM: <type>,<eccnum1>,<eccnum2>[…]
OK
OK
Parameter
Example
AT+QECCNUM=? //Query the supported ECC number operation mode.
+QECCNUM: (0-2)
OK
AT+QECCNUM? //Query the ECC numbers with or without (U)SIM.
+QECCNUM: 0,"911","112","00","08","110","999","118","119"
+QECCNUM: 1,"911","112"
OK
AT+QECCNUM=0,1 //Query the ECC numbers with (U)SIM.
+QECCNUM: 1,"911","112"
OK
AT+QECCNUM=1,1,"110", "234" //Add "110" and "234" into the type of ECC numbers with (U)SIM.
OK
AT+QECCNUM=0,1 //Query the ECC numbers with (U)SIM.
+QECCNUM: 1, "911","112","110","234"
OK
AT+QECCNUM=2,1,"110" //Delete "110" from the type of ECC numbers with (U)SIM.
OK
AT+QECCNUM=0,1 //Query the ECC numbers with (U)SIM.
+QECCNUM: 1, "911","112","234"
OK
The command is used to terminate a call or calls (including both voice call and data call) with a specific
3GPP TS 24.008 release cause specified by the host.
Reference
Parameter
<cause> Release cause, 3GPP TS 24.008 release cause to be indicated to the network.
1 Release cause "unassigned (unallocated) number"
16 Release cause "normal call clearing"
17 Release cause "user busy"
18 Release cause "no user responding"
21 Release cause "call rejected"
27 Release cause "destination out of order"
31 Release cause "normal, unspecified"
88 Release cause "incompatible destination"
<idx> Call identification number is an optional index in the list of current calls indicated by
AT+CLCC. AT+QHUP will terminate the call identified by the given call number. The
default call number 0 is not assigned to any call, but signifies all calls.
0 Terminate all known calls. However, if circuit switches data calls and
voice calls at the same time, this command only terminates the CSD
calls.
1…7 Terminate the specific call with identification number.
Example
AT+QHUP=? //Test Command
OK
ATD10010; //Dial 10010
OK
ATD10086; //Dial 10086
OK
AT+CLCC //Query the status of calls
+CLCC: 1,0,1,0,0,"10010",129
+CLCC: 2,0,0,0,0,"10086",129
OK
AT+QHUP=17,1 //Terminate the call of which call ID is 1. Disconnect cause is "user busy"
OK
AT+CLCC //Query the status of calls
+CLCC: 1,0,0,0,0,"10086",129
OK
AT+QHUP=16 //Terminate all existing calls. Disconnect cause is "normal call clearing"
OK
AT+CLCC
OK
OK
Read Command Response
AT^DSCI? ^DSCI: <n>
OK
Write Command Response
AT^DSCI=<n> MT enables or disables the presentation of the DSCI at TE.
OK
Reference
Parameter
NOTE
When the presentation of the DSCI at the TE is enabled, an unsolicited result code is returned after the
action:
^DSCI: <id>,<dir>,<stat>,<type>,<number>,<num_type>
Parameters
<id> Call ID
<dir> Call direction
0 Mobile originated call
1 Mobile terminated call
<stat> Call state
1 CALL_LOCAL_HOLD
2 CALL_ORIGINAL
3 CALL_CONNECT
4 CALL_INCOMING
5 CALL_WAITING
6 CALL_END
7 CALL_ALERTING
8 CALL_REMOTE_HOLD
9 CALL_BOTH_HOLD
<type> Call type
0 Voice call
1 PS call
<number> Phone number
<num_type> Type of address of octet in integer format (See 3GPP TS 24.008). Usually, it has three
kinds of values:
129 Unknown type
145 International type (contains the character "+")
161 National type
Example
//Dial a call
AT^DSCI=1 //Enable DSCI.
OK
ATD10086; //Dial 10086.
OK
ATH
OK
//Incoming call
RING
RING
NO CARRIER
Call
The command is used to remove a participant from the conference call. It is only for VoLTE.
OK
Write Command Response
AT+QCHLDIPMPTY=<number> OK
Or
ERROR
Parameter
7 Phonebook Commands
The command is used to get the subscribers’ own number(s) from the (U)SIM.
OK
Or
ERROR
Parameter
<alpha> Optional alphanumeric string associated with <number>. The used character set
should be the one selected with AT+CSCS command.
<number> String type phone number of format specified by <type>
<type> Type of address of octet in integer format (See 3GPP TS 24.008). Usually, it has three
kinds of values:
129 Unknown type
145 International type (contains the character "+")
161 National type
The command is used to search the phonebook entries starting with the given <findtext> string from the
current phonebook memory storage selected with AT+CPBS, and return all found entries sorted in
alphanumeric order.
OK
Write Command Response
AT+CPBF=<findtext> [+CPBF: <index>,<number>,<type>,<text>]
…
OK
Or
ERROR
Parameter
The command is used to read phonebook entries in location number range <index1>... <index2> from
the current phonebook memory storage selected with AT+CPBS. If <index2> is left out, only location
<index1> will be returned.
OK
Write Command Response
AT+CPBR=<index1>[,<index2>] +CPBR: <index1>,<number>,<type>,<text>
…
OK
Or
ERROR
Parameter
The command is used to select phonebook memory storage, which is used by other phonebook related
commands. The Read Command returns currently selected memory, the number of used locations and
the total number of locations in the memory when supported by manufacturer. The Test Command returns
supported storages as compound value.
OK
Or
ERROR
OK
Or
ERROR
Parameter
"LD" (U)SIM last-dialing-phone book (AT+CPBW may not be applicable to this storage)
"MC" MT missed (unanswered) calls list (AT+CPBW may not be applicable to this
storage)
"ME" Mobile equipment phonebook
"RC" MT received calls list (AT+CPBW may not be applicable to this storage)
"EN" (U)SIM (or MT) emergency number (AT+CPBW may not be applicable to this
storage)
"ON" (U)SIM own numbers (MSISDNs) list
<used> Indicates the total number of used locations in selected memory
<total> Indicates the total number of locations in selected memory
The command is used to write phonebook entry in location number <index> in the current phonebook
memory storage selected with AT+CPBS. It can also delete a phonebook entry in location number
<index>.
OK
Or
ERROR
Parameter
<index> In the range of location numbers of phone book memory. If <index> is not given, the
first free entry will be used. If <index> is given as the only parameter, the phonebook
entry specified by <location> is deleted.
<nlength> Indicates the maximum length of field <number>
<tlength> Indicates the maximum length of field <text>
<type> Type of address of octet in integer format (See 3GPP TS 24.008). Usually, it has three
kinds of values:
129 Unknown type
145 International type (contains the character "+")
161 National type
<text> String type field of maximum length <tlength> in current TE character set specified by
AT+CSCS.
Example
AT+CSCS="GSM"
OK
AT+CPBW=10,"15021012496",129,"QUECTEL"
OK //Make a new phonebook entry at location 10.
AT+CPBW=10 //Delete entry at location 10.
OK
The command is used to select message service <service> and query the types of messages supported
by MT.
OK
Read Command Response
AT+CSMS? +CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command Response
AT+CSMS=<service> +CSMS: <mt>,<mo>,<bm>
OK
Parameter
Example
AT+CSMS=? //Test command
+CSMS: (0,1)
OK
AT+CSMS=1 //Set type of message service as 1.
+CSMS: 1,1,1
OK
AT+CSMS? //Read command
+CSMS: 1,1,1,1
OK
The command is used to specify the input and output format of the short messages. <mode> indicates
the format of messages used with send, list, read and write commands and unsolicited result codes
resulting from received messages.
The format of messages 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 AT+CSCS to inform the character set to be used in the message body in the
TA-TE interface.
OK
Read Command Response
AT+CMGF? +CMGF: <mode>
OK
Write Command Response
AT+CMGF=[<mode>] MT sets parameter to decide which kind of I/O format of
messages is used.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.005
Parameter
The Write Command updates the SMSC address when mobile originated SMS are transmitted. In text
mode, the setting is used by Write Command. In PDU mode, setting is used by the same command, but
only when the length of the SMSC address is coded into the <pdu> parameter which equals to zero.
OK
Write Command Response
AT+CSCA=<sca>[,<tosca>] OK
Parameter
<sca> Service center address. 3GPP TS 24.011 RP SC address Address-Value field in string
format; BCD numbers (or GSM 7-bit default alphabet characters) are converted to
characters of the currently selected TE character set (refer to command AT+CSCS in
3GPP TS 27.007). The type of address is given by <tosca>.
<tosca> Type of service center address. 3GPP TS 24.011 RP SC address Type-of-Address
octet in integer format (default refer to <toda>).
Example
AT+CSCA="+8613800210500",145 //Set SMSC address.
OK
AT+CSCA? //Query SMSC address.
+CSCA: "+8613800210500",145
OK
The command is used to select memory storages <mem1>, <mem2> and <mem3> to be used for
reading, writing, etc.
OK
Read Command Response
AT+CPMS? +CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<t
otal2>,<mem3>,<used3>,<total3>
OK
Write Command Response
AT+CPMS=<mem1>[,<mem2>[,<mem MT selects memory storages <mem1>, <mem2> and <m
3>]] em3> to be used for reading, writing, etc.
+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<to
tal3>
OK
Parameter
Example
AT+CPMS? //Query the current SMS message storage.
+CPMS: "ME",0,255,"ME",0,255,"ME",0,255
OK
AT+CPMS="SM","SM","SM" //Set SMS message storage as "SM".
+CPMS: 0,50,0,50,0,50
OK
AT+CPMS? //Query the current SMS message storage.
+CPMS: "SM",0,50,"SM",0,50,"SM",0,50
OK
The command is used to delete short messages from the preferred message storage <mem1> location
<index>. If <delflag> is presented and not set to 0, then the ME should ignore <index> and follow the
rules of <delflag> shown as below.
OK
Write Command Response
AT+CMGD=<index>[,<delflag>] MT deletes message from preferred message storage
<mem1> location <index>.
OK
Parameter
<index> Integer type value in the range of location numbers supported by the associated memory.
<delflag> 0 Delete the message specified in <index>
1 Delete all read messages from <mem1> storage
2 Delete all read messages from <mem1> storage and sent mobile originated
messages
3 Delete all read messages from <mem1> storage, sent and unsent mobile
originated messages
4 Delete all messages from <mem1> storage
Example
AT+CMGD=1 //Delete the message specified in <index>=1.
OK
AT+CMGD=1,4 //Delete all messages from <mem1> storage.
OK
The Read Command returns messages with status value <stat> from preferred message storage
<mem1> to the TE. If the status of the message is "REC UNREAD", the status in the storage changes to
"REC READ". When executing command AT+CMGL without status value <stat>, it will report the list of
SMS with "REC UNREAD" status.
OK
Write Command Response
AT+CMGL=[<stat>] If in text mode (AT+CMGF=1) and the command is executed
successfully:
For SMS-SUBMITs and/or SMS-DELIVERs:
+CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<too
a/toda>,<length>]<CR><LF><data>[<CR><LF>
...
For SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<sct
s>,<dt>,<st>[<CR><LF>
...
For SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
…
OK
OK
Parameter
<dt>)
<dt> 3GPP TS 23.040 [3] TP-Discharge-Time in time-string format:
month,
day, hour, minutes, seconds and time zone. E.g. 6th of May 1994, 22:10:00 GMT+2
hours equals to "94/05/06,22:10:00+08".
<st> 3GPP TS 23.040 [3] TP-Status in integer format.
<ct> 3GPP TS 23.040 [3] TP-Command-Type in integer format (default 0)
<sn> 3GPP TS 23.041 [4] CBM Serial Number in integer format.
<mid> 3GPP TS 23.041 [4] CBM Message Identifier in integer format.
<page> 3GPP TS 23.041 [4] CBM Page Parameter bits 4-7 in integer format.
<pages> 3GPP TS 23.041 [4] CBM Page Parameter bits 0-3 in integer format.
Example
AT+CMGF=1 //Set SMS message format as text mode.
OK
AT+CMGL="ALL" //List all messages from message storage.
+CMGL: 1,"STO UNSENT","",,
OK
The Read Command returns SMS message with location value <index> from message storage <mem1>
to the TE. If status of the message is "REC UNREAD", status in the storage will change to "REC READ".
d>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
OK
For SMS-SUBMIT:
+CMGR: <stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dc
s>,[<vp>],<sca>,<tosca>,<length>]<CR><LF><data>
OK
For SMS-STATUS-REPORTs:
+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<s
t>
OK
For SMS-COMMANDs:
+CMGR: <stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],
<length><CR><LF><cdata>]
OK
OK
OK
Parameter
Example
+CMTI: "SM",3 //Indicate that new message has been received and saved
to <index>=3 of "SM".
AT+CSDH=1
OK
AT+CMGR=3 //Read message
+CMGR: "REC UNREAD","+8615021012496",,"13/12/13,15:06:37+32",145,4,0,0,"+861380021050
0",145,27
OK
The command is used to send a short message from TE to the network (SMS-SUBMIT). After invoking
the Write Command, wait for the prompt > and then start to write the message. After that, enter
<CTRL+Z> to indicate the ending of PDU and begin to send the message. Sending can be cancelled by
giving <ESC> character. Abortion is acknowledged with OK, though the message will not be sent. The
message reference <mr> is returned to the TE on successful message delivery. The value can be used to
identify message upon unsolicited delivery status report result code.
OK
OK
Parameter
string format; BCD numbers (or GSM 7-bit default alphabet characters) are
converted to characters of the currently selected TE character set (refer to command
AT+CSCS in 3GPP TS 27.007); type of address is given by <toda>.
<toda> Type of destination address. 3GPP TS 24.011 TP-Destination-Address
Type-of-Address octet in integer format.
<length> Message length. Indicates in the text mode (AT+CMGF=1) the length of the message
body <data> (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of
the actual TP data unit in octets (i.e. the RP layer SMSC address octets are not
counted in the length).
<mr> Message reference. 3GPP TS 23.040 TP-Message-Reference in integer format.
Example
AT+CMGF=1 //Set SMS message format as text mode.
OK
AT+CSCS="GSM" //Set character set as GSM which is used by the TE.
OK
AT+CMGS="15021012496"
> <This is a test from Quectel> //Enter in text, <CTRL+Z> send message, <ESC> quits
without sending.
+CMGS: 247
OK
The command is used to control the continuity of the SMS relay protocol link. If the feature is enabled
(and supported by the currently used network) multiple messages can be sent faster as the link is kept
opening.
OK
Read Command Response
AT+CMMS? +CMMS: <n>
OK
Write Command Response
AT+CMMS=<n> OK
Or
ERROR
Parameter
NOTE
After the execution of the Read Command, a delay of 5-10 seconds is required before issuing the Write
Command. Otherwise +CMS ERROR: 500 may appear.
The command is used to store short messages from TE to memory storage <mem2>, and then the
memory location <index> of the stored message is returned. Message status will be set to "stored
unsent" by default; but parameter <stat> also allows other status values to be given.
The syntax of input text is the same as the one specified in AT+CMGS Write Command.
<Ctrl+Z/ESC> unsent’, but parameter <stat> also allows other status values
<ESC> quits without sending to be given.
Parameter
Example
AT+CMGF=1 //Set SMS message format as text mode.
OK
AT+CSCS="GSM" //Set character set as GSM which is used by the TE.
OK
AT+CMGW="15021012496"
> <This is a test from Quectel> //Enter in text. Use <CTRL+Z> to write message or
<ESC> to quit without sending.
+CMGW: 4
OK
AT+CMGF=0 //Set SMS message format as PDU mode.
OK
AT+CMGW=18
> 0051FF00000008000A0500030002016D4B8BD5
+CMGW: 5
OK
The command is used to send a message with location value <index> from message storage <mem2> to
the network. If a new recipient address <da> is given for SMS-SUBMIT, it should be used instead of the
one stored with the message.
OK
OK
Parameter
<index> Integer type in the range of location numbers supported by the associated memory.
<da> Destination Address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in
string format; BCD numbers (or GSM 7-bit default alphabet characters) are
converted to characters of the currently selected TE character set (refer to command
AT+CSCS in 3GPP TS 27.007); type of address is given by <toda>.
<toda> Type of destination address. 3GPP TS 24.011 TP-Detination-Address
Type-of-Address octet in integer format.
<mr> Message reference. 3GPP TS 23.040 TP-Message-Reference in integer format.
<scts> Service center time stamp. 3GPP TS 23.040 TP-Service-Centre-Time-Stamp in
time-string format (refer to <dt>).
<ackpdu> Format is same for <pdu> in case of SMS, but without 3GPP TS 24.011 SC address
field and parameter shall be bounded by double quote characters like a normal string
type parameter.
<mem2> Messages will be written and sent to this memory storage
"SM" (U)SIM message storage
"ME" Mobile equipment message storage
"MT" Same as "ME" storage
"SR" SMS status report storage location
Example
AT+CMGF=1 //Set SMS message format as text mode.
OK
AT+CSCS="GSM" //Set character set as GSM which is used by the TE.
OK
AT+CMGW="15021012496"
> Hello //Enter in text. Use <CTRL+Z> to send message or
<ESC> to quit without sending.
+CMGW: 4
OK
AT+CMSS=4 //Send the message of index 4 from memory storage.
+CMSS: 54
OK
OK
Execution Command Response
AT+CNMA OK
Or
ERROR
Parameter
NOTE
The Execution and Write commands shall only be used when AT+CSMS parameter <service> equals 1
(phase 2+) and an appropriate URC has been issued by the MT, i.e.:
+CMT for <mt>=2 incoming message classes 0,1,3 and none;
+CMT for <mt>=3 incoming message classes 0 and 3;
+CDS for <ds>=1.
Example
AT+CSMS=1
OK
AT+CNMI=1,2,0,0,0
OK
AT+CMGF=1
OK
AT+CSDH=1
OK
+CMT: "+8615021012496",,"13/03/18,17:07:21+32",145,4,0,0,"+8613800551500",145,28
This is a test from Quectel. //Short message is outputted directly when SMS is incoming.
AT+CNMA //Send ACK to the network.
OK
AT+CNMA
+CMS ERROR: 340 //The second time return error; it needs ACK only once.
The command is used to select the procedure on how the received new messages from the network are
indicated to the TE when TE is active, e.g. DTR is at low level (ON). If TE is inactive (e.g. DTR is at high
level (OFF)), message receiving should be done as specified in 3GPP TS 23.038.
OK
Read Command Response
AT+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
Write Command Response
AT+CNMI=[<mode>[,<mt>[,<bm>[,<d MT selects the procedure on how the received new
s>[,<bfr>]]]]] messages from the network are indicated to the TE when TE
is active, e.g. DTR is at low level (ON). If TE is inactive (e.g.
DTR is at high level (OFF)), message receiving should be
done as specified in 3GPP TS 23.038.
OK
Or
ERROR
Parameter
<mode> 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 data mode). Otherwise forward them directly
to TE.
2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in data
mode) and flush them to the TE after reservation. Otherwise forward them directly
to TE.
<mt> The rules for storing received SMS depend on its data coding scheme (refer to 3GPPTS
23.038) and preferred memory storage (AT+CPMS) setting, and the value is:
0 No SMS-DELIVER indications are routed to TE.
1 If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed
to the TE by using unsolicited result code: +CMTI: <mem>,<index>
2 SMS-DELIVERs (except class 2) are routed directly to the TE using unsolicited
result code: +CMT: [<alpha>],<length><CR><LF><pdu> (PDU mode enabled)
or +CMT: <oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,
<length>]<CR><LF><data> (text mode enabled; about the parameters in italics,
please refer to AT+CSDH command). Class 2 messages result in indication as
defined in <mt>=1.
3 Class 3 SMS-DELIVERs are routed directly to TE by using unsolicited result
codes defined in <mt>=2. Messages of other classes result in indication as
defined in <mt>=1.
<bm> The rules for storing received CBMs depend on its data coding scheme (refer to 3GPP
TS 23.038) and the setting of Select CBM Types (AT+CSCB); and the value is:
0 No CBM indications are routed to the TE.
2 New CBMs are routed directly to the TE using unsolicited result code:
+CBM: <length><CR><LF><pdu> (PDU mode); or
+CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (text mode)
<ds> 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><CR><LF><pdu> (PDU mode)
+CDS: <fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (text mode)
2 If SMS-STATUS-REPORT is stored into ME/TA, indication of the memory location
is routed to the TE using unsolicited result code:
+CDSI:<mem>,<index>
<bfr> 0 TA buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1...2 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...2 is entered.
NOTE
Example
AT+CMGF=1 //Set SMS message format as text mode.
OK
AT+CSCS="GSM" //Set character set as GSM which is used by the TE.
OK
AT+CNMI=1,2,0,1,0 //Set SMS-DELIVERs are routed directly to the TE.
OK
AT+CSDH=1 //Show text mode parameters
OK
+CMT: "+8615021012496",,"13/03/18,17:07:21+32",145,4,0,0,"+8613800551500",145,28
This is a test from Quectel. //Short message is outputted directly when an SMS is incoming.
The command is used to select which types of CBMs are to be received by the ME. The command writes
the parameters in NVM.
OK
Read Command Response
AT+CSCB? +CSCB : <mode>,<mids>,<dcss>
OK
Write Command Response
AT+CSCB=<mode>[,mids>[,<dcss>]] MT selects which types of CBMs are to be received by the
ME.
OK
Parameter
The command is used to control whether detailed header information is shown in text mode result codes.
OK
Read Command Response
AT+CSDH? +CSDH: <show>
OK
Write Command Response
AT+CSDH=[<show>] OK
Or
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.005
Parameter
<show> 0 Do not show header values defined in commands +CSCA, +CSMP (<sca>,
<tosca>, <fo>, <vp>, <pid>, <dcs>) and <length>, <toda> or <tooa> in +CMT,
+CMGL, +CMGR result codes for SMS-DELIVERs and SMS-SUBMITs in text
mode
1 Show the values in result codes
Example
AT+CSDH=0
OK
AT+CMGR=2
+CMGR: "STO UNSENT" ,"",
OK
AT+CSDH=1
OK
AT+CMGR=2
+CMGR: "STO UNSENT","",,128,17,0,0,143,"+8613800551500",145,18
OK
The command is used to set values for additional parameters needed when a short message is sent to
the network or placed in a storage in text mode.
OK
Write Command Response
AT+CSMP=<fo>[,<vp>[,<pid>[,<dcs>]] MT selects values for additional parameters needed when SM
] is sent to the network or placed in a storage when text mode
is selected (AT+CMGF=1). It is possible to set the validity
period starting from when the SMS is received by the SMSC
(<vp> ranges from 0 to 255) or define the absolute time of the
validity period termination (<vp> is a string).
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.005
Parameter
<fo> First octet. Depending on the command or result code: First octet of 3GPP TS 23.040
SMS-DELIVER, SMS-SUBMIT (default 17), SMS-STATUS-REPORT, SMS-COMMAND
in integer format. If a valid value has been entered once, parameter can be omitted.
<vp> Validity period. Depending on SMS-SUBMIT <fo> setting: 3GPP TS 23.040
TP-Validity-Period either in integer format or in time-string format (refer to <dt>).
<pid> Protocol identifier. 3GPP TS 23.040 TP-Protocol-Identifier in integer format (default 0).
<dcs> Data coding scheme. Depending on the command or result code: 3GPP TS 23.038
SMS Data Coding Scheme (default 0), or Cell Broadcast Data Coding Scheme in
integer format.
The command is used to attach MT to, or detach MT from the Packet Domain service. After the command
has been completed, the MT remains in V.25ter command state. If MT is already in the requested state,
the command will be ignored and the OK response will be returned. If the requested state cannot be
achieved, an ERROR or +CME ERROR response will be returned.
OK
Read Command Response
AT+CGATT? +CGATT: <state>
OK
Write Command Response
AT+CGATT=<state> OK
Or
ERROR
Parameter
Example
AT+CGATT=1 //Attach to PS service.
OK
AT+CGATT=0 //Detach from PS service.
OK
AT+CGATT? //Query the current PS service state.
+CGATT: 0
OK
The command is used to specify PDP context parameters for a specific context <cid>. A special form of
the Write Command (AT+CGDCONT=<cid>) causes the values for context <cid> to become undefined. It
is not allowed to change the definition of an already activated context.
The Read Command returns the current settings for each defined PDP context.
OK
Read Command Response
AT+CGDCONT? +CGDCONT: <cid>,<PDP_type>,<APN>,<PDP_addr>,<da
ta_comp>,<head_comp>
[…]
OK
Write Command Response
AT+CGDCONT=<cid>[,<PDP_type>[,< OK
APN>[,<PDP_addr>[,<data_comp>[,< Or
head_comp>]]]]] ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> PDP context identifier, a numeric parameter which specifies a particular PDP context
definition. The parameter is local to the TE-MT interface and is used in other PDP
context-related commands. The range of supported values (minimum value=1) is
returned by the test form of the command.
<PDP_type> Packet data protocol type, a string parameter which specifies the type of packet data
protocol.
"IP" IPV4. Internet Protocol (IETF STD 5)
"PPP"
"IPV6"
"IPV4V6"
<APN> Access point name, a string parameter that is a logical name 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_addr> A string parameter 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 dynamic address will be requested. The allocated
address may be read using the AT+CGPADDR command.
<data_comp> A numeric parameter that controls PDP data compression (applicable for SNDCP only)
(refer to 3GPP TS 44.065).
0 Off
1 On
2 V.42bis
3 V.44 (Not supported currently)
<head_comp> A numeric parameter that controls PDP header compression (refer to 3GPP TS 44.065
and 3GPP TS 25.323).
0 Off
1 On
2 RFC1144
3 RFC2507
4 RFC3095
<IPv4AddrAlloc> Controls how the MT/TA requests to get the IPv4 address information
0 IPv4 address allocation through NAS signaling
1 IPv4 address allocated through DHCP
<request_type> Indicate the type of PDP context activation request for the PDP context
0 PDP context is for new PDP context establishment or for handover from a
non-3GPP access network (how the MT decides whether the PDP context is
for new PDP context establishment or for handover is implementation specific)
1 PDP context is for emergency bearer services
The command is used to allow the TE to specify the quality of service profile that is used when the MT
activates a PDP context.
The Write Command specifies a profile for the context <cid>. A special form of the Write Command,
AT+CGQREQ=<cid> causes the requested profile for context number <cid> to become undefined. The
Read Command returns the current settings for each defined context. Details can be found in 3GPP TS
23.107 and all parameters are saved in NVM automatically.
OK
Read Command Response
AT+CGQREQ? [+CGQREQ: <cid>,<precedence>,<delay>,>reliability>,<p
eak>,<mean>]
[…]
OK
Write Command Response
AT+CGQREQ=<cid>[,<precedence>[, OK
<delay>[,<reliability>[,<peak>[,<mea
n>]]]]] If there is any error related to MT functionality:
+CME ERROR: <err>
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_type> Packet Data Protocol type
"IP" IPV4. Internet Protocol (IETF STD 5)
"PPP"
"IPV6"
"IPV4V6"
The command is used to allow TE to specify a minimum acceptable profile which is checked by MT
against the negotiated profile when the PDP context is activated. The Write Command specifies a profile
for the context identified by the context identification parameter <cid>.
A special form of the Write Command, AT+CGQMIN=<cid> causes the minimum acceptable profile for
context number <cid> to become undefined. In this case no check is made against the negotiated profile.
The Read Command returns the current settings for each defined context. Details can be found in 3GPP
TS 23.107 and all parameters are saved in NVM automatically.
OK
Read Command Response
AT+CGQMIN? [+CGQMIN: <cid>,<precedence>,<delay>,<reliability>,<p
eak>,<mean>]
[…]
OK
Write Command Response
AT+CGQMIN=<cid>[,<precedence>[,< OK
delay>[,<reliability>[,<peak>[,<mea
n>]]]]] If there is any error related to MT functionality:
+CME ERROR: <err>
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_type> Packet Data Protocol type
"IP" IPV4. Internet Protocol (IETF STD 5)
"PPP"
"IPV6"
"IPV4V6"
<precedence> A numeric parameter which specifies the precedence class
0 Network subscribed value
1 High Priority. Service commitments shall be maintained ahead of precedence
classes 2 and 3
2 Normal priority. Service commitments should be maintained ahead of
precedence class 3
3 Low priority. Service commitments should be maintained
<delay> A numeric parameter which specifies the delay class. This parameter defines the
end-to-end transfer delay incurred in the transmission of SDUs through the network.
For the detail please refer to Table 4.
The command is used to activate or deactivate the specified PDP context(s). After the command has
been completed, the MT will remain in V.250 command state. If any PDP context is already in the
requested state, the state for that context will remain unchanged. If MT is not PS attached when the
activation form of the command is executed, MT will first perform a PS attach and then attempt to activate
the specified contexts. If no <cid>s specify the activation/deactivation form of the command, it will
activate or deactivate all defined contexts.
OK
Read Command Response
AT+CGACT? +CGACT: <cid>,<state>[<CR><LF>]
[…]
OK
Write Command Response
AT+CGACT=<state>,<cid> OK
Or
NO CARRIER
Parameter
Example
AT+CGDCONT=4,"IP","UNINET" //Define a PDP context.
OK
AT+CGACT=1,4 //Activated the PDP.
OK
AT+CGACT? //Query the current PDP context state.
+CGACT: 1,1
+CGACT: 2,0
+CGACT: 3,0
+CGACT: 4,1
OK
AT+CGACT=0,4 //Deactivated the PDP.
OK
The Write Command causes the MT to perform whatever actions that are necessary to establish
communication between the TE and the network using one or more packet domain PDP types. This may
include performing a PS attach and one or more PDP context activations. Any commands following the
AT+CGDATA command in the AT command line will not be processed by MT.
If the <L2P> parameter value is unacceptable to MT, MT shall return an ERROR or +CME ERROR
response. Otherwise, the MT issues the intermediate result code CONNECT and enters V.250 online data
state. After data transfer is completed, and the layer 2 protocol termination procedure has been
completed successfully, the command state is reentered and the MT returns the final result code OK.
OK
Write Command Response
AT+CGDATA=<L2P>,<cid> CONNECT
Or
ERROR
Reference
3GPP TS 27.007
Parameter
<L2P> A string parameter that indicates the layer 2 protocol to be used between TE and MT:
PPP (Point to Point protocol) for a PDP such as IP
Other values are not supported and will result in an ERROR response to the execution
command
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
The command returns a list of PDP addresses for the specified context identifiers. If no <cid> is specified,
the addresses for all defined contexts are returned.
OK
Write Command Response
AT+CGPADDR[=<cid>[,<cid>[,…]]] +CGPADDR: <cid>,<PDP_addr>
[…]
OK
Or
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<cid> A numeric parameter which specifies a particular PDP context definition (see
AT+CGDCONT command)
<PDP_addr> 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 AT+CGDCONT
command 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_addr> is omitted if none is available.
Example
AT+CGDCONT=1,"IP","UNINET" //Define a PDP context.
OK
AT+CGACT=1,1 //Activated the PDP.
OK
AT+CGPADDR=1 //Show the PDP address.
+CGPADDR: 1,"10.76.51.180"
OK
The command is used to query the network registration status and control the presentation of an
unsolicited result code +CGREG: <stat> when <n>=1 and there is a change in the MT’s GPRS network
registration status in GERAN/UTRAN, or unsolicited result code +CGREG:
<stat>[,[<lac>],[<ci>],[<Act>],[<rac>]] when <n>=2 and there is a change of the network cell in
GERAN/UTRAN.
OK
Read Command Response
AT+CGREG? +CGREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
Write Command Response
AT+CGREG=[<n>] OK
Or
ERROR
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
NOTE
If the MT also supports one or more of the circuit mode services in GERAN/UTRAN, EPS services in
E-UTRAN, the AT+CREG command and +CREG: result codes, the AT+CEREG command and
+CEREG: result codes and the command apply to the registration status and location information for
those services.
Example
AT+CGREG=2
OK
AT+CGATT=0
OK
+CGREG: 2
AT+CGATT=1
OK
+CGREG: 1,"D504","80428B5",7
The command is used to enable/disable 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. <mode> controls the
processing of unsolicited result codes specified within this command. <bfr> controls the effect on buffered
codes when <mode> 1 or 2 is entered.
OK
Read Command Response
AT+CGEREP? +CGEREP: <mode>,<bfr>
OK
Write Command Response
AT+CGEREP=mode[,<bfr>] OK
Or
ERROR
Execution Command Response
AT+CGEREP OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> 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;
NOTE
The unsolicited result codes and the corresponding events are defined as follows:
1. +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.
Note: This event is not applicable for EPS.
2. +CGEV: NW REACT <PDP_type>, <PDP_addr>, [<cid>]: The network has requested a context
reactivation. The <cid> used to reactivate the context is provided if known to the MT.
Note: This event is not applicable for EPS.
3. +CGEV: NW DEACT <PDP_type>, <PDP_addr>, [<cid>]: The network has forced a context
deactivation. The <cid> used to activate the context is provided if known to the MT.
4. +CGEV: ME DEACT <PDP_type>, <PDP_addr>, [<cid>]: The mobile equipment has forced a
context deactivation. The <cid> used to activate the context is provided if known to the MT.
5. +CGEV: NW DETACH: The network has forced a Packet Domain detach. This implies that all active
contexts have been deactivated. These are not reported separately.
6. +CGEV: ME DETACH: The mobile equipment has forced a Packet Domain detach. This implies that
all active contexts have been deactivated. These are not reported separately.
7. +CGEV: NW CLASS <class>: The network has forced a change of MS class. The highest available
class is reported (see AT+CGCLASS).
8. +CGEV: ME CLASS <class>: The mobile equipment has forced a change of MS class. The highest
available class is reported (see AT+CGCLASS).
9. +CGEV: NW PDN ACT <cid>: The network has activated a context. The context represents a
Primary PDP context in GSM/UMTS. This event is not applicable for EPS.
10. +CGEV: ME PDN ACT <cid>[,<reason>: The mobile termination has activated a context. The
context represents a PDN connection in LTE or a Primary PDP context in GSM/UMTS.
11. +CGEV: NW PDN DEACT <cid>: The network has deactivated a context. The context represents a
PDN connection in LTE or a Primary PDP context in GSM/UMTS.
12. +CGEV: ME PDN DEACT <cid>: The mobile termination has deactivated a context. The context
represents a PDN connection in LTE or a Primary PDP context in GSM/UMTS.
Parameter
<PDP_type> Packet data protocol type. A string parameter which specifies the type of packet
data protocol.
"IP" IPv4
"PPP" PPP
"IPV6" IPv6
"IPV4V6" IPv4v6
<PDP_addr> A string parameter 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.
<cid> PDP context identifier. A numeric parameter which specifies a particular PDP context
definition. The parameter is local to the TE-MT interface and is used in other PDP
context-related commands. The range of permitted values (minimum value=1) is
returned by the test form of AT+CGDCONT command.
<class> A string parameter which indicates the GPRS mobile class.
A Class A (highest)
B Class B
C Class C in GPRS and circuit switched alternate mode
CG Class C in GPRS only mode
CC Class C in circuit switched only mode (lowest)
Example
AT+CGEREP=? //Test command
+CGEREP: (0-2),(0,1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
AT+CGEREP=2,1
OK
AT+CGACT=1,2 //Activated a context.
OK
The command is used to specify the service or service preference that the MT will use to send MO
(mobile originated) SMS messages.
OK
Read Command Response
AT+CGSMS? +CGSMS: <service>
OK
Write Command Response
AT+CGSMS=<service> OK
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 switch preferred (use Packet Domain if circuit switched not available)
The command is query the network registration status and controls the presentation of an unsolicited
result code +CEREG: <stat> when <n>=1 and there is a change in the MT’s EPS network registration
status in E-UTRAN, or unsolicited result code +CEREG: <stat>[,[<tac>],[<ci>],[<Act>]] when <n>=2 and
there is a change of the network cell in E-UTRAN.
OK
Read Command Response
AT+CEREG? +CEREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
Write Command Response
AT+CEREG=[<n>] OK
Or
ERROR
Reference
3GPP TS 27.007
Parameter
The command is used to allow the application to check how much bytes are sent to or received by MT.
OK
Read Command Response
AT+QGDCNT? +QGDCNT: <bytes_sent>,<bytes_recv>
OK
Write Command Response
AT+QGDCNT=<op> OK
Or
ERROR
Reference
Parameter
The operation about data counter
0 Reset the data counter
<op>
1 Save the results of data counter to NVM.
If results need to be automatically saved, please refer to AT+QAUGDCNT command.
<bytes_sent> The amount of sent bytes.
<bytes_recv> The amount of received bytes.
NOTE
When MT is powered on, <bytes_sent> and <bytes_recv> will be loaded from results of data counter in
NVM. The default result in NVM is 0.
Example
AT+QGDCNT=? //Test command
+QGDCNT: (0,1)
OK
AT+QGDCNT? //Query the current bytes sent and received.
+QGDCNT: 3832,4618
OK
AT+QGDCNT=1 //Save the results to NVM.
OK
AT+QGDCNT=0 //Reset counter
OK
OK
Read Command Response
AT+QAUGDCNT? +QAUGDCNT: <value>
OK
Write Command Response
AT+QAUGDCNT=<value> OK
Or
ERROR
Reference
Parameter
Default value is 0. The parameter is the time-interval for AT+QGDCNT command to
<value> save results to NVM automatically. If it is set to 0, auto-save feature would be disabled.
Unit is second.
NOTE
Example
AT+QAUGDCNT=? //Test command
+QAUGDCNT: (0,30-65535)
OK
AT+QAUGDCNT=35 //Set <value>
OK
AT+QAUGDCNT? //Query the interval of auto-save.
+QAUGDCNT: 35
OK
The command is used to query MTU (Maximum Transmission Unit) value from the network.
OK
If no network is active:
OK
Reference
Parameter
<pdp_cid> PDP context identifier, a numeric parameter which specifies a particular PDP context.
<mtu_ipv4> MTU value of IPv4 interface.
<mtu_ipv6> MTU value of IPv6 interface.
NOTES
1. If only IPv4 iface was activated by the network, the <mtu_ipv6> was replaced by "-".
2. If just IPv6 iface was activated by the network, the <mtu_ipv4> was replaced by "-".
Example
AT+QMTUINFO=?
OK
AT+QMTUINFO //Query MTU value
+QMTUINFO: 1,1460,1460
+QMTUINFO: 2,1460,-
+QMTUINFO: 3,- ,1460
OK
The command triggers an RmNet call based on <action> parameter which is typically a start or stop of an
RmNet call.
OK
Read Command Response
AT$QCRMCALL? If a RmNet call has been established:
$QCRMCALL :<instance>,<call_type>
OK
Parameter
Example
AT$QCRMCALL=? //Test command
$QCRMCALL: (0-1),(1,2,3,4,5,6,7,8),(1-3),(1-2),(1-42),,
OK
AT$QCRMCALL=1,1,1,2,1 //Start an IPv4 RmNet call
$QCRMCALL: 1,V4
OK
AT$QCRMCALL? //Query the current RmNet call
$QCRMCALL: 1,V4
OK
OK
Read Command Response
AT+QNETDEVSTATUS? If an RmNet call exists, <state>, <ip_type> and <instance> will
be included.
+QNETDEVSTATUS:
<on_off>[,<state>[,<ip_type>[,<instance>]]]
OK
Or
+QNETDEVSTATUS: <on_off>
OK
Write Command Response
AT+QNETDEVSTATUS=<on_off> OK
Or
ERROR
Reference
Parameter
NOTE
When MT gets IP addresses from network successfully, <state> will change to 1 and MT will keep IP
addresses for 2 minutes to wait for MCU to request IP addresses from MT by DHCP or QMI. And MT will
disconnect an RmNet call if IP addresses requests are not be received by MT in 2 minutes.
Example
AT+QNETDEVSTATUS=? //Test command
+QNETDEVSTATUS:(0,1)
OK
AT+QNETDEVSTATUS? //Read command
+QNETDEVSTATUS: 0
OK
AT+QNETDEVSTATUS=1 //Enable RmNet device status URC.
OK
AT+QNETDEVSTATUS? //Read command
+QNETDEVSTATUS: 1
OK
AT$QCRMCALL=1,1,1,2,1 //Start an IPv4 RmNet call.
$QCRMCALL: 1,V4
OK
OK
AT$QCRMCALL=0,1,1,2,1 //Stop an IPv4 RmNet call.
OK
OK
The command is used to control of the call forwarding supplementary service according to 3GPP TS
22.082. Registration, erasure, activation, deactivation and status query are supported.
OK
Write Command Response
AT+CCFC=<reads>,<mode>[,<numbe MT controls the call forwarding supplementary service.
r>[,<type>[,<class>[,<subaddr>[,<sat Registration, erasure, activation, deactivation, and status
ype>[,time]]]]]] query are supported. If <mode> is not equal to 2 and the
command is executed successfully:
OK
OK
OK
where <status>=0 and <class>=15
Parameter
<reads> 0 Unconditional
1 Mobile busy
2 No reply
3 Not reachable
4 All call forwarding (refer 3GPP TS 22.030))
5 All conditional call forwarding (refer 3GPP TS 22.030))
<mode> 0 Disable
1 Enable
2 Query status
3 Registration
4 Erasure
<number> String type phone number of forwarding address in format specified by <type>
<type> Type of address in integer format; default value is 145 when dialing string includes
international access code character "+"; otherwise 129
<subaddr> Sub-address in the format specified by <satype>
<satype> Type of sub-address in integer
<class> 1 Voice
2 Data
4 Fax
7 All telephony except SMS
8 Short message service
16 Data circuit synchronization
32 Data circuit asynchronization
<time> 1…30 When "no reply" (<reads>=no reply) is enabled or queried, this parameter gives
the time in seconds to wait before call is forwarded; default value is 20
<status> 0 Not active
1 Active
Example
AT+CCFC=0,3,"15021012496" //Register the destination number for unconditional call
forwarding (CFU).
OK
AT+CCFC=0,2 //Query the status of CFU without specifying <class>.
+CCFC: 1,1,"+8615021012496",145,,,
OK
AT+CCFC=0,4 //Erase the registered CFU destination number.
OK
AT+CCFC=0,2 //Query the status, no destination number.
+CCFC: 0,255
OK
The command is used to allow control of the call waiting supplementary service according to 3GPP TS
22.083. Activation, deactivation and status query are supported.
OK
Read Command Response
AT+CCWA? +CCWA: <n>
OK
Write Command Response
AT+CCWA=[<n>][,<mode>[,<class>]] TA controls the call waiting supplementary service. Activation,
deactivation and status query are supported.
If <mode> is not equal to 2 and the command is executed
successfully:
OK
OK
Parameter
NOTES
1. <status>=0 should be returned only if the service is not active for any <class> i.e. +CCWA: 0, 7 will
be returned in this case.
2. When <mode>=2, all active call waiting classes will be reported. In this mode the command is
aborted by pressing any key.
3. Unsolicited result code:
When the presentation call waiting at the MT is enabled (and call waiting is enabled) and a terminating
call set up during an established call, an unsolicited result code is returned:
+CCWA: <number>,<type>,<class>[,<alpha>]
Example
AT+CCWA=1,1 //Enable presentation of an unsolicited result code.
OK
ATD10086; //Establish a call.
OK
The command is used to allow the control of the following call related services:
A call can be temporarily disconnected from the MT but the connection is retained by the network;
Multiparty conversation (conference calls);
The served subscriber who has two calls (one held and the other either active or alerting) can
connect the other parties and release the served subscriber’s own connection.
Calls can be put on hold, recovered, released and added to a conversation, and transferred similarly as
defined in 3GPP TS 22.030.
This is based on the GSM/UMTS supplementary services HOLD (Call Hold; refer to 3GPP TS 22.083
clause 2), MPTY (MultiParty; refer to 3GPP TS 22.084) and ECT (Explicit Call Transfer; refer to 3GPP TS
22.091). The interaction of this command with other commands based on other GSM/UMTS
supplementary services is described in the GSM/UMTS standards. Call Hold, MultiParty and Explicit Call
Transfer are only applicable to teleservice 11.
OK
Write Command Response
AT+CHLD=[<n>] MT controls the supplementary services call hold, multiparty
and explicit call transfer. Calls can be put on hold, recovered,
released, added to conversation and transferred.
OK
Parameter
<n> 0 Terminate all held calls or UDUB (User Determined User Busy) for a waiting call. If
a call is waiting, terminate the waiting call. Otherwise, terminate all held calls (if
any)
1 Terminate all active calls (if any) and accept the other call (waiting call or held
call).
Example
ATD10086; //Establish a call.
OK
OK
AT+CHLD=21 //Place the active call except call X=1 on hold.
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"10086",129 //The first call is active.
OK
AT+CHLD=3 //Add a held call to the active calls in order to set up a
conference (multiparty) call.
OK
AT+CLCC
+CLCC: 1,0,0,0,1,"10086",129
+CLCC: 2,1,0,0,1,"02154450293",129
OK
The command refers to the GSM/UMTS supplementary service CLIP (Calling Line Identification
Presentation) that enables a called subscriber to get the calling line identity (CLI) of the calling party when
receiving a mobile terminated call.
OK
Read Command Response
AT+CLIP? +CLIP: <n>,<m>
OK
Write Command Response
AT+CLIP=<n> MT enables or disables the presentation of the calling line
identity (CLI) at the TE. It has no effect on the execution of the
supplementary service CLIP in the network.
OK
Parameter
NOTE
When the presentation of the CLIP at the TE is enabled (and calling subscriber allows), an unsolicited
result code is returned after every RING (or +CRING: <type>) at a mobile terminating call:
+CLIP: <number>,<type>,[subaddr],[satype],[<alpha>],<CLI validity>
Example
AT+CPBW=1,"02151082965",129,"QUECTEL"
OK
AT+CLIP=1
OK
RING
+CLIP: "02151082965",129,,,"QUECTEL",0
The command refers to the CLIR supplementary service (Calling Line Identification Restriction) according
to 3GPP TS 22.081 and the OIR supplementary service (Originating Identification Restriction) according
to 3GPP TS 24.607 that allows a calling subscriber to enable or disable the presentation of the calling line
identity (CLI) to the called party when originating a call.
OK
Read Command Response
AT+CLIR? +CLIR: <n>,<m>
OK
Parameter
The command is used to enable/disable a calling subscriber to get the connected line identity (COL) of
the called party after setting up a mobile originated call, referring to the GSM/UMTS supplementary
service COLP (Connected Line Identification Presentation).
OK
Read Command Response
OK
Write Command Response
AT+COLP=[<n>] MT enables or disables the presentation of the COL
(Connected Line) at the TE for a mobile originating a call. It
has no effect on the execution of the supplementary service
COLR in the network.
Parameter
NOTE
When enabled (and called subscriber allows), an intermediate result code is returned before any +CR or
V.25ter responses:
+COLP: <number>,<type>,[<subaddr>],[<satype>],[<alpha>]
Example
AT+CPBW=1,"02151082965",129,"QUECTEL"
OK
AT+COLP=1
OK
ATD02151082965;
+COLP: "02151082965",129,,,"QUECTEL"
OK
The command is used to enable/disable the presentation of notification result codes from TA to TE.
OK
Read Command Response
AT+CSSN? +CSSN: <n>,<m>
OK
Write Command Response
AT+CSSN=<n>[,<m>] OK
Or
ERROR
Parameter
<n> Integer type, sets/indicates the +CSSI intermediate result code presentation status to
the TE
0 Disable
1 Enable
<m> Integer type, sets/indicates the +CSSU unsolicited result code presentation status to the
TE
0 Disable
1 Enable
<code1> Integer type, it is manufacturer specified and supports the following codes:
0 Unconditional call forwarding is active
1 Some of the conditional call forwarding are active
2 Call has been forwarded
3 Waiting call is pending
5 Outgoing call is barred
<code2> Integer type, it is manufacturer specific and supports the following codes:
0 The incoming call is a forwarded call
2 Call has been put on hold (during a voice call)
3 Call has been retrieved (during a voice call)
5 Held call was terminated by another party
10 Additional incoming call forwarded
NOTES
1. When <n>=1 and a supplementary service notification is received after a mobile originated call setup,
the +CSSI intermediate result code is sent to TE before any other MO call setup result codes:
+CSSI: <code1>
2. When <m>=1 and a supplementary service notification is received during a mobile terminated call
setup or during a call, the +CSSU unsolicited result code is sent to TE:
+CSSU: <code2>
The command is used to allow control of the Unstructured Supplementary Service Data (USSD)
according to 3GPP TS 22.090. Both network and mobile initiated operations are supported.
Parameter <mode> is used to disable/enable the presentation of an unsolicited result code. The value
<mode>=2 is used to cancel an ongoing USSD session. For a USSD response from the network, or a
network initiated operation, the format is: +CUSD: <status>[,<rspstr>,[<dcs>]].
When <reqstr> is given, a mobile initiated USSD string or a response USSD string to a network initiated
operation is sent to the network. The response USSD string from the network is returned in a subsequent
+CUSD URC.
OK
Read Command Response
AT+CUSD? +CUSD: <mode>
OK
Write Command Response
AT+CUSD=[<mode>[,<reqstr>[,<dcs> OK
]]] Or
ERROR
Parameter
11 Audio Commands
11.1. AT+CLVL Loudspeaker Volume Level Selection
The command is used to select the volume level of the internal loudspeaker of MT.
OK
Read Command Response
AT+CLVL? +CLVL: <level>
OK
Write Command Response
AT+CLVL=<level> OK
Or
ERROR
Parameter
<level> Value (0-3-5) with manufacturer specific range (Smallest value represents the lowest
sound level)
The command is used to enable/disable the uplink voice muting during a voice call.
OK
Read Command Response
AT+CMUT? +CMUT: <n>
OK
Write Command Response
AT+CMUT=<n> OK
Or
ERROR
Parameter
NOTE
This parameter will not be saved and must be set during the call.
OK
Read Command Response
AT+QAUDLOOP? +QAUDLOOP: <enable>
OK
Write Command Response
AT+QAUDLOOP=<enable> OK
Or
ERROR
Parameter
NOTE
The command is used to send ASCII characters which cause MSC to transmit DTMF tones to a remote
subscriber. This command can only be operated in a voice call.
OK
Write Command Response
AT+VTS=<dtmfstring>[,<duration>] OK
Or
ERROR
Parameter
Example
ATD12345678900; //Dial
OK
<Call connected>
The command is used to set the duration of DTMF tones. It can also set time interval of two tones when
sending multiple tones at a time.
OK
Read Command Response
AT+VTD? +VTD: <duration>,<interval>
OK
Write Command Response
AT+VTD=<duration>[,<interval>] OK
Or
ERROR
Parameter
<duration> The duration tone in 1/10 seconds with tolerance. The value range: 0-255,
and the default is 3. If the duration is less than the minimum time specified by
the network, the actual duration will be network specified time.
<interval> The time interval of two tones when sending multiple tones at a time by
AT+VTS. The value range is 0-255, and the default is 0.
NOTE
The command is used to set the audio mode required for the connected device. It will take effect at next
sound activity.
OK
Read command Response
AT+QAUDMOD? +QAUDMOD: <mode>
OK
Write Command Response
AT+QAUDMOD=<mode> OK
Or
ERROR
Parameter
The command is used to configure the digital audio interface. When there is no codec on board,
customers can define the PCM formats by themselves. In the following conditions, the MT can be used
directly with default settings (master mode, short-synchronization, 2048KHz clock frequency, 16-bit liner
data format, 8KHz sampling rate).
OK
Read Command Response
AT+QDAI? +QDAI: <io>[,<mode>,<fsync>,<clock>,<format>,<sampl
e>,<num_slots>,<slot_mapping0>,<slot_mapping1>]
OK
Write Command Response
AT+QDAI=<io>[,<mode>,<fsync>,<clo OK
ck>[,<format>[,<sample>[,<num_slot Or
s>,<slot_mapping0>[,<slot_mapping ERROR
1>]]]]]
Maximum Response Time 300ms
Reference
Quectel
Parameter
NOTES
1. The parameter settings will be saved to NVM immediately by default, and will take effect after the MT
is reset.
2. 4096KHz clock frequency is only applicable for 16kHz sampling rate.
3. 128KHz clock frequency is not supported.
4. Bit per frame=<clock>/<sample>. For example, if <clock> is 2048kHz and <sample> is 8kHz, then
bit per frame is 256. Bit per frame should be greater than 16.
5. When slave mode is selected, master and synchronization clock should be provided for the MT.
6. When a recommended codec is selected and 16kHz sampling rate is desired, please input <sample>.
Currently the MT only supports 16kHz (AT+QDAI=x,0,0,5,0,1).
Example
AT+QDAI=? //Query the range.
+QDAI: x,(0,1),(0,1),(0-5),(0-2),(0,1),(1-2),(1-16),(2-16)
OK
AT+QDAI? //Query the current interface configuration.
+QDAI: x,0,0,4,0,0,1,1
OK
AT+QDAI=x,1,0,4,0,0,1,1 //Set AUX PCM interface to slave, short-sync, 8kHz sample, 2048kHz
BCLK.
OK
AT+QDAI=x,0,0,4,0,1,1,1 //Configure one slot.
OK
AT+QDAI=x,0,0,4,0,1,2,1,3 //Configure two slots.
OK
OK
Read Command Response
AT+QEEC? +QEEC: <index>,<value>
...
OK
Write Command Response
AT+QEEC=<index>,<value> OK
Or
ERROR
Parameter
NOTE
Example
AT+QEEC=? //Query the range.
+QEEC: (0-50),(0-65535)
OK
AT+QEEC=6,1234 //Set the value of index 6 to 1234.
OK
The command is used to set the side tone gain value in current mode. It will take effect at next sound
activity.
OK
Read Command Response
AT+QSIDET? +QSIDET: <st_gain>
OK
Write Command Response
AT+QSIDET=<st_gain> OK
Or
ERROR
Reference
Quectel
Parameter
NOTE
OK
Read Command Response
AT+QMIC? +QMIC: <txgain>,<txdgain>
OK
Write Command Response
AT+QMIC=<txgain>[,<txdgain>] OK
Or
ERROR
Parameter
<txgain> Indicate uplink codec gain and the range is 0-65535. The default value might be different in
different audio modes.
<txdgain> Indicate uplink digital gain and the range is 0-65535. The default value might be different in
different audio modes.
NOTE
The command is used to set RX digital gains to change the downlink volume.
OK
Read Command Response
AT+QRXGAIN? +QRXGAIN: <rxgain>
OK
Write Command Response
AT+QRXGAIN=<rxgain> OK
Or
ERROR
Reference
Parameter
<rxgain> Indicate downlink digital gains. Range: 0-65535. The default value might be different in
different audio modes.
NOTE
Example
AT+QRXGAIN=? //Test command
+QRXGAIN: (0-65535)
OK
AT+QRXGAIN? //Query the current value. The default value might be different in
different audio modes.
+QRXGAIN: 20577
OK
AT+QRXGAIN=8192 //Set digital gain to 8192.
OK
AT+QRXGAIN? //Query the current configuration.
+QRXGAIN: 8192
OK
OK
Write Command Response
AT+QIIC=<rw>,<device>,<addr>,<byt If all configuration parameters are entered:
es>[,<value>] OK
OK
Parameter
NOTE
Example
AT+QIIC=1,0x18,15,1,38 //Read register value, slave address: 0x18, register address: 15,
read two bytes.
+QIIC: 0x0026
OK
AT+QIIC=0,0x18,15,2,38 //Write register value, slave address: 0x18, register address: 15,
write two bytes.
OK
The command is used to enable or disable DTMF detection. When this function is enabled, DTMF tones
sent by other side will be detected, and it will be reported on the assigned serial port.
OK
Read Command Response
AT+QTONEDET? +QTONEDET: <enable>
OK
Write Command Response
AT+QTONEDET=<enable> OK
Or
ERROR
Maximum Response Time 300ms
Reference
Quectel
Parameter
NOTES
1. This setting will take effect immediately. And it will revert to the default values after resetting the MT.
2. DTMF characters - ASCII:
3 51 B 66
4 52 C 67
5 53 D 68
6 54 * 42
7 55 # 35
The command is used to play a local DTMF string, and the maximum length is 20 characters. It can be
used to stop playing the DTMF string.
OK
Write Command Response
AT+QLDTMF=<n>,<DTMF_string>[,< OK
y>]
If there is error related to MT functionality:
+CME ERROR: <err>
Parameter
<n> Indicates every DTMF’s play time and mute time. The range is 1 -1000, and the
unit is 1/100 second when <y> is set to 1, or 1/10 second when <y> is not set.
<DTMF_string> Maximum 20 DTMF strings, separated by comma. DTMF format: 0-9,*,#,A-G. The
string should be enclosed in quotation marks ("...")
<err> 901 Audio unknown error
902 Audio invalid parameters
903 Audio operation is not supported
904 Audio device is busy
NOTE
Example
AT+QLDTMF=? //Query the range.
+QLDTMF: (1-1000),(0-9,*,#,A-G)
OK
AT+QLDTMF=2,"A,B,1,2,#" //Play "A,B,1,2,#". The play time & the mute time are 200ms
separately.
OK
AT+QLDTMF //Stop playing.
OK
The command is used to play a customized tone, use <period_on> to indicate play time and
<period_off> to indicate mute time, and <time> to indicate repeat times.
OK
Write Command Response
AT+QLTONE=<mode>[,<frequency>, OK
<period_on>,<period_off>,<times>]
If there is error related to MT functionality:
+CME ERROR: <err>
Reference
Parameter
NOTE
Example
AT+QLTONE=? //Query the range.
+QLTONE: (0,1),(100-4000),(0-1000),(0-1000),(0-65535)
OK
AT+QLTONE=1,1000,200,300,3000 //Play a 1000Hz tone. The play time is 200ms and the mute time
is 300ms. Repeat 3000times.
OK
+QLTONE:0
AT+QLTONE=0 //Stop playing.
OK
OK
Maximum Response Time 300ms
Reference
OK
Parameter
<duration> Duration of VoLTE DTMF tone in 2.5ms per unit (that is, the value is incremented in
multiplies of 2.5ms). If this value is set to 0, the duration will be controlled by the
network, not exceeding the default value 200 (ie. 500ms).
Range: 0-400
<volume> Volume of VoLTE DTMF tone. If this value is not set before, it will be the default value
5000.
Range: 0~9999
NOTES
1. The time interval between two DTMF tones of VoLTE will be a little bit longer than the duration.
2. These parameters will be saved.
Example
AT+QAUDCFG="voltedtmfcfg",40,5000 //Set VoLTE DTMF tone duration as 100ms and volume
as 5000.
OK
AT+QAUDCFG="voltedtmfcfg" //Query the current configuration.
+QCFG: "voltedtmfcfg", 40,5000
OK
The command is used to power off the MT. The UE will return OK immediately when the command is
executed. Then the UE will deactivate the network. After it is completed, the UE outputs POWERED
DOWN message and enters into power-off state. The maximum time for unregistering network is 60
seconds. To avoid data loss, the power supply for the module cannot be disconnected before the URC
POWERED DOWN is outputted.
OK
Write Command Response
AT+QPOWD=[<n>] OK
POWERED DOWN
Maximum Response Time 300ms
Reference
Parameter
The command sets and queries the real time clock (RTC) of the MT. The current setting is retained until
the MT is totally disconnected from the power supply.
AT+CCLK Clock
Test Command Response
AT+CCLK=? OK
Read Command Response
AT+CCLK? +CCLK: <time>
OK
Write Command Response
AT+CCLK=<time> OK
Parameter
<time> String type value, format is "yy/MM/dd,hh:mm:ss±zz", indicating year (two last digits),
month, day, hour, minutes, seconds and time zone (indicates the difference, expressed in
quarters of an hour, between the local time and GMT; range: -48...+56). E.g. May 6th, 1994,
22:10:00 GMT+2 hours equals to "94/05/06,22:10:00+08".
Example
AT+CCLK? //Query the local time
+CCLK: "08/01/04,00:19:43+00"
OK
The command returns battery charge status <bcs> and battery charge level <bcl> of the MT.
OK
Execution Command Response
AT+CBC +CBC: <bcs>,<bcl>,<voltage>
OK
Parameter
OK
Read Command Response
AT+QADC=<port> +QADC: <status>,<value>
OK
Maximum Response Time 300ms
Parameter
NOTE
The command is used to control whether MT enters sleep mode. When entering into sleep mode is
enabled, the MT can directly enter into sleep mode.
OK
Read Command Response
AT+QSCLK? +QSCLK: <n>,<saved>
OK
Write Command Response
AT+QSCLK=<n>[,<saved>] OK
Maximum Response Time 300ms
Reference
Quectel
Parameter
[+QTEMP: <sensor>,<temp>
[…]]
Reference
Quectel
Parameter
<sensor> Sensor type.
"xo_therm_buf" XO crystal
"mdm_case_therm" BB chip
"pa_therm1" PA chip
"tsens_tz_sensor0" The first detection point on PCB board
"tsens_tz_sensor1" The second detection point on PCB board
"tsens_tz_sensor2" The third detection point on PCB board
"tsens_tz_sensor3" The forty detection point on PCB board
"tsens_tz_sensor4" The fifth detection point on PCB board
<temp> Temperature value. Units are in degrees C.
Example
AT+QTEMP
OK
+QTEMP: "xo_therm_buf","26"
+QTEMP: "mdm_case_therm","26"
+QTEMP: "pa_therm1","26"
+QTEMP: "tsens_tz_sensor0","29"
+QTEMP: "tsens_tz_sensor1","28"
+QTEMP: "tsens_tz_sensor2","28"
+QTEMP: "tsens_tz_sensor3","28"
+QTEMP: "tsens_tz_sensor4","28"
OK
Write Command Response
AT+QPMUGPIO=<value>,<gpio_num> OK
Maximum Response Time 300ms
Reference
Quectel
Parameter
<value> PMU GPIO output value.
0 The PMU GPIO pin outputs high voltage level.
1 The PMU GPIO pin outputs low voltage level.
<gpio_num> The PMU GPIO number. Range: 1-10.
3 WWAN_LED# (pin 10) of EM12
Others Reserved
NOTE
Example
AT+QPMUGPIO=0,3 //Set the PMU GPIO number 3 (WWAN_LED# of EM12) output high.
OK
OK
Read Command Response
AT+QSAR? +QSAR: <level>
OK
Write Command Response
AT+QSAR=<level>[,<saved>] OK
Or
ERROR
Reference
Parameter
<level> 0 Disable SAR power backoff.
1-8 SAR power backoff level. The value of the power backoff is determined by
AT+QCFG="sarcfg" command.
<saved> Whether to save the configuration into NVM.
0 Not to save
1 Save
13 Appendix
13.1. References
Abbreviation Description
ME Mobile Equipment
MS Mobile Station
MT Mobile Terminal
TA Terminal Adapter
TE Terminal Equipment
UE User Equipment
ATE <value> 1
ATQ <n> 0
ATS0 <n> 0
ATS3 <n> 13
ATS4 <n> 10
ATS5 <n> 8
ATS6 <n> 2
ATS7 <n> 0
ATS8 <n> 2
ATS10 <n> 15
ATV <value> 1
ATX <value> 4
AT&C <value> 1
AT&D <value> 1
AT+CREG <n> 0
AT+CGREG <n> 0
AT+CMEE <n> 1
AT+CR <mode> 0
AT+CRC <mode> 0
AT+CMGF <mode> 0
AT+CSDH <show> 0
AT+CMMS <n> 0
AT+CVHU <mode> 0
AT+CLIP <n> 0
AT+COLP <n> 0
AT+CLIR <n> 0
AT+CTZR <reporting> 0
AT+CPBS <storage> SM
AT+CEREG <n> 0
AT+CCWA <n> 0
AT+CUSD <mode> 0
AT+CLVL <level> 3
AT+QAUDMOD <mode> 0
AT+QAUDLOOP <enable> 0
AT+CREG <n> No
AT+CGREG <n> No
AT+CEREG <n> No
AT+QSIMSTAT <enable> No
ATE <value> 1
ATQ <n> 0
ATS0 <n> 0
ATS7 <n> 0
ATS10 <n> 15
ATV <value> 1
ATX <value> 4
AT&C <value> 1
AT&D <value> 1
AT+CREG <n> 0
AT+CGREG <n> 0
AT+CEREG <n> 0
Final result code +CME 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 should be returned.
<err> values are mostly used by common message commands. The following table lists most of general
and GRPS related ERROR codes. For some GSM protocol failure cause described in GSM specifications,
the corresponding ERROR codes are not included.
0 Phone failure
1 No connection to phone
13 (U)SIM failure
14 (U)SIM busy
15 (U)SIM wrong
16 Incorrect password
20 Memory full
21 Invalid index
22 Not found
23 Memory failure
30 No network service
31 Network timeout
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 should be returned.
300 ME failure
331 No network
500 Unknown
t><CR><LF><data>
MS class.
In 3GPP TS 23.038 DCS (Data Coding Scheme) defined three kinds of alphabets in SMS, GSM 7-bit
default alphabet, 8 bit data and UCS2 (16-bit). AT+CSMP can set the DCS in text mode (AT+CMGF=1).
In text mode, DCS (Data Coding Scheme) and AT+CSCS determine the way of SMS text input or output.
When DCS=GSM 7-bit, the input or output needs conversion. The detailed conversion tables are shown
as below.
Table 14: The Input Conversions Table (DCS=GSM 7-bit and AT+CSCS="GSM")
No. 0 1 2 3 4 5 6 7
0 00 10 20 30 40 50 60 70
1 01 11 21 31 41 51 61 71
2 02 12 22 32 42 52 62 72
3 03 13 23 33 43 53 63 73
4 04 14 24 34 44 54 64 74
5 05 15 25 35 45 55 65 75
6 06 16 26 36 46 56 66 76
7 07 17 27 37 47 57 67 77
8 08 18 28 38 48 58 68 78
9 09 19 29 39 49 59 69 79
A 0A Submit 2A 3A 4A 5A 6A 7A
B 0B Cancel 2B 3B 4B 5B 6B 7B
C 0C 1C 2C 3C 4C 5C 6C 7C
D 0D 1A 2D 3D 4D 5D 6D 7D
E 0E 1E 2E 3E 4E 5E 6E 7E
F 0F 1F 2F 3F 4F 5F 6F 7F
Table 15: The Output Conversions Table (DCS=GSM 7-bit and AT+CSCS="GSM")
No. 0 1 2 3 4 5 6 7
0 00 10 20 30 40 50 60 70
1 01 11 21 31 41 51 61 71
2 02 12 22 32 42 52 62 72
3 03 13 23 33 43 53 63 73
4 04 14 24 34 44 54 64 74
5 05 15 25 35 45 55 65 75
6 06 16 26 36 46 56 66 76
7 07 17 27 37 47 57 67 77
8 08 18 28 38 48 58 68 78
9 09 19 29 39 49 59 69 79
A 0D0A 2A 3A 4A 5A 6A 7A
B 0B 2B 3B 4B 5B 6B 7B
C 0C 1C 2C 3C 4C 5C 6C 7C
D 0D 1A 2D 3D 4D 5D 6D 7D
E 0E 1E 2E 3E 4E 5E 6E 7E
F 0F 1F 2F 3F 4F 5F 6F 7F
No. 0 1 2 3 4 5 6 7
0 1B40
4 1B14
8 1B28
9 1B29
C 1B3C
D 1B3D
E 1B3E
F 1B2F
Table 17: The Input Conversions Table (DCS=GSM 7-bit and AT+CSCS="IRA")
No. 0 1 2 3 4 5 6 7
0 20 20 30 00 50 20 70
1 20 20 21 31 41 51 61 71
2 20 20 22 32 42 52 62 72
3 20 20 23 33 43 53 63 73
4 20 20 02 34 44 54 64 74
5 20 20 25 35 45 55 65 75
6 20 20 26 36 46 56 66 76
7 20 20 27 37 47 57 67 77
8 backspace 20 28 38 48 58 68 78
9 20 20 29 39 49 59 69 79
A 0A Submit 2A 3A 4A 5A 6A 7A
C 20 20 2C 3C 4C 1B2F 6C 1B40
D 0D 20 2D 3D 4D 1B3E 6D 1B29
E 20 20 2E 3E 4E 1B14 6E 1B3D
F 20 20 2F 3F 4F 11 6F 20
No. A B C D E F
0 20 20 20 20 7F 20
1 40 20 20 5D 20 7D
2 20 20 20 20 20 08
3 01 20 20 20 20 20
4 24 20 5B 20 7B 20
5 03 20 0E 20 0F 20
6 20 20 1C 5C 1D 7C
7 5F 20 09 20 20 20
8 20 20 20 0B 04 0C
9 20 20 1F 20 05 06
A 20 20 20 20 20 20
B 20 20 20 20 20 20
C 20 20 20 5E 07 7E
D 20 20 20 20 20 20
E 20 20 20 20 20 20
F 20 60 20 1E 20 20
Table 19: The Output Conversions Table (DCS=GSM 7-bit and AT+CSCS="IRA")
No. 0 1 2 3 4 5 6 7
0 40 20 20 30 A1 50 BF 70
1 A3 5F 21 31 41 51 61 71
2 24 20 22 32 42 52 62 72
3 A5 20 23 33 43 53 63 73
4 E8 20 A4 34 44 54 64 74
5 E9 20 25 35 45 55 65 75
6 F9 20 26 36 46 56 66 76
7 EC 20 27 37 47 57 67 77
8 F2 20 28 38 48 58 68 78
9 C7 20 29 39 49 59 69 79
A 0D0A 2A 3A 4A 5A 6A 7A
B D8 2B 3B 4B C4 6B E4
C F8 C6 2C 3C 4C D6 6C F6
D 0D E6 2D 3D 4D D1 6D F1
E C5 DF 2E 3E 4E DC 6E FC
F E5 C9 2F 3F 4F A7 6F E0
No. 0 1 2 3 4 5 6 7
0 7C
4 5E
8 7B
9 7D
C 5B
D 7E
E 5D
F 5C
Because the low 8-bit of UCS2 character is the same as the IRA character:
The difference is the way of SMS text input or output. Please refer to Table 14 for more details.
CS Internal Cause
Phone is offline
No service available
No funds available
No service available
Internal error
CS Network Cause
Unassigned/unallocated number
No route to destination
Channel unacceptable
User busy
No user responding
Call rejected
Number changed
Invalid/incomplete number
Facility rejected
Normal, unspecified
No circuit/channel available
Temporary failure
Incompatible destination
IE non-existent/not implemented
Conditional IE error
Interworking, unspecified
CS Network Reject
Illegal MS
Illegal ME
Implicitly detached
Network failure
MAC failure
Synch failure
Congestion
RR release indication
Invalid SIM
No service
No cell available
Wrong state
Other cause
No resources
Release pending
PS Internal Cause
Invalid NSAPI
Invalid field
SNDCP failure
No GPRS context
PDP duplicate
CS PS Network Cause
Insufficient resources
Regular deactivation
Network failure
Reactivation required
IE non-existent/not implemented
Conditional IE error