BG95&BG77: AT Commands Manual
BG95&BG77: AT Commands Manual
BG95&BG77: AT Commands Manual
AT Commands Manual
Rev. BG95&BG77_AT_Commands_Manual_V1.0
Date: 2019-08-31
Status: Released
www.quectel.com
LPWA Module Series
BG95&BG77 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. 2019. All rights reserved.
BG95&BG77_AT_Commands_Manual 1 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
History
Revision Date Author Description
Ethan YAN/
1.0 2019-08-31 Initial
Hyman DING
BG95&BG77_AT_Commands_Manual 2 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Contents
1 Introduction .......................................................................................................................................... 8
1.1. Scope of the Document .............................................................................................................. 8
1.2. AT Command Syntax .................................................................................................................. 8
1.3. Supported Character Sets .......................................................................................................... 9
1.4. AT Command Interface ............................................................................................................. 10
1.5. Unsolicited Result Code............................................................................................................ 10
1.6. Turn off Procedure .................................................................................................................... 10
BG95&BG77_AT_Commands_Manual 3 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 4 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 5 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 6 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 7 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Table Index
BG95&BG77_AT_Commands_Manual 7 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
1 Introduction
This document presents the AT Commands Set for the following Quectel eMTC/NB-IoT modules:
BG95 series:
BG95-M1: LTE Cat M1 only module
BG95-M2: LTE Cat M1 and Cat NB2 module
BG95-M3: LTE Cat M1/Cat NB2/EGPRS module
BG95-N1*: LTE Cat NB2 only module
BG95-M4 1): LTE Cat M1 and Cat NB2 module (450MHz supported)
BG95-M5 1): LTE Cat M1 and Cat NB2 module (Power Class 3)
BG95-MF 1): LTE Cat M1 and Cat NB2 module (Wi-Fi positioning)
NOTES
The “AT” or “at” prefix must be set at the beginning of each command line. Entering <CR> will terminate a
command line. 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”, “S parameter”, and
BG95&BG77_AT_Commands_Manual 8 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Basic syntax
These AT commands have the format of “AT<x><n>”, or “AT&<x><n>”, where “<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 a default will be used if it is null.
S parameter syntax
These AT commands have the format of “ATS<n>=<m>”, where “<n>” is the index of the S register to set,
and “<m>” is the value to assign to it.
Extended syntax
These commands can be operated in several modes, as shown in the following table:
Write Command AT+<x>=<…> This command sets the user-definable parameter values.
BG95/BG77 AT command interface uses the GSM character set by default. BG95/BG77 module supports
the following character sets:
GSM format
UCS2
IRA
The character set can be configured and interrogated by using 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.
BG95&BG77_AT_Commands_Manual 9 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95/BG77 AT command interface includes one USB MODEM port and one main UART port. The main
UART port and the USB MODEM port 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 issued by BG95/BG77 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.
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, do not enter any other AT commands. When the command is executed
successfully, the module will output POWERED DOWN and set the STATUS pin as low to enter power-off
state. In order to avoid data loss, it is suggested to wait for 1s at least to disconnect the power supply after
the STATUS pin is set as low and the URC POWERED DOWN is outputted. If POWERED DOWN cannot
be received within 65s, the power supply shall be disconnected compulsorily.
BG95&BG77_AT_Commands_Manual 10 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
2 General Commands
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
ATI
Quectel
BG95M2
Revision: BG95M2LAR01A01
OK
BG95&BG77_AT_Commands_Manual 11 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
V.25ter
The command returns a product model identification text. It is identical with AT+CGMM.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
BG95&BG77_AT_Commands_Manual 12 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command delivers a product firmware version identification text. It is identical with AT+CGMR.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
AT+GMR
BG95M2LAR01A01
OK
BG95&BG77_AT_Commands_Manual 13 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Reference
3GPP TS 27.007
The command returns a product model identification text. It is identical with AT+GMM.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
The command delivers a product firmware version identification text. It is identical with AT+GMR.
BG95&BG77_AT_Commands_Manual 14 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
The command returns the International Mobile Equipment Identity (IMEI). It is identical with AT+CGSN.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
NOTE
BG95&BG77_AT_Commands_Manual 15 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command returns the International Mobile Equipment Identity (IMEI) of the ME. It is identical with
AT+GSN.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
NOTE
The product serial number (IMEI) varies with the individual ME device.
The command resets all current AT command settings to their manufacturer default values.
BG95&BG77_AT_Commands_Manual 16 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
The command displays the current settings of several AT command parameters, including the
single-letter AT command parameters which are not readable otherwise.
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
BG95&BG77_AT_Commands_Manual 17 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Profile
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.
BG95&BG77_AT_Commands_Manual 18 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
The command controls 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.
BG95&BG77_AT_Commands_Manual 19 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The result codes, their numeric equivalents and brief descriptions of the use of each are listed in the
following table.
When <value>=1
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
Example
ATV1 //Set <value>=1
OK
AT+CSQ
+CSQ: 30,99
AT+CSQ
+CSQ: 30,99
0 //When <value>=0, the result code is 0.
BG95&BG77_AT_Commands_Manual 20 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
“@” (Wait for Quiet Answer) dial modifier was used, but
remote ringing followed by five seconds of silence was
NO ANSWER 8
not detected before expiration of the connection timer
(S7).
The command controls whether or not the module echoes characters received from TE during AT
command mode.
Parameter
BG95&BG77_AT_Commands_Manual 21 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
1 Echo mode ON
The command repeats previous AT command line, and “/” acts as the line termination character.
Example
ATI
Quectel
BG95M2
Revision: BG95M2LAR01A01
OK
A/ //Repeat the previous command.
Quectel
BG95M2
Revision: BG95M2LAR01A01
OK
The command determines the character recognized by the module 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
BG95&BG77_AT_Commands_Manual 22 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
The command determines the character generated by the module 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 the TA for result code and information text.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
BG95&BG77_AT_Commands_Manual 23 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command determines the character value used by the module to delete the immediately preceding
character from the AT command line (i.e. equates to backspace key).
OK
Write Command Response
ATS5=<n> This parameter setting determines the character recognized
by TA as a request to delete the immediately preceding
character from the command line.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
2.21. ATX Set CONNECT Result Code Format and Monitor Call Progress
The command determines whether or not the module will transmit particular result codes to the TE. It also
controls whether or not the module will detect the presence of a dial tone when it begins dialing and the
engaged tone (busy signal).
ATX Set CONNECT Result Code Format and Monitor Call Progress
Execution Command Response
ATX<value> This parameter setting determines whether or not the TA will
detect the presence of dial tone and busy signal and whether
or not the TA will transmit particular result codes.
OK
Maximum Response Time 300ms
Reference
V.25ter
BG95&BG77_AT_Commands_Manual 24 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
<value> 0 CONNECT result code returned only. Dial tone and busy signal detection are
both disabled.
1 CONNECT<text> result code returned only. Dial tone and busy signal
detection are both disabled.
2 CONNECT<text> result code returned. Dial tone detection is enabled, while
busy signal detection is disabled.
3 CONNECT<text> result code returned. Dial tone detection is disabled, while
busy signal detection is enabled.
4 CONNECT<text> result code returned. Dial tone and busy signal detection
are both enabled.
The command controls the functionality level of UE. 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
BG95&BG77_AT_Commands_Manual 25 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+CFUN=0 //Switch the UE to minimum functionality
OK
AT+COPS?
+COPS: 2 //No operator is registered
OK
AT+CPIN?
+CME ERROR: 13 //(U)SIM failure
AT+CPIN=1234
OK
+CPIN: READY
+QUSIM: 1
AT+CPIN?
+CPIN: READY
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE CMCC",8 //Operator is registered
OK
BG95&BG77_AT_Commands_Manual 26 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command controls the format of error result codes: ERROR, error numbers or verbose messages as
+CME ERROR: <err> and +CMS ERROR: <err>. Please refer to Table 17 for possible <err> values.
OK
Read Command Response
AT+CMEE? +CMEE: <n>
OK
Write Command Response
AT+CMEE=<n> TA disables or enables the use of result code +CME ERROR:
<err> or +CMS ERROR: <err> as an indication of an error
related to the functionality of the ME.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<n> 0 Disable result code
1 Enable result code and use numeric values
2 Enable result code and use verbose values
Example
AT+CMEE=0 //Disable result code
OK
AT+CPIN?
ERROR //Only ERROR will be displayed
AT+CPIN?
+CME ERROR: 10
BG95&BG77_AT_Commands_Manual 27 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
AT+CPIN?
+CME ERROR: SIM not inserted
The Write Command informs the module which character set is used by the TE. This enables the UE to
convert character strings correctly between TE and UE character sets.
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. The TA
can then convert character strings correctly between the TE
and ME character sets.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CSCS? //Query the current character set
+CSCS: “GSM”
OK
BG95&BG77_AT_Commands_Manual 28 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
AT+CSCS?
+CSCS: “UCS2”
OK
OK
Write Command If the configuration parameter <urcportvalue> is omitted,
AT+QURCCFG="urcport"[,<urcportv return the current configuration:
alue>] +QURCCFG: "urcport",<urcportvalue>
OK
Parameter
NOTES
BG95&BG77_AT_Commands_Manual 29 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
2. After URC output port is set successfully, it will take effect immediately.
Example
AT+QURCCFG=?
+QURCCFG: "urcport",("usbat","usbmodem","uart1")
OK
AT+QURCCFG="urcport","usbmodem"
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","usbmodem"
OK
The command delivers a product firmware version identification text which includes both the modem
firmware version and the application firmware version.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<revision> Identification text of product firmware version, including both modem firmware version
and application firmware version.
BG95&BG77_AT_Commands_Manual 30 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
BG95&BG77_AT_Commands_Manual 31 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
The command determines how the UE responds if DTR line is changed from low to high level during data
mode.
BG95&BG77_AT_Commands_Manual 32 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Reference
V.25ter
Parameter
The command determines the flow control behavior of the UART interface.
OK
Read Command Response
AT+IFC? +IFC: <dce_by_dte>,<dte_by_dce>
OK
Write Command Response
AT+IFC=<dce_by_dte>,<dte_by_dce> This parameter setting determines the data flow control on
the UART interface for data mode.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<dce_by_dte> Specifies the method that will be used by TE when receiving data from TA
0 None
2 RTS flow control
<dte_by_dce> Specifies the method that will be used by TA when receiving data from TE
0 None
2 CTS flow control
BG95&BG77_AT_Commands_Manual 33 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+IFC=2,2 //Enable hardware flow control
OK
AT+IFC?
+IFC: 2,2
OK
The command determines the serial interface character framing format and parity received by TA from
TE.
OK
Read Command Response
AT+ICF? +ICF: <format>,<parity>
OK
Write Command Response
AT+ICF=[<format>,[<parity>]] This parameter setting determines the serial interface
character framing format and parity received by TA from TE.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
BG95&BG77_AT_Commands_Manual 34 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTES
1. The command is applied for command mode.
2. The <parity> field is ignored if no parity is specified in the <format> field.
The command is used to query and set the baud rate of the UART. The default baud rate value (<rate>) is
115200bps. The setting of <rate> will not be restored with AT&F.
OK
Read Command Response
AT+IPR? +IPR: <rate>
OK
Write Command Response
AT+IPR=<rate> This parameter setting determines the data rate of the TA on
the UART interface. After the delivery of any result code
associated with the current command line, the rate of
command takes effect.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
BG95&BG77_AT_Commands_Manual 35 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
921600
2900000
3000000
3200000
3686400
4000000
NOTES
1. If a fixed baud rate is set, please make sure that both TE (DTE, usually the external processor) and
TA (DCE, Quectel module) are configured to the same rate.
2. The value of AT+IPR cannot be restored with AT&F and ATZ, but it is still storable with AT&W.
3. In multiplex mode, the baud rate cannot be changed by the Write Command AT+IPR=<rate>, and
the setting will be invalid and cannot be stored even if AT&W is executed after the Write Command.
4. A selected baud rate takes effect after the Write Command is executed and acknowledged by OK.
Example
AT+IPR=115200 //Specify the fixed baud rate as 115200bps.
OK
AT&W //Store the current setting, that is, remain the default baud rate per second
as 115200 after module resetting.
OK
AT+IPR?
+IPR: 115200
OK
AT+IPR=115200;&W //Specify the fixed baud rate as 115200bps and store the current setting.
OK
If the RI (ring indicator) behavior is "always", it can be restored to inactive by the Execution Command.
The RI behavior is controlled by AT+QCFG*. Please refer to AT+QCFG="urc/ri/ring",
AT+QCFG="urc/ri/smsincoming", and AT+QCFG="urc/ri/other" for more details.
BG95&BG77_AT_Commands_Manual 36 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTE
BG95&BG77_AT_Commands_Manual 37 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Execution Command Response
AT+CPAS TA returns the activity status of ME:
+CPAS: <pas>
OK
Parameter
<pas> 0 Ready
3 Ringing
4 Call in progress or call hold
Example
AT+CPAS
+CPAS: 0 //The module is idle.
BG95&BG77_AT_Commands_Manual 38 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
RING
AT+CLCC
+CLCC: 1,1,4,0,0,“15695519173”,161
OK
AT+CPAS
+CPAS: 3 //The module is ringing.
OK
AT+CLCC
+CLCC: 1,0,0,0,0,“10010”,129
OK
AT+CPAS
+CPAS: 4 //Call in progress.
OK
BG95&BG77_AT_Commands_Manual 39 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
<rrcr>s)
+QCFG: "sgsn",(list of supported <sgsnr>s)
+QCFG: "celevel",(list of supported <celevel>s)
+QCFG: "pdp/duplicatechk",(list of supported <enable>s)
+QCFG: "iotopmode",(list of supported
<iotopmode>s),(list of supported <effect>s)
+QCFG: "nb/bandprior",(list of supported
<band_priority_seq>s)
+QCFG: "psm/urc",(list of supported <mode>s)
+QCFG: "urc/ri/ring",(list of supported <typeri>s),(list of
supported <pulseduration>s),(list of supported
<activeduration>s),(list of supported
<inactiveduration>s),(list of supported
<ringnodisturbing>s)
+QCFG: "urc/ri/smsincoming",(list of supported
<typeri>s),(list of supported <pulseduration>s)
+QCFG: "urc/ri/other",(list of supported <typeri>s),(list of
supported <pulseduration>s)
+QCFG: "risignaltype",(list of supported <risignatype>s)
+QCFG: "urc/delay",(list of supported <mode>s)
+QCFG: "ims",(list of supported <mode>s)
+QCFG: "ledmode",(list of supported <led_mode>s)
+QCFG: "cmux/urcport",(list of supported <urc_port>s)
+QCFG: "apready",(list of supported <mode>s),(list of
supported <level>s),(list of supported <internal>s)
OK
Maximum Response Time 300ms
The command specifies the searching sequence of RATs. If <effect> is omitted, the configuration will
take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 40 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
searching sequence:
OK
Parameter
NOTES
1. This command is invalid on BG95-M1 and BG95-N1.
2. GSM RAT (<scanseq>=02) is valid on BG95-M3 only.
The command specifies the RAT(s) allowed to be searched. If <effect> is omitted, the configuration will
take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 41 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
NOTE
LTE RAT
The command specifies the network category to be searched under LTE RAT. If <effect> is omitted, the
configuration will take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 42 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
NOTE
The command is used to enable or disable the roam service. If <effect> is omitted, the configuration will
take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 43 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
NOTE
The command specifies the frequency bands allowed to be searched. If <effect> is omitted, the
configuration will take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 44 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
ERROR
Parameter
<gsmbandval> A hexadecimal value that specifies the GSM frequency band. If it is set to 0, it
means not to change GSM frequency band (eg.: 0x0a=0x02(GSM1800)+
0x08(GSM1900)). This parameter is valid on BG95-M3 only.
00000000 No change
00000001 GSM 900MHz
00000002 GSM 1800MHz
00000004 GSM 850MHz
00000008 GSM 1900MHz
0000000F Any frequency band
<emtcbandval> A hexadecimal value that specifies the eMTC frequency band. If it is set to 0
or 0x40000000, it means not to change the frequency band. (eg.: 0x15=0x01(LTE
B1)+0x04(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
0x80 (CM_BAND_PREF_LTE_EUTRAN_BAND8) LTE B8
0x800 (CM_BAND_PREF_LTE_EUTRAN_BAND12) LTE B12
0x1000 (CM_BAND_PREF_LTE_EUTRAN_BAND13) LTE B13
0x2000 (CM_BAND_PREF_LTE_EUTRAN_BAND14) LTE B14
0x20000 (CM_BAND_PREF_LTE_EUTRAN_BAND18) LTE B18
0x40000 (CM_BAND_PREF_LTE_EUTRAN_BAND19) LTE B19
0x80000 (CM_BAND_PREF_LTE_EUTRAN_BAND20) LTE B20
0x1000000 (CM_BAND_PREF_LTE_EUTRAN_BAND25) LTE B25
0x2000000 (CM_BAND_PREF_LTE_EUTRAN_BAND26) LTE B26
0x4000000 (CM_BAND_PREF_LTE_EUTRAN_BAND27) LTE B27
0x8000000 (CM_BAND_PREF_LTE_EUTRAN_BAND28) LTE B28
0x40000000 (CM_BAND_PREF_LTE_EUTRAN_BAND31) LTE B31
0x20000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND66)
LTE B66
0x800000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND72)
LTE B72
0x1000000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND73)
LTE B73
0x1000000000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND85)
LTE B85
BG95&BG77_AT_Commands_Manual 45 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
0x4000000000000000000000 No change
0x4001C2000000000F0E389F (CM_BAND_PREF_ANY)
Any frequency band
<nbiotbandval> A hexadecimal value that specifies the NB-IoT frequency band. If it is set to
0 or 0x40000000, it means not to change the frequency band.
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
0x80 (CM_BAND_PREF_LTE_EUTRAN_BAND8) LTE B8
0x800 (CM_BAND_PREF_LTE_EUTRAN_BAND12) LTE B12
0x1000 (CM_BAND_PREF_LTE_EUTRAN_BAND13) LTE B13
0x20000 (CM_BAND_PREF_LTE_EUTRAN_BAND18) LTE B18
0x40000 (CM_BAND_PREF_LTE_EUTRAN_BAND19) LTE B19
0x80000 (CM_BAND_PREF_LTE_EUTRAN_BAND20) LTE B20
0x1000000 (CM_BAND_PREF_LTE_EUTRAN_BAND25) LTE B25
0x2000000 (CM_BAND_PREF_LTE_EUTRAN_BAND26) LTE B26
0x8000000 (CM_BAND_PREF_LTE_EUTRAN_BAND28) LTE B28
0x40000000 (CM_BAND_PREF_LTE_EUTRAN_BAND31) LTE B31
0x20000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND66)
LTE B66
0x400000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND71)
LTE B71
0x800000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND72)
LTE B72
0x1000000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND73)
LTE B73
0x1000000000000000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND85)
LTE B85
0x4000000000000000000000 No change
0x4001C2000000004E0E189F (CM_BAND_PREF_ANY)
Any frequency band
<effect> When to take effect
0 Take effect after UE reboots
1 Take effect immediately
NOTES
1. <gsmbandval> is valid on BG95-M3 only, and is invalid in BG77 and other BG95 variants.
2. <emtcbandval> is invalid on BG95-N1.
3. <nbiotbandval> is invalid on BG95-M1.
BG95&BG77_AT_Commands_Manual 46 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command specifies the registered service domain. If <effect> is omitted, the configuration will take
effect immediately.
OK
Parameter
The command specifies the band to be scanned with priority under NB-IoT. This configuration is valid only
after the module is restarted.
BG95&BG77_AT_Commands_Manual 47 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
BG95&BG77_AT_Commands_Manual 48 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTES
1. This command is invalid on BG95-M1.
2. “*” means under development.
When PSM function is enabled and RRC connection release is received, the active timer (T3324) will be
started, and the indication URC will be reported.
OK
Parameter
BG95&BG77_AT_Commands_Manual 49 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command specifies the UE SGSN release version. This configuration is valid only after the module is
restarted.
OK
Parameter
NOTE
The command specifies the UE MSC release version. This configuration is valid only after the module is
restarted.
BG95&BG77_AT_Commands_Manual 50 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
NOTE
The command allows/refuses establishing multiple PDNs with the same APN profile. The configuration
will take effect immediately.
OK
BG95&BG77_AT_Commands_Manual 51 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
<enable> 0 Refuse to establish multi PDNs with the same APN profile
1 Allow to establish multi PDNs with the same APN profile
NOTE
OK
BG95&BG77_AT_Commands_Manual 52 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
Example
AT+QCFG="ledmode",1 //Set the NETLIGHT mode.
OK
OK
The command is used to enable or disable IMS function. It also enables the NVRAM about IMS to be set
through the configuration of MBN files when <value> is set to be 0.
OK
BG95&BG77_AT_Commands_Manual 53 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
NOTES
1. This command is invalid on BG95-N1.
2. “*” means under development.
The sum of parameters <activeduration> and <inactiveduration> determines the interval time of RING
indications when a call is coming.
OK
BG95&BG77_AT_Commands_Manual 54 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
BG95&BG77_AT_Commands_Manual 55 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Presented
The command specifies the RI (ring indicator) behavior when related incoming message URCs are
presented. Incoming message URCs include +CMTI, +CMT, +CDS, and +CBM.
OK
Parameter
BG95&BG77_AT_Commands_Manual 56 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command specifies the RI (ring indicator) behavior when other URCs are presented.
OK
Parameter
BG95&BG77_AT_Commands_Manual 57 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
The command can delay the output of URC indication until ring indicator pulse ends.
OK
BG95&BG77_AT_Commands_Manual 58 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
<enable> 0 URC indication will be outputted when ring indicator pulse starts.
1 URC indication will be outputted when ring indicator pulse ends (only effective
when the type of ring indicator is “pulse”. Please refer to AT+QCFG="urc/ri/ring",
AT+QCFG="urc/ri/smsincoming" and AT+QCFG="urc/ri/other" for more
details).
The command controls whether to trigger the module into PSM mode immediately after the RRC
connection release is received.
When <mode> is specified as 1, the module will skip active timer (T3324) and enter PSM immediately
after RRC connection release is received.
OK
BG95&BG77_AT_Commands_Manual 59 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
ERROR
Parameter
<mode> Numeric type. Whether to trigger the module into PSM immediately.
0 Enter PSM after T3324 expires
1 Enter PSM immediately after RRC connection release is received.
NOTE
When AT+QCFG="psm/urc",1 and AT+QCFG="psm/enter",1 are executed at the same time, there will
be a possibility that the URC +QPSMTIMER cannot be output due to the immediate entering of PSM.
OK
Parameter
BG95&BG77_AT_Commands_Manual 60 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
<cap_val> Hexadecimal value. If any bit is set to 1, it means the corresponding feature is
enabled, otherwise it means disabled. The specific meanings are as follows:
Bit 0 Enable or disable the use of EMM_CP_CIOT
Bit 1 Enable or disable the use of EMM_UP_CIOT
Bit 2 Enable or disable the use of EMM_S1_U
Bit 3 Enable or disable the use of EMM_ER_WITHOUT_PDN
Bit 4 Enable or disable the use of EMM_HC_CP_CIOT
Bit 5 Enable or disable the use of EMM_SMS_ONLY
Bit 6 Enable or disable the use of EMM_PNB_CP_CIOT
Bit 7 Enable or disable the use of EMM_PNB_UP_CIOT
Bit 8 Enable or disable the use of EMM_EPCO_CIOT
BG95&BG77_AT_Commands_Manual 61 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Write command Response
AT+QINDCFG=<urctype>[,<enable>[,< If <enable> and <savetonvram> are omitted, the current
savetonvram>]] configuration will be returned:
+QINDCFG: <urctype>,<enable>
OK
Parameter
<urctype> URC type
"all" Main switch of all URCs. Default is ON.
"csq" Indication of signal strength and channel bit error rate
change (similar to AT+CSQ). Default is OFF. If this
configuration is ON, present:
+QIND: "csq",<rssi>,<ber>
"smsfull" SMS storage full indication. Default is OFF. If this
configuration is ON, present:
+QIND: "smsfull",<storage>
BG95&BG77_AT_Commands_Manual 62 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 63 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command requests 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
the MT.
OK
Parameter
Example
AT+CIMI
460023210226023 //Query IMSI number of the (U)SIM attached to ME
OK
BG95&BG77_AT_Commands_Manual 64 / 201
LPWA Module Series
BG95&BG77 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>[ This command is used to lock, unlock or interrogate the ME 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 installed 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 clause 1).
“OI” BOIC (Bar Outgoing International Calls) (refer to 3GPP TS 22.088 clause 1).
“OX” BOIC-exHC (Bar Outgoing International Calls except to Home Country) (refer to
3GPP TS 22.088 clause 1).
BG95&BG77_AT_Commands_Manual 65 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
“AI” BAIC (Bar All Incoming Calls) (refer to 3GPP TS 22.088 clause 2).
“IR” BIC-Roam (Bar Incoming Calls when Roaming outside the home country) (refer
to 3GPP TS 22.088 clause 2).
“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 (Default)
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
BG95&BG77_AT_Commands_Manual 66 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
The command is used to enter a password or query whether or not the module requires a password which
is necessary before it can be operated. The password may be (U)SIM PIN, (U)SIM PUK, PH-SIM PIN,
etc.
OK
Write Command Response
AT+CPIN=<pin>[,<new pin>] TA stores a password, such as (U)SIM PIN, (U)SIM PUK,
etc., which is necessary before it can be operated. If the PIN
is to be entered twice, the TA shall automatically repeat the
PIN. If no PIN request is pending, no action is taken and an
error message, +CME ERROR, is returned to TE.
Parameter
BG95&BG77_AT_Commands_Manual 67 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
//Enter PIN
AT+CPIN?
+CPIN: SIM PIN //Waiting for (U)SIM PIN to be given
OK
+CPIN: READY
OK
AT+CPIN?
+CPIN: SIM PUK //Waiting for (U)SIM PUK to be given
OK
BG95&BG77_AT_Commands_Manual 68 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
+CPIN: READY
AT+CPIN?
+CPIN: READY //PUK has already been entered
OK
The command sets a new password for the facility lock function defined by AT+CLCK.
OK
Write Command Response
AT+CPWD=<fac>,<oldpwd>,<newpw TA 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 clause 1)
“OI” BOIC (Bar Outgoing International Calls, refer to 3GPP TS 22.088 clause 1)
“OX” BOIC-exHC (Bar Outgoing International Calls except to Home Country, refer to
3GPP TS 22.088 clause 1)
“AI” BAIC (Bar All Incoming Calls, refer to 3GPP TS 22.088 clause 2)
“IR” BIC-Roam (Bar Incoming Calls when Roaming outside the home country, refer
to 3GPP TS 22.088 clause 2)
“AB” All barring services (refer to 3GPP TS 22.030, applicable only for <mode>=0)
BG95&BG77_AT_Commands_Manual 69 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
“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> Integer type. Maximum length of password.
<oldpwd> Password specified for the facility from the user interface or with command.
<newpwd> New password.
Example
AT+CPIN?
+CPIN: READY
OK
OK
+CPIN: READY
The command offers easy and limited access to the (U)SIM database. It transmits the (U)SIM command
number (<command>) and its required parameters to the MT.
BG95&BG77_AT_Commands_Manual 70 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
BG95&BG77_AT_Commands_Manual 71 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command returns the ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card.
OK
Example
AT+QCCID //Query ICCID of the (U)SIM card
+QCCID: 89860025128306012474
OK
The command can 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>
BG95&BG77_AT_Commands_Manual 72 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
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 three
kinds (3=1+2 means CPIN READY & SMS initialization completed).
0 Initial state
1 CPIN READY. Operation like lock/unlock PIN is allowed
2 SMS initialization completed
BG95&BG77_AT_Commands_Manual 73 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command enables (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. This command
can be saved by AT&W.
OK
Read Command Response
AT+QSIMDET? +QSIMDET: <enable>,<insertlevel>
OK
Write Command Response
AT+QSIMDET=<enable>,<insertlevel> OK
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 module is restarted.
Example
AT+QSIMDET=1,0 //Set (U)SIM card detection pin level as low when (U)SIM card is inserted
OK
BG95&BG77_AT_Commands_Manual 74 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command queries (U)SIM card insertion status and determines whether (U)SIM card insertion status
report is enabled. The configuration of this command can be saved by AT&W.
OK
Read Command Response
AT+QSIMSTAT? +QSIMSTAT: <enable>,<insertedstatus>
OK
Write Command Response
AT+QSIMSTAT=<enable> OK
Parameter
<enable> Enable or disable (U)SIM card insertion status report. If it is enabled, when (U)SIM
card is removed or inserted, the URC +QSIMSTAT: <enable>,<insertedstatus>
will be reported.
0 Disable
1 Enable
<insertedstatus> (U)SIM card is inserted or removed. This argument is not allowed to be set.
0 Removed
1 Inserted
2 Unknown, before (U)SIM initialization
BG95&BG77_AT_Commands_Manual 75 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+QSIMSTAT? //Query (U)SIM card insertion status
+QSIMSTAT: 0,1
OK
AT+QSIMDET=1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,1
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
+CPIN: READY
BG95&BG77_AT_Commands_Manual 76 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The Write Command controls the presentation of the unsolicited result code +CREG: <stat> when <n>=1
and there is a change in the MT’s circuit mode network registration status in GERAN/E-UTRAN, or
unsolicited result code +CREG: <stat>[,[<lac>],[<ci>],[<AcT>]] when <n>=2 and there is a change of
the network cell in GERAN/E-UTRAN.
OK
Read Command Response
AT+CREG? +CREG: <n>,<stat>[,<lac>,<ci>[,<AcT>]]
OK
Write Command Response
AT+CREG[=<n>] OK
Reference
3GPP TS 27.007
Parameter
BG95&BG77_AT_Commands_Manual 77 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
The command returns the current operators and their status, and allows setting automatic or manual
network selection.
OK
OK
BG95&BG77_AT_Commands_Manual 78 / 201
LPWA Module Series
BG95&BG77 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 presented and <Act> optionally.
2 Manual deregister from network.
3 Set only <format> (for AT+COPS? Read Command), and do not attempt to
register/deregister (<oper> and <Act> fields are ignored). This value is invalid in
the response of the Read Command.
4 Manual/automatic selection. <oper> field shall be presented. If manual selection
fails, automatic mode (<mode>=0) is 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.
0 GSM
8 eMTC
9 NB-IoT
Example
AT+COPS=? //List all current network operators
+COPS: (3,"CHN-UNICOM","UNICOM","46001",0),(3,"CHINA MOBILE","CMCC","46000",0),(1,"CH
N-CT","CT","46011",9),,(0,1,2,3,4),(0,1,2)
BG95&BG77_AT_Commands_Manual 79 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
OK
The command indicates the received signal strength <rssi> and the channel bit error rate <ber>.
OK
Execution Command Response
AT+CSQ The Execution Command returns received signal strength
indication <rssi> and channel bit error rate <ber> from the
ME.
+CSQ: <rssi>,<ber>
OK
Parameter
BG95&BG77_AT_Commands_Manual 80 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
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 by the preceding command
has been finished.
OK
Read Command Response
AT+CIND? +CIND: <ind>[,<ind>[,...]]
OK
Reference
Parameter
<ind> Integer type. Indicators, which shall be in the range of corresponding <descr>.
<descr> Description of indicators and their <ind> ranges:
"battchg" Battery charge level (0-5)
BG95&BG77_AT_Commands_Manual 81 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTE
Example
AT+CIND=?
+CIND: ("battchg",(0-5)),("signal",(0-5)),("service",(0-1)),("call",(0-1)),("roam",(0-1)),("smsfull",(0-
1)),("GPRS coverage",(0-1)),("callsetup",(0-3))
OK
OK
OK
Read Command Response
BG95&BG77_AT_Commands_Manual 82 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Write Command Response
AT+CPOL=<index>[,<format>[,<oper Edit the list of preferred operators:
>[<GSM>,<GSM_compact>,<UTRAN> OK
,<E-UTRAN>]]]
If there is any other error:
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> Integer type. 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> String type. <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
<GSM_compact> GSM compact access technology
0 Access technology is not selected
1 Access technology is selected
<UTRAN> UTRAN access technology
0 Access technology is not selected
1 Access technology is selected
<E-UTRAN> E-UTRAN access technology
0 Access technology is not selected
1 Access technology is selected
BG95&BG77_AT_Commands_Manual 83 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTES
1. The access technology selection parameters <GSM>, <GSM_compact>, <UTRAN> and
<E-UTRAN> are required for SIM cards or UICCs containing PLMN selector with access technology.
2. The parameter <UTRAN> is invalid for BG95 and BG77.
The command returns the list of operator names from the ME. Each operator code <numericn> that has
an alphanumeric equivalent <alphan> in the ME memory is returned.
OK
Parameter
The Write Command enables and disables automatic time zone update via NITZ. The configuration is
stored to NVRAM automatically.
BG95&BG77_AT_Commands_Manual 84 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Write Command Response
AT+CTZU=<onoff> OK
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<onoff> Integer type. The mode of automatic time zone update.
0 Disable automatic time zone update via NITZ
1 Enable automatic time zone update via NITZ
Example
AT+CTZU?
+CTZU: 0
OK
AT+CTZU=?
+CTZU: (0,1)
OK
AT+CTZU=1
OK
AT+CTZU?
+CTZU: 1
BG95&BG77_AT_Commands_Manual 85 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
The Write Command controls the setting of the UE’s Power Saving Mode (PSM) parameters.
OK
Write Command Response
AT+CPSMS=[<mode>[,<Requested_P OK
eriodic-RAU>[,<Requested_GPRS-RE
ADY-timer>[,<Requested_Periodic-T If there is any other error:
AU>[,<Requested_Active-Time>]]]]] ERROR
Read Command Response
AT+CPSMS? +CPSMS: <mode>,[<Requested_Periodic-RAU>],[<Reque
sted_GPRS-READY-timer>],[<Requested_Periodic-TAU>]
,[<Requested_Active-Time>]
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> Integer type. Disable or enable the use of PSM in the UE.
0 Disable the use of PSM
1 Enable the use of PSM
<Requested_Periodic-RAU> String type. One byte in an 8 bit format. Requested extended
periodic RAU value (T3312) to be allocated to the UE in GERAN.
(e.g. "01000111" equals to 70 hours)
Bits 5 to 1 represent the binary coded timer value
Bits 6 to 8 define the timer value unit as follows:
Bits
BG95&BG77_AT_Commands_Manual 86 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
876
0 0 0 value is incremented in multiples of 10 minutes
0 0 1 value is incremented in multiples of 1 hour
0 1 0 value is incremented in multiples of 10 hours
0 1 1 value is incremented in multiples of 2 seconds
1 0 0 value is incremented in multiples of 30 seconds
1 0 1 value is incremented in multiples of 1 minute
<Requested_GPRS-READY-timer> String type. One byte in an 8 bit format. Requested GPRS
READY timer value (T3314) to be allocated to the UE in GERAN.
(e.g. "01001010" equals to 1 hours)
Bits 5 to 1 represent the binary coded timer value
Bits 6 to 8 define the timer value unit as follows:
Bits
876
0 0 0 value is incremented in multiples of 2 seconds
0 0 1 value is incremented in multiples of 1 minute
0 1 0 value is incremented in multiples of decihours
1 1 1 value indicates that the timer is deactivated.
<Requested_Periodic-TAU> String type. One byte in an 8 bit format. Requested extended periodic
TAU value (T3412) to be allocated to the UE in E-UTRAN.
(e.g. "00001010" equals to 100 minutes)
Bits 5 to 1 represent the binary coded timer value.
Bits 6 to 8 define the timer value unit as follows:
Bits
876
0 0 0 value is incremented in multiples of 10 minutes
0 0 1 value is incremented in multiples of 1 hour
0 1 0 value is incremented in multiples of 10 hours
0 1 1 value is incremented in multiples of 2 seconds
1 0 0 value is incremented in multiples of 30 seconds
1 0 1 value is incremented in multiples of 1 minute
<Requested_Active-Time> String type. One byte in an 8 bit format. Requested Active Time value
(T3324) to be allocated to the UE.
(e.g. "00001111" equals to 30 seconds)
Bits 5 to 1 represent the binary coded timer value.
Bits 6 to 8 define the timer value unit as follows:
Bits
876
0 0 0 value is incremented in multiples of 2 seconds
0 0 1 value is incremented in multiples of 1 minute
0 1 0 value is incremented in multiples of decihours
1 1 1 value indicates that the timer is deactivated.
BG95&BG77_AT_Commands_Manual 87 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+CPSMS=1,,,“00000100”,“00001111” //Set the requested T3412 value to 40 minutes, and set the
requested T3324 value to 30 seconds.
OK
Quectel extended AT command for PSM setting. The Write Command controls the setting of the module’s
Power Saving Mode (PSM) parameters. It is similar with AT+CPSMS.
OK
Write Command Response
AT+QPSMS=[<mode>[,<Requested_P OK
eriodic-RAU>[,<Requested_GPRS-RE
ADY-timer>[,<Requested_Periodic-T If there is any other error:
AU>[,<Requested_Active-Time>]]]]] ERROR
Read Command Response
AT+QPSMS? +QPSMS: <mode>,[<Network_Periodic-RAU>],[<Network
_GPRS-READY-timer>],[<Network_Periodic-TAU>],[<Net
work_Active-Time>]
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> Integer type. Disable or enable the use of PSM in the UE.
0 Disable the use of PSM
1 Enable the use of PSM
<Requested_Periodic-RAU> String type. One byte in an 8 bit format. Requested extended
BG95&BG77_AT_Commands_Manual 88 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
BG95&BG77_AT_Commands_Manual 89 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+QPSMS=1,,,"00000100","00001111" //Set the requested T3412 value to 40 minutes, and set the
requested T3324 value to 30 seconds.
OK
AT+QPSMS? //Query the PSM mode and the timer from network.
+QPSMS: 1,,,"86400","2"
OK
Setting
This command is used to set NV#73769 (PSM configuration) parameters. Customers can use this AT
command to enable or disable PSM function and set the minimum threshold value to enter PSM.
OK
Write Command Response
AT+QPSMCFG=[<threshold>[,<psm_ OK
version>]]
If there is any other error:
ERROR
Read Command Response
AT+QPSMCFG? +QPSMCFG: <threshold>,<psm_version>
BG95&BG77_AT_Commands_Manual 90 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
Example
AT+QPSMCFG=100 //Set the threshold to 100 seconds.
OK
OK
The command is also used for PSM setting, and it is mainly used to set extended parameters for modem
optimizations.
OK
Write Command Response
AT+QPSMEXTCFG=[<psm_opt_mask OK
>[,<max_oos_full_scans>[,<psm_dur
BG95&BG77_AT_Commands_Manual 91 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
OK
Parameter
Example
AT+QPSMEXTCFG=14,2,120
OK
BG95&BG77_AT_Commands_Manual 92 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
AT+QPSMEXTCFG?
+QPSMEXTCFG: 14,2,120,5,120,15
OK
The Write Command controls the setting of the UE’s e-I-DRX (extended Idle-mode DRX) parameters.
OK
Write Command Response
AT+CEDRXS=[<mode>,[,<AcT-type>[ OK
,<Requested_eDRX_value>]]]
If there is any other error:
ERROR
Read Command Response
AT+CEDRXS? [+CEDRXS: <AcT-type>,<Requested_eDRX_value>
[+CEDRXS: <AcT-type>,<Requested_eDRX_value>
[...]]]
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
<mode> Integer type. Disable or enable the use of e-I-DRX in the UE.
0 Disable the use of e-I-DRX
1 Enable the use of e-I-DRX
2 Enable the use of e-I-DRX and enable the unsolicited result code
3 Disable the use of e-I-DRX and discard all parameters for e-I-DRX or, if available,
reset to the manufacturer specific default values.
<AcT-type> Integer type. The type of access technology.
2 GSM (Not applicable)
BG95&BG77_AT_Commands_Manual 93 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
4 eMTC
5 NB-IoT
<Requested_eDRX_value> String type. Half a byte in a 4-bit format.
bit
4 3 2 1 E-UTRAN e-I-DRX cycle length duration
0 0 0 0 5.12 seconds
0 0 0 1 10.24 seconds
0 0 1 0 20.48 seconds
0 0 1 1 40.96 seconds
0 1 0 0 61.44 seconds
0 1 0 1 81.92 seconds
0 1 1 0 102.4 seconds
0 1 1 1 122.88 seconds
1 0 0 0 143.36 seconds
1 0 0 1 163.84 seconds
1 0 1 0 327.68 seconds
1 0 1 1 655,36 seconds
1 1 0 0 1310.72 seconds
1 1 0 1 2621.44 seconds
1 1 1 0 5242.88 seconds
1 1 1 1 10485.76 seconds
<Paging_time_window> String type. Half a byte in a 4 bit format.
eMTC mode
bit
4 3 2 1 Paging Time Window length
0 0 0 0 1.28 seconds
0 0 0 1 2.56 seconds
0 0 1 0 3.84 seconds
0 0 1 1 5.12 seconds
0 1 0 0 6.4 seconds
0 1 0 1 7.68 seconds
0 1 1 0 8.96 seconds
0 1 1 1 10.24 seconds
1 0 0 0 11.52 seconds
1 0 0 1 12.8 seconds
1 0 1 0 14.08 seconds
1 0 1 1 15.36 seconds
1 1 0 0 16.64 seconds
1 1 0 1 17.92 seconds
1 1 1 0 19.20 seconds
1 1 1 1 20.48 seconds
NB-IoT mode
bit
4 3 2 1 Paging Time Window length
BG95&BG77_AT_Commands_Manual 94 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
0 0 0 0 2.56 seconds
0 0 0 1 5.12 seconds
0 0 1 0 7.68 seconds
0 0 1 1 10.24 seconds
0 1 0 0 12.8 seconds
0 1 0 1 15.36 seconds
0 1 1 0 17.92 seconds
0 1 1 1 20.48 seconds
1 0 0 0 23.04 seconds
1 0 0 1 25.6 seconds
1 0 1 0 28.16 seconds
1 0 1 1 30.72 seconds
1 1 0 0 33.28 seconds
1 1 0 1 35.84 seconds
1 1 1 0 38.4 seconds
1 1 1 1 40.96 seconds
Example
AT+CEDRX=1,5,“0000” //Set the requested e-I-DRX value to 5.12 seconds.
OK
NOTE
OK
BG95&BG77_AT_Commands_Manual 95 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
<AcT-type> Integer type. The type of access technology.
2 GSM
4 eMTC
5 NB-IoT
<Requested_eDRX_value> String type. Half a byte in a 4 bit format.
bit
4 3 2 1 E-UTRAN e-I-DRX cycle length duration
0 0 0 0 5.12 seconds
0 0 0 1 10.24 seconds
0 0 1 0 20.48 seconds
0 0 1 1 40.96 seconds
0 1 0 0 61.44 seconds
0 1 0 1 81.92 seconds
0 1 1 0 102.4 seconds
0 1 1 1 122.88 seconds
1 0 0 0 143.36 seconds
1 0 0 1 163.84 seconds
1 0 1 0 327.68 seconds
1 0 1 1 655,36 seconds
1 1 0 0 1310.72 seconds
1 1 0 1 2621.44 seconds
1 1 1 0 5242.88 seconds
1 1 1 1 10485.76 seconds
<NW-provided_eDRX_value> String type. Half a byte in a 4 bit format.
bit
4 3 2 1 E-UTRAN e-I-DRX cycle length duration
0 0 0 0 5.12 seconds
0 0 0 1 10.24 seconds
0 0 1 0 20.48 seconds
0 0 1 1 40.96 seconds
0 1 0 0 61.44 seconds
0 1 0 1 81.92 seconds
0 1 1 0 102.4 seconds
0 1 1 1 122.88 seconds
1 0 0 0 143.36 seconds
1 0 0 1 163.84 seconds
1 0 1 0 327.68 seconds
1 0 1 1 655,36 seconds
BG95&BG77_AT_Commands_Manual 96 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
1 1 0 0 1310.72 seconds
1 1 0 1 2621.44 seconds
1 1 1 0 5242.88 seconds
1 1 1 1 10485.76 seconds
<Paging_time_window> String type. Half a byte in a 4 bit format.
eMTC mode
bit
4 3 2 1 Paging Time Window length
0 0 0 0 1.28 seconds
0 0 0 1 2.56 seconds
0 0 1 0 3.84 seconds
0 0 1 1 5.12 seconds
0 1 0 0 6.4 seconds
0 1 0 1 7.68 seconds
0 1 1 0 8.96 seconds
0 1 1 1 10.24 seconds
1 0 0 0 11.52 seconds
1 0 0 1 12.8 seconds
1 0 1 0 14.08 seconds
1 0 1 1 15.36 seconds
1 1 0 0 16.64 seconds
1 1 0 1 17.92 seconds
1 1 1 0 19.20 seconds
1 1 1 1 20.48 seconds
NB-IoT mode
bit
4 3 2 1 Paging Time Window length
0 0 0 0 2.56 seconds
0 0 0 1 5.12 seconds
0 0 1 0 7.68 seconds
0 0 1 1 10.24 seconds
0 1 0 0 12.8 seconds
0 1 0 1 15.36 seconds
0 1 1 0 17.92 seconds
0 1 1 1 20.48 seconds
1 0 0 0 23.04 seconds
1 0 0 1 25.6 seconds
1 0 1 0 28.16 seconds
1 0 1 1 30.72 seconds
1 1 0 0 33.28 seconds
1 1 0 1 35.84 seconds
1 1 1 0 38.4 seconds
1 1 1 1 40.96 seconds
BG95&BG77_AT_Commands_Manual 97 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
NOTE
The command controls the time zone reporting of changed event. If reporting is enabled, the MT returns
the unsolicited result code +CTZV: <tz> or +CTZE: <tz>,<dst>,<time> whenever the time zone is
changed. The configuration is stored to NVRAM automatically.
OK
Write Command Response
AT+CTZR=<reporting> OK
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
BG95&BG77_AT_Commands_Manual 98 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Example
AT+CTZR=2
OK
AT+CTZR?
+CTZR: 2
OK
The command indicates network information such as the access technology selected, the operator, and
the band selected.
OK
Maximum Response Time 300ms
BG95&BG77_AT_Commands_Manual 99 / 201
LPWA Module Series
BG95&BG77 AT Commands Manual
Parameter
Example
AT+QNWINFO=?
OK
AT+QNWINFO
+QNWINFO: "EDGE","46001","GSM 1800",653
OK
The command is used to query and report the signal strength of the current service network. If the MT is
registered on multiple networks in different service modes, customers can query the signal strength of
networks in each mode. No matter whether the MT is registered on a network or not, the command can be
run to query the signal strength or allow the MT to unsolicitedly report the detected signal strength if the
MT camps on the network. If the MT is not using any service network or the service mode is uncertain,
"NOSERVICE" will be returned as the query result.
OK
Parameter
<sysmode> A string type value indicating the service mode in which the MT will unsolicitedly report
the signal strength
“NOSERVICE” NO SERVICE mode
“GSM” GSM/GPRS/EDGE mode
“eMTC” eMTC mode
“NBIoT” NB-IoT mode
<value1>, <value2>, <value3>, <value4>: the following table lists the signal strength type
corresponding to each service mode.
<sysmdoe> <value1> <value2> <value3> <value4>
“NOSERVICE”
“GSM” <gsm_rssi>
“eMTC <lte_rssi> <lte_rsrp> <lte_sinr> <lte_rsrq>
“NBIoT” <lte_rssi> <lte_rsrp> <lte_sinr> <lte_rsrq>
<gsm_rssi>,<lte_rssi> An integer indicating the received signal strength. These parameters are
available for GSM and LTE mode respectively.
<lte_rsrp> An integer indicating the reference signal received power (RSRP). This
parameter is available for LTE mode.
<lte_sinr> An integer indicating the signal to interference plus noise ratio (SINR).
Logarithmic value of SINR. Values are in 1/5th of a dB. The range is 0-250
which translates to -20dB ~ +30dB.
<lte_rsrq> An integer indicating the reference signal received quality (RSRQ) in dB.
Example
AT+QCSQ //Execute command to query signal
+QCSQ: "eMTC",-52,-81,195,-10
OK
OK
OK
Reference
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.
3. “*” means under development.
Example
AT+QSPN //Query the EONS information of RPLMN
+QSPN: "CHN-UNICOM","UNICOM","",0,"46001"
OK
The command can be used to set up outgoing voice and data calls. Supplementary services can also be
controlled with this command.
Parameter
NOTES
1. This command may be aborted generally by receiving an ATH command or a character during
execution. The aborting is not possible during some states of connection establishment such as
handshaking.
2. Parameters “I” and “i” can be omitted only when there is no “*” or “#” code 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 calls, two different response modes can be determined. TA returns OK immediately either
after dialing was completed or after the call was established. The setting is controlled by AT+COLP.
Factory default is AT+COLP=0, which causes the TA to return OK immediately after dialing was
completed. Otherwise TA 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 disconnects circuit switched data calls or voice calls. AT+CHUP is also used to disconnect
voice calls.
Parameter
<n> 0 Disconnect existing call from command line and terminate the call.
The command controls 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
Parameter
NOTE
The command cancels all voice calls in the state of Active, Waiting and Held. For data connections,
please use ATH.
Example
RING //A call is incoming
NOTE
The +++ character sequence causes the module to switch from data mode to command mode. It allows
inputting AT commands while maintaining the data connection with the remote device.
OK
Maximum Response Time 300ms
Reference
V.25ter
NOTES
1. To prevent the +++ escape sequence from being misinterpreted as data, the following sequence
should be followed:
1) Do not input any character within 1s before inputting +++.
2) Input +++ within 1s, and no other characters can be inputted during the time.
3) Do not input any character within 1s after +++ has been inputted.
4) Switch to command mode; otherwise return to step 1).
2. To return back to data mode from command mode, please enter ATO0.
3. Another way to switch to command mode is through DTR level change, and please refer to AT&D
command for details.
The command resumes the connection and switches back to data mode from command mode.
Parameter
NOTE
When TA returns to data mode from command mode successfully, CONNECT <text> is returned. Please
note that <text> outputs only when <value> is greater than 0 in ATX<value> parameter setting.
The command controls 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
RING
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 specifies the amount of time (unit: second) to wait for the connection completion in case of
answering or originating a call. If no connection is established during the time, the module will be
disconnected from the line.
OK
Write Command Response
ATS7=<n> This parameter setting determines the amount of time (unit:
second) to wait for the connection completion in case of
answering or originating a call.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<n> 0 Disabled
1-255 Number of seconds to wait for connection completion
7.10. 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
Data Carrier
The command determines the amount of time (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 TA will remain
connected in absence of a data carrier. If the data carrier is
once more detected before disconnection, the TA remains
connected.
OK
Maximum Response Time 300ms
Reference
V.25ter
Parameter
<n> 1-15-254 Number of tenths of a second to wait before disconnecting after UE has
indicated the absence of received line signal
7.12. AT+CRC Set Cellular Result Codes for Incoming Call Indication
The command controls whether or not to use the extended format of incoming call indication. When it is
enabled, an incoming call is indicated to the TE with unsolicited result code +CRING: <type> instead of
the normal RING.
OK
Read Command Response
AT+CRC? +CRC: <mode>
OK
Write Command Response
AT+CRC=[<mode>] TA controls whether or not the extended format of incoming
call indication is used.
OK
Maximum Response Time 300ms
Reference
3GPP TS 27.007
Parameter
Example
AT+CRC=1 //Enable extended format
OK
ATH
OK
ATH
OK
The command selects messaging service and returns the types of messages supported by the ME.
OK
Read Command Response
AT+CSMS? +CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command Response
AT+CSMS=<service> +CSMS: <mt>,<mo>,<bm>
OK
Parameter
descriptions).
<mt> Mobile terminated messages
0 Type not supported
1 Type supported
<mo> Mobile originated messages
0 Type not supported
1 Type supported
<bm> Broadcast type messages
0 Type not supported
1 Type supported
Example
AT+CSMS=? //Query the type of message services supported by the module
+CSMS: (0,1)
OK
OK
OK
The command specifies the input and output formats of short messages. <mode> indicates the format of
messages used with Test, Read, Write and Execution 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 AT+CSCS command 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>] TA sets parameter to denote 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
Example
AT+CSCA=“+8613800210500”,145 //Set SMSC address
OK
OK
The command selects the 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
OK
Parameter
Example
AT+CPMS? //Query the current SMS message storage
+CPMS: “ME”,0,23,“ME”,0,23,“ME”,0,23
OK
OK
OK
The command deletes short messages from the preferred message storage <mem1> location <index>. If
<delflag> is presented and not set to 0, then the ME shall ignore <index> and follow the rules of <delflag>
shown as below.
OK
Write Command Response
AT+CMGD=<index>[,<delflag>] TA 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
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 AT+CMGL command 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>
+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<too
a/toda>,<length>]<CR><LF><data>[...]]
OK
For SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<sct
s>,<dt>,<st>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<sct
s>,<dt>,<st>[...]]
OK
For SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
OK
OK
OK
Parameter
In the case of CBS: 3GPP TS 23.041 CBM Content of Message in text mode
responses; format:
- If <dcs>, indicates that 3GPP TS 23.038 GSM 7 bit default alphabet is used:
- If TE character set other than “HEX” (refer to AT+CSCS command in 3GPP
TS27.007): ME/TA converts GSM alphabet into current TE character set according
to rules of Annex A in 3GPP TS 27.007.
- If TE character set is “HEX”: ME/TA converts each 7-bit character of the GSM 7 bit
default alphabet into two IRA character long hexadecimal number.
- If <dcs>, indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts
each 8-bit octet into two IRA character long hexadecimal number.
<pdu> In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.040 TPDU
in hexadecimal format: ME/TA converts each octet of TP data unit into two IRA
character long hexadecimal number (e.g. octet with integer value 42 is presented to
TE as two characters 2A (IRA 50 and 65)).
<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, the
parameter can be omitted.
<mr> Message reference. 3GPP TS 23.040 TP-Message-Reference in integer format.
<ra> Recipient address. 3GPP TS 23.040 TP-Recipient-Address Address-Value field in
string format. BCD numbers (or GSM default alphabet characters) are converted to
characters of the currently selected TE character set (refer to AT+CSCS command).
The type of address is given by <tora>.
<tora> Type of recipient address. 3GPP TS 24.011 TP-Recipient-Address Type-of-Address
octet in integer format (default refer to <toda>).
<scts> Service center time stamp. 3GPP TS 23.040 TP-Service-Centre-Time-Stamp in
time-string format (refer to <dt>).
<dt> String type. Discharge time.
<st> GSM03.40 TP-Status.
<ct> GSM03.40 TP-Command-Type.
<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> Parameter bits 4-7 in integer format.
<pages> Parameter bits 0-3 in integer format.
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
OK
The Read Command returns SMS messages with location value <index> from message storage <mem1>
to the TE. If status of the message is “REC UNREAD”, status in the storage changes to “REC READ”.
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
<index> Integer type. In the range of location numbers supported by the associated memory.
<stat> Text mode Explanation
“REC UNREAD” Received unread messages
“REC READ” Received read messages
“STO UNSENT” Stored unsent messages
“STO SENT” Stored sent messages
“ALL” All messages
PDU mode Explanation
0 Received unread messages
1 Received read messages
2 Stored unsent messages
3 Stored sent messages
4 All messages
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry
found in MT phonebook. Implementation of this feature is manufacturer specified. The
used character set should be the one selected with AT+CSCS command (see definition
of this command in 3GPP TS 27.007).
<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 AT+CSCS command in
3GPP TS 27.007). The type of address is given by <toda>.
<oa> Originating address. 3GPP TS 23.040 TP-Originating-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 AT+CSCS command in
3GPP TS 27.007). The type of address is given by <tooa>.
<scts> Service center time stamp. 3GPP TS 23.040 TP-Service-Centre-Time-Stamp in
time-string format (refer to <dt>).
<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, or
SMS-COMMAND in integer format. If a valid value has been entered once, the
parameter can be omitted.
<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.
<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>).
<mn> Message number. 3GPP TS 23.040 TP-Message-Number in integer format.
<mr> Message reference. 3GPP TS 23.040 TP-Message-Reference in integer format.
<ra> Recipient address. 3GPP TS 23.040 TP-Recipient-Address Address-Value field in
string format. BCD numbers (or GSM default alphabet characters) are converted to
characters of the currently selected TE character set (refer to AT+CSCS command).
The type of address is given by <tora>.
<tora> Type of recipient address. 3GPP TS 24.011 TP-Recipient-Address Type-of-Address
octet in integer format (default refer to <toda>).
<toda> Type of destination address. 3GPP TS 24.011 TP-Destination-Address
Type-of-Address octet in integer format.
<tooa> Type of originating address. 3GPP TS 24.011 TP-Originating-Address Type-of-Address
octet in integer format (default refer to <toda>).
<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 AT+CSCS command 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>).
<length> Message length, integer type. Indicating in 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).
<data> The text of short message. Please refer to Chapter 14.8 for details.
<pdu> In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.040 TPDU
in hexadecimal format: ME/TA converts each octet of TP data unit into two IRA
character long hexadecimal number (e.g. octet with integer value 42 is presented to TE
as two characters 2A (IRA 50 and 65)).
<prt> Priority
0 Normal
1 Interactive
2 Urgent
3 Emergency
<fmt> Format
0 GSM 7 bit
1 ASCII
6 UNICODE
<prv> Privacy
0 Normal
1 Restricted
2 Confidential
3 Secret
<lang> Language
0 Unspecified
1 English
2 French
3 Spanish
4 Japanese
5 Korean
6 Chinese
7 Hebrew
<type> 0 Normal
1 CPT
2 Voice Mail
3 SMS Report
Example
+CMTI: “SM”,3 //Indicate that a new message has been received and
saved to <index>=3 of “SM”
AT+CSDH=1
OK
OK
The Write Command sends a short message from TE to network (SMS-SUBMIT). The message
reference <mr> is returned to the TE on successful message delivery. Optionally (when AT+CSMS
<service> value is 1 and network supports) <scts> is returned. The values can be used to identify
message upon unsolicited delivery status report result code.
Parameter
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CMGS=“15021012496”
> <This is a test from Quectel> //Enter in text. Use Ctrl+Z to send message, or ESC
to quit without sending.
+CMGS: 247
OK
The command controls 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 open.
OK
Read Command Response
AT+CMMS? +CMMS: <n>
OK
Write Command Response
AT+CMMS=<n> OK
Parameter
NOTE
After the execution of Read Command, a delay of 5-10 seconds is required before issuing the Write
Command. Otherwise +CMS ERROR: 500 may appear.
The command transmits short messages (either SMS-DELIVER or SMS-SUBMIT) from TE to memory
storage <mem2> (please refer to AT+CPMS for details), and then the memory location <index> of the
stored message is returned. By default the message status will be set to ‘stored unsent’, but the
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.
Parameter
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).
<pdu> In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.04 TPDU in
hexadecimal format: ME/TA converts each octet of TP data unit into two IRA character
long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two
characters 2A (IRA 50 and 65)).
<index> Index of message in selected storage <mem2>.
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CMGW=“15021012496”
> <This is a test from Quectel> //Enter in text. Use Ctrl+Z to transmit the message to
memory storage <mem2>.
+CMGW: 4
OK
AT+CMGW=18
> 0051FF00000008000A0500030002016D4B8BD5
+CMGW: 5
OK
The Write Command sends messages with location value <index> from message storage <mem2> to
the network. If a new destination address <da> is given for SMS-SUBMIT, it shall be used instead of the
one stored with the message. Reference value <mr> is returned to the TE on successful message
delivery. Values can be used to identify message upon unsolicited delivery status report result code.
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
AT+CSCS command in 3GPP TS 27.007). The 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.
<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> The format is same as <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.
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
OK
AT+CMGW=“15021012496”
> Hello //Enter in text. Use Ctrl+Z to send message.
+CMGW: 4
OK
OK
The Write and Execution Commands confirm successful receipt of a new message (SMS-DELIVER or
SMS-STATUS-REPORT) routed directly to the TE. If the UE does not receive acknowledgement within
required time (network timeout), it sends an RP-ERROR message to the network. The UE will
automatically disable routing to the TE by setting both <mt> and <ds> values of AT+CNMI to 0.
OK
Execution Command Response
AT+CNMA OK
Parameter
<n> Parameter required only for PDU mode
0 Command operates similarly as in text mode
1 Send positive (RP-ACK) acknowledgement to the network. Accepted only in PDU mode.
2 Send negative (RP-ERROR) acknowledgement to the network. Accepted only in PDU
mode.
NOTE
The Execution and Write Commands shall only be used when AT+CSMS parameter <service> equals to
1 (phase 2+) and an appropriate URC has been issued by the module, 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
+CSMS:1,1,1
OK
AT+CNMI=1,2,0,0,0
OK
+CMT: “+8615021012496”,,“13/03/18,17:07:21+32”,145,4,0,0,“+8613800551500”,145,28
This is a test from Quectel. //A short message is outputted directly when SMS is incoming.
AT+CNMA
+CMS ERROR: 340 //The second time return error. It needs ACK only once.
The Write Command selects 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. If TE is inactive (e.g. DTR is at high level),
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>[,<ds TA selects the procedure on how the received new messages
>[,<bfr>]]]]] from the network are indicated to the TE when TE is active,
e.g. DTR is at low level. If TE is inactive (e.g. DTR is at high
level), message receiving should be done as specified in
3GPP TS 23.038.
OK
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 the 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 the TE.
<mt> The rules for storing received SMS depend on its data coding scheme (refer to 3GPP TS
23.038) and preferred memory storage (AT+CPMS) setting, and the value is:
0 No SMS-DELIVER indications are routed to the TE.
1 If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed
to the TE 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 parameters in italics,
refer to AT+CSDH). 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>,,<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
Unsolicited result code:
+CMTI: <mem>,<index> Indicates that a new message has been received
+CMT: [<alpha>],<length><CR><LF><pdu> A short message is outputted directly
+CBM: <length><CR><LF><pdu> Cell broadcast message is outputted directly
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
+CMT: “+8615021012496”,,“13/03/18,17:07:21+32”,145,4,0,0,“+8613800551500”,145,28
This is a test from Quectel. //A short message is outputted directly when SMS is incoming.
The Write Command controls 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
Parameter
<show> 0 Do not show header values defined in commands AT+CSCA, AT+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>] TA 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 SM 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, the
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 send concatenated massages. Different from AT+CMGS, when sending a
concatenated message via this command, each segment of the concatenated message must be identified
by the additional parameters <uid>, <msg_seg> and <msg_total>. When sending all segments of the
message one by one, AT+QCMGS must be executed multiple times (equal to <msg_total>) for each
segment. This command is only used in text mode (AT+CMGF=1).
Parameter
<uid> Message identification in the user data header (UDH). Range: 0-255. This
parameter is defined and inputted by the user. All segments of a same
concatenated message must have the same <uid>. Different concatenated
messages should have different <uid>.
<msg_seg> Sequence number of a concatenated message. Range: 0-7.
<msg_seg>=0 means: ignore the value and regarded it as a non-concatenated
message.
<msg_total> The total number of the segments of one concatenated message. Range: 0-7.
<msg_total>=0 or 1 means: ignore the value and regard it as a
non-concatenated message.
<da>,<toda>,<mr> Please refer to AT+CMGS.
NOTES
1. For concatenated messages, the maximum length will be reduced by the length of the user data
header (UDH). 3GPP TS 23.040 defines two kinds of UDH length: 6 bytes and 7 bytes, so the two
kinds of <uid> are 8 bit (6 bytes) and 16 bit (7 bytes). AT+QCMGS uses 8 bit <uid>.
In the case of GSM 7 bit default alphabet data coding scheme, the maximum length of each
segment of a concatenated message is (140 octets - 6)*8/7=153 characters.
In the case of 16 bit UCS2 data coding scheme, the maximum length of each segment is
(140-6)/2=67 characters.
In the case of 8-bit data coding scheme, the maximum length of each segment is 140-6=134
characters.
2. <mr>, Message-Reference field gives an integer representation of a reference number of the
SMS-SUBMIT or SMS-COMMAND submitted to the SC by the MS, and it is used to confirm whether
the SMS-DELIVER has been received from SC duplicate or not. <uid>, the field of UDH, is message
identification of the concatenated SMS, which is different from <mr>. Each segment in a
concatenated message should have the same <uid>, but <mr> must be incremented for each
segment of a concatenated message.
3. AT+QCMGS does not support sending messages in PDU mode (AT+CMGF=0).
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+QCMGS="15056913384",120,1,2 <CR> //Input 120 for <uid>, send the first segment of the
concatenated SMS
>ABCD<Ctrl-Z>
+QCMGS: 190
OK
AT+QCMGS= "15056913384",120,2,2 <CR> //Send the second segment of the concatenated SMS.
>EFGH<Ctrl-Z>
+QCMGS: 191
OK
The function of this command is similar to AT+CMGR, except that the message to be read is a segment of
concatenated messages, and parameters <uid>, <msg_seg> and <msg_total> would be shown in the
result. Several segments should be concatenated to a whole concatenated message according to these
three parameters. Similar to AT+QCMGS, AT+QCMGR is only used in text mode (AT+CMGF=1).
OK
For SMS-SUBMIT:
+QCMGR: <stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dc
s>,[<vp>],<sca>,<tosca>,<length>][,<uid>,<msg_seg>,<
msg_total>]<CR><LF><data>
OK
For SMS-STATUS-REPORTs:
+QCMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<
st>
OK
For SMS-COMMANDs:
+QCMGR: <stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<tod
a>],<length><CR><LF><cdata>]
OK
Parameter
<uid> Message identification in the user data header (UDH). Range: 0-65535 (see NOTES).
All segments of a same concatenated message have same <uid>. Different
concatenated messages should have different <uid>.
<msg_seg> Sequence number of a concatenated message. Range: 1-7.
<msg_total> The total number of the segments of one concatenated message. Range: 2-7.
Other parameters please refer to AT+CMGR.
NOTES
1. The <uid> in AT+QCMGR is different from the <uid> in AT+QCMGS. It is possible that UE receives
concatenated messages with 8 bits or 16 bits <uid>. So its maximal value is 255 with 8 bits and
65535 with 16 bits.
2. If the message to be read is not a concatenated message, then <uid>, <msg_seg> and
<msg_total> would not be shown in the result.
Example
+CMTI: "SM",3 //The first segment of a concatenated message comes
OK
OK
The Write Command is used to attach the MT to, or detach the MT from the Packet Domain service. After
the command has been completed, the MT remains in V.25ter command state. If the MT is already in the
requested state, the command is ignored and the OK response will be returned. If the requested state
cannot be achieved, an ERROR or +CME ERROR response is returned.
OK
Read Command Response
AT+CGATT? +CGATT: <state>
OK
Write Command Response
AT+CGATT=<state> OK
Parameter
Example
AT+CGATT=1 //Attach to PS service
OK
OK
The command specifies 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>[,<
head_comp>]]]]] If there is any other error:
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 permitted 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
“PPP” PPP
“IPV6” IPv6
“IPV4V6” 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 (Default value if the parameter is omitted)
1 ON (Manufacturer preferred compression)
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
The Write Command is used to activate or deactivate the specified PDP context(s). After the command
has been completed, the MT remains in V.250 command state. If any PDP context is already in the
requested state, the state for that context remains unchanged. If the MT is not PS attached when the
activation form of the command is executed, the MT first performs a PS attach and then attempts 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>+CGACT: <cid>,<state
>…]
OK
Write Command Response
AT+CGACT=<state>,<cid> OK
NO CARRIER
Parameter
Example
AT+CGDCONT=1,“IP”,“UNINET” //Define a PDP context
OK
The Write 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>
[+CGPADDR: <cid>,<PDP_addr>[…]]
OK
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_address> is omitted if none is available.
Example
AT+CGDCONT=1,“IP”,“UNINET” //Define a PDP context
OK
OK
The command queries the EGPRS network registration status and controls the presentation of an
unsolicited result code +CGREG: <stat> when <n>=1 and there is a change in the MT’s EGPRS network
registration status in GERAN, or unsolicited result code +CGREG:
<stat>[,[<lac>],[<ci>],[<AcT>],[<rac>]] when <n>=2 and there is a change of the network cell in
GERAN.
OK
Read Command Response
AT+CGREG? +CGREG: <n>,<stat>[,<lac>,<ci>[,<AcT>]]
OK
Write Command Response
AT+CGREG[=<n>] OK
Parameter
service is disabled, but the UE is allowed to attach for GPRS if requested by the
user.
1 Registered, home network. The UE is in GMM state GMM-REGISTERED or
GMM-ROUTING-AREA-UPDATING-INITIATED INITIATED on the home PLMN.
2 Not registered, but MT is currently trying to attach or searching an operator to
register to. The UE is in GMM state GMM-DEREGISTERED or
GMM-REGISTERED-INITIATED. The GPRS service is enabled, but an allowable
PLMN is currently not available. The UE will start a GPRS attach as soon as an
allowable PLMN is available.
3 Registration denied. The UE is in GMM state GMM-NULL. The GPRS service is
disabled, and the UE is not allowed to attach for GPRS if requested by the user.
4 Unknown
5 Registered, roaming
<lac> String type. Two-byte location area code in hexadecimal format (e.g. “00C3” equals 195 in
decimal)
<ci> String type. Two-byte cell ID in hexadecimal format.
<AcT> Access technology selected.
0 GSM
8 eMTC (Not applicable)
9 NB-IoT (Not applicable)
<rac> Routing area code.
NOTE
Example
AT+CGREG=2
OK
AT+CGATT=0
OK
+CGREG: 2
AT+CGATT=1
OK
+CGREG: 1,"FFFE","82E76B2",9
The Write Command enables or disables sending of unsolicited result codes +CGEV: XXX from MT to TE
in the case of certain events occurring in the packet domain MT or the network. <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
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 data
mode) and flush them to the TE when MT-TE link becomes available. Otherwise
forward them directly to the TE.
<bfr> 0 MT buffer of unsolicited result codes defined within this command is cleared when
<mode> 1 or 2 is entered.
1 MT buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1 or 2 is entered (OK response shall be given before flushing
the codes).
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: PDN ACT <cid>: Activated a context. The context represents a PDN connection in LTE or a
Primary PDP context in GSM.
10. +CGEV: PDN DEACT <cid>: Deactivated a context. The context represents a PDN connection in
LTE or a primary PDP context in GSM.
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=?
+CGEREP: (0-2),(0,1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
The command specifies 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 GPRS
1 Circuit switch
2 GPRS preferred (use circuit switched if GPRS is not available)
3 Circuit switch preferred (use GPRS if circuit switched is not available)
NOTE
The command queries the LTE network registration status and controls the presentation of:
the unsolicited result code +CEREG: <stat> when <n>=1 and there is a change in the MT’s EPS
network registration status in E-UTRAN,
the unsolicited result code +CEREG: <stat>[,[<tac>],[<ci>],[<AcT>]] when <n>=2 and there is a
change of the network cell in E-UTRAN, and
the unsolicited result code +CEREG: <stat>[,[<tac>],[<ci>],[<AcT>][,,[,[<Active-Time>],[<Periodic
-TAU>]]]] when <n>=4 and there is a change of the network cell in E-UTRAN.
OK
Read Command Response
AT+CEREG? When <n>=0, 1, or 2 and the command is executed
successfully:
+CEREG: <n>,<stat>[,[<tac>],[<ci>],[<AcT>[,<cause_typ
e>,<reject_cause>]]]
OK
Reference
3GPP TS 27.007
Parameter
876
0 0 0 value is incremented in multiples of 2 seconds
0 0 1 value is incremented in multiples of 1 minute
0 1 0 value is incremented in multiples of decihours
1 1 1 value indicates that the timer is deactivated.
<Periodic-TAU> String type. One byte in an 8 bit format. Extend periodic TAU value (T3412_ext) to
be allocated to the UE in E-UTRAN.
(e.g. "00001010" equals to 100 minutes)
Bits 5 to 1 represent the binary coded timer value.
Bits 6 to 8 define the timer value unit as follows:
Bits
876
0 0 0 value is incremented in multiples of 10 minutes
0 0 1 value is incremented in multiples of 1 hour
0 1 0 value is incremented in multiples of 10 hours
0 1 1 value is incremented in multiples of 2 seconds
1 0 0 value is incremented in multiples of 30 seconds
1 0 1 value is incremented in multiples of 1 minute
The command allows 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 TA controls the call forwarding supplementary service.
r>[,<type>[,<class>[,<subaddr>[,<sat Registration, erasure, activation, deactivation, and status
ype>[,time]]]]]] query are supported.
Only <reads> and <mode> should be entered with <mode>=
0, 1, 2 or 4.
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 (0-3)
5 All conditional call forwarding (1-3)
<mode> 0 Disable
1 Enable
2 Query status
3 Registration
4 Erasure
<number> Phone number in string type 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> String type sub-address of 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 gives the time in
seconds to wait before the call is forwarded. The 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 allows 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 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 can be
aborted by pressing any key.
3. Unsolicited result code:
When the presentation call waiting at the TA 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
The command allows 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. Please note that UMTS related services are not supported
on BG95 and BG77.
OK
Write Command Response
AT+CHLD[=<n>] TA 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)
1X Terminate the specific call number X (X=1-7)
2 Place all active calls on hold (if any) and accept the other call (waiting call or held
call) as the active call
2X Place all active calls except call X (X=1-7) on hold
3 Add the held call to the active calls
4 Connects the two calls and disconnects the subscriber from both calls (ECT)
Example
ATD10086; //Establish a call
OK
AT+CHLD=2 //Place the active call on hold and accept the waiting call as
the active call
OK
AT+CLCC
+CLCC: 1,0,1,0,0,“10086”,129 //The first call on hold
OK
AT+CLCC
+CLCC: 1,0,0,0,0,“10086”,129 //The first call be active
OK
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> TA 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
1 CLIP provisioned
2 Unknown
<number> Phone number in string type of calling address in format specified by <type>
<subaddr> String type subaddress of format specified by <satype>
<satype> Type of subaddress octet in integer format (refer to 3GPP TS 24.008 [8] subclause
10.5.4.8)
<type> Type of address octet in integer format;
129 Unknown type (IDSN format)
145 International number type (ISDN format)
161 National number
<alpha> String type alphanumeric representation of <number> corresponding to the entry
found in phone book.
<CLI validity> 0 CLI valid
1 CLI has been withheld by the originator
2 CLI is not available due to interworking problems or limitations of originating
network
NOTE
Unsolicited result code:
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
Write Command Response
AT+CLIR[=<n>] TA restricts or enables the presentation of the calling line
identity (CLI) to the called party when originating a call.
The command overrides the CLIR subscription (default is
restricted or allowed) when temporary mode is provisioned as
a default adjustment for all following outgoing calls. This
adjustment can be revoked by using the opposite command.
OK
Parameter
The command refers to the GSM/UMTS supplementary service COLP (Connected Line Identification
Presentation) that enables a calling subscriber to get the connected line identity (COL) of the called party
after setting up a mobile originated call. The command enables or disables the presentation of the COL at
the TE. It has no effect on the execution of the supplementary service COLR in the network.
OK
Read Command Response
AT+COLP? +COLP: <n>,<m>
OK
Write Command Response
AT+COLP[=<n>] TA 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
Intermediate result code:
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 refers to supplementary service related network initiated notifications. The Write
Command enables/disables 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
Parameter
<n> Integer type. Sets/shows the +CSSI intermediate result code presentation status to the
TE.
0 Disable
1 Enable
<m> Integer type. Sets/shows the +CSSU unsolicited result code presentation status to the
TE.
0 Disable
1 Enable
<code1> Integer type. It is manufacturer specific, and supports the following codes:
0 Unconditional call forwarding is active
1 Some of the conditional call forwardings 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 is
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 allows 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 an 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
]]]
If there is an error related to ME functionality:
+CME ERROR: <err>
Parameter
<mode> Integer type. Sets/shows the result code presentation status to the TE
0 Disable the result code presentation to the TE
1 Enable the result code presentation to the TE
2 Cancel session (not applicable to Read Command response)
<reqstr> Unstructured Supplementary Service Data (USSD) to be sent to the network. If this
parameter is not given, network is not interrogated.
<rspstr> Unstructured Supplementary Service Data (USSD) received from the network
<dcs> Integer type. 3GPP TS 23.038 Cell Broadcast Data Coding Scheme (default 15)
<status> USSD response from the network or the network initiated operation
0 No further user action required (network initiated USSD Notify, or no further
information needed after mobile initiated operation)
1 Further user action required (network initiated USSD Request, or further
information needed after mobile initiated operation)
2 USSD terminated by network
3 Another local client has responded
4 Operation not supported
5 Network time out
The command is used to power off the module. The UE will return OK immediately when the command is
executed successfully. The UE will then deactivate the network, after which it will output POWERED
DOWN and enter 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 module’s STATUS pin is
set low and the URC POWERED DOWN is outputted.
OK
Execution Command Response
AT+QPOWD[=<n>] OK
POWERED DOWN
Maximum Response Time 300ms
Parameter
The command sets and queries the real time clock (RTC) of the module. The current setting is retained
until the module is totally disconnected from power supply.
AT+CCLK Clock
Test Command Response
AT+CCLK=? OK
OK
Write Command Response
AT+CCLK=<time> OK
Parameter
<time> String type value. Format is “yy/MM/dd,hh:mm:ss±zz”, indicating year (last two-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
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
The command is used to control whether the module enters sleep mode. When entering into sleep mode
is enabled and DTR is pulled up, the module can enter sleep mode directly. If entering into sleep mode is
enabled and DTR is pulled down, there is a need to pull up the DTR pin first to make the module enter
sleep mode.
OK
Read Command Response
AT+QSCLK? +QSCLK: <n>
OK
Write Command Response
AT+QSCLK=<n> OK
Maximum Response Time 300ms
Reference
Quectel
Parameter
Command Description
Command Description
Command Description
Command Description
Command Description
Command Description
Command Description
Command Description
20 Appendix
20.1. References
Abbreviation Description
ME Mobile Equipment
MS Mobile Station
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+CSMS <service> 0
AT+CMGF <mode> 0
AT+CSDH <show> 0
AT+CSCB <mode> 0
AT+CMMS <n> 0
AT+CVHU <mode> 0
AT+CLIP <n> 0
AT+COLP <n> 0
AT+CLIR <n> 0
AT+CSSN <n> 0
AT+CTZR <reporting> 0
AT+CPBS <storage> ME
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+IPR <rate> No
AT+CREG <n> No
AT+CGREG <n> No
AT+CEREG <n> 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 shall 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 shall be returned.
300 ME failure
331 No network
500 Unknown
+CLIP: <number>,<type>,[sub
16 addr],[satype],[<alpha>],<CLI Mobile terminating call indication AT+CLIP=1
validity>
An incoming call is indicated to the
17 +CRING: <type> TE with unsolicited result code AT+CRC=1
instead of the normal RING
+CCWA: <number>,<type>,<c
18 Call waiting indication AT+CCWA=1,1
lass>[,<alpha>]
Shows the +CSSI intermediate result
19 +CSSI: <code1> AT+CSSN=1
code presentation status to the TE
Shows the +CSSU unsolicited result
20 +CSSU: <code2> AT+CSSN=<n>,1
code presentation status to the TE
+CUSD: <status>[,<rspstr>,[< USSD response from the network, or
21 AT+CUSD=1
dcs>]] a network initiated operation
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 (16bit). 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 21: The Input Conversions Table (DCS=GSM 7 bit and AT+CSCS=“GSM”)
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 22: The Output Conversions Table (DCS=GSM 7 bit and AT+CSCS=“GSM”)
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
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 24: The Input Conversions Table (DCS=GSM 7 bit and AT+CSCS=“IRA”)
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
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 26: The Output Conversions Table (DCS=GSM 7 bit and AT+CSCS=“IRA”)
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
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 conversion table of fmt= GSM 7 bit and AT+CSCS=“IRA” is similar to AT+CSCS=“IRA”.
The conversion table of fmt=GSM 7 bit and AT+CSCS=“UCS2” is similar to AT+CSCS=“IRA”.