Neoway N77 Commands Manual

  • Hello! I've analyzed the Neoway N77 AT Commands Manual. This document provides a comprehensive list of AT commands for controlling the N77 communication module, covering network functionalities, messaging, data transfer protocols like TCP/UDP, FTP and HTTP, SSL, MQTT, and system features. I'm ready to answer any questions you have about the N77 module’s AT commands and capabilities described in this manual!
  • How can I query the manufacturer information?
    What command is used to query the software version?
    How do I query the signal quality?
    How can I get the IMEI of the module?
AT Commands Manual
Issue 1.0 Date 2020-10-17
N77 AT Commands Manual
Copyright
Copyright © Neoway Technology Co., Ltd
ii
Copyright © Neoway Technology Co., Ltd 2020. 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 N77.
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
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iii
Contents
1 AT Syntax................................................................................................. 12
1.1 Symbols ...................................................................................................................................... 12
1.2 Description ................................................................................................................................. 12
1.3 Command Types ........................................................................................................................ 13
2 General Commands ................................................................................ 14
2.1 ATIQuerying Manufacturer Information................................................................................... 14
2.2 AT+CGMRQuerying Software Version ................................................................................... 14
2.3 AT+CSQQuerying Signal Quality ............................................................................................ 15
2.4 AT+CREGQuerying Network Registration Status .................................................................. 16
2.5 AT+CEREGQuerying EPS Network Registration Status ........................................................ 18
2.6 AT+COPSSelecting and Registering Network ........................................................................ 19
2.7 AT+CIMIQuerying IMSI ........................................................................................................... 20
2.8 AT+CGSNQuerying IMEI ........................................................................................................ 21
2.9 AT+CCIDObtaining the ICCID of the SIM Card ...................................................................... 22
2.10 AT+CGMMQuerying Module Model ...................................................................................... 23
2.11 AT+GMMQuerying Module Model ........................................................................................ 23
2.12 AT+IPRSetting Baud Rate .................................................................................................... 24
2.13 AT+CFUNSetting Module Functionality ................................................................................ 25
2.14 AT+CMUXActivating Multiplexing Mode ............................................................................... 26
2.15 AT+CCLKClock ..................................................................................................................... 27
2.16 AT+CPINEntering PIN Code ................................................................................................. 28
2.17 AT+CLCKLocking/Unlocking Module .................................................................................... 29
2.18 AT+CPWDModifying Password ............................................................................................ 31
2.19 AT+CGDCONTDefining PDP Context .................................................................................. 32
2.20 AT+XGAUTHPDP Authentication ......................................................................................... 33
2.21 AT+CGATTSetting GPRS Attach and Detach ...................................................................... 34
2.22 ATD*99#GPRS Dialing Command ........................................................................................ 36
2.23 AT+ENPWRSAVEEnabling or Disabling Sleep Mode .......................................................... 36
2.24 ATE1/ATE0Enabling & Disabling Terminal Display .............................................................. 37
2.25 AT+CNUM–Reading My Number ............................................................................................. 38
2.26 AT&WSaving the Setting ...................................................................................................... 39
3 SMS Commands ..................................................................................... 40
3.1 AT+CSMSSelecting SMS Services ........................................................................................ 40
3.2 AT+CPMSSetting Preferred SMS Storage ............................................................................. 41
3.3 AT+CMGFSetting SMS Inputting Mode .................................................................................. 42
3.4 AT+CSCSSetting TE Character Set ....................................................................................... 43
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iv
3.5 AT+CNMISetting SMS Indication Mode .................................................................................. 44
3.6 AT+CMGRReading SMS Messages ....................................................................................... 46
3.7 AT+CMGL – SMS Message List ................................................................................................ 48
3.8 AT+CMGS – Sending SMS Messages ...................................................................................... 51
3.9 AT+CMGW – Writing SMS Messages ....................................................................................... 52
3.10 AT+CMSS – Sending Messages from Storage ....................................................................... 53
3.11 AT+CMGD – Deleting SMS Messages .................................................................................... 54
3.12 AT+CSCA – Setting SMS Center Number .............................................................................. 55
3.13 AT+CSMP – Setting Text Mode Parameters ........................................................................... 56
3.14 AT+CSDH – Displaying the Parameters of the Text Mode ...................................................... 57
3.15 AT+CSASSaving the Setting ................................................................................................ 59
4 TCP/UDP Client Commands ................................................................... 60
4.1 AT+NETAPNSetting Network APN ......................................................................................... 60
4.2 AT+XISPSelecting Internal or External Protocol Stack .......................................................... 61
4.3 AT+XIICSetting Up a PPP Link ............................................................................................... 61
4.4 AT+TCPSETUPSetting Up TCP Connection .......................................................................... 62
4.5 AT+TCPSENDSending TCP Data .......................................................................................... 64
4.6 AT+RECVMODESetting Receive Mode ................................................................................. 65
4.7 AT+TCPRECVUnsolicited TCP Data Output .......................................................................... 66
4.8 +TCPREADReading TCP Data .............................................................................................. 67
4.9 AT+TCPCLOSEClosing TCP Connection .............................................................................. 68
4.10 AT+UDPSETUPSetting Up UDP Connection ....................................................................... 68
4.11 AT+UDPSENDSending UDP Data ....................................................................................... 70
4.12 AT+UDPRECVUnsolicited UDP Data Ouput ........................................................................ 71
4.13 AT+UDPREADReading UDP Data ....................................................................................... 72
4.14 AT+UDPCLOSEClosing UDP Connection ............................................................................ 73
4.15 AT+IPSTATUSQuerying TCP/UDP Socket Status ................................................................ 74
4.16 AT+TCPACKQuerying Status of Data Sent by TCP Socket ................................................. 75
5 TCP Server Commands ........................................................................... 77
5.1 AT+TCPLISTENSetting TCP Listening for the Server ............................................................ 77
5.2 AT+CLOSELISTENClosing Socket Connection ..................................................................... 78
5.3 AT+CLOSECLIENTClosing Remote Socket ........................................................................... 79
5.4 AT+TCPRECV(S)Unsolicited TCP Data Output ..................................................................... 79
5.5 AT+TCPREADSReading TCP Data ........................................................................................ 80
5.6 AT+TCPSENDSSending Data to Client .................................................................................. 81
5.7 AT+CLIENTSTATUSQuerying Client Connection Status ....................................................... 82
5.8 AT+TCPACKQuerying Status of Data Sent by TCP Server ................................................... 83
6 Transparent TCP/UDP Commands ......................................................... 85
6.1 AT+TCPTRANSSetting Up Transparent TCP Connection ..................................................... 85
6.2 AT+UDPTRANSSetting Up Transparent UDP Connection .................................................... 86
6.3 AT+TCPACKQuerying Status of Data Sent by Transparent TCP Socket ............................... 87
6.4 AT+IPSTATUSQuerying TCP/UDP Socket Status .................................................................. 88
6.5 AT+TRANSCLOSEClosing Transparent Socket..................................................................... 89
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
v
7 Transparent TCP Server Commands ...................................................... 90
7.1 AT+TCPSRVTRANSSetting Listening for Transparent TCP .................................................. 90
7.2 AT+CLIENTSTATUSQuerying Socket Status of Client ........................................................... 91
8 FTP Commands ...................................................................................... 93
8.1 AT+FTPLOGINLogging in to FTP Server ............................................................................... 93
8.2 AT+FTPLOGOUTLogging Out from FTP Server ................................................................. 94
8.3 AT+FTPGETDownloading Data from FTP Server .................................................................. 95
8.4 AT+FTPPUTUploading Data to FTP Server ........................................................................... 97
8.5 AT+FTPSTATUSQuerying FTP Link Status ............................................................................ 98
8.6 AT+FILEFTPGETDownloading Files to File System .............................................................. 99
8.7 AT+FILEFTPPUTUploading Files in the File System ........................................................... 100
8.8 +FILEFTPSTATReporting the FTP Result Status of the File System .................................. 101
9 HTTP/HTTPS Commands ..................................................................... 102
9.1 AT+HTTPPARASetting HTTP Parameters ........................................................................... 102
9.2 AT+HTTPSETUPSetting Up HTTP Connection ................................................................... 103
9.3 AT+HTTPACTION – Executing HTTP Request ....................................................................... 104
9.4 AT+HTTPCLOSEClosing an HTTP Socket .......................................................................... 107
9.5 +HTTPRECVUnsolicited HTTP Data Output ........................................................................ 108
9.6 +HTTPCLOSEDHTTP Socket Closed .................................................................................. 109
9.7 AT+FILEHTTPACTION–Sending an HTTP Request in the File System ................................... 110
9.8 AT+FILEHTTPSTAT–Reporting the HTTP Result Status of the File System ............................ 111
9.9 AT+HTTPSCFGConfiguring SSL Parameters for HTTPS ..................................................... 112
9.10 AT+HTTPSPARASetting HTTPS Parameters ..................................................................... 113
9.11 AT+HTTPSSETUPSetting up HTTPS Connection .............................................................. 114
9.12 AT+HTTPSACTIONExecuting HTTPS Request .................................................................. 115
9.13 AT+HTTPSCLOSEClosing HTTPS Socket ......................................................................... 117
9.14 AT+HTTPSRECVUnsolicited HTTPS Data Output ............................................................. 118
9.15 AT+HTTPSGETDonwnloading HTTPS File ......................................................................... 119
10 SSL TCP Data Service ........................................................................ 121
10.1 AT+SSLTCPCFGConfiguring SSL Parameters for TCP ..................................................... 121
10.2 AT+SSLTCPSETUPSetting up TCP Connection over SSL ................................................ 122
10.3 AT+SSLTCPCLOSEClosing TCP Connection over SSL .................................................... 124
10.4 AT+SSLTCPSENDSending TCP Data over SSL ................................................................ 125
10.5 AT+SSLTCPRECVUnsolicited SSLTCP Data Output ......................................................... 126
10.6 AT+SSLTCPREADReading SSLTCP Data ......................................................................... 126
10.7 AT+CERTADDWriting SSL Certificate ................................................................................ 127
10.8 AT+CERTCHECKChecking SSL Certificate ....................................................................... 128
10.9 AT+SSLTCPCFGAConfiguring SSL Parameters for TCP .................................................. 129
11 MQTT Commands ............................................................................... 131
11.1 AT+MQTTTLSConfiguring TLS Parameters ....................................................................... 131
11.2 AT+MQTTCONNPARAMSetting User Parameters ............................................................ 132
11.3 AT+MQTTWILLPARAMWill Settings .................................................................................. 133
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vi
11.4 AT+MQTTWILLMSGSetting Long Will Messages .............................................................. 134
11.5 AT+MQTTCONNConnection Command ............................................................................. 135
11.6 AT+MQTTSUBSubscription ................................................................................................ 135
11.7 AT+MQTTUNSUBUnsubscription ....................................................................................... 136
11.8 AT+MQTTPUBPublishing Topic .......................................................................................... 137
11.9 AT+MQTTPUBSPublishing Topic ....................................................................................... 138
11.10 AT+MQTTDISCONNDisconnecting to MQTT Server ....................................................... 139
11.11 AT+MQTTSUBReceiving Topic Content ........................................................................... 139
11.12 AT+MQTTSTATEQuerying MQTT Connection Status: ..................................................... 140
12 GSM Location Command .................................................................... 142
12.1 AT+CIPGSMLOCObtaining the Location of the Module ..................................................... 142
13 ADC Command .................................................................................... 144
13.1 AT$MYADCTEMPQuerying Environment Temperature ..................................................... 144
14 Time Synchronization Commands ....................................................... 145
14.1 AT+UPDATETIMEUpdating Time to Network ..................................................................... 145
15 Statistics on Data Traffic ...................................................................... 148
15.1 AT+FLOWCALCStatistics on Total Data Traffic .................................................................. 148
15.2 AT+RATECALCStatistics on Transient Traffic .................................................................... 149
16 File System Commands ...................................................................... 150
16.1 AT+FSWFWriting Data to File ............................................................................................. 150
16.2 AT+FSRFReading Data from File ....................................................................................... 151
16.3 AT+FSDFDeleting a File ..................................................................................................... 152
16.4 AT+FSLISTObtaining File List ............................................................................................ 153
16.5 AT+FSFSObtaining the Size of a File ................................................................................. 153
16.6 AT+FSLSObtaining the Remaining Storage Size of User Disk .......................................... 154
16.7 AT+FSFATFormatting User Disk ......................................................................................... 155
17 Network Sharing Commands ............................................................... 157
17.1 AT+NETSHAREACTEnabling Network Sharing ................................................................. 157
18 Other AT Commands ........................................................................... 159
18.1 AT$MYPOWEROFFPowering Off the Module ................................................................... 159
18.2 AT$MYSOCKETLEDControlling the Indicator of Socket Status ......................................... 159
18.3 AT$MYGMRObtaining the Version Information of the Module ........................................... 160
18.4 AT$MYCCIDObtaining the CCID of the SIM Card .............................................................. 161
18.5 AT$MYNETURCControlling Unsolicited Report ........................................................... 162
18.6 AT$MYTYPEQuerying the Type of the Module .................................................................. 163
18.7 AT$MYTYPE (Chongqing)Querying the Type of the Module ............................................. 164
18.8 AT$MYMODEM (Standards for Canton)Querying the Type of the Module ........................ 165
18.9 AT$MYNETCONSetting Initialization Parameters of Network Connections....................... 166
18.10 AT$MYNETACTActivating/Deactivating Network Connection .......................................... 167
18.11 AT$MYIPFILTERConfiguring IP Access ........................................................................... 168
18.12 AT$MYNETSRVSetting Parameters for Non-transparent Transmission .......................... 169
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vii
18.13 AT$MYNETOPENEnabling TCP/UDP Service ................................................................. 170
18.14 AT$MYNETREADReading Received Data ....................................................................... 172
18.15 AT$MYNETWRITESending Data ..................................................................................... 173
18.16 AT$MYNETCLOSEClosing Socket Connection ............................................................... 173
18.17 AT$MYNETACKQuerying TCPACK Information ............................................................... 174
18.18 AT$MYNETACCEPTAccepting the Listening Request ..................................................... 175
18.19 AT$MYNETCREATEEnabling Transparent Transmission Service ................................... 176
18.20 AT$MYFTPOPENStarting FTP Service ............................................................................ 178
18.21 AT$MYFTPCLOSEClosing FTP Service .......................................................................... 179
18.22 AT$MYFTPSIZEObtaining the FTP File Size ................................................................... 179
18.23 AT$MYFTPGETDownloading FTP Files ........................................................................... 180
18.24 AT$MYFTPPUTUploading Files to FTP Server ................................................................ 181
18.25 $MYURCREADIndicating Data Receiving ....................................................................... 182
18.26 $MYURCCLOSEIndicating the Disconnection ................................................................. 183
18.27 $MYURCACTIndicating Network Connection Status ....................................................... 184
18.28 $MYURCCLIENTIndicating Client Connection ................................................................. 184
18.29 $MYURCFTPIndicating FTP Disconnection ..................................................................... 185
18.30 AT$MYBCCHLocking BCCH Channel .............................................................................. 186
18.31 AT$MYBANDLocking GSM Band ..................................................................................... 188
18.32 AT$MYLACIDQuerying Current LAC and CELL_ID ......................................................... 188
18.33 AT$MYCGEDQuerying Current Channel, RX Power and TX Power ............................... 189
18.34 AT$MYSYSINFOQuerying or Locking the Network Mode ............................................... 190
18.35 AT$MYSYSINFOURCEnabling/Disabling Network Mode Report .................................... 191
18.36 AT$MYURCSYSINFOEnabling/Disabling Network Mode Report .................................... 192
18.37 $MYURCSYSINFOEnabling/Disabling Network Mode Report ........................................ 193
18.38 AT$MYNETINFO (Standards for Canton)Setting Network Mode Choices ....................... 194
18.39 AT$MYNETAUTOEnabling/Disabling the Default AUTO Network Modes during Startup 195
18.40 AT^SYSCONFIGSetting Network Mode Choices ............................................................. 196
18.41 AT^SYSINFOObtaining System Information .................................................................... 197
18.42 AT$MYTIMEUPDATENetwork Time Update .................................................................... 199
18.43 AT+NRSPQuerying RSRP, RSRQ, SINR of Cells in a Neighbor of a Serving Cell on LTE
Network .......................................................................................................................................... 201
18.44 AT$MYANTAUXControlling Divergent Antenna ................................................................ 201
18.45 AT+NETMSGQuerying Network Registration Information ................................................ 202
18.46 AT+NETMSGQuerying Network Registration Information ................................................ 204
18.47 AT+NETDMSGQuerying Network Registration Information ............................................. 206
18.48 AT+NEOFOTAFOTA Command ....................................................................................... 209
18.49 AT+MYDATAONLYDisabling CS Services ......................................................................... 211
18.50 AT+BANDLOCKLocking to Band ....................................................................................... 211
18.51 AT$MYUSBNETADDRSetting RNDIS Gateway ............................................................... 213
18.52 AT+SIMSTATUSObtaining Key Parameters of the SIM Card .......................................... 214
18.53 AT$MYNETDTSCollecting Traffic Statistics...................................................................... 214
18.54 AT+DNSSERVERSetting the DNS Server ....................................................................... 216
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
viii
18.55 AT+USBSTATEControlling the USB Status Unsolicited Report ....................................... 217
18.56 +USBSTATEURCReporting USB Connection Status ...................................................... 218
18.57 AT+READADCReading ADC Value .................................................................................. 218
Error code .............................................................................................. 220
Reference Process of AT Command Programming .............................. 221
B.1 Content of PDU SMS Messages ............................................................................................. 221
B.2 Flowchart of Sending Text SMS Messages (Through UART) ................................................. 223
B.3 Flowchart of Sending PDU SMS Messages (Through UART) ................................................ 224
Support Band List ................................................................................. 225
C.1 GSM Bands ............................................................................................................................. 225
C.2 LTE Bands ............................................................................................................................... 225
N77 AT Commands Manual
About This Document
Copyright © Neoway Technology Co., Ltd
ix
About This Document
Scope
This document is applicable to N77.
Audience
This document is intended for system engineers (SEs), development engineers, and test engineers.
Change History
Issue
Date
Changed By
1.0
2020-9
Song Haiqing
N77 AT Commands Manual
About This Document
Copyright © Neoway Technology Co., Ltd
x
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
Related Documents
Neoway_N77_Datasheet
Neoway_N77_Product_Specifications
Neoway_N77_HW_User_Guide
Neoway_N77_EVK_User_Guide
N77 AT Commands Manual
Boot LOG Instruction
Copyright © Neoway Technology Co., Ltd
11
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.
N77 AT Commands Manual
Chapter 1 AT Syntax
Copyright © Neoway Technology Co., Ltd
12
1 AT Syntax
1.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
1.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>
N77 AT Commands Manual
Chapter 1 AT Syntax
Copyright © Neoway Technology Co., Ltd
13
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 A.
1.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.
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
14
2 General Commands
2.1 ATIQuerying Manufacturer Information
To query the manufacturer information, including manufacturer, model, and version
Format
Type
Command
Response
Execute
ATI<CR>
<CR><LF><module_info>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<module_info>
module manufacturer information
Example
ATI
NEOWAY
N77
REVISION V001
OK
Manufacturer
Module model
Version
2.2 AT+CGMRQuerying Software Version
To query the software version
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
15
Format
Type
Command
Response
Execute
AT+GMR<CR>
<CR><LF>+GMR: <reversion>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
Parameter
<reversion>
software version
Example
AT+GMR
+GMR: N77_BZ-NWY-001
OK
Query the software version
2.3 AT+CSQQuerying Signal Quality
To query the receiving signal strength indication (RSSI) and bit error rate (BER) of the channel.
Format
Type
Command
Response
Execute
AT+CSQ<CR>
<CR><LF>+CSQ: <signal>,<ber>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300ms.
Parameter
<signal>
The following table shows the relationship between the CSQ and the RSSI.
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
16
signal
Rssi
0
<4 or 99
<-107 dBm or unknown
1
<10
<-93dBm
2
<16
<-71 dBm
3
<22
<-69 dBm
4
<28
<-57 dBm
5
>=28
>=-57 dBm
<ber>
0...7
Refer to the value of RXQUAL in the table of GSM 05.08 8.2.4.
99
Not known or not detectable
Example
AT+CSQ
+CSQ: 19,2
OK
Query the strength of the current signal.
2.4 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>
Or
<CR><LF>+CREG:<stat>
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: (list of supported <n>s)
<CR><LF>OK<CR><LF>
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
17
Timeout
The command times out if the module does not respond in 300ms.
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
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
Example
AT+CREG?
+CREG: 0,1
OK
Query the network registration status of the
module
The module is registered with a home network
AT+CREG=1
OK
Enable network registration unsolicited codes.
AT+CREG=?
+CREG: (0-2)
OK
Query the value range of the network
registration status parameter.
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
18
2.5 AT+CEREGQuerying EPS Network Registration
Status
To query the EPS network registration status of the module
Format
Type
Command
Response
Execute
AT+CEREG=<n><CR>
<CR><LF>OK<CR><LF>
Query
AT+CEREG?<CR>
<CR><LF>+CEREG:
<stat>[,[<tac>],[<ci>],[<AcT>][,,[,[<Active-
Time>],[<Periodic-TAU>]]]]
<CR><LF>OK<CR><LF>
Test
AT+CEREG=?<CR>
<CR><LF>+CEREG: (list of supported<n>s)
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300ms.
Parameter
<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.
2: enable network registration and location information (Cell ID, Local ID) unsolicited
result code
<stat>
Network status
0: not registered, the module is not currently searching for a new operator to register
1: registered to the home network
2: not registered, but the module is currently trying to searching for a base station
3: registration denied
4. Unknown code
5: registered, roaming
<lac>
Two-byte tracking 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
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
19
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
Example
AT+CEREG?
+CEREG: 0,1
OK
Query the network registration status of the module.
AT+CEREG=1
OK
Enable network registration unsolicited code.
AT+CEREG=?
+CEREG: (0-2)
OK
Query the value range of the network registration status
parameter.
2.6 AT+COPSSelecting and Registering Network
To select and register a network.
Format
Type
Command
Response
Execute
AT+COPS=[<mode>[,<format>[,<oper>
>[,<AcT>]]]]<CR>
<CR><LF>+GMR: <reversion>
<CR><LF>OK<CR><LF>
Query
AT+COPS?<CR>
<CR><LF>+COPS:<mode>[,<format>,<op
er>[,<AcT>]]
Test
AT+COPS=?<CR>
<CR><LF>+COPS: [list of supported
(<stat>,long alphanumeric <oper>,short
alphanumeric <oper>,numeric
<oper>[,<AcT>])s][,,(list of
supported<mode>s),(list of supported
<format>s)]<CR><LF>
<CR><LF>OK<CR><LF>
Timeout
The command times out if the module does not respond in 300 ms.
N77 AT Commands Manual
Chapter 2 General Commands
Copyright © Neoway Technology Co., Ltd
20
Parameter
<mode>
To set automatic network selection or manual selection:
0: Automatic selection (ignore the parameter <per>)
1: Manual selection
2: Deregister from the network
3: Set <format>only
4: Manual/automatic selection (if the manual selection fails, automatic mode starts)
<format>
0: Long alphanumeric <oper> (default value)
1: Short format alphanumeric <oper>
2: Numeric <oper>
<oper>
It is given in <format>. This field may be in 16-character long alphanumeric format, 8-
characters short alphanumeric format, or 5-character numeric format (MCC/MNC).
<AcT>
indicates the radio access technology and its value can be 0, 1, and 2.
0: GSM
1: GSM compact
2: UTRAN
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
Example
AT+COPS=0,0
OK
Automatic network selection is enabled. Long alphanumeric
mode.
AT+COPS=0,2
OK
Set to digital mode
AT+COPS?
+COPS: 0,0,"CHINAMOBILE",7
OK
China Mobile
AT+COPS?
+COPS: 0,2,"46000",7
OK
If it is set to digital mode, get the number 46000
AT+COPS?
+COPS: 0,0,"CHINAUNICOM",7
OK
China Unicom
AT+COPS?
+COPS: 0,2,"46001",7
OK
If it is set to digital mode, then get the number 46001.
AT+COPS=2
OK
Deregister the network.
2.7 AT+CIMIQuerying IMSI
To query the international mobile subscriber identification (IMSI).
/