Neoway N77 Commands Manual

Category
Networking
Type
Commands Manual
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 ATI–Querying Manufacturer Information................................................................................... 14
2.2 AT+CGMR–Querying Software Version ................................................................................... 14
2.3 AT+CSQ–Querying Signal Quality ............................................................................................ 15
2.4 AT+CREG–Querying Network Registration Status .................................................................. 16
2.5 AT+CEREG–Querying EPS Network Registration Status ........................................................ 18
2.6 AT+COPS–Selecting and Registering Network ........................................................................ 19
2.7 AT+CIMI–Querying IMSI ........................................................................................................... 20
2.8 AT+CGSN–Querying IMEI ........................................................................................................ 21
2.9 AT+CCID–Obtaining the ICCID of the SIM Card ...................................................................... 22
2.10 AT+CGMM–Querying Module Model ...................................................................................... 23
2.11 AT+GMM–Querying Module Model ........................................................................................ 23
2.12 AT+IPR–Setting Baud Rate .................................................................................................... 24
2.13 AT+CFUN–Setting Module Functionality ................................................................................ 25
2.14 AT+CMUX–Activating Multiplexing Mode ............................................................................... 26
2.15 AT+CCLK–Clock ..................................................................................................................... 27
2.16 AT+CPIN–Entering PIN Code ................................................................................................. 28
2.17 AT+CLCK–Locking/Unlocking Module .................................................................................... 29
2.18 AT+CPWD–Modifying Password ............................................................................................ 31
2.19 AT+CGDCONT–Defining PDP Context .................................................................................. 32
2.20 AT+XGAUTH–PDP Authentication ......................................................................................... 33
2.21 AT+CGATT–Setting GPRS Attach and Detach ...................................................................... 34
2.22 ATD*99#–GPRS Dialing Command ........................................................................................ 36
2.23 AT+ENPWRSAVE–Enabling or Disabling Sleep Mode .......................................................... 36
2.24 ATE1/ATE0–Enabling & Disabling Terminal Display .............................................................. 37
2.25 AT+CNUM–Reading My Number ............................................................................................. 38
2.26 AT&W–Saving the Setting ...................................................................................................... 39
3 SMS Commands ..................................................................................... 40
3.1 AT+CSMS–Selecting SMS Services ........................................................................................ 40
3.2 AT+CPMS–Setting Preferred SMS Storage ............................................................................. 41
3.3 AT+CMGF–Setting SMS Inputting Mode .................................................................................. 42
3.4 AT+CSCS–Setting TE Character Set ....................................................................................... 43
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
iv
3.5 AT+CNMI–Setting SMS Indication Mode .................................................................................. 44
3.6 AT+CMGR–Reading 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+CSAS–Saving the Setting ................................................................................................ 59
4 TCP/UDP Client Commands ................................................................... 60
4.1 AT+NETAPN–Setting Network APN ......................................................................................... 60
4.2 AT+XISP–Selecting Internal or External Protocol Stack .......................................................... 61
4.3 AT+XIIC–Setting Up a PPP Link ............................................................................................... 61
4.4 AT+TCPSETUP–Setting Up TCP Connection .......................................................................... 62
4.5 AT+TCPSEND–Sending TCP Data .......................................................................................... 64
4.6 AT+RECVMODE–Setting Receive Mode ................................................................................. 65
4.7 AT+TCPRECV–Unsolicited TCP Data Output .......................................................................... 66
4.8 +TCPREAD–Reading TCP Data .............................................................................................. 67
4.9 AT+TCPCLOSE–Closing TCP Connection .............................................................................. 68
4.10 AT+UDPSETUP–Setting Up UDP Connection ....................................................................... 68
4.11 AT+UDPSEND–Sending UDP Data ....................................................................................... 70
4.12 AT+UDPRECV–Unsolicited UDP Data Ouput ........................................................................ 71
4.13 AT+UDPREAD–Reading UDP Data ....................................................................................... 72
4.14 AT+UDPCLOSE–Closing UDP Connection ............................................................................ 73
4.15 AT+IPSTATUS–Querying TCP/UDP Socket Status ................................................................ 74
4.16 AT+TCPACK–Querying Status of Data Sent by TCP Socket ................................................. 75
5 TCP Server Commands ........................................................................... 77
5.1 AT+TCPLISTEN–Setting TCP Listening for the Server ............................................................ 77
5.2 AT+CLOSELISTEN–Closing Socket Connection ..................................................................... 78
5.3 AT+CLOSECLIENT–Closing Remote Socket ........................................................................... 79
5.4 AT+TCPRECV(S)–Unsolicited TCP Data Output ..................................................................... 79
5.5 AT+TCPREADS–Reading TCP Data ........................................................................................ 80
5.6 AT+TCPSENDS–Sending Data to Client .................................................................................. 81
5.7 AT+CLIENTSTATUS–Querying Client Connection Status ....................................................... 82
5.8 AT+TCPACK–Querying Status of Data Sent by TCP Server ................................................... 83
6 Transparent TCP/UDP Commands ......................................................... 85
6.1 AT+TCPTRANS–Setting Up Transparent TCP Connection ..................................................... 85
6.2 AT+UDPTRANS–Setting Up Transparent UDP Connection .................................................... 86
6.3 AT+TCPACK–Querying Status of Data Sent by Transparent TCP Socket ............................... 87
6.4 AT+IPSTATUS–Querying TCP/UDP Socket Status .................................................................. 88
6.5 AT+TRANSCLOSE–Closing Transparent Socket..................................................................... 89
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
v
7 Transparent TCP Server Commands ...................................................... 90
7.1 AT+TCPSRVTRANS–Setting Listening for Transparent TCP .................................................. 90
7.2 AT+CLIENTSTATUS–Querying Socket Status of Client ........................................................... 91
8 FTP Commands ...................................................................................... 93
8.1 AT+FTPLOGIN–Logging in to FTP Server ............................................................................... 93
8.2 AT+FTPLOGOUT–Logging Out from FTP Server ................................................................. 94
8.3 AT+FTPGET–Downloading Data from FTP Server .................................................................. 95
8.4 AT+FTPPUT–Uploading Data to FTP Server ........................................................................... 97
8.5 AT+FTPSTATUS–Querying FTP Link Status ............................................................................ 98
8.6 AT+FILEFTPGET–Downloading Files to File System .............................................................. 99
8.7 AT+FILEFTPPUT–Uploading Files in the File System ........................................................... 100
8.8 +FILEFTPSTAT–Reporting the FTP Result Status of the File System .................................. 101
9 HTTP/HTTPS Commands ..................................................................... 102
9.1 AT+HTTPPARA–Setting HTTP Parameters ........................................................................... 102
9.2 AT+HTTPSETUP–Setting Up HTTP Connection ................................................................... 103
9.3 AT+HTTPACTION – Executing HTTP Request ....................................................................... 104
9.4 AT+HTTPCLOSE–Closing an HTTP Socket .......................................................................... 107
9.5 +HTTPRECV–Unsolicited HTTP Data Output ........................................................................ 108
9.6 +HTTPCLOSED–HTTP 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+HTTPSCFG–Configuring SSL Parameters for HTTPS ..................................................... 112
9.10 AT+HTTPSPARA–Setting HTTPS Parameters ..................................................................... 113
9.11 AT+HTTPSSETUP–Setting up HTTPS Connection .............................................................. 114
9.12 AT+HTTPSACTION–Executing HTTPS Request .................................................................. 115
9.13 AT+HTTPSCLOSE–Closing HTTPS Socket ......................................................................... 117
9.14 AT+HTTPSRECV–Unsolicited HTTPS Data Output ............................................................. 118
9.15 AT+HTTPSGET–Donwnloading HTTPS File ......................................................................... 119
10 SSL TCP Data Service ........................................................................ 121
10.1 AT+SSLTCPCFG–Configuring SSL Parameters for TCP ..................................................... 121
10.2 AT+SSLTCPSETUP–Setting up TCP Connection over SSL ................................................ 122
10.3 AT+SSLTCPCLOSE–Closing TCP Connection over SSL .................................................... 124
10.4 AT+SSLTCPSEND–Sending TCP Data over SSL ................................................................ 125
10.5 AT+SSLTCPRECV–Unsolicited SSLTCP Data Output ......................................................... 126
10.6 AT+SSLTCPREAD–Reading SSLTCP Data ......................................................................... 126
10.7 AT+CERTADD–Writing SSL Certificate ................................................................................ 127
10.8 AT+CERTCHECK–Checking SSL Certificate ....................................................................... 128
10.9 AT+SSLTCPCFGA–Configuring SSL Parameters for TCP .................................................. 129
11 MQTT Commands ............................................................................... 131
11.1 AT+MQTTTLS–Configuring TLS Parameters ....................................................................... 131
11.2 AT+MQTTCONNPARAM–Setting User Parameters ............................................................ 132
11.3 AT+MQTTWILLPARAM–Will Settings .................................................................................. 133
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vi
11.4 AT+MQTTWILLMSG–Setting Long Will Messages .............................................................. 134
11.5 AT+MQTTCONN–Connection Command ............................................................................. 135
11.6 AT+MQTTSUB–Subscription ................................................................................................ 135
11.7 AT+MQTTUNSUB–Unsubscription ....................................................................................... 136
11.8 AT+MQTTPUB–Publishing Topic .......................................................................................... 137
11.9 AT+MQTTPUBS–Publishing Topic ....................................................................................... 138
11.10 AT+MQTTDISCONN–Disconnecting to MQTT Server ....................................................... 139
11.11 AT+MQTTSUB–Receiving Topic Content ........................................................................... 139
11.12 AT+MQTTSTATE–Querying MQTT Connection Status: ..................................................... 140
12 GSM Location Command .................................................................... 142
12.1 AT+CIPGSMLOC–Obtaining the Location of the Module ..................................................... 142
13 ADC Command .................................................................................... 144
13.1 AT$MYADCTEMP–Querying Environment Temperature ..................................................... 144
14 Time Synchronization Commands ....................................................... 145
14.1 AT+UPDATETIME–Updating Time to Network ..................................................................... 145
15 Statistics on Data Traffic ...................................................................... 148
15.1 AT+FLOWCALC–Statistics on Total Data Traffic .................................................................. 148
15.2 AT+RATECALC–Statistics on Transient Traffic .................................................................... 149
16 File System Commands ...................................................................... 150
16.1 AT+FSWF–Writing Data to File ............................................................................................. 150
16.2 AT+FSRF–Reading Data from File ....................................................................................... 151
16.3 AT+FSDF–Deleting a File ..................................................................................................... 152
16.4 AT+FSLIST–Obtaining File List ............................................................................................ 153
16.5 AT+FSFS–Obtaining the Size of a File ................................................................................. 153
16.6 AT+FSLS–Obtaining the Remaining Storage Size of User Disk .......................................... 154
16.7 AT+FSFAT–Formatting User Disk ......................................................................................... 155
17 Network Sharing Commands ............................................................... 157
17.1 AT+NETSHAREACT–Enabling Network Sharing ................................................................. 157
18 Other AT Commands ........................................................................... 159
18.1 AT$MYPOWEROFF–Powering Off the Module ................................................................... 159
18.2 AT$MYSOCKETLED–Controlling the Indicator of Socket Status ......................................... 159
18.3 AT$MYGMR–Obtaining the Version Information of the Module ........................................... 160
18.4 AT$MYCCID–Obtaining the CCID of the SIM Card .............................................................. 161
18.5 AT$MYNETURC–Controlling Unsolicited Report ........................................................... 162
18.6 AT$MYTYPE–Querying 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$MYNETCON–Setting Initialization Parameters of Network Connections....................... 166
18.10 AT$MYNETACT–Activating/Deactivating Network Connection .......................................... 167
18.11 AT$MYIPFILTER–Configuring IP Access ........................................................................... 168
18.12 AT$MYNETSRV–Setting Parameters for Non-transparent Transmission .......................... 169
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
vii
18.13 AT$MYNETOPEN–Enabling TCP/UDP Service ................................................................. 170
18.14 AT$MYNETREAD–Reading Received Data ....................................................................... 172
18.15 AT$MYNETWRITE–Sending Data ..................................................................................... 173
18.16 AT$MYNETCLOSE–Closing Socket Connection ............................................................... 173
18.17 AT$MYNETACK–Querying TCPACK Information ............................................................... 174
18.18 AT$MYNETACCEPT–Accepting the Listening Request ..................................................... 175
18.19 AT$MYNETCREATE–Enabling Transparent Transmission Service ................................... 176
18.20 AT$MYFTPOPEN–Starting FTP Service ............................................................................ 178
18.21 AT$MYFTPCLOSE–Closing FTP Service .......................................................................... 179
18.22 AT$MYFTPSIZE–Obtaining the FTP File Size ................................................................... 179
18.23 AT$MYFTPGET–Downloading FTP Files ........................................................................... 180
18.24 AT$MYFTPPUT–Uploading Files to FTP Server ................................................................ 181
18.25 $MYURCREAD–Indicating Data Receiving ....................................................................... 182
18.26 $MYURCCLOSE–Indicating the Disconnection ................................................................. 183
18.27 $MYURCACT–Indicating Network Connection Status ....................................................... 184
18.28 $MYURCCLIENT–Indicating Client Connection ................................................................. 184
18.29 $MYURCFTP–Indicating FTP Disconnection ..................................................................... 185
18.30 AT$MYBCCH–Locking BCCH Channel .............................................................................. 186
18.31 AT$MYBAND–Locking GSM Band ..................................................................................... 188
18.32 AT$MYLACID–Querying Current LAC and CELL_ID ......................................................... 188
18.33 AT$MYCGED–Querying Current Channel, RX Power and TX Power ............................... 189
18.34 AT$MYSYSINFO–Querying or Locking the Network Mode ............................................... 190
18.35 AT$MYSYSINFOURC–Enabling/Disabling Network Mode Report .................................... 191
18.36 AT$MYURCSYSINFO–Enabling/Disabling Network Mode Report .................................... 192
18.37 $MYURCSYSINFO–Enabling/Disabling Network Mode Report ........................................ 193
18.38 AT$MYNETINFO (Standards for Canton)–Setting Network Mode Choices ....................... 194
18.39 AT$MYNETAUTO–Enabling/Disabling the Default AUTO Network Modes during Startup 195
18.40 AT^SYSCONFIG–Setting Network Mode Choices ............................................................. 196
18.41 AT^SYSINFO–Obtaining System Information .................................................................... 197
18.42 AT$MYTIMEUPDATE–Network Time Update .................................................................... 199
18.43 AT+NRSP–Querying RSRP, RSRQ, SINR of Cells in a Neighbor of a Serving Cell on LTE
Network .......................................................................................................................................... 201
18.44 AT$MYANTAUX–Controlling Divergent Antenna ................................................................ 201
18.45 AT+NETMSG–Querying Network Registration Information ................................................ 202
18.46 AT+NETMSG–Querying Network Registration Information ................................................ 204
18.47 AT+NETDMSG–Querying Network Registration Information ............................................. 206
18.48 AT+NEOFOTA–FOTA Command ....................................................................................... 209
18.49 AT+MYDATAONLY–Disabling CS Services ......................................................................... 211
18.50 AT+BANDLOCK–Locking to Band ....................................................................................... 211
18.51 AT$MYUSBNETADDR–Setting RNDIS Gateway ............................................................... 213
18.52 AT+SIMSTATUS–Obtaining Key Parameters of the SIM Card .......................................... 214
18.53 AT$MYNETDTS–Collecting Traffic Statistics...................................................................... 214
18.54 AT+DNSSERVER–Setting the DNS Server ....................................................................... 216
N77 AT Commands Manual
Contents
Copyright © Neoway Technology Co., Ltd
viii
18.55 AT+USBSTATE–Controlling the USB Status Unsolicited Report ....................................... 217
18.56 +USBSTATEURC–Reporting USB Connection Status ...................................................... 218
18.57 AT+READADC–Reading 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 ATI–Querying 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+CGMR–Querying 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+CSQ–Querying 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+CREG–Querying 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+CEREG–Querying 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+COPS–Selecting 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+CIMI–Querying IMSI
To query the international mobile subscriber identification (IMSI).
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226

Neoway N77 Commands Manual

Category
Networking
Type
Commands Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI