N720 AT Commands Manual
N720 AT Commands Manual
Version 1.2
N720 AT Commands Manual
Copyright © Neoway Technology Co., Ltd. 2017. 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 Shenzhen Neoway Technology Co., Ltd.
Trademarks
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 the N720.
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.
Sales@neoway.com
Support@neoway.com
Website: http://www.neoway.com
Copyright © Neoway Technology Co., Ltd.
i
N720 AT Commands Manual
Revision Record
Issue
Date
Changes
V1.0
2016-08
Initial draft
Modify the boot instructions
Increase $MYGPSPWR
Increase $MYGPSPOS
Increase $MYADCTEMP
V1.1
2017-02
Increase ^SYSINFO
Increase +GMM
Increase +ENPWRSAVE
Increase +NETSHAREACT
Increase +NETSHAREMODE
Increase ATE
V1.2
2017-03
Add TCP, UDP, FTP function corresponding to the standard instructions
Copyright © Neoway Technology Co., Ltd.
ii
N720 AT Commands Manual
目录
1 General Commands .................................................................................................................. 2
1.1 Querying Software Version: +GMR............................................................................................................. 2
1.2 Querying Signal Quality: +CSQ .................................................................................................................. 3
1.3 Querying the Network Registration Status: +CREG .................................................................................... 4
1.4 Selecting and Registering a GSM Network: +COPS ................................................................................... 6
1.5 Querying the IMSI: +CIMI .......................................................................................................................... 8
1.6 Querying IMEI: +CGSN .............................................................................................................................. 8
1.7 Obtaining the ICCID of the SIM Card: +CCID ........................................................................................... 9
1.8 Querying the Module Model: +CGMM ....................................................................................................... 9
1.9 Setting the Baud Rate of the Module: +IPR ............................................................................................... 10
1.10 Setting Module Functions: +CFUN ......................................................................................................... 11
1.11 Activating Multiplexing Mode: +CMUX................................................................................................. 12
1.12 Clock: +CCLK ......................................................................................................................................... 13
1.13 Entering the PIN Codes: +CPIN .............................................................................................................. 14
1.14 Enabling PIN and Querying MT and Network Device: +CLCK ............................................................. 15
1.15 Modifying the Password of the PIN: +CPWD ......................................................................................... 17
1.16 Setting PDP Format: CGDCONT ............................................................................................................ 18
1.17 Setting GPRS Attach and Detach: +CGATT ............................................................................................ 19
1.18 Dialing Command: ATD*99# .................................................................................................................. 20
2 SMS Commands ...................................................................................................................... 21
2.1 Selecting SMS Services: CSMS ................................................................................................................ 21
2.2 Setting Preferred SMS Storage: +CPMS ................................................................................................... 22
2.3 Setting SMS Inputting Mode: +CMGF ...................................................................................................... 23
2.4 Setting the TE Character Set: +CSCS ........................................................................................................ 24
2.5 Setting the SMS Indication Mode: +CNMI ............................................................................................... 25
2.6 Reading SMS Messages: +CMGR ............................................................................................................. 27
2.7 SMS Message List: +CMGL...................................................................................................................... 28
2.8 Sending SMS Messages: +CMGS ............................................................................................................. 30
2.9 Writing SMS Messages: +CMGW ............................................................................................................. 31
2.10 Sending Stored SMS Messages: +CMSS ................................................................................................. 32
2.11 Deleting SMS Messages: +CMGD .......................................................................................................... 33
2.12 Setting the SMS Center Number: +CSCA ............................................................................................... 34
2.13 Setting the Parameters of the Text Mode: +CSMP .................................................................................. 35
2.14 Displaying the Parameters of the Text Mode: +CSDH ............................................................................ 36
2.15 Save Settings: +CSAS.............................................................................................................................. 37
3 GPRS Commands .................................................................................................................... 38
3.1 Setting PDP Format: CGDCONT .............................................................................................................. 38
3.2 Setting Network APN: +NETAPN ............................................................................................................. 40
3.3 Switching Data Mode to Command Mode: +++ ........................................................................................ 41
3.4 Switching Command Mode to Data Mode: ATO ....................................................................................... 42
3.5 Setting GPRS Attach and Detach: +CGATT .............................................................................................. 43
3.6 Setting Up a PPP Link: +XIIC ................................................................................................................... 44
Copyright © Neoway Technology Co., Ltd.
iii
N720 AT Commands Manual
4 TCP/UDP Data Service ........................................................................................................... 45
4.1 Setting Up TCP link: +TCPSETUP ........................................................................................................... 45
4.2 Sending TCP Data: +TCPSEND ................................................................................................................ 46
4.3 Receiving TCP Data: +TCPRECV ............................................................................................................ 47
4.4 Closing TCP link: +TCPCLOSE ................................................................................................................ 48
4.5 Setting Up UDP link: +UDPSETUP .......................................................................................................... 49
4.6 Sending UDP Data: +UDPSEND .............................................................................................................. 50
4.7 Receiving UDP Data: +UDPRECV ........................................................................................................... 51
4.8 Closing UDP link: +UDPCLOSE .............................................................................................................. 51
4.9 Querying TCP/UDP Link Status: +IPSTATUS .......................................................................................... 52
4.10 Querying the Status of Data Sent by the TCP Link: +TCPACK .............................................................. 53
5 FTP AT Commands ................................................................................................................. 54
5.1 Logging In to the FTP Server: +FTPLOGIN ............................................................................................. 54
5.2 Logging Out from the FTP Server: +FTPLOGOUT .................................................................................. 55
5.3 Downloading Data from the FTP Server: +FTPGET ................................................................................. 56
5.4 Uploading Data to the FTP Server: +FTPPUT .......................................................................................... 58
5.5 Querying FTP Link Status: +FTPSTATUS ................................................................................................ 59
6 TCP Server AT Commands ................................................................................................... 60
6.1 Setting TCP Listening for the Server: +TCPLISTEN ................................................................................ 60
6.2 Closing the Listening Link: +CLOSELISTEN .......................................................................................... 61
6.3 Closing Connections of the Client: +CLOSECLIENT .............................................................................. 62
6.4 Receiving Data from the Client: +TCPRECV(S) ...................................................................................... 63
6.5 Sending Data to the Client: +TCPSENDS ................................................................................................. 64
6.6 Querying the Link Status on the Client: +CLIENTSTATUS ..................................................................... 65
7 HTTP Commands .................................................................................................................... 66
7.1 Setting HTTP Parameters: +HTTPPARA .................................................................................................. 66
7.2 Setting Up HTTP Connection: +HTTPSETUP .......................................................................................... 67
7.3 Executing HTTP Request: +HTTPACTION .............................................................................................. 68
7.4 Closing an HTTP Connection: +HTTPCLOSE ......................................................................................... 72
7.5 Receiving HTTP Data: +HTTPRECV ....................................................................................................... 73
7.6 HTTP Connection Closing: +HTTPCLOSE .............................................................................................. 73
8 HTTPS Command ................................................................................................................... 74
8.1 Setting HTTPS Parameters: +HTTPSPARA .............................................................................................. 74
8.2 Setting up an HTTPS Connection: +HTTPSSETUP ................................................................................. 75
8.3 Executing HTTPS Request: +HTTPSACTION ......................................................................................... 76
8.4 Closing HTTPS Connection: +HTTPSCLOSE.......................................................................................... 78
8.5 HTTPS Closing: +HTTPSCLOSED .......................................................................................................... 78
9 Other Commands .................................................................................................................... 79
9.1 Locking BCCH Channel: $MYBCCH ....................................................................................................... 79
9.2 Locking GSM Band: $MYBAND ............................................................................................................. 81
9.3 Querying Current LAC and CELL_ID: $MYLACID ................................................................................ 81
9.4 Querying Current Channel, RX Power and TX Power: $MYCGED ......................................................... 82
9.5 Querying or Locking the Network Mode: $MYSYSINFO ........................................................................ 83
9.6 Enabling/Disabling Network Mode Report: $MYSYSINFOURC ............................................................ 84
9.7 Enabling/Disabling Network Mode Report: $MYURCSYSINFO ............................................................ 84
9.8 Unsolicited Network Mode Report: $MYURCSYSINFO ......................................................................... 85
Copyright © Neoway Technology Co., Ltd.
iv
N720 AT Commands Manual
9.9 Setting Network Mode Choices: $MYNETINFO ...................................................................................... 86
9.10 Enabling/Disabling the TD-SCDMA Mode: +GTUMODE ..................................................................... 87
9.11 Enabling/Disabling the Automatic AUTO Setting of Network Modes During Startup: $MYNETAUTO
......................................................................................................................................................................... 88
9.12 Setting System Configurations: ^SYSCONFIG ....................................................................................... 89
9.13 Obtaining the Location of the Module: +CIPGSMLOC .......................................................................... 91
10 Extended AT Commands ..................................................................................................... 93
10.1 Powering Off the Module: $MYPOWEROFF ......................................................................................... 93
10.2 Controlling the Indicator of Socket Status: $MYSOCKETLED.............................................................. 93
10.3 Obtaining the Version Information of the Module: $MYGMR ................................................................ 94
10.4 Obtaining the CCID of the SIM Card: $MYCCID .................................................................................. 95
10.5 Controlling Unsolicited Report: MYNETURC........................................................................................ 95
10.6 Querying the Type of the Module: $MYTYPE ........................................................................................ 96
10.7 Querying the Type of the Module: $MYMODEM (Standards for Canton) ............................................. 97
10.8 Setting Initialization Parameters of Network Connections: $MYNETCON ............................................ 98
10.9 Activating/Deactivating Network Connection: $MYNETACT ............................................................... 99
10.10 Configuring IP Access: $MYIPFILTER .............................................................................................. 100
10.11 Setting Parameters for Non-transparent Transmission: $MYNETSRV ............................................... 101
10.12 Enabling TCP/UDP Service: $MYNETOPEN..................................................................................... 102
10.13 Reading Received Data: $MYNETREAD ........................................................................................... 103
10.14 Sending Data: $MYNETWRITE ......................................................................................................... 104
10.15 Closing a Socket: $MYNETCLOSE .................................................................................................... 104
10.16 Querying TCPACK Information: $MYNETACK ................................................................................ 105
10.17 Accepting the Listening Request: $MYNETACCEPT......................................................................... 106
10.18 Enable Transparent Transmission Service: $MYNETCREATE .......................................................... 107
10.19 Starting the FTP Service: $MYFTPOPEN ........................................................................................... 108
10.20 Closing the FTP Service: $MYFTPCLOSE ......................................................................................... 109
10.21 Obtaining the FTP File Size: $MYFTPSIZE ....................................................................................... 109
10.22 Downloading FTP Files: $MYFTPGET .............................................................................................. 110
10.23 Uploading Files to the FTP Server: $MYFTPPUT .............................................................................. 111
10.24 Indicating Data Receiving: $MYURCREAD ...................................................................................... 112
10.25 Indicating the Disconnection: $MYURCCLOSE ................................................................................ 112
10.26 Indicating Network Connection Status: $MYURCACT ...................................................................... 113
10.27 Indicating Client Connection: $MYURCCLIENT............................................................................... 113
10.28 Indicating FTP Disconnection: $MYURCFTP .................................................................................... 114
10.29 Error Code............................................................................................................................................ 114
11 Reference Process of AT Command Programming ...................................................... 115
11.1 Content of PDU SMS Messages ............................................................................................................ 115
11.2 Flowchart of Sending Text SMS Messages (Through UART) ............................................................... 117
11.3 Flowchart of Sending PDU SMS Messages (Through UART) .............................................................. 118
Copyright © Neoway Technology Co., Ltd.
v
N720 AT Commands Manual
Boot LOG Instruction
If you use a fixed baudrate, the UART sends MODEM STARTUP after the module is booted and
+PBREADY after the phonebook is available.
If you boot the module in automatic baudrate detection mode, enter AT to check if the AT function is initialized
or not. The UART responds with OK if AT is initialized and outputs +PBREADY after the phoneboos is
available.
Copyright © Neoway Technology Co., Ltd.
1
N720 AT Commands Manual
1 General Commands
1.1 Querying Software Version: +GMR
Description
To query the software version
Format
AT+GMR<CR>
Parameter
N/A
Return Value
<CR><LF>+GMR: <revision>
<CR><LF>OK<CR><LF>
<revision>: Software version information
Example
AT+GMR
+GMR: N720C_EAB7CN_V001
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
2
N720 AT Commands Manual
1.2 Querying Signal Quality: +CSQ
Description
To check the receiving signal strength indication (RSSI)
Format
AT+CSQ<CR>
Parameter
N/A
Return Value
<CR><LF> +CSQ:< signal >, <ber>
<CR><LF> OK <CR><LF>
< signal>
The following table shows the relationship between the signal and the RSSI.
signal
rssi
0
<4 or 99
<-107 dBm or unknown
1
<10
<-93 dBm
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
AT+CSQ
Example
+CSQ: 19,2
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
3
N720 AT Commands Manual
1.3 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>: Specified whether to enable network registration unsolicited result codes.
0: Disable network registration unsolicited result codes (default setting).
1: Enable network registration unsolicited result codes +CREG: <stat>.
2: Enable network registration and location information (Cell ID, Local ID) unsolicited
result code +CREG: <stat>[,[<lac>],[<ci>],[<AcT>]]
<stat>: network status
0: Not registered, the module is not currently searching an operator to register to
1: Registered the home network
2: Not registered, but the module is currently trying to attach or searching an operator to
register to
3: Registration denied
4. Unknown code
5: Registered, roaming
<lac>: Two byte location area code in hexadecimal format, string type
<ci>: Four byte GERAN/UTRAN cell ID in hexadecimal format, string type
<Act>: The access technology of the serving cell, integer type
0: GSM
2: UTRAN
3: GSM w/EGPRS
4: UTRAN w/HSDPA
5: UTRAN w/HSUPA
6: UTRAN w/HSDPA and HSUPA
7: E-UTRAN
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
<CR><LF>OK<CR><LF>
<CR><LF>+CREG: (list of supported <n>s)
<CR><LF>OK<CR><LF>
Example
AT+CREG=1
OK
AT+CREG?
+CREG: 0,1
Enable network registration unsolicited
codes.
Query the network registration status
of the module.
OK
Copyright © Neoway Technology Co., Ltd.
4
N720 AT Commands Manual
AT+CREG=?
+CREG: (0-2)
Query the value range of the network
registration status parameter.
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
5
N720 AT Commands Manual
1.4 Selecting and Registering a GSM Network: +COPS
Description
To select and register a GSM network
Format

AT+COPS=<mode>[,<format>[,<oper>>[,<AcT>]]]<CR>

AT+COPS?<CR>

AT+COPS=?<CR>
Parameter
<mode>: To set automatic network selection or manual selection
0: Automatic selection (ignore the parameter <oper>)
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
9: CDMA
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+COPS: <mode>,<format>,<oper>,<AcT>
<CR><LF>OK<CR><LF>
Example
AT+COPS=0,0
Set to the long alphanumeric format
OK
AT+COPS=0,2
Set to digital mode
OK
AT+COPS?
+COPS: 0,0,"CHINA MOBILE",7
China Mobile
OK
AT+COPS?
Copyright © Neoway Technology Co., Ltd.
If it is set to digital mode, get the number
6
N720 AT Commands Manual
+COPS: 0,2,"46000",7
46000
OK
AT+COPS?
+COPS: 0,0,"CHN-UNICOM ",7
China Unicom
OK
AT+COPS?
+COPS: 0,2,"46001",7
If it is set to digital mode, then get the
number 46001.
OK
AT+COPS?
+COPS: 0,0,"CHINA TELECOM",9
China Telecom
OK
AT+COPS?
+COPS: 0,2,46011,9
If it is set to digital mode, then get the
number 46011.
OK
AT+COPS=2
OK
Remarks
Unregister the network.
N/A
Copyright © Neoway Technology Co., Ltd.
7
N720 AT Commands Manual
1.5 Querying the IMSI: +CIMI
Description
To query the international mobile subscriber identification (IMSI)
Format

AT+CIMI<CR>

AT+CIMI?<CR>
Parameter
N/A
Return Value
<CR><LF><IMSI>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Example
AT+CIMI
Obtain the IMSI number.
460022201575463
OK
Remarks
AT+CIMI
Query the IMSI.
ERROR
No SIM card is installed.
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.
1.6 Querying IMEI: +CGSN
Description
To query the International Mobile Equipment Identity (IMEI) of the module
Format
AT+CGSN<CR>
Parameter
N/A
Return Value
<CR><LF>+CGSN: <IMEI>
<CR><LF>OK<CR><LF>
Example
AT+CGSN
+CGSN: "860998021170687"
OK
Remarks

The IMEI is a character string of 15 digits.

If the module runs on a CDMA network, you can get the ESN number by this
command.
Copyright © Neoway Technology Co., Ltd.
8
N720 AT Commands Manual
1.7 Obtaining the ICCID of the SIM Card: +CCID
Description
To obtain the integrated circuit card identifier (ICCID) of the SIM card
Format
AT+CCID<CR>
Parameter
N/A
Return Value
<CR><LF>+CCID: <ICCID><CR><LF>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Example
AT+CCID
Read command
+CCID: 89860002190810001367
OK
Remarks
AT+CCID
Read command
ERROR
The SIM card is not inserted.
The ICCID number is a character string of 20 digits.
1.8 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
Query the product model.
+CGMM: N720C
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
9
N720 AT Commands Manual
1.9 Setting the Baud Rate of the Module: +IPR
Description
To set the baud rate of the module
Format

AT+IPR=<baud rate><CR>

AT+IPR?<CR>

AT+IPR=?<CR>
Parameter
<baud rate>: The value can be 0, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,
57600, 115200, 230400, 460800, 921600.
Return Value
See the Example.
Example
AT+IPR=115200
Set the baud rate to 115200.
OK
AT+IPR=100
Set the baud rate to 100.
+IPR: wrong baudrate
The value is not allowed.
AT+IPR=?
Query the available baud rate
range.
+IPR: 0, 300, 600, 1200, 2400, 4800, 9600, 19200,
38400, 57600, 115200, 230400, 460800, 921600
OK
AT+IPR?
Query the current baud rate.
+IPR: 115200
OK
Remarks

The default baud rate is 0.

Five baud rate selections are available for self-adaption: 9600, 19200, 38400, 57600,
and 115200 bit/s.

The settings will be saved after the module is powered off.
Copyright © Neoway Technology Co., Ltd.
10
N720 AT Commands Manual
1.10 Setting Module Functions: +CFUN
Description
To select the functions of the module by setting <fun>
Format

AT+CFUN=<fun>,<rst><CR>

AT+CFUN?<CR>

AT+CFUN=?<CR>
Parameter
<fun>: Module work mode
0: sleep mode
1: work mode
<rst>: Specifies whether to restart the module
0: Do not restart the module
1: Restart the module
Return Value
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<CR><LF>+CFUN: <fun>
<CR><LF>OK<CR><LF>
<CR><LF>+CFUN: (list of supported <fun>s), (list of supported <rst>s)
<CR><LF>OK<CR><LF>
Example
AT+CFUN=1,1
OK
AT+CFUN?
+CFUN: 1
OK
AT+CFUN=?
+CFUN: (0,1) ,(0,1)
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
11
N720 AT Commands Manual
1.11 Activating Multiplexing Mode: +CMUX
Description
To activate multiplexing mode

AT+CMUX=<mode>[,<subset>[,<port_speed>[,<N1>[,<T1>[,<N2>[,<T2>[,<T3>[,
<k>]]]]]]]]<CR>

AT+CMUX=?<CR>
Format
<mode>: The mode of MUX that is enabled, integer type
0: Basic option (default value)
1: Advanced option (not supported)
<subnet>: Subset of frame format, integer type
0: UIH frames used only (default value)
1: UI frames used only (not supported currently)
<port_speed>: UART port rate, integer type
1: 9600bit/s
2: 19200bit/s
3: 38400bit/s
4: 57600bit/s
Parameters
5: 115200bit/s
6: 230400bit/s
7: 460800bit/s
8: 921600bit/s
<N1>: Maximum frame size. Integer type, ranging from 1 to 32767. The default value is
512.
<T1>: Acknowledgement timer in unite of ten milliseconds, integer type, ranging from 1
to 255, where 10 is default (100 ms).
<N2>: Maximum number of re-transmission, integer type. Not supported
<T2>: response timer for the multiplexer control channel in units of ten milliseconds,
integer type. Not supported
<T3>: Wake up response timer in seconds, integer type. Not supported
<k>: window size, integer type. Not supported
Return Value
<CR><LF>OK<CR><LF>
AT+CMUX=0
OK
Example
AT+CMUX=?
+CMUX:
(0-1),(0-2),(1-8),(1-32768),(1-255),(0-100),(2-255),(1-255),(1-7
)
Basic option. Other
parameters are left out.
Query the available
range of parameters.
OK
Remarks
Only basic option is supported.
Copyright © Neoway Technology Co., Ltd.
12
N720 AT Commands Manual
1.12 Clock: +CCLK
Description
To set and query the real-time clock
Format

AT+CCLK=<time><CR>

AT+CCLK?<CR>
Parameter
< time >: Character string in format of "YY/MM/DD,hh:mm:ss[+TZ]".
Z: Two digits, indicating the time lag between the local time and the GMT time. This
information is optional because it can be displayed only when the network supports it.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CCLK: <time>
<CR><LF> OK<CR><LF>
Example
AT+CCLK="08/07/01,14:54:01"
Set the real-time clock of the module.
OK
AT+CCLK?
Query the setting of the real-time clock.
+CCLK: "08/07/01,14:54:10"
OK
AT+CCLK=14/07/02,10:48:50
Command format is incorrect.
ERROR
Remarks
The settings will be saved after the module is powered off.
Copyright © Neoway Technology Co., Ltd.
13
N720 AT Commands Manual
1.13 Entering the PIN Codes: +CPIN
Description
To query the PIN status and enter the PIN codes
Format

AT+CPIN=<pin>[,<newpin>]<CR>

AT+CPIN?<CR>
Parameter
<pin>, <newpin>: string type value
Return Value
<CR><LF>+CPIN:<code>
<CR><LF>OK<CR><LF>
<code>:
READY: No password
SIM PIN: Enter PIN code.
SIM PUK: Enter PUK code.
SIM PIN2: Enter PIN2 code.
SIM PUK2: Enter PUK2 code.
Example
AT+CPIN?
Query the PIN code status of the module.
+CPIN:READY
OK
AT+CPIN="0000"
PIN code is incorrect.
ERROR
AT+CPIN="1234"
The input PIN code is correct.
OK
Remarks


To enter PIN code, you must lock the current SIM card (running
AT+CLCK="SC",1,"1234") and then restart the module.
If you enter wrong PIN code for three times, you must enter PUK to unlock.
Copyright © Neoway Technology Co., Ltd.
14
N720 AT Commands Manual
1.14 Enabling PIN and Querying MT and Network
Device: +CLCK
Description
To lock, unlock or interrogate an MT or a network facility
Format

AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]<CR>

AT+CLCK=?<CR>
Parameter
<fac>: A pair of quotation marks is required for the value.
"OI": Outgoing international calls
"AI": All incoming calls
"IR": Incoming calls when roaming outside the home country
"SC": SIM card
"AO": All outgoing calls
"OX": All outgoing international calls except to the home country
"AB": All barring services
"AG": All outgoing barring services
"AC": All incoming barring services
"FD": SIM fixed dialing memory feature
"PS": PH-SIM (lock Phone to SIM card)
"PN": Network authentication
"PU": Network subsystem authentication
"PP": Service provider authentication
"PC": Corporate authentication
<mode>:
0: Unlock
1: Lock
2: Query the status
<status>:
0: not active
1: active
<passwd>: Password or code, string type. A pair of quotation marks is required for the
value.
<class>:
1: Voice service
2: Data service
4: Fax service
8: SMS
16: Synchronous data service
32: Asynchronous data service
64: Dedicated packet access
128: Dedicated PAD access
Return Value
When <mode>=2 and command successful:
Copyright © Neoway Technology Co., Ltd.
15
N720 AT Commands Manual
<CR><LF>+CLCK:<status> [, <class1> [<CR><LF>+CLCK:<status>, <class2> [...]]
<CR><LF> OK<CR><LF>
Example
AT+CLCK="SC",2
+CLCK: 0
OK
AT+CLCK=?
+CLCK:
("AB","AC","AG","AI","AO","IR","OI","O
X","SC","FD","PN","PU","PP","PC","PF")
Query the network information related to
the module.
OK
AT+CLCK="SC",1,"1234"
OK
AT+CLCK="SC",0,"1234"
OK
AT+CLCK="SC",1,"2222"
ERROR
Remarks
Lock the current SIM card. "1234" is the
PIN code of current SIM card.
Unlock the current SIM card. "1234" is the
PIN code of current SIM card.
The PIN code is incorrect.
The settings of this command take effect after the module is restarted.
Copyright © Neoway Technology Co., Ltd.
16
N720 AT Commands Manual
1.15 Modifying the Password of the PIN: +CPWD
Description
To modify the password of the lock function of the module
Format

AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>

AT+CPWD=?<CR>
Parameter
<fac>: A pair of quotation marks is required for the value.
"P2":SIM PIN2
"OI": Outgoing international calls
"AI": All incoming calls
"IR": Incoming calls when roaming outside the homing place
"SC": SIM card
"AO": All outgoing calls
"OX": All outgoing international calls except to the home country
"AB": All calling services
"AG": All outgoing call services
"AC": All incoming call services
"FD": Fixed dialing of the SIM card
"PN": Network authentication
"PU": Network subsystem authentication
"PP": Service provider authentication
"PC": Corporate authentication
<oldpwd>: Old password or code, string type. A pair of quotation marks is required for
the value.
<newpwd>: New password or code, string type. A pair of quotation marks is required for
the value.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CPWD: list of supported (<fac>,<pwdlength>)s
<CR><LF>OK<CR><LF>
<CR><LF> ERROR<CR><LF>
Example
AT+CPWD=?
+CPWD:
("AB",4),("AC",4),("AG",4),("AI",4),("AO",4),
("IR",4),("OI",4),("OX",4),("SC",8),("P2",8)
Query the service range of the PIN
password allowed by the module.
OK
AT+CPWD="SC","1234","0000"
OK
AT+CPWD=SC,1234,0000
ERROR
Remarks
Modify the PIN code of the current
SIM card. "1234" is the old PIN code
and "0000" is the new PIN code.
The command format is incorrect. A
pair of quotation marks ("") is required
for each parameter.
To modify the PIN code, you must lock the SIM card (running
AT+CLCK="SC",1,"1234").
Copyright © Neoway Technology Co., Ltd.
17
N720 AT Commands Manual
1.16 Setting PDP Format: CGDCONT
Description
To set the packet data protocol (PDP) format of the GPRS
Format
AT+CGDCONT=<cid>,<type>,<APN><CR>
Parameter
<cid>: (PDP Context Identifier) a numeric parameter that specifies a particular PDP
context definition. Minimum value = 1.
<type>:(Packet Data Protocol type) a string parameter. IP Internet Protocol (IETF STD 5)
<APN>: Access Point Name
Return Value
See the Example.
Example
AT+CGDCONT=1,"IP", "CMNET"
OK
AT+CGDCONT=1,”IP”,”UNINET”
Set APN to China
Mobile.
OK
Set APN to China
Unicom.
AT+CGDCONT?
Query the APN.
+CGDCONT:
1,"IPV4V6","","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IP","CTINET","0.0.0.0",0,0,0,0
OK
Remarks
APN of each carrier is different from each other.
Copyright © Neoway Technology Co., Ltd.
18
N720 AT Commands Manual
1.17 Setting GPRS Attach and Detach: +CGATT
Description
To set GPRS attach and detach
Format

AT+CGATT=<state><CR>

AT+CGATT?<CR>

AT+CGATT=?<CR>
Parameter
<state>: 0, 1
0: indicates detach
1: indicates attach
Return Value
See the Example.
Example
AT+CGATT=1
OK
GPRS attach is set successfully.
AT+CGATT=0
OK
GPRS detach is set successfully.
AT+CGATT=0
ERROR
ERROR is returned because no SIM card
is installed.
AT+CGATT?
Query the GPRS status.
+CGATT: 0
OK
AT+CGATT=?
+CGATT:(0,1)
Query the valid parameter values for the
command.
OK
Remarks

By default, the module can automatically perform GPRS attach.

Ensure that the GPRS attach is set before the PPP connection is set up. It is
recommended that you add the AT+CGATT? command to the process to query the
GPRS status. If the module returns 1, you can set up PPP connection directly;
otherwise, you need to set GPRS attch manually by executing the command
AT+CGATT=1.
Copyright © Neoway Technology Co., Ltd.
19
N720 AT Commands Manual
1.18 Dialing Command: ATD*99#
Description
To initialize a GPRS connection
Format
ATD*99#<CR>
Parameter
N/A
Return Value
<CR><LF>CONNECT<CR><LF>
Example
ATD*99#
CONNECT
Remarks

This command is applicable only to external protocol stack.

Ensure that the module has registered the network and you have set APN before
dialing any number.
Copyright © Neoway Technology Co., Ltd.
20
N720 AT Commands Manual
2 SMS Commands
2.1 Selecting SMS Services: CSMS
Description
To select an SMS service among SMS-MO, SMS-MT, and SMS-CB
Format

AT+CSMS=<service><CR>

AT+CSMS?<CR>

AT+CSMS=?<CR>
Parameter
<service>:
0: GSM03.40 and GSM03.41. SMS-related AT commands support GSM07.05 Phase 2.
1: GSM03.40 and GSM03.41. SMS-related AT commands support GSM07.05 Phase 2+.
<mt>,<mo>,<bm>:
0: Not support
1: Support
Return Value
<CR><LF>+CSMS: <mt>,<mo>,<bm>
<CR><LF>OK<CR><LF>
<CR><LF>+CSMS: <service>,<mt>,<mo>,<bm>
<CR><LF>OK<CR><LF>
<CR><LF>+CSMS: (list of supported <service>s)
<CR><LF>OK<CR><LF>
Example
AT+CSMS=1
+CSMS: 1, 1, 1
Set SMS service to 1.
OK
AT+CSMS?
Query the current parameter value.
+CSMS: 1, 1, 1, 1
OK
AT+CSMS=?
+CSMS: (0-1)
Query the value range of SMS
service.
OK
Remarks

The default settings of this command are 0, 1, 1, 1.

This command is not supported in CDMA mode.
Copyright © Neoway Technology Co., Ltd.
21
N720 AT Commands Manual
2.2 Setting Preferred SMS Storage: +CPMS
Description
To set preferred SMS storage
Format

AT+CPMS=<mem1><CR>

AT+CPMS?<CR>

AT+CPMS=?<CR>
Parameter
<mem1>: String type, for example, "SM", "ME", "MT"
<used>: Used quantity
<total>: Total capacity of the storage
<mem1>:
"SM": SIM only
"ME": ME only
"MT": any of storages associated with ME(SIM first)
"SR": SR
Return Value
<CR><LF>+CPMS:<used1>,<total1>,<used2>,<total2>,<used3>,<total3><CR><LF>
<CR><LF>OK
OR
<CR><LF>+CPMS:
<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3>
<CR><LF>OK<CR><LF>
OR
<CR><LF>+CPMS: (list of supported <mem1>s),(list of supported <mem2>s),
(list of supported <mem3>s)
<CR><LF>OK<CR><LF>
Example
AT+CPMS="SM"
+CPMS: 433,50,0,11,433,50
Set the SMS storage to "SM", that is,
store SMS messages in SIM card.
OK
AT+CPMS?
+CPMS: "ME",0,11," "ME",0,11,"SM",433,50
Query the capacity of current SMS
storage.
OK
AT+CPMS=?
Query the available storages.
+CPMS:
("ME","MT","SM","SR"),("ME","MT","SM","S
R"),("ME","MT","SM","SR")
OK
AT+CPMS="SM"
+CMS ERROR: 500
Remarks
No SIM card is installed.
SR is not supported in CDMA mode.
Copyright © Neoway Technology Co., Ltd.
22
N720 AT Commands Manual
2.3 Setting SMS Inputting Mode: +CMGF
Description
To set the SMS inputting mode
Format

AT+CMGF=[<mode>]<CR>

AT+CMGF?<CR>

AT+CMGF=?<CR>
Parameter
<mode>:
0: PDU mode
1: Text mode
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CMGF: <mode>
<CR><LF>OK<CR><LF>
<CR><LF>+CMGF: (list of supported <mode>s)
<CR><LF>OK<CR><LF>
Example
AT+CMGF=1
Set the SMS to text mode.
OK
AT+CMGF?
+CMGF: 1
Query the current mode of SMS message
input.
OK
AT+CMGF=?
+CMGF: (0-1)
Query the value range of SMS mode
setting.
OK
Remarks
Only Unicode is supported in the PDU mode on a CDMA network.
Copyright © Neoway Technology Co., Ltd.
23
N720 AT Commands Manual
2.4 Setting the TE Character Set: +CSCS
Description
To set the format of the TE character set
Format

AT+CSCS=[<chest>]<CR>

AT+CSCS?<CR>

AT+CSCS=?<CR>
Parameter
Return Value
< chset >:

"GSM": Default GSM alphabet (GSM03.38.6.2.1)

"IRA": International reference alphabet (ITU-T T.50)

"UCS2": 16-bit universal multiple-octet coded character set (USO/IEC10646). The
UCS2 character string is converted into a hexadecimal number (ranging from
0x0000 to 0xFFFF). UCS2 encoding is used only in some character string of the
statement.
<CR><LF>OK<CR><LF>
<CR><LF>+CSCS: <chset>
<CR><LF>OK<CR><LF>
<CR><LF>+CSCS: (list of supported <chset>s)
<CR><LF>OK<CR><LF>
Example
AT+CSCS="IRA"
Set IRA character set.
OK
AT+CSCS?
Query the format of current character set.
+CSCS: "IRA"
OK
+CSCS: ("IRA","GSM","UCS2")
Query the character set formats that the module
supports.
OK
The list of the character set formats is returned.
AT+CSCS=?
Remarks
The default value is IRA.
Copyright © Neoway Technology Co., Ltd.
24
N720 AT Commands Manual
2.5 Setting the SMS Indication Mode: +CNMI
Description
To set the mode how the module informs users of new SMS messages received from the
network
Format

AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]<CR>

AT+CNMI?<CR>

AT+CNMI=?<CR>
Parameter
<mode>: Set the instruction mode after receiving SMS messages.
0: SMS instruction codes can be saved in the buffer of the module. If the TA is full, the
old codes can be saved in other place or replaced with new codes.
1: When the module is online, it will discard saved SMS instruction codes and reject new
codes. In other situations, the codes are displayed on the end device.
2: When the module is online, the SMS instruction codes are saved in the buffer of the
module. After the connection is released, the SMS instruction codes are output through
UART. In other situations, codes are directly displayed on the end device.
<mt>: Set the format of the new SMS instruction codes. The default value is 0.
0: SMS instruction codes will not be sent to the end device.
1: The format of the new SMS instruction codes is +CMTI: "MT" ,<index>. The SMS
message is stored rather than directly displayed.
2: The format of the new SMS instruction codes is
+CMT :<oa>,<scts>,<tooa>,<lang>,<encod>,<priority>[,<cbn>],<length><CR><LF
><data> (text mode). SMS messages are directly displayed rather than stored.
3: Use the report codes defined by <mt>=2 to transmit SMS instruction codes to the end
device. The SMS instruction codes in other modes are the same as that of <mt>=1.
<bm>: Set the format of the new cell broadcast codes. The default value is 0.
0: Not send the instruction information of new cell broadcast. The cell broadcast will not
be stored.
1: The cell broadcast instruction code is +CBMI:" BC" ,<index> and the cell broadcast
is stored.
2: The format of the new cell broadcast instruction codes is
<oa>,[<alpha>,]<scts>[,<tooa>,<length>] <CR><LF><data>(text mode). The cell
broadcast will be directly displayed rather than stored.
3: The CBM of the third-type information will be displayed on the end device using the
report codes defined by <bm>=2. For other type SMS messages that support CBM
storage, the instruction codes are the same as that of <bm>=1.
<ds>: Report status of SMS message sending. The default value is 0.
0: No status report of SMS message sending
1: The format of the SMS sending status report is
+CDS :<fo>,<mr>,[<ra>],[<tora>],<scts>, <dt>,<st>(text mode).
<bfr>: The default value is 0.
0: When <mode> is set to 1 or 2, codes defined by this command and stored in TA will
be sent to TE. The module will return OK before transmitting the codes.
Copyright © Neoway Technology Co., Ltd.
25
N720 AT Commands Manual
1: When <mode> is set to 1 or 2, the codes defined by this command and stored in TA
will be cleared.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
<CR><LF>OK<CR><LF>
<CR><LF>+CNMI: (list of supported <mode>s), (list of supported <mt>s), (list of
supported <bm>s), (list of supported <ds>s), (list of supported <bfr>s)
<CR><LF>OK<CR><LF>
Example
AT+CNMI=1,1,0,0,0
Set the SMS message indication mode.
OK
AT+CNMI=?
Query the value ranges of the paramters.
+CNMI:
(0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)
OK
AT+CNMI?
Query the current setting of the parameters.
+CNMI: 1,1,0,0,0
OK
Remarks

The default settings of this command are 2,1,0,0,0.

The recommended setting is +CNMI: 2,1,0,0,0 (new messages are stored on SIM
card rather than displayed directly).

<bm> and <ds> are not supported on a CDMA network.
Copyright © Neoway Technology Co., Ltd.
26
N720 AT Commands Manual
2.6 Reading SMS Messages: +CMGR
Description
To read SMS messages stored in current memory (use the AT+CPMS command to
specify the current memory)
Format
AT+CMGR=<index><CR>
Parameter
<index>: location value <index> from preferred message storage <mem1> to the TE
Return Value

If text mode (+CMGF=1), command successful:
<CR><LF>+CMGR: <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,
<sca>,<tosca>,<length>]
<CR><LF><data><CR><LF><CR><LF>OK<CR><LF>

If PDU mode (+CMGF=0) and command successful:
<CR><LF>+CMGR:
<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF><CR><LF>OK<CR><LF>
<alpha>: string type alphanumeric representation of <da> or <oa> corresponding to
the entry found in MT phonebook
<stat>: the status of message in memory
<oa>: TP-Originating-Address Address-Value field in string format
<scts>: TP-Service-Centre-Time-Stamp in time-string format
<length>: integer type value indicating in the text mode (+CMGF=1) the length of
the message body <data> in characters; or in PDU mode (+CMGF=0), the length of
the actual TP data unit in octets
<pdu>: ME/TA converts each octet of TP data unit into two IRA character long
hexadecimal number
<data>: Data in text mode responses
Example
Text mode:
AT+CMGR=33
+CMGR: "REC READ","13510895077",,"15/07/23,20:14:55+32"
123
OK
PDU mode:
AT+CMGR=33
+CMGR: 1,,22
0891683110808805F0240BA13115805970F70000517032024155230331D90C
OK
AT+CMGR=50
No SMS message 50 in the storage.
+CMS ERROR: 321
Remarks
If the status of the message is received unread, the status in the storage changes to
received read.
Copyright © Neoway Technology Co., Ltd.
27
N720 AT Commands Manual
2.7 SMS Message List: +CMGL
Description
To read SMS messages of one type from the current memory specified by the +CPMS
command
Format

AT+CMGL[=<stat>]<CR>

AT+CMGL=?<CR>
Parameter
<state>: String type or numeric type
When you set AT+CMGF=1,

"REC UNREAD": Unread SMS messages received

"REC UNREAD": Read SMS messages received

"STO UNSENT": Stored unsent SMS messages

"STO SENT": Stored sent SMS messages

"ALL": All SMS messages
When you set AT+CMGF=0,
Return Value

0: Unread SMS messages received

1: Read SMS messages received

2: Stored unsent SMS messages

3: Stored sent SMS messages

4: All SMS messages

Text mode (+CMGF=1):
<CR><LF>+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data><CR><LF> [
<CR><LF>+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data><CR><LF>>[...]]

PDU mode (+CMGF=0):
<CR><LF>+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>
[<CR><LF>
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF> [...]]
Example
AT+CMGL="ALL"
+CMGL: 1,"REC READ","10010", ,"14/06/23,14:42:27+32"
0500034F0302672C77ED4FE14E2D768452694F596D4191CF5305542B53E052A05305
6D4191CFFF0C8BF76CE8610F533A52064F7F7528FF093002672C6B2167E58BE27E
D3679C5B5857285EF665F6FF0C8BF74EE551FA8D264E3A51C63002767B96468054
901A624B673A84254E1A53850020007700610070002E00310030003000310030002E0
063006F006D
+CMGL: 2,"REC READ","10010", ,"14/06/23,14:42:27+32"
0500034F03016E2999A863D0793AFF0C622A6B62003667080032003265E5FF0C60A8
5F5367085957991051856D4191CF5DF24F7F752800340033002E00360031004D0042F
F0C52694F596D4191CF003200350036002E00330039004D0042FF08598260A88BA28
D2D4E867EA256F4811662164E9196C0621660A6005400566D4191CF53E052A05305
FF0C5219
Copyright © Neoway Technology Co., Ltd.
28
N720 AT Commands Manual
OK.
AT+CMGL=?
Query in text format (AT+CMGF=1).
+CMGL: ("REC UNREAD","REC
READ","STO UNSENT","STO
SENT","ALL")
OK
AT+CMGL=?
Query in PDU format (AT+CMGF=0).
+CMGL: (0-4)
OK
ERROR
The parameter format in the command
is incorrect. A pair of quotation marks
("") is required for the parameter.
AT+CMGF=1
The parameter should be set to 0.
AT+CMGL=ALL
OK
AT+CMGL=4
ERROR
AT+CMGF=0
The parameter should be set to 1.
OK
AT+CMGL="ALL"
ERROR
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
29
N720 AT Commands Manual
2.8 Sending SMS Messages: +CMGS
Description
To send an SMS message from the module to the network
The network will return reference value <mr> to the module after the SMS message is
sent successfully.
Format
Parameter

AT+CMGS=<da>[,<toda>]<CR>text is entered<Ctrl+Z/ESC> (Text command
syntax)

AT+CMGS=<length><CR>PDU is given<Ctrl+Z/ESC> (PDU command syntax)
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode
<length>: The byte length of the SMS message content in PDU mode
<mr>: The storage location
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message,
in the example.
<ESC>: Indicates giving up the input message
Return Value

if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMGS: <mr>[,<scts>]
<CR><LF>OK<CR><LF>

if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMGS: <mr>[,<ackpdu>]
<CR><LF>OK<CR><LF>
Example
AT+CMGS="66358"<CR>
Text mode(+CMGF=1)
> This is the text
is the symbol after you press
Ctrl+Z.
+CMGS: 171
OK
AT+CMGS="15889758493"<CR>
> This is the text
AT+CMGF=1 might not be
executed.
ERROR
AT+CMGS=33<CR>
PDU mode (+CMGF=0)
>
0891683108705505F001000B815118784271F2000814
6DF157335E025B9D5B89533A59276D6A80545EFA
+CMGS: 119
OK
Remarks


If you use UART debugging tool to sent PDU SMS message, enter \r behind the
AT+CMGS command manually or send <CR> in hexadecimal system.
For details about PDU, see the 11.1 Content of PDU SMS Messages.
Copyright © Neoway Technology Co., Ltd.
30
N720 AT Commands Manual
2.9 Writing SMS Messages: +CMGW
Description
To write an SMS message into the memory
The location information <index> will be returned after the message is saved correctly.
Format

Command syntax (text mode):
AT+CMGW[=<oa/da>[,<tooa/toda>[,<stat>]]]<CR>text is entered<Ctrl-Z/ESC>

Command syntax (PDU mode):
AT+CMGW=<length>[,<stat>]<CR>PDU is given<Ctrl-Z/ESC>
Parameter
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode
<length>: The byte length of the SMS message content in PDU mode
<index>: Location information
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message
<ESC>: Indicates giving up the input message
Return Value
<CR><LF>+CMGW: <index>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT+CMGW="091137880"<CR>
Text mode (+CMGF=1)
> "This is the text"<Ctrl+Z>
+CMGW: 15
OK
ERROR
A pair of quotation marks
("") is required for the
number in text mode.
AT+CMGW=31<CR>
PDU mode (+CMGF=0)
AT+CMGW=091137880
>
0891683108705505F001000B813124248536F3000812004
00026002A535A53D153A653C1532052C7<Ctrl+Z>
+CMGW: 1
OK
Remarks
If you send PDU messages through a UART commissioning tool, press the Enter button
or enter <CR> in hexadecimal format.
Copyright © Neoway Technology Co., Ltd.
31
N720 AT Commands Manual
2.10 Sending Stored SMS Messages: +CMSS
Description
To send an SMS message specified by <index> in the memory (SMS-SUBMIT)
The network returns reference value <mr> to the end device after the SMS message is
sent successfully.
Format
AT+CMSS=<index>[,<da>[,<toda>]]<CR>
Parameter
<index>: Message location
<da>: the destination number of the SMS messages
<toda>: type of address
Return Value

if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMSS: <mr>[,<scts>]
<CR><LF>OK<CR><LF>

if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMSS: <mr>[,<ackpdu>]
<CR><LF>OK<CR><LF>
Example
AT+CMSS=2
Send the SMS messages stored in memory 2.
+CMSS:<mr>
OK
AT+CMSS=2
ERROR
Remarks
No SMS message is stored in memory 2 or the
SMS message number in memory 2 is incorrect.
N/A
Copyright © Neoway Technology Co., Ltd.
32
N720 AT Commands Manual
2.11 Deleting SMS Messages: +CMGD
Description
To delete SMS messages from the current memory.
Format

AT+CMGD=<index> [,<delflag>]<CR>

AT+CMGD=?<CR>
Parameter
<index>:The recording number of the stored SMS messages
<delflag>: Integer
0: Delete the SMS messages with the specified recording numbers.
1: Delete all read SMS messages.
2: Delete all read and sent SMS messages.
3: Delete all read, sent, and unsent SMS messages.
4: Delete all messages.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CMGD: (list of supported <index>s, list of supported <delflag>s)
<CR><LF>OK<CR><LF>
Example
AT+CMGD=0,3
OK
Delete all read, sent, and unsent
SMS messages.
Delete successfully
AT+CMGD=?
+CMGD:
(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2
0,21,22,23,24,25,26,27,28,29,30,31,32,33),(0-4)
Query the value ranges of
parameters.
OK
Remarks
If you set <delflag>, ignor the parameter <index>.
Copyright © Neoway Technology Co., Ltd.
33
N720 AT Commands Manual
2.12 Setting the SMS Center Number: +CSCA
Description
To set the SMS center number
Format

AT+CSCA=<sca>[,<tosca>]<CR>

AT+CSCA?<CR>
Parameter
<sca>: SMS center number
<tosca>: The format of the SMS center number. 129 indicates common number; 145
indicates international number.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CSCA: <sca>, <tosca>
<CR><LF>OK<CR><LF>
Example
AT+CSCA="8613800755500",145
Set an international SMSC number.
OK
ERROR
A pair of quotation marks ("") is required
for SMSC number.
AT+CSCA?
Query the SMSC number.
AT+CSCA=8613800755500,145
+CSCA: "+8613800755500",145
OK
Remarks
This command is not supported on a CDMA network.
Copyright © Neoway Technology Co., Ltd.
34
N720 AT Commands Manual
2.13 Setting the Parameters of the Text Mode: +CSMP
Description
To select required values for the additional parameters in the text mode, and set the
validity period since the message is received from the SMSC, or the absolute time
defining the end of the validity period
Format

AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]]<CR>

AT+CSMP?<CR>
Parameter
<fo>: Determined by the command or the first 8 bits of the result code GSM 03.40
SMS-DELIVER; SMS-SUBMIT (default value: 17); or adopt the integer-type
SMS-COMMAND (default value: 2)
<vp>:
Value
Validity Period
0-143
(vp+1)*5mins, 12 hours at most
144-167
12hours +((vp–143)*30mins), 24 hours at most
168-196
(vp–166)*1day
197-255
(vp–192)*1week
<pid>: Integer-type TP-protocol-ID (default value: 0)
<dcs>: Encoding plan for integer-type cell broadcast data (default value: 0)
Return Value
<CR><LF>OK<CR><LF>
Example
AT+CSMP=17,167,0,0
Text mode parameters:
OK
No status report; the validity period of the information is 24
hours; Only messages in text format can be sent.
AT+CSMP?
Query the current settings of the text mode.
+CSMP: 17,167,0,0
OK
Remarks
On a CDMA network, the CSMP parameters are different. Please set them based on the
queried value.
Copyright © Neoway Technology Co., Ltd.
35
N720 AT Commands Manual
2.14 Displaying the Parameters of the Text Mode:
+CSDH
Description
To set whether the detailed header information is displayed in the result code in text mode
Format

AT+CSDH=[<show>]<CR>

AT+CSDH?<CR>

AT+CSDH=?<CR>
Parameter
<show>:
0: not display (default value)
1: display
Return Value
See the Example.
Example
AT+CSDH=0
OK
AT+CMGR=0
+CMGR: "REC
READ","13510895077",,"15/07/23,20:58:28+32"
Set the header information to
not display
Read the 0th message.
abc
OK
AT+CSDH=1
OK
Set the detailed header
information to display.
AT+CMGR=0
+CMGR: "REC
READ","13510895077",,"15/07/23,20:58:28+32",161,36,
0,0,"+8613010888500",145,3
Read the 0th message.
abc
OK
AT+CSDH?
+CSDH: 0
Query the current parameter
setting of the command.
OK
AT+CSDH=?
+CSDH: (0-1)
OK
Remarks
Query the value range of
current parameter in the
command.

This command is valid in text mode, which can be set by AT+CMGF=1.

This command is not supported on a CDMA network.
Copyright © Neoway Technology Co., Ltd.
36
N720 AT Commands Manual
2.15 Save Settings: +CSAS
Description
To save current settings
Format

AT+CSAS[=<profile>]<CR>

AT+CSAS=?<CR>
Parameter
<profile>:
0: Save settings (or omit the parameter)
Return Value
See the Example.
Example
AT+CSAS
Save settings
OK
AT+CSAS=0
Save settings
OK
AT+CSAS=?
+CSAS: 0
Query the valid parameter values for the
command.
OK
Remarks

You can save only the parameter setting of AT+CSCA and AT+CSMP by
executing this command.

This command is not supported on a CDMA network.
Copyright © Neoway Technology Co., Ltd.
37
Neo_N710E LTE Module AT Command Set
3 GPRS Commands
3.1 Setting PDP Format: CGDCONT
Description
To set the packet data protocol (PDP) format of the GPRS
Format

AT+CGDCONT=[<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp>
[,<h_comp> [,<pd1> [,…[,pdN]]]]]]]]]<CR>

AT+CGDCONT?<CR>

AT+CGDCONT=?<CR>
Parameter
<cid>:(PDP Context Identifier) a numeric parameter that specifies a particular PDP
context definition. The parameter is local to the TE-MT interface and is used in other
PDP context-related commands. The range of permitted values (minimum value = 1) is
returned by the test form of the command.
<PDP_type>:(Packet Data Protocol type) a string parameter. IP Internet Protocol (IETF
STD 5)
<APN>:(Access Point Name) a string parameter which is a logical name that is used to
select the GGSN or the external packet data network. If the value is null or omitted, then
the subscription value will be requested.
<PDP_address>:a string parameter that identifies the MT in the address space applicable
to the PDP. If the value is null or omitted, then a value maybe provided by the TE during
the PDP startup procedure or, failing that, a dynamic address will be requested. The read
form of the command will continue to return the null string even if an address has been
allocated during the PDP startup procedure. The allocated address may be read using the
+CGPADDR command.
<d_comp>:a numeric parameter that controls PDP data compression (applicable for
SNDCP only)
0: off (default if value is omitted)
<h_comp>:a numeric parameter that controls PDP header compression
0: off (default if value is omitted)
<pd1>, … <pdN>:zero to N string parameters whose meanings are specific to the
<PDP_type>
Return Value
See the Example.
Example
AT+CGDCONT=1,"IP", "CMNET"
Set APN.
OK
AT+CGDCONT=1,IP,CMNET
Copyright © Neoway Technology Co., Ltd
The parameter format is incorrect (lack of
quotation marks).
38
N720 AT Commands Manual
ERROR
ERROR is returned.
AT+CGDCONT?
Query the current parameter value.
+CGDCONT:1,"IP","internet","0.0.0.0",0,0
+CGDCONT: 2,"IP","uninet","0.0.0.0",0,0
+CGDCONT: 3,"IP","uninet","0.0.0.0",0,0
OK
AT+CGDCONT=?
Query the value range of parameters.
+CGDCONT:(1-3),"IP",,,(0),(0)
OK
Remarks
V017 and later versions support setting of 3 APNs.
Copyright © Neoway Technology Co., Ltd.
39
N720 AT Commands Manual
3.2 Setting Network APN: +NETAPN
Description
To set the network APN
Format

AT+NETAPN="APN","USERNAME","PASSWORD"<CR>

AT+NETAPN?<CR>
Parameter
APN: GPRS network access point
USERNAME: GPRS user name
PASSWORD: GPRS password
Return Value
OK
Example
AT+NETAPN="CMNET","",""
OK
AT+NETAPN=CMNET,,
ERROR
AT+NETAPN?
+NETAPN:"","",""
Set GPRS APN to CMNET and leave user
account and password blank.
ERROR is returned because the parameter
format is incorrect. A pair of quotation
marks is required for each parameter.
Query the current settings of APN
parameter.
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
40
N720 AT Commands Manual
3.3 Switching Data Mode to Command Mode: +++
Description
To switch the module from the data mode to the command mode
Format
+++
Parameter
N/A
Return Value
See the Example.
Example
+++
Used in external protocol stacks. No
return value
+++
Return value in the transparent TCP/UDP
transmission
OK
+++
OK
Return value in the server transparent
transmission
+++
OK
Remarks
Return value in the CSD

This command can be used in the transparent transmission of external/internal
protocol stack and CSD function.

This command should not end with \r or \n.
Copyright © Neoway Technology Co., Ltd.
41
N720 AT Commands Manual
3.4 Switching Command Mode to Data Mode: ATO
Description
To switch the module from the command mode to the data mode
Format
ATO<CR>
Parameter
N/A
Return Value
CONNECT
CONNECT <text>
NO CARRIER
ERROR
Example
ATO
CONNECT is returned in TCP/UDP transparent
CONNECT
transmission mode and TCP server transparent transmission
mode.
ATO
OK is returned after the mode is switched to data mode
OK
successfully in external protocol dialing.
ATO
CONNECT 9600 is returned after the module is switched to
CONNECT 9600
data mode successfully during the operation of CSD
function.
ATO
ERROR is returned because no transparent transmission link
ERROR
is set up or no external protocol is used for dial-up internet
access.
Remarks

This command is used to switch the command mode to the data mode for dial-up
connection through external protocol stack and transparent transmission through
internal protocol stack.

Commands mode is switched to data mode during the operation of CSD function.
Copyright © Neoway Technology Co., Ltd.
42
N720 AT Commands Manual
3.5 Setting GPRS Attach and Detach: +CGATT
Description
To set GPRS attach and detach
Format
AT+CGATT=<state><CR>
AT+CGATT?<CR>
AT+CGATT=?<CR>
Parameter
<state>: 0, 1
0: indicates detach
1: indicates attach
Return Value
See the Example.
Example
AT+CGATT=1
OK
GPRS attach is set successfully.
AT+CGATT=0
OK
GPRS detach is set successfully.
AT+CGATT=0
GPRS DISCONNECTION is returned if
you run this command after PPP link is
set up (AT+XIIC=1).
GPRS DISCONNECTION
OK
AT+CGATT=0
ERROR
No SIM card is installed, so the module
returns ERROR.
AT+CGATT?
Query the GPRS status.
+CGATT: 0
OK
AT+CGATT=?
+CGATT:(0,1)
Query the valid parameter values for the
command.
OK
Remarks

By default, the module can automatically perform GPRS attach.

Ensure that the GPRS attach is set before the PPP connection is set up.

It is recommended that you add the AT+CGATT? command to the process to query
the GPRS status. If the module returns 1, you can set up PPP connection directly;
otherwise, you need to set GPRS attach manually by executing the command
Copyright © Neoway Technology Co., Ltd.
43
N720 AT Commands Manual
AT+CGATT=1.
3.6 Setting Up a PPP Link: +XIIC
Description
To set up a PPP link
Format

AT+XIIC=<n><CR>

AT+XIIC?<CR> Query the PPP link status
Parameter
<n>: 1
Return Value
See the Example.
Example
AT+XIIC=1
OK
AT+XIIC=1
OK
The module is required to set up a
PPP link.
GPRS DISCONNECTION is
returned because no SIM card is
installed or network abnormality
occurs.
GPRS DISCONNECTION
AT+XIIC?
+XIIC:
1, 10.232.165.29
The PPP link is set up successfully
and the IP address is 10.232.165.29.
There are four spaces before 1.
OK
AT+XIIC?
+XIIC:
0, 0.0.0.0
The PPP link has not been set up
successfully.
There are four spaces before 0.
OK
GPRS DISCONNECTION
Remarks
PPP link is disconnected.
Ensure that the module has registered the network before you use the AT+XIIC=1
command to set up PPP link. You can use AT+GREG? to check whether the module has
registered the network or not. If +CREG: 0,1 or +CREG: 0,5 is returned, the module has
registered the network.
Copyright © Neoway Technology Co., Ltd.
44
N720 AT Commands Manual
4 TCP/UDP Data Service
4.1 Setting Up TCP link: +TCPSETUP
Description
To set up a TCP link
Format
AT+TCPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 4
<ip>:Destination IP address, in xx.xx.xx.xx or domain name format
<port>:Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+TCPSETUP=0,220.199.66.56,6800
OK
The link to 220.199.66.56,6800 is
successfully set up on socket 0.
+TCPSETUP:0,OK
AT+TCPSETUP=0,neowayjsr.oicp.net,60010
OK
+TCPSETUP:0,OK
The connection to
neowayjsr.oicp.net,60010 is set up on
socket 0 successfully.
+TCPCLOSE:0,Link Closed
The link is closed.
AT+TCPSETUP=1,192.168.20.6,7000
Failed to set up the connection to
192.168.20.6,7000 on socket 1. The
server is probably not started, the IP
address is incorrect, or the SIM card is
out of credit.
OK
+TCPSETUP:1,FAIL
AT+TCPSETUP=0,neowayjsr.oicp.net,60010
+TCPSETUP:0,FAIL
A TCP/UDP link has been set up on
socket 0.
AT+TCPSETUP=5,192.168.20.6,7000
The socket number is incorrect.
+TCPSETUP:ERROR
AT+TCPSETUP=0.58.60.184.213.10012
+TCPSETUP:ERROR
The punctuations in the command are
incorrect.
AT+TCPSET=0,58.60.184.213,10012
The AT command is not complete.
ERROR
Remarks
Use the AT+XIIC=1 command to set up a PPP link before running this command.
Copyright © Neoway Technology Co., Ltd.
45
N720 AT Commands Manual
4.2 Sending TCP Data: +TCPSEND
Description
To send TCP data
The module will returns > after this command is sent. Send TCP data 50 ms to 100 ms
later.
Format
AT+TCPSEND=<n>,<length><CR>
Parameter
<n>: Socket number, ranging from 0 to 4. A TCP link is established on the socket.
<length>: The length of the data to be sent, ranging from 1 to 2048, unit: byte.
Return Value
See the Example.
Example
AT+TCPSEND=0,1
>1
1-byte data is successfully sent through
socket 0.
OK
+TCPSEND:0,1
AT+TCPSEND=0,1024
>
Network congestion occurs when
1024-byte data is sent. Only some data is
sent successfully.
+TCPSEND:ERROR
AT+TCPSEND=0,10
>
+TCPSEND:0,OPERATION EXPIRED
AT+TCPSEND=0,1
+TCPSEND:SOCKET ID OPEN FAILED
AT+TCPSEND=0,4097
Remarks
After you input the data sending
command and > is returned, no more data
is entered in one minute. Then the
expiration information is displayed.
One-byte data fails to be sent on socket 0
because the link is not established.
+TCPSEND:DATA LENGTH ERROR
4097-byte data fails to be sent on socket 0
because data length exceeds the limit.
AT+TCPSEND=0
21-byte data is successfully sent through
>
socket 0. The command ends with \r if no
OK
data length is contained. The data length
+TCPSEND:0,21
should not exceed 4096 bytes.

Ensure that the TCP link has been set up before sending TCP data.

It is recommended that you use the AT+IPSTATUS command to check the buffer
size before sending data.

The command supports only char type data if you do not use the
AT+DATAFORMAT command to set the sending format.
Copyright © Neoway Technology Co., Ltd.
46
N720 AT Commands Manual
4.3 Receiving TCP Data: +TCPRECV
Description
To receive TCP data
Format
+TCPRECV:<n>,<length>,<data><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>.
Return Value
See the Example.
Example
+TCPRECV: 0,10,1234567890
10-byte data is successfully received on
socket 0. The data is 1234567890.
+TCPRECV: 0,10,31323334353637383930
10-byte of data is received on socket 0.
The data is 31323334353637383930 in
ASCII format.
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
47
N720 AT Commands Manual
4.4 Closing TCP link: +TCPCLOSE
Description
To close a TCP link
Format
AT+TCPCLOSE=<n><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
Return Value
See the Example.
Example
AT+TCPCLOSE=1
Close the TCP link.
+TCPCLOSE:1,OK
The TCP link on socket 1 is closed
successfully.
AT+TCPCLOSE=5
Socket number error
+TCPCLOSE:ERROR
Remarks
N/A
The TCP link is closed.
+TCPCLOSE:0,Link Closed
The server sends TCP link closing
command or the network encounters
abnormality or weak signals.
N/A
Copyright © Neoway Technology Co., Ltd.
48
N720 AT Commands Manual
4.5 Setting Up UDP link: +UDPSETUP
Description
To set up a UDP link
Format
AT+UDPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
<ip>: Destination IP address, in xx.xx.xx.xx format or domain name format
(www.XXXX.com)
<port>: Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
The link to 220.199.66.560.7000 is
successfully set up on socket 1.
+UDPSETUP:1,OK
AT+UDPSETUP=0,neowayjsr.oicp.net,6001
0
OK
The connection to
neowayjsr.oicp.net,60010 is set up on
socket 0 successfully.
+UDPSETUP:0,OK
AT+UDPSETUP=0,58.60.184.213,11008
+UDPSETUP:0,FAIL
AT+UDPSETUP=1,192.168.20.6,7000
OK
+UDPSETUP:0,FAIL
AT+UDPSETUP=5,192.168.20.6,6800
+UDPSETUP:ERROR
AT+UDPSETUP=0.58.60.184.213.10012
A TCP/UDP link has been set up on
socket 0.
Failed to set up the connection to
192.168.20.6,7000 on socket 1 because
socket 0 is unavailable.
The format or the AT command is
incorrect or the socket number is
incorrect.
+UDPSETUP:ERROR
The punctuations in the command are
incorrect.
AT+UDPSET=0,58.60.184.213,10012
The AT command is not complete.
ERROR
Remarks
Use the AT+XIIC=1 command to set up a PPP link before running this command.
Copyright © Neoway Technology Co., Ltd.
49
N720 AT Commands Manual
4.6 Sending UDP Data: +UDPSEND
Description
To send UDP data
The module will returns > after this command is sent. Send UDP data 50 ms to 100 ms
later.
Format
AT+UDPSEND=<n>,<length><CR>
Parameter
<n>: Socket number, ranging from 0 to 4. A UDP link is established on the socket.
<length>: The length of the data to be sent, ranging from 1 to 1024, unit: byte.
Return Value
Example

If the AT command is input in correct format, the module returns >.

If the command is input in incorrect format, the module returns ERROR.

If the link has not been set up, the module returns +UDPSEND:ERROR.

After entering the command, input the data to be sent until the module returns >.

If the UDP data is sent successfully, the module returns +UDPSEND:<n>,<length>.
<length> indicates the length of data already sent.
AT+UDPSEND=0,2
>11
OK
+UDPSEND:0,2
AT+UDPSEND=0,1024
>
+UDPSEND:ERROR
AT+UDPSEND=0,1025
Send 2-byte data on socket 0. Then send
the characters to be sent 50 ms to 100 ms
after the module returns >.
The data is sent successfully.
Network congestion occurs when
1024-byte data is sent. Only some data is
sent successfully.
+UDPSEND:DATA LENGTH ERROR
1025-byte data fails to be sent on socket 0
because data length exceeds the limit.
AT+UDPSEND=0
21-byte data is successfully sent through
>
socket 0. The command ends with \r if no
OK
data length is contained. The data length
+UDPSEND:0,21
should not exceed 4096 bytes.
AT+UDPSEND=0,10
After you input the data sending
>
command and > is returned, no more data
+UDPSEND:0,OPERATION EXPIRED
is entered in one minute. Then the
expiration information is displayed.
Remarks

Ensure that the UDP link has been set up before sending UDP data.

It is recommended that you use the AT+IPSTATUS command to check the buffer
size before sending data.
Copyright © Neoway Technology Co., Ltd.
50
N720 AT Commands Manual
4.7 Receiving UDP Data: +UDPRECV
Description
To receive UDP data
Format
+UDPRECV:<n>,<length>,<data><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>.
Return Value
See the Example.
Example
+UDPRECV: 0,10,1234567890
10-byte data is successfully received on
socket 0. The data is 1234567890.
+UDPRECV: 0,10,31323334353637383930
10-byte of data is received on socket 0.
The data is 31323334353637383930 in
ASCII format.
Remarks
N/A
4.8 Closing UDP link: +UDPCLOSE
Description
To close the UDP link
Format
AT+UDPCLOSE=<n><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
Return Value
If the value of <n> is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns +UDPCLOSE:<n>,OK.
Example
AT+UDPCLOSE=1
+UDPCLOSE:1,OK
The TCP link on socket 1 is closed
successfully.
AT+UDPCLOSE=5
Socket number error
+UDPCLOSE:ERROR
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
51
N720 AT Commands Manual
4.9 Querying TCP/UDP Link Status: +IPSTATUS
Description
To query the TCP/UDP link status
Format

Parameter
<n>: Socket number, ranging from 0 to 4
Return Value

AT+IPSTATUS=<n><CR>
AT+IPSTATUS=<n><CR> (Non-transparent transmission mode)
+IPSTATUS:<n>,<CONNECT or DISCONNECT>[,<TCP or UDP>,
<send-buffer-size>]
<CONNECT or DISCONNECT>:Socket status, value: CONNECT or
DISCONNECT
<TCP or UDP>:Link type, value: TCP or UDP
<send-buffer-size>:The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte
Example
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP,4096
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,UDP,1024
AT+IPSTATUS=1
A TCP link has been set up on socket 0
and the buffer size is 4096 bytes.
A UDP link has been set up on socket 0
and the buffer size is 1024 bytes.
+IPSTATUS:1,DISCONNECT
No TCP or UDP link is set up on socket
1.
AT+IPSTATU
The AT command is not complete.
ERROR
Remarks
AT+IPSTATUS=5
The socket number in the command is
ERROR
incorrect.
This command can be used to query the status of the link in transparent transmission
mode.
Copyright © Neoway Technology Co., Ltd.
52
N720 AT Commands Manual
4.10 Querying the Status of Data Sent by the TCP Link:
+TCPACK
Description
To query the size of data successfully sent by the TCP server and the size of the data
successfully received
Format

Parameter
<n>:Socket number, ranging from 0 to 4
Return Value

AT+TCPACK=<n><CR>
AT+TCPACK=<n><CR> (Transparent transmission)
+TCPACK:<n>,<data_sent>,<acked_recv>
< data_sent >:Data successfully sent through this socket
<acked_recv>: Data acknowledged by the receiver
+TCPACK:<n>,< DISCONNECT >
No connection is set up on this socket.
+TCPACK:NO TCP LINK
A UDP link has been set up on this socket.
Example
AT+TCPACK=0
+ TCPACK:0,20,20
AT+TCPACK=0
20-byte data has been transmitted from
socket 0 and the receiver acknowledged
20-byte data.
+ TCPACK:0,128,120
128-byte data has been transmitted from
socket 0 and the receiver acknowledged
120-byte data.
AT+TCPACK=1
No connection is set up on socket 1.
+ TCPACK:1,DISCONNECT
AT+TCPACK=2
A UDP link is set up on link 2.
+TCPACK:NO TCP LINK
AT+TCPACK=5
ERROR
Remarks
The socket number in the command is
incorrect.
The values of <data_sent> and <acked_recv>are unsigned 64-bit integers in decimal
ASCII. The unit is byte.
Copyright © Neoway Technology Co., Ltd.
53
N720 AT Commands Manual
5 FTP AT Commands
5.1 Logging In to the FTP Server: +FTPLOGIN
Description
To log in to the FTP server
Format
AT+FTPLOGIN=<ip>,<port>,<user>,<pwd><CR>
Parameter
<ip>:FTP server address
<port>: Port ID of the FTP server, 21
<user>: The user name to log in to the FTP server. The length of the user name cannot
exceed 100 bytes in ASCII code and the user name cannot contain comma (,).
<pwd>: The password for the user account to log in to the FTP server. The length of the
password cannot exceed 100 bytes in ASCII code and the password cannot contain
comma (,).
Return Value
Example

+FTPLOGIN: Error: The format of the AT command is incorrect

+FTPLOGIN:Have Logged In: The user has logged in to the FTP server.

+FTPLOGIN:AT Busy: Last FTP AT command has not been executed completely.

+FTPLOGIN:User logged in: The user logged in to the FTP server successfully.

+FTPLOGIN: 530 Not logged in: The user failed to log in to the FTP server because
the user account or password is incorrect.

+FTPLOGIN:GPRS DISCONNECTION: The user logged in to the FTP server
before a PPP link is set up.
At+FTPLOGIN=219.134.179.52,21,user1,p
wd2009
OK
user1 logs in to the server 219.134.179.52
through port 21 successfully. And the
password for user1 is pwd2009.
+FTPLOGIN:User logged in
AT+FTPLOGIN=58.60.184.213,21,neoway,
neoway
OK
neoway fails to log in to the FTP server
because the connection times out.
+Connection timed out - Auto closed link to
server!
+FTPLOGIN:Error
AT+FTPLOGIN=58.60.184.210,21,neowayf
tp,neowayftp
Copyright © Neoway Technology Co., Ltd.
IP is set incorrectly.
54
N720 AT Commands Manual
OK
+CME ERROR: OTHER ERROR
+FTPLOGIN:Error
AT+FTPLOGIN=58.60.184.213,21,neowayf
tp,neowayftp
OK
Fail to log in to the FTP server.
+FTP:Server Control Link Disconnect
+FTPLOGIN:Error
Remarks

The FTP functions cannot be used together with the internal protocol stack TCP/UDP
function.

You can read or write data on the FTP server only after you logged in to the FTP
server.
5.2 Logging Out from the FTP Server: +FTPLOGOUT
Description
To log out from the FTP server
Format
AT+FTPLOGOUT<CR>
Parameter
N/A
Return Value
See the Example.
Example
AT+FTPLOGOUT
Log out from the FTP server
+FTPLOGOUT:User logged out
OK
AT+FTPLOGOUT
+CME ERROR: INVALID SOCKET ID
Log out of the FTP server because the
FTP server is offline.
ERROR
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
55
N720 AT Commands Manual
5.3 Downloading Data from the FTP Server: +FTPGET
Description
Downloading Data from the FTP Server
Format
AT+FTPGET=<dir&filename>,<type>,<Content or Info> [,<offset>,<len>]<CR>
Parameter
<Dir&filename>: The file path and file name need to read (Note: file path is relative to
the FTP)
<Type>:File transfer mode:
1:ASCII
2:Binary
<Content or Info>:Indicates whether the file content or the file (specified path) is
required。
1:Get file content
2:Get the file or specify the path information
<offset>:Download the offset
<len>: Download the data length if it is empty, then indicate the size of the downloaded
file minus the offset
Return Value

If the AT command format is incorrect,then go back +FTPGET:Error

If FTP is not logged in,then go back +FTPGET:Error Not Login

If the last AT command related to FTP has not finished,then go back +FTPGET:AT
Busy

If the download operation time-out leading to failure (timeout time is 30s), then go
back +FTPGET: Error!TimeOut,means:30s did not receive the data from the server

Go back +FTPGET:<length>,<data>,<length> Indicates the length of the data,
<data> Indicates the data content

Go back +FTPGET:OK.total length is <n>, Data read successfully,Read data length
is n

Go back +FTP:Server Data Link Disconnect Indicates that the data link is broken,
the data link is automatically connected when re-upload / download

Example
Go back +FTP:Server Control Link Disconnect Indicates that the control link is
disconnected , This message prompts the customer that the link has been
disconnected for a long time due to unused links or other reasons,customer need to
get through AT+FTPLOGIN connect FTP again,this return message does not
necessarily appear when the instruction is executed,when the control link is broken
will prompt the customer,customer needs to connect FTP again.
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rw-
Copyright © Neoway Technology Co., Ltd.
1 user
group
0 Apr 14 15:55 .
Get the
informati
on in the
56
N720 AT Commands Manual
drw-rw-rw-
1 user
group
-rw-rw-rw-
1 user
group
-rw-rw-rw-
1 user
group
0 Apr 14 15:55 ..
1238528 Jan 14 10:36 1M.doc
root
directory
10 Jan 15 15:01 test.txt
+FTPGET:OK.total length is 446
AT+FTPGET=test.txt,1,2
+FTPGET:65,-rw-rw-rw-
1 user
group
10 Jan 15 15:01 test.txt
+FTPGET:OK.total length is 65
AT+FTPGET=t.txt,1,1,2,122
+FTPGET:120,1111111111111111112314567987231234567897894561234
5646578978645453123654789465316544656541236454564654657897895
6431232154
+FTPGET:OK.total length is 120
+FTP:Server Data Link Disconnect
AT+FTPGET=t.txt,1,1,20
+FTPGET:102,2314567987231234567897894561234564657897864545312
36547894653165446565412364545646546578978956431232154
+FTPGET:OK.total length is 102
+FTP:Server Data Link Disconnect
AT+FTPGET=test.txt,1,1
+FTPGET:10,123456780
Get the
informati
on of the
file
test.txt
Instructio
ns with
offset and
len
parameter
s to get
the file
t.txt
informati
on
The
instructio
n with the
offset
parameter
to get the
informati
on for the
file t.txt
Get the
content of
the file
test.txt
+FTPGET:OK.total length is 10
+FTP:Server Data Link Disconnect
Remarks
NULL
Copyright © Neoway Technology Co., Ltd.
57
N720 AT Commands Manual
5.4 Uploading Data to the FTP Server: +FTPPUT
Description
To upload data to the FTP server
Format
AT+FTPPUT=<filename>,<type>,<mode>,<size><CR>
Parameter
<filename>: The name of the file to be uploaded
<type>: File transfer mode
1: ASCII
2: Binary
<mode>: Operation mode
1: STOR mode. Create a file on the FTP server and write the data to the file. If the file
exists, the original file will be overwritten.
2: APPE mode. Create a file on the FTP server and write the data to the file. If the file
exists, the data is attached to the end of the file.
3: DELE mode. Delete a file.
<size>: Data length. The data length cannot exceed 1024.
Return Value
Example

+FTPPUT: Error: The format of the AT command is incorrect.

+FTPPUT:Error Not Login: The user has not logged in to the FTP server.

+FTPPUT:AT Busy: Last FTP AT command has not been executed completely.

+FTPPUT:SIZE Error: The value of <length> is greater than 1024.

+FTPPUT:OK,<n>: The file is sent successfully and the file length is n.

+FTPPUT:Delete File OK: The file is deleted successfully.

+FTPPUT:Error send data error: You enter an FTP command that cannot be
identified. The module will disconnect with the FTP server proactively.
AT+FTPPUT=test.txt,1,1,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=t.txt,1,1,1
+FTP:Create data link Error
AT+FTPPUT=test.txt,1,2,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=tt.txt,1,1,1024
>
+FTPPUT:OPERATION EXPIRED
Copyright © Neoway Technology Co., Ltd.
Upload the text.txt file, which is 1024
bytes. The file is transferred in ASCII and
the operated in STOR.
Upload the file again after deleting it.
An error is returned for the first time.
Upload the text.txt file, which is 1024
bytes. The file is transferred in ASCII and
the operated in APPE.
After you input the uploading command
and > is returned, no more data is entered
in one minute. Then the expiration
58
N720 AT Commands Manual
information is displayed.
AT+FTPPUT=Test\test.txt,1,2,1024
Upload the test.txt file, which is 1024
bytes (to the Test folder in the root
directory of the FTP server). The file is
transferred in ASCII mode and operated
in APPE.
>
+FTPPUT:OK,1024
AT+FTPPUT=test.txt,1,3,0
Delete the test.txt file.
+FTPPUT:Delete File OK
AT+FTPPUT=FTP\1024.txt,1,1,1024
No FTP folder under the FTP server root
directory.
Data uploading fails.
>
+FTPPUT:Send Fail
AT+FTPPUT=zhang\1024.txt,1,3
Command format is incorrect. <size> is
not set.
+FTPPUT:MODE Error
Remarks
Data can be uploaded to cascading directories.
5.5 Querying FTP Link Status: +FTPSTATUS
Description
To query the FTP link status
Format
AT+FTPSTATUS<CR>
Parameter
N/A
Return Value
+FTPSTATUS:<status>,<ip>, <port>
<status>:
0: The FTP link has not been set up.
1: The FTP link has been set up.
<ip>: The IP address of the FTP server
<port>: The port of the FTP server
Example
AT+FTPSTATUS
Query the FTP link status.
+FTPSTATUS:1,119.139.221.66,21
The module is successfully connected to the
FTP server. The IP address of the FTP
server is 119.139.221.66 and the port is 21.
AT+FTPSTATUS
The FTP link has not been set up.
+FTPSTATUS:0,0.0.0.0,21
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
59
N720 AT Commands Manual
6 TCP Server AT Commands
6.1 Setting TCP Listening for the Server: +TCPLISTEN
Description
To set the TCP listening function of the server
Format

AT+TCPLISTEN=<port><CR>

AT+TCPLISTEN?<CR>
Parameter
<Port>: Port ID
<Socket>:SOCKET ID
Return Value
See the Example.
Example
AT+TCPLISTEN=6800
Listening port ID: 6800
+TCPLISTEN:0,OK
or
The listening function of the server is
started.
+TCPLISTEN:bind error
Failed to bind
AT+TCPLISTEN=6800
Transparent listening has been set.
Listening...
AT+TCPLISTEN?
+TCPLISTEN:listening status
AT+TCPLISTEN?
+TCPLISTEN:not listening
Query the listening status. Here the
server is in the listening status.
Query the listening status. Here the
server is not in the listening status.
Connect AcceptSocket=1,ClientAddr=119.123.77.133,ClientPort=8000
Receive the connection request from the client. AcceptSocket indicates the socket ID on
the module, and 119.123.77.133 is the IP address of the client.
Remarks
Only the SIM cards with fixed IP addresses can be used as servers.
Copyright © Neoway Technology Co., Ltd.
60
N720 AT Commands Manual
6.2 Closing the Listening Link: +CLOSELISTEN
Description
To close the listening connection
Format
AT+CLOSELISTEN<CR>
Parameter
N/A
Return Value
See the Example.
Example
+CLOSELISTEN:0,local link closed
Abnormalities might occur on the
network or the client disconnects the
link.
AT+CLOSELISTEN
The local link will be closed if there is
any link to the client.
+CLOSELISTEN:0,local link closed
AT+CLOSELISTEN
+CLOSELISTEN:Transparent local link
closed
Remarks
This message is displayed in transparent
transmission mode.
N/A
Copyright © Neoway Technology Co., Ltd.
61
N720 AT Commands Manual
6.3 Closing Connections of the Client: +CLOSECLIENT
Description
To close all connections with the client
Format

Parameter
<Socket>:Socket ID
Return Value
See the Example.
Example
AT+CLOSECLIENT=1
AT+CLOSECLIENT=<Socket><CR>
Close the socket 1 connection with the client.
+CLOSECLIENT:1,remote link closed
AT+CLOSECLIENT
+CLOSECLIENT:0,remote link closed
All connections with the client are closed
successfully.
+CLOSECLIENT:1,remote link closed
AT+CLOSECLIENT
+CLOSECLIENT:transparent remote
link closed
Remarks
The remote link is closed in transparent
transmission mode.
N/A
Copyright © Neoway Technology Co., Ltd.
62
N720 AT Commands Manual
6.4 Receiving Data from the Client: +TCPRECV(S)
Description
To receive data from the client
Format
+TCPRECV(S):<n>,<length>,<data><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>.
Return Value
See the Example.
Example
+TCPRECV(S):1,10,1234567899
Socket 1 receives 10-byte data in
char format from the client.
+TCPRECV(S):0,10,30313233343536373839
Socket 0 receives 10-byte data in
hexadecimal ASSCII format from
the client.
Remarks

Additional (s) makes this command different from the receive mode of the client mode
in format.

The parameters are different from those of the client mode.
Copyright © Neoway Technology Co., Ltd.
63
N720 AT Commands Manual
6.5 Sending Data to the Client: +TCPSENDS
Description
To send data to the client
Format
AT+TCPSENDS=<socket>,<length><CR>
Parameter
<socket>: The value of AcceptSocket, that is, the socket of the module. See the
description of the AT+TCPLISTEN command.
<length>: The length of the data to be sent, value ranges from 1 to 1024, unit: byte.
Return Value
See the Example.
Example
AT+TCPSENDS=0,10
>1234567890
10-byte data is successfully sent through
socket 0.
OK
+TCPSENDS:0,10
AT+TCPSENDS=0,536
>1234567890…
+TCPSENDS:Buffer not enough,439
536-byte data is sent on socket 0. Failed to
transmit the data because internal buffer is
insufficient.
AT+TCPSENDS=0
21-byte data is successfully sent through
>
socket 0. The command ends with \r if no data
OK
length is contained. The data length should not
+TCPSENDS:0,21
exceed 4096 bytes.
AT+TCPSENDS=0,1024
The module (server) sends TCP data and
>
encounters data congestion.
+TCPSENDS:ERROR
AT+TCPSENDS=0,10
The module (server) fails to set up link to
+TCPSENDS:0 is not link
socket 0.
AT+TCPSENDS=0
+TCPSENDS:0 is not link
Remarks
AT+TCPSENDS=0,5
After you input the sending command and > is
>
returned, no more data is entered in one
+TCPSENDS:0,OPERATION
minute. Then the expiration information is
EXPIRED
displayed.
Ensure that the TCP link has been set up before sending TCP data.
Copyright © Neoway Technology Co., Ltd.
64
N720 AT Commands Manual
6.6 Querying the Link Status on the Client:
+CLIENTSTATUS
Description
To query the status of the link with the client
Format

Parameter
<socket>: The value of AcceptSocket, that is, the socket of the module. See the
description of the AT+TCPLISTEN command.
Return Value

AT+CLIENTSTATUS[=<socket>]<CR>
AT+CLIENTSTATUS=<socket><CR> (Non-transparent transmission)
+CLIENTSTATUS:<socket>,<CONNECT or DISCONNECT>,<TCP>,
<send-buffer-size>
<CONNECT or DISCONNECT>: Link status, value: CONNECT or DISCONNECT
<TCP>: Link type, value: TCP
<send-buffer-size>: The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte

AT+CLIENTSTATUS<CR> (Transparent transmission)
+CLIENTSTATUS:<CONNECT or DISCONNECT>,<TCP>, <send-buffer-size>
<CONNECT or DISCONNECT>: Link status, value: CONNECT or DISCONNECT
<TCP>: Link type, value: TCP
<send-buffer-size>: The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte
Example
AT+CLIENTSTATUS=0
+CLIENTSTATUS:0,CONNECT,TCP,1024
AT+CLIENTSTATUS
+CLIENTSTATUS:CONNECT,TCP,4096
AT+CLIENTSTATUS
+CLIENTSTATUS:DISCONNECT,TCP,4096
AT+CLIENTSTATUS=1
+CLIENTSTATUS:1,DISCONNECT,TCP,1024
Remarks
A TCP link has been set up with the
socket 0 client and the buffer size is
1024 bytes.
A TCP link has been set up with the
non-transparent transmission client and
the buffer size is 4096 bytes.
No TCP transparent transmission link
is set up. The available buffer is 4096.
No TCP link is set up on socket 1. The
available buffer is 1024 bytes.
This command can be used to query the status of the link with the client in transparent
transmission mode.
Copyright © Neoway Technology Co., Ltd.
65
Neo_N710E LTE Module AT Command Set
7 HTTP Commands
7.1 Setting HTTP Parameters: +HTTPPARA
Description
To set HTTP parameters
Format
AT+HTTPPARA=<para>,<para_value><CR>
Parameter
<para>: HTTP parameters, supporting the following two parameters:
url: Destination path
port: Destination port ID (no default value)
<para_value>: The value of <para>. The value of url contains at most 128 bytes and url
supports domain name translation. The default port is 80.
Return Value
See the Example.
Example
AT+HTTPPARA =url,www.neoway.com.cn/en/index.aspx
OK
AT+HTTPPARA=url,121.15.200.97/Service1.asmx/GetNote
Set the Neoway
homepage as the URL.
The URL supports
domain name
translation.
Set URL.
OK
AT+HTTPPARA=url,
ERROR
AT+HTTPPARA=port,80
OK
AT+HTTPPARA=port,8080
OK
Remarks
The AT command is not
complete.
Set the destination port
ID to 80.
Set the destination port
ID to 8080.
N/A
Copyright © Neoway Technology Co., Ltd
66
N720 AT Commands Manual
7.2 Setting Up HTTP Connection: +HTTPSETUP
Description
To set up an HTTP connection
Format
AT+HTTPSETUP<CR>
Parameter
N/A
Return Value
See the Example.
Example
AT+HTTPSETUP
Set up an HTTP connection
OK
Successful
HTTP SETUP OK
AT+HTTPSETUP
Set up an HTTP connection
OK
+DNS:FAILED
Failed to translate DNS.
AT+HTTPSETUP
Set up an HTTP connection
ERROR
Failed because port is not set before
setting up the HTTP connection.
AT+HTTPSETUP
Failed to set up an HTTP connection
+HTTPSETUP:ERROR
Remarks
AT+HTTPSETUP
Set up an HTTP connection
HTTPCLOSE:Link Closed
Failed because of improper HTTP setting.

The connection is set up successfully only after you set the destination address and
port ID correctly.

Ensure that a network connection has been set up successfully before setting an HTTP
connection.
Copyright © Neoway Technology Co., Ltd.
67
N720 AT Commands Manual
7.3 Executing HTTP Request: +HTTPACTION
Description
To execute an HTTP request
Format
AT+HTTPACTION=<mode>[,<length>[,<type>]]<CR>
Parameter
<mode>: HTTP request mode, available value can be 0, 1, 2, 99
0: GET
1: HEAD
2: POST
99: OPEN_MODE, user-defined packet mode
<length>: The length of the POST content or user-defined packet length, maximum value
2048
This parameter must be set when you set <mode> to POST or OPEN_MODE.
<type>: POST request data type
0: x-www-form-urlencoded
1: text
2: json
3: xml
4: html
Return Value
See the Example.
Example
AT+HTTPPARA=url,www.neoway.com.cn/en/index.as
px
Set the destination path.
OK
The port is 8030.
AT+HTTPPARA=port,80
OK
Set up an HTTP connection.
AT+HTTPSETUP
OK
GET request
HTTP SETUP OK
AT+HTTPACTION=0
OK
Receive the response from the
HTTP server.
+HTTPRECV:HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Copyright © Neoway Technology Co., Ltd.
68
N720 AT Commands Manual
Server: Microsoft-IIS/7.5
Set-Cookie:
ASP.NET_SessionId=rh3fjg554ufzb145aevgzz45;
path=/; HttpOnly
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE7
Date: Wed, 02 Mar 2016 06:52:35 GMT
Connection: close
The server finished the
response and disconnected the
connection.
Content-Length: 13842
/*neoway homepage, html format, 13842 bytes*/
……..
/* neoway homepage*/
+HTTPCLOSE:Link Closed
AT+HTTPPARA
=url,www.neoway.com.cn/en/index.aspx
Set the destination path.
OK
The port is 80.
AT+HTTPPARA=port,80
Set up an HTTP connection
OK
HEAD request
AT+HTTPSETUP
OK
The HTTP server responds.
HTTP SETUP OK
AT+HTTPACTION=1
OK
+HTTPRECV:
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 13842
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
Set-Cookie:
ASP.NET_SessionId=znt4fqabqsuclz55pvfufn55;
path=/; HttpOnly
Copyright © Neoway Technology Co., Ltd.
69
N720 AT Commands Manual
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE7
Date: Thu, 28 Nov 2013 03:32:35 GMT
Connection: close
+HTTPCLOSE:Link Closed
AT+HTTPPARA=url,121.15.200.97/Service1.asmx/Ge
tNote
Set destination path
OK
AT+HTTPPARA=port,8080
Set the destination port ID as
8080.
OK
Set up an HTTP connection
AT+HTTPSETUP
OK
POST request.
HTTP SETUP OK
Send 23 bytes; enter the
contents to be uploaded after >
is displayed.
AT+HTTPACTION=2,23
>MAC=NEOWAY&DATA=0123456
OK
Receive the response from the
HTTP server.
+HTTPRECV:HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 02 Mar 2016 06:55:15 GMT
Connection: close
Content-Length: 98
<?xml version="1.0" encoding="utf-8"?>
The server replies an XML file
containing the uploaded content
NEOWAY and 0123456.
The server disconnected with
the module after it finished
responding.
<string xmlns="http://wsliu.cn/">NEOWAY+0123456
</string>
+HTTPCLOSE:Link Closed
Copyright © Neoway Technology Co., Ltd.
70
N720 AT Commands Manual
AT+HTTPPARA=url,www.neoway.com.cn/en/index.as
px
Set destination path
OK
The HTTP connection is set up
through port 80.
AT+HTTPPARA=port,80
OK
AT+HTTPSETUP
OK
HTTP SETUP OK
AT+HTTPACTION=99,76
Send 167-byte user-defined
packets
>HEAD /en/index.aspx HTTP/1.1
connection: close
HOST: www.neoway.com.cn
OK
+HTTPRECV:
Receive the response from the
HTTP server.
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 13842
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
Set-Cookie:
ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk;
path=/; HttpOnly
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE7
Date: Thu, 28 Nov 2013 05:40:24 GMT
Connection: close
The server disconnects with the
module after it finishes
responding.
+HTTPCLOSE:Link Closed
AT+HTTPACTION=0
+HTTPACTION:SOCKET ID OPEN FAILED
Copyright © Neoway Technology Co., Ltd.
PPP is not enabled or SOC
connection encountered an
error.
71
N720 AT Commands Manual
AT+HTTPACTION=0
Failed to send data.
+HTTPSETUP:ERROR
AT+HTTPACTION=2,adasd
Other errors
ERROR
Remarks

You need to comply with the HTTP protocol when defining packets.

Add a carriage return to the end of the packets if the HTTP request is set to custom
packet mode.
7.4 Closing an HTTP Connection: +HTTPCLOSE
Description
To close an HTTP connection
Format
AT+HTTPCLOSE<CR>
Parameter
N/A
Return Value
See the Example.
Example
AT+HTTPCLOSE
Close the HTTP connection.
OK
+HTTPCLOSE:Link Closed
Unsolicited report after connection is closed successfully.
AT+HTTPCLOSE
OK
Remarks
OK is returned

After you run the +HTTPCLOSE command, the HTTP connection is closed and the
setting of +HTTPPARA is cleared.

Only OK is returned after running this command if the HTTP connection is
connecting.
Copyright © Neoway Technology Co., Ltd.
72
N720 AT Commands Manual
7.5 Receiving HTTP Data: +HTTPRECV
Description
To report the data received from the HTTP connection
Format
<CR><LF>HTTPRECV:<CR><LF><data>
Parameter
<data>: Data received through the HTTP connection
Return Value
See the Example.
Example
+HTTPRECV:
Report the data received
from the HTTP
connection.
HTTP/1.1 200 OK
Cache-Control:private
Content-Length: 13842
Content-Type:text/html; charset=utf-8
Server:Microsoft-IIS/7.5
Set-Cookie:ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk;
path=/; HttpOnly
X-AspNet-Version: 2.0.50727
X-Powered-By:ASP.NET
X-UA-Compatible:IE=EmulateIE7
Date:Thu, 28 Nov 2013 05:40:24 GMT
Connection:close
+HTTPCLOSED: Link Closed
Remarks
N/A
7.6 HTTP Connection Closing: +HTTPCLOSE
Description
Unsolicited report of the HTTP connection closing
Format
<CR><LF>+HTTPCLOSE:Link Closed<CR><LF>
Parameter
N/A
Return Value
See the Example.
Example
+HTTPCLOSED:Link Closed
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
Unsolicited report of the HTTP connection closing
73
N720 AT Commands Manual
8 HTTPS Command
8.1 Setting HTTPS Parameters: +HTTPSPARA
Description
To set HTTPS parameters
Format
AT+HTTPSPARA=<para>,<para_value><CR>
Parameter
<para>: HTTP parameters, supporting the following two parameters:
url: Destination path
port: Destination port ID
<para_value>: The value of <para>. The value of url contains at most 128 bytes and url
supports domain name translation. The default port ID is 443.
Return Value
See the Example.
Example
AT+HTTPSPARA=url,www.alipay.com/index.html
OK
Set the alipay homepage
as the URL. The URL
supports domain name
translation.
AT+HTTPSPARA=url,support.cdmatech.com/index.html
Set URL.
OK
AT+HTTPSPARA=url,
ERROR
AT+HTTPSPARA=port,443
OK
Remarks
Incorrect AT command
format.
Set the destination port
ID to 443.

You need to set new HTTP parameters for new HTTPS requests.

After you run the +HTTPSCLOSE command, the connection is closed.
Copyright © Neoway Technology Co., Ltd.
74
N720 AT Commands Manual
8.2 Setting up an HTTPS Connection: +HTTPSSETUP
Description
To set up an HTTP connection
Format
AT+HTTPSSETUP<CR>
Parameter
N/A
Return Value
See the Example.
Example
AT+HTTPSSETUP
Set up an HTTPS connection
OK
Successful
HTTPS SETUP OK
Remarks
AT+HTTPSSETUP
Set up an HTTPS connection
ERROR
Failed.
The connection is set up successfully only after you set the destination address and port
ID correctly.
Copyright © Neoway Technology Co., Ltd.
75
N720 AT Commands Manual
8.3 Executing HTTPS Request: +HTTPSACTION
Description
To execute an HTTPS request
Format
AT+HTTPSACTION=<mode>[,<length>]<CR>
Parameter
<mode>: HTTPS request mode, available value can be 0, 1, 2, 99
0: GET
1: HEAD
2: POST
99: OPEN_MODE, user-defined packet mode
<length>: POST content length or custom packet length; mandatory when <mode> is set
to POST or OPEN_MODE, 2048 at most.
Return Value
See the Example.
Example
AT+HTTPSPARA=url,www.alipay.com/ index.html
Set the destination path.
OK
AT+HTTPSPARA=port,443
Set the destination port.
OK
Set up an HTTPS
connection.
AT+HTTPSSETUP
OK
HTTPS SETUP OK
AT+HTTPSACTION=0
GET request.
OK
+HTTPSRECV:
Receive the request
from the HTTPS server.
HTTP/1.1 200 OK
Server: spanner/1.0.96
Date: Fri, 01 Aug 2014 03:02:34 GMT
Content-Type: text/html; charset=gbk
Content-Length: 56028
Connection: close
Last-Modified: Wed, 23 Jul 2014 07:51:38 GMT
Strict-Transport-Security: max-age=31536000
Accept-Ranges: bytes
Set-Cookie:
spanner=Z761rjOVBLsAdq8c3/Rwpd9j7dWQJZjm;path=/;sec
ure;
The server responded
and then disconnected
the connection.
/*alipay homepage content, html format, 56028 bytes*/
……..
/* alipay homepage content*/
+HTTPSCLOSE:Link Closed
Copyright © Neoway Technology Co., Ltd.
76
N720 AT Commands Manual
AT+HTTPSPARA=url,www.alipay.com/index.html
Set the destination path.
OK
AT+HTTPSPARA=port,443
Set the destination port.
OK
Set up an HTTPS
connection.
AT+HTTPSSETUP
OK
HTTPS SETUP OK
AT+HTTPSACTION=1
HEAD request
OK
+HTTPSRECV:
The HTTPS server
responded.
HTTP/1.1 200 OK
Server: spanner/1.0.6
Date: Fri, 01 Aug 2014 03:05:41 GMT
Content-Type: text/html; charset=gbk
Content-Length: 56028
Connection: close
Last-Modified: Wed, 23 Jul 2014 07:51:40 GMT
Strict-Transport-Security: max-age=31536000
Accept-Ranges: bytes
Set-Cookie:
spanner=G0TDss3KCl08k1dgppqS1y6qNx1FfX2V;path=/;sec
ure;
+HTTPSCLOSED:Link Closed
AT+HTTPSPARA=url,www.alipay.com/index.html
Set the destination path.
OK
AT+HTTPSPARA=port,443
Set the port.
OK
Set up an HTTPS
connection.
AT+HTTPSSETUP
OK
HTTPS SETUP OK
AT+HTTPSACTION=99,69
>HEAD /index.html HTTP/1.1
HOST:www.alipay.com
connection: close
Send 69-byte custom
packets.
The HTTPS server
responded.
OK
+HTTPSRECV:
Copyright © Neoway Technology Co., Ltd.
77
N720 AT Commands Manual
HTTP/1.1 200 OK
Server: spanner/1.0.6
Date: Sat, 02 Aug 2014 06:06:21 GMT
Content-Type: text/html; charset=gbk
Content-Length: 56059
Connection: close
Last-Modified: Fri, 01 Aug 2014 07:45:49 GMT
Strict-Transport-Security: max-age=31536000
Accept-Ranges: bytes
Set-Cookie:
spanner=LBKsxiiZAaTeM3wRYcCaUtMjpheSwnH+;path=/;s
ecure;
The server closed the
link after responding.
+HTTPSCLOSED:Link Closed
Remarks
You need to comply with the HTTP protocol when defining packets.
8.4 Closing HTTPS Connection: +HTTPSCLOSE
Description
To close an HTTPS connection
Format
AT+HTTPSCLOSE<CR>
Parameter
N/A
Return Value
See the example.
Example
AT+HTTPSCLOSE
Close the HTTPS connection.
OK
Remarks
After you run the +HTTPSCLOSE command, the HTTPS connection is closed and the
setting of +HTTPPARA is saved.
8.5 HTTPS Closing: +HTTPSCLOSED
Description
Unsolicited report of the HTTPS connection closing
Format
<CR><LF>+HTTPSCLOSED:Link Closed <CR><LF>
Parameter
N/A
Return Value
See the Example.
Example
+HTTPSCLOSED:Link Closed
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
Unsolicited report of the HTTP connection closing
78
N720 AT Commands Manual
9 Other Commands
9.1 Locking BCCH Channel: $MYBCCH
Description
To lock BCCH channel
Format

AT$MYBCCH=<mode>[,<bcch1>,<bcch2>,<bcch3>]<CR>

AT$MYBCCH?<CR>

AT$MYBCCH=?<CR>
Parameter
<mode>: Integer. The settings of locked channel can be saved after the module is
powered off only if you run AT$MYBCCH=1,XX. If the BCCH locked does not exist or
its signal is weak, the module cannot register network.
0: Unlock
1: Lock the BCCH cell
2: List IDs of seven BCCH channels that have the strongest signals at current place.
<bcch>: channel ID
<num>: the number of BCCH channels in the BA list (7 at most)
<mcc>: Mobile country code
<mnc>: mobile network code
<lac>: Location ID, four-byte characters in hexadecimal format
<cell-id>: Cell ID, hexadecimal
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>$MYBCCH: +BA(num): <CR><LF>
<CR><LF><bcch1>,<mcc1>,<mnc1>,<lac1>,<cell-id1>
<CR><LF><bcch2>,<mcc2>,<mnc2>,<lac2>,<cell-id2>
<CR><LF><bcch3>,<mcc3>,<mnc3>,<lac3>,<cell-id3>
...
<CR><LF>OK<CR><LF>
<CR><LF>$MYBCCH: <bcch1>,<mcc1>,<mnc1>,<lac1>,<cell-id1>
<CR><LF>OK<CR><LF>
<CR><LF>$MYBCCH: UNLOCKED
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
<CR><LF>$MYBCCH: <mode list>,<bcch1>,…<bcch3>
<CR><LF>OK<CR><LF>
Example
AT$MYBCCH=2
$MYBCCH: +BA(7):
120,460,1,2543,A85D
List IDs of seven BCCH channels that
have the strongest signals at current
place.
734,460,1,2543,AB12
118,460,1,2543,A8AD
Copyright © Neoway Technology Co., Ltd.
79
N720 AT Commands Manual
115,460,1,2543,A9A7
124,460,1,2543,A85F
731,460,1,2543,B046
123,460,1,2543,A8A5
OK
AT$MYBCCH=1,120
Lock channel 120.
OK
AT$MYBCCH=?
$MYBCCH: (0,1,2),120,0,0
OK
AT$MYBCCH?
Query the value range of parameters in
this command. Channels 120 can be
locked.
Query channels that are locked currently.
$MYBCCH: 734,460,1,2543,AB12
OK
AT$MYBCCH=0
Unlock
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
80
N720 AT Commands Manual
9.2 Locking GSM Band: $MYBAND
Description
To lock the specified GSM band
Format

AT$MYBAND=<band><CR>

AT$MYBAND?<CR>
Parameter
<band>: Band to be locked. The setting of this parameter will be saved after the module is
powered off.
0: Select a band automatically
1: GSM_EGSM_900
2: GSM_DCS_1800
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>ERROR: <err><CR><LF>
<CR><LF>$MYBAND: <band>
<CR><LF>OK<CR><LF>
AT$MYBAND=1
OK
Example
AT$MYBAND?
$MYBAND: 1
OK
Remarks
N/A
9.3 Querying Current LAC and CELL_ID: $MYLACID
Description
To query current LAC and CELL_ID
Format
AT$MYLACID<CR>
Parameter
<LAC>: Location Area Code, hexadecimal
<CELL_ID>: CELL_ID, hexadecimal
Return Value
<CR><LF>ERROR<CR><LF>
<CR><LF>$MYLACID: <LAC>,<CELL_ID>
<CR><LF>OK<CR><LF>
Example
AT$MYLACID
Query the current location of the user.
$MYLACID: 2543,a85d
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
81
N720 AT Commands Manual
9.4 Querying Current Channel, RX Power and TX Power:
$MYCGED
Description
To query current channel, RX power and TX power
Format
AT$MYCGED<CR>
Parameter
<Channel>: channel
<Rx power>: RX power, unit dBm (199 indicates invalid value)
<Tx power>: TX power, unit dBm (199 indicates invalid value)
Return Value
<CR><LF>ERROR<CR><LF>
<CR><LF>$MYCGED: <Channel>,<Rx power>,<Tx power>
<CR><LF>OK<CR><LF>
Example
AT$MYCGED
$MYCGED: 48,-75,25
The current channel is 48, RX power is -75
dBm, and TX power is 25dBm.
OK
AT$MYCGED
$MYCGED: 48,-44,199
The current channel is 48, RX power is -75
dBm, and no TX power.
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
82
N720 AT Commands Manual
9.5 Querying or Locking the Network Mode:
$MYSYSINFO
Description
To query or lock the network mode
Format

AT$MYSYSINFO=<SysMode><CR>

AT$MYSYSINFO<CR>

AT$MYSYSINFO=?<CR>
Parameter
< SysMode >: Network mode
1: AUTO (default)
2: 2G (including GSM, EDGE, CDMA)
3: 3G (including WCDMA, TD-SCDMA, EVDO)
4: 4G (including FDD-LTE, TDD-LTE)
5: 2G + 3G (including GSM, EDGE, CDMA, WCDMA, TD-SCDMA, EVDO)
6: 2G + 4G (including GSM, EDGE, CDMA, FDD-LTE, TDD-LTE)
7: 3G + 4G (including WCDMA, TD-SCDMA, EVDO, FDD-LTE, TDD-LTE)
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
<CR><LF>$MYSYSINFO: <SysMode>,<mnc>
<CR><LF>OK<CR><LF>
< SysMode >: network mode
0: No service
2: 2G (including GSM, EDGE, CDMA)
3: 3G (including WCDMA, TD-SCDMA, EVDO)
4: 4G (including FDD-LTE, TDD-LTE)
<mnc>: Network carrier code
00: Fail to register
01: China Mobile
02: China Unicom
03: China Telecom
<CR><LF>$MYSYSINFO: (list of supported < SysMode >s)
<CR><LF>OK<CR><LF>
Example
AT$MYSYSINFO
$MYSYSINFO: 4,01
The module registered the 4G network of
China Mobile.
OK
AT$MYSYSINFO=1
OK
AT$MYSYSINFO=?
$MYSYSINFO: 1-7
OK
Copyright © Neoway Technology Co., Ltd.
83
N720 AT Commands Manual
Remarks
When you set the network mode to any non-AUTO mode, the module will
automatically check the network status.

If the module registers a network, it will determine whether the network is the
mode set by the command. The module will switch to the set network if the
registered network is not the mode set by the command.

If the module fails to register any network within 2 minutes, the module will
automatically switch to the AUTO mode.
9.6 Enabling/Disabling Network Mode Report:
$MYSYSINFOURC
Description
To enable/disable the network mode report of the module
Format

AT$MYSYSINFOURC=<ONOFF><CR>

AT$MYSYSINFOURC?<CR>
Parameter
<ONOFF>: integer type
0: Disable network status report (default)
1: Enable network status report
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>$MYSYSINFOURC: <ONOFF>
<CR><LF>OK<CR><LF>
Example
AT$MYSYSINFOURC=1
OK
Remarks
N/A
9.7 Enabling/Disabling Network Mode Report:
$MYURCSYSINFO
Description
To enable/disable the network mode report of the module
Format

AT$MYURCSYSINFO=<ONOFF><CR>

AT$MYURCSYSINFO?<CR>
Parameter
<ONOFF>: integer type
0: Disable network status report (default)
1: Enable network status report
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>$MYURCSYSINFO: <ONOFF>
<CR><LF>OK<CR><LF>
Example
AT$MYURCSYSINFO=1
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
84
N720 AT Commands Manual
9.8 Unsolicited Network Mode Report:
$MYURCSYSINFO
Description
Unsolicited network mode report
Format
<CR><LF>$MYURCSYSINFO: <SysMode>,<mnc><CR><LF>
Parameter
< SysMode >: Network mode
0: No service
2: 2G (including GSM, EDGE, CDMA)
3: 3G (including WCDMA, TD-SCDMA, EVDO)
4: 4G (including FDD-LTE, TDD-LTE)
<mnc>: Network carrier code
00: Fail to register
01: China Mobile
02: China Unicom
03: China Telecom
Example
AT$MYSYSINFOURC=1
OK
The module registered
the 3G network of
China Mobile.
$MYURCSYSINFO: 3,01
Remarks
The module will be offline during network switch.
During a TCP connection, the module will switch networks unless the carrier forces a
switch or any switch condition (e.g. RSSI change or network capability change) is
triggered.
Copyright © Neoway Technology Co., Ltd.
85
N720 AT Commands Manual
9.9 Setting Network Mode Choices: $MYNETINFO
Description
To set network mode choices
Format

AT$MYNETINFO=<mode><CR>

AT$MYNETINFO?<CR>

AT$MYNETINFO=?<CR>
Parameter
<mode>: Network mode
1: AUTO
2: 2G (including GSM,EDGE,CDMA)
3: 3G (including WCDMA, TD-SCDMA, EVDO)
4: 4G (including FDD-LTE, TDD-LTE)
5: 2G + 3G (including GSM, EDGE, CDMA, WCDMA, TD-SCDMA, EVDO)
6: 2G + 4G (including GSM, EDGE, CDMA, FDD-LTE, TDD-LTE)
7: 3G + 4G (including WCDMA, TD-SCDMA, EVDO, FDD-LTE, TDD-LTE)
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR: <err><CR><LF>
<CR><LF>$MYNETINFO: <mode>
<CR><LF>OK<CR><LF>
<CR><LF>$MYNETINFO: (list of supported <mode>s)
<CR><LF>OK<CR><LF>
Example
AT$MYNETINFO=0
OK
AT$MYNETINFO?
$MYNETINFO: 0
OK
AT$MYNETINFO=?
$MYNETINFO: 1-7
OK
Remarks
This command is used to support the telecommunication modules interface protocol of
China Southern Power Grid.
Copyright © Neoway Technology Co., Ltd.
86
N720 AT Commands Manual
9.10 Enabling/Disabling the TD-SCDMA Mode:
+GTUMODE
Description
To enable or disable the TD-SCDMA mode
Format

AT+GTUMODE=<ONOFF><CR>

AT+GTUMODE?<CR>

AT+GTUMODE=?<CR>
Parameter
<ONOFF>:
0: Disable TD-SCDMA
2: Enable TD-SCDMA
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
<CR><LF>+GTUMODE: <ONOFF>
<CR><LF>OK<CR><LF>
<CR><LF>+GTUMODE: (list of supported <ONOFF>s)
<CR><LF>OK<CR><LF>
Example
AT+GTUMODE=0
OK
AT+GTUMODE?
+GTUMODE: 0
OK
AT+GTUMODE=?
+GTUMODE: 0,2
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
87
N720 AT Commands Manual
9.11 Enabling/Disabling the Automatic AUTO Setting of
Network Modes During Startup: $MYNETAUTO
Description
To enable/disable the automatic AUTO setting of network modes during startup
Format

AT$MYNETAUTO=<ONOFF><CR>

AT$MYNETAUTO?<CR>
Parameter
<ONOFF>:
0: Disable the automatic AUTO setting of network modes during startup
1: Enable the automatic AUTO setting of network modes during startup
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
<CR><LF>$MYNETAUTO: <ONOFF>
<CR><LF>OK<CR><LF>
Example
AT$MYNETAUTO=0
OK
AT$MYNETAUTO?
$MYNETAUTO: 0
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
88
N720 AT Commands Manual
9.12 Setting System Configurations: ^SYSCONFIG
Description
To set system configurations
Format

AT^SYSCONFIG=<mode>,<acqorder>,<roam>,<srvdomain><CR>

