Список AT-команд GSM/GPS-модуля GM650 ( PDF ) 2 Мб

Список AT-команд GSM/GPS-модуля GM650 ( PDF ) 2 Мб
Let’s enjoy the wireless life!
GM650 AT Command Set
V2.0
Shenzhen Neoway Technology Co.,Ltd
Let’s enjoy the wireless life!
Copyright © 2008 Neoway Technology
All rights reserved.
is a trade mark of Neoway Technology Co. Ltd.
Notice
This document is intended for the customer engineers.
This document is subject to change without any notice.
No responsibility is assumed by Neoway Technology for the use of this document.
Neoway Technology always provides the best supports.
For pricing, delivery, and ordering information please contact:
Sales@neoway.com.cn
For any technical support requests please contact:
Support@neoway.com.cn
For further information please visit:
http://www.neoway.com.cn
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
1 of 69
Let’s enjoy the wireless life!
Revision Record
Version
Change content
Effective time
V2.0
Modified version
201309
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
2 of 69
Let’s enjoy the wireless life!
Contents
Shenzhen Neoway Technology Co.,Ltd................................................................................................................ 0
1 General commands..............................................................................................................................................6
1.1 Check the manufacturer: +CGMI...................................................................................................................6
1.2 Query Module Model: +CGMM.................................................................................................................... 6
1.3 Query version :+CGMR................................................................................................................................. 6
1.4 Get Sequence Number:+CGSN...................................................................................................................7
1.5 Get International Mobile Subscriber Identification:+CIMI........................................................................7
1.6 Get SIM card Identification:+CCID............................................................................................................8
2 Mobile devices control and status report.......................................................................................................... 9
2.1 Check the module’s status:+CPAS............................................................................................................. 9
2.2 Check network registration status:+CREG................................................................................................. 9
2.3 Set module function:+CFUN.....................................................................................................................10
2.4 Low-power set:+ENPWRSAVE............................................................................................................... 11
2.5 Clock:+CCLK............................................................................................................................................11
2.6 Set the module’s baud rate:+IPR...............................................................................................................12
2.7 Input PIN code:+CPIN.............................................................................................................................. 12
2.8 PIN enable and check function:+CLCK....................................................................................................13
2.9 PIN change the password:+CPWD........................................................................................................... 14
2.10 Extended ERROR report:+CEER........................................................................................................... 15
2.11 Set Error indication message:+CMEE.................................................................................................... 16
2.12 Set signal state: +SIGNAL......................................................................................................................... 16
2.13 Open hardware or software flow control function:+IFC........................................................................... 17
3 Network services commands............................................................................................................................ 18
3.1 Signal intensity:+CSQ............................................................................................................................... 18
3.2 Network selection:+COPS........................................................................................................................ 18
4 Call control command.......................................................................................................................................21
4.1 Speaker volume:+CLVL.............................................................................................................................. 21
4.2 Mute control:+CMUT.................................................................................................................................. 21
4.3 Dialing commands:ATD.............................................................................................................................. 22
4.4 Call answering:ATA.....................................................................................................................................23
4.5 Hand up calls:ATH.......................................................................................................................................24
4.6 Caller ID:+CLIP........................................................................................................................................... 24
4.7 Send DTMF tone:+VTS............................................................................................................................... 25
4.8 Auto-answering: ATS0.................................................................................................................................25
4.9 Activate hands-free: +HANDFREE.............................................................................................................25
4.10 Open the DTMF detect: +DTMFDETECT................................................................................................26
4.11 Speaker mode echo control level:+ESL..................................................................................................... 26
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
3 of 69
Let’s enjoy the wireless life!
4.12 Earphone mode echo control level:+HESL............................................................................................... 27
4.13 MIC volume control:+MICL......................................................................................................................27
4.14 Change audio input channel:+AUDIN.......................................................................................................28
4.15 Change audio output channel:+AUDOUT.................................................................................................28
5 SMS service commands.....................................................................................................................................29
5.1 Choose SMS service:+CSMS....................................................................................................................29
5.2 Primary SMS storage:+CPMS...................................................................................................................29
5.3 Set SMS mode:+CMGF............................................................................................................................ 30
5.4 Set TE character sets: +CSCS...................................................................................................................... 30
5.5 Set message indication Format: + CNMI.....................................................................................................31
5.6 Read message:+CMGR............................................................................................................................. 33
5.7 Message list:+CMGL................................................................................................................................ 34
5.8 Message sending:+CMGS......................................................................................................................... 35
5.9 Write message:+CMGW........................................................................................................................... 36
5.10 Send stored message:+CMSS..................................................................................................................37
5.11 Delete message:+CMGD.........................................................................................................................38
5.12 Service center address:+CSCA............................................................................................................... 38
5.13 Set Text Mode Parameters: +CSMP.......................................................................................................... 39
5.14 Display text mode parameter:+CSDH.....................................................................................................40
5.15 Choose cell broadcast message type:+CSCB..........................................................................................40
6 Phonebook commands.......................................................................................................................................42
6.1 Select phonebook storage: +CPBS...............................................................................................................42
6.2 Read phonebook entries: +CPBR.................................................................................................................42
6.3 Find phonebook entries: +CPBF.................................................................................................................. 43
6.4 Write phonebook entry: +CPBW................................................................................................................. 44
7 Supplementary service commands.................................................................................................................. 45
7.1 Call forwarding number and conditions: +CCFC........................................................................................ 45
7.2 Call waiting: +CCWA.................................................................................................................................. 46
7.3 Call hold and multiparty conversation: +CHLD..........................................................................................47
8 GPRS commands............................................................................................................................................... 48
8.1 Define PDP context: +CGDCONT.............................................................................................................. 48
8.2 Send USSD data: +CUSD............................................................................................................................ 49
9 TCP/IP AT commands...................................................................................................................................... 51
9.1 Set network APN: +NETAPN......................................................................................................................51
9.2 Establish PPP link: +XIIC............................................................................................................................51
9.3 Establish TCP link:+TCPSETUP..............................................................................................................52
9.4 Send TCP data:+TCPSEND......................................................................................................................52
9.5 Receive TCP data:+TCPRECV.................................................................................................................53
9.6 Close TCP link:+TCPCLOSE................................................................................................................... 53
9.7 Establish UDP link:+UDPSETUP............................................................................................................ 54
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
4 of 69
Let’s enjoy the wireless life!
9.8 Send UDP data:+UDPSEND.....................................................................................................................54
9.9 Receive UDP data:+UDPRECV............................................................................................................... 55
9.10 Close UDP link:+UDPCLOSE................................................................................................................55
9.11 Check TCP/UDP link status:+IPSTATUS.............................................................................................. 56
9.12 Query TCP link send data state:+TCPACK...............................................................................................56
9.13 Set the type of data reception: +ASCII...................................................................................................... 57
9.14 Set the type of data to send and receive: +DATAFORMAT.....................................................................58
9.15 Set the data receive mode: +TRANMODE................................................................................................58
9.16 Select TCP link close mode: +SETCLSMODE.........................................................................................59
9.17 Set local TCP port: +TCPLPORT..............................................................................................................59
9.18 Set local UDP port: +UDPLPORT............................................................................................................ 59
9.19 Set socket time-out parameter: +SSTP...................................................................................................... 60
10 DNS(Domain Name Server) commands........................................................................................................61
10.1 Query DNS: +DNS.....................................................................................................................................61
11 FTP AT commands..........................................................................................................................................62
11.1 Login FTP server: +FTPLOGIN................................................................................................................ 62
11.2 Logout FTP server: +FTPLOGOUT.......................................................................................................... 62
11.3 Get data from FTP server: +FTPGET........................................................................................................ 63
11.4 Put data to FTP server: +FTPPUT............................................................................................................. 64
11.5 Check FTP status:+FTPSTATUS........................................................................................................... 65
12 TCP server AT commands............................................................................................................................. 66
12.1 Open TCP server mode: +TCPLISTEN.....................................................................................................66
12.2 Close TCP server listen: +CLOSELISTEN............................................................................................... 66
12.3 Close master station link: +CLOSECLIENT.............................................................................................67
12.4 Receive data from master station: +TCPRECV(S)....................................................................................67
12.5 Send data to master station: +TCPSENDS................................................................................................ 67
12.6 Check master station link status: +CLIENTSTATUS............................................................................... 68
12.7 Get local IP address: +GETIP.................................................................................................................... 68
13 GPS AT commands......................................................................................................................................... 69
13.1 Open or close GPS: +GPSPWR................................................................................................................. 69
13.2 Fetch GPS data: +GPSFETCH...................................................................................................................69
13.3 GPS status and output port configure: +GPSCFG..................................................................................... 70
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
5 of 69
Let’s enjoy the wireless life!
1 General commands
1.1 Check the manufacturer: +CGMI
Description
Check the manufacturer information
Format

Syntax
NULL
Response
<manufacturer>
or
+CME ERROR:<err>
Example
AT+CGMI
Neoway Corp Ltd
AT+CGMI
OK
NULL
NOTE
1.2 Query Module Model: +CGMM
Description
Query Module Model
Format

Syntax
NULL
Response
<model>
or
+CME ERROR:<err>
Example
AT+CGMM
M660
AT+CGMM
OK
NULL
NOTE
1.3 Query version :+CGMR
Description
Query version
Format

Syntax
NULL
Response
<version>
or
+CME ERROR:<err>
AT+CGMR
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
6 of 69
Let’s enjoy the wireless life!
Example
AT+CGMR
+CGMR: M660_1120_D7S13000_V015
OK
NULL
NOTE
1.4 Get Sequence Number:+CGSN
Description
This command is to get sequence number, known as IMEI (International Mobile
Equipment identity).
Format

Syntax
NULL
Response
<IMEI>
OK
Or
CME ERROR:<error>
Example
AT+CGSN
358511020024166
AT+CGSN
Read the command.
OK
AT+CGSN
CME ERROR:<error>
This code is a 15-digit numeral
NOTE
1.5 Get International Mobile Subscriber Identification:+CIMI
Description
This command is to get IMSI(international mobile subscriber identification).
Format

Syntax
NULL
Response
<IMSI>
AT+CIMI
OK
or
ERROR
Example
AT+CIMI
460029202075769
Read the command.
OK
AT+CIMI
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
Read the command ERROR.
7 of 69
Let’s enjoy the wireless life!
ERROR
NOTE
This code contains 15 figures, starting with three-digit MCC and double-digit MNC, to
authenticate SIM-card code.
1.6 Get SIM card Identification:+CCID
Description
Get SIM card ICCID
Format

Syntax
NULL
Response
<ICCID>
AT+CCID
OK
Or
ERROR:<error>
Example
AT+CCID
+CCID: 89860002190810001367
OK
AT+CCID
ERROR
ICCID is 20 digits.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
8 of 69
Let’s enjoy the wireless life!
2 Mobile devices control and status report
2.1 Check the module’s status:+CPAS
Description
This command is to check the module’s current operation status.
Format

Syntax

Response
+CPAS: <pas>
AT+CPAS
<pas>
This value may be:
0:ready(the module can implement AT commands)
1:unavailable (MT forbid the command)
2:unknown(unknown status)
3: ringing(the module can implement AT command,it will be ringing status when there
is an incoming call)
4:call in progress(the module can implement AT command, in call connecting or caller
ringing status.)
5:asleep(Module is in sleep mode, not ready)
OK
or
CME ERROR: <error>
Example
AT+CPAS
+CPAS:0
OK
AT+CPAS
ERROR
NULL
NOTE
2.2 Check network registration status:+CREG
Description
This command is to check network registration status of the module.
Format


Syntax

AT+CREG=[<n>]
AT+CREG?
<n>:
The value may be:
0:not allow the network registration to provide result code(default settings)
1:allow the network registration to provide result code
2:allow the network registration to provide local information (CELLID, LOCALID)
 <stat>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
9 of 69
Let’s enjoy the wireless life!
The value may be:
0:not registered, the terminal is not searching new operators
1:has been registered local network
2:not registered, the terminal is searching base stations
3:the registration is refused
4:unknown code
5:has been registered, at roaming status
<ci>:
string type; two byte cell ID in hexadecimal format
<Act>:
0
GSM
2
UTRAN
3
GSM W/EGPRS
Response
+CREG:
<n>,<stat>[,<lac>,<ci>[,<Act>]]
OK
+CME ERROR: <err>
Example
AT+CREG=1
OK
AT+CREG=1
ERROR
AT+CREG?
+CREG:0,1
OK
NOTE
2.3 Set module function:+CFUN
Description
This command is to select functions of module by setting <fun>. Only some values of
<fun> are allowed.
Format


Syntax
<fun>:
+CFUN=[<fun>[,<rst>]]
AT+CFUN?
1: full functionality meaning start up MS (from offline mode)
4: disable phone both transmit and receive RF circuits (Airplane mode) (GFS21
line and higher)
0: minimum functionality meaning switch off of the MS
<rst>:
0 : do not reset the MT before setting it to <fun> power level
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
10 of 69
Let’s enjoy the wireless life!
1 : reset the MT before setting it to <fun> power level
Response
+CFUN: (list of supported <fun>s), (list of supported <rst>s)
OR
+CME ERROR: <err>
Example
AT+CFUN=1
OK
AT+CFUN=?
+CFUN: (0,1,4),(0,1)
+CFUN: (list of supported <fun>s), (list of
supported <rst>s)
OK
NOTE
2.4 Low-power set:+ENPWRSAVE
Description
Set allow the module to enter into power save mode or not.
Format


Syntax
<n>:
0:not allow to enter into power save mode
1:allow to enter into power save mode
Response
See the example below.
Example
AT+ENPWRSAVE=1
OK
at+enpwrsave=<n>
at+enpwrsave?
AT+ENPWRSAVE=1
ERROR
AT+ENPWRSAVE?
+ENPWRSAVE:1
OK
NOTE
1) the values of <n> are not save when the module is powered off;
2) Module DTR signal is high level by default;
3) after enabling power save mode, the external should drive the DTR signal to low Level
and all circuits inside the module are allowed to enter power save mode. At this time,
the module can be entered into power save mode;
4) Module DTR signal driven is high level, wake-up the power save mode.
2.5 Clock:+CCLK
Description
This set command sets the real-time clock of the module.
Format

AT+CCLK=<time>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
11 of 69
Let’s enjoy the wireless life!

AT+CCLK?
Syntax
< time >:
string type value; format is “YY/MM/DD,hh:mm:ss+TZ”, wherein characters indicate
year, month, day, hour, minute and second.
TZ : 2 digits number indicates the time difference between local time and GMT. This
information is optional, only if when the network supports the information could display.
Response
See the example below.
Example
AT+CCLK=”11/10/14,09:30:16”
OK
AT+CCLK?
+CCLK:“11/10/14,09:32:04”
OK
NOTE
2.6 Set the module’s baud rate:+IPR
Description
This command is to set the module’s baud rate.
Format


Syntax
< baud rate >:
(1200,2400,4800,9600,14400,19200,28800,38400,57600,115200)
Response
See the example below.
Example
AT+IPR=115200
OK
AT+IPR=<baud rate>
AT+IPR?
AT+IPR?
+IPR:115200
OK
NOTE
1. The default baud rate is 115200;
2.7 Input PIN code:+CPIN
Description
This command is to check PIN status and input PIN code.
Format


Syntax
<pin>, <newpin>:
string type values
AT+CPIN=<pin>[,<newpin>]
AT+CPIN?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
12 of 69
Let’s enjoy the wireless life!
Response
+CPIN:<code>
< code > :
-READY:no need to input any passwords
-SIM PIN:need to input PIN code
-SIM PUK:need to input PUK code
-SIM PIN2:need to input PIN2 code
-SIM PUK2:need to input PUK2 code
Example
AT+CPIN?
+CPIN:READY
OK
NOTE
2.8 PIN enable and check function:+CLCK
Description
This command is to lock, unlock and check MT and network device.
Format

Syntax
< fac >:
“OI”:outgoing international calls;
“AI”:all incoming calls;
“IR”:all incoming calls when roaming outside local place;
“SC”:SIM card;
“AO”:outgoing calls;
“OX”:outgoing international calls except local place;
“AB”:all call services;
“AG”:all outgoing call services;
“AC”:all incoming call services;
“FD”:SIM card fix dialing memory feature;
“PS”:PH-SIM(lock phone to SIM-card);
“PN”:network personalization;
“PU”:network subsystem authentication;
“PP”:service provider authentication;
“PC”:corporate authentication.
<mode>:
0:unlock;
1:lock;
2:check status.
<status>:
0
not active
1
active
<passwd>:
AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
13 of 69
Let’s enjoy the wireless life!
Password or operation code, string type.
<class>:
1:voice
2:data
4:fax
8:SMS
16:data circuit sync
32:data circuit out-sync
64:dedicated package access
128:dedicated PAD access
Response
when <mode>=2 and command successful:
+CLCK: <status> [, <class1> [<CR><LF>+CLCK: <status>, <class2> [...]]
Example
AT+CLCK=”SC”,2
+CLCK: 0
OK
AT+CLCK=?
+CLCK:
("PF","SC","AO","OI","OX","AI","IR",
"AB","AG","AC","FD","PN","PU","PP",
"PC")
+CLCK: (list of supported <fac>s)
OK
NOTE
2.9 PIN change the password:+CPWD
Description
This command is to modify the lock password of the module.
Format

Syntax
< fac >:
"P2" SIM PIN2
“OI”:outgoing international calls;
“AI”:all incoming calls;
“IR”:all incoming calls when roaming outside local place;
“SC”:SIM card;
“AO”:outgoing calls;
“OX”:outgoing international calls except local place;
“AB”:all call services;
“AG”:all outgoing call services;
“AC”:all incoming call services;
“FD”:SIM card fix dialing memory feature;
AT+CPWD=<fac>,<oldpwd>,<newpwd>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
14 of 69
Let’s enjoy the wireless life!
“PN”:network authentication;
“PU”:network subsystem authentication;
“PP”:service provider authentication;
“PC”:corporate personalization.
<oldpwd>:
Old password or operation code, string type.
<newpwd>:
New password or operation code, string type.
Response
+CPWD: list of supported (<fac>,<pwdlength>)s
+CME ERROR: <err>
Example
AT+CPWD=?
+CPWD: ("SC",8),("P2",8),("AO",4),("OI",4),
("OX",4),("AI",4),("IR",4),("AB",4),
("AG",4),("AC",4)
+CPWD: list of supported (<fac>,
<pwdlength>)s
OK
NOTE
2.10 Extended ERROR report:+CEER
Description
After Implementing this command, it will return one or more lines of information text
<report>. The specific number of rows is determined by the ME manufacturer.
Format

Syntax
NULL
Response
+CMER:<report>
 <report>:
ME manufacturer supplies extended reports to TA users with the following reasons:
The latest call setup failure(initiation or response) or change in calls;
The latest call release;
The latest GPRS attach failure or PDP Context Activation;
The latest GPRS release or PDP Context dis-activation.
Example
AT+CEER
+CEER: 0, NONE
AT+CEER
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
15 of 69
Let’s enjoy the wireless life!
2.11 Set Error indication message:+CMEE
Description
This command is to set to disable or enable +CME ERROR: <err> result code
Format


Syntax
<n>:
Get value:
0:disable result code +CME ERROR:<err>, use ERROR,no need to input 0;
1:enable result code +CME ERROR:<err>,use numeric <err> to get value;
2:enable result code +CME ERROR: <err>,use lengthy <err> to get value.
Response
See the example below.
Example
AT+CMEE=1
OK
AT+CMEE=[<n>]
AT+CMEE?
AT+CMEE?
+CMEE: 1
OK
NOTE
2.12 Set signal state: +SIGNAL
Description
Set the different shining state of the signal light
Format



Syntax
<value>:
The value is integer type: 0~5
0: normal state, flashing once every second, and light off or light on all the time are
both the abnormal state
1: flashing once every second when have GPRS data transmitting, light off in the
other states.
2: have two states(flashing fast and low), flashing once every 250 millisecond
during GPRS data transmitting(flashing fast), flashing once a second upon the other
states
3: keep flashing during GPRS data transmitting, flashing once a second upon the
other states
4: keep flashing during GPRS data transmitting, light off upon the other states
5: light off when detect SIM card fail, flashing once a second when detect SIM card
successfully, keep flashing when GPRS data transmitting
Response
See the example below
Example
AT+SIGNAL?
AT+SIGNAL=<value>
AT+SIGNAL?
AT+SIGNAL=?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
16 of 69
Let’s enjoy the wireless life!
+SIGNAL: 2
OK
AT+SIGNAL=3
OK
AT+SIGNAL=?
+SIGNAL: (0-5)
OK
NOTE
1. The default value is 2.
2. It value setted is kept when the module powered off
2.13 Open hardware or software flow control function:+IFC
Description
This command is to open hardware or software flow control function
Format


Syntax
<n1>:
The value is integer type: 0~2
<n2>:
The value is integer type: 0~2
Response
See the example below.
Example
AT+IFC=1,1
OK
Open software flow control function
AT+IFC=2,2
OK
Open hardware flow control function
AT+IFC=0,0
OK
Close flow control function
AT+IFC=<n1>,<n2>
AT+IFC?
Set U1CTS&U1RTS before open the flow control function, see AT+FCHW for details
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
17 of 69
Let’s enjoy the wireless life!
3 Network services commands
3.1 Signal intensity:+CSQ
Description
This command is to check the receiving signal intensity <rssi> and the channel bit
error rate <ber>
Format

Syntax
NULL
Response
+CSQ:<rssi>,<ber>
 < rssi >
The following is the ‘signal’(CSQ)to rssi:
AT+CSQ
signal
0
<4 or 99
<-107 dBm or unknown
1
<10
<-93dBm
2
<16
<-71 dBm
3
<22
<-69dBm
4
<28
<-57dBm
5
>=28
>=-57 dBm
<ber>

Example
rssi
0...7
Reference on the value of RXQUAL in Table GSM 05.08
8.2.4
99
Bit error rate can not be measured
AT+CSQ
+CSQ: 11,99
OK
NOTE
3.2 Network selection:+COPS
Description
This command is to select and register GSM network
Format


Syntax
<mode>:
To select whether the selection is done automatically or is forced by this command to
operator <oper> given in the format <format> and may be:
-0: automatic ( <per> is ignored)
-1: manual
-2: deregister from the network
AT+COPS=[<mode>[,<format>[,<oper>>[,<AcT>]]]]
AT+COPS?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
18 of 69
Let’s enjoy the wireless life!
-3: set only <format>
-4: manual/ automatic ( if manual selection fails, automatic mode is entered)
<format>
-0: long alphanumeric <oper> (default value)
-1: short format alphanumeric <oper>
-2: numeric <oper>
<oper> :
string type given in format <format>; this field may be up to 16 characters long for long
alphanumeric format, up to 8 characters for short alphanumeric format and 5 characters
long for numeric format (MCC/MNC).
<AcT> indicates the radio access technology and may be:
-0: GSM
-1: GSM compact
-2: UTRAN
Response

Example
AT+COPS=0,0
OK
<stat>
-0: unknown network
-1: available network
-2: current network
-3: forbidden network
AT+COPS=0,2
OK
Set to digital mode
AT+COPS?
+COPS:0,0, "CHINA MOBILE"
Query the network operator
China Mobile
OK
or
AT+COPS?
+COPS: 0,0, "46000"
If it is set to digital mode, then get the
number 46000
OK
AT+COPS?
+COPS: 0,0,"CHINA UNICOM"
Query the network operator
China Unicom
OK
or
AT+COPS?
+COPS: 0,0, "46001"
If it is set to digital mode, then get the
number 46001
OK
NOTE
1:in the read syntax the parameter <AcT> is displayed only if UMTS is supported in the
terminal.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
19 of 69
Let’s enjoy the wireless life!
2 : if GSM/UMTS dual mode is selected and manual mode is selected, the <AcT>
parameter is used to indicate the access technology for the manual attach procedure.
3:in case of automatic mode, the <AcT> parameter will be ignored.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
20 of 69
Let’s enjoy the wireless life!
4 Call control command
4.1 Speaker volume:+CLVL
Description
This command is to set the grade of speaker volume,it is effective before calls or
during calls.
Format


Syntax
<level>:
The range is 0~6.
Response
Example
AT+CLVL=<level>
AT+CLVL?
See the example below.
AT+CLVL=4
OK
AT+CLVL?
+CLVL:4
OK
AT+CLVL=?
+CLVL:0-6
OK
NOTE
4.2 Mute control:+CMUT
Description
This command is mute control of voice calls ,it is effective before calls or during calls.
Format


Syntax
<n>:
0
mute off
1
mute on
Response
See the example below.
Example
AT+CMUT=0
OK
AT+CMUT=<n>
AT+CMUT?
AT+CMUT?
+CMUT:0
OK
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
21 of 69
Let’s enjoy the wireless life!
NOTE
4.3 Dialing commands:ATD
Description
Initial data or a fax or voice link, if it is the voice link, dial string composed of
numbers and modifiers, and must end with a semicolon.
Format


Syntax
<string>:
Phone number
<n>:
The location of phone number
Response
OK
ATD<string>;
ATD<n>;
SPEECH ON
ALERTING
If the client hang up the phone directly, it returns:
SPEECH OFF
RELEASE
BUSY
If the client pick up the machine, it returns:
CONNECT
If the client hang up during calling, it returns:
SPEECH OFF
RELEASE
NO CARRIER
Example
ATD15989585717;
OK
SPEECH ON
ALERTING
CONNECT
SPEECH OFF
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
22 of 69
Let’s enjoy the wireless life!
RELEASE
NO CARRIER
ATD15989585717;
OK
SPEECH ON
ALTERING
SPEECH OFF
RELEASE
BUSY
NULL
NOTE
4.4 Call answering:ATA
Description
This command is to reply calls,establish the phone links.When showing RING or
+CRING indicate incoming call.
Format

Syntax
NULL
Response
SPEECH ON
ATA
OK
or
SPEECH OFF
RELEASE
NO CARRIER
Example
ATA
SPEECH ON
OK
NULL
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
23 of 69
Let’s enjoy the wireless life!
4.5 Hand up calls:ATH
Description
This command is to hang up all the calls links.
Format

Syntax
NULL
Response
See the example below.
Example
ATH
RELEASE
ATH
OK
NOTE
4.6 Caller ID:+CLIP
Description
This command is to set whether turn on caller ID or not
Format


Syntax
<n>:
0
disable
1
enable
Response
+CLIP:<n>,<m>
<n>:
0
disable
1
enable
<m>:
0
CLIP not provisioned
1
CLIP provisioned
2
unknown (e.g. no network, etc.)
Example
AT+CLIP=1
OK
AT+clip=<n>
AT+CLIP?
AT+CLIP?
+CLIP:1,1(default)
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
24 of 69
Let’s enjoy the wireless life!
4.7 Send DTMF tone:+VTS
Description
This command is to set DTMF tone duration. Only for voice services in GSM.
Format

Syntax
< DTMF >:
A single ASCII character in the set .0-9, #, *, A-D.
Response
See the example below.
Example
AT+VTS=?
+VTS: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,#,*
AT+VTS=<DTMF>
OK
NOTE
4.8 Auto-answering: ATS0
Description
This command is to control the auto-answer model of module. If ATS0=0,
auto-answer is not enable; if ATS0 is not null, the module will auto-answer after
setting ring times.
Format


Syntax
<value>:
Integer type value,the range:0~255。
Response
See the example below.
Example
ATS0=1
OK
ATS0=<value>
ATS0?
ATS0?
001
OK
NOTE
4.9 Activate hands-free: +HANDFREE
Description
For hands-free voice control, call before the call settings are effective
Format

Syntax
<value>:
Integer
0- Hands-free mode
AT+HANDFREE=<value>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
25 of 69
Let’s enjoy the wireless life!
1- Headphone mode
Response
See the example below.
Example
AT+HANDFREE=0
OK
set to Hands-free mode
AT+HANDFREE?
+HANDFREE:0
set to Headphone mode
OK
NOTE
4.10 Open the DTMF detect: +DTMFDETECT
Description
Open the DTMF detect, only effective set upon a call
Format

Syntax
<value>
Numerical type:
0: stop DTMF detect (pairing use with <value> is 1)
1: start DTMF detect (only effective in a call)
2: start DTMF detect (effective before a call)
3: stop DTMF detect (pairing use with <value> is 2)
Response
+DTMF:DETECT START OK
+DTMF:DETECT STOP OK
+DTMF:DETECT ALREADY STARTED
+DTMF:OPERATION NOT ALLOWED
Example
AT+DTMFDETECT=1
+DTMF:DETECT START OK
Start DTMF detect
AT+ DTMFDETECT=0
+DTMF:DETECT STOP OK
Stop DTMF detect
AT+DTMFDETECT=2
+DTMF:DETECT ALLOWED OK
Start DTMF detect
AT+ DTMFDETECT=3
+DTMF:DETECT ALLOWED NOT
Stop DTMF detect
AT+DTMFDETECT=<value>
NOTE
4.11 Speaker mode echo control level:+ESL
Description
Set loud-speaker mode echo control level:+ESL
Format


AT+ESL=<value>
AT+ESL?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
26 of 69
Let’s enjoy the wireless life!
Syntax
<value>: numerical type, range is 0~6
Response
See the example below
Example
AT+ESL?
+ESL:2
Query the current echo control level
OK
AT+ESL=1
OK
Set the echo control level1
Value kept after module powered off
NOTE
4.12 Earphone mode echo control level:+HESL
Description
Set earphone mode echo control level:+ESL
Format


Syntax
<value>: numerical type, range is 0~6
Response
See the example below
Example
AT+HESL?
+HESL:2
AT+HESL=<value>
AT+HESL?
Query the current echo control level
OK
AT+HESL=1
OK
Set the echo control level1
Value kept after module powered off
NOTE
4.13 MIC volume control:+MICL
Description
Set MIC volume, active in a call
Format


Syntax
<level>:
Numerical type, range 0~6
Response
See the example below
Example
AT+MICL=3
OK
Set MIC volume level 3
AT+MICL?
+MICL:3
Query current MIC volume level 3
AT+MICL=<level>
AT+MICL?
OK
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
27 of 69
Let’s enjoy the wireless life!
NOTE
4.14 Change audio input channel:+AUDIN
Description
Audio input channel switching, set before or during a call effective
Format


Syntax
<n>:
0:set MIC0 input(default)
1:set MIC1 input
Response
See the example below
Example
AT+AUDIN=0
OK
Set voice input from MIC0
AT+AUDIN?
+ AUDIN: 0
Query current voice input channel
AT+AUDIN=<n>
AT+AUDIN?
OK
The value do not kept after the module power off, default <n> is 0.
NOTE
4.15 Change audio output channel:+AUDOUT
Description
Audio output channel switching, set before or during a call effective
Format


Syntax
<n>:
0:set to output from receiver channel
1:set to output from speaker channel
2:set to output from earphone channel(default)
Response
See the example below
Example
AT+AUDOUT=0
OK
Set to output from receiver
AT+AUDOUT?
+ AUDOUT: 0
Query current voice output channel
AT+AUDOUT=<n>
AT+AUDOUT?
OK
The value do not kept after the module power off, default <n> is 2.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
28 of 69
Let’s enjoy the wireless life!
5 SMS service commands
5.1 Choose SMS service:+CSMS
Description
This command is to support SMS, include:sending(SMS-MO)、receiving(SMS-MT)、
cell broadcast(SMS-CB)
Format


Syntax
<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
Response
See the example below.
Example
AT+CSMS=1
+CSMS:1,1,1
AT+CSMS=<service>
AT+CSMS?
+CSMS:<mt>,<mo>,<bm>
OK
OK
AT+CSMS?
+CSMS:1,1,1,1
+CSMS:<service>,<mt>,<mo>,<bm>
OK
OK
NOTE
5.2 Primary SMS storage:+CPMS
Description
This command is to choose primary message storage.
Format


Syntax
<mem1>:“SM”SIM card is used to read and delete message storage.
<used>:used numbers。
<total>:total storage capacity numbers.
Response
+CPMS:
<mem1>,<used1>,total1>,<mem2>,<use d2>,<total2>,<mem3>,<used3>,<total3>
AT+CPMS=<mem1>
AT+CPMS?
OK
or
CMS ERROR: <error>
Example
AT+CPMS=”SM”
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
+CPMS:
29 of 69
Let’s enjoy the wireless life!
+CPMS: 50, 50, 50, 50, 50, 50
OK
AT+CPMS?
+CPMS: "SM_P", 50, 50, "SM_P", 50, 50,
"SM_P", 50, 50
<used1>,<total1>,<used2>,<total2>,
<used3>,<total3>
OK
OK
+CPMS:
<mem1>,<used1>,<total1>,<mem2>,
<used2>,<total2>,<mem3>,<used3>,
<total3>
OK
AT+CPMS=?
+CPMS: ("SM", "ME", "SM_P", "ME_P", "MT"),
("SM", "ME", "SM_P", "ME_P", "MT"), ("SM",
"ME", "SM_P", "ME_P", "MT")
+CPMS:(list of supported <mem1>s),
(list of supported <mem2>s),
(list of supported <mem3>s)
OK
OK
NOTE
5.3 Set SMS mode:+CMGF
Description
This command is to set SMS input mode.
Format


Syntax
<mode>:
0: PDU mode
1: text mode
Response
See the example below.
Example
AT+CMGF=1
OK
AT+CMGF=[<mode>]
AT+ CMGF?
AT+ CMGF?
+CMGF:1
OK
NOTE
5.4 Set TE character sets: +CSCS
Description
This command is to set TE character set.
Format


Syntax
< chset >:
AT+CSCS=<chset>
AT+ CSCS?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
30 of 69
Let’s enjoy the wireless life!
1、 “GSM”:GSM default alphabet (GSM03.38.6.2.1)
2、 “HEX”:character strings consist only of hexadecimal numbers from 00 to FF; e.g.
"032FE6" equals three 8-bit characters with decimal values 3, 47 and 230; no
conversions to the original MT character set shall be done
3、 “IRA”:international reference alphabet.(ITU-T T.50).
4、 “PCCP437”: PC character set Code Page 437
5、 “8859-1”: ISO 8859 Latin 1 character set
6、 “UCS2”: 16-bit universal multiple-octet coded character set (USO/IEC10646);
UCS2 character strings are converted to hexadecimal numbers from 0000 to
FFFF. Only the strings found in quotation marks are UCS2 coded, the rest of
commands or responses, remains in IRA alphabet.
Response
NULL
Example
AT+CSCS=”HEX”
OK
AT+CSCS?
+CSCS: "HEX"
+CSCS: <chset>
OK
OK
AT+CSCS=?
+CSCS:("IRA","GSM","HEX", PCCP437",
"8859-1", "UCS2", "UCS2_0X81")
+CSCS: (list of supported <chset>s)
OK
OK
NOTE
5.5 Set message indication Format: + CNMI
Description
This command is to set how to inform the user after receiving new message from the
network.
Format


Syntax
<mode>: set indication mode of sending to subscriber after receiving short message
0: message indication mode cashed in module, if TA has been full, code can be deposited
other place or brush off the oldest code and replace it by the latest receiving code.
1: under On-line State, brush off deposited message indication code and reject new
indication code. In other conditions, display the code on terminal equipment directly.
2: under On-line State, message indication code is cashed in module. When processing
released, output indication code through serial port. Under its state, display indication
code on terminal equipment directly.
<mt>: set new message indication code mode, default value is 0.
0: not sending new message indication code.
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]
AT+CNMI?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
31 of 69
Let’s enjoy the wireless life!
1: new message indication code mode is +CMTI: “MT”, <index>, the message content
stored and don't display directly.
2:
new
message
indication
code
mode
is
+CMT:
<oa>,
<scts>,<tooa>,<lang>,<encod>,<priority>
[,<cbn>],<length><CR><LF><data>,message content display directly but not stored.
<bm>: set new cell broadcast indication code mode, default value is 1.
0: not sending new cell broadcast indication information, not stored
1: new cell broadcast indication code is +CBMI: “BC”, <index>, cell broadcast is stored.
2:
new
cell
broadcast
indication
code
mode
is
+CBM:
<oa>,[<alphab>,]<scts>[,<tooa>,<length>]
<CR><LF><data>, cell broadcast content display directly but not stored.
<ds>: message sending condition report, default value is 1.
0: no message sending condition report
1:
message
sending
condition
report
code
mode
is
+CDS:<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>, <st> (text mode),cell broadcast content
display directly but not stored.
<bfr>: default value is 0.
0: When <mode>=1 or 3, the code this command defined which is stored in TA will be
sended to TE, the module will return to OK before processing the code.
1: when <mode>=1or 3, the code this command defined which is stored in TA will be
cleared.
Response
See the example below.
Example
AT+CNMI=1,1,0,0,0
OK
AT+CNMI=?
+CNMI: (0-3), (0-3), (0,2,3), (0,1), (0,1)
OK
+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)
AT+CNMI?
+CNMI:1,1,0,0,0
+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
OK
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
32 of 69
Let’s enjoy the wireless life!
5.6 Read message:+CMGR
Description
This command is to read message in current storage (need to set current storage by
AT+CPMS in advance)
Format

Syntax
<index>:
<index>:location value <index> from preferred message storage <mem1> to the TE
Response
if text mode (+CMGF=1), command successful and SMS-DELIVER:
+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1), command successful and SMS-SUBMIT:
+CMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>], <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1),command successful and SMS-STATUS-REPORT:
+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
if text mode (+CMGF=1), command successful and SMS-COMMAND:
+CMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><CR><LF><cdata>]
if text mode (+CMGF=1), command successful and CBM storage:
+CMGR: <stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data>
if PDU mode (+CMGF=0) and command successful:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
Example
AT+CMGR=1
+CMGR: "REC READ","66421","","2011/09/13 16:37:59+32"
050003140401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596
D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA
6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C
D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD
EC627E8E9441BD42655DEF446
AT+CMGR=<index>
OK
NOTE
If the status of the message is received unread, the status in the storage changes to received
read.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
33 of 69
Let’s enjoy the wireless life!
5.7 Message list:+CMGL
Description
This command is to read a certain type of short messages in the storage. The message
will be read in the current storage selected by +CPMS command.
Format


Syntax
<stat>:
“REC UNREAD”:received unread SMS
”REC READ”: received read SMS
”STO UNSENT”: stored unsent SMS
”STO SENT”: stored sent SMS
”ALL”:all SMS
Response
if text mode (+CMGF=1),command successful and SMS-SUBMITS and/or
SMS-DELIVERS:
+CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[<CR><LF>
+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[...]]
if text mode (+CMGF=1),command successful and SMS-STATUS-REPORTS:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
[<CR><LF>
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]]
if text mode (+CMGF=1), command successful and SMS-COMMANDS:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
if text mode (+CMGF=1), command successful and CBM storage:
+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data>[<CR><LF>
+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data> [...]]
if PDU mode (+CMGF=0) and command successful:
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>
[<CR><LF>
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>[...]]
AT+CMGL[=<stat>]
AT+CMGL=?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
34 of 69
Let’s enjoy the wireless life!
Example
AT+CMGL="ALL"
+CMGL: 1,"REC READ","66421","","2011/09/13 16:37:59+32"
050003140401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596
D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA
6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C
D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD
EC627E8E9441BD42655DEF446
+CMGL: 14,"STO SENT","66045","",
050003010401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596
D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA
6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C
D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD
EC627E8E9441BD42655DEF446
+CMGL: 44,"REC UNREAD","8615719556937","","2011/09/30 03:00:55+32"
5E7F4E1C79FB52A863D0919260A8003A4E2D536B75286237003100350037003100390
035003500360039003300377ED960A86765753500326B21002C6700540E4E006B21572
800320039002F00300039002000320030003A00340038002C60A853EF6309901A8BDD9
52E621690099879952E76F463A556DE62E8
OK
AT+CMGL=?
+CMGL: ("REC UNREAD", "REC READ", "STO UNSENT", "STO SENT", "ALL")
OK
NOTE
5.8 Message sending:+CMGS
Description
This command is to send message from the module to network, the network will response
reference value <mr> to the module after sending successfully.
Format
 Command syntax(text mode):
AT+CMGS=<da>[,<toda>]<CR>text is entered<ctrl-Z/ESC>
 Command syntax (PDU mode):
AT+CMGS=<length><CR>PDU is given<ctrl-Z/ESC>
Syntax
<da>:
Send message to target number in text mode
<text>:
Message content in text mode
<length>:
The length of message content digits in PDU mode.
<mr>:
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
35 of 69
Let’s enjoy the wireless life!
Storage location
<CR> :
End character.
<ctrl-Z> :
Indicate the end of the message input.
<ESC> :
Give up to input message.
Response
if text mode (+CMGF=1) and sending successful:
+CMGS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMGS: <mr>[,<ackpdu>]
Example
AT+CMGS="66358"<CR>
> This is the text
+CMGS: 171
Text mode(+CMGF=1)
OK
AT+CMGS=33<CR>
>0891683108705505F001000B815118784271F20008146DF15
7335E025B9D5B89533A59276D6A80545EFA
+CMGS: 119
PDU mode (+CMGF=0)
OK
NOTE
1、 If send the PDU SMS, do not select ENTER to send the orders, please click newline to send
the AT+CMGS command, or use hexadecimal <CR>
2、see details for PDU SMS at appendix 14.1
5.9 Write message:+CMGW
Description
This command is to input messages to the storage, response location information
<index> after saving 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+CMGS=<length>[,<stat>]<CR>PDU is given<ctrl-Z/ESC>
Syntax
<da>:
Send message to target number in text mode.
<text>:
Message content in text mode
<length>:
The length of message content digits in PDU mode.
<index>:
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
36 of 69
Let’s enjoy the wireless life!
Location information
<CR> :
End character.
<ctrl-Z> :
Indicate the end of the message input.
<ESC> :
Give up to input message.
Response
+CMGW:<index>
OK
or
+CMS ERROR:<err>
Example
AT+CMGW=”091137880”<CR>
text”<Ctrl-Z>
+CMGW:15
“This is the
Text mode(+CMGF=1)
OK
AT+CMGW=31,<CR>0891683108705505F001000B813
124248536F300081200400026002A535A53D153A653C
1532052C7<Ctrl- Z>
+CMGW:1
PDU mode (+CMGF=0)
OK
NOTE
By default message status will be set to “stored unsent”, but parameter <stat> allows also
other status values to be given, support “stored unsent” and “stored sent”.
5.10 Send stored message:+CMSS
Description
This command is to send messages with location value <index> from the memory
storage (SMS-SUBMIT). Reference value <mr> is returned to the terminal after
sending the message successfully.
Format

Syntax
Execution command sends message with location value <index> from message storage
<mem2> to the network (SMS-SUBMIT or SMS-COMMAND). If new recipient address
<da> is given for SMS-SUBMIT, it shall be used instead of the one stored with the
message.
Response
if text mode (+CMGF=1) and sending successful:
+CMSS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMSS: <mr>[,<ackpdu>]
Example
AT+CMSS=2
+CMSS:<mr>
AT+CMSS=<index>[,<da>[,<toda>]]
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
Send messages stored in Memory 2
37 of 69
Let’s enjoy the wireless life!
OK
AT+CMSS=2
CME ERROR:<err>
Send messages stored in Memory 2
NOTE
5.11 Delete message:+CMGD
Description
This command is to delete messages from the current storage.
Format


Syntax
<index>:
Record number of stored message.
<delflag>:
Delete flag
0:delete the message specified record number.
1:delete all read message
2:delete all read and sent message
3:delete all read, sent and unsent message
4:delete all messages
Response
See the example below.
Example
AT+CMGD=3
OK
Delete successfully
AT+CMGD=?
+CMGD: (1-50), (0-4)
+CMGD:(list of supported <index>s)
[,(list of supported <delflag>s)]
AT+CMGD=<index> [,<delflag>]
AT+CMGD=?
OK
If <delflag> is setted, the parameter <index> is ignored.
NOTE
5.12 Service center address:+CSCA
Description
This command is to set the service center address.
Format


Syntax
<sca>:
Service center address.
<tosca>:
Service center address Format. 129 indicates normal number type, 145 indicates
international number type (automatically add “+” before the number).
Response
See the example below.
AT+CSCA=<sca>[,<tosca>]
AT+CSCA?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
38 of 69
Let’s enjoy the wireless life!
Example
AT+CSCA=” 8613800755500”,145
OK
AT+CSCA?
+CSCA: "8613800755500", 145
OK
NOTE
5.13 Set Text Mode Parameters: +CSMP
Description
In text mode, select the additional parameter values; set the validity from the moment
when received the message from SMSC or definite the absolute time of the
termination fo the validity.
Format


Syntax
<fo>:
Depends on the command or result code: the first 8 digits of GSM 03.40 SMS-DELIVER;
SMS-SUBMIT (default value is 17); or use integer type SMS-COMMAND (default value
is 2).
<vp>:
AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]]
AT+CSMP?
value
Effective time
0-143
(vp+1)*5 minutes
144-167
12
minutes)
168-196
(vp–166)*1 day
197-255
(vp–192)*1 week
hours+((vp–143)*30
<pid>:integer type TP-protocol-ID
(default value is 0).
<dcs>:integer type cell broadcasting data coding program
(default value is 0).
Response
See the example below.
Example
AT+CSMP=17,167,0,0
OK
AT+CSMP?
+CSMP: 0, 255, 0, 0
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
39 of 69
Let’s enjoy the wireless life!
5.14 Display text mode parameter:+CSDH
Description
This command is to set to display detailed head message or not in result code under
text mode
Format


Syntax
<show>:
0: disable or not show
1: able or show
Response
See the example below.
Example
AT+CSDH=0
OK
Equal to
AT+CSDH=0
AT+CMGR=14
+CMGR: "REC READ","+86134309815
04","","09/07/17,14:49:00+50"7B567565
5FAE5C0F65F65019
OK
AT+CSDH=1
OK
AT+CMGR=14
+CMGR: "REC READ","+86134309815
04","","09/07/17,14:49:00+50",145,4,0,8,
"+8613800755500",145,127B5675655FA
E5C0F65F65019
AT+CSDH=[<show>]
AT+CSDH?
OK
AT+CSDH?
+CSDH:0
OK
NOTE
5.15 Choose cell broadcast message type:+CSCB
Description
This command is to set CBM type ME received
Format

Syntax
<mode>:
Get value:
0:accept the message type specified by <mids> and <dcss>, no need to input value 0;
1:not accept the message type specified by <mids> and <dcss>.
<mids>:
Chatacter type(eg: 0,1,5,320~478,922);the combination of all possible CBM message
ID(please reference <mid>).
AT+CSCB=[<mode>[,<mids>[,<dcss>]]]
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
40 of 69
Let’s enjoy the wireless life!
<dcss>:
Charater type(eg:0~3,5); the combination of all possible CBM data coding program
(please reference <dcs>)(the default value is empty chatater string).
Response
See the example below.
Example
AT+CSCB=0,"2","2"
OK
AT+CSCB?
+CSCB: 0,"2","0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,32,33,34,35,36,15"
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
41 of 69
Let’s enjoy the wireless life!
6 Phonebook commands
6.1 Select phonebook storage: +CPBS
Description
Set command select phonebook memory storage
Format


Syntax
<storage>:
"ME"
"SM"
"LD"
"MC"
"RC"
"DC"
"FD"
"ON"
Response
AT+CPBS=<storage>
AT+CPBS?
ME phonebook
SIM/UICC phonebook
last-dialling phonebook
MT missed calls list
MT received calls list.
MT dialled calls list
SIM/USIM fixdialling-phonebook
SIM own numbers (MSISDNs) list
+CPBS:<storage>[,<used>,<total>]
<used>: The number of used locations in selected memory
<total>: The total number of locations in selected memory
Example
AT+CPBS="SM"
OK
AT+CPBS?
+CPBS: "SM", 1, 250
OK
NOTE
6.2 Read phonebook entries: +CPBR
Description
This command is to read the information of phone book.
Format


Syntax
<index 1>,<index 2>: Integer type values in the range of location numbers of
phonebook memory
Response
[+CPBR:<index1>,<number>,<type>,<text><CR>
+CPBR:<index2>,<number>,<type>,<text>]
[+CPBR:
<index1>,<number>,<type>,<text>[,<hidden>][[...]
<CR><LF>+CPBR:
<index2>,<number>,<type>,<text>[,<hidden>]]]
AT+CPBR=<index 1>[,<index 2>]
AT+CPBR=?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
42 of 69
Let’s enjoy the wireless life!
<index1>, <index2>, <index>: integer type values in the range of location numbers of
phonebook memory
<number>: string type phone number of format <type>
<type>: type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7)
<text>: the phone book entry name,string type field of maximum length <tlength>;
character set as specified by command Select TE Character Set +CSCS
+CPBR: (list of supported <index>s),[<nlength>],[<tlength>]
<nlength>: integer type value indicating the maximum length of field <number>
<tlength>: integer type value indicating the maximum length of field <text>
<hidden>: indicates if the entry is hidden or not
0: phonebook entry not hidden
1: phonebook entry hidden
Example
AT+CPBR=1,3
+CPBR: 3, "8613860555459", 145, "4E01806A0031"
OK
AT+CPBR=?
+CPBR: (1-50), 40, 14
+CPBR:(list of supported <index>s),
[<nlength>],[<tlength>]
OK
NOTE
6.3 Find phonebook entries: +CPBF
Description
This command is to find the information of phone book.
Format

Syntax
<findtext>:the phone book entry name.
Response
+CPBF:<index1>,<number>,<type>,<text>
<index>: integer type values in the range of location numbers of phonebook memory
<number>: string type phone number of format <type>
<type>: type of address
<text>: the phone book entry name, string type field of maximum length <tlength>;
character set as specified by command Select TE Character Set +CSCS.UCS2”, and “IRA”
are supported.
Example
AT+CPBF="Comneon"
+CPBR:1,"091137880",129,"Comneon"
AT+CPBF=<findtext>
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
43 of 69
Let’s enjoy the wireless life!
6.4 Write phonebook entry: +CPBW
Description
This command is to write the information in phone book.
Format

Syntax
<index>: integer type values in the range of location numbers of phonebook memory
<number>: string type phone number of format <type>
<type>: type of address
<text>: the phone book entry name, string type field of maximum length <tlength>;
character set as specified by command Select TE Character Set +CSCS.UCS2”, and “IRA”
are supported.
Response
+CPBW: (list of supported <index>s),[<nlength>], (list of supported <type>s),[<tlength>]
AT+CPBW=<index>,<number>,<type>,<text>
<nlength>: integer type value indicating the maximum length of field <number>
<tlength>: integer type value indicating the maximum bytes of field <text> after encoding
Example
AT+CPBW=1,”091137880”,129,”Comneon”
OK
AT+CPBW=?
+CPBW: (1-50), 40, (129,145), 14
+CPBW: (list of supported
<index>s),[<nlength>], (list of supported
<type>s),[<tlength>]
OK
Need to pre-set TE character set,or the name of input will fail.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
44 of 69
Let’s enjoy the wireless life!
7 Supplementary service commands
7.1 Call forwarding number and conditions: +CCFC
Description
This command allows control of the supplementary service
Format


AT+CCFC=<reason>,<mode>[,<number>[,<type>[,<class>[,<subaddr>[,<satype>[,<t
ime>]]]]]]
AT+CCFC=?
Syntax
<reason>:
0
unconditional
1
mobile busy
2
no reply
3
not reachable
4
all call forwarding (refer 3GPP TS 22.030 [19])
5
all conditional call forwarding (refer 3GPP TS 22.030 [19])
<mode>:
0
disable
1
enable
2
query status
3
registration
4
erasure
<number>: string type phone number of forwarding address in format specified by <type>
<type>: type of address
<subaddr>: string type sub-address of format specified by <satype>
<satype>: type of sub-address octet in integer format (refer TS 24.008 [8] subclause
10.5.4.8); default 128
<classx> is a sum of integers each representing a class of information (default 7):
1
voice (telephony)
2
data (refers to all bearer services)
4
fax (facsimile services)
8
short message service
16 data circuit sync
32 data circuit sync
64 dedicated packet access
128 dedicated PAD access
<time>:
1...30 when "no reply" is enabled or queried, this gives the time in seconds to wait before
call is forwarded
<status>:
0
not active
1
active
Response
when <mode>=2 and command successful:
+CCFC: <status>,<class1>[,<number>,<type>[,<subaddr>,<satype>[,<time>]]][
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
45 of 69
Let’s enjoy the wireless life!
<CR><LF>+CCFC: <status>,<class2>[,<number>,<type>[,<subaddr>,<satype>[,
<time>]]][...]]
Example
AT+CCFC=0,1,”123456”
OK
AT+CCFC=?
+CCFC: (0-5)
+CCFC: (list of supported <reason>s)
OK
Requests call-related supplementary services.
NOTE
7.2 Call waiting: +CCWA
Description
This command is to control call waiting.
Format


Syntax
<n> (sets/shows the result code presentation status to the TE):
0
disable
1
enable
<mode> (when <mode> parameter is not given, network is not interrogated):
0
disable
1
enable
2
query status
<classx> is a sum of integers each representing a class of information (default 7):
1
voice (telephony)
2
data (refers to all bearer services)
4
fax (facsimile services)
8
short message service
16 data circuit sync
32 data circuit sync
64 dedicated packet access
128 dedicated PAD access
<status>:
0
not active
1
active
<number>: string type phone number of calling address in format specified by <type>
<type>: type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7)
Response
when <mode>=2 and command successful
+CCWA: <status>,<class1>[<CR><LF>+CCWA: <status>,<class2>[...]]
Example
AT+CCWA=1,1
OK
AT+CCWA=[<n>[,<mode>[,<class>]]]
AT+CCWA?
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
46 of 69
Let’s enjoy the wireless life!
AT+CCWA=?
+CCWA: (0-1)
+CCWA: (list of supported <n>s)
OK
AT+CCWA?
+CCWA: 0
+CCWA: <n>
OK
Requests call-related supplementary services.
NOTE
7.3 Call hold and multiparty conversation: +CHLD
Description
This command is to control call hold and multiparty conversation
Format


Syntax
<n> (sets/shows the result code presentation status to the TE):
0
Releases all held calls, or sets User-Determined User Busy for a waiting call
1
Releases all active calls and accepts the other (waiting or held) call
1x Releases the specific active call X
2
Places all active calls on hold and accepts the other (held or waiting) call’
2x Places all active calls, except call X, on hold
3
Adds a held call to the conversation
4
Connects two calls and disconnects the subscriber from both calls
5 Activate the Completion of Calls to Busy Subscriber Request. (CCBS)
Response
See the example below.
Example
AT+CHLD=0
OK
AT+CHLD=<n>
AT+CHLD=?
AT+CHLD=?
+CHLD: (0, 1, 1x, 2, 2x, 3, 4, 5)
[+CHLD: (list of supported <n>s)]
OK
NOTE
Requests call-related supplementary services. Refers to a service that allows a call to be
temporarily disconnected from the ME but the connection to be retained by the network,
and to a service that allows multiparty conversation. Calls can be put on hold, recovered,
released and added to a conversation.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
47 of 69
Let’s enjoy the wireless life!
8 GPRS commands
8.1 Define PDP context: +CGDCONT
Description
This command is to set PDP context.
Format
 AT+CGDCONT=[<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp>
[,<h_comp> [,<pd1> [,…[,pdN]]]]]]]]]
 AT+CGDCONT?
 AT+CGDCONT=?
Syntax
<cid>:
(PDP Context Identifier) a numeric parameter which 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 may be 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>
Response
See the example below.
Example
AT+CGDCONT=1,”IP”,”CMNET”
OK
AT+CGDCONT?
+CGDCONT:
1,
“CMNET”, ”0.0.0.0”, 0, 0
OK
“IP”,
+CGDCONT: <cid>, <PDP_type>,
<APN>,<PDP_addr>, <d_comp>,
<h_comp>[,<pd1>[,…[,pdN]]]
[<CR><LF>
+CGDCONT: <cid>, <PDP_type>,
<APN>,<PDP_addr>, <d_comp>,
<h_comp>[,<pd1>[,…[,pdN]]][...]]
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
48 of 69
Let’s enjoy the wireless life!
AT+CGDCONT=?
+CGDCONT: (1), "IP", , , (0) , (0)
OK
+CGDCONT:(range of supported
<cid>s),<PDP_type>,,,
(list of supported <d_comp>s),
(list of supported <h_comp>s)[,(list of
supported <pd1>s)[,…[,(list of supported
<pdN>s)]]][<CR><LF>
+CGDCONT: (range of supported
<cid>s), <PDP_type>,,,(list of supported
<d_comp>s),(list of supported
<h_comp>s)[,(list of supported <pd1>s)
[,…[,(list of supported <pdN>s)]]][...]]
NOTE
8.2 Send USSD data: +CUSD
Description
This command is to send USSD(Unstructured Supplementary Service Data).
Format



Syntax
<n>:
-0:display the result code presentation to the TE
-1:enable the result code presentation to the TE
-2:cancel session
<str>:
string type USSD string
<dcs>:
3GPP TS 23.038 [25] Cell Broadcast Data Coding Scheme in integer format (default 15)
<m>:
0
no further user action required
1
further user action required
2
USSD terminated by network
3
other local client has responded
4
operation not supported
5
network time out
Response
See the example below.
Example
AT+CUSD=1,”*100#”,15
OK
AT+CUSD=<n>,<str>,<dcs>
AT+CUSD?
AT+CUSD=?
+CUSD: 4
AT+CUSD=?
+CUSD: (0-2)
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
+CUSD: (list of supported
<n>s)
49 of 69
Let’s enjoy the wireless life!
OK
AT+CUSD?
+CUSD:1
+CUSD: <n>
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
50 of 69
Let’s enjoy the wireless life!
9 TCP/IP AT commands
9.1 Set network APN: +NETAPN
Description
Set network APN
Format

Syntax
APN: GPRS NET access point
USERNAME: GPRS username
PASSWORD: GPRS password
Response
OK
Example
AT+NETAPN=="CMNET","",""
AT+NETAPN=”APN”,”USERNAME”,”PASSWORD”<CR>
OK
NOTE
9.2 Establish PPP link: +XIIC
Description
Establish PPP link
Format


Syntax
<n>:1
Response
See the example below
Example
AT+XIIC=1
OK
Require to establish PPP link
AT+XIIC?
+XIIC:
1, 10.232.165.29
Establish PPP link successfully,IP
address is10.232.165.29.
There are four space before 1
AT+XIIC=<n>
AT+XIIC?
OK
AT+XIIC?
+XIIC:
0, 0.0.0.0
The PPP link has not established
successfully.
There are four spaces before 0.
OK
NOTE
Ensure the module has registered network before establish PPP link by AT+XIIC=1. Use
AT+CREG? To query whether the module has registered network or not, if back value is
+CREG: 0,1 or +CREG: 0,5 both indicate register network successfully.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
51 of 69
Let’s enjoy the wireless life!
9.3 Establish TCP link:+TCPSETUP
Description
This command is to establish TCP link.
Format

Syntax
<n>:
Link ID, only could be 0 or 1.
<ip>:
Target IP address must be input as xx.xx.xx.xx.
<port>:
Target port number must be decimal ASCII code.
Response
See the example below.
Example
AT+TCPSETUP=0,220.199.66.56,6800
OK
+TCPSETUP:0,OK
Establish
a
connection
220.199.66.56,6800 on Link
successfully.
AT+TCPSETUP=1,192.168.20.6,7000
OK
+TCPSETUP:1,FAIL
Establish
a
connection
to
192.168.20.6,7000 on Link 1, failed.
Failure may be the server does not
open, or the IP address wrong, or
SIM card no money, etc.
AT+TCPSETUP=5,192.168.20.6,7000
+TCPSETUP:Error
AT command Format: ERROR
Link No.: ERROR
NOTE
AT+TCPSETUP=<n>,<ip>,<port>
to
0,
1、 After inputting AT command, if the command Format is correct, it will response OK
immediately; if the command Format is not correct or the link has been in use, it will
response +TCPSETUP:Error .
9.4 Send TCP data:+TCPSEND
Description
Send TCP commands. After this command sent, will receive greater than ">", when
please wait 50ms-100ms, and then send the data.
Format

Syntax
<n>:
Link ID, only could be 0 ~4 and this link has been already establish TCP link.
<length>:
The length of on-sent data, get value in range of 1-1024 bytes.
Response
See the example below.
Example
AT+TCPSEND=0,1
>
OK
+TCPSEND:0,1
Send 1 bytes data on Link 0, success.
AT+TCPSEND=1,1
+TCPSEND: SOCKET ID OPEN FAILED
Send 1 bytes data on Link 0, this link
has not established, failed.
AT+TCPSEND=<n>,<length>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
52 of 69
Let’s enjoy the wireless life!
AT+TCPSEND=0,10
>
+TCPSEND:0, OPERATION EXPIED
NOTE
Send data over time
1、 Before sending TCP data, please ensure the TCP link has been established.
2、 Before sending data, please use AT+IPSTATUS to check the available size of buffer.
3、 This command supports the input of binary data of ASCII code only.
9.5 Receive TCP data:+TCPRECV
Description
This command is to indicate the received TCP data.
Format
+TCPRECV:<n>,<length>,<data>
Syntax

Response
NULL
Example
+TCPRECV: 0,10,1234567890
<n>:
Link ID, only could be 0~4.
 <length>
Length of received data.
 <data>
Received data. Add 0x0d 0x0a at the end. The user can check the end according to the
parameter <length>.
Receive 10 bytes data on Link 0, the
data is 1234567890.
NOTE
9.6 Close TCP link:+TCPCLOSE
Description
This command is to close TCP link.
Format

Syntax
<n>:
Link ID, only could be 0 ~4.
Response
See the example below.
Example
AT+TCPCLOSE=1
+TCPCLOSE: 1,OK
Close TCP link on Link 1, success.
AT+TCPCLOSE=5
+TCPCLOSE: Error
Link ID is wrong, failed.
AT+TCPCLOSE=<n>
TCP link is forced to disconnect.
+TCPCLOSE:0,Link Closed
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
53 of 69
Let’s enjoy the wireless life!
9.7 Establish UDP link:+UDPSETUP
Description
This command is to establish UDP link
Format

Syntax
<n>:
Link ID, only could be 0 ~4.
<ip>:
Target IP address, must be input as xx.xx.xx.xx.
<port>:
Target port number, must be decimal ASCII code.
Response
1、Input AT command, if command Format is correct, it will response OK immediately.
2、If the input command Format is not correct or this link has been in use, it will response
+UDPSETUP:Error.
3、If the input AT command is correct (response:OK), the UDP link is establish successfully
and response: +UDPSETUP:<n>,OK (<n> represents link number).
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
+UDPSETUP:1,OK
Establish
a
220.199.66.56,7000
success.
AT+UDPSETUP=0,192.168.20.6,7000
OK
+UDPSETUP:0,FAIL
Establish a link to 192.168.20.6,7000
on Link 1: failed.
AT+UDPSETUP=5,192.168.20.6,6800
+UDPSETUP:Error
AT command Format Error
AT+UDPSETUP=<n>,<ip>,<port>
link
on Link
to
1:
NOTE
9.8 Send UDP data:+UDPSEND
Description
Send UDP commands. After this command sent, will receive greater than ">", when
please wait 50ms-100ms, and then send the data.
Format

Syntax
<n>:
Link ID, only could be 0~4, and this link should been already establish UDP link.
<length>:
The length of on-sent data, get value in range of 1-1024 bytes.
Response
1、Input AT command, if the command Format is correct, it will response ‘>’.
2、If the command Format is wrong or this link has not been established, it will response:
+UDPSEND:Error.
3、Input command and wait for the appearance of ‘>’, then input on-sent data ended with
0x0d. If the data input is correct, it will response OK.
4、If TCP data is sent correctly, it will response + +UDPSEND:<n>,<length>. <length> is
AT+UDPSEND=<n>,<length>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
54 of 69
Let’s enjoy the wireless life!
the length of sent data.
Example
AT+UDPSEND=0,2
>
OK
+UDPSEND:0,2
Require to send 2 bytes data on Link
0, after the appearance of ‘>’, please
appropriate delay 50ms-100ms, and
then enter the character to be sent.
NOTE
9.9 Receive UDP data:+UDPRECV
Description
This command is to receive UDP data
Format
+UDPRECV:<n>,<length>,<data>
Syntax

Response
NULL
Example
+UDPRECV: 0,10,1234567890
<n>:
Link ID, only could be 0~4.
 <length>
The length of received data.
 <data>
Received data. Add 0xod 0xoa at the end. The user can confirm the end with parameter
<length>.
Receive 10 bytes data on Link 0, the
data is 1234567890.
NOTE
9.10 Close UDP link:+UDPCLOSE
Description
This command is to close UDP link
Format

Syntax
<n>:Link ID, only could be 0~4.
Response
If <n> is illegal, it will response: +UDPCLOSE:Error;
Or it will response +UDPCLOSE:<n>,OK.
Example
AT+UDPCLOSE=1
+UDPCLOSE:1,OK
Close the UDP link on Link1,
success.
AT+UDPCLOSE=5
+UDPCLOSE:Error
Link ID is wrong, failed.
AT+UDPCLOSE=<n>
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
55 of 69
Let’s enjoy the wireless life!
9.11 Check TCP/UDP link status:+IPSTATUS
Description
This command is to check TCP/UDP link status
Format

Syntax
<n>:
Link ID, only could be 0~4.
Response
+IPSTATUS:<n>,<CONNECT or DISCONNECT>,<TCP or UDP>, <send-buffer-size>
 <CONNECT or DISCONNECT>:
The status of this link, get value: CONNECT or DISCONNECT.
 <TCP or UDP>:
Link type, get value: TCP or UDP.
 <send-buffer-size>:
The module internal available send buffer size, indicating with decimal ASCII code, a
byte per unit.
Example
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP,1500
Link0 has been established TCP link,
available buffer size is 1500 bytes.
AT+IPSTATUS=2
+IPSTATUS:2, CONNECT, UDP,1024
Link 2 has been established UDP
link, available buffer size is 1024
bytes
AT+IPSTATUS=1
+IPSTATUS:1,DISCONNECT
Link1 has not establish any link.
AT+IPSTATUS=<n>
NOTE
9.12 Query TCP link send data state:+TCPACK
Description
Query TCP link send successful data size, receiver receive successful data size.
Format

Syntax
<n>:
Link numerical, range 0~4
Response
+TCPACK:<n>,<data_sent> <acked_recv>
< data_sent >:
The link send successful link data size
<acked_recv>:
The receiver receivers successful link data size
+TCPACK:<n>,< DISCONNECT >
The link do not establish any connection
+TCPACK:NO TCP LINK
The link establish UDP connection
Example
AT+TCPACK=0
+ TCPACK:0,20,20
AT+TCPACK=<n>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
The link 0 sends 20 bytes data
successfully, and receiver receives 20
56 of 69
Let’s enjoy the wireless life!
bytes successfully.
OK
AT+TCPACK=0
+ TCPACK:0,128,120
The link 0 sends 128 bytes data
successfully, and receiver receives 120
bytes successfully.
OK
AT+TCPACK=1
+ TCPACK:1,DISCONNECT
Link 1 does not establish any connection
OK
AT+TCPACK=2
+TCPACK:NO TCP LINK
NOTE
Link 2 established UDP connection
<data_sent> ,<acked_recv>both 64 bits numerical, decimal ASCII, unit as byte
9.13 Set the type of data reception: +ASCII
Description
Set the type of TCP/UDP data reception
Format

Syntax
<n>:
0:When receiving data the ASCII code in hexadecimal
1:Receiving data using the character type
AT+ASCII=<n>
Response
Example
AT+ASCII=0
OK
AT+ASCII=1
OK
AT+ASCII?
+ASCII:0
OK
By default, the ASCII code in hexadecimal display.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
57 of 69
Let’s enjoy the wireless life!
9.14 Set the type of data to send and receive: +DATAFORMAT
Description
Set TCP/UDP type of data to send and receive
Format

Syntax
<n>:Send parameters
0:When sending data the ASCII code in hexadecimal
1:Sending data using the character type
<m>:receive parameters
0:When receiving data the ASCII code in hexadecimal
1:Receiving data using the character type
AT+DATAFORMAT=<n>,<m>
Response
Example
AT+DATAFORMAT=0,1
OK
AT+DATAFORMAT=1,0
OK
AT+DATAFORMAT?
+DATAFORMAT:0,0
OK
By default, the ASCII code in hexadecimal display.
NOTE
9.15 Set the data receive mode: +TRANMODE
Description
Set TCP/UDP receive data mode
Format

Syntax
mode:
0:Without the data header format, raw data, that is transparent receive mode.
1:Plus data header format, +TCPRECV: <n>, <length>, <data>, non-transparent receive
mode.
Response
See the example below.
Example
AT+TRANMODE=1
OK
Then the received data is:
+TCPRECV:0,10,1234567890
Set receive method with a header format
AT+TRANMODE?
+DATA RECEIVE MODE: 1
Query the current data trans-mode
AT+TRANMODE=<mode>
OK
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
58 of 69
Let’s enjoy the wireless life!
The default value is 1, power-down state don't preserve the value
NOTE
9.16 Select TCP link close mode: +SETCLSMODE
Description
Choose how to close TCP link
Format

Syntax
socket: socket number, the range is [0,4]
mode:
0
normal close
1
forced close
Response
NULL
Example
AT+SetClsMode=0,1
OK
AT+SETCLSMODE=<socket>,<mode>
Successfully set
This command should be used after AT+TCPSETUP.
NOTE
9.17 Set local TCP port: +TCPLPORT
Description
Set the local TCP communication port number
Format

Syntax
<port>: integer, port number
4097~32767
Response
See the example below
Example
AT+TCPLPORT=6800
OK
NOTE
AT+TCPLPORT=<port>
Successfully set
1. Set command is used before AT+TCPSETUP
2. The port number will be allocated every time setup a tcp link, and the they are not the
same.
1. This configuration is not saved when module powers off.
9.18 Set local UDP port: +UDPLPORT
Description
Set the local TCP communication port number
Format

Syntax
<port>: integer, port number
4097~32767
Response
See the example below
Example
AT+UDPLPORT=6800
OK
AT+UDPLPORT=<port>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
Successfully set
59 of 69
Let’s enjoy the wireless life!
NOTE
1. Set command is used before at+udp-setup
2. The port number will be allocated every time setup a tcp link, and the they are not the
same value.
2. This configuration is not saved when module powers off.
9.19 Set socket time-out parameter: +SSTP
Description
Set the socket operation expired time
Format



Syntax
<n>: time-out value, by second, range from 8~30
Response
+SSTP ERROR: INVALID VALUE the value is not in 8~30
Example
AT+SSTP?
+SSTP: 10
AT+SSTP=<n>
AT+SSTP?
AT+SSTP=?
Query the socket operation expiry time,
an expiry indication string will be
displayed if the data is not entered in 10s.
OK
AT+SSTP=?
+SSTP: 8-30(s)
The supported range is 8s~30s
OK
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
60 of 69
Let’s enjoy the wireless life!
10 DNS(Domain Name Server) commands
10.1 Query DNS: +DNS
Description
This command is to execute a DNS query,convert the host name to IP address
Format
AT+DNS=<string>
Syntax
<string>: string type,a host name like “www.china.com”.
Response
See the example below.
Example
AT+DNS="www.china.com"
OK
+DNS:124.238.253.103
+DNS:OK
1、The length of URL can’t exceed 250Bytes.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
61 of 69
Let’s enjoy the wireless life!
11 FTP AT commands
11.1 Login FTP server: +FTPLOGIN
Description
This command is to login FTP server.
Format

Syntax
<ip>: FTP server IP.
<port>: FTP server port number, usually is 21.
<user>: User name to login FTP server, the length can’t exceed 100 ASCII character.
There should be no comma (‘,’) in the user name.
<pwd>: The password to login FTP server, the length can’t exceed 100 ASCII character.
There should be no comma (‘,’) in the password.
Response
1. If the login command format is incorrect, module gives response +FTPLOGIN: Error
2. If logged in the server , module gives response+FTPLOGIN:Have Logged In.
3. If another FTP related command is not finished, module gives response +FTPLOGIN:AT
Busy.
4. If login succeeds, module gives response +FTPLOGIN: User logged in.
5. If login fails due to wrong user or password, module gives response +FTPLOGIN: 530
Not logged in.
6. If connecting to FTP server fails, module gives response +FTPLOGIN: Error Connect
Server Fail.
7. If the login fails due to the login timeout (more than 30s), module gives response
+FTPLOGIN: Error Time-Out.
Example
At+FTPLOGIN=219.134.179.52,21,user1,pwd2
009
OK
AT+FTPLOGIN=<ip>,<port>,<user>,<pwd>
FTP server ip is 219.134.179.52, port
number
is
21,user
name
is
user1,password is pwd2009.Login
succeed.
+FTPLOGIN:User logged in
NOTE
1. FTP and embedded TCP/UDP protocol can’t be used at the same time.
2. The read and write operation of FTP can’t be done before login.
11.2 Logout FTP server: +FTPLOGOUT
Description
This command is to logout FTP server.
Format

Syntax
NULL
Response
See the example below.
Example
AT+FTPLOGOUT
+FTPLOGOUT:User logged out
AT+FTPLOGOUT
OK
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
62 of 69
Let’s enjoy the wireless life!
NOTE
11.3 Get data from FTP server: +FTPGET
Description
This command is to download data from FTP server.
Format

Syntax
<Dir&filename>: file directory and name. (file directory is compared with FTP root
directory).
<Type>: data transfer mode
1
ASCII
2
Binary
<Content or Info>: is to specify whether user want to get the content of the file or the
information of the file( file directory and property).
1
get the file content
2
get detailed information of file
Response
1. If the command format is incorrect, module gives response:+FTPGET:Error <n>. (<n> is
incorrect code.)
2. If not at login status, module gives response: +FTPGET:Error Not Login.
3. If another FTP related command is not finished, module gives response +FTPGET:AT
Busy.
4. If the login fails due to the login timeout (more than 30s), module gives response
+FTPLOGIN: Error Timeout.
5. Response +FTPGET:<length>,<data>, <length> represents the length of data, <data>
represents data content.
6. Response +FTPGET:OK.total length is <n>, FTP get succeed, length of the data is n.
Example
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rw1 user
group
0 Apr 14 15:55 .
drw-rw-rw1 user
group
0 Apr 14 15:55 ..
-rw-rw-rw1 user
group
1238528 Jan 14 10:36 1M.doc
-rw-rw-rw1 user
group
10 Jan 15 15:01 test.txt
AT+FTPGET=<dir&filename>,<type>,<Content or Info>
+FTPGET:OK.total length is 446
AT+FTPGET=test.txt,1,2
+FTPGET:65,-rw-rw-rw1 user
+FTPGET:OK.total length is 65
group
10 Jan 15 15:01 test.txt
AT+FTPGET=test.txt,1,1
+FTPGET:10,123456780
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
Get
file
informatio
n at root
directory.
Field
<dir&filen
ame>
is
ingored.
Get
informatio
n
of
file ’test.tx
t’.
Get
the
content of
the
file
‘test.txt’.
63 of 69
Let’s enjoy the wireless life!
+FTPGET:OK.total length is 10
NOTE
There is a time delay from receiving the last data to +FTPGET: OK.total length is <n>, this
time delay is to ensure the transmission reliability. Default value is 8s. After the
appearance of +FTPGET:OK.total length is <n>, the next FTP operation
could work
out.
11.4 Put data to FTP server: +FTPPUT
Description
This command is to upload data to FTP server.
Format

Syntax
<filename>: file name
<type>: file transmission type:
1 ASCII
2 Binary
<mode>: operation mode:
1 STOR mode. Establish a file on server and write data to the file, if the file is already on
the server,it will be replaced by the newly built one.
2 APPE mode. Establish a file on server and write data to the file, if the file exist, the
data will be attached at the end of the file.
3 DELE mode. Delete a file.
<size> : the length of data, the maximum length can’t exceed 1024 bytes
Response
1) If the command format is incorrect, module gives response +FTPGET:Error <n>. (<n>
is ERROR code.)
2) If FTP is not at login status, module gives response +FTPGET:Error Not Login.
3)
If another FTP related command is not finished, module gives
response
+FTPGET:AT Busy.
4) If <length> exceed 10240, it will response +FTPPUT: length overflow.
5) Response +FTPPUT:OK,<n>,file sent successfully, the length of sent file is n.
6) Response +FTPPUT:Delete File OK, delete file successfully.
7) Response +FTPPUT:Error send data error, this indicates FTP command can’t be
recognized, the module will automatically disconnect at this time.
Example
AT+FTPPUT=test.txt,1,1,1024
>
+FTPPUT:OK,1024
the length of upload file ‘test.txt’ is
1024, transmission mode is ASCII,
operation mode is STORE.
AT+FTPPUT=test.txt,1,2,1024
>
+FTPPUT:OK,1024
the length of upload file ‘test.txt’ is
1024, transmission mode is ASCII,
operation mode is APPE.
AT+FTPPUT=test.txt,1,3,0
+FTPPUT:Delete File OK
Delete ‘test.txt’ file.
AT+FTPPUT=<filename>,<type>,<mode>,<size>
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
64 of 69
Let’s enjoy the wireless life!
NOTE
11.5 Check FTP status:+FTPSTATUS
Description
This command is to check FTP status.
Format

Syntax
NULL
Response
+FTPSTATUS:<status>[,<ip>,<port>]
AT+FTPSTATUS
<status>:
0
not logged in FTP server
1
logged in FTP server
<ip>: Server IP.
<port>: Server port number.
Example
AT+FTPSTATUS
+FTPSTATUS:1, 219.134.179.521,21
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
65 of 69
Let’s enjoy the wireless life!
12 TCP server AT commands
12.1 Open TCP server mode: +TCPLISTEN
Description
Open TCP server mode and bind the listen port.
Format

Syntax
<port>: port number
Response
+TCPLISTEN:<socket>,OK
AT+TCPLISTEN=<port>
<socket>: socket id
Example
AT+TCPLISTEN=6800
+TCPLISTEN:0,OK
or
+TCPLISTEN:bind error
Listening port number 6800
Server started listening
Bind failed
AT+TCPLISTEN=6800
Listening...
If module is already in listening mode,
it gives response Listening ...
AT+TCPLISTEN?
+TCPLISTEN:listening status
Check the listening state, module is
listening.
AT+TCPLISTEN?
+TCPLISTEN:not listening
Check the listening state, that is not
currently listening.
in
Connect Accept Socket=1,ClientAddr=119.123.77.133
Received the master station connection requests. Accept Socket is the established socket
between the master station and module, 119.123.77.133 is the IP address of the master
station
NOTE
Unicom card or China mobile private network card can be used for debugging, the China
mobile public network card can not be used for server debugging
12.2 Close TCP server listen: +CLOSELISTEN
Description
Close TCP server listen
Format

Syntax
Null
Response
+CLOSELISTEN:<socket>,local link closed
<socket>: socket id
Example
AT+CLOSELISTEN
+CLOSELISTEN:0, local link closed
AT+CLOSELISTEN
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
66 of 69
Let’s enjoy the wireless life!
NOTE
12.3 Close master station link: +CLOSECLIENT
Description
Close the master station link
Format

Syntax
Null
Response
+CLOSECLIENT:<socket>,remote link closed
AT+CLOSECLIENT
<socket>: socket id
Example
AT+CLOSECLIENT
+CLOSECLIENT:1,remote link closed
NOTE
12.4 Receive data from master station: +TCPRECV(S)
Description
Receive data from the master station
Format
+TCPRECV(S):<SOCKET>,<length>,<data>
Syntax
Null
Response
See the example below.
Example
+TCPRECV(S):1,10,1234567899
NOTE
1)Mode with the client to receive a slightly different format, extra a symbolic "(S)"
2)It's different with the client's parameters
12.5 Send data to master station: +TCPSENDS
Description
The data sent to the master station
Format

Syntax
<socket>: The value of listened Accept Socket which is the socket between master station
and the module,refer to description of AT+TCPLISTEN
<length>: data length,recommended ranging from 1 to 1024
Response
See the example below.
Example
AT+TCPSENDS=0,10
>1234567890
OK
+TCPSENDS:0,10
AT+TCPSENDS=<socket>,<length>
10 bytes of data sent successfully via socket 0
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
67 of 69
Let’s enjoy the wireless life!
AT+TCPSENDS=0,536
>1234567890…
+TCPSENDS:Buffer not enough,439
536 bytes of data sent via socket 0, lack of
internal buffer, failed to send.
1、 TCP link must has been established before sending TCP data
NOTE
12.6 Check master station link status: +CLIENTSTATUS
Description
Check status of the master station link
Format

Syntax
<socket>: The value of listening to Accept Socket which is the socket between main station
and the module,refer to AT + TCPLISTEN instruction description.
Response
+CLIENTSTATUS:<socket>,<CONNECT or DISCONNECT>,<TCP>,
<send-buffer-size>
<CONNECT or DISCONNECT>: The link status which value is CONNECT or
DISCONNECT。
<TCP>: Link type,the value is TCP
<send-buffer-size>: Modules available internal sending buffer size in bytes, decimal ASCII
code represents.
Example
AT+CLIENTSTATUS=0
+CLIENTSTATUS:0,CONNECT,TCP,2048
AT+CLIENTSTATUS=<socket>
Master station socket 0,TCP connection
has been established, the available buffer
is 1024 bytes.
NOTE
12.7 Get local IP address: +GETIP
Description
Get local IP Address
Format

Syntax
Null
Response
+LOCALIP:<ip_addr>
AT+GETIP
<ip_addr>: the ip of the module
Example
AT+GETIP
+LOCALIP:119.139.220.13
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
68 of 69
Let’s enjoy the wireless life!
13 GPS AT commands
13.1 Open or close GPS: +GPSPWR
Description
Open or close GPS function
Format

Syntax
<n>: GPS status
0 GPS off
1 GPS on
2 GPS deep off
Response
+GPSPWR: <n>
Example
AT+GPSPWR =1
AT+GPSPWR=<n>
Open GPS
OK
AT+GPSPWR?
+GPSPWR:1
Query the GPS status
OK
NOTE
GPS deep off is for power save mode, use AT+GPSPWR=2 to close GPS and use at
command to enter low-power mode, then the module is in deep low-power mode. But it’s
cold boot if you exit low-power mode and open GPS again, the cold boot process takes
about 30s to search valid signal.
13.2 Fetch GPS data: +GPSFETCH
Description
Get GPS data
Format

Syntax
<A>: only support 1
<B>: Hexadecimal, if the BC value is 31, it stands for hexadecimal 0x31, that’s binary
00110001(bit7…0)
If bit0=1, $GPGGA data is contained in the GPS data
If bit1=1, $GPGSA data is contained in the GPS data
If bit2=1, the first part of $GPGSV data is contained in the GPS data.
If bit3=1, the second part of $GPGSV data is contained in the GPS data
If bit4=1, the third part of $GPGSV data is contained in the GPS data.
If bit5=1, $GPRMC is contained in the GPS data.
AT+GPSFETCH=<A>,<BC>[,D]
The $GPGSV is not received every second, we can only guarantee the data is
most up to date. Other data is updated every second.
<COUNR>: GPS data length, include the carriage return and line feed at the
end of each data.
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
69 of 69
Let’s enjoy the wireless life!
<GPS DATA>: GPS data, if the data is not obtained yet, the data will be
ended with *00.
<D>: reserved.
Response
+GPSFETCH:<COUNT>
<GPS DATA>
Example
AT+GPSFETCH=1,3F
+GPSFETCH:304
$GPGGA,235955.017,,,,,0,00,,,M,0.0,M,,0000*5D
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,12,01,00,000,,02,00,000,,03,00,000,,04,00,000,*7C
$GPGSV,3,2,12,05,00,000,,06,00,000,,07,00,000,,08,00,000,*77
$GPGSV,3,3,12,09,00,000,,10,00,000,,11,00,000,,12,00,000,*71
$GPRMC,235955.017,V,,,,,,,070810,,,N*48
Get all the GPS data.
OK
AT+GPSFETCH=1,3F
+GPSFETCH:154
$GPGGA,235955.017,,,,,0,00,,,M,0.0,M,,0000*5D
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,*00
$GPGSV,*00
$GPGSV,*00
$GPRMC,235955.017,V,,,,,,,070810,,,N*48
Get three assigned
parts of GPS data
OK
NOTE
13.3 GPS status and output port configure: +GPSCFG
Description
The default GPS status when power up and the mode data output port configuration.
Format

Syntax
<m>: GPS status
0 GPS is off by default when power up.
1 GPS is on by default when power up
<n>: GPS data output port mode configure(reference the hardware guide for port mode
instructions)
0:single port mode
1:dual port mode
<i>:test mode, this parameter can be left out
0:standard mode
1:test mode, the GPS data can be output via uart1 transparently in test mode.
AT+GPSCFG=<m>,<n>[,<i>]
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
70 of 69
Let’s enjoy the wireless life!
Response
See the example below
Example
at+gpscfg=1,0
OK
at+gpscfg=1,0,1
OK
at+gpscfg=0,0,0
OK
Configure the GPS open by default when
module powers up. This configuration can
be effective when module resets, it can be
stored if module powers off. And also
configure the GPS data output in single port
mode.
Configure the GPS open when power up,
and enter testing mode, after resetting
module will output GPS data from UART1
Configure to the default mode, after
resetting the GPS configuration will go
back to the factory settings.
Reference to the hardware user guide for instructions of GPS port mode.
NOTE
All rights reserved by Shenzhen Neoway Technology Co.,Ltd
71 of 69
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