Quectel BG77xA-GLBG95xA-GL at Commands Manual V1.1
Quectel BG77xA-GLBG95xA-GL at Commands Manual V1.1
AT Commands Manual
Version: 1.1
Date: 2022-08-18
Status: Released
LPWA Module Series
At Quectel, our aim is to provide timely and comprehensive services to our customers. If you
require any assistance, please contact our headquarters:
Legal Notices
We offer information as a service to you. The provided information is based on your requirements and we
make every effort to ensure its quality. You agree that you are responsible for using independent analysis
and evaluation in designing intended products, and we provide reference designs for illustrative purposes
only. Before using any hardware, software or service guided by this document, please read this notice
carefully. Even though we employ commercially reasonable efforts to provide the best possible experience,
you hereby acknowledge and agree that this document and related services hereunder are provided to
you on an "as available" basis. We may revise or restate this document from time to time at our sole
discretion without any prior notice to you.
Copyright
Our and third-party products hereunder may contain copyrighted material. Such copyrighted material shall
not be copied, reproduced, distributed, merged, published, translated, or modified without prior written
consent. We and the third party have exclusive rights over copyrighted material. No license shall be
granted or conveyed under any patents, copyrights, trademarks, or service mark rights. To avoid
ambiguities, purchasing in any form cannot be deemed as granting a license other than the normal non-
exclusive, royalty-free license to use the material. We reserve the right to take legal action for
noncompliance with abovementioned requirements, unauthorized use, or other illegal or malicious use of
the material.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 1 / 170
LPWA Module Series
Trademarks
Except as otherwise set forth herein, nothing in this document shall be construed as conferring any rights
to use any trademark, trade name or name, abbreviation, or counterfeit product thereof owned by Quectel
or any third party in advertising, publicity, or other aspects.
Third-Party Rights
This document may refer to hardware, software and/or documentation owned by one or more third parties
("third-party materials"). Use of such third-party materials shall be governed by all restrictions and
obligations applicable thereto.
We make no warranty or representation, either express or implied, regarding the third-party materials,
including but not limited to any implied or statutory, warranties of merchantability or fitness for a particular
purpose, quiet enjoyment, system integration, information accuracy, and non-infringement of any third-
party intellectual property rights with regard to the licensed technology or use thereof. Nothing herein
constitutes a representation or warranty by us to either develop, enhance, modify, distribute, market, sell,
offer for sale, or otherwise maintain production of any our products or any other hardware, software, device,
tool, information, or product. We moreover disclaim any and all warranties arising from the course of
dealing or usage of trade.
Privacy Policy
To implement module functionality, certain device data are uploaded to Quectel’s or third-party’s servers,
including carriers, chipset suppliers or customer-designated servers. Quectel, strictly abiding by the
relevant laws and regulations, shall retain, use, disclose or otherwise process relevant data for the purpose
of performing the service only or as permitted by applicable laws. Before data interaction with third parties,
please be informed of their privacy and data security policy.
Disclaimer
a) We acknowledge no liability for any injury or damage arising from the reliance upon the information.
b) We shall bear no liability resulting from any inaccuracies or omissions, or from the use of the
information contained herein.
c) While we have made every effort to ensure that the functions and features under development are
free from errors, it is possible that they could contain errors, inaccuracies, and omissions. Unless
otherwise provided by valid agreement, we make no warranties of any kind, either implied or express,
and exclude all liability for any loss or damage suffered in connection with the use of features and
functions under development, to the maximum extent permitted by law, regardless of whether such
loss or damage may have been foreseeable.
d) We are not responsible for the accessibility, safety, accuracy, availability, legality, or completeness of
information, advertising, commercial offers, products, services, and materials on third-party websites
and third-party resources.
Copyright © Quectel Wireless Solutions Co., Ltd. 2022. All rights reserved.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 2 / 170
LPWA Module Series
Revision History
Version Date Author Description
Jelena JOVANOVIC/
Igor STANCIC/
- 2021-01-29 Creation of the document
Mladen VUKOVIC/
Lane HAO
Jelena JOVANOVIC/
Igor STANCIC/
1.0 2022-05-24 First official release
Mladen VUKOVIC/
Lane HAO
1. Added the applicable module BG955A-GL.
2. Added GSM for <Act> in AT+CREG (Chapter 6.1).
3. Added GSM for <Act> and 4 specific GSM bands
for <band> in AT+QNWINFO (Chapter 6.13).
1.1 2022-08-18 Justice HAN 4. Added GSM for <sysmode>, <GSM_RSSI> for
<value1> and the description of <GSM_RSSI> in
AT+QCSQ (Chapter 6.14).
5. Added AT+CGREG for BG955A-GL module
(Chapter 8.5).
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 3 / 170
LPWA Module Series
Contents
1 Introduction ......................................................................................................................................... 9
1.1. Scope of the Document ............................................................................................................. 9
1.2. Special Mark .............................................................................................................................. 9
1.3. Definitions ................................................................................................................................ 10
1.4. AT Command Syntax ............................................................................................................... 10
1.5. AT Command Responses ........................................................................................................ 11
1.6. Supported Character Sets ....................................................................................................... 12
1.7. AT Command Interface ............................................................................................................ 12
1.8. Unsolicited Result Code........................................................................................................... 12
1.9. Turn-off Procedure ................................................................................................................... 12
1.10. Declaration of AT Command Examples .................................................................................. 13
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 4 / 170
LPWA Module Series
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 5 / 170
LPWA Module Series
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 6 / 170
LPWA Module Series
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 7 / 170
LPWA Module Series
Table Index
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 8 / 170
LPWA Module Series
1 Introduction
1.1. Scope of the Document
This document presents the AT commands set supported by Quectel BG77xA-GL and BG95xA-GL
modules.
BG770A-GL
BG77xA-GL
BG772A-GL
BG950A-GL
BG951A-GL
BG95xA-GL
BG952A-GL
BG955A-GL
Mark Definition
Unless otherwise specified, when an asterisk (*) is used after a function, feature, interface,
pin name, command, or argument, it indicates that the function, feature, interface, pin, AT
*
command, or argument is under development and currently not supported; and the asterisk
(*) after a model indicates that the sample of the model is currently unavailable.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 9 / 170
LPWA Module Series
1.3. Definitions
All command lines must start with AT or at and end with <CR>. Information responses and result codes
always start and end with a carriage return character and a line feed character:
<CR><LF><response><CR><LF>. In tables presenting commands and responses throughout this
document, only the commands and responses are presented, and <CR> and <LF> are deliberately omitted.
The AT command set implemented by the modules is a combination of 3GPP TS 27.007, 3GPP TS 27.005
and ITU-T recommendation V.25ter, as well as the AT Commands developed by Quectel.
All these AT commands fall into three categories syntactically: “Basic”, “S parameter”, and “Extended”, as
listed below:
⚫ Basic
Basic command format is AT<x><n>, or AT&<x><n>, where <x> is the command, and <n> is/are the
argument(s) of the command. For example, ATE<n> tells the DCE (Data Circuit-terminating Equipment)
whether received characters should be echoed back to the DTE (Data Terminal Equipment) according to
the value of <n>. <n> is optional and the default value will be used if it is omitted.
⚫ S Parameter
S Parameter command format is ATS<n>=<m>, where <n> is the index of the S register to be set, and
<m> is the value to be assigned to it.
⚫ Extended
Extended commands can be executed in several modes, as shown in the following table:
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 10 / 170
LPWA Module Series
Multiple commands can be placed on a single line using a semi-colon (;) between commands. In such
cases, only the first command should have AT prefix. Commands can be in upper or lower case.
Spaces should be ignored when you enter AT commands, except in the following cases:
On input, at least a carriage return is required. The carriage return (CR) value is defined by ATS3
parameter and its factory default value is 13 (0x0D). The line feed (LF) parameter value is defined by ATS4
parameter and its factory default value is 10 (0x0A).
If no command is entered after the AT token, OK will be returned. If an invalid command is entered,
ERROR will be returned.
Optional parameters, unless explicitly stated, need to be provided up to the last parameter to be entered.
When the AT command processor has finished processing a line, it will output OK, ERROR or +CME
ERROR: <err> to indicate that it is ready to accept a new command. Solicited informational responses are
outputted before the final OK, ERROR or +CME ERROR: <err>.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 11 / 170
LPWA Module Series
<CR><LF>OK<CR><LF>
Or
<CR><LF><parameters><CR><LF>
<CR><LF>OK<CR><LF>
The AT commands interface of the module uses the GSM character set by default. The module
supports the following character sets:
⚫ GSM
⚫ UCS2
⚫ IRA
The character set can be configured and interrogated with AT+CSCS (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 entry text fields.
The AT commands are implemented via main UART port. The main UART port supports AT command
communication and data transfer.
Unsolicited Result Code (URC) is a report message that is not issued in response to an executed AT
command. URC is automatically issued by the module in response to a certain event. Typical URC
triggering events include data server connection/disconnection, PSM response, (U)SIM detection, etc.
The safest and best way to turn off the module is to execute AT+QPOWD and then set PON_TRIG pin to
‘low’ state. This procedure is performed by letting the module log off from the network and allowing the
software to enter a secure and safe data state before disconnecting power supply.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 12 / 170
LPWA Module Series
After setting the PON_TRIG to ‘low’ state, do not enter any other AT commands. The module outputs
POWERED DOWN and set the STATUS pin low to enter power-off state. To avoid data loss, it is suggested
to wait at least 10 s to disconnect the power supply after the STATUS pin is set low, the VDD_EXT goes
low and the URC POWERED DOWN is output.
The AT command examples in this document are provided to help you learn about the use of the AT
commands introduced herein. The examples, however, should not be taken as Quectel’s
recommendations or suggestions about how to design a program flow or what status to set the module
into. Sometimes multiple examples may be provided for one AT command. However, this does not mean
that there is a correlation among these examples, or that they should be executed in a given sequence.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 13 / 170
LPWA Module Series
2 General Commands
2.1. ATI Display Product Identification Information
OK
Maximum Response Time 300 ms
Characteristics /
Reference
V.25ter
Parameter
Example
ATI
Quectel
BG770A-GL
Revision: BG770AGLAAR01A04
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 14 / 170
LPWA Module Series
This command returns the manufacturer identification. It is identical to AT+CGMI in Chapter 2.5.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
V.25ter
This command returns the product model identification. It is identical to AT+CGMM in Chapter 2.6.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
V.25ter
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 15 / 170
LPWA Module Series
This command returns the product firmware version identification. It is identical to AT+CGMR in Chapter
2.7.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
V.25ter
Parameter
Example
AT+GMR
BG770AGLAAR01A04
OK
This command returns the manufacturer identification. It is identical to AT+GMI in Chapter 2.2.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 16 / 170
LPWA Module Series
AT+CGMI Quectel
OK
Characteristics /
Reference
3GPP TS 27.007
This command returns the product model identification. It is identical to AT+GMM in Chapter 2.3.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
3GPP TS 27.007
Parameter
This command returns the product firmware version. It is identical to AT+GMR in Chapter 2.4.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 17 / 170
LPWA Module Series
AT+CGMR=? OK
OK
Maximum Response Time 300 ms
Characteristics /
Reference
3GPP TS 27.007
Parameter
This command returns the International Mobile Equipment Identity (IMEI) number of the product in
information text, which permits the user to identify the individual ME device. It is identical to AT+CGSN in
Chapter 2.9.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
V.25ter
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 18 / 170
LPWA Module Series
NOTE
This command returns the International Mobile Equipment Identity (IMEI) of ME. It is identical to AT+GSN
above.
OK
Maximum Response Time 300 ms
Characteristics /
Reference
3GPP TS 27.007
Parameter
NOTE
This command resets the configuration parameters to their default values specified by the manufacturer.
See Table 25 for the list of supported AT command configurations restorable with AT&F0.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 19 / 170
LPWA Module Series
Characteristics /
Reference
V.25ter
Parameter
NOTE
This command displays the current settings of some AT command parameters (see Table 4 for the default
command response before any change), including the one-letter AT command parameters that are not
otherwise readable.
Characteristics /
Reference
V.25ter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 20 / 170
LPWA Module Series
AT&V
&C: 1
&D: 2
&F: 0
&W: 0
Q: 0
V: 1X: 4
Z: 0
E: 1S0: 0
S4: 10
S5: 8
S6: 2
S7: 0
S8: 2
S10: 15
S3: 13
OK
Profile
This 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. See Table 26 for the list of supported AT commands.
Characteristics /
Reference
V.25ter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 21 / 170
LPWA Module Series
Parameter
This command first resets the AT command settings to factory settings, which is similar to what AT&F
does. Afterwards, the AT command settings are restored from the user-defined profile in the non-volatile
memory if they have been stored with AT&W before.
Any additional AT command on the same command line may be ignored. See Table 27 for the list of
supported AT commands.
Characteristics /
Reference
V.25ter
Parameter
This command controls whether the result code is transmitted to TE. Other information text transmitted as
response is not affected by this setting.
If <n>=1:
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 22 / 170
LPWA Module Series
(none)
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration can be saved with AT&W.
Reference
V.25ter
Parameter
This command determines the contents of header and trailer transmitted with AT command result codes
and information responses.
The numeric equivalents and brief descriptions of result codes are listed in the table below.
When <value>=1:
OK
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration can be saved with AT&W.
Reference
V.25ter
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 23 / 170
LPWA Module Series
Example
ATV1 //Set <value>=1.
OK
AT+CSQ
+CSQ: 30,99
Table 5: Numeric Equivalents and Brief Descriptions of ATV0 and ATV1 Result Codes
This command controls whether or not the module echoes characters received from TE in AT command
mode.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 24 / 170
LPWA Module Series
Parameter
<value> Integer type. Whether to echo the characters received from TE.
0 Echo mode OFF
1 Echo mode ON
This command repeats the previous AT command line, and “/” acts as the line termination character.
Example
ATI
Quectel
BG770A-GL
Revision: BG770AGLAAR01A04
OK
A/ //Repeat the previous command.
Quectel
BG770A-GL
Revision: BG770AGLAAR01A04
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 25 / 170
LPWA Module Series
This command determines the character that terminates an incoming command line, which is recognized
by the module. It is also generated by the module for result codes and information text, along with character
value set via ATS4.
OK
Write Command Response
ATS3=<n> OK
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is not saved.
Reference
V.25ter
Parameter
This 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> OK
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is not saved.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 26 / 170
LPWA Module Series
Reference
V.25ter
Parameter
This 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> OK
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is not saved.
Reference
V.25ter
Parameter
NOTE
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 27 / 170
LPWA Module Series
This command controls the UE functionality level. It can also be used to reset the UE.
OK
Read Command Response
AT+CFUN? +CFUN: <fun>
OK
Write Command Response
AT+CFUN=<fun>[,<rst>] OK
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CFUN=0 //Switch the UE to minimum functionality.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 28 / 170
LPWA Module Series
OK
AT+COPS?
+COPS: 2 //No operator is registered.
OK
AT+CPIN?
+CME ERROR: 13 //(U)SIM failure.
AT+CFUN=1 //Switch the UE to full functionality.
OK
+CPIN: READY
+QUSIM: 1
AT+CPIN?
+CPIN: READY
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE CMCC",8 //Operator is registered.
OK
This command controls the format of error result codes: ERROR, error numbers or verbose messages as
+CME ERROR: <err> and +CMS ERROR: <err>.
OK
Read Command Response
AT+CMEE? +CMEE: <n>
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 29 / 170
LPWA Module Series
OK
Parameter
<n> Integer type.
0 Disable result code and use ERROR instead
1 Enable result code and use numeric values
2 Enable result code and use verbose values
<err> Error code. See Table 28 and Table 29 for possible <err> values.
Example
AT+CMEE=0 //Disable result code.
OK
AT+CPIN?
ERROR //Only ERROR will be displayed.
AT+CMEE=1 //Enable error result code with numeric values.
OK
AT+CPIN?
+CME ERROR: 10
AT+CMEE=2 //Enable error result code with verbose (string) values.
OK
AT+CPIN?
+CME ERROR: SIM not inserted
The 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.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 30 / 170
LPWA Module Series
OK
Read Command Response
AT+CSCS? +CSCS: <chset>
OK
Write Command Response
AT+CSCS=<chset> OK
Parameter
Example
AT+CSCS? //Query the current character set.
+CSCS: "GSM"
OK
AT+CSCS="UCS2" //Set the character set to "UCS2".
OK
AT+CSCS?
+CSCS: "UCS2"
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 31 / 170
LPWA Module Series
OK
OK
Write Command Response
AT+QURCCFG="urcport"[,<URC_por If the optional parameter is omitted, the command returns the
t>] current setting.
+QURCCFG: "urcport",<URC_port>
OK
Parameter
Example
AT+QURCCFG=?
+QURCCFG: "urcport",("main","aux","emux")
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 32 / 170
LPWA Module Series
OK
AT+QURCCFG="urcport","main"
OK
AT+QURCCFG="urcport"
+QURCCFG: "urcport","main"
OK
The +++ character sequence causes the TA to cancel the data flow over the AT interface and switch to
command mode. It allows inputting AT commands while maintaining the data connection with the remote
device.
Characteristics /
Reference
V.25ter
NOTE
1. Input +++ or pull the MAIN_DTR pin up to make the COM port exit the data mode. To prevent the
+++ escape sequence from being misinterpreted as data, the following sequence should be
followed:
1) Do not input any character for at least 1 s before and after inputting +++.
2) Input +++ within 1 s, and wait until OK is returned.
Once OK is returned, the COM port exits the data mode and switches to AT command mode.
2. To switch back to data mode from AT command mode, enter ATO0.
3. Another way to exit data mode is to pull the MAIN_DTR pin up, after setting AT&D. See AT&D for
more information.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 33 / 170
LPWA Module Series
This command resumes the connection and switches back to data mode from command mode.
Characteristics /
Reference
V.25ter
Parameter
NOTE
When TA returns to data mode from command mode successfully, CONNECT [<text>] is returned.
Note that <text> is output only when <value> is greater than 0 in ATX<value> parameter setting.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 34 / 170
LPWA Module Series
This command controls the behavior of the UE’s MAIN_DCD line. It determines how the state of circuit
109 (DCD) relates to the detection of received line signal from the distant end.
Parameter
This command determines how the TA responds when circuit 108/2 (DTR) is changed from low to high
level in data mode.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 35 / 170
LPWA Module Series
Parameter
This command sets the serial port (main UART) flow control.
OK
Read Command Response
AT+IFC? +IFC: <DCE_by_DTE>,<DTE_by_DCE>
OK
Write Command Response
AT+IFC=<DCE_by_DTE>,<DTE_by_D This parameter setting determines the data flow control on the
CE> main UART interface in data mode.
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 36 / 170
LPWA Module Series
Parameter
<DCE_by_DTE> Integer type. Specifies the method to be used by TE when receiving data from TA.
0 None
2 RTS flow control
<DTE_by_DCE> Integer type. Specifies the method to be used by TA when receiving data from TE.
0 None
2 CTS flow control
Example
AT+IFC=2,2 //Enable hardware flow control.
OK
AT+IFC?
+IFC: 2,2
OK
This 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>] OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 37 / 170
LPWA Module Series
V.25ter
Parameter
NOTE
1. This command is valid only in command mode.
2. The <parity> field is ignored if no parity is specified in the <format> field.
This command queries and sets UART baud rate. The specified rate takes effect following the issuance of
any result code(s) associated with the current command line.
OK
Read Command Response
AT+IPR? +IPR: <rate>
OK
Write Command Response
AT+IPR=<rate> OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 38 / 170
LPWA Module Series
Reference
V.25ter
Parameter
NOTE
1)
1. If <rate>=0, auto baud rate detection is enabled. In this case, you must send AT continuously
until successful auto baud rate lock is confirmed by OK response.
2. 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.
3. The value of AT+IPR cannot be restored with AT&F and ATZ, but it is still storable with AT&W.
4. In multiplex mode, the baud rate cannot be changed with AT+IPR=<rate>, and the setting will be
invalid and cannot be stored even if AT&W is executed after the AT+IPR=<rate>.
Example
AT+IPR=115200 //Specify the fixed baud rate as 115200 bps.
OK
AT&W //Store the current setting, i.e., keep the default baud rate per second
as 115200 bps after module resetting.
OK
AT+IPR?
+IPR: 115200
OK
AT+IPR=115200;&W //Specify the fixed baud rate as 115200 bps and store the current setting.
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 39 / 170
LPWA Module Series
If the MAIN_RI (ring indication signal) behavior is set to "always", it can be restored to being inactive with
the Execution Command. The MAIN_RI behavior is controlled by AT+QCFG. For more information, see
AT+QCFG="urc/ri/ring", AT+QCFG="urc/ri/smsincoming", and AT+QCFG="urc/ri/other" in
document [17].
Characteristics /
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 40 / 170
LPWA Module Series
OK
Write Command Response
AT+QINDCFG=<URC_type>[ If the optional parameters are omitted, return the current setting:
,<enable>[,<save_to_NVRA +QINDCFG: <URC_type>,<enable>
M>]]
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 41 / 170
LPWA Module Series
Parameter
<URC_type> String type. URC type.
"all" Main switch of all URCs. <enable> is 1 (ON) by default.
"csq" Indication of signal strength and channel bit error rate change.
<enable> is 0 (OFF) by default. If this configuration is ON,
present: +QIND: "csq",<rssi>,<ber>. For explanations of
<rssi> and <ber>, see AT+CSQ.
"smsfull" SMS storage full indication. <enable> is 0 (OFF) by default. If
this configuration is ON, present: +QIND: "smsfull",<storage>
<storage> String type. SMS storage location.
“SM” (U)SIM card
“ME” ME
"ring" RING indication. <enable> is 1 (ON) by default.
"smsincoming" Incoming message indication. <enable> is 1 (ON) by default.
Related URC list: +CMTI, +CMT, +CDS.
For more information on the URCs, see Table 30.
<enable> Integer type. Whether URC indication is enabled.
0 OFF
1 ON
<save_to_NVRAM> Integer type. Whether to save the configurations into NVRAM.
0 Do not save
1 Save
<err> Error code. See Table 28 for possible <err> values.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 42 / 170
LPWA Module Series
5 (U)SIM-Related Commands
5.1. AT+CIMI Request International Mobile Subscriber Identity (IMSI)
This 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 SIM) that is attached to
MT.
OK
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CIMI //Query IMSI number of the (U)SIM attached to MT.
460023210226023 //The IMSI number of the (U)SIM attached to MT.
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 43 / 170
LPWA Module Series
This command locks, unlocks or interrogates an MT or a network facility <fac>. Password is normally
needed to perform such actions. When querying the status of a network service (<mode>=2) the response
line for “not active” case (<status>=0) should be returned only if the service is not active for any <class>.
The command 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>[ If <mode> is not 2 and the command is executed successfully:
,<class>]] OK
OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 44 / 170
LPWA Module Series
0 Unlock
1 Lock
2 Query status
<passwd> String type. Password. This parameter can be omitted when <mode>=2.
<class> Integer type. A sum of integers each representing a class of information.
1 Voice
2 Data
4 Fax
7 All telephony except SMS
8 Short message service
16 Data circuit synchronization
32 Data circuit asynchronization
<status> Integer type. Current status of the specified <class>.
0 Not active
1 Active
Example
AT+CLCK="SC",2 //Query the status of (U)SIM card.
+CLCK: 0 //The (U)SIM card is not active.
OK
AT+CLCK="SC",1,"1234" //Lock (U)SIM card, and the password is 1234.
OK
AT+CLCK="SC",2 //Query the status of (U)SIM card.
+CLCK: 1 //The (U)SIM card is active.
OK
AT+CLCK="SC",0,"1234" //Unlock (U)SIM card, and the password is "1234" .
OK
This command sends to the MT a password that is necessary before it can be operated, or queries whether
the MT requires a password before it can be operated. The password may be (U)SIM PIN, (U)SIM PUK,
PH-SIM PIN, etc.
If the PIN is to be entered twice, the TA automatically repeats the PIN. If no PIN request is pending, no
action is taken towards MT and an error message, +CME ERROR, is returned to TE.
If the PIN required is (U)SIM PUK or (U)SIM PUK2, the second pin is required. This second pin, <newpin>,
is used to replace the old pin in the (U)SIM.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 45 / 170
LPWA Module Series
OK
Write Command Response
AT+CPIN=<pin>[,<newpin>] OK
+CPIN: READY
Characteristics /
Reference
3GPP TS 27.007
Parameter
<code> String without double quotes. Indicates whether or not a password is required.
READY MT is not pending for any password
SIM PIN MT is waiting (U)SIM PIN to be given
SIM PUK MT is waiting (U)SIM PUK to be given
SIM PIN2 MT is waiting (U)SIM PIN2 to be given
SIM PUK2 MT is waiting (U)SIM PUK2 to be given
PH-SIM PIN MT is waiting phone-to-(U)SIM card password to be given
PH-NET PIN MT is waiting network personalization password to be given
<pin> String type. Password. If the requested password is a PUK, such as (U)SIM PUK1, PH-
FSIM PUK etc., then <pin> must be followed by <newpin>.
<newpin> String type. New password required if the requested code is a PUK.
<err> Error code. See Table 28 for possible <err> values.
Example
//Enter PIN
AT+CPIN?
+CPIN: SIM PIN //Waiting (U)SIM PIN to be given
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 46 / 170
LPWA Module Series
+CPIN: READY
AT+CPIN? //PIN has already been entered
+CPIN: READY
OK
OK
AT+CPIN="26601934","1234" //Enter PUK and the new password
OK
+CPIN: READY
AT+CPIN?
+CPIN: READY //PUK has already been entered
OK
The Write Command sets a new password for the facility lock function defined by AT+CLCK.
The Test Command returns a list of pairs that present the available facilities and the maximum length of
their passwords.
OK
Write Command Response
AT+CPWD=<fac>,<oldpwd>,<newpw OK
d>
If there is an error related to ME functionality:
+CME ERROR: <err>
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 47 / 170
LPWA Module Series
ERROR
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CPIN?
+CPIN: READY
OK
AT+CPWD="SC","1234","4321" //Change (U)SIM card password to "4321".
OK
//Restart the module or re-activate the (U)SIM card.
AT+CPIN?
+CPIN: SIM PIN //Waiting (U)SIM PIN to be given.
OK
AT+CPIN="4321" //PIN must be entered to define a new password "4321".
OK
+CPIN: READY
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 48 / 170
LPWA Module Series
This 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.
Characteristics /
Reference
3GPP TS 27.007
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 49 / 170
LPWA Module Series
<sw1>/<sw2> Integer type. Information from the (U)SIM about the execution of the actual
command. These parameters are delivered to the TE in both cases, on
successful or failed execution of the command.
<response> Response of a successful completion of the command previously issued
(hexadecimal character format; see AT+CSCS). STATUS and GET
RESPONSE return data, which gives information about the current
elementary data field. The information includes the type of file and its size (see
3GPP TS 51.011). The requested data are returned after a successful READ
BINARY or READ RECORD command. <response> is not returned after a
successful UPDATE BINARY or UPDATE RECORD command.
<err> Error code. See Table 28 for possible <err> values.
This command returns the ICCID (Integrated Circuit Card Identifier) number of the (U)SIM card.
OK
Characteristics /
Parameter
Example
AT+QCCID //Query ICCID of the (U)SIM card
+QCCID: 89860025128306012474
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 50 / 170
LPWA Module Series
This command queries the number of attempts left to enter the password of (U)SIM PIN/PUK.
OK
Read Command Response
AT+QPINC? +QPINC: "SC",<PIN_counter>,<PUK_counter>
+QPINC: "P2",<PIN_counter>,<PUK_counter>
OK
Write Command Response
AT+QPINC=<facility> +QPINC: <facility>,<PIN_counter>,<PUK_counter>
OK
Characteristics /
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 51 / 170
LPWA Module Series
OK
Execution Command Response
AT+QINISTAT +QINISTAT: <status>
OK
Maximum Response Time 300 ms
Characteristics /
Parameter
<status> Integer type. Initialization status of (U)SIM card. Actual value is the sum of several of the
following three states (3 = 1 + 2 means CPIN READY & SMS initialization completed).
0 Initial state
1 CPIN READY. Operation like PIN locking/unlocking is allowed.
2 SMS DONE. SMS initialization completed.
This 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.
OK
Read Command Response
AT+QSIMDET? +QSIMDET: <enable>,<insert_level>
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 52 / 170
LPWA Module Series
Parameter
NOTE
Hot-swap function is invalid if the configured value of <insert_level> is inconsistent with hardware
design.
Example
AT+QSIMDET=1,0 //Set (U)SIM card detection pin level as low when (U)SIM card is inserted
OK
//Remove (U)SIM card
+CPIN: NOT READY
//Insert (U)SIM card and if PIN1 of the (U)SIM card is unlocked and you will get:
+CPIN: READY
This command queries (U)SIM card insertion status or determines whether (U)SIM card insertion status
report is enabled.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 53 / 170
LPWA Module Series
OK
Read Command Response
AT+QSIMSTAT? +QSIMSTAT: <enable>,<inserted_status>
OK
Write Command Response
AT+QSIMSTAT=<enable> OK
Parameter
<enable> Integer type. Enables or disables (U)SIM card insertion status report. If it is
enabled, the URC +QSIMSTAT: <enable>,<inserted_status> is reported
when (U)SIM card is removed or inserted.
0 Disable
1 Enable
<inserted_status> Integer type. (U)SIM card is inserted or removed.
0 Removed
1 Inserted
2 Unknown, before (U)SIM initialization
Example
AT+QSIMSTAT? //Query (U)SIM card insertion status
+QSIMSTAT: 0,1
OK
AT+QSIMDET=1,0
OK
AT+QSIMSTAT=1 //Enable (U)SIM card insertion status report
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,1
OK
//Remove (U)SIM card
+QSIMSTAT: 1,0 //Report on (U)SIM card insertion status: removed
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 54 / 170
LPWA Module Series
OK
//Insert (U)SIM card
+QSIMSTAT: 1,1 //Report on (U)SIM card insertion status: inserted
+CPIN: READY
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 55 / 170
LPWA Module Series
The Write Command controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1
and there is a change in the MT’s circuit mode network registration status in E-UTRAN, or unsolicited result
code +CREG: <stat>[,[<lac>],[<ci>],[<AcT>]] when <n>=2 and there is a change of the network cell in
E-UTRAN.
OK
Read Command Response
AT+CREG? +CREG: <n>,<stat>[,[<lac>],[<ci>],[<AcT>]]
OK
Write Command Response
AT+CREG[=<n>] OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 56 / 170
LPWA Module Series
This command returns the current operators and their status, and allows automatic or manual network
selection.
The Test Command returns a set of five parameters, each representing an operator present in the network.
The set consists of an integer indicating operator availability <stat>, long and short alphanumeric format
of operator's name, numeric format representation of the operator and access technology. Any of the
formats may be unavailable and should be an empty field in that case. The list of operators shall be in the
order of: home network, networks referenced in (U)SIM and other networks.
The Read Command returns the current mode and the currently selected operator. If no operator is
selected, then <format>, <oper> and <Act> are omitted.
The Write Command forces an attempt to select and register the LTE network operator. If the selected
operator is not available, no other operator shall be selected (except <mode>=4). The format of selected
operator name shall apply to further Read Commands (AT+COPS?).
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 57 / 170
LPWA Module Series
OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 58 / 170
LPWA Module Series
Example
AT+COPS=? //List all network operators present in the network.
+COPS: (1,"CHN-CT","CT","46011",8),(1,"CHINA MOBILE","CMCC","46000",9),(1,"CHN-CT","CT",
"46011",9),,(0,1,2,3,4),(0,1,2)
OK
AT+COPS? //Query the currently selected network operator
+COPS: 0,0,"CHINA MOBILE",9
OK
NOTE
AT+COPS=? scans all set bands. Scanning time depends on the number of set bands. If timeout is
less than scanning time, AT+COPS=? will return an empty list. In that case, timeout must be adjusted
with AT+QCFGEXT="copstout".
The Execution Command returns the received signal strength indication <rssi> and the channel bit error
rate <ber> from the ME.
OK
Execution Command Response
AT+CSQ +CSQ: <rssi>,<ber>
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 59 / 170
LPWA Module Series
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CSQ=?
+CSQ: (0-31,99),(0-7,99)
OK
AT+CSQ
+CSQ: 28,99 //The received signal strength is 28 (-57 dBm) and channel bit error rate is
99 (not known or not detectable).
OK
This command edits the PLMN selector with Access Technology lists in the SIM card or active application
in the UICC.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 60 / 170
LPWA Module Series
OK
OK
Write Command Response
AT+CPOL=<index>[,<format>[,<oper If the optional parameters are omitted, delete the specified
>[<GSM>,<GSM_compact>,<UTRAN> entry:
,<E-UTRAN>]]] OK
Characteristics
Reference
3GPP TS 27.007
Parameter
<index> Integer type. The order number of operator in the (U)SIM preferred operator list.
<format> Integer type. Format of operator name.
0 Long format alphanumeric <oper>
1 Short format alphanumeric <oper>
2 Numeric <oper>
<oper> String type. Operation name. <format> indicates if the format is alphanumeric or
numeric (see AT+COPS)
<GSM> Integer type. GSM access technology.
0 Access technology is not selected
1 Access technology is selected
<GSM_compact> Integer type. GSM compact access technology.
0 Access technology is not selected
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 61 / 170
LPWA Module Series
NOTE
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. <GSM>, <GSM_compact> and <UTRAN> are invalid.
This command returns the list of operator names from the MT. Each operator code <numericn> that has
an alphanumeric equivalent <alphan> in the MT memory is returned.
OK
Characteristics /
Reference
3GPP TS 27.007
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 62 / 170
LPWA Module Series
OK
Read Command Response
AT+CTZU? +CTZU: <onoff>
OK
Write Command Response
AT+CTZU=<onoff> OK
Parameter
<onoff> Integer type. Enable/disable automatic time zone update.
0 Disable automatic time zone update via NITZ
1 Enable automatic time zone update via NITZ
3 Enable automatic time zone update via NITZ and update local time to RTC
Example
AT+CTZU?
+CTZU: 0
OK
AT+CTZU=?
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 63 / 170
LPWA Module Series
+CTZU: (0,1,3)
OK
AT+CTZU=1
OK
AT+CTZU?
+CTZU: 1
OK
This command controls the setting of the UE Power Saving Mode (PSM) parameters.
OK
Read Command Response
AT+CPSMS? +CPSMS: <mode>,,,[<Requested_Periodic-TAU>],[<Req
uested_Active-Time>]
OK
Write Command Response
AT+CPSMS=[<mode>,,[,<Requested_ OK
Periodic-TAU>[,<Requested_Active-
Time>]]] If there is any other error:
ERROR
Maximum Response Time 4000 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
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
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 64 / 170
LPWA Module Series
Example
AT+CPSMS=1,,,"00000100","00001111" //Set the requested T3412 value to 40 minutes, and set the
requested T3324 value to 30 seconds.
OK
This is an extended AT command, developed by Quectel, for setting PSM parameters. A special form of
the command can be given as AT+QPSMS= (with all parameters omitted). In this form, the use of PSM is
disabled (<mode>=0) and data for all parameters in the command are removed. It is similar to AT+CPSMS.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 65 / 170
LPWA Module Series
OK
Read Command Response
AT+QPSMS? +QPSMS: <mode>,,,[<Network_Periodic-TAU>],[<Networ
k_Active-Time>]
OK
Write Command Response
AT+QPSMS=[<mode>,,[,<Requested_ OK
Periodic-TAU>[,<Requested_Active-
Time>]]] If there is any other error:
ERROR
Maximum Response Time 4000 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 66 / 170
LPWA Module Series
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 periodic-TAU and active
time specified by the network.
+QPSMS: 1,,,"86400","2"
OK
WARNING
After entering PSM, all digital logic is powered down, therefore, it is prohibited to provide any external
voltage to the module’s I/O ports that are not defined as a wake-up source. VDD_EXT pin can be used
to monitor PSM activity and control the external logic.
NOTE
If the debugging mode is enabled (AT+QCFGEXT="debug"), depending on the logging activity, the
module can refuse to enter PSM mode.
Setting
The Write Command enables or disables the PSM feature and sets the minimum threshold value of the
PSM cycle. AT+QPSMCFG= (with all parameters omitted) is the special form of the command that can
also be given. In this form, <threshold> is set to 20 and <PSM_version> is set to 2 (default values).
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 67 / 170
LPWA Module Series
OK
Read Command Response
AT+QPSMCFG? +QPSMCFG: <threshold>,<PSM_version>
OK
Write Command Response
AT+QPSMCFG=[<threshold>[,<PSM_ OK
version>]]
If there is any other error:
ERROR
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
Parameter
Example
AT+QPSMCFG=100 //Set the threshold to 100 seconds.
OK
AT+QPSMCFG? //Query the threshold value and PSM mode.
+QPSMCFG: 100,5
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 68 / 170
LPWA Module Series
This command controls the setting of the UE’s e-I-DRX (extended Idle-mode DRX) parameters.
OK
Write Command Response
AT+CEDRXS=[<mode>[,<AcT- OK
type>[,<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 300 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
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
+CEDRXP: <AcT-type>[,<Requested_eDRX_value>[,<NW-provided_eDRX_v
alue>[,<Paging_time_window>]]]
3 Disable the use of e-I-DRX and discard all parameters for e-I-DRX or, reset to the
default values
<AcT-type> Integer type. Type of access technology.
4 eMTC
5 NB-IoT
<Requested_eDRX_value> String type. Half a byte in a 4-bit format.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 69 / 170
LPWA Module Series
Bit
4 3 2 1 E-UTRAN e-I-DRX cycle
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
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
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 70 / 170
LPWA Module Series
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
Example
AT+CEDRXS=1,5,"0000" //Set the requested e-I-DRX value to 5.12 seconds.
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 71 / 170
LPWA Module Series
OK
Maximum Response Time 300 ms
Characteristics /
Reference
3GPP TS 27.007
Parameter
<AcT-type> Integer type. Type of access technology.
0 Access technology is not using e-I-DRX
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
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
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 72 / 170
LPWA Module Series
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
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
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 73 / 170
LPWA Module Series
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
This command controls the time zone change event reporting. If reporting is enabled, the MT returns the
unsolicited result code +CTZV: <tz> or +CTZE: <tz>,<dst>,<time> whenever the time zone is changed.
OK
Read Command Response
AT+CTZR? +CTZR: <reporting>
OK
Write Command Response
AT+CTZR=<reporting> OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 74 / 170
LPWA Module Series
1 Enable time zone change event reporting by unsolicited result code +CTZV: <tz>
2 Enable extended time zone and local time reporting by unsolicited result code:
+CTZE: <tz>,<dst>,<time>
<tz> String type. Represents the sum of the local time zone (difference between the local
time and GMT expressed in quarters of an hour) plus daylight saving time. The format
is "±zz", expressed as a fixed width, two-digit integer within the range -48 to +56. To
maintain a fixed width, numbers in the range -9 to +9 are expressed with a leading zero,
e.g., "-09", "+00" and "+09".
<dst> Integer type. Indicates whether <tz> includes daylight saving adjustment.
0 <tz> includes no adjustment for daylight saving time
1 <tz> includes +1 hour (equals 4 quarters in <tz>) adjustment for daylight saving
time
2 <tz> includes +2 hours (equals 8 quarters in <tz>) adjustment for daylight saving
time
<time> String type. Represents the local time. The format is "YYYY/MM/DD,hh:mm:ss",
expressed as integers representing year (YYYY), month (MM), date (DD), hour (hh),
minute (mm) and second (ss). The local time can be derived by the MT from the
information provided by the network at the time of delivery of time zone information and
will be present in the unsolicited result code for extended time zone and local time
reporting if the universal time is provided by the network.
Example
AT+CTZR=2
OK
AT+CTZR?
+CTZR: 2
OK
+CTZE: "+32",0,"2013/08/23,06:51:13"
This command indicates network information such as the access technology selected, the operator, and
the band selected.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 75 / 170
LPWA Module Series
OK
Characteristics /
Parameter
Example
AT+QNWINFO=?
OK
AT+QNWINFO
+QNWINFO: "eMTC","46011","LTE BAND 3",1850
OK
This command queries and reports the signal strength of the current service network. Regardless of
whether the MT is registered on a network or not, the command can be run to query signal strength. If the
MT is not using any service network or the service mode is uncertain, "NOSERVICE" is returned as the
query result.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 76 / 170
LPWA Module Series
OK
Execution Command Response
AT+QCSQ +QCSQ: <sysmode>,[,<value1>,<value2>,<value3>,<valu
e4>]
OK
Maximum Response Time 300 ms
Characteristics /
Parameter
<sysmode> String type. Indicates the service mode in which the MT will send an unsolicited report
about signal strength.
"NOSERVICE" No service mode
"GSM" GSM/GPRS/EDGE mode
"eMTC" eMTC mode
"NBIoT" NB-IoT mode
<value1>/ The following table lists the signal strength type corresponding to each service mode.
<value2>/
<sysmode> <value1> <value2> <value3> <value4>
<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> Integer type. GSM Received signal strength indicator (GSM RSSI).
<LTE_RSSI> Integer type. LTE Received signal strength indicator (LTE RSSI).
<LTE_RSRP> Integer type. Reference signal received power (RSRP).
<LTE_SINR> Integer type. Signal-to-interference-plus-noise-ratio (SINR). Logarithmic value of
SINR. Values are in 1/5th of a dB. Range: 0–250, which translates to -20 dB to +30
dB.
<LTE_RSRQ> Integer type. Reference signal received quality (RSRQ). Unit: dB.
Example
AT+QCSQ //Execute the command to query signal strength
+QCSQ: "eMTC",-52,-81,195,-10
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 77 / 170
LPWA Module Series
+QCSQ: "NOSERVICE","eMTC","NBIoT"
OK
This command gives details of the terminal’s perceived radio connection status. It returns an indication of
the current state. Note that this state is only updated when radio events, such as sending and receiving,
take place. This means that the current state may be out of date. The terminal may think it is "Connected"
yet cannot currently use a base station due to a change in connection quality.
OK
Read Command Response
AT+QCSCON? +QCSCON: <n>,<mode>
OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 78 / 170
LPWA Module Series
0 Idle
1 Connected
<err> Error code. See Table 28 for possible <err> values.
Example
AT+QCSCON=?
+QCSCON: (0,1)
OK
AT+QCSCON?
+QCSCON: 0,0
OK
AT+QCSCON=1
OK
AT+QIOPEN=1,0,"TCP","220.180.239.212",8433,0,1
OK
+QIOPEN: 0,0
The Execution Command returns the latest time synchronized through network.
OK
Execution Command Response
AT+QLTS +QLTS: <time>,<dst>
OK
Write Command Response
AT+QLTS=<mode> +QLTS: <time>,<dst>
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 79 / 170
LPWA Module Series
Characteristics /
Parameter
NOTE
If the time has not been synchronized through network, the command will return a null time string:
+QLTS: "".
Example
AT+QLTS=? //Query supported network time modes
+QLTS: (0-2)
OK
AT+QLTS //Query the last time synchronized through network
+QLTS: "2020/06/02,01:47:33+32,0"
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 80 / 170
LPWA Module Series
OK
AT+QLTS=0 //Query the last time synchronized through network. It offers the same function
as Execution Command AT+QLTS.
+QLTS: "2020/06/02,01:47:33+32,0"
OK
AT+QLTS=1 //Query the current GMT time calculated from the last time that has been
synchronized through network.
+QLTS: "2020/06/02,01:48:36+32,0"
OK
AT+QLTS=2 //Query the current local time calculated from the last time that has been
synchronized through network.
+QLTS: "2020/06/02,09:48:51+32,0"
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 81 / 170
LPWA Module Series
This command selects message service and returns the types of messages supported by the MT.
OK
Read Command Response
AT+CSMS? +CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command Response
AT+CSMS=<service> +CSMS: <mt>,<mo>,<bm>
OK
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 82 / 170
LPWA Module Series
Example
AT+CSMS=? //Query the type of message services supported by the module
+CSMS: (0,1)
OK
AT+CSMS=1 //Set the type of message service to 1.
+CSMS: 1,1,1
OK
AT+CSMS? //Read the current setting.
+CSMS: 1,1,1,1
OK
This command specifies the input and output formats of short messages. <mode> indicates the format of
messages used with send, list, read and write commands and unsolicited result codes resulting from
received messages.
The format of messages can be either PDU mode (entire TP data units used) or text mode (headers and
body of the messages given as separate parameters). Text mode uses the value of <chset> specified by
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 83 / 170
LPWA Module Series
AT+CSCS to inform the character set to be used in the message body in the TA-TE interface.
OK
Read Command Response
AT+CMGF? +CMGF: <mode>
OK
Write Command Response
AT+CMGF[=<mode>] OK
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, the setting is used by the same command,
but only when the length of the SMSC address is coded into the <pdu> parameter that is equal to zero.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 84 / 170
LPWA Module Series
OK
Write Command Response
AT+CSCA=<sca>[,<tosca>] OK
Parameter
<sca> Service center address. 3GPP TS 24.011 RP SC address Address-Value field in string
format. BCD numbers (or GSM 7-bit default alphabet characters) are converted to
characters of the currently selected TE character set (see AT+CSCS in 3GPP TS
27.007); the type of address is given by <tosca>.
<tosca> Type of service center address. 3GPP TS 24.011 RP SC address Type-of-Address
octet in integer format (default see <toda>).
<err> Error code. See Table 28 for possible <err> values.
Example
AT+CSCA="+8613800210500",145 //Set SMSC address
OK
AT+CSCA? //Query SMSC address
+CSCA: "+8613800210500",145
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 85 / 170
LPWA Module Series
This command selects memory storages <mem1>, <mem2> and <mem3> to be used for reading, writing,
etc.
OK
Read Command Response
AT+CPMS? +CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<t
otal2>,<mem3>,<used3>,<total3>
OK
Write Command Response
AT+CPMS=<mem1>[,<mem2>[,<mem +CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<to
3>]] tal3>
OK
Parameter
<mem1> String type. Messages to be read and deleted from this memory storage.
"SM" (U)SIM message storage
"ME" Mobile equipment message storage
"MT" The same as "ME" storage
<mem2> String type. Messages will be written and sent to this memory storage.
"SM" (U)SIM message storage
"ME" Mobile equipment message storage
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 86 / 170
LPWA Module Series
Example
AT+CPMS? //Query the current SMS message storage
+CPMS: "ME",0,23,"ME",0,23,"ME",0,23
OK
AT+CPMS="SM","SM","SM" //Set SMS message storage as "SM"
+CPMS: 0,50,0,50,0,50
OK
AT+CPMS? //Query the current SMS message storage
+CPMS: "SM",0,50,"SM",0,50,"SM",0,50
OK
This command deletes short messages from preferred message storage <mem1> (see AT+CPMS)
location <index>. If <delflag> is present and not set to 0, the ME ignores <index> and follows the rules
of <delflag> shown below.
OK
Write Command Response
AT+CMGD=<index>[,<delflag>] OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 87 / 170
LPWA Module Series
Parameter
<index> Integer type. A value in the range of location numbers supported by the associated memory.
<delflag> Integer type. Flag indicating message deletion request.
0 Delete the message specified in <index>
1 Delete all read messages from <mem1>, leaving unread messages and stored
mobile originated messages (whether sent or not) untouched
2 Delete all read messages and sent mobile originated messages from <mem1>,
leaving unread messages and unsent mobile originated messages untouched
3 Delete all read messages, sent and unsent mobile originated messages from
<mem1>, leaving unread messages untouched
4 Delete all messages from <mem1> including unread messages
<err> Error code. See Table 29 for possible <err> values.
Example
AT+CMGD=1 //Delete the message specified in <index>=1
OK
AT+CMGD=1,4 //Delete all messages from <mem1>
OK
The Write Command returns messages with status value <stat> from preferred message storage <mem1>
(see AT+CPMS) 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 without status value <stat>, it will report the list of
SMS with "REC UNREAD" status.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 88 / 170
LPWA Module Series
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>
[+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<to
oa/toda>,<length>]<CR><LF><data>
[...]]
OK
For SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<sct
s>,<dt>,<st>
[+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<sct
s>,<dt>,<st>
[...]]
OK
For SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>
[+CMGL: <index>,<stat>,<fo>,<ct>
[...]]
OK
OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 89 / 170
LPWA Module Series
[+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><p
du>
[...]]
OK
Parameter
<stat> Integer type in PDU mode, or string type in text mode. The status of message in
memory; Defined values:
PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
<index> Integer type. A value 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
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 in 3GPP
TS 27.007). The type of address is given by <tooa>.
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry
found in MT phonebook. The used character set should be the one selected with
AT+CSCS (see definition of this command in 3GPP TS 27.007).
<scts> Service center time stamp. 3GPP TS 23.040 TP-Service-Centre-Time-Stamp in time-
string format (see <dt> in AT+CMGR).
<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-
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 90 / 170
LPWA Module Series
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 91 / 170
LPWA Module Series
Example
AT+CMGF=1 //Set SMS message format as text mode
OK
AT+CMGL="ALL" //List all messages from message storage
+CMGL: 1,"STO UNSENT","",,
<This is a test from Quectel>
+CMGL: 2,"STO UNSENT","",,
<This is a test from Quectel>
OK
The Write Command returns messages with location value <index> from message storage <mem1> (see
AT+CPMS) to the TE. If status of the message is "REC UNREAD", status in the storage changes to "REC
READ".
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 92 / 170
LPWA Module Series
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
Characteristics /
Reference
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 93 / 170
LPWA Module Series
3GPP TS 27.005
Parameter
<index> Integer type. A value in the range of location numbers supported by the associated
memory.
<stat> Integer type in PDU mode, or string type in text mode. The status of message in
memory; Defined values:
PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
<alpha> String type alphanumeric representation of <da> or <oa> corresponding to the entry
found in MT phonebook. The used character set should be the one selected with
AT+CSCS (see the 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 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 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 (see <dt>).
<fo> 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.
<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 (see <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 (see AT+CSCS). The type of address is given
by <tora>.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 94 / 170
LPWA Module Series
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 95 / 170
LPWA Module Series
long hexadecimal number (e.g., an octet with integer value 42 is presented to TE as two
characters 2A (IRA 50 and 65)).
<dt> 3GPP TS 23.040 TP-Discharge-Time in time-string format: "yy/MM/dd,hh:mm:ss±zz",
where characters indicate year (two last digits), month, day, hour, minutes, seconds and
time zone, e.g., 6th of May 1994, 22:10:00 GMT+2 hours equals
"94/05/06,22:10:00+08".
<st> 3GPP TS 23.040 TP-Status in integer format.
<ct> 3GPP TS 23.040 TP-Command-Type in integer format (default 0).
<cdata> 3GPP TS 23.040 TP-Command-Data in text mode responses; ME/TA converts each 8-
bit octet 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)).
<sn> 3GPP TS 23.041 CBM Serial Number in integer format.
<mid> 3GPP TS 23.041 CBM Message Identifier in integer format.
<page> 3GPP TS 23.041 CBM Page Parameter bits 4-7 in integer format.
<pages> 3GPP TS 23.041 CBM Page Parameter bits 0-3 in integer format.
<err> Error code. See Table 29 for possible <err> values.
Example
+CMTI: "SM",3 //Indicate that a new message has been received and saved
to <index>=3 of "SM"
AT+CSDH=1
OK
AT+CMGR=3 //Read the message
+CMGR: "REC UNREAD","+8615021012496",,"13/12/13,15:06:37+32",145,4,0,0,"+861380021050
0",145,27
OK
This Write Command sends a short message from TE to the network (SMS-SUBMIT). The message
reference value <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 of status report result code.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 96 / 170
LPWA Module Series
OK
OK
Characteristics /
Reference
3GPP TS 27.005
Parameter
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 97 / 170
LPWA Module Series
Example
AT+CMGF=1 //Set SMS message format to text mode
OK
AT+CSCS="GSM" //Set character set to "GSM" that is used by the TE
OK
AT+CMGS="15021012496"
> <This is a test from Quectel> //Enter the text. Tap ctrl-Z [Hex: 1A] to send the
message.
+CMGS: 247
OK
This command controls the continuity of SMS relay protocol link. When the feature is enabled (and
supported by the network) multiple messages can be sent much faster as the link is kept open.
OK
Read Command Response
AT+CMMS? +CMMS: <n>
OK
Write Command Response
AT+CMMS=<n> OK
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 98 / 170
LPWA Module Series
Characteristics /
Reference
3GPP TS 27.005
Parameter
NOTE
After the execution of Read Command, a delay of 5–10 s is required before issuing the Write Command.
Otherwise +CMS ERROR: 500 may be returned.
This command stores a short message (either SMS-DELIVER or SMS-SUBMIT) to memory storage
<mem2> (see AT+CPMS for details), and then the memory location <index> of the stored message is
returned. The message status is set to ‘stored unsent’ by default, but the parameter <stat> allows also
other status values to be given.
BG77xA-GL&BG95xA-GL_AT_Commands_Manual 99 / 170
LPWA Module Series
OK
OK
Characteristics /
Reference
3GPP TS 27.005
Parameter
Example
AT+CMGF=1 //Set SMS message format to text mode
OK
AT+CSCS="GSM" //Set the character set used by the TE to "GSM"
OK
AT+CMGW="15021012496"
> <This is a test from Quectel> //Enter the text, and tap ctrl-Z [Hex: 1A] to transmit the
message to memory storage <mem2>.
+CMGW: 4
OK
AT+CMGF=0 //Set SMS message format to PDU mode
OK
AT+CMGW=18
> 0051FF00000008000A0500030002016D4B8BD5
+CMGW: 5
OK
This command sends a message with location value <index> from message storage <mem2> (see
AT+CPMS) to the network (SMS-SUBMIT or SMS-COMMAND). If a new destination address <da> is
given for SMS-SUBMIT, it should 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 of status report result code.
OK
OK
Characteristics /
Reference
3GPP TS 27.005
Parameter
<index> Integer type. A value 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 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.
Example
AT+CMGF=1 //Set SMS message format to text mode
OK
AT+CSCS="GSM" //Set character set to "GSM" that is used by the TE
OK
AT+CMGW="15021012496"
> Hello //Enter the text. Tap ctrl-Z [Hex: 1A] to send the message.
+CMGW: 4
OK
AT+CMSS=4 //Send the message of index 4 from memory storage.
+CMSS: 54
OK
The Write and Execution Commands confirm successful reception of a new message (SMS-DELIVER or
SMS-STATUS-REPORT) that is routed directly to the TE. If the UE does not get acknowledgement within
required time (network timeout), it sends an RP-ERROR message to the network. The UE automatically
disables routing to the TE by setting both <mt> and <ds> values of AT+CNMI to 0.
OK
Execution Command Response
AT+CNMA OK
Characteristics /
Reference
3GPP TS 27.005
Parameter
<n> Integer type. 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.
<err> Error code. See Table 29 for possible <err> values.
NOTE
The Execution and Write Commands should only be used when AT+CSMS parameter <service> is 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 //Send ACK to the network
OK
AT+CNMA
+CMS ERROR: 340 // Returned error the second time. It needs ACK only once.
This command selects the procedure on how receiving of new messages from the network is indicated to
the TE when TE is active, e.g., MAIN_DTR is at low level (ON). If TE is inactive (e.g., MAIN_DTR is at
high level (OFF)), message receiving should be done as specified in 3GPP TS 23.038.
OK
Read Command Response
AT+CNMI? +CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
Write Command Response
AT+CNMI[=<mode>[,<mt>[,<bm>[,<ds OK
>[,<bfr>]]]]]
If there is an error related to ME functionality:
+CMS ERROR: <err>
Parameter
<mode> Integer type.
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> Integer type. The rules for storing received SMs depend on its data coding scheme (refer
to 3GPP TS 23.038), preferred memory storage (AT+CPMS) setting and this value.
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 messages) 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, see
AT+CSDH).
Class 2 messages result in indication as defined in <mt>=1.
<bm> Integer type. The rules for managing the received Cell Broadcast messages (CBM).
0 No CBM indications are routed to the TE.
1 If CBM is stored into ME/TA, indication of the memory location is routed to the TE
using unsolicited result code:
+CBMI: <mem>,<index>
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> Integer type.
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); or
+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> Integer type.
0 TA buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1 or 2 is entered (OK response should be given before flushing
the codes).
1 TA buffer of unsolicited result codes defined within this command is cleared when
<mode> 1or 2 is entered.
<err> Error code. See Table 29 for possible <err> values.
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 output directly
+CBM: <length><CR><LF><pdu> Cell broadcast message is output directly
Example
AT+CMGF=1 //Set SMS message format to text mode
OK
AT+CSCS="GSM" //Set the character set used by the TE to "GSM"
OK
AT+CNMI=1,2,0,1,0 //Set SMS-DELIVERs are routed directly to the TE
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 when an SMS is incoming.
This 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
Or
ERROR
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is not saved.
Reference
3GPP TS 27.005
Parameter
<show> Integer type.
0 Do not show header values defined in commands AT+CSCA, AT+CSMP (<sca>,
<tosca>, <fo>, <vp>, <pid>, <dcs>) nor <length>, <toda> or <tooa> in +CMT,
+CMGL, +CMGR result codes for SMS-DELIVERs and SMS-SUBMITs in text mode;
for SMS-COMMANDs in +CMGR result code, do not show <pid>, <mn>, <da>,
<toda>, <length> or <cdata>.
1 Show the values in result codes.
Example
AT+CSDH=0 //Set to disable the presenting of text mode parameters
OK
AT+CMGR=2
+CMGR: "STO UNSENT" ,"",
OK
AT+CSDH=1 //Set to enable the presenting of text mode parameters
OK
AT+CMGR=2
+CMGR: "STO UNSENT","",,128,17,0,0,143,"+8613800551500",145,18
OK
This command 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> is in range 0 to 255) or define the absolute time of the validity
period termination (<vp> is a string).
OK
Write Command Response
AT+CSMP=<fo>[,<vp>[,<pid>[,<dcs>] OK
]]
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
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.
<vp> Validity period. Depending on SMS-SUBMIT <fo> setting: 3GPP TS 23.040 TP-Validity-
Period either in integer format (default 167) or in time-string format (see <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.
This command sends 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.
OK
Characteristics /
Parameter
<uid> Integer type. 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> Integer type. Sequence number of a concatenated message. Range: 0–7.
<msg_seg>=0 means: ignore the value and regard it as a non-concatenated
message.
<msg_total> Integer type. 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> See AT+CMGS.
<err> Error code. See Table 29 for possible <err> values.
NOTE
1. For concatenated messages, the maximum length is reduced by the length of the user data
header (UDH). 3GPP TS 23.040 defines two kinds of UDH lengths: 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 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 case of 16-bit UCS2 data coding scheme, the maximum length of each segment is (140 -
6) / 2 = 67 characters.
⚫ In 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.
Example
AT+CMGF=1 //Set SMS message format to text mode
OK
AT+CSCS="GSM" //Set the character set used by the TE to "GSM"
OK
AT+QCMGS="15056913384",120,1,2<CR> //Input 120 for <uid>, and send the first segment of the
concatenated SMS
>ABCD<ctrl-Z> // [Hex: 1A]
+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.
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
Characteristics /
Parameter
<index> Integer type. A value in the range of location numbers supported by the associated
memory.
<uid> Integer type. Message identification in the user data header (UDH). Range: 0–65535
(see NOTE). All segments of a same concatenated message have the same <uid>.
Different concatenated messages should have different <uid>.
<msg_seg> Integer type. Sequence number of a concatenated message. Range: 1–7.
<msg_total> Integer type. The total number of the segments of one concatenated message. Range:
2–7.
<err> Error code. See Table 29 for possible <err> values.
See AT+CMGR for other parameters.
NOTE
1. The <uid> in AT+QCMGR is different from the <uid> in AT+QCMGS. It is possible that UE
receives concatenated messages with 8-bit or 16-bit <uid>. So, its maximum value is 255 in 8-bit
and 65535 in 16-bit.
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 //Incoming first segment of a concatenated message
OK
AT+QCMGR= 4 //Read the second segment of the concatenated message
+QCMGR: "REC UNREAD","+8615056913384",,"13/07/30,14:44:37+32",120,2,2
EFGH
OK
This command attaches the MT to, or detaches the MT from, the Packet Domain service. After the
command has completed, the MT remains in V.250 command state. If the MT is already in the requested
state, the command is ignored and the OK response is 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
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CGATT=1 //Attach to PS service
OK
AT+CGATT=0 //Detach from PS service
OK
AT+CGATT? //Query the current PS service state
+CGATT: 0
OK
This 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.
This 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>,<IPv4AddrAlloc>
[…]
OK
Write Command Response
AT+CGDCONT=<cid>[,<PDP_type>[,< OK
APN>[,<PDP_addr>[,<data_comp>[,<
head_comp>[,<IPv4AddrAlloc>]]]]]] If there is any other error:
ERROR
Maximum Response Time 300 ms
The command takes effect immediately.
Characteristics
The configuration is saved automatically.
Reference
3GPP TS 27.007
Parameter
<cid> Integer type. PDP context identifier, 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 is 1) is returned by the test
form of the command. Range: 1–15.
<PDP_type> String type. The type of packet data protocol.
"IP" IPv4
"PPP" PPP
"IPV6" IPv6
"IPV4V6" IPv4v6
"Non-IP" Non-IP
<APN> String type. Access point name, 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> String type. 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 AT+CGPADDR.
<data_comp> Integer type. Controls PDP data compression (applicable for SNDCP only) (refer to
3GPP TS 44.065).
0 OFF
1 ON
2 V.42bis
<head_comp> Integer type. Controls PDP header compression (refer to 3GPP TS 44.065 and 3GPP
TS 25.323).
0 OFF
1 ON
2 RFC 1144
3 RFC 2507
4 RFC 3095
<IPv4AddrAlloc> Integer type. Controls how the MT/TA requests to get the IPv4 address information.
0 IPv4 address allocation through NAS signaling
This command activates or deactivates the specified PDP context(s). Once the command is executed, 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 are specified, the activation/deactivation form of the command activates/deactivates all defined
contexts.
OK
Read Command Response
AT+CGACT? +CGACT: <cid>,<state>
[+CGACT: <cid>,<state>
[…]]
OK
Write Command Response
AT+CGACT=<state>,<cid> OK
Or
ERROR
Characteristics /
Reference
3GPP TS 27.007
Parameter
Example
AT+CGDCONT=1,"IP","UNINET" //Define a PDP context
OK
AT+CGACT=1,1 //Activate the PDP
OK
This 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
Characteristics /
Reference
3GPP TS 27.007
Parameter
<cid> Integer type. Specifies a particular PDP context definition (see AT+CGDCONT).
<PDP_addr> String type. 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 AT+CGDCONT
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
This 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
OK
Write Command Response
AT+CGREG[=<n>] OK
Parameter
NOTE
This 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
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> Integer type.
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 should 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 to 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 to 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.
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.
Example
AT+CGEREP=?
+CGEREP: (0-2),(0,1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
This 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
Reference
3GPP TS 27.007
Parameter
This command queries the LTE network registration status and controls the presentation of an unsolicited
result code +CEREG: <stat> when <n>=1 and there is a change in the MT’s EPS network registration
status in E-UTRAN, or unsolicited result code +CEREG: <stat>[,[<tac>],[<ci>],[<AcT>]] when <n>=2 and
there is a change of the network cell in E-UTRAN.
If the UE wants to apply PSM for reducing its power consumption, see AT+CPSMS and 3GPP TS 23.682,
this command controls the presentation of an 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
Write Command Response
AT+CEREG[=<n>] OK
Or
ERROR
Parameter
9 Hardware-Related Commands
9.1. AT+QPOWD Power Down
This command powers off the module. Utilization of PON_TRIG pin is mandatory. The UE will return OK
immediately when the command is executed successfully. After setting the PON_TRIG pin to ‘low’ state,
the UE will deactivate the network, set STATUS and VDD_EXT pins low, output POWERED DOWN and
enter power-off state. The maximum time for unregistering from the network is 60 s. To avoid data loss,
the module power supply must not be disconnected before the module’s STATUS pin is set low and the
URC POWERED DOWN is output.
OK
Write Command Response
AT+QPOWD[=<n>] OK
POWERED DOWN
Maximum Response Time 300 ms
Characteristics /
Parameter
Example
AT+QPOWD //Perform normal power-down of the module
OK
PON_TRIG: OFF //Do de-assert of PON_TRIG (low)
POWERED DOWN //The module is powered off, and serial ports are not accessible
PON_TRIG: ON //Do assert of PON_TRIG (high)
PWRKEY: ON //Do assert of PWRKEY (low ~ 500 ms)
//The module will power on, transmitting the boot URCs
This command sets or 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
Read Command Response
AT+CCLK? +CCLK: <time>
OK
Write Command Response
AT+CCLK=<time> OK
Characteristics /
Reference
3GPP TS 27.007
Parameter
<time> String type. The 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 6, 1994, 22:10:00
GMT+2 hours equal “94/05/06,22:10:00+08”.
<err> Error code. See Table 28 for possible <err> values.
Example
OK
This 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
Characteristics /
Reference
3GPP TS 27.007
Parameter
OK
Read Command Response
AT+QADC=<port> +QADC: <status>,<value>
OK
Maximum Response Time 300ms
Parameter
This command controls whether to enable the UE to enter sleep mode. It is mandatory to control sleep
mode with MAIN_DTR and PON_TRIG pins.
OK
Read Command Response
AT+QSCLK? +QSCLK: <n>
OK
Parameter
NOTE
Sleep mode level 2 has lower power consumption than sleep mode level 1.
Example
AT+CFUN=0 //Switch the UE to minimum functionality mode
OK
MAIN_DTR: ON //Do assert of MAIN_DTR pin (low)
AT+QSCLK=2 //Enable sleep mode level 2
OK
MAIN_DTR: OFF //Do de-assert of MAIN_DTR (high)
PON_TRIG: OFF //Do de-assert of PON_TRIG (low)
//The module is in sleep mode, and serial ports are not accessible.
PON_TRIG: ON //Do assert of PON_TRIG (high)
MAIN_DTR: ON //Do assert of MAIN_DTR (low)
AT+QSCLK=0 //Disable sleep mode
OK
AT+CFUN=1 //Switch the UE to full functionality mode
OK
OK
Parameter
10 DFOTA-Related AT Commands
Command Description
11 FTP(S)-Related AT Commands
Command Description
12 HTTP(S)-Related AT Commands
Command Description
13 TCP/IP-Related AT Commands
Command Description
14 GNSS-Related AT Commands
Command Description
AT+QGPSADATA Query and Configure LLE data query and configure LLE data
NOTE
15 QuecLocator® AT Commands
For more information on the QuecLocator® function, see document [6].
Command Description
16 FILE-Related AT Commands
Command Description
17 MQTT-Related AT Commands
Command Description
18 CoAP-Related AT Commands
For more information on CoAP, see document [9].
Command Description
19 LwM2M-Related AT Commands
For more information on LwM2M function, see document [10].
Command Description
20 FTM-Related AT Commands
Command Description
21 PSM-Related AT Commands
Command Description
22 SSL-Related AT Commands
Command Description
23 NIDD-Related AT Commands
Command Description
24 EMUX-Related AT Commands
Command Description
25 Extended Configuration AT
Commands
For more information on the extended configuration commands, see the following two documents:
⚫ document [17]
⚫ document [18]
Command Description
26 Polte-Related AT Commands
Command Description
27 Appendix References
27.1. References
Document Name
[1] Quectel_BG770A-GL&BG95xA-GL_DFOTA_Application_Note
[2] Quectel_BG770A-GL&BG95xA-GL_FTP(S)_Application_Note
[3] Quectel_BG770A-GL&BG95xA-GL_HTTP(S)_Application_Note
[4] Quectel_BG770A-GL&BG95xA-GL_TCP(IP)_Application_Note
[5] Quectel_BG770A-GL&BG95xA-GL_GNSS_Application_Note
[6] Quectel_BG770A-GL&BG95xA-GL_QuecLocator_Application_Note
[7] Quectel_BG770A-GL&BG95xA-GL_FILE_Application_Note
[8] Quectel_BG770A-GL&BG95xA-GL_MQTT_Application_Note
[9] Quectel_BG770A-GL&BG95xA-GL_CoAP_Application_Note
[10] Quectel_BG770A-GL&BG95xA-GL_LwM2M_Application_Note
[11] Quectel_BG770A-GL&BG95xA-GL_RF_FTM_Application_Note
[12] Quectel_BG770A-GL&BG95xA-GL_PSM_Application_Note
[13] Quectel_BG770A-GL&BG95xA-GL_SSL_Application_Note
[14] Quectel_BG770A-GL&BG95xA-GL_NIDD_Application_Note
[15] Quectel_BG77xA-GL&BG95xA-GL_EMUX_Application_Note
[16] Quectel_BG770A-GL&BG95xA-GL_Network_Searching_Scheme_Introduction
[17] Quectel_BG77xA-GL&BG95xA-GL_QCFG_AT_Commands_Manual
[18] Quectel_BG77xA-GL&BG95xA-GL_QCFGEXT_AT_Commands_Manual
[19] Quectel_BG77xA-GL&BG95xA-GL_Positioning_Over_LTE_Application_Note
Abbreviation Description
HEX Hexadecimal
IP Internet Protocol
ME Mobile Equipment
MS Mobile Station
MT Mobile Termination
NITZ Network Identity and Time Zone / Network Informed Time Zone.
PA Power Amplifier
PC Personal Computer
SC Service Center
SM Session Management
TA Terminal Adapter
TE Terminal Equipment
TP Touch Panel
UE User Equipment
ATE <value> 1
ATQ <n> 0
ATS3 <n> 13
ATS4 <n> 10
ATS5 <n> 8
ATV <value> 1
AT&C <value> 1
AT&D <value> 2
AT+CREG <n> 0
AT+CMEE <n> 1
AT+CSMS <service> 0
AT+CMGF <mode> 0
AT+CSDH <show> 0
AT+CMMS <n> 0
AT+CTZR <reporting> 0
AT+CEREG <n> 0
AT+IPR <rate> No
AT+CREG <n> No
AT+CEREG <n> No
ATE <value> 1
ATQ <n> 0
ATV <value> 1
AT&C <value> 1
AT&D <value> 2
AT+CREG <n> 0
AT+CEREG <n> 0
Final result code +CME ERROR: <err> indicates an error related to mobile equipment or network. The
operation of +CME ERROR: <err> final result code is similar to the regular ERROR result code: if +CME
ERROR: <err> is the result code for any of the commands in a command line, none of the following
commands in the same command line is executed (neither ERROR nor OK result code will be returned as
a result of a completed command line execution). The format of <err> can be either numeric or verbose.
This is set with AT+CMEE.
0 phone failure
1 no connection to phone
13 SIM failure
14 SIM busy
15 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 will be returned.
The following table lists some of the <err> values used by common messaging commands.
300 ME failure
In 3GPP TS 23.038 DCS (Data Coding Scheme) defined three kinds of alphabets in SMS: GSM 7-bit
default alphabet, 8-bit data and UCS2 (16-bit). AT+CSMP can set the DCS in text mode (AT+CMGF=1).
In text mode, DCS (Data Coding Scheme) and AT+CSCS determine the way of SMS text input or output.
When DCS=GSM 7-bit, the input or output needs conversion. The detailed conversion tables are shown
below.
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
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
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
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: