Neoway N11 V2 At Command Manual

Type
At Command Manual
N11 V2
AT Command Manual
Issue 1.0
Date 2018-10-19
Neoway Product Document
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
i
Copyright © Neoway Technology Co., Ltd 2018. 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 N11 V2.
This document is intended for system engineers (SEs), development engineers, and test engineers.
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
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
ii
Contents
About This Document ...................................................................................vi
Scope ................................................................................................................................................. vi
Audience ............................................................................................................................................ vi
Change History ................................................................................................................................... vi
Conventions ....................................................................................................................................... vi
Related Documents ........................................................................................................................... vii
Boot LOG Instruction .................................................................................... 1
1 General Commands .................................................................................. 2
1.1 Querying the Manufacturer: ATI ................................................................................................... 2
1.2 Querying the Version: +CGMR .................................................................................................... 2
1.3 Querying IMEI: +CGSN ................................................................................................................ 3
1.4 Querying the IMSI: +CIMI ............................................................................................................ 3
1.5 Obtaining the ICCID of the SIM Card: +CCID .............................................................................. 4
1.6 Querying the Version: +GMR ....................................................................................................... 4
1.7 Querying the Module Model: +CGMM ......................................................................................... 5
1.8 Querying the Manufacturer: +CGMI ............................................................................................. 5
1.9 Setting the Signal Indicator Status: +SIGNAL ............................................................................. 5
2 Mobile Device Control and Status Report ................................................. 8
2.1 Querying the Module Status: +CPAS ........................................................................................... 8
2.2 Querying the Network Registration Status: +CREG .................................................................... 9
2.3 GPRS Network Registration: +CGREG ..................................................................................... 10
2.4 Enabling & Disabling the Terminal Display: ATE1/ATE0 ............................................................ 12
2.5 Setting the Code Result Suppression Mode: ATQ ..................................................................... 13
2.6 Setting the Response Format of the Device: ATV ...................................................................... 13
2.7 Resetting to the Default Setting: ATZ ......................................................................................... 14
2.8 Saving Parameter Settings: AT&W ............................................................................................ 15
2.9 Resetting the Module to Factory Settings: AT&F ....................................................................... 15
2.10 Activating Multiplexing Mode: +CMUX ..................................................................................... 16
2.11 Setting Module Function: +CFUN ............................................................................................ 18
2.12 Enabling or Disabling the Sleep Mode: +ENPWRSAVE .......................................................... 19
2.13 Setting the Baud rate of the Module: +IPR .............................................................................. 20
2.14 Entering the PIN Codes: +CPIN ............................................................................................... 20
2.15 Clock: +CCLK ........................................................................................................................... 22
2.16 Enabling PIN and Querying MT and Network Device: +CLCK ................................................ 22
2.17 Modifying the Password of the PIN: +CPWD ........................................................................... 24
3 Network Service Commands ................................................................... 25
3.1 Querying Signal Quality: +CSQ ................................................................................................. 25
3.2 Selecting and Registering a GSM Network: +COPS ................................................................. 26
3.3 Querying Base Station Information: +POSI ............................................................................... 27
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
iii
4 GPRS Commands ................................................................................... 29
4.1 Setting PDP Format: CGDCONT ............................................................................................... 29
4.2 Sending USSD Data: +CUSD .................................................................................................... 30
4.3 Switching Data Mode to Command Mode: +++ ......................................................................... 31
4.4 Switching Command Mode to Data Mode: ATO ........................................................................ 32
4.5 Setting Network APN: +NETAPN ............................................................................................... 32
4.6 Setting Up a PPP Link: +XIIC .................................................................................................... 33
4.7 Setting GPRS Attach and Detach: +CGATT .............................................................................. 34
5 SMS Commands ..................................................................................... 36
5.1 Setting Preferred SMS Storage: +CPMS ................................................................................... 36
5.2 Setting SMS Inputting Mode: +CMGF ........................................................................................ 37
5.3 Setting the TE Character Set: +CSCS ....................................................................................... 38
5.4 Setting the SMS Indication Mode: +CNMI ................................................................................. 38
5.5 Reading SMS Messages: +CMGR ............................................................................................ 40
5.6 SMS Message List: +CMGL ....................................................................................................... 42
5.7 Sending SMS Messages:+CMGS .............................................................................................. 45
5.8 Writing SMS Messages:+CMGW ............................................................................................... 46
5.9 Sending Stored SMS Messages:+CMSS................................................................................... 47
5.10 Delete SMS messages: +CMGD ............................................................................................. 48
5.11 Setting the SMS Center Number: +CSCA ............................................................................... 49
5.12 Setting the Parameters of the Text Mode: +CSMP .................................................................. 49
5.13 Displaying the Parameters of the Text Mode: +CSDH ............................................................. 50
5.14 Selecting the Type of Cell Broadcast Messages: +CSCB ....................................................... 51
6 Phonebook Commands ........................................................................... 53
6.1 Selecting Phonebook Storage:+CPBS ....................................................................................... 53
6.2 Reading the Phonebook: +CPBR .............................................................................................. 54
6.3 Querying the Phonebook: +CPBF .............................................................................................. 55
6.4 Writing Information to the Phonebook: +CPBW ......................................................................... 56
6.5 Reading My Number:+CNUM .................................................................................................... 56
7 TCP Data Service .................................................................................... 58
7.1 Setting Up TCP Link: +TCPSETUP ........................................................................................... 58
7.2 Sending TCP Data: +TCPSEND ................................................................................................ 59
7.3 Receiving TCP Data: +TCPRECV ............................................................................................. 60
7.4 Closing TCP Link: +TCPCLOSE ................................................................................................ 60
7.5 Querying TCP/UDP Link Status: +IPSTATUS ............................................................................ 61
7.6 Querying the Status of Data Sent by the TCP Link: +TCPACK ................................................. 62
7.7 Setting Data TX/RX Type: +DATAFORMAT ............................................................................... 63
8 UDP Data Service ................................................................................... 65
8.1 Setting Up UDP Link: +UDPSETUP .......................................................................................... 65
8.2 Sending UDP Data: +UDPSEND ............................................................................................... 66
8.3 Receiving UDP Data: +UDPRECV ............................................................................................ 67
8.4 Reading UDP Data: +UDPREAD ............................................................................................... 67
8.5 Closing UDP Link: +UDPCLOSE ............................................................................................... 68
9 Transparent Mode ................................................................................... 69
9.1 Setting Up Transparent TCP Link: +TCPTRANS ....................................................................... 69
9.2 Setting Up Transparent UDP Link: +UDPTRANS ...................................................................... 70
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
iv
9.3 Closing a Transparent Link: +TRANSCLOSE ............................................................................ 71
10 TCP Server AT Commands.................................................................... 72
10.1 Setting TCP Listening for the Server: +TCPLISTEN ................................................................ 72
10.2 Closing the Listening Connection: +CLOSELISTEN ............................................................... 73
10.3 Closing Connections with the Client: +CLOSECLIENT ........................................................... 73
10.4 Receiving Data from the Client: +TCPRECV(S) ...................................................................... 74
10.5 Sending Data to the Client: +TCPSENDS ............................................................................... 74
11 Unlimited UDP Server AT Commands ................................................... 76
11.1 Setting UDP Listening for Server: +FUDPLISTEN .................................................................. 76
11.2 Receiving Data from the Client: +FUDPRECV(S) ................................................................... 77
11.3 Sending Data to the Client: +FUDPSENDS ............................................................................. 77
11.4 Closing Listening for UDP Server: +CLOSEFUDPLISTEN ..................................................... 78
12 FTP AT Commands ............................................................................... 79
12.1 Logging In to the FTP Server: +FTPLOGIN ............................................................................. 79
12.2 Logging Out from the FTP Server: +FTPLOGOUT .................................................................. 80
12.3 Downloading Data from the FTP Server: +FTPGET ................................................................ 81
12.4 Uploading Data to the FTP Server: +FTPPUT ......................................................................... 83
12.5 Querying FTP Link Status: +FTPSTATUS ............................................................................... 85
13 HTTP Commands .................................................................................. 86
13.1 Setting HTTP Parameters:+HTTPPARA .................................................................................. 86
13.2 Setting Up HTTP Link:+HTTPSETUP ...................................................................................... 87
13.3 HTTP Request:+HTTPACTION ................................................................................................ 87
13.4 Closing HTTP Link: +HTTPCLOSE ......................................................................................... 91
13.5 Receiving HTTP Data: +HTTPRECV ....................................................................................... 91
13.6 HTTP Link Closing: +HTTPCLOSED ....................................................................................... 92
14 HTTPS Commands ............................................................................... 93
14.1 Setting HTTPS Parameters: +HTTPSPARA ............................................................................ 93
14.2 Setting Up HTTPS Link: +HTTPSSETUP ................................................................................ 94
14.3 HTTPS Request: +HTTPSACTION ......................................................................................... 94
14.4 Closing HTTPS Link: +HTTPSCLOSE ..................................................................................... 97
14.5 HTTPS Link Closed Report: +HTTPSCLOSED ....................................................................... 97
15 MQTT Command ................................................................................... 98
15.1 User Parameter Settings: +MQTTCONNPARAM .................................................................... 98
15.2 Will Settings: +MQTTWILLPARAM .......................................................................................... 98
15.3 Connection Command: +MQTTCONN .................................................................................... 99
15.4 Subscription: +MQTTSUB ........................................................................................................ 99
15.5 Unsubscription: +MQTTUNSUB ............................................................................................ 100
15.6 Topic Publish: +MQTTPUB .................................................................................................... 100
15.7 Disconnecting to the MQTT Server: +MQTTDISCONN ......................................................... 101
15.8 Receiving Topic Content: +MQTTSUB ................................................................................... 101
15.9 Querying MQTT Connection Status: +MQTTSTATE ............................................................. 101
15.10 Setting MQTT Mode: +MQTTMODE .................................................................................... 102
15.11 Setting MQTT Parameters: +MQTTCFG ............................................................................. 103
16 Ali MQTT Command ............................................................................ 104
16.1 Setting MQTT Mode: +IMQTTMODE ..................................................................................... 104
16.2 Setting Device Authentication: +IMQTTAUTH ....................................................................... 104
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
v
16.3 Setting MQTT Parameters: +IMQTTPARA ............................................................................ 105
16.4 Setting up MQTT Connection: +IMQTTCONN ....................................................................... 105
16.5 Publishing a Message: +IMQTTPUB ..................................................................................... 106
16.6 Subscribing a Message: +IMQTTSUB ................................................................................... 107
16.7 Unsubscribing a Message: +IMQTTUNSUB .......................................................................... 108
16.8 Receiving Publish Message: +IMQTTRCVPUB .................................................................... 108
16.9 Querying MQTT Connection Status: +IMQTTSTATE ............................................................ 109
16.10 Disconnecting to the MQTT Server: +IMQTTCONN ............................................................. 110
17 File System Commands ....................................................................... 111
17.1 Writing Data to File: +FSWF ................................................................................................... 111
17.2 Reading Data from File: FSRF ................................................................................................ 112
17.3 Obtain the Size of a File: +FSFS ............................................................................................ 113
17.4 Deleting a File: +FSDF ............................................................................................................ 113
18 Standard Extended AT Commands ..................................................... 114
18.1 Shutting Down the Module: +CPWROFF ............................................................................... 114
18.2 Updating Time:+UPDATETIME ............................................................................................... 114
18.3 Querying the IP Address: +DNS ............................................................................................. 117
18.4 Ping Function: +PING ............................................................................................................. 117
18.5 Obtaining the Location of the Module: +CIPGSMLOC ........................................................... 119
18.6 Updating BS Time: +GLTS ..................................................................................................... 120
A Reference Process of AT Command Programming ............................... 122
A.1 Content of PDU SMS Messages ............................................................................................. 122
A.2 Flowchart of Sending Text SMS Messages (Through UART) ................................................. 124
A.3 Flowchart of Sending PDU SMS Messages (Through UART) ................................................ 125
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
vi
About This Document
Scope
This document is applicable to N11 V2 series.
Audience
This document is intended for system engineers (SEs), development engineers, and test engineers.
Change History
Issue
Date
Change
1.0
2018-09
Initial draft
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
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
vii
Related Documents
Neoway_N11_Datasheet
Neoway_N11_Product_Specifications
Neoway_N11_AT_Hardware_User_Guide
Neoway_N11_EVK_User_Guide
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
1
Boot LOG Instruction
The default baud rate of the module is in automatic detection. The mobile terminal (MT) sends AT\r in
accordance with the standard baud rate (9600bps, 19200bps, 38400bps, 57600bps, and
115200bps), and the module will automatically detect the baud rate. Before users power on the
module again, it accomplishes UART communications at the automatically detected baud rate. To
change the original baud rate during communication, set a new baud rate for the module on the MT.
Then the MT will change its transmitting baud rate.
If users send AT+IPR to the module to set the baud rate to a certain value, the module cannot
automatically detect a baud rate unless users run the command AT+IPR=0\r.
After the module is started, send AT\r to the UART1 of the module. The module returns AT
characters, indicating that the baud rate matches successfully. Send AT\r to the UART again and the
module will return OK. Then, the module is ready to execute AT commands.
Boot log in fixed baud rate mode:
\r\nMODEM:STARTUP\r\n is output, indicating that the module is initialized.
\r\n+PBREADY\r\n is outpu, indicating that the phonebook is ready.
Boot log in automatic baud rate detection
The module will not output any boot log before an AT command is input because the baud rate is
unknown.
\r\nMODEM:STARTUP\r\n is output if users enter AT/r before starting the module and
\r\n+PBREADY\r\n is output after the phonebook is ready.
Only \r\n+PBREADY\r\n is output after the phonebook is ready if users enter AT/r after starting
the module.
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
2
1 General Commands
1.1 Querying the Manufacturer: ATI
Description
To query the manufacturer information, including manufacturer, model and version.
Format
ATI<CR>
Parameter
N/A
Return Value
<CR><LF><module_info>
<CR><LF>OK<CR><LF>
<module_info>: Module manufacturer information
Example
ATI
NEOWAY
N11 V2
REVISION V001
OK
Remark
N/A
1.2 Querying the Version: +CGMR
Description
To query the software version
Format
AT+CGMR<CR>
Parameter
N/A
Return Value
<CR><LF>+CGMR:<version>
<CR><LF>OK<CR><LF>
Example
AT+CGMR
+CGMR: N11_1167_SQS63002_V001
OK
Remark
N/A
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
3
1.3 Querying IMEI: +CGSN
Description
To query the International Mobile Equipment Identity (IMEI) number of the module
Format
AT+CGSN<CR>
Parameter
N/A
Return Value
<CR><LF><IMEI>
<CR><LF>OK<CR><LF>
Example
AT+CGSN
+CGSN: 355910044336974
OK
Remark
The IMEI is a character string of 15 digits.
1.4 Querying the IMSI: +CIMI
Description
To query the international mobile subscriber identification (IMSI) number
Format
AT+CIMI<CR>
Parameter
N/A
Return Value
<CR><LF><IMSI><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
Example
AT+CIMI
+CIMI: 460022201575463
OK
Query the IMSI.
IMSI:460022201575463
AT+CIMI
ERROR
No SIM card is installed, so the module
returns ERROR.
Remark
IMSI is a character string of 15 digits and starts with 3-bit MCC and 2-bit MNC. It is
used to authenticate the SIM card.
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
4
1.5 Obtaining the ICCID of the SIM Card: +CCID
Description
To obtain the integrated circuit card identifier (ICCID) number of the SIM card
Format
AT+CCID<CR>
Parameter
N/A
Return Value
<CR><LF>+CCID:<ICCID>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Example
AT+CCID
+CCID:89860002190810001367
OK
Read command
AT+CCID
ERROR
If no SIM card is installed,
ERROR is returned.
Remark
The ICCID number is a character string of 20 digits.
1.6 Querying the Version: +GMR
Description
To obtain the module software version information
Format
AT+GMR<CR>
Parameter
N/A
Return Value
<CR><LF>+GMR: <revision>
<CR><LF>OK<CR><LF>
<revision>: Module software version
Example
AT+GMR
+GMR: N11_1167_SQS63002_V001
OK
Remark
N/A
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
5
1.7 Querying the Module Model: +CGMM
Description
To query the module model
Format
AT+CGMM<CR>
Parameter
N/A
Return Value
<CR><LF>+CGMM:<model>
<CR><LF>OK<CR><LF>
Example
AT+CGMM
+CGMM: N11 V2
OK
Remark
N/A
1.8 Querying the Manufacturer: +CGMI
Description
To query the manufacturer information
Format
AT+CGMI<CR>
Parameter
N/A
Return Value
<CR><LF>+CGMI:<manufacturer>
<CR><LF>OK<CR><LF>
Example
AT+CGMI
+CGMI: Neoway Corp Ltd
OK
Remark
N/A
1.9 Setting the Signal Indicator Status: +SIGNAL
Description
To set the different blinking status of the signal indicator
Format
AT+SIGNAL=<value><CR>
AT+SIGNAL?<CR>
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
6
AT+SIGNAL=?<CR>
Parameter
<value>: Integers, ranging from 0 to 7
0: Blink once every second in normal situation. Being off or on if any abnormality
occurs.
1: Blink once every second after the module is connected to the GPRS data service.
Being off in any other situations.
2: Flash and blink. Flash every 250 ms for the GPRS data service and blink every
second in other normal situations.
3: Be on after the GPRS data service is connected and blink every second in other
situations.
4: Be on after the GPRS data service is connected and being off in other situations.
5: Be off if the SIM card cannot be detected after the module is powered on, blink
every second if the SIM card is detected, and be on after the GPRS data service is
connected.
6: Four indicator states:
If no SIM card is installed or the SIM card does not register network, the
indicator blinks every one second and is on for 0.1 second.
If the SIM card registered network, the indicator blinks every three second and
is on for 0.1 second.
If the GPRS data service is enabled, the indicator blinks every 250 ms and is
on for 0.1 second.
The indicator is always on during a call.
7: four indicator states
Off: No SIM card, not registered
On: registered network
On for 0.2 second and off for 1.8 second: Obtained the IP address
On for 1.8 second and off for 0.2 second: Connected to the server
Return Value
See the Example.
Example
AT+SIGNAL?
+SIGNAL: 2
OK
The current signal indicator status is 2.
AT+SIGNAL=3
OK
Set current signal indicator status to 3.
AT+SIGNAL=9
ERROR
The parameter is set to an incorrect
value.
AT+SIGNAL=?
+SIGNAL: (0-7)
The available value of the signal
indicator status ranges from 0 to 7.
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
7
OK
Remarks
The default status setting is 7.
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
8
2 Mobile Device Control and Status Report
2.1 Querying the Module Status: +CPAS
Description
To query the work status of the module
Format
AT+CPAS<CR>
AT+CPAS=?<CR>
Parameter
<pas>:
0: ready. The module is ready and is able to execute AT commands.
1: unavailable. The command is not allowed by the module terminal (MT).
2: unknown. The status is unknown.
3: ringing. There is an incoming call and the module is ringing. The module can
execute AT commands.
4: call in progress. A call is going on and the module can execute AT commands.
5: asleep. The module is in sleep mode and not prepared to execute commands.
Return Value
<CR><LF>+CPAS: <pas>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
Example
AT+CPAS
+CPAS: 0
OK
Query the work status of the module.
The module is ready to execute AT commands.
AT+CPAS=?
+CPAS: (0,1,3,4)
OK
To query the value range of the module work status
AT+CPAS
+CME ERROR: <err>
This value is returned only after set AT+CMEE=1
Remark
N/A
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
9
2.2 Querying the Network Registration Status: +CREG
Description
To query the network registration status of the module
Format
AT+CREG=[<n>]<CR>
AT+CREG?<CR>
AT+CREG=?<CR>
Parameter
<n>:
0: Suppresses the network registration and Provide the result code proactively
(default setting)
1: Allows network registration to proactively provide the result codes
2: Allows network registration to actively provide the location information (CELL ID,
LOCAL ID)
Return Value
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
or
<CR><LF>+CME ERROR:<err><CR><LF>
<n>:
0: Suppresses network registration and Provide the result code proactively (default
setting)
1: Allows network registration to proactively provide the result codes
2: Allows network registration to actively provide the location information (CELL ID,
LOCAL ID)
<Stat>:
0: Not registered, the terminal is not currently searching for a new carrier
1: Registered to local network
2: Unregistered, the terminal is searching for the new base station
3: Registration is denied
4: Unknown code
5: Registered, in a roaming state
<lac>: string type; two byte location area code in hexadecimal format
<ci>: string type; four-byte cell ID in hexadecimal format
<Act>:
0: GSM
2: UTRAN
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
10
3: GSM w/EGPRS
Example
AT+CREG=1
OK
Enable network registration
unsolicited codes.
AT+CREG?
+CREG: 0,1
OK
Query the current network
registration status of the module
AT+CREG=?
+CREG: (0-2)
OK
Query the module network
registration status value range
AT+CMEE=0
OK
AT+CREG=5
ERROR
Set AT + CMEE = 0 (or not set),
then send AT + CREG = 5,
Then return error code
AT+CMEE=1
OK
AT+CREG=5
+CME ERROR: 53
Set AT + CMEE = 1, then send AT
+ CREG = 5,
Then return error code
Remark
N/A
2.3 GPRS Network Registration: +CGREG
Description
To control the presentation of an unsolicited result code of the module's GPRS
network registration status
Format
AT+CGREG=[<n>]<CR>
AT+CGREG?<CR>
AT+CGREG=?<CR>
Parameter
<N>: Controls the network registration unsolicited result code display
0: Disable network registration unsolicited result code (default setting)
1: Enable network registration unsolicited result code + CGREG: <stat>
2: Enable network registration unsolicited result code + CGREG: <stat> [, <lac>,
<ci> [, <Act>]]
<Stat>: Network status
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
11
0: Not registered, the terminal is not currently searching for a new carrier
1: Registered to local network
2: Unregistered, the terminal is searching for the new base station
3: Registration is denied
4: Unknown code
5: registered, in a roaming state
<Lac>: Character, 2-digit hexadecimal location area code
<Ci>: Character, 4-digit hexadecimal cell number
<Act>:
0: GSM
2: UTRAN
3: GSM w/EGPRS
Return Value
<CR><LF>+CGREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
<CR><LF>OK<CR><LF>
or
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Example
AT+CGREG=1
OK
AT+CGATT=0
OK
+CGREG: 4
Setting the Enable Network Registration
Unsolicited Result Codes,
Setting GPRS separation,
Unsolicited result code returned by the
module
AT+CGREG=2
OK
AT+CGATT=1
+CGREG: 2, "286F", "00000FCA", 3
OK
+CGREG: 1, "286F", "00000FCA", 3
Setting the Enable Network Registration
Unsolicited Result Code.
Set the GPRS attachment.
Unsolicited result code returned by the
module
GPRS attached successfully and
return OK,
Unsolicited result code returned by the
module
AT+CGREG?
+CGREG: 0,1
OK
When <n> is set to 0, the current GPRS
network registration status is queried
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
12
AT+CGREG?
+CGREG: 1,1
OK
When the value of <n> is set to 1, the
current GPRS network registration
status is queried
AT+CGREG?
+CGREG: 2,1,"286F","00000FCA",3
OK
When the value of <n> is set to 2, the
current GPRS network registration
status is queried
AT+CGREG=3
ERROR
The setting parameter is outside the
settable range and returns an ERROR
AT+CGREG=?
+CGREG: (0-2)
OK
Query the parameters that the command
can set
Remark
N/A
2.4 Enabling & Disabling the Terminal Display: ATE1/ATE0
Description
To enable or disable the terminal display function of the AT commands
Format
ATE1<CR>
ATE0<CR>
Parameter
N/A
Return Value
See the Example
Example
ATE1
OK
AT
OK
Turn on module AT command echo
function
Send AT, serial tools show "AT" and "OK"
ATE0
OK
OK
Turn off the module AT command echo
function.
Send AT, serial tools only show "OK"
Remark
The settings by this command will not be saved after the module is powered
off.
The terminal display function is enabled by default.
If you enter the command mode after dialing up to connect the network,
  • 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

Neoway N11 V2 At Command Manual

Type
At Command Manual

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

Finding information in a document is now easier with AI