AT^SYSCONFIG?<CR>
Parameter
<mode>: Network mode
2: Auto selection
13: GSM
14: WCDMA
15: TD-SCDMA
16: No change
17: LTE
18: GSM/TDS-CDMA
19: GSM/LTE
20: TDS-CDMA/LTE
21: GSM/WCDMA
22: TDS-CDMA/WCDMA
23: WCDMA/LTE
24: TDS-CDMA/GSM/LTE
25: TDS-CDMA/WCDMA/LTE
26: TDS-CDMA/WCDMA/GSM
27: WCDMA/GSM/LTE
28: Others (this value cannot be set but can be queried)
<acqorder>: Network access order
0: Auto
1: GSM, TD-SCDMA, LTE
2: TD-SCDMA, GSM, LTE
3: No change
4: GSM, LTE, TD-SCDMA
5: TD-SCDMA, LTE, GSM
6: LTE, TD-SCDMA, GSM
7: LTE, GSM, TD-SCDMA
8: GSM, WCDMA, LTE
9: WCDMA, GSM, LTE
10: GSM, LTE, WCDMA
11: WCDMA, LTE, GSM
12: LTE, WCDMA, GSM
13: LTE, GSM, WCDMA
14: TD-SCDMA, WCDMA, LTE
15: WCDMA, TD-SCDMA, LTE
16: TD, LTE, WCDMA
17: WCDMA, LTE, TD-SCDMA
Copyright © Neoway Technology Co., Ltd.
89
N720 AT Commands Manual
18: LTE, WCDMA, TD-SCDMA
19: LTE, TD-SCDMA, WCDMA
20: TD-SCDMA, WCDMA, GSM
21: WCDMA, TD-SCDMA, GSM
22: TD-SCDMA, GSM, WCDMA
23: WCDMA, GSM, TD-SCDMA
24: GSM, WCDMA, TD-SCDMA
25: GSM, TD-SCDMA, WCDMA
<roam>: Roam
0: Not support
1: Roam
2: No change
<srvdomain>: Domain setting
0: CS_ONLY
1: PS_ONLY
2: CS_PS
3: ANY
4: No change
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
^SYSCONFIG: <mode>,<acqorder>,<roam>,<srvdomain><CR><LF>
<CR><LF>OK<CR><LF>
Example
AT^SYSCONFIG=13,2,1,2
OK
AT^SYSCONFIG?
^SYSCONFIG: 2,2,0,2
OK
Remarks
This command is not supported in the CDMA mode.
Copyright © Neoway Technology Co., Ltd.
90
N720 AT Commands Manual
9.13 Obtaining the Location of the Module:
+CIPGSMLOC
Description
To obtain the location information of the module
Format

AT+CIPGSMLOC<CR>

AT+CIPGSMLOC=<n><CR>
Parameter
<n>: request selection
0: Close location request (default)
1: multi-BS positioning request (reserved)
Return Value
<CR><LF>+CIPGSMLOC: <fail_string><CR><LF>
<fail_string>: Failure string
<fail_string>:
CONTACT FAIL
LINK FAIL
LINK NOT FREE
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: {<result_string>}
<CR><LF>+CIPGSMLOC: OK<CR><LF>
< result_string>: string including longitude and latitude
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: <code>
<CR><LF>+CIPGSMLOC: FAIL <CR><LF>
<code>: return code after request is submitted successfully but not longitude or latitude
information is returned.
401: No right
400: error occurs during request parsing.
404: legal request, but the queried BS is not included.
408: parsing times out.
500: internal error of server
000: unknown error
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: TIMEOUT<CR><LF>
Example
AT$MYNETACT=0,1
OK
$MYURCACT: 0,1,"183.42.232.191"
Copyright © Neoway Technology Co., Ltd.
Single-BS positioning
request for is executed
successfully in State Grid
91
N720 AT Commands Manual
AT+CIPGSMLOC
mode.
OK
+CIPGSMLOC:
{"location":{"lat":22.682403116613813,"lng":113.99042272
056249},"accuracy":0.0}
The module reports
location coordinates.
+CIPGSMLOC: OK
AT+CIPGSMLOC
GPRS DISCONNECTION
PPP is not started
AT+CIPGSMLOC
The server domain name
fails to be translated.
+CIPGSMLOC: CONTACT FAIL
AT+CIPGSMLOC
+CIPGSMLOC: LINK FAIL
AT+CIPGSMLOC
OK
The connection to the
server fails to be set up.
The location request is
sent successfully, but the
queried BS is not
included.
+CIPGSMLOC: 404
+CIPGSMLOC: FAIL
AT+CIPGSMLOC=1
Reserved function.
OK
AT$MYNETACT=0,1
OK
$MYURCACT: 0,1,"10.151.44.13"
AT+CIPGSMLOC=0
OK
+CIPGSMLOC:
{"location":{"lat":22.682403116613813,"lng":113.99042272
056249},"accuracy":0.0}
Request for single-BS
location in standard mode
is executed successfully.
The module reports its
location coordinates.
+CIPGSMLOC: OK
Remarks

Activate the PPP before using this command.

The obtained location information is the GPS coordinates.

If the server does not reply in 15 seconds after the request is submitted successfully,
the module returns +CIPGSMLOC: TIMEOUT.

The current coordinates of latitude and longitude are valid and precision is reserved
(0.0 by default).

Activate PPP before running this command.

This command is available only for GSM networks.
Copyright © Neoway Technology Co., Ltd.
92
N720 AT Commands Manual
10 Extended AT Commands
these at-commands are related to software version.
10.1 Powering Off the Module: $MYPOWEROFF
Description
To power off the module
Format
AT$MYPOWEROFF<CR>
Parameter
N/A
Return Value
<CR><LF>OK<CR><LF>
Example
AT$MYPOWEROFF
Power off the module.
OK
Remarks
N/A
10.2 Controlling the Indicator of Socket Status: $MYSOCKETLED
Description
To control the indicator of socket status
Format
AT$MYSOCKETLED=<ONOFF><CR>
Parameter
<ONOFF>: Indicates the socket status, integer type.
0: The LED status when the socket is not connected.
1: The LED status when the socket is connected.
Return Value
<CR><LF>OK<CR><LF>
Example
AT$MYSOCKETLED=1
OK
Remarks
This commands is used to control the LED indicator when the socket is connected
complying with external protocol stack.
Copyright © Neoway Technology Co., Ltd.
93
N720 AT Commands Manual
10.3 Obtaining the Version Information of the Module: $MYGMR
Description
To obtain the version information of the module firmware and hardware
Format
AT$MYGMR<CR>
Parameter
N/A
Return Value
<CR><LF><module_manufacture>
<CR><LF><module_model>
<CR><LF><firmware_version>
<CR><LF><firmware_release date>
<CR><LF><module_hardware_version>
<CR><LF><module_hardware_release_date>
<CR><LF>OK<CR><LF>
<module_manufacture>: Manufacture code, 4 bytes in ASCII format.
<module_model>: Module mode, 8 bytes in ASCII format.
<firmware_version>: Firmware version, 4 bytes in ASCII format.
<firmware_release_date>: Firmware release date, DDMMYY, 6 bytes in ASCII format.
<module_hardware_version>: Hardware version, 4 bytes in ASCII format.
<module_hardware_release date>: Hardware release date
Example
AT$MYGMR
NEO6
N720C
V003
100815
V1.0
260815
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
94
N720 AT Commands Manual
10.4 Obtaining the CCID of the SIM Card: $MYCCID
Description
To obtain the circuit card identifier (CCID) of the SIM card
Format
AT$MYCCID<CR>
Parameter
N/A
Return Value
<CR><LF>$MYCCID: <SIM_CCID>
<CR><LF>OK<CR><LF>
<SIM_CCID>: The CCID of the SIM card, character string type.
Example
AT$MYCCID
$MYCCID: "89860112965403839541"
OK
Remarks
AT$MYCCID
Query the CCID of the SIM card.
ERROR
Error is returned because no SIM card is installed.
N/A
10.5 Controlling Unsolicited Report: MYNETURC
Description
To control the unsolicited report from the module
This command is valid only when the MT uses internal protocol stack.
Format

AT$MYNETURC=<ONOFF><CR>

AT$MYNETURC?<CR>
Parameter
<ONOFF>: Integer type
0: Disable unsolicited report of the internal protocol stack
1: Enable unsolicited report of the internal protocol stack (default)
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>$MYNETURC: <ONOFF>
<CR><LF>OK<CR><LF>
Example
AT$MYNETURC=1
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
95
N720 AT Commands Manual
10.6 Querying the Type of the Module: $MYTYPE
Description
To query the type of the module
Format
AT$MYTYPE?<CR>
Parameter
NULL
Return Value
<CR><LF>$MYTYPE: <mode>,<network_type>,<extended_feature>
<CR><LF>OK<CR><LF>
<mode>: Work mode. Extensible bytes are indicated by bit.
1 at bit 0: supporting transparent transmission mode
1 at bit 1: supporting non-transparent transmission mode
<network_type>: Network type. Extensible bytes are indicated by bit.
1 at bit 0: GSM network supports GPRS
1 at bit 1: WCDMA network
1 at bit 2: TD-SCDMA network
1 at bit 3: CDMA 2000
1 at bit 4: CDMA EVDO
1 at bit 5: LTE
1 at bit 6: PSTN
1 at bit 7: extending one byte
<extended_feature>: Extended feature. Extensible bytes are indicated by bit.
1 at bit 0: supporting GPS positioning function
1 at bit 1: supporting BeiDou positioning function
1 at bit 7: extending one byte
Example
AT$MYTYPE?
$MYTYPE: 03,3F,00
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
96
N720 AT Commands Manual
10.7 Querying the Type of the Module: $MYMODEM (Standards for
Canton)
Description
To query the type of the module
Format
AT$MYMODEM?<CR>
Parameter
N/A
Return Value
<CR><LF>$MYMODEM: <mode>,<network_type>
<CR><LF>OK<CR><LF>
<mode>: Work mode. Extensible bytes are indicated by bit.
1 at bit 0: supporting transparent transmission mode
1 at bit 1: supporting non-transparent transmission mode
<network_type>: Network type. Extensible bytes are indicated by bit, 16-bit
1 at bit 0: GPRS
1 at bit 1: CDMA network
1 at bit 2: TD-SCDMA network
1 at bit 3: WCDMA
1 at bit 4: CDMA EVDO
1 at bit 5: TDD-LTE
1 at bit 6: FDD-LTE
Bits 8 to 15: Reserved
Example
AT$MYMODEM?
$MYMODEM: 03,7F00
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
97
N720 AT Commands Manual
10.8 Setting Initialization Parameters of Network Connections:
$MYNETCON
Description
To set parameters before network connection is set up.
This is a mandatory step before using the TCP/IP function.
Format
Parameter

AT$MYNETCON=<channel>,<type>,<type_name><CR>

AT$MYNETCON?<CR>
<channel>: Channel number, ranging from 0 to 5
<type> and <type_name>:
USERPWD: User name and password, in format of "user,passwd"
APN: Character string type
CFGT: waiting time to send each packet, ranging from 1 to 65535. The default value is
100 and the unit is ms. This parameter is used in transparent transmission mode.
CFGP: The length threshold of data to be transmitted, ranging from 1 to 1460. The default
value is 1024. This parameter is used in transparent transmission mode.
AUTH: Authentication type.
0: NONE
1: PAP (default)
2: CHAP
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>ERROR: <err><CR><LF>
<CR><LF>$MYNETCON: <Channel>,<Type>,<type_name>
<CR><LF>OK<CR><LF>
Example
AT$MYNETCON=0,"USERPWD","user,pwd"
OK
AT$MYNETCON?
$MYNETCON: 0,"USERPWD",""
$MYNETCON: 0,"APN",""
$MYNETCON: 0,"CFGT",1000
$MYNETCON: 0,"CFGP",1024
$MYNETCON: 0,"AUTH",0
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
98
N720 AT Commands Manual
10.9 Activating/Deactivating Network Connection: $MYNETACT
Description
To activate or deactivate GPRS network connection
This is a mandatory step before using the TCP/IP function.
Format

AT$MYNETACT=<channel>,<action><CR>

AT$MYNETACT?<CR>

AT$MYNETACT=?<CR>
Parameter
<channel>: Channel number, ranging from 0 to 5
<action>: Specifies whether to activate network connections.
0: Deactivate network connections
1: Activate network connections
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>$MYNETACT: <channel>,<status>,<IP>
<CR><LF>OK<CR><LF>
<status>: Indicates the network connection status.
0: The network connection has not been activated.
1: The network connection has been activated.
<IP>: The local IP address displayed after the network connection is activated
$MYNETACT: <status>,<Channel>
OK
Example
AT$MYNETACT=0,1
Activate the network connection.
OK
The command is executed successfully.
$MYURCACT: 0,1,"10.92.220.73"
Report the obtained IP address.
AT$MYNETACT?
Query the local IP address.
$MYNETACT: 0,1," 10.92.220.73"
OK
AT$MYNETACT =0,1
OK
$MYURCACT: 0,1,"10.67.163.14"
ERROR is returned if you repeat the activation.
AT$MYNETACT=0,1
ERROR: 902
Remarks
After the command is executed successfully, the module will report the obtained local IP
address.
Copyright © Neoway Technology Co., Ltd.
99
N720 AT Commands Manual
10.10 Configuring IP Access: $MYIPFILTER
Description
To configure the IP addresses of clients that can access the module
Format

AT$MYIPFILTER=<id>,<action>,<ip_address>,<net_mask><CR>

AT$MYIPFILTER?<CR>

AT$MYIPFILTER=?<CR>
Parameter
<id>: The ID of data, ranging from 0 to 4.
<action>: Delete or add specified IP authentication channel
0: Delete specified IP authentication channel.
1: Add specified IP authentication channel.
2: Delete all IP authentication channels.
<ip_address>: IP address of legal client, char type, in format of XXX.XXX.XXX.XXX.
<net_mask>: subnet mask, char type, in format of XXX.XXX.XXX.XXX.
Return Value
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<err>: Error code
<CR><LF>$MYIPFILTER: <id>,<ip_address>,<net_mask>
<CR><LF>$MYIPFILTER: <id>,<ip_address>,<net_mask>
…
<CR><LF>OK<CR><LF>
<CR><LF>$MYIPFILTER: <id>,<ip_address>,<net_mask>
<CR><LF>OK<CR><LF>
Example
AT$MYIPFILTER=0,1,"192.168.0.23","25
5.255.255.255"
Add the specified IP authentication channel.
OK
AT$MYIPFILTER=0,0,"192.168.0.23","25
5.255.255.255"
Delete the specified IP authentication
channel.
OK
AT$MYIPFILTER=0,1,"192.168.0.23","25
5.255.255.0"
Add allowed IP address queue (192.168.0.0
to 192.168.0.255).
OK
AT$MYIPFILTER?
$MYIPFILTER:
0,"192.168.0.23","255.255.255.255"
$MYIPFILTER:
1,"192.168.0.23","255.255.255.255"
Query the IP authentication channel.
$MYIPFILTER: 2,"",""
$MYIPFILTER: 3,"",""
$MYIPFILTER: 4,"",""
Copyright © Neoway Technology Co., Ltd.
100
N720 AT Commands Manual
OK
Remarks

This command is valid only when the module works as the server.

If the IP address of the client that request connection is within the IP address range,
the client can connect to the module.

At most 5 groups of IP address can be configured for a module.
All the clients with any IP address can connect to the module by default if the IP
address is not configured.
10.11 Setting Parameters for Non-transparent Transmission:
$MYNETSRV
Description
To set the parameters of TCP/IP service
Format

AT$MYNETSRV=<Channel>,<SocketID>,<nettype>, <viewMode>,<ip:port><CR>

AT$MYNETSRV?<CR>

AT$MYNETSRV=?<CR>
Parameter
<channel>: Channel ID, integer type, ranging from 0 to 5.
Each channel has 2 KB sending buffer and 10 KB receiving buffer.
<SocketID>: Socket ID, integer type, ranging from 0 to 5
<nettype>: Network type.
0: TCP Client
1: TCP Server. In this mode, only one listening service can be set up.
2: UDP
<viewMode>: Data display mode in non-transparent transmission mode
0: HEX (Default)
1: TEXT
<ip:port>: IP address and port number, e.g. 59.40.29.34:4988
If the IP address is 127.0.0.1, listening service has been set up using this SocketID.
Return Value
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<err>: Error code
<CR><LF>$MYNETSRV: <Channel>,<SocketID>,<nettype>,<viewMode>,<ip:port>
<CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
Example
AT$MYNETSRV=0,0,0,0,"59.40.29.34:4988"
OK
Set TCP client service parameters for
channel 0.
The IP address and port number of the
remote server is 59.40.29.34: 4988.
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
101
N720 AT Commands Manual
10.12 Enabling TCP/UDP Service: $MYNETOPEN
Description
To enable TCP/UDP connections
Format

AT$MYNETOPEN=<SocketID><CR>

AT$MYNETOPEN?<CR>

AT$MYNETOPEN=?<CR>
Parameter
<SocketID>: Socket ID, integer type, ranging from 0 to 5
Return Value
<CR><LF>$MYNETOPEN: <SocketID>[,<Remote_MSS>]
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<Remote_MSS>: MSS value negotiated by client and server after the TCP connection is
enabled, integer type
<CR><LF>$MYNETOPEN:
<SocketID>,<LocalIP>,<local_port>,<gate>,<DNS1>,<DNS2>,<type>,<dest_ip>,<dest_p
ort>
<CR><LF>OK<CR><LF>
<LocalIP>: Local IP address, character type
<local_port>: Local port (varying with channels)
<gate>: Gateway
<DNS1>: Primary DNS server
<DNS2>: Standby DNS server
<type>: TCP Client/TCP Server/UDP
0: TCP Client
1: TCP Server
2: UDP
<dest_ip>: The IP address to be linked
<dest_port>: The number of the port to be linked
<CR><LF>OK<CR><LF>
Example
AT$MYNETOPEN=0
Enable socket 0.
$MYNETOPEN: 0,2000
OK
AT$MYNETOPEN?
$MYNETOPEN: 0,10.92.220.73,5000,0,dns1,dns2,0,59.40.29.34,4988
OK
Query sockets
that are in
OPEN state.
Socket 0 is in
OPEN state.
AT$MYNETSRV=5,1,0,0,"58.60.184.213:10188"
OK
Failed to enable
the socket.
AT$MYNETOPEN=2
Copyright © Neoway Technology Co., Ltd.
102
N720 AT Commands Manual
ERROR: 981
Remarks
N/A
10.13 Reading Received Data: $MYNETREAD
Description
To read received data
Format

AT$MYNETREAD=<SocketID>,<data_len><CR>

AT$MYNETREAD=?<CR>
Parameter
<SocketID>: Socket ID, integer type, ranging from 0 to 5
<data_len>: The maximum length of data to be read, ranging from 1 to 2048
Return Value
<CR><LF>$MYNETREAD: <SocketID>,<data_length>
<CR><LF><data>
<CR><LF>OK<CR><LF>
<data_length>: The length of data that are read actually, ranging from 0 to 2048
<data>: Data. No value for <data> is displayed if data_length is 0.
<CR><LF>OK<CR><LF>
Example
AT$MYNETREAD=0,2048
Read 2048-byte data from socket 0.
$MYNETREAD: 0,0
OK
No data is in buffer or all data has been
read.
AT$MYNETREAD=0,2048
Read 2048-byte data from socket 0.
$MYNETREAD: 0,10
10-byte data is actually read.
1234567890
The data content is 1234567890.
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
103
N720 AT Commands Manual
10.14 Sending Data: $MYNETWRITE
Description
To send data
Format

AT$MYNETWRITE=<SocketID >,<data_len><CR>

AT$MYNETWRITE=?<CR>
Parameter
<SocketID>: Socket ID, integer type, ranging from 0 to 5
<data_len>: The length of data to be sent, ranging from 1 to 2000
Return Value
<CR><LF>$MYNETWRITE: <SocketID>,<data_len>
<CR><LF><input_data>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<input_data>: Content of sent data
<err>: Error code
<CR><LF>OK<CR><LF>
Example
AT$MYNETWRITE=0,10
Socket 0 sends 10-byte data.
$MYNETWRITE: 0,10
Indicates that you can input data to be sent.
1234567890
Enter data to be sent: 1234567890. (the data
entered will not be displayed on the UART)
OK
The command is executed successfully.
Remarks
N/A
10.15 Closing a Socket: $MYNETCLOSE
Description
To close a socket connection
Format

AT$MYNETCLOSE=<SocketID><CR>

AT$MYNETCLOSE?<CR>

AT$MYNETCLOSE=?<CR>
Parameter
<SocketID>: Socket ID, integer type, ranging from 0 to 5
Return Value
<CR><LF>$MYNETCLOSE: <SocketID>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR: <err><CR><LF>
<CR><LF>OK<CR><LF>
Example
AT$MYNETCLOSE=0
Close socket 0.
$MYNETCLOSE:0
0K
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
104
N720 AT Commands Manual
10.16 Querying TCPACK Information: $MYNETACK
Description
To query the quantity of TCP data sent by the MT but not acknowledged and the size of
remaining buffer for the built-in protocol stack
Format
AT$MYNETACK=<SocketID><CR>
Parameter
<SocketID>: Socket ID, integer type, ranging from 0 to 5
Return Value
<CR><LF>$MYNETACK:<SocketID>,<unAcked_dataLen>,<rest_bufferLen>
<CR><LF>OK<CR><LF>
<unAcked_dataLen>: The quantity of data sent but not acknowledged, 2^32-1 at most
<rest_bufferLen>: The size of remaining buffer for built-in protocol, ranging from 0 to
10240.
Example
AT$MYNETACK=0
Query the ACK that socket 0 sends data
$MYNETACK: 0,0,
10240
The data that has been sent but not acknowledged is 0.
The size of remaining buffer for built-in protocol is 10240.
0K
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
105
N720 AT Commands Manual
10.17 Accepting the Listening Request: $MYNETACCEPT
Description
To accept listening request from the client in TCP server mode
Format

AT$MYNETACCEPT=<SocketID>,<action>,<transportMode><CR>

AT$MYNETACCEPT?<CR>

AT$MYNETACCEPT=?<CR>
Parameter
<SocketID>: New socket ID that is reported by $MYURCCLIENT, ranging from 0 to 5
<action>: Specifies whether to accept listening request
0: Accept
1: Reject
<transportMode>: The transmission mode after the listening service is enabled
0: Non-transparent transmission mode
1: Transparent transmission mode
If <transportMode> is set to 0, the module returns OK after the command is executed
successfully.
If <transportMode> is set to 1, the module returns CONNECT after the command is
executed successfully.
Return Value
<CR><LF>OK<CR><LF>
Or
<CR><LF>CONNECT<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
Example
AT$MYNETSRV=0,0,1,0,"127.0.0.1:5000"
OK
Set the local listening port to 5000 for
socket 0.
AT$MYNETOPEN=0
$MYNETOPEN: 0
Enable socket 0 to start the server mode.
OK
$MYURCCLIENT: 1,"10.90.72.235",51614
AT$MYNETACCEPT=1,0,0
Report connection of client 1
OK
Accept connection of client 1.
$MYURCCLIENT: 2,"10.90.72.235",55469
Report connection of client 2
AT$MYNETACCEPT=2,1,0
Reject connection of client 2.
OK
Remarks
To close connections to the server in transparent transmission modem, you must exit data
mode using the +++ command and enter command mode. Then you can run
AT$MYNETCLOSE=SocketID to close SocketID listened by server and all connections
using the SocketID.
Copyright © Neoway Technology Co., Ltd.
106
N720 AT Commands Manual
10.18 Enable Transparent Transmission Service: $MYNETCREATE
Description
To enable the transparent transmission service of the module
Format

AT$MYNETCREATE=<channel>,<mode>,<SocketID>,<ip>,<port>[,<local_port>]<
CR>

AT$MYNETCREATE?<CR>

AT$MYNETCREATE=?<CR>
Parameter
<channel>: Channel number, ranging from 0 to 5
<mode>: work mode
0: TCP Client
1: TCP Server
2: UDP
In TCP/UDP client mode, the module starts to connect the server after executing this
command. If the connection to the server is set up successfully, the module enters
transparent transmission mode.
In TCP server mode, the module returns OK after executing this command. Only listening
socket is set up successfully and the module is still in the command mode; it enters
transparent transmission mode only after the connection is set up on the client.
Before you execute AT$MYNETCLOSE to exit the transparent transmission mode, you
must use the +++ command to switch to the command mode.
<SocketID>: Socket ID, integer type, ranging from 0 to 5
<ip>: The IP address to be linked
<port>: The port to be connected when <mode> is set to client; the listening port when
<mode> is set to server.
<local_port>: Use the default value
Return Value
<CR><LF>CONNECT<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR: <err><CR><LF>
Example
AT$MYNETCREATE=0,0,0,"59.40.29.34
",4988,3000
Set up channel for transparent TCP data
transmission.
CONNECT
The destination IP address and port is
"59.40.29.34",4988.
CONNECT indicates that the transparent
transmission service is available.
OK
Enter +++.
The module returns OK, indicating that it
enters command mode again.
Remarks
+++ must be entered as a character string to exit from the transparent transmission mode.
Otherwise, + will be transmitted as data once the interval between two + exceeds 50 ms.
Copyright © Neoway Technology Co., Ltd.
107
N720 AT Commands Manual
10.19 Starting the FTP Service: $MYFTPOPEN
Description
To start the FTP service
Format

AT$MYFTPOPEN=<Channel>,<destination_ip/url:port>,<username>,<password>,<
mode>,<Tout>,<FTPtype><CR>

AT$MYFTPOPEN?<CR>

AT$MYFTPOPEN=?<CR>
Parameter
<Channel>: The number of channel that has been activated. The FTP service is enabled
based on channel type.
<destination_ip/url:port>: The IP address or URL of the remote FTP server. IP address is
in format of XXX.XXX.XXX.XXX; URL consists of at most 255-byte ASCII characters.
If you do not set <port>, the default FTP port is 21.
<username>: User name to log in to the FTP server, ASCII characters, 255 bytes at most
<password>: Password for the user name to log in to the FTP server, ASCII characters,
255 bytes at most
<mode>: FTP mode. 0: active FTP mode; 1: passive FTP mode (default mode)
<Tout>: Timeout period of FTP command or data idle, ranging from 5 to 180. The default
value is 30 and the unit is second.
<FTPtype>: FTP type. 0 indicates decimal mode (default); 1 indicates text mode.
Return Value
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<CR><LF>$MYFTPOPEN: <connection_status>
<CR><LF>OK<CR><LF>
<connection_status>: Indicates the connection status. 1: successful; 0: failure
Example
AT$MYFTPOPEN=0,"neowaysvr.demo.net:21","neoway","neoway",1,30,1
OK
Remarks
The module can set up only one FTP connection every time. FTP service and transparent
transmission are mutual exclusive. They cannot be used at the same time.
Copyright © Neoway Technology Co., Ltd.
108
N720 AT Commands Manual
10.20 Closing the FTP Service: $MYFTPCLOSE
Description
To close the FTP service
Format
AT$MYFTPCLOSE<CR>
Parameter
N/A
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT$MYFTPCLOSE
OK
Remarks
N/A
10.21 Obtaining the FTP File Size: $MYFTPSIZE
Description
To obtain the file length on the FTP service
Format
AT$MYFTPSIZE=<File_Name><CR>
Parameter
<File_Name>: Name of the file to be downloaded, including file path
Return Value
<CR><LF>$MYFTPSIZE: <File_length>
<CR><LF>OK<CR><LF>
<CR><LF>$MYURCFTP: 1<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
32
<File_length>: The FTP file length, ranging from 0 to 2 -1
Example
AT$MYFTPSIZE="ftp_demo.txt"
$MYFTPSIZE: 10
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd.
109
N720 AT Commands Manual
10.22 Downloading FTP Files: $MYFTPGET
Description
To download files from the FTP server
Format
AT$MYFTPGET=<File_Name>[,<data_offset>,<data_Length>]<CR>
Parameter
<File_Name>: The name of the file to be downloaded
<data_offset>: Offset of the file data
<data_Length>: The length of file data to be read
Return Value
<CR><LF>CONNECT
<CR><LF><file_content>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<file content>: Content of the FTP file
Example
AT$MYFTPOPEN=0,"neowaysvr.demo.net:21",
"neoway","neoway",1,30,1
Start the FTP service
OK
Send the download command.
AT$MYFTPGET="ftp_demo.txt"
CONNECT
File content
0123456789
OK
Report the disconnection state
$MYURCFTP: 1
Remarks
It is recommended that you use the default values of <data_offset> and <data_Length>.
Copyright © Neoway Technology Co., Ltd.
110
N720 AT Commands Manual
10.23 Uploading Files to the FTP Server: $MYFTPPUT
Description
To upload files to the FTP server
Format
AT$MYFTPPUT=<File_Name>,<data_length>,<EOF><CR>
Parameter
<File_Name>: Name of the file name to be downloaded, including file path
<data_length>: The length of data to be uploaded, ranging from 1 to 3072
<EOF>: End of the file to be uploaded, integer type
0: The starting packet of the file or the intermediate packet
1: The last packet of the file
Return Value
<CR><LF>CONNECT
<CR><LF><file_content>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR: <err><CR><LF>
<file content>: Content of the file to be uploaded. If the entered file length is equal to the
data_length configured in the command, the module will send the file data to the FTP
server. OK is returned after all data is sent successfully. Otherwise, the module will return
to the command mode and report ERROR.
Example
AT$MYFTPOPEN=0,"neowaysvr.demo.net:21",
"neoway","neoway",1,30,1
Start the FTP service.
OK
Send the file upload command.
AT$MYFTPPUT="ftp_demo.txt",10,0
CONNECT
Enter the content.
ABCDEFGHIJ
OK
Report the disconnection state.
$MYURCFTP: 1
Remarks
You can use +++ to exit FTP PUT mode.
The FTP PUT command does not support upload starting from the interrupted point.
Copyright © Neoway Technology Co., Ltd.
111
N720 AT Commands Manual
10.24 Indicating Data Receiving: $MYURCREAD
Description
To indicate data receiving
Return Value
<CR><LF>$MYURCREAD: <SocketID><CR><LF>
<SocketID>: Socket ID, integer type, ranging from 0 to 5
Example
AT$MYNETSRV=0,0,0,0,"59.40.29.34:4988"
Set socket 0 as the TCP client.
OK
AT$MYNETOPEN=0
$MYNETOPEN: 0,2000
Enable socket 0 to set up TCP
connection.
OK
Receive data from socket 0.
$MYURCREAD: 0
Read 2048 bytes data.
AT$MYNETREAD=0,2048
Socket 0 read 10-byte data:
$MYNETREAD: 0,10
0123456789.
0123456789
OK
Remarks
Data receiving is reported once the module receives a packet of data.
10.25 Indicating the Disconnection: $MYURCCLOSE
Description
To indicate the disconnection of the current SocketID
Return Value
<CR><LF>$MYURCCLOSE: <SocketID><CR><LF>
<SocketID>: ID of disconnected socket, ranging from 0 to 5
Example
AT$MYNETSRV=0,0,0,0,"59.40.29.34:4988"
Set socket 0 as the TCP client.
OK
AT$MYNETOPEN=0
$MYNETOPEN: 0,2000
Enable socket 0 to set up TCP
connection.
OK
$MYURCCLOSE: 0
Remarks
Socket 0 is disconnected.
Data in the buffer for the socket will be cleared after this command is displayed.
Copyright © Neoway Technology Co., Ltd.
112
N720 AT Commands Manual
10.26 Indicating Network Connection Status: $MYURCACT
Description
To indicate the status of the network connection
Return Value
<CR><LF>$MYURCACT: <channel>,<type>,<IP><CR><LF>
<channel>: Channel ID
<type>: Network connection status
0: Network disconnection
1: Network connection
<IP>: Local IP address
Example
Remarks
AT$MYNETACT=0,1
Activate the network connection
OK
Indicate the network connection status.
$MYURCACT: 0,1,"10.91.102.62"
Network connection is activated successfully. The
obtained local IP address is 10.91.102.62.
N/A
10.27 Indicating Client Connection: $MYURCCLIENT
Description
To indicate the client connection after listening service is started
Return Value
<CR><LF>$MYURCCLIENT: <SocketID>,<IP>,<port><CR><LF>
<SocketID>: Socket ID of new client
<IP>: IP address of the client
<port>: Client port
Example
OK
Set socket 0 as the TCP server. The
listening port is 5000.
AT$MYNETOPEN=0
Enable socket 0 to start listening.
AT$MYNETSRV=0,0,1,0,"127.0.0.1:5000"
$MYNETOPEN: 0
OK
$MYURCCLIENT: 1,"10.90.72.235",51614
Indicate client connection.
AT$MYNETACCEPT=1,0,0
OK
Remarks
This command indicates that some client applies for connection.
Copyright © Neoway Technology Co., Ltd.
113
N720 AT Commands Manual
10.28 Indicating FTP Disconnection: $MYURCFTP
Description
To indicate the FTP connection status
Return Value
<CR><LF>$MYURCFTP: <Status><CR><LF>
<Status>: FTP connection status, integer type
0: Disconnection of FTP commands socket
1: Disconnection of FTP data socket
Example
AT$MYFTPOPEN=0,"neowaysvr.demo.net:21","neoway",
"neoway",1,30,1
Start the FTP service.
OK
$MYURCFTP: 0
Remarks
Indicates the disconnection
of FTP commands socket.
N/A
10.29 Error Code
The following table lists error codes that may be displayed during TCP/IP operations.
Error Code
Error Description
900
Using user name and password to dial is rejected by the network side because the
APN is incorrect, the SIM card is lack of credit, or the SIM card does not support
the network type or service.
901
PDP has not been activated.
902
The PDP has been activated.
…
Standby
910
The TCP connection is rejected by the other side.
911
TCP connection times out because of incorrect IP address or port.
912
The socket connection has been set up.
913
The socket connection does not exist.
914
The buffer area is full. Try to send again.
915
Data sending times out.
916
The domain name does not exist.
917
Domain translation times out.
918
Unknown error during domain translation.
…
Standby
980
Illegal input.
981
Other errors
Copyright © Neoway Technology Co., Ltd.
114
N720 AT Commands Manual
11 Reference Process of AT Command
Programming
11.1 Content of PDU SMS Messages
<PDU> SMS message sending format:
1>: 0891
08: indicates the length of the SMSC address information
91: indicates the format of the SMSC address
2>: Inversion of every two bits (add F if the bits are not sufficient) in SMSC number, fixed. For example,
China Unicom 8613010888500 should be 683108705505F0 here.
3>: 0100
01: Indicates basic parameters
00: indicates message baseline value
4>: Convert the receiving number into hexadecimal. For example, the number length is 11 bits and then the
hexadecimal length should be 0B.
5>: 81 (Receiving mode) there are multiple receiving modes.
81 indicates that the receiving mode is unknown.
6>: Inversion of every two bits (add F if the bits are not sufficient) in the recipient number. For example,
13421839693 should be 3124819396F3 after conversion.
7>: 0008
8>: The hexadecimal length of the SMS message content. For example, the UCS2 code of hello is
00080A00680065006C006C006F, that is 10 bits and the hexadecimal length is 0A.
9>: Message content, for example, the USC2 code of hello is 00080A00680065006C006C006F.
One PDU message contains the above 9 parts and the parameter values are determined by the actual situation.
If the SMSC address length is 0, replace 08 with 00 and the SMSC type and address fields must be
omitted.
The following is an example of the PDU message whose SMSC address length is not 0:
0891683110808805F001000B813124819396F300080A00680065006C006C006F
Wherein,
0891
683108705505F0: SMSC number of China Unicom
0100
0B: the length of the recipient number
81: Receiving mode
3124819396F3: The number of recipient
0008
0A: The length of the content
00680065006C006C006F: SMS message content
Message content: hello
Copyright © Neoway Technology Co., Ltd.
115
N720 AT Commands Manual
The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23.
The following is an example of the PDU message whose SMSC address length is 0:
0001000B813124819396F300080A00680065006C006C006F
Wherein,
00: SMSC address information length
SMSC number is not needed.
0100
0B: the length of the recipient number
81: Receiving mode
3124819396F3: The number of recipient
0008
0A: The length of the content
00680065006C006C006F: SMS message content
SMS message content: hello
The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23.
Copyright © Neoway Technology Co., Ltd.
116
N720 AT Commands Manual
11.2 Flowchart of Sending Text SMS Messages (Through
UART)
Set the text mode
AT+CMGF=1
OK
Configure the TE character set
AT+CSCS="GSM"
OK
Send an SMS message.
Press Enter to send the SMS
message. When the > symbol
is displayed, you can send the
message.
AT+CMGS="13430981508"
>
Enter Shenzhen Neoway
Technology and press
Ctrl+Z (character 0x1A) to
send the message.
Content of the message to be
sent.
Shenzhen Neoway Technology
Successful
Return value
+CMGS: 116
OK
End
Figure 11-1 Flowchart of sending text format SMS messages
Copyright © Neoway Technology Co., Ltd.
117
N720 AT Commands Manual
11.3 Flowchart of Sending PDU SMS Messages (Through
UART)
Set the PDU mode.
AT+CMGF=0
OK
Configure TE character set.
AT+CSCS="UCS2"
OK
Send an SMS message.
The length of the SMS
message is 23 bytes in
PDU mode.
AT+CMGS=23<CR>
>
Content of the message to be
sent
Input message content,
which is encoded in PDU
mode and sent by pressing
Ctrl+Z (0X1A).
0891683110808805F001000B813124819396F3
00080A00680065006C006C006F
Successfully
Return value
+CMGS: 117
OK
End
Figure 11-2 Flowchart of Sending PDU SMS messages
Copyright © Neoway Technology Co., Ltd.
118
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising