Neoway_M660 AT Command Sets V1.2

Neoway_M660 AT Command Sets V1.2
Let’s enjoy the wireless life!
M660 AT COMMAND SETS
V1.2
Shenzhen Neoway Technology Co.,Ltd
Let’s enjoy the wireless life!
Copyright Statement
Copyright © 2008 Neoway Tech
All rights reserved by Shenzhen Neoway Technology Co.,Ltd.
The trademark
belongs to Shenzhen Neoway Technology Co.,Ltd.
Other trademarks in this manual belong to their owners.
Clarification
This specification applies to M660&M660.
This specification is for system engineer, research engineer and test engineer.
As the upgrading of the product version or some other reasons, we’ll do some necessity updating to
the content of this specification without advance notice.
Unless we have other additional assumpsit, all statements, information and suggestions in this manual
do not constitute any express or implied guarantees.
Shenzhen Neoway Technology Co.,Ltd can supply all the technological support. If you have any
problem, please feel free to contact to the sales representative or send E-mail to these two mailboxes:
Sales@neoway.com.cn
Support@neoway.com.cn
Website: www.neoway.com.cn
Let’s enjoy the wireless life!
Revision Record
Version
Change content
Effective
time
V1.0
Original version
20110101
V1.1
Add TCP server related AT commands, add MD5, CRC16, CRC32
checksum related AT command, AT + DATAFORMAT data format to
add AT commands
20110102
V1.2
Add AT+ENPWRSAVE, AT+CCID, AT+TRANMODE, AT+SetClsMode,
AT+POSI, corrected AT+IPSTATUS command set.
20120220
All rights reserved by Shenzhen Neoway Technology.
1 of 69
Let’s enjoy the wireless life!
TABLE OF CONTENTS
1
2
3
4
5
GENERAL COMMAND ............................................................................................................................... 5
1.1
CHECK THE MANUFACTURER: +CGMI ..................................................................................................................... 5
1.2
QUERY MODULE MODEL: +CGMM ...................................................................................................................... 5
1.3
QUERY VERSION :+CGMR.................................................................................................................................... 5
1.4
GET SEQUENCE NUMBER:+CGSN ...................................................................................................................... 6
1.5
GET INTERNATIONAL MOBILE SUBSCRIBER IDENTIFICATION:+CIMI ............................................................................ 6
1.6
GET SIM CARD IDENTIFICATION:+CCID ............................................................................................................... 7
MOBILE DEVICES CONTROL AND STATUS REPORT ........................................................................ 8
2.1
CHECK THE MODULE’S STATUS:+CPAS ................................................................................................................. 8
2.2
CHECK NETWORK REGISTRATION STATUS:+CREG .................................................................................................... 8
2.3
SET MODULE FUNCTION:+CFUN ........................................................................................................................ 9
2.4
LOW-POWER SET:+ENPWRSAVE .................................................................................................................... 10
2.5
CLOCK:+CCLK .............................................................................................................................................. 10
2.6
SET THE MODULE’S BAUD RATE:+IPR ................................................................................................................. 11
2.7
INPUT PIN CODE:+CPIN ................................................................................................................................. 11
2.8
PIN ENABLE AND CHECK FUNCTION:+CLCK......................................................................................................... 12
2.9
PIN CHANGE THE PASSWORD:+CPWD .............................................................................................................. 13
2.10
PARITY CHECK:+ICF ........................................................................................................................................ 14
2.11
EXTENDED ERROR REPORT:+CEER .................................................................................................................. 14
2.12
SET ERROR INDICATION MESSAGE:+CMEE .......................................................................................................... 15
NETWORK SERVICES COMMANDS ..................................................................................................... 16
3.1
SIGNAL INTENSITY:+CSQ ................................................................................................................................. 16
3.2
NETWORK SELECTION:+COPS .......................................................................................................................... 16
CALL CONTROL COMMAND .................................................................................................................. 19
4.1
SPEAKER VOLUME:+CLVL ................................................................................................................................... 19
4.2
MUTE CONTROL:+CMUT .................................................................................................................................. 19
4.3
DIALING COMMANDS:ATD ................................................................................................................................. 19
4.4
CALL ANSWERING:ATA ...................................................................................................................................... 20
4.5
HAND UP CALLS:ATH......................................................................................................................................... 21
4.6
CALLER ID:+CLIP ............................................................................................................................................. 21
4.7
SEND DTMF TONE:+VTS................................................................................................................................... 22
4.8
REDIAL THE LAST NUMBER:ATDL ......................................................................................................................... 22
4.9
AUTO-ANSWERING: ATSO .................................................................................................................................. 22
4.10
ACTIVATE HANDS-FREE: +HANDFREE.................................................................................................................. 23
SMS SERVICE COMMANDS ................................................................................................................... 24
5.1
CHOOSE SMS SERVICE:+CSMS ........................................................................................................................ 24
All rights reserved by Shenzhen Neoway Technology.
2 of 69
Let’s enjoy the wireless life!
6
7
8
9
5.2
PRIMARY SMS STORAGE:+CPMS ..................................................................................................................... 24
5.3
SET SMS MODE:+CMGF ................................................................................................................................ 25
5.4
SET TE CHARACTER SETS: +CSCS ......................................................................................................................... 25
5.5
SET MESSAGE INDICATION FORMAT: + CNMI ......................................................................................................... 26
5.6
READ MESSAGE:+CMGR ................................................................................................................................ 27
5.7
MESSAGE LIST:+CMGL .................................................................................................................................. 28
5.8
MESSAGE SENDING:+CMGS............................................................................................................................ 30
5.9
WRITE MESSAGE:+CMGW ............................................................................................................................. 31
5.10
SEND STORED MESSAGE:+CMSS ...................................................................................................................... 32
5.11
DELETE MESSAGE:+CMGD.............................................................................................................................. 32
5.12
SERVICE CENTER ADDRESS:+CSCA .................................................................................................................... 33
5.13
SET TEXT MODE PARAMETERS: +CSMP................................................................................................................ 33
5.14
DISPLAY TEXT MODE PARAMETER:+CSDH ........................................................................................................... 34
5.15
CHOOSE CELL BROADCAST MESSAGE TYPE:+CSCB ................................................................................................ 35
TELEPHONE BOOK COMMANDS.......................................................................................................... 36
6.1
CHOOSE PHONE BOOK STORAGE:+CPBS ...................................................................................................... 36
6.2
READ PHONE BOOK:+CPBR .......................................................................................................................... 36
6.3
FIND PHONE BOOK:+CPBF............................................................................................................................ 37
6.4
WRITE PHONE BOOK:+CPBW ....................................................................................................................... 38
SUPPLEMENTARY SERVICE COMMANDS.......................................................................................... 39
7.1
CALL DIVERTING:+CCFC ................................................................................................................................ 39
7.2
CALL WAITING:+CCWA ................................................................................................................................. 40
7.3
CALL HOLD AND THREE-WAY-CALL:+CHLD ..................................................................................................... 41
GPRS COMMANDS .................................................................................................................................. 42
8.1
SET PDPFORMAT:+CGDCONT ....................................................................................................................... 42
8.2
SEND USSD DATA:+CUSD .............................................................................................................................. 43
8.3
AT MODE SWITCHED TO DATA MODE:ATO ........................................................................................................... 44
TCP/IP AT COMMANDS ........................................................................................................................... 45
9.1
SET NETWORK APN: +NETAPN .......................................................................................................................... 45
9.2
ESTABLISH TCP LINK:+TCPSETUP .................................................................................................................... 45
9.3
SEND TCP DATA:+TCPSEND ........................................................................................................................... 46
9.4
RECEIVE TCP DATA:+TCPRECV........................................................................................................................ 46
9.5
CLOSE TCP LINK:+TCPCLOSE ......................................................................................................................... 47
9.6
ESTABLISH UDP LINK:+UDPSETUP .................................................................................................................. 47
9.7
SEND UDP DATA:+UDPSEND ......................................................................................................................... 48
9.8
RECEIVE UDP DATA:+UDPRECV...................................................................................................................... 48
9.9
CLOSE UDP LINK:+UDPCLOSE ....................................................................................................................... 49
9.10
CHECK TCP/UDP LINK STATUS:+IPSTATUS ........................................................................................................ 49
9.11
SET THE TYPE OF DATA RECEPTION: +ASCII ............................................................................................................ 50
9.12
SET THE TYPE OF DATA TO SEND AND RECEIVE: +DATAFORMAT ................................................................................ 50
All rights reserved by Shenzhen Neoway Technology.
3 of 69
Let’s enjoy the wireless life!
10
9.13
SET THE DATA RECEIVE MODE: +TRANMODE........................................................................................................ 51
9.14
SET THE LINK OFF MODE: +SETCLSMODE ............................................................................................................ 51
DNS(DOMAIN NAME SERVER)COMMANDS .................................................................................. 52
10.1
11
12
13
CHECK IP ADDRESS:+DNS ............................................................................................................................... 52
FTP AT COMMANDS ................................................................................................................................ 53
11.1
LOGIN FTP SERVER:+FTPLOGIN ...................................................................................................................... 53
11.2
LOGOUT FTP SERVER:+FTPLOGOUT ............................................................................................................... 53
11.3
DOWNLOAD DATA FROM FTP SERVER:+FTPGET ................................................................................................. 54
11.4
UPLOAD DATA TO FTP SERVER:+FTPPUT ........................................................................................................... 55
11.5
CHECK FTP STATUS:+FTPSTATUS .................................................................................................................... 56
TCP SERVER AT COMMANDS ............................................................................................................... 57
12.1
SETTING THE SERVER TCP LISTENER: +TCPLISTEN ................................................................................................. 57
12.2
CLOSE LISTENING LINKS: +CLOSELISTEN .............................................................................................................. 57
12.3
CLOSE THE MASTER STATION LINK: +CLOSECLIENT ................................................................................................ 58
12.4
RECEIVE THE DATA FROM THE MAIN STATION: +TCPRECV(S) .................................................................................... 58
12.5
THE DATA SENT TO THE MASTER STATION: +TCPSENDS ........................................................................................... 58
12.6
CHECK STATUS OF THE MASTER STATION LINK: +CLIENTSTATUS ................................................................................ 59
12.7
GET LOCAL IP ADDRESS: +GETIP ........................................................................................................................ 59
OTHER AT COMMANDS .......................................................................................................................... 61
13.1
CALCULATE THE MD5 DIGEST VALUE: +CALMD5 ................................................................................................... 61
13.2
CALCULATE THE CRC32 CHECKSUM: +CALCRC32 ................................................................................................. 61
13.3
CALCULATE THE CRC16 CHECKSUM: +CALCRC16 ................................................................................................. 61
13.4
QUERY THE BASE STATION INFORMATION: +POSI .................................................................................................... 62
All rights reserved by Shenzhen Neoway Technology.
4 of 69
Let’s enjoy the wireless life!
1 General command
1.1 Check the manufacturer: +CGMI
Description
Check the manufacturer infomation
Format

Syntax
NULL
Response
<manufacturer>
or
+CME ERROR:<err>
Example
AT+CGMM
Neoway Corp Ltd
OK
AT+CGMI
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
OK
AT+CGMM
NULL
NOTE
1.3 Query version :+CGMR
Description
Query version
Format

Syntax
NULL
Response
<version>
or
+CME ERROR:<err>
Example
AT+CGMR
AT+CGMR
All rights reserved by Shenzhen Neoway Technology.
5 of 69
Let’s enjoy the wireless life!
+CGMR: M660_52_V001R001, 2011/10/13 09:54
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>
OK
Or
CME ERROR:<error>
Example
AT+CIMI
460029202075769
OK
Read the command.
AT+CIMI
CME ERROR:<error>
Read the command ERROR.
NOTE
AT+CIMI
This code contains 15 figures, starting with three-digit MCC and double-digit MNC,
to authenticate SIM-card code.
All rights reserved by Shenzhen Neoway Technology.
6 of 69
Let’s enjoy the wireless life!
1.6 Get SIM card Identification:+CCID
Description
Get SIM card ICCID
Format

Syntax
NULL
Response
<ICCID>
OK
Or
ERROR:<error>
Example
AT+CCID
+CCID: 89860002190810001367
AT+CCID
Read the command.
OK
AT+CCID
ERROR:<error>
Read the command ERROR.
ICCID is 20 digits.
NOTE
All rights reserved by Shenzhen Neoway Technology.
7 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>
OK
or
CME ERROR: <error>
Example
AT+CPAS
+CPAS:0
AT+CPAS
<pas>
This value may be:
0:ready(the module can implement AT commands)
2:unknow(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
AT+CPAS
CME ERROR:<error>
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>
The value may be:
0:not registered, the terminal is not searching new operators
All rights reserved by Shenzhen Neoway Technology.
8 of 69
Let’s enjoy the wireless life!
1:has been registered local network
2:the registration is refused
3:not registered, the terminal is searching base stations
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
OK
+CREG:
<n>,<stat>[,<lac>,<ci>[,<Act>]]
+CME ERROR: <err>
Example
AT+CREG=1
OK
AT+CREG=1
CME ERROR:<error>
AT+CREG?
+CREG:0,1
+CREG: (list of supported <n>s)
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
1 reset the MT before setting it to <fun> power level
Response
+CFUN: (list of supported <fun>s), (list of supported <rst>s)
OR
All rights reserved by Shenzhen Neoway Technology.
9 of 69
Let’s enjoy the wireless life!
+CME ERROR: <err>
Example
AT+CFUN=1
OK
AT+CFUN=?
+CFUN: (1,4)
OK
+CFUN: (list of supported <fun>s), (list
of supported <rst>s)
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
CME ERROR:<error>
at+enpwrsave?
+ENPWRSAVE:1
OK
NOTE
1) the values of <n> are not save when power 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


Syntax
< time >:
string type value; format is “yy/MM/dd,hh:mm:ss+TZ”, wherein characters indicate
year, month, day, hour, minute and second.
AT+CCLK=<time>
AT+CCLK?
All rights reserved by Shenzhen Neoway Technology.
10 of 69
Let’s enjoy the wireless life!
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 >:
(300,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
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
AT+CPIN=<pin>[,<newpin>]
AT+CPIN?
All rights reserved by Shenzhen Neoway Technology.
11 of 69
Let’s enjoy the wireless life!
-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 personalisation;
“PU”:network subsystem personalisation;
“PP”:service provider personalisation;
“PC”:corporate personalization.
<mode>:
0:unlock;
1:lock;
2:check status.
<status>:
0 not active
1 active
<passwd>:
Password or operation code, string type.
<class>:
1:voice
2:data
4:fax
8:SMS
16:data circuit sync
AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]
All rights reserved by Shenzhen Neoway Technology.
12 of 69
Let’s enjoy the wireless life!
32:data circuit async
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")
OK
+CLCK: (list of supported <fac>s)
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;
“PN”:network personalisation;
“PU”:network subsystem personalisation;
“PP”:service provider personalisation;
“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
AT+CPWD=<fac>,<oldpwd>,<newpwd>
All rights reserved by Shenzhen Neoway Technology.
13 of 69
Let’s enjoy the wireless life!
+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)
OK
+CPWD: list of supported (<fac>,
<pwdlength>)s
NOTE
2.10 Parity check:+ICF
Description
This command is to set the parity of the module.
Format


Syntax
<format>:
0:auto detect
1:8 data 2 stop
2:8 data 1 parity 1 stop
3:8 data 1 stop
4:7 data 2 stop
5:7 data 1 parity 1 stop
6:7 data 1 stop
<parity>:
0:odd
1:even
2:mark
3:space
Response
See the example below.
Example
AT+ICF=3,1
OK
AT+ICF=[<format>[,<parity>]]
AT+ICF?
AT+ICF?
+ICF:3,1
NOTE
2.11
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

AT+CEER
All rights reserved by Shenzhen Neoway Technology.
14 of 69
Let’s enjoy the wireless life!
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 sepatation or PDP Context dis-activation.
Example
AT+CEER
+CEER: 0, NONE
OK
NOTE
2.12 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
All rights reserved by Shenzhen Neoway Technology.
15 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

Example
rssi
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>
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:1,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
-3: set only <format>
-4: manual/ automatic ( if manual selection fails, automatic mode is entered)
AT+COPS=[<mode>[,<format>[,<oper>>[,<AcT>]]]]
AT+COPS?
All rights reserved by Shenzhen Neoway Technology.
16 of 69
Let’s enjoy the wireless life!
<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
Set to digital mode
OK
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.
2:if GSM/UMTS dual mode is selected and manual mode is selected, the <AcT>
All rights reserved by Shenzhen Neoway Technology.
17 of 69
Let’s enjoy the wireless life!
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.
18 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
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
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
All rights reserved by Shenzhen Neoway Technology.
19 of 69
Let’s enjoy the wireless life!
numbers and modifiers, and must end with a semicolon.
Format


Syntax
<dial string>:
Phone number
<n>:
The location of phone number
Response
CONNECT
CONNECT <text>
NO CARRIER
ERROR
OK
Example
0123456789+. Valid characters for origination
W
The W modifier is ignored but is included for compatibility reasons only
,
The comma modifier is ignored but is included for compatibility reasons only
;
Informs the Infrared Modem that the number is a voice number rather than a fax or
data number
T
The T modifier is ignored but is included only for compatibility purposes
P
The P modifier is handled (pulse DTMF dialing functionality)
28800 Connected with data bit rate of 28800 bits/s (HSCSD)
19200 Connected with data bit rate of 19200 bits/s (HSCSD)
14400 Connected with data bit rate of 14400 bits/s (HSCSD)
9600 Connected with data bit rate of 9600 bits/s
4800 Connected with data bit rate of 28800 bits/s
2400 Connected with data bit rate of 28800 bits/s
ATD<string>;
ATD><n>;
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
CONNECT
CONNECT <text>
NO CARRIER
ERROR
Example
28800
19200
14400
9600
ATA
Connected with data bit rate of 28800 bits/s (HSCSD)
Connected with data bit rate of 19200 bits/s (HSCSD)
Connected with data bit rate of 14400 bits/s (HSCSD)
Connected with data bit rate of 9600 bits/s
All rights reserved by Shenzhen Neoway Technology.
20 of 69
Let’s enjoy the wireless life!
4800 Connected with data bit rate of 28800 bits/s
2400 Connected with data bit rate of 28800 bits/s
NULL
NOTE
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
OK
ATH
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
OK
NOTE
All rights reserved by Shenzhen Neoway Technology.
21 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>
NOTE
4.8 Redial the last number:ATDL
Description
This command is to redial ATD command’s the last number.
Format

Syntax
NULL
Response
See the example below.
Example
ATDL
OK
ATDL
ATDL
NO CARRIER
NOTE
4.9 Auto-answering: ATSO
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
All rights reserved by Shenzhen Neoway Technology.
22 of 69
Let’s enjoy the wireless life!
OK
NOTE
4.10
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
1- Headphone mode
Response
See the example below.
Example
AT+HANDFREE=0
OK
set to Hands-free mode
AT+HANDFREE=1
OK
set to Headphone mode
AT+HANDFREE=<value>
NOTE
All rights reserved by Shenzhen Neoway Technology.
23 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
OK
AT+CSMS=<service>
AT+CSMS?
AT+CSMS?
+CSMS:1,1,1,1
OK
+CSMS:<mt>,<mo>,<bm>
OK
+CSMS:<service>,<mt>,<mo>,<bm>
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
AT+CPMS:
<used1>,total1>,<used2>,<total2>,<used 3>,<total3>
OK
or
CMS ERROR: <error>
AT+CPMS=<mem1>
AT+CPMS?
+CPMS:
All rights reserved by Shenzhen Neoway Technology.
24 of 69
Let’s enjoy the wireless life!
<mem1>,<used1>,total1>,<mem2>,<use d2>,<total2>,<mem3>,<used3>,<total3>
OK
or
CMS ERROR: <error>
Example
AT+CPMS=“SM”,”SM”,”BM”
+CPMS:49,50,49,50,50,50
OK
AT+CPMS=“SM”,”SM”,”BM”
CME ERROR:<error>
AT+CPMS?
+CPMS:”SM”,49,50,”SM”,49, 50,”BM”,0,5
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 >:
1、 “GSM”:GSM default alphabet (GSM03.38.6.2.1)
AT+CSCS=<chset>
AT+ CSCS?
All rights reserved by Shenzhen Neoway Technology.
25 of 69
Let’s enjoy the wireless life!
2、 “HEX”:character strings consist only of hexadecimal numbers from 00 to
Response
Example
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.
NULL
AT+CSCS=”HEX”
OK
AT+CSCS?
+CSCS: <chset>
+CSCS: "HEX"
OK
OK
+CSCS:("IRA","GSM","HEX", PCCP437", +CSCS: (list of supported <chset>s)
"8859-1", "UCS2", "UCS2_0X81")
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.
1: new message indication code mode is +CMTI: “MT”, <index>, the message
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]
AT+CNMI?
All rights reserved by Shenzhen Neoway Technology.
26 of 69
Let’s enjoy the wireless life!
content storaged 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
storaged.
<bm>: set new cell broadcast indication code mode, default value is 1.
0: not sending new cell broadcast indication information, not storaged.
1: new cell broadcast indication code is +CBMI: “BC”, <index>, cell broadcast is
storaged.
2:
new
cell
broadcast
indication
code
mode
is
+CBM:
<oa>,[<alphab>,]<scts>[,<tooa>,<length>]
<CR><LF><data>, cell broadcast content display directly but not storaged.
<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 storaged.
<bfr>: default value is 0.
0: When <mode>=1 or 3, the code this command difinited which is storaged 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 definited which is storaged 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
OK
+CNMI=<mode>,<mt>,<bm>,<ds>,<bfr>
OK
NOTE
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>:
AT+CMGR=<index>
All rights reserved by Shenzhen Neoway Technology.
27 of 69
Let’s enjoy the wireless life!
<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
NOTE
AT+CMGR=1
+CMGR: "REC READ","66421","","2011/09/13 16:37:59+32"
050003140401E27778592EA7E7EBE9373C3C279BCF68F59AA
DC78FED62779BA596D7EBAEB5B91EBD16A5D46C35F98406
A744E311A95C32594DA75688B50EADACA6D689150EADF1B
2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E16
93CD6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937
CADCD2B747AA9021BDEC627E8E9441BD42655DEF446
OK
If the status of the message is .received unread, the status in the storage changes
to received read.
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


AT+CMGL[=<stat>]
AT+CMGL=?
All rights reserved by Shenzhen Neoway Technology.
28 of 69
Let’s enjoy the wireless life!
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),commandsuccessful 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>[...]]
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
All rights reserved by Shenzhen Neoway Technology.
29 of 69
Let’s enjoy the wireless life!
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>:
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>
All rights reserved by Shenzhen Neoway Technology.
Text mode(+CMGF=1)
30 of 69
Let’s enjoy the wireless life!
> This is the text
+CMGS: 171
OK
PDU mode (+CMGF=0)
NOTE
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>:
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> “This is the
text”<Ctrl-Z>
+CMGW:15
Text mode(+CMGF=1)
OK
AT+CMGW=31,<CR>0891683108705505F001000
B813124248536F300081200400026002A535A53D
153A653C1532052C7<Ctrl- Z>
+CMGW:1
All rights reserved by Shenzhen Neoway Technology.
PDU mode (+CMGF=0)
31 of 69
Let’s enjoy the wireless life!
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 essages 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>
OK
Send messages stored in Memory 2
AT+CMSS=2
CME ERROR:<err>
Send messages stored in Memory 2
AT+CMSS=<index>[,<da>[,<toda>]]
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
AT+CMGD=<index> [,<delflag>]
AT+CMGD=?
All rights reserved by Shenzhen Neoway Technology.
32 of 69
Let’s enjoy the wireless life!
Response
See the example below.
Example
AT+CMGD=3
OK
Delete successfully
AT+CMGD=?
+CMGD: (1-50), (0-4)
OK
+CMGD:(list of supported <index>s)
[,(list of supported <delflag>s)]
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 indicats
international number type (automatically add “+” before the number).
Response
See the example below.
Example
AT+CSCA=” 8613800755500”,145
OK
AT+CSCA=<sca>[,<tosca>]
AT+CSCA?
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
All rights reserved by Shenzhen Neoway Technology.
33 of 69
Let’s enjoy the wireless life!
0-143
(vp+1)*5 minutes
144-167
12
hours+((vp–143)*30
minutes)
168-196
(vp–166)*1 day
197-255
(vp–192)*1 week
<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
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"7B5675
655FAE5C0F65F65019
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,127B5675
655FAE5C0F65F65019
AT+CSDH=[<show>]
AT+CSDH?
All rights reserved by Shenzhen Neoway Technology.
34 of 69
Let’s enjoy the wireless life!
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>).
<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=[<mode>[,<mids>[,<dcss>]]]
AT+CSCB?
+CSCB:
0,"2","0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,3
2,33,34,35,36,15"
OK
NOTE
All rights reserved by Shenzhen Neoway Technology.
35 of 69
Let’s enjoy the wireless life!
6 TELEPHONE BOOK COMMANDS
6.1 CHOOSE PHONE BOOK STORAGE:+CPBS
Description
This command is to choose phone book storage.
Format


Syntax
<storage>:
"ME"
MT phonebook
"SM"
SIM/UICC phonebook
"LD"
last-dialling phonebook
"MC"
MT missed calls list
"RC"
MT received calls list.
"DC"
MT dialled calls list
"FD"
SIM/USIM fixdialling-phonebook
"ON"
SIM own numbers (MSISDNs) list
Response
+CPBS:<storage>[,<used>,<total>]
<used>
Used count
<total>
Total count
Example
AT+CPBS="SM"
OK
AT+CPBS=<storage>
AT+CPBS?
AT+CPBS?
+CPBS: "SM", 1, 250
OK
NOTE
6.2 READ PHONE BOOK:+CPBR
Description
This command is to read the information of phone book.
Format


Syntax
<index 1>:
Integer type,phone book record nember
<index 2>:
Integer type,phone book record nember
Response
[+CPBR:<index1>,<number>,<type>,<text><CR>
+CPBR:<index2>,<number>,<type>,<text>]
[+CPBR:
<index1>,<number>,<type>,<text>[,<hidden>][[...]
AT+CPBR=<index 1>[,<index 2>]
AT+CPBR=?
All rights reserved by Shenzhen Neoway Technology.
36 of 69
Let’s enjoy the wireless life!
<CR><LF>+CPBR:
<index2>,<number>,<type>,<text>[,<hidden>]]]
<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:1,"091137880",129,"Comneon"
+CPBR:2,"09113788223",129,"MMI"
+CPBR:3,"09113788328",129,"Test-ro"
OK
AT+CPBR=?
+CPBR: (1-500), 40, 40
OK
+CPBR:(list of supported <index>s),
[<nlength>],[<tlength>]
NOTE
6.3 FIND PHONE BOOK:+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.
AT+CPBF=<findtext>
All rights reserved by Shenzhen Neoway Technology.
37 of 69
Let’s enjoy the wireless life!
Example
AT+CPBF="Comneon"
+CPBR:1,"091137880",129,"Comneon"
OK
NOTE
6.4 WRITE PHONE BOOK:+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
+CPBR:(list of supported <index>s),[<nlength>],(list of supported
<type>s),[<tlength>]
<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,”Comneo
n”
OK
AT+CPBW=<index>,<number>,<type>,<text>
AT+CPBR=?
+CPBR: (1-500), 40, 40
OK
+CPBR:(list of supported
<index>s),[<nlength>],(list of
supported <type>s),[<tlength>]
Need to pre-set TE character set,or the name of input will fail.
NOTE
All rights reserved by Shenzhen Neoway Technology.
38 of 69
Let’s enjoy the wireless life!
7 SUPPLEMENTARY SERVICE COMMANDS
7.1 CALL DIVERTING:+CCFC
Description
This command is to set confition and number for call diverting.
Format


AT+CCFC=<reason>,<mode>[,<number>[,<type>[,<class>[,<subaddr>[,<saty
pe>[,<time>]]]]]]
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 subaddress of format specified by <satype>
<satype>: type of subaddress 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 async
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:
All rights reserved by Shenzhen Neoway Technology.
39 of 69
Let’s enjoy the wireless life!
+CCFC: <status>,<class1>[,<number>,<type>[,<subaddr>,<satype>[,<time>]]][
<CR><LF>+CCFC: <status>,<class2>[,<number>,<type>[,<subaddr>,<satype>[,
<time>]]][...]]
Example
AT+CCFC=0,1,”123456”
OK
AT+CCFC=?
+CCFC: (0-5)
OK
+CCFC: (list of supported <reason>s)
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 async
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>[...]]
AT+CCWA=[<n>[,<mode>[,<class>]]]
AT+CCWA?
All rights reserved by Shenzhen Neoway Technology.
40 of 69
Let’s enjoy the wireless life!
Example
AT+CCWA=1,1
OK
AT+CCWA=?
+CCWA: (0-1)
OK
+CCWA: (list of supported <n>s)
AT+CCWA?
+CCWA: 0
OK
+CCWA: <n>
Requests call-related supplementary services.
NOTE
7.3 CALL HOLD and THREE-WAY-CALL:+CHLD
Description
This command is to realize call hold and three-way-call.
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)
OK
NOTE
[+CHLD: (list of supported <n>s)]
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.
41 of 69
Let’s enjoy the wireless life!
8 GPRS commands
8.1 Set PDPFormat:+CGDCONT
Description
This command is to set GPRS PDP format.
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, "IP", "internet", "", 0, 0
+CGDCONT: 2, "IP", "internet", "", 0, 0
+CGDCONT: 3, "IP", "internet", "", 0, 0
OK
All rights reserved by Shenzhen Neoway Technology.
+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]]][...]]
42 of 69
Let’s enjoy the wireless life!
AT+CGDCONT=?
+CGDCONT: (1-3),"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:not display back code
-1:display back code
-2:cancel the request
<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
+CUSD:
1,"0031795D798F4E0B8F7D000A00325F694FE18D
3A5361000A0033665A95F465B095FB000A003480A
1796867E58BE2000A003586816BD2000A00367537
AT+CUSD=<n>,<str>,<dcs>
AT+CUSD?
All rights reserved by Shenzhen Neoway Technology.
43 of 69
Let’s enjoy the wireless life!
7F5153CB5F008F665E26597953BB65C56E38000A
00378BDD8D3967E58BE2000A00387FFB9875", 72
AT+CUSD=?
+CUSD: (0-2)
OK
+CUSD: (list of supported
<n>s)
AT+CUSD?
+CUSD:0
OK
+CUSD: <n>
NOTE
8.3 AT mode switched to data mode:ATO
Description
This command is to set the module switch AT mode to data mode.
Format

Syntax
NULL
Response
CONNECT
CONNECT <text>
NO CARRIER
ERROR
Example
ATO
CONNECT
NOTE
ATO
Switch from on-line command mode to on-line data mode during an active
call .Returns ERROR when not in on-line command mode.
All rights reserved by Shenzhen Neoway Technology.
44 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 网络接入点
USERNAME: GPRS 用户名
PASSWORD: GPRS 密码
Response
OK
Example
AT+NETAPN=="CMNET","",""
OK
AT+NETAPN=”APN”,”USERNAME”,”PASSWORD”<CR>
NOTE
9.2 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
to
220.199.66.56,6800 on Link 0,
success.
AT+TCPSETUP=1,192.168.20.6,7000
OK
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=<n>,<ip>,<port>
+TCPSETUP:0,FAIL
AT+TCPSETUP=5,192.168.20.6,7000
+TCPSETUP:Error 2
NOTE
AT command Format: ERROR
Link No.: ERROR
1、 After inputing 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 .
All rights reserved by Shenzhen Neoway Technology.
45 of 69
Let’s enjoy the wireless life!
9.3 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
>31
OK
+TCPSEND:0,1
Send 1 bytes data on Link 0,
success.
AT+TCPSEND=0,1
>31
OK
+TCPSEND: 0 is not link
Send 1 bytes data on Link 0, this
link has not established, failed.
AT+TCPSEND=0,2800
+TCPSEND:Data length error
Send 2800 bytes data on Link 0,
exceed the limitation of the length,
failed.
NOTE
AT+TCPSEND=<n>,<length>
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.4 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>.
All rights reserved by Shenzhen Neoway Technology.
Receive 10 bytes data on Link 0,
the data is 1234567890.
46 of 69
Let’s enjoy the wireless life!
NOTE
9.5 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.
Null
+TCPCLOSE:0,Link Closed
TCP link is forced to disconnect.
AT+TCPCLOSE=<n>
NOTE
9.6 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
link
to
220.199.66.56,7000 on Link 1:
success.
AT+UDPSETUP=1,192.168.20.6,7000
OK
+UDPSETUP:0,FAIL
Establish
a
192.168.20.6,7000
failed.
AT+UDPSETUP=<n>,<ip>,<port>
All rights reserved by Shenzhen Neoway Technology.
link
on Link
to
1:
47 of 69
Let’s enjoy the wireless life!
AT+UDPSETUP=5,192.168.20.6,6800
+UDPSETUP:Error
AT command Format Error
NOTE
9.7 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 waiti 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 the length of sent data.
Example
AT+UDPSEND=0,2
>3131
OK
+UDPSEND:0,2
AT+UDPSEND=<n>,<length>
Require to send 2 bytes data on
Link 0, after the apperace of ‘>’,
please
appropriate
delay
50ms-100ms, and then enter the
character to be sent.
AT command: success.
NOTE
9.8 Receive UDP data:+UDPRECV
Description
This command is to receive UDP data
Format
+UDPRECV:<n>,<length>,<data>
Syntax

<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
All rights reserved by Shenzhen Neoway Technology.
48 of 69
Let’s enjoy the wireless life!
parameter <length>.
Response
NULL
Example
+UDPRECV:0,10,1234567890
Receive 10 bytes data on Link 0,
the data is 1234567890.
NOTE
9.9 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, faild.
AT+UDPCLOSE=<n>
NOTE
9.10 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 establish TCP link,
available buffer size is 1500bytes.
AT+IPSTATUS=1
+IPSTATUS:1,DISCONNECT
Link1 has not establish any link.
AT+IPSTATUS=<n>
All rights reserved by Shenzhen Neoway Technology.
49 of 69
Let’s enjoy the wireless life!
NOTE
9.11 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
By default, the Ascii code in hexadecimal display.
NOTE
9.12 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?
All rights reserved by Shenzhen Neoway Technology.
50 of 69
Let’s enjoy the wireless life!
+DATAFORMAT:0,0
By default, the Ascii code in hexadecimal display.
NOTE
9.13 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=0
OK
Then the received data is:
1234567890
Set receive method without a header
format
AT+TRANMODE=<mode>
The default value is 1, power-down state don't preserve the value
NOTE
9.14 Set the link off mode: +SETCLSMODE
Description
Set the link off mode:
Format

Syntax
SocketID: socket number, the range is [0,4]
Mode:
0:Ordinary Close
1:Forced to close
AT+SetClsMode=<SocketID>,<Mode>
Response
Example
AT+SetClsMode=1,1
OK
Successfully set
This command to be behind AT + TCPSETUP.
NOTE
All rights reserved by Shenzhen Neoway Technology.
51 of 69
Let’s enjoy the wireless life!
10 DNS(Domain Name Server)commands
10.1 Check IP address:+DNS
Description
This command is to check IP address
Format
AT+DNS=<string>
Syntax
<string>:be checked website URL, like www.china.com.
Response
See the example below.
Example
at+dns="www.china.com"
OK
Check "www.china.com" website
+DNS:124.238.253.103
+DNS:OK
The module gave two IP address:
124.238.253.103
1、The length of URL can’t exceed 250Bytes.
NOTE
All rights reserved by Shenzhen Neoway Technology.
52 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
AT+FTPLOGIN=<ip>,<port>,<user>,<pwd>
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 code. There
should be no comma (‘,’) in the user name.
<pwd>:
The password to login FTP server, the length can’t exceed 100 ASCII code.
There should be no comma (‘,’) in the password.
Response
1、 If the AT command Format is not correct, it will response +FTPLOGIN: Error
2、 If FTP has been in login status, it will response+FTPLOGIN:Have Logged In.
3、 If the last AT command which is related to FTP has not been finished, it will
response +FTPLOGIN:AT Busy.
4、 If login is success, it will respongse +FTPLOGIN: User logged in.
5、 If login is failed as wrong user name or wrong password, it will response
+FTPLOGIN: 530 Not logged in.
6、 If connecting to FTP server is failed, it will response +FTPLOGIN: Error
Connect Server Fail.
7、 If the login is failed as the login time is out (the time is over 30s), it will
response +FTPLOGIN: Error TimeOut.
Example
At+ftplogin=219.134.179.52,21,user1,pwd2
009
OK
Login server 219.134.179.52, port
21, user name is user1,password is
pwd2009。
Login success.
+FTPLOGIN:User logged in
NOTE
1. FTP and Internal stack TCP/UDP can’t use at 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.
All rights reserved by Shenzhen Neoway Technology.
53 of 69
Let’s enjoy the wireless life!
Format
AT+FTPLOGOUT
Syntax
NULL
Response
Example
OK
AT+FTPLOGOUT
OK
Logout FTP server.
NOTE
11.3 Download data from FTP server:+FTPGET
Description
This command is to download data from FTP server.
Format
AT+FTPGET=<dir&filename>,<type>,<Content or Info>
Syntax
<Dir&filename>
File direct and name. (file direct is compared with FTP root direct.)
<Type> data transfer mode:
1:ASCII;
2:Binary。
<Content or Info> is to specify what you need is content of the file or information of
the file( file direct):
1:get the file content
2:get the information of file or specified direct.
Response
1. If the AT command Format is incorrect, it will response:+FTPGET:Error <n>. (<n>
is incorrect code.)
2. If FTP is not login status, it will response: +FTPGET:Error Not Login.
3. If the last AT command which is related to FTP has not been finished, it will
response:+FTPGET:AT Busy.
4. If the login is failed as the login time is out ( the time is over 30s), it will 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>, data read is success, reading length
of the data is n.
Example
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rw- 1 user
group
0 Apr 14 15:55 .
drw-rw-rw- 1 user
group
0 Apr 14 15:55 ..
-rw-rw-rw- 1 user
group
1238528 Jan 14 10:36 1M.doc
-rw-rw-rw- 1 user
group
10 Jan 15 15:01 test.txt
Get
informati
ons
under
root
content.
+FTPGET:OK.total length is 446
All rights reserved by Shenzhen Neoway Technology.
54 of 69
Let’s enjoy the wireless life!
at+ftpget=test.txt,1,2
+FTPGET:65,-rw-rw-rw- 1 user
+FTPGET:OK.total length is 65
group 10 Jan 15 15:01 test.txt
at+ftpget=test.txt,1,1
+FTPGET:10,123456780
Get
informati
on
of
file ’test.t
xt’.
Get the
content
of the file
‘test.txt’.
+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 transimission realibility. Default value is 8s.
After the appearance of +FTPGET:OK.total length is <n>, the next FTP operation
could work out.
11.4 Upload data to FTP server:+FTPPUT
Description
This command is to upload data to FTP server.
Format
AT+FTPPUT=<filename>,<type>,<mode>,<size>
Syntax
<filename>:file name of need-to-send file.
<type>:file transimission type:
1:ASCII
2:Binary
<mode>:operation mode:
1:STOR mode. Establish a document on server to write into data, if a document
has been already exist,it will be replaced by the new built one.
2:APPE mode. Establish a document to write into data, if a document has been
already 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 data can’t exceed 1024.
Response
1) If the AT command Format is incorrect, it will response:+FTPGET:Error <n>.
(<n> is incorrect code.)
2) If FTP is not login status, it will response: +FTPGET:Error Not Login.
3) If the last AT command which is related to FTP has not been finished, it will
response:+FTPGET:AT Busy.
4)If <length> exceed 10240, it will response +FTPPUT: length overflow.
5)Respons: +FTPPUT:OK,<n>,file sent: success, the length of sent file is n.
6)Respons: +FTPPUT:Delete File OK, delete file: success.
7 ) Respons: +FTPPUT:Error send data error, this FTP command can’t be
recognized, the module will automatically disconnect at this time.
All rights reserved by Shenzhen Neoway Technology.
55 of 69
Let’s enjoy the wireless life!
Example
AT+FTPPUT=test.txt,1,1,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=test.txt,1,2,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=test.txt,1,3,0
+FTPPUT:Delete File OK
Remark: the length of upload file
‘test.txt’ is 1024, transmission
mode is ASCII, operation mode is
STORE.
Remark: the length of upload file
‘test.txt’ is1024, transmission
mode is ASCII, operation mode is
APPE.
Delete ‘test.txt’ file.
Inputted data without echo.
NOTE
11.5 Check FTP status:+FTPSTATUS
Description
This command is to check FTP status.
Format
AT+FTPSTATUS
Syntax
NULL
Response
+FTPSTATUS:<status>[,<ip>,<port>]
 <status>:
0:not login FTP server;
1 : login FTP server, the server IP and port number are as the following
parameter.
 <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.
56 of 69
Let’s enjoy the wireless life!
12 TCP server AT commands
12.1 Setting the server TCP listener: +TCPLISTEN
Description
Set the server listening, supporting three master station link.
Format
AT+TCPLISTEN=<port>
+TCPLISTEN:<socket>,OK
Syntax
Port: port number
Socket: SOCKET number
Response
See the example below.
Example
AT+TCPLISTEN=6800
Listening port number 6800
+TCPLISTEN:0,OK
or
+TCPLISTEN:bind error
Server started listening
AT+TCPLISTEN=6800
If the listener has been set, then set
it, it will prompt Listening ...
Bind failed
Listening...
AT+TCPLISTEN?
Check the listening state, that is
currently in listening.
+TCPLISTEN:listening status
AT+TCPLISTEN?
Check the listening state, that is not
currently listening.
+TCPLISTEN:not listening
Connect AcceptSocket=1,ClientAddr=119.123.77.133
Received the master station connection requests. AcceptSocket is the established
socket between the main 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 listening links: +CLOSELISTEN
Description
Close listening links
Format
AT+CLOSELISTEN
+CLOSECLIENT:<socket>,local link closed
Syntax
Socket: SOCKET number
Response
See the example below.
Example
AT+CLOSELISTEN
All rights reserved by Shenzhen Neoway Technology.
57 of 69
Let’s enjoy the wireless life!
+CLOSELISTEN:0,local link closed
NOTE
12.3 Close the master station link: +CLOSECLIENT
Description
Close the master station link
Format
AT+CLOSECLIENT
+CLOSECLIENT:<socket>,remote link closed
Syntax
Socket: SOCKET number
Response
See the example below.
Example
AT+CLOSECLIENT
+CLOSECLIENT:1,remote link closed
NOTE
12.4 Receive the data from the main station: +TCPRECV(S)
Description
Receive the data from the main station
Format
+TCPRECV(S):<SOCKET>,<length>,<data>
Syntax
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 The data sent to the master station: +TCPSENDS
Description
The data sent to the master station
Format
AT+TCPSENDS=<socket>,<length>
Syntax
<socket>:
The value of listening to AcceptSocket which is the socket between main station
and the module,refer to AT + TCPLISTEN instruction description.
<length>:
To send data length which is in bytes,recommended ranging between 1 to 1024
Response
See the example below.
All rights reserved by Shenzhen Neoway Technology.
58 of 69
Let’s enjoy the wireless life!
Example
AT+TCPSENDS=0,10
>1234567890
OK
+TCPSENDS:0,10
In sokcet 0 10 bytes of data sent
successfully.
AT+TCPSENDS=0,536
>1234567890…
+TCPSENDS:Buffer not enough,439
In sokcet 0 send 536 bytes of data, lack of
internal buffer, failed to send.
1、 TCP link must has been established before sending TCP data
NOTE
12.6 Check status of the master station link: +CLIENTSTATUS
Description
Check status of the master station link
Format
AT+CLIENTSTATUS=<socket>
Syntax
<socket>:
The value of listening to AcceptSocket 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
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
AT+GETIP
Syntax
Response
+LocalIp:<ip_addr>
Example
AT+GETIP
+LocalIp:119.139.220.13
All rights reserved by Shenzhen Neoway Technology.
59 of 69
Let’s enjoy the wireless life!
NOTE
All rights reserved by Shenzhen Neoway Technology.
60 of 69
Let’s enjoy the wireless life!
13 Other AT commands
13.1 Calculate the MD5 digest value: +CALMD5
Description
Calculate the MD5 digest value
Format

Syntax
<length>: Data length to be calculated.
Response
+CALMD5:str
Example
at+calmd5=6
>313233343536
+CALMD5: e10adc3949ba59abbe56e057f20f883e
NOTE
AT+CALMD5=<length>
Input data format is hexadecimal format, the returned string is a length of 32 bytes
of 16 hexadecimal format.
13.2 Calculate the CRC32 checksum: +CALCRC32
Description
Calculate the CRC32 checksum
Format

Syntax
<length>: Data length to be calculated.
Response
+ CALCRC32: str
Example
at+calcrc32=6
>313233343536
+CALCRC32: 398f3fd4
NOTE
AT+CALCRC32=<length>
Input data format is hexadecimal format, the returned string is a length of 8 bytes of
16 hexadecimal format.
13.3 Calculate the CRC16 checksum: +CALCRC16
Description
Calculate the CRC16 checksum
Format

Syntax
<length>: Data length to be calculated.
Response
+ CALCRC16: str
Example
at+calcrc16=6
>313233343536
+CALCRC16: 2ef4
NOTE
AT+CALCRC16=<length>
Input data format is hexadecimal format, the returned string is a length of 4 bytes of
16 hexadecimal format.
All rights reserved by Shenzhen Neoway Technology.
61 of 69
Let’s enjoy the wireless life!
13.4 Query the base station information: +POSI
Description
Query the base station information
Format

Syntax
+POSI: MODE,MCC,MNC,LAC,CI,BSIC, RxLev,ENDED<CR><LF>OK<CR><LF>
Response
MODE: 1,read all base stations information.
MCC: Country code (460 is China)
MNC: That is mobile network, China Mobile is 0 or 2, display hexadecimal.
LAC: Location area number, display hexadecimal.
CI: Cell identification number, display hexadecimal.
BSIC: Base station identification number, display hexadecimal.
RxLev: Base station signal strength, within 1-64.
ENDED: Marks the end of, 0: base station information behind the identifies;
1: Identify this base station information has been the last one.
Example
AT+POSI=1
+POSI: 1,460,00,27A8,EA7,1D,7,1
OK
NOTE
AT+POSI=MODE<CR>
If you do not find any district, directly back OK. If there are multiple base station
information,return data to cycle between the MCC and ENDED.
All rights reserved by Shenzhen Neoway Technology.
62 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