Neoway N300 Commands Manual

  • Hello! I've analyzed the AT Commands Manual for the Neoway N300 module. This manual provides information on AT commands specifically for controlling and configuring the N300 module. It covers network registration, SMS messaging, TCP/UDP communication, and commands for various services such as FTP, HTTP/HTTPS and MQTT. I can help answer your questions about any specific commands or functions described in this document.
  • How do I query the software version of the module?
    How do I check the network registration status?
    How do I send an SMS message?
    How do I set up a TCP connection?
AT Commands Manual
Issue 1.0 Date 2021-03-23
N300 AT Commands Manual
Copyright
Copyright © Neoway Technology Co., Ltd
ii
Copyright © Neoway Technology Co., Ltd 2021. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Neoway Technology Co., Ltd.
is the trademark of Neoway Technology Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
This document provides guide for users to use N300.
This document is intended for system engineers (SEs), development engineers, and test engineers.
THIS GUIDE PROVIDES INSTRUCTIONS FOR CUSTOMERS TO DESIGN THEIR APPLICATIONS.
PLEASE FOLLOW THE RULES AND PARAMETERS IN THIS GUIDE TO DESIGN AND COMMISSION.
NEOWAY WILL NOT TAKE ANY RESPONSIBILITY OF BODILY HURT OR ASSET LOSS CAUSED BY
IMPROPER OPERATIONS.
THE INFORMATION IN THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE DUE TO
PRODUCT VERSION UPDATE OR OTHER REASONS.
EVERY EFFORT HAS BEEN MADE IN PREPARATION OF THIS DOCUMENT TO ENSURE ACCURACY
OF THE CONTENTS, BUT ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS
DOCUMENT DO NOT CONSTITUTE A WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
Neoway provides customers complete technical support. If you have any question, please contact your
account manager or email to the following email addresses:
Website: http://www.neoway.com
N300 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iii
Contents
1 Boot LOG Instruction ............................................................................... 10
2 AT Syntax................................................................................................. 11
2.1 Symbols ....................................................................................................................................... 11
2.2 Description .................................................................................................................................. 11
2.3 Command Types ........................................................................................................................ 12
3 General Commands ................................................................................ 13
3.1 ATIQuerying the Manufacturer Information ............................................................................ 13
3.2 AT+CGMRQuerying the Software Version ............................................................................. 14
3.3 AT+CGSNQuerying the IMEI .................................................................................................. 14
3.4 AT+CIMIQuerying the IMSI ..................................................................................................... 15
3.5 AT+CCIDObtaining the ICCID of the SIM Card ...................................................................... 16
3.6 AT+CGMMQuerying the Module Model .................................................................................. 17
4 UE Control and Status Report ................................................................. 18
4.1 AT+CREGQuerying Network Registration Status .................................................................. 18
4.2 AT+CGREGNetwork Registration ........................................................................................... 19
4.3 AT+CEREGQuerying EPS Network Registration Status ........................................................ 21
4.4 ATE1/ATE0Enabling/Disabling the Terminal Display .............................................................. 24
4.5 ATQSetting the Code Result Suppression Mode ................................................................... 25
4.6 ATVSetting the Response Format of the Device .................................................................... 26
4.7 AT&FResetting the Module to Factory Settings ...................................................................... 27
4.8 AT+CFUNSetting Module Functionality .................................................................................. 27
4.9 AT+IPRSetting Baud Rate ...................................................................................................... 28
4.10 AT+CCLKClock ..................................................................................................................... 30
4.11 AT+CPINEntering PIN Code ................................................................................................. 30
4.12 AT+CLCKLocking/Unlocking Module .................................................................................... 32
4.13 AT+CPWDModifying Password ............................................................................................ 34
4.14 CMEESetting Error Information ............................................................................................ 35
5 SMS Commands ..................................................................................... 37
5.1 AT+CSMSSelecting SMS Services ........................................................................................ 37
5.2 AT+CPMSSetting Preferred SMS Storage ............................................................................. 38
5.3 AT+CMGFSetting the SMS Inputting Mode ............................................................................ 39
5.4 AT+CSCSSetting the TE Character Set ................................................................................. 40
5.5 AT+CNMISetting SMS Indication Mode .................................................................................. 41
5.6 AT+CMGRReading SMS Messages ....................................................................................... 43
5.7 AT+CMGLSMS Message List ................................................................................................. 47
5.8 AT+CMGSSending an SMS Message .................................................................................... 50
N300 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iv
5.9 AT+CMGWWriting an SMS Message ..................................................................................... 51
5.10 AT+CMSSSending a Message in the Memory ..................................................................... 52
5.11 AT+CMGDDeleting the SMS Message ................................................................................. 53
5.12 AT+CSCASetting SMS Center Number ................................................................................ 54
5.13 AT+CSMPSetting Text Mode Parameters ............................................................................ 55
5.14 AT+CSDHDisplaying the Parameters of the Text Mode ....................................................... 56
5.15 AT+CSASSave Settings ....................................................................................................... 58
5.16 AT+SMSWHITELISTSetting the SMS Whitelist ................................................................... 58
6 Network Service ...................................................................................... 60
6.1 AT+CSQQuerying Signal Quality ............................................................................................ 60
6.2 AT+COPS – Selecting and Registering With a Network ........................................................... 61
6.3 AT+NETSTATEQuerying the Network State ........................................................................... 63
6.4 AT+CELLINFOQuerying Cell Information ............................................................................... 64
6.5 AT+NETINFOQuerying the Network Information.................................................................... 65
6.6 AT+NETCFGSetting the Network Mode ................................................................................. 66
6.7 AT+NVSETBANDSetting Frequency Band ............................................................................. 67
6.8 AT+NETSRVDOMAINSetting the Network Service Domain .................................................. 68
7 EPS Commands ...................................................................................... 70
7.1 AT+CGDCONTDefining PDP Context .................................................................................... 70
7.2 AT+XIICSetting Up a PPP Link ............................................................................................... 71
7.3 AT+CGATTAttaching and Detaching to PS ............................................................................ 72
7.4 AT+CGAUTHPDP Authentication ........................................................................................... 73
8 TCP/UDP Client Commands ................................................................... 75
8.1 AT+RECVMODESetting the Receive Mode ........................................................................... 75
8.2 AT+TCPKEEPALIVESetting Keepalive Heartbeat .................................................................. 76
8.3 AT+TCPSETUPSetting Up a TCP Connection ....................................................................... 77
8.4 AT+TCPSENDSending TCP Data .......................................................................................... 78
8.5 AT+TCPRECVUnsolicited TCP Data Output .......................................................................... 80
8.6 AT+TCPREADReading TCP Data .......................................................................................... 80
8.7 AT+TCPCLOSEClosing TCP Connection .............................................................................. 81
8.8 AT+UDPSETUPSetting Up UDP Connection ......................................................................... 82
8.9 AT+UDPSENDSending UDP Data ......................................................................................... 83
8.10 AT+UDPRECVUnsolicited UDP Data Ouput ........................................................................ 84
8.11 AT+UDPREADReading UDP Data ....................................................................................... 85
8.12 AT+UDPCLOSEClosing the UDP Connection ...................................................................... 86
8.13 AT+IPSTATUSQuerying TCP/UDP Socket Status ................................................................ 87
8.14 AT+TCPACKQuerying Status of Data Transmitted by TCP Socket ..................................... 88
9 Transparent TCP/UDP Commands ......................................................... 89
9.1 AT+TCPTRANSSetting Up a Transparent TCP Connection .................................................. 89
9.2 AT+UDPTRANSSetting Up a Transparent UDP Connection ................................................. 90
9.3 AT+IPSTATUSQuerying TCP/UDP Socket Status .................................................................. 91
9.4 AT+TRANSCLOSEClosing the Transparent Socket .............................................................. 92
N300 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
v
10 TCP Server Commands ......................................................................... 93
10.1 AT+TCPLISTENSetting TCP Listening for the Server .......................................................... 93
10.2 AT+CLOSELISTENClosing the Socket Connection ............................................................. 94
10.3 AT+CLOSECLIENTClosing Remote Socket ......................................................................... 95
10.4 +TCPRECV(S)Unsolicited TCP Data Output ....................................................................... 96
10.5 AT+TCPSENDSSending Data to the Client .......................................................................... 97
10.6 AT+TCPREADSReading TCP Data ...................................................................................... 98
11 FTP Commands ................................................................................... 100
11.1 AT+FTPLOGINLogging in to the FTP Server ..................................................................... 100
11.2 AT+FTPLOGOUTLogging Out from the FTP Server .......................................................... 101
11.3 AT+FTPSIZEObtaining File Size on FTP Server ................................................................ 102
11.4 AT+FTPGETDownloading Data from the FTP Server ........................................................ 103
11.5 AT+FTPPUTUploading Data to the FTP Server ................................................................. 104
11.6 AT+FTPSTATUSQuerying the FTP Link Status ................................................................. 105
12 Remote Upgrade Via FTP ................................................................... 107
12.1 AT+FTPGETFURCSwitching the Unsolicited Report of Download Start for FTP Upgrade 107
12.2 AT+FTPGETFFTP Upgrade ............................................................................................... 108
12.3 AT+FTPFREADReading Other Upgrade Files from the FTP Server ................................... 110
13 HTTP Commands ................................................................................. 111
13.1 AT+HTTPPARASetting HTTP Parameters .......................................................................... 111
13.2 AT+HTTPSETUPSetting Up an HTTP Connection ............................................................. 112
13.3 AT+HTTPACTIONExecuting an HTTP Request .................................................................. 113
13.4 AT+HTTPCLOSEClosing an HTTP Socket ......................................................................... 116
13.5 +HTTPRECVUnsolicited HTTP Data Output ....................................................................... 117
13.6 +HTTPCLOSEDHTTP Socket Closed ................................................................................. 118
14 HTTPS Commands ............................................................................. 119
14.1 AT+HTTPSPARASetting HTTPS Parameters ..................................................................... 119
14.2 AT+HTTPSSETUPSetting up an HTTPS Connection ........................................................ 120
14.3 AT+HTTPSACTIONExecuting an HTTPS Request ............................................................ 121
14.4 AT+HTTPSCLOSEClosing an HTTPS Socket ................................................................... 123
14.5 +HTTPSSENDUnsolicited Report of HTTPS Sending Result ........................................... 124
14.6 +HTTPSRECVUnsolicited Report of HTTPS Data Received ............................................ 125
14.7 +HTTPSCLOSEDHTTPS Socket Closed ........................................................................... 126
15 GNSS Commands ............................................................................... 127
15.1 AT+GNSSPWRGNSS Switch ............................................................................................. 127
15.2 AT+GNSSSTATEGNSS State ............................................................................................ 128
15.3 AT+GNSSFORMATConfiguring the GNSS Latitude and Longitude Output Format .......... 128
15.4 AT+GNSSNMEAObtaining NMEA Data ............................................................................. 129
15.5 AT+GNSSSELSelecting the Assist Positioning System ..................................................... 133
15.6 AT+GNSSDELDeleting the GNSS Almanac Data .............................................................. 134
16 Time Synchronization Commands ....................................................... 135
N300 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vi
16.1 AT+UPDATETIMEUpdating Time to Network ..................................................................... 135
17 GSM Location Commands .................................................................. 138
17.1 AT+CIPGSMLOCObtaining the Location of the Module ..................................................... 138
18 PSM&eDRX Commands ..................................................................... 141
18.1 AT+CPSMSSetting PSM Mode .......................................................................................... 141
18.2 AT+CEDRXSSetting eDRX Mode ...................................................................................... 143
19 MQTT Command ................................................................................. 146
19.1 AT+MQTTCONNPARAMSetting User Parameters ............................................................ 146
19.2 AT+MQTTWILLPARAMWill Settings .................................................................................. 147
19.3 AT+MQTTCONNConnection Command ............................................................................. 148
19.4 AT+MQTTSUBSubscription ................................................................................................ 149
19.5 AT+MQTTUNSUBUnsubscription ....................................................................................... 150
19.6 AT+MQTTPUBPublishing Topic .......................................................................................... 150
19.7 AT+MQTTPUBINPublishing Long Message (HEX Data) ................................................... 152
19.8 AT+MQTTDISCONNDisconnecting to the MQTT Server ................................................... 153
19.9 +MQTTSUBReceiving Topic Content ................................................................................. 153
19.10 +MQTTDISCONNEDReceiving Topic Content ................................................................. 154
19.11 AT+MQTTSTATEQuerying MQTT Connection Status ...................................................... 155
20 AlibabaCloud MQTT Commands ......................................................... 157
20.1 AT+IMQTTAUTHSetting Device Authentication .................................................................. 157
20.2 AT+IMQTTPARASetting MQTT Parameters ...................................................................... 158
20.3 AT+IMQTTCONNSetting up an MQTT Connection ............................................................ 159
20.4 AT+IMQTTDISCONNDisconnecting the MQTT Connection .............................................. 160
20.5 AT+IMQTTPUBPublishing a Message ............................................................................... 161
20.6 AT+IMQTTSUBSubscribing a Message ............................................................................. 162
20.7 AT+IMQTTUNSUBCancelling the Subscription .................................................................. 163
20.8 AT+IMQTTSTATEQuerying the MQTT Connection Status ................................................. 164
20.9 +IMQTTRCVPUBReceiving a Published Message ............................................................ 164
21 Other Commands ................................................................................ 166
21.1 AT+CPWROFFPowering Off the Module ........................................................................... 166
21.2 AT+PINGPING Test ............................................................................................................ 166
21.3 AT+DNSSERVERSetting DNS Server ............................................................................... 167
21.4 AT+SIGNALSetting Blinking Status of Signal Indicator ...................................................... 168
21.5 AT+ENPWRSAVEEnabling or Disabling Sleep Mode ........................................................ 170
21.6 AT+NWCERTADD–Adding an SSL Certificate ....................................................................... 171
21.7 AT+NWCERTADD–Deleting SSL Certificate .......................................................................... 172
21.8 AT+NWCERTINFOQuerying the SSL Certificate Information ............................................ 172
21.9 AT+NWHTTPSCFGHTTPS Configuration Parameter ........................................................ 173
21.10 AT+NEOFOTAFOTA Upgrade .......................................................................................... 175
21.11 AT+NEOFOTAURCFOTA Status Report .......................................................................... 176
21.12 AT+NSIMLOCKLocking SIM ............................................................................................. 177
Reference Process of AT Command Programming ............................... 179
N300 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vii
A.1 Content of PDU SMS Messages ............................................................................................. 179
A.2 Flowchart of Sending Text SMS Messages (Through UART) ................................................. 181
A.3 Flowchart of Sending PDU SMS Messages (Through UART) ................................................ 182
Error Codes ........................................................................................... 183
N300 AT Commands Manual
About This Document
Copyright © Neoway Technology Co., Ltd
viii
About This Document
Scope
This document is applicable to the N300 series.
Audience
This document is intended for system engineers (SEs), development engineers, and test engineers.
Change History
Issue
Date
Changed By
1.0
2021-03
Tao Wenhong
Conventions
Symbol
Indication
This warning symbol means danger. You are in a situation that could cause fatal
device damage or even bodily damage.
Means reader be careful. In this situation, you might perform an action that could
result in module or product damages.
Means note or tips for readers to use the module
N300 AT Commands Manual
About This Document
Copyright © Neoway Technology Co., Ltd
ix
Related Documents
Neoway_N300_Datasheet
Neoway_N300_Product_Specifications
Neoway_N300_HW_User_Guide
Neoway_N300_EVK_User_Guide
N300 AT Commands Manual
Chapter 1 Boot LOG Instruction
Copyright © Neoway Technology Co., Ltd
10
1 Boot LOG Instruction
The UART outputs +PBREADY after the phonebook is available.
If the module is booted in automatic baudrate detection mode, send AT 10 seconds after the module
is powered up to check if the AT function is initialized. The UART responds with OK if AT is initialized
and outputs +PBREADY after the phonebook is available.
Network indicator status
Off: No network found.
On: the module finds a network and the PDP context is not activated.
Blinks (on for 0.2 seconds and off for 1.8 seconds): the PDP context is activated successfully.
N300 AT Commands Manual
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd
11
2 AT Syntax
2.1 Symbols
<CR>: carriage return character
<LF>: linefeed character
<..>: parameter name, the angle brackets do not appear in the command line.
[..]: optional parameter, the square brackets do not appear in the command line.
: space
2.2 Description
Prefix
AT or at
Command Line
Standard commands, in compliance with 3GPP 27007, 27005and ITU-T Recommendation V.250.
Extended commands, defined by Neoway
Joint Mark
+ or $, used between the prefix and a command line
Termination Character
<CR>, i.e. 0x0D
Response Syntax
<CR><LF>response<CR><LF>
N300 AT Commands Manual
Chapter 2 AT Syntax
Copyright © Neoway Technology Co., Ltd
12
Response can be one or multiple messages.
Result Syntax
<CR><LF>OK<CR><LF> indicates that a command is executed successfully.
<CR><LF>ERROR<CR><LF> indicates that a command fails to be executed.
For the error codes, see Appendix B.
2.3 Command Types
Type
Syntax
Response
Function
Set
AT+CMD=<VALUE><CR>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Store a value or
values for later use
Execute
AT+CMD[=<VALUE>]<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Invoke a function of
the module.
Test
AT+CMD=?<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Determine the range
of parameter values
or parameter lengths
that are supported
Query
AT+CMD?<CR>
[<CR><LF>response]
<CR><LF>OK<CR><LF>
Determine the current
value or values stored
Unsolicited
report
<CR><LF>+CMD:
<VALUE><CR><LF>
N/A
Report the status
change and data
receiving
Remarks
Symbols are not displayed in AT commands. All commands comply with the rules in
this chapter.
N300 AT Commands Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd
13
3 General Commands
3.1 ATIQuerying the Manufacturer Information
To query the manufacturer information, including manufacturer, model, and version.
Format
Type
Command
Response
Execute
ATI<CR>
<CR><LF><manufacturer>
<CR><LF><module_version>
<CR><LF><soft_version>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<manufacturer>
module manufacturer
<module_version>
module model
<soft_version>
software version
Example
ATI
NEOWAY
N300
01
OK
Manufacturer
Module model
Version
N300 AT Commands Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd
14
3.2 AT+CGMRQuerying the Software Version
To query the software version
Format
Type
Command
Response
Execute
AT+CGMR<CR>
<CR><LF><version><CR><LF>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<version>
software version
Example
AT+CGMR
N300-Q01-STD-BZ-001
OK
3.3 AT+CGSNQuerying the IMEI
To query the International Mobile Equipment Identity (IMEI) of the module
Format
Type
Command
Response
Execute
AT+CGSN<CR>
<CR><LF>+CGSN: <IMEI>
<CR><LF>OK<CR><LF>
N300 AT Commands Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd
15
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<IMEI>
International Mobile Equipment Identity, a character string of 15 digits
Example
AT+CGSN
+CGSN: 355910044336974
OK
3.4 AT+CIMIQuerying the IMSI
To query the international mobile subscriber identification (IMSI)
Format
Type
Command
Response
Execute
AT+CIMI<CR>
<CR><LF><IMSI><CR><LF>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<IMSI>
International mobile subscriber identification, a character string of 15 digits that starts
with 3-bit MCC and 2-bit MNC.
It is used to authenticate the SIM card.
N300 AT Commands Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd
16
Example
AT+CIMI
460022201575463
OK
Obtain the IMSI number.
AT+CIMI
ERROR
Query the IMSI.
No SIM card is installed.
3.5 AT+CCIDObtaining the ICCID of the SIM Card
To obtain the integrated circuit card identifier (ICCID) of the SIM card
Format
Type
Command
Response
Execute
AT+CCID<CR>
<CR><LF>+CCID:<ICCID><CR><LF>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<ICCID>
SIM card ID, a string of 20 digits.
Example
AT+CCID
+CCID: 89860002190810001367
OK
Read command
AT+CCID
ERROR
Read command
The SIM card is not inserted.
N300 AT Commands Manual
Chapter 3 General Commands
Copyright © Neoway Technology Co., Ltd
17
3.6 AT+CGMMQuerying the Module Model
To query the module model
Format
Type
Command
Response
Execute
AT+CGMM<CR>
<CR><LF><model><CR><LF>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<model>
module model
Example
AT+CGMM
N300
OK
Query the product model.
N300 AT Commands Manual
Chapter 4 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
18
4 UE Control and Status Report
4.1 AT+CREGQuerying Network Registration Status
To query the network registration status of the module.
Format
Type
Command
Response
Execute
AT+CREG=[<n>]<CR>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Query
AT+CREG?<CR>
<CR><LF>+CREG: <n><stat>[,<lac>,<ci>[,<Act>]]<CR><LF>
<CR><LF>OK<CR><LF>
Test
AT+CREG=?<CR>
<CR><LF>+CREG: (value range of <n>)<CR><LF>
<CR><LF>OK<CR><LF>
Unsolicited
report
<CR><LF>+CREG: <stat>[,<lac>,<ci>[,<Act>]]<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<n>
Specifies whether to enable unsolicited result codes for network registration.
0: disable network registration unsolicited result code (default).
1: enable network registration unsolicited result code +CREG: <stat>.
2: enable network registration unsolicited result code with location information (Cell ID,
Local ID) +CREG: <stat>[,[<lac>],[<ci>],[<AcT>]]
<stat>
Network registration status
0: not registered, the module is not currently searching for an operator to register to
1: registered with a home network
2: not registered, but the module is currently trying to attach or searching for an operator
to register to
3: registration denied
N300 AT Commands Manual
Chapter 4 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
19
4. unknown code
5: registered, roaming
<lac>
Two-byte location area code in hexadecimal format, string type
<ci>
Four-byte cell ID in hexadecimal format, string type
<Act>
The access technology of the serving cell, integer type
0: GSM
1: GSM compact
2: UTRAN
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and w/HSUPA
7: E-UTRAN
8: ECGSM
9: NB-IoT
Example
AT+CREG=1
OK
Enable unsolicited codes of network registration.
AT+CREG?
+CREG: 0,1
OK
Query the network registration status of the module.
AT+CREG=?
+CREG: (0-2)
OK
Query the value range of the network registration status parameter.
4.2 AT+CGREGNetwork Registration
To control the presentation of an unsolicited result code of the module's network registration status
Format
Type
Command
Response
Set
AT+CGREG=[<n>]<CR>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Query
AT+CGREG?<CR>
<CR><LF>+CGREG: <n>,<stat>[,<lac>,<ci>
[,<Act>]]<CR><LF>
N300 AT Commands Manual
Chapter 4 UE Control and Status Report
Copyright © Neoway Technology Co., Ltd
20
Timeout
The command times out if the module does not respond in 300 ms.
Parameters
<n>
Specifies whether to enable network registration unsolicited result code
0: Disable network registration unsolicited result code (default)
1: Enable network registration unsolicited result code +CGREG: <stat>
2: Enable network registration and location information unsolicited result code
+CGREG: <stat>[,<lac>,<ci>[,<Act>]]
<stat>
GPRS registration status, integer type
0: Not registered, the module is not currently searching an operator to register to
1: Registered the home network
2: Not registered, but the module is currently trying to attach or searching an operator
to register to
3: Registration denied
4. Unknown code
5: Registered, roaming
6: the QCN file has been not imported or the QCN file is wrong.
<lac>
Two-byte location area code in hexadecimal format, string type
<ci>
Four-byte GERAN/UTRAN cell ID in hexadecimal format, string type
<Act>
The access technology of the serving cell, integer type
0: GSM
1: GSM compact
2: UTRAN
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
8: ECGSM
9: NB-IOT
<rac>
Routing Area Code, one-byte character string in hexadecimal format
0 is displayed if no proper RAC
<subAct>
0: TDD_SUBACT
<CR><LF>OK<CR><LF>
Test
AT+CGREG=?<CR>
<CR><LF>+CGREG: (list of supported
<n>s)<CR><LF>
<CR><LF>OK<CR><LF>
Unsolicited
report
<CR><LF>+CGREG: <stat>[,<lac>,<ci>[,<Act>,<rac>[,<SubAct>]]] <CR><LF>
/