Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Let’s enjoy the wireless life!
M590M590M590M590 ATATATAT COMMANDCOMMANDCOMMANDCOMMAND SETSSETSSETSSETS
VVVV3.03.03.03.0
Shenzhen Neoway Technology Co.,Ltd
Let’s enjoy the wireless life!
CopyrightCopyrightCopyrightCopyright StatementStatementStatementStatement
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.
ClarificationClarificationClarificationClarificationThis specification applies to M590/M590E
This specification is for system engineers, research engineers and test engineers.
This specification is, without prior notice, subject to changes and updates as deemed neccesary by
Neoway to suit enhancements or changes to the module.
All statements, information and suggestions in this manual do not constitute any express or implied
guarantees.
Shenzhen Neoway Technology Co.,Ltd can supply technological support.
For querries contact your sales representative or send E-mail to these two mailboxs:
Website: www.neoway.com.cn
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 1 of 69
RevisionRevisionRevisionRevision RecordRecordRecordRecord
VersionVersionVersionVersion ChangeChangeChangeChange contentcontentcontentcontent EffectiveEffectiveEffectiveEffectivetimetimetimetime
V1.0 Original version 200808V2.0 Modified the layout style 200906V2.1 Revised version, added AT commands for
AT+CEER/AT+CMEE/AT+CSMP/AT+CSDH/AT+CSCB/AT&V/AT&W;200907
V2.2 Revised version, added TCP/IP command sets NOTES 200908V2.3 Revised version,added description for AT command of soft power off 201006V2.4 1)Revised version, added command switch NOTES
2)Added signal setup instructions201012
V2.5 Revised version1 ) Added AT commands of AT+GPRSSTATUS, support externalprotocol stack for signal lights control;2)Added the value of the two signal lights State 3, 4:AT+SIGNAL=3:Normal state is blinking, always on after the GPRS linkAT+SIGNAL=4:Normal state is OFF, always on after the GPRS linkCorresponding module software version is V1.20uV1.20uV1.20uV1.20u
201101
V2.6 Revised version, added command switch NOTES 201104
V2.7 Revised version, Change PDU message flow, added the instructions ofsending data
201105
V2.8 Revised version,added AT+XBANDSEL command instruction 201107
V2.9 Revised version,added authentication command NOTES 201108
V3.0 Revised version,added echo suppression level set: +SETECLVL 201111
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 2 of 69
TABLETABLETABLETABLE OFOFOFOF CONTENTSCONTENTSCONTENTSCONTENTS1111 GENERALGENERALGENERALGENERAL COMMANDCOMMANDCOMMANDCOMMAND................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................5555
1.1 GET SEQUENCE NUMBER:+CGSN.................................................................................................................51.2 GET INTERNATIONAL MOBILE SUBSCRIBER IDENTIFICATION:+CIMI........................................................................ 51.3 GET SIM CARD IDENTIFICATION:+CCID.......................................................................................................... 61.4 GET VERSION:+ GETVERS.............................................................................................................................61.5 REPEAT THE PREVIOUS COMMAND:A/.............................................................................................................61.6 GET THE MODULE’S MODEL:+CGMM........................................................................................................... 71.7 GET THE MODULE’S INFORMATION:I...............................................................................................................71.8 ECHO:E...................................................................................................................................................81.9 DISPLAY THE CURRENT CONFIGURATION:&V.....................................................................................................81.10 SAVE CURRENT CONFIGURATION:&W............................................................................................................. 9
2222 MOBILEMOBILEMOBILEMOBILE DEVICESDEVICESDEVICESDEVICES CONTROLCONTROLCONTROLCONTROL ANDANDANDAND STATUSSTATUSSTATUSSTATUS REPORTREPORTREPORTREPORT............................................................................................................................................................................................................................................................................................ 10101010
2.1 CHECK THE MODULE’S STATUS:+CPAS.......................................................................................................... 102.2 CHECK NETWORK REGISTRATION STATUS:+CREG............................................................................................. 102.3 POWER OFF:+CPWROFF......................................................................................................................... 112.4 SET MODULE FUNCTION:+CFUN.................................................................................................................112.5 LOW-POWER SET:+ENPWRSAVE...................................................................................................................132.6 CLOCK:+CCLK........................................................................................................................................ 132.7 SET THE MODULE’S BAUD RATE:+IPR............................................................................................................142.8 INPUT PIN CODE:+CPIN...........................................................................................................................142.9 PIN ENABLE AND CHECK FUNCTION:+CLCK................................................................................................... 152.10 PIN CHANGE THE PASSWORD:+CPWD......................................................................................................... 162.11 PARITY CHECK:+ICF..................................................................................................................................172.12 MULTIPLEXED MODE:+CMUX.................................................................................................................... 172.13 EXTENDED ERROR REPORT:+CEER.............................................................................................................192.14 SET ERROR INDICATION MESSAGE:+CMEE.....................................................................................................19
3333 NETWORKNETWORKNETWORKNETWORK SERVICESSERVICESSERVICESSERVICES COMMANDSCOMMANDSCOMMANDSCOMMANDS........................................................................................................................................................................................................................................................................................................................................................................................................................ 21212121
3.1 SIGNAL INTENSITY:+CSQ...........................................................................................................................213.2 NETWORK SELECTION:+COPS.................................................................................................................... 213.3 SET BAND:+XBANDSEL...........................................................................................................................23
4444 SMSSMSSMSSMS SERVICESERVICESERVICESERVICE COMMANDSCOMMANDSCOMMANDSCOMMANDS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................24242424
4.1 CHOOSE SMS SERVICE:+CSMS.................................................................................................................. 244.2 PRIMARY SMS STORAGE:+CPMS............................................................................................................... 244.3 SET SMS MODE:+CMGF..........................................................................................................................254.4 SET TE CHARACTER SETS: +CSCS...................................................................................................................264.5 SET MESSAGE INDICATION FORMAT: + CNMI.................................................................................................... 264.6 READ MESSAGE:+CMGR...........................................................................................................................27
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 3 of 69
4.7 MESSAGE LIST:+CMGL.............................................................................................................................294.8 MESSAGE SENDING:+CMGS...................................................................................................................... 294.9 WRITE MESSAGE:+CMGW........................................................................................................................314.10 SEND STORED MESSAGE:+CMSS................................................................................................................. 324.11 DELETE MESSAGE:+CMGD........................................................................................................................324.12 SERVICE CENTER ADDRESS:+CSCA............................................................................................................... 334.13 SET TEXT MODE PARAMETERS: +CSMP.......................................................................................................... 334.14 DISPLAY TEXT MODE PARAMETER:+CSDH......................................................................................................344.15 CHOOSE CELL BROADCAST MESSAGE TYPE:+CSCB........................................................................................... 35
5555 TELEPHONETELEPHONETELEPHONETELEPHONE BOOKBOOKBOOKBOOK COMMANDSCOMMANDSCOMMANDSCOMMANDS........................................................................................................................................................................................................................................................................................................................................................................................................................................ 36363636
5.1 CHOOSE PHONE BOOK STORAGE:+CPBS.................................................................................................365.2 READ PHONE BOOK:+CPBR.....................................................................................................................365.3 FIND PHONE BOOK:+CPBF......................................................................................................................375.4 WRITE PHONE BOOK:+CPBW..................................................................................................................375.5 GAIN NATIVE NUMBER:+CNUM..............................................................................................................38
6666 SUPPLEMENTARYSUPPLEMENTARYSUPPLEMENTARYSUPPLEMENTARY SERVICESERVICESERVICESERVICE COMMANDSCOMMANDSCOMMANDSCOMMANDS........................................................................................................................................................................................................................................................................................................................................................................ 40404040
6.1 CALL DIVERTING:+CCFC..........................................................................................................................406.2 CALLWAITING:+CCWA........................................................................................................................... 406.3 CALL HOLD AND THREE-WAY-CALL:+CHLD................................................................................................41
7777 GPRSGPRSGPRSGPRS COMMANDSCOMMANDSCOMMANDSCOMMANDS............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 42424242
7.1 SET PDPFORMAT:+CGDCONT..................................................................................................................427.2 SEND USSD DATA:+CUSD........................................................................................................................ 427.3 DATA MODE AND AT MODE SWITCH SETTINGS:&D2.........................................................................................437.4 DATA MODE SWITCH TO AT MODE:+++.........................................................................................................437.5 AT MODE SWITCHED TO DATA MODE:O.........................................................................................................447.6 USER AUTHENTICATION: +XGAUTH...............................................................................................................44
8888 TCP/IPTCP/IPTCP/IPTCP/IP ATATATAT COMMANDSCOMMANDSCOMMANDSCOMMANDS................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................46464646
8.1 SELECT INTERNAL OR EXTERNAL PROTOCOL STACK:+XISP...................................................................................468.2 ESTABLISH PPP LINK:+XIIC........................................................................................................................ 468.3 ESTABLISH TCP LINK:+TCPSETUP.............................................................................................................. 478.4 SEND TCP DATA:+TCPSEND..................................................................................................................... 478.5 RECEIVE TCP DATA:+TCPRECV.................................................................................................................. 488.6 CLOSE TCP LINK:+TCPCLOSE....................................................................................................................488.7 ESTABLISH UDP LINK:+UDPSETUP.............................................................................................................498.8 SEND UDP DATA:+UDPSEND................................................................................................................... 508.9 RECEIVE UDP DATA:+UDPRECV................................................................................................................ 508.10 CLOSE UDP LINK:+UDPCLOSE..................................................................................................................518.11 CHECK TCP/UDP LINK STATUS:+IPSTATUS...................................................................................................518.12 TCP/IP AT COMMANDS NOTE..................................................................................................................... 52
9999 DNSDNSDNSDNS(DOMAINDOMAINDOMAINDOMAIN NAMENAMENAMENAME SERVERSERVERSERVERSERVER)COMMANDSCOMMANDSCOMMANDSCOMMANDS............................................................................................................................................................................................................................................................................................................................................ 53535353
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 4 of 69
9.1 CHECK IP ADDRESS..................................................................................................................................... 539.2 CHECK OR SET DNS.................................................................................................................................... 53
10101010 TCPTCPTCPTCP SERVERSERVERSERVERSERVER ATATATAT COMMANDSCOMMANDSCOMMANDSCOMMANDS................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 54545454
10.1 SETTING THE SERVER TCP LISTENER: +TCPLISTEN............................................................................................ 5410.2 CLOSE LISTENING LINKS: +CLOSELISTEN........................................................................................................ 5410.3 CLOSE THE MASTER STATION LINK: +CLOSECLIENT........................................................................................... 5510.4 RECEIVE THE DATA FROM THE MAIN STATION: +TCPRECV(S)................................................................................5510.5 THE DATA SENT TO THE MASTER STATION: +TCPSENDS.......................................................................................5510.6 CHECK STATUS OF THE MASTER STATION LINK: +CLIENTSTATUS........................................................................... 5610.7 SET MODULE SIGNAL STATUS: +SIGNAL.......................................................................................................... 5610.8 SETTING EXTERNAL PROTOCOL STACK LIGHT STATUS: +GPRSSTATUS...................................................................... 57
11111111 FTPFTPFTPFTP ATATATAT COMMANDSCOMMANDSCOMMANDSCOMMANDS.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 58585858
11.1 LOGIN FTP SERVER:+FTPLOGIN................................................................................................................ 5811.2 LOGOUT FTP SERVER:+FTPLOGOUT..........................................................................................................5911.3 DOWNLOAD DATA FROM FTP SERVER:+FTPGET.............................................................................................5911.4 UPLOAD DATA TO FTP SERVER:+FTPPUT......................................................................................................6011.5 CHECK FTP STATUS:+FTPSTATUS...............................................................................................................61
12121212 APPENDIXAPPENDIXAPPENDIXAPPENDIX(ATATATAT COMMANDCOMMANDCOMMANDCOMMAND FLOWFLOWFLOWFLOW CHARTCHARTCHARTCHART OFOFOFOF COMMONLYCOMMONLYCOMMONLYCOMMONLY USEDUSEDUSEDUSED FUNCTIONSFUNCTIONSFUNCTIONSFUNCTIONS):................................................................................62626262
12.1 AT COMMAND FLOW CHART FOR SETTING UP TCP CONNECT................................................................................ 6212.2 AT COMMAND SETTING AND CHECKING FLOW CHART FOR ‘SMS FULL’.................................................................... 6412.3 SMS GENERAL AT COMMANDS......................................................................................................................65
12.3.1 Flow chart for sending text mode SMS......................................................................................6612.3.2 Flow chart for sending PDU mode SMS....................................................................................67
12.4 LOW CONSUMPTION MODE SETTING..............................................................................................................67
13131313 FAQFAQFAQFAQ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................68686868
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 5 of 69
1 General command
1.1 Get Sequence Number:+CGSNDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo getgetgetget sequencesequencesequencesequence number,number,number,number, knownknownknownknown asasasas IMEIIMEIIMEIIMEI (International(International(International(International
MobileMobileMobileMobile EquipmentEquipmentEquipmentEquipment identity).identity).identity).identity).
Format � AT+CGSN
Syntax NULLResponse
OKOrCME ERROR:
Example AT+CGSN358511020024166
OK
Read the command.
AT+CGSNCME ERROR:
NOTENOTENOTENOTEThis code is a 15-digit numeral
1.2 Get International Mobile Subscriber Identification:+CIMIDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo getgetgetget IMSIIMSIIMSIIMSI(internationalinternationalinternationalinternational mobilemobilemobilemobile subscribersubscribersubscribersubscriber identificationidentificationidentificationidentification)....
Format � AT+CIMI
Syntax NULLResponse
OKOrCME ERROR:
Example AT+CIMI460029202075769
OK
Read the command.
AT+CIMICME ERROR:
Read the command ERROR.
NOTENOTENOTENOTEThis code contains 15 figures, starting with three-digit MCC and double-digit MNC,to authenticate SIM-card code.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 6 of 69
1.3 Get SIM card Identification:+CCIDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo getgetgetget SIMSIMSIMSIM cardcardcardcard ICCIDICCIDICCIDICCID....
Format � AT+CCID
Syntax NULLResponse
OKOrCME ERROR:
Example AT+CCID+CCID: 89860002190810001367
OK
Read the command.
AT+CCIDCME ERROR:
Read the command ERROR.
NOTENOTENOTENOTEICCID is 20 digits.
1.4 Get Version:+ getversDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo getgetgetget thethethethe softwaresoftwaresoftwaresoftware version.version.version.version.
Format � at+getvers
Syntax NULLResponse
OKOrCME ERROR:
Example at+getvers1100_C6C30000_V0120n
OKat+getversCME ERROR:
NOTENOTENOTENOTE
1.5 Repeat the previous command:A/DescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo rrrrepeatepeatepeatepeat thethethethe previouspreviouspreviousprevious command,command,command,command, exceptexceptexceptexcept A/A/A/A/ itself.itself.itself.itself.
Format � A/
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 7 of 69
Syntax NULLResponse See the example below.
Example AT+CGSN358511020002311
OK
A/358511020002311
OK
NOTENOTENOTENOTEA / command can’t repeat the following command:
at+getvers/at+audchannel/at+enpwrsave/ ati /at+cgmm
1.6 Get the Module’s model:+CGMMDescriptionDescriptionDescriptionDescription ThisThisThisThis commadcommadcommadcommad isisisis totototo ccccheckheckheckheck thethethethe modelmodelmodelmodel ofofofof thethethethe module.module.module.module.
Format � at+cgmm?
Syntax NULLResponse See the example below.Example at+cgmm?
M590
OK
NOTENOTENOTENOTE
1.7 Get the module’s Information:IDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo ccccheckheckheckheck thethethethe informationinformationinformationinformation ofofofof thethethethe modulemodulemodulemodule,includingincludingincludingincluding factory,factory,factory,factory,
modelmodelmodelmodel andandandand version.version.version.version.
Format � a t i
Syntax NULLResponse See the example below.Example ati
NEOWAYM590REVISION 01.30e
OK
[factory]modelversion
OK
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 8 of 69
NOTENOTENOTENOTE
1.8 Echo:EDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo eeeenablenablenablenable ////disabledisabledisabledisable EchoEchoEchoEcho....
Format � ATE
Syntax :only could be 0 or 1.Response See the example below.Example ATE1
OK
ATATOK
Set Echo
Input AT, response echo
ATE0OK
AT
OK
Shut down Echo
Input AT, no echo
NOTENOTENOTENOTEDial-up and then enter into the command mode, it will automatically forbid Echo.ATE is equal toATE0。
1.9 Display the current configuration:&VDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo displaydisplaydisplaydisplay thethethethe currentcurrentcurrentcurrent configurationconfigurationconfigurationconfiguration andandandand storagestoragestoragestorage documentsdocumentsdocumentsdocuments
Format � AT&V
Syntax NULLResponse See the example below.Example AT&V
ACTIVE PROFILE:&C1, &D1, &K0, E1, Q0, V1, X0, S00:000, S02:043, S03:013, S04:010, S05:008,S07:255, +CBST:007, 000, 001, +CRLP:061, 061, 048, 006, +CR:000, +CRC:000
STORED PROFILE 0:&C1, &D1, &K3, E1, Q0, V1, X4, S00:000, S02:043, S03:013, S04:010, S05:008,S07:060, +CBST:007, 000, 001, +CRLP:061, 061, 048, 006, +CR:000, +CRC:000
STORED PROFILE 1:&C1, &D1, &K3, E1, Q0, V1, X4, S00:000, S02:043, S03:013, S04:010, S05:008,
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 9 of 69
S07:060, +CBST:007, 000, 001, +CRLP:061, 061, 048, 006, +CR:000, +CRC:000
OK
NOTENOTENOTENOTE
1.10 Save current configuration:&WDescriptionDescriptionDescriptionDescription TTTThishishishis commandcommandcommandcommand isisisis totototo savesavesavesave currentcurrentcurrentcurrent validvalidvalidvalid configurationconfigurationconfigurationconfiguration inininin thethethethe specifiedspecifiedspecifiedspecified filefilefilefile (one(one(one(one
ofofofof thethethethe twotwotwotwo storagestoragestoragestorage documents)documents)documents)documents)
Format � AT&W[]
Syntax :0: choose document 0 as configuration storage NVRAM, no need to input 01: choose document 1 as configuration storage NVRAM
Response See the example below.Example AT&W
OKEqual to AT&W0
AT&W1OK
To store the current configurationin document 1
NOTENOTENOTENOTE
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 10 of 69
2 Mobile devices control and status report
2.1 Check the module’s status:+CPASDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo checkcheckcheckcheck thethethethe modulemodulemodulemodule’’’’ssss currentcurrentcurrentcurrent operationoperationoperationoperation status.status.status.status.
Format � AT+CPAS
Syntax � 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)
Response +CPAS: OKorCME ERROR:
Example AT+CPAS+CPAS:0
OKAT+CPASCME ERROR:
NOTENOTENOTENOTE
2.2 Check network registration status:+CREGDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo ccccheckheckheckheck networknetworknetworknetwork registrationregistrationregistrationregistration statusstatusstatusstatus ofofofof thethethethe module.module.module.module.
Format � AT+CREG=� AT+CREG?
Syntax � The value may be:0:not allow the network registration to provide result code(default settings)1:allow the network registration to provide result code2:allow the network registration to provide local information (CELLID, LOCALID)
� The value may be:
0:not registered, the terminal is not searching new operators
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 11 of 69
1:has been registered local network2:the registration is refused3:not registered, the terminal is searching base stations4:unknown code5:has been registered, at roaming status
Response OKorCME ERROR:
+CREG:,OK
Example AT+CREG=1OK
Register settings allow thenetwork to provide result code.
AT+CREG=1CME ERROR:AT+CREG?+CREG:0,1
OK
Display the module has beenregistered on the local network.
NOTENOTENOTENOTE
2.3 Power off:+CPWROFFDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo sssswitchwitchwitchwitch offoffoffoff thethethethe module.module.module.module.
Format � AT+CPWROFF
Syntax NULLResponse OK
orCME ERROR:
Example AT+CPWROFFOKAT+CPWROFFCME ERROR:
NOTENOTENOTENOTEThis instruction is a soft-shutdown, after executing this instruction, do not for ON /OFF pin to operate, otherwise it will cause the module to power on again lead to failto shutdown.
2.4 Set module function:+CFUNDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo selectselectselectselect functionsfunctionsfunctionsfunctions ofofofof modulemodulemodulemodule bybybyby settingsettingsettingsetting .... OnlyOnlyOnlyOnly somesomesomesome
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 12 of 69
valuesvaluesvaluesvalues ofofofof areareareare allowed.allowed.allowed.allowed.
Format � AT+CFUN=� AT+CFUN?
Syntax :Optional functions may be:0: minimum functionality meaning switch off of the MS1: full functionality meaning start up MS (from offline mode)4: disable phone both transmit and receive RF circuits (Airplane mode)
(GFS21 line and higher)6: enables the SIM-toolkit interface and fetching of proactive commands by
SIM-APPL from the SIM-card7: disables the SIM-toolkit interface and enables fetching of proactive
commands by SIM-APPL from the SIM-card8: disable fetching of proactive commands by SIM-APPL from the
SIM-card15: silent reset (reset MS without resetting the SIM).16: reset (reset MS with resetting the SIM).
Response +CFUN: ,� The value may be:
1: MS is switched on2: invalid mode17: airplane mode
� The value may be:
0: inactive state6: enables the SIM-toolkit interface and fetching of proactive commands by
SIM-APPL from the SIM-card7: disables the SIM-toolkit interface and enables fetching of proactive
commands by SIM-APPL from the SIM-card8: disable fetching of proactive commands by SIM-APPL from the
SIM-cardExample AT+CFUN=1
OKAT+CFUN=1CME ERROR:AT+CFUN?+CFUN:1,0
OK
NOTENOTENOTENOTEif the syntaxes +CFUN=0,+CFUN=15 or +CFUN=16 are used, the rest of thecommand line, placed after that, will be ignored.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 13 of 69
2.5 Low-power set:+enpwrsaveDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo ssssetetetet allowallowallowallow thethethethe modulemodulemodulemodule totototo enterenterenterenter intointointointo powerpowerpowerpower savesavesavesave modemodemodemode orororor
not.not.not.not.
Format � at+enpwrsave=� at+enpwrsave?
Syntax :0:not allow to enter into power save mode1:allow to enter into power save mode
Response See the example below.Example at+enpwrsave=1
OKat+enpwrsave=1CME ERROR:at+enpwrsave?+ENPWRSAVE:1
OK
NOTENOTENOTENOTE1) the values of are not save when power off2)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. Atthis time, the module can be entered into power save mode.
2.6 Clock:+CCLKDescriptionDescriptionDescriptionDescription ThisThisThisThis setsetsetset commandcommandcommandcommand setssetssetssets thethethethe real-timereal-timereal-timereal-time clockclockclockclock ofofofof thethethethe module.module.module.module.
Format � AT+CCLK=� AT+CCLK?
Syntax < time >:string type value; format is “yy/MM/dd,hh:mm:ss+TZ”, wherein characters indicateyear, 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 informationcould display.
Response See the example below.Example AT+CCLK=”08/07/01,14:54:01”
OKAT+CCLK=”08/07/01,14:54:01”CME ERROR:AT+CCLK?+CCLK:“08/07/01,14:54:10”
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 14 of 69
OK
NOTENOTENOTENOTE
2.7 Set the module’s baud rate:+IPRDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe modulemodulemodulemodule’’’’ssss baudbaudbaudbaud rate.rate.rate.rate.
Format � AT+IPR=� AT+IPR?
Syntax < baud rate >:(2400,4800,9600,14400,19200,28800,38400,57600,115200,230400,460800)
Response See the example below.Example AT+IPR=115200
OKAT+IPR=115200CME ERROR:AT+IPR?+IPR:115200
OK
NOTENOTENOTENOTE1、 The default baud rate is 115200;
2、 The baud rate settings could be saved and no need to reset.
2.8 Input PIN code:+CPINDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo checkcheckcheckcheck PINPINPINPIN statusstatusstatusstatus andandandand inputinputinputinput PINPINPINPIN code.code.code.code.
Format � AT+CPIN=[,]� AT+CPIN?
Syntax : is a string type value.
Response +CPIN:� < code >
This value may be:-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+COPS=0ERROR
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 15 of 69
AT+CPIN=”0933”OKAT+COPS=0OKAT+CPIN?+CPIN:READY
OK
NOTENOTENOTENOTEInput correct PIN code before using the module, or the module does not work and
response ERROR.When inputing PUN or PUK2, it must set up a new PIN code, the new PIN code willreplace the old one.
2.9 PIN enable and check function:+CLCKDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo lock,lock,lock,lock, unlockunlockunlockunlock andandandand checkcheckcheckcheck MTMTMTMT andandandand networknetworknetworknetwork device.device.device.device.
Format � AT+CLCK=,[,[,]]
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.
:0:unlock;1:lock;
2:check status.:
Password or operation code, string type.:
1:voice2:data
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 16 of 69
4:fax8:SMS16:data circuit sync32:data circuit async64:dedicated package access128:dedicated PAD access
Response See the example below.Example AT+CLCK=”SC”,1,”0933”
OKAT+CLCK=”SC”,1,”0933”CME ERROR:
NOTENOTENOTENOTE
2.10 PIN change the password:+CPWDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo modifymodifymodifymodify thethethethe locklocklocklock passwordpasswordpasswordpassword ofofofof thethethethe module.module.module.module.
Format � AT+CPWD=,,
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.
:Old password or operation code, string type.
:New password or operation code, string type.
Response See the example below.Example AT+CPWD=”SC”,”0933”,”0934”
OKAT+CPWD=”SC”,”0933”,”0934”
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 17 of 69
CME ERROR:
NOTENOTENOTENOTE
2.11 Parity check:+ICFDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe parityparityparityparity ofofofof thethethethe module.module.module.module.
Format � AT+ICF=[[,]]� AT+ICF?
Syntax :0:auto detect1:8 data 2 stop2:8 data 1 parity 1 stop3:8 data 1 stop4:7 data 2 stop5:7 data 1 parity 1 stop6:7 data 1 stop
:0:odd1:even2:mark3:space
Response See the example below.Example AT+ICF=3,1
OKAT+ICF=3,1CME ERROR: AT+ICF?+ICF:3,1
NOTENOTENOTENOTE
2.12 Multiplexed mode:+CMUXDescriptionDescriptionDescriptionDescription TTTThishishishis commandcommandcommandcommand isisisis totototo enableenableenableenable thethethethe multiplexedmultiplexedmultiplexedmultiplexed protocolprotocolprotocolprotocol controlcontrolcontrolcontrol channelchannelchannelchannel defineddefineddefineddefined
bybybyby GSM07.10.GSM07.10.GSM07.10.GSM07.10. ThisThisThisThis ATATATAT commandcommandcommandcommand setsetsetset thethethethe valuevaluevaluevalue ofofofof controlcontrolcontrolcontrol channel.channel.channel.channel. IfIfIfIf theretheretherethere isisisisnononono valuevaluevaluevalue input,input,input,input, thethethethe defaultdefaultdefaultdefault valuevaluevaluevalue willwillwillwill taketaketaketake effect.effect.effect.effect. IfIfIfIf notnotnotnot supportingsupportingsupportingsupporting automaticautomaticautomaticautomaticbaudbaudbaudbaud rate,rate,rate,rate, thethethethe user-specifieduser-specifieduser-specifieduser-specified baudbaudbaudbaud raterateraterate willwillwillwill taketaketaketake effect.effect.effect.effect. RRRReturneturneturneturn codecodecodecode OKOKOKOK ororororCMECMECMECME ERROR:ERROR:ERROR:ERROR: willwillwillwill returnreturnreturnreturn asasasas oldoldoldold interfaceinterfaceinterfaceinterface baudbaudbaudbaud rate,rate,rate,rate, thethethethe newnewnewnew setsetsetset valuevaluevaluevaluewillwillwillwill taketaketaketake effecteffecteffecteffect onlyonlyonlyonly whenwhenwhenwhen OKOKOKOK hashashashas beenbeenbeenbeen sent.sent.sent.sent. IfIfIfIf usingusingusingusing +CMUX+CMUX+CMUX+CMUX commandcommandcommandcommand whenwhenwhenwhenthethethethe serialserialserialserial isisisis multiplexed,multiplexed,multiplexed,multiplexed, itititit willwillwillwill returnreturnreturnreturn anananan errorerrorerrorerror codecodecodecode CME_ERROR:CME_ERROR:CME_ERROR:CME_ERROR: operationoperationoperationoperation
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 18 of 69
notnotnotnot allowed.allowed.allowed.allowed.
Format � AT+CMUX=[,[,[,[,[,[,[,[,]]]]]]]
Syntax (multiplexer Transparency Mechanism):0:Basic option1:Adcanced option(not support currently)
:this value defined the setting method of the multiplexed control channel.Then a virtual channel will be set, its setting value will be set in accordance with of control channel before the negociation that how to set the value ofvirtual channel.
0:UIH frames used only1:UI frames used only(Not support at present.)2:I frames used only(Not support at present.)Default value:0
:(transfer rate)Not support any longer,it will response 0 all the timewhen reading the command.
1:9600 bit/s2:19200 bit/s3:38400 bit/s4:57600 bit/s5:115200 bit/s6:230400 bit/s7:1 Mbit/s(default value)
(the maximum length of frame)1~32768;at present only support the setting range from 1 to1509.Default value:31(if using Advanced option,the default value should be 64)
(acknowledgement timer,10ms per unit)1~255,the default value is 10(100ms)
)(the maximum times of re-transfer)0~100,the default value is 3。At present it only supports value 0~5。
(respone timer for multiplexer control channel,10ms per unit)2~255,the default value is 30(300ms)NOTE:T2 must be bigger than T1.
(wake up repone timer,’s’ as the unit)1~255,the default value is 10。Not support at present, response value 0 when
reading the command.(window size,to the error-recovery options to do Adcanced operation)
1~7,default value is 2。Not support at present, response value 0 when readingthe command.
Response OKorCME ERROR: or
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 19 of 69
+CMUX: ,[],,,,,,[,]Example AT+CMUX
OKAT+CMUXCME ERROR: AT+CMUX?+CMUX: 0,0,0,0,0,0,0,0,0
OK
Read the command
NOTENOTENOTENOTE
2.13 Extended ERROR report:+CEERDescriptionDescriptionDescriptionDescription AAAAfterfterfterfter IIIImplementingmplementingmplementingmplementing thisthisthisthis command,command,command,command, itititit willwillwillwill returnreturnreturnreturn oneoneoneone orororor moremoremoremore lineslineslineslines ofofofof informationinformationinformationinformation
texttexttexttext .... TheTheTheThe specificspecificspecificspecific numbernumbernumbernumber ofofofof rowsrowsrowsrows isisisis determineddetermineddetermineddetermined bybybyby thethethethe MEMEMEMEmanufacturer.manufacturer.manufacturer.manufacturer.
Format � AT+CEER
Syntax NULLResponse +CMER:
� :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: "No report available"
OKAT+CEER+CEER:"CC release",16,"Normal call clearing"
OK
NOTENOTENOTENOTEInculuding the line terminator, the information text includes at most 2041 characters.
2.14 Set Error indication message:+CMEEDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset totototo disabledisabledisabledisable orororor enableenableenableenable +CME+CME+CME+CME ERROR:ERROR:ERROR:ERROR: resultresultresultresult codecodecodecode
Format � AT+CMEE=[]
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 20 of 69
� AT+CMEE?
Syntax :Get value:0:disable result code +CME ERROR:, use ERROR,no need to input 0;1:enable result code +CME ERROR:,use numeric to get value;2:enable result code +CME ERROR: ,use lengthy to get value.
Response See the example below.Example AT+CMEE=
OKEqual to AT+CMEE=0ATDERROR
AT+CMEE=1OK
ATD+CME ERROR: 3
AT+CMEE=2OK
ATD+CME ERROR: operation notallowed
AT+CMEE?+CMEE: 2
OK
NOTENOTENOTENOTEWhen debugging, it is suggested to set AT+CMEE=2。
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 21 of 69
3 Network services commands
3.1 Signal intensity:+CSQDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo ccccheckheckheckheck thethethethe receivingreceivingreceivingreceiving signalsignalsignalsignal intensityintensityintensityintensity andandandand thethethethe
channelchannelchannelchannel bitbitbitbit errorerrorerrorerror raterateraterate
Format � AT+CSQ
Syntax NULLResponse +CSQ::::,
� < rssi >The following is the ‘signal’(CSQ)to rssi:
signal rssi0
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 22 of 69
-1: manual-2: deregister from the network-3: set only -4: manual/ automatic ( if manual selection fails, automatic mode is entered)
-0: long alphanumeric (default value)-1: short format alphanumeric -2: numeric string type given in format ; this field may be up to 16 characterslong for long alphanumeric format, up to 8 characters for short alphanumeric formatand 5 characters long for numeric format (MCC/MNC). indicates the radio access technology and may be:-0: GSM-1: GSM compact-2: UTRAN
Response � -0: unknown network-1: available network-2: current network-3: forbidden network
Example AT+COPS=0,0OKAT+COPS=0,2
OK
Set to digital mode
AT+COPS?+COPS:0,0, "CHINA MOBILE"
OKorAT+COPS?+COPS:0,0, "46000460004600046000"
OK
Query the network operatorChina Mobile
If it is set to digital mode, then getthe number 46000
AT+COPS?+COPS: 0,0,"CHINAUNICOM"
OKorAT+COPS?+COPS:0,0, "46001460014600146001"
OK
Query the network operatorChina Unicom
If it is set to digital mode, then getthe number 46000
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 23 of 69
NOTENOTENOTENOTE1:in the read syntax the parameter is displayed only if UMTS is supported inthe terminal.2:if GSM/UMTS dual mode is selected and manual mode is selected, the parameter is used to indicate the access technology for the manual attachprocedure.3:in case of automatic mode, the parameter will be ignored.
3.3 Set Band:+XBANDSEL
DescriptionDescriptionDescriptionDescription SetSetSetSet GPRSGPRSGPRSGPRS modulemodulemodulemodule bandbandbandband
FormatAT+XBANDSEL=[,]
AT+XBANDSEL?
Syntax : 900M band,the value is 900:1800M band,the value is 1800
ResponseExample AT+XBANDSEL=900
OK
AT+XBANDSEL?+XBANDSEL: 900
OK
Forcibly set to 900M
Query frequency
AT+XBANDSEL=1800
OK
Forcibly set to 1800M
AT+XBANDSEL=900,1800
OK
Set to the default mode, 900M and1800M automatic switching mode
AT+XBANDSEL?+XBANDSEL: 900,1800
OK
Query frequency
NOTENOTENOTENOTE 1)After setting this instruction,web registration will be canceled, then needed tore-register by setting the AT+COPS=0,0
2)Slightly longer response time of AT+COPS=0,0
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 24 of 69
4 SMS service commands
4.1 Choose SMS service:+CSMSDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo supportsupportsupportsupport SMS,SMS,SMS,SMS, includeincludeincludeinclude:sendingsendingsendingsending(SMS-MOSMS-MOSMS-MOSMS-MO)、receivingreceivingreceivingreceiving
(SMS-MTSMS-MTSMS-MTSMS-MT)、cellcellcellcell broadcast(broadcast(broadcast(broadcast(SMS-CBSMS-CBSMS-CBSMS-CB))))
Format � AT+CSMS=� AT+CSMS?
Syntax :0:GSM03.40 and GSM03.41;SMS related AT commands support GSM07.05Phase 2;
1:GSM03.40 and GSM03.41;SMS related AT commands support GSM07.05Phase 2+
,,:0:not support1:support
Response See the example below.Example AT+CSMS=1
+CSMS:1,1,1OKorCME ERROR:
+CSMS:,,OKorCMS ERROR:
AT+CSMS?+CSMS:1,1,1,1
OK
+CSMS:,,,OK
NOTENOTENOTENOTE
4.2 Primary SMS storage:+CPMSDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo choosechoosechoosechoose primaryprimaryprimaryprimary messagemessagemessagemessage storage.storage.storage.storage.
Format � AT+CPMS=[,,,,,
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 25 of 69
OKorCMS ERROR:
+CPMS:,,total1>,,,,,,OKorCMS ERROR:
Example AT+CPMS=“SM”,”SM”,”BM”+CPMS:49,50,49,50,50,50
OKAT+CPMS=“SM”,”SM”,”BM”CME ERROR:AT+CPMS?+CPMS:”SM”,49,50,”SM”,49, 50,”BM”,0,5
OK
NOTENOTENOTENOTE
4.3 Set SMS mode:+CMGFDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset SMSSMSSMSSMS inputinputinputinput mode.mode.mode.mode.
Format � AT+CMGF=[]� AT+ CMGF?
Syntax :0: PDU mode1: text mode
Response See the example below.Example AT+CMGF=1
OKAT+CMGF=1CME ERROR:AT+ CMGF?+CMGF:0
OK
NOTENOTENOTENOTEIf sending PDU SMS, the code should be set to UCS2; if sending text SMS, thecode should be set to GSM.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 26 of 69
4.4 Set TE character sets: +CSCSDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset TETETETE charactercharactercharactercharacter set.set.set.set.
Format � AT+CSCS=� AT+ CSCS?
Syntax < chset >: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, 47and 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 4375、 “8859-1”: ISO 8859 Latin 1 character set6、 “UCS2”: 16-bit universal multiple-octet coded character set
(USO/IEC10646); UCS2 character strings are converted to hexadecimalnumbers from 0000 to FFFF. Only the strings found in quotation marks areUCS2 coded, the rest of commands or responses, remains in IRA alphabet.
Response See the example below.Example AT+CSCS=”GSM”
OKAT+CSCS=”GSM”CME ERROR:AT+ CSCS?+CSCS:”GSM”
OK
NOTENOTENOTENOTE
4.5 Set message indication Format: + CNMIDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset howhowhowhow totototo informinforminforminform thethethethe useruseruseruser afterafterafterafter receivingreceivingreceivingreceiving newnewnewnew messagemessagemessagemessage
fromfromfromfrom thethethethe network.network.network.network.
Format � AT+CNMI=[[,[,[,[,]]]]]� AT+CNMI?
Syntax : set indication mode of sending to subscriber after receiving shortmessage0: message indication mode cashed in module, if TA has been full, code can bedeposited other place or brush off the oldest code and replace it by the latestreceiving code.1: under On-line State, brush off deposited message indication code and reject newindication code. In other conditions, display the code on terminal equipment
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 27 of 69
directly.2: under On-line State, message indication code is cashed in module. Whenprocessing released, output indication code through serial port. Under its state,display indication code on terminal equipment directly.: 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”, , the messagecontent storaged and don't display directly.2: new message indication code mode is +CMT: ,,,,,[,],,message content display directly but notstoraged.: 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”, , cell broadcast isstoraged.2: new cell broadcast indication code mode is +CBM:,[,][,,], cell broadcast content display directly but not storaged.: message sending condition report, default value is 1.0: no message sending condition report1: message sending condition report code mode is+CDS:,,[],[],,, (text mode) , cell broadcastcontent display directly but not storaged.: default value is 0.0: When =1 or 3, the code this command difinited which is storaged in TAwill be sended to TE, the module will return to OK before processing the code.1: when =1or 3, the code this command definited which is storaged in TAwill be cleared.
Response See the example below.Example AT+CNMI=2,1,0,0,0
OKAT+CNMI=1,1,0,0,0CME ERROR:AT+CNMI?+CNMI:2,1,0,0,0
OK
+CNMI=,,,,OK
NOTENOTENOTENOTESuggested to set to +CNMI: 2,1,0,0,0 or +CNMI: 2,2,0,0,0.
4.6 Read message:+CMGR
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 28 of 69
DescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo readreadreadread messagemessagemessagemessage inininin currentcurrentcurrentcurrent storagestoragestoragestorage (need(need(need(need totototo setsetsetset currentcurrentcurrentcurrentstoragestoragestoragestorage bybybyby AT+CPMSAT+CPMSAT+CPMSAT+CPMS inininin advance)advance)advance)advance)
Format � AT+CMGR=
Syntax :Get value in range of 0~400。
Response Return format:Terminal adapter will return the records numbered "index" short message stored inthe memory mem1.� If you select text mode (+ CMGF =1), returned the following format:+CMGR :,,[],[,,,,,,,<length>] (Used to read the received message)+CMGR :,,[][,,,,,[],,,] (Used to read the sended message)� If you select PDU mode (+ CMGF =0), returned the following format:+CMGR: ,[],,,,OK- Error will be prompted to:+CMS ERROR:
Specific parameters have the following meanings::corresponding name of or with terminal equipment.:Memory in the short message status.:SMS source number string.:SMS destination address string.:Short Message Service Center time string.:Text mode instructions body length; When the PDU mode indicates thenumber of bytes PDU.:ME/TA hexadecimal value.:0 in PDU mode or “REC UNREAD”in text mode: received unread SMS1 in PDU mode or “REC READ” in text mode: received read SMS2 in PDU mode or “STO UNSENT”in text mode: stored unsent SMS3 in PDU mode or “”STO SENT”in text mode: stored sent SMS4 in PDU mode or “ALL” in text mode: all SMS’s
Example AT+CMGR=3+CMGR:0,,1540891683108705505F00405A10180F60008807062903430238A5C0A656C768451687403901A5BA26237FF1A537365E58D7779EF5206554657CE201C59658FD0793C54C1300159658FD06F1451FA5B63201D727960E051516362FF014E3A59658FD052A06CB9FF010068007400740070003A002F002F006A0066002E006300680069006E0061006D006F00620069006C0065002E0063006F006D30024E2D56FD79FB52A8
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 29 of 69
OKAT+CMGR=3CMS ERROR:
NOTENOTENOTENOTEWhen the coding method is UCS2 and readingthe message, it will display inhexadecimal; when the coding method is GSM, the messages with the contents ofletters or numbers could be directly read.
4.7 Message list:+CMGLDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo readreadreadread aaaa certaincertaincertaincertain typetypetypetype ofofofof shortshortshortshort messagesmessagesmessagesmessages inininin thethethethe storage.storage.storage.storage. TTTThehehehe
messagemessagemessagemessage willwillwillwill bebebebe readreadreadread inininin thethethethe currentcurrentcurrentcurrent storagestoragestoragestorage selectedselectedselectedselected bybybyby +CPMS+CPMS+CPMS+CPMS command.command.command.command.
Format � AT+CMGL[=]
Syntax :0 ( “REC UNREAD”):received unread SMS1(”REC READ”): received read SMS2(”STO UNSENT”): stored unsent SMS3(”STO SENT”): stored sent SMS4(”ALL”):all SMS
Response 1) Text mode:+CMGL:,,,[],[][,,]
+CMGL:,,,[],[][,,] […] (Received / sent SMS list)OK2)PDU mode:+CMGL:,,[],
Example AT+CMGL=”ALL”+CMGL:1,"RECREAD","10086","","08/07/26,09:43:03+50"5C0A656C768451687403901A5BA26237FF1A537365E58D7779EF5206554657CE201C59658FD0793C54C1300159658FD06F1451FA5B63201D727960E051516362FF014E3A59658FD052A06CB9FF010068007400740070003A002F002F006A0066002E006300680069006E0061006D006F00620069006C0065002E0063006F006D30024E2D56FD79FB52A8OK
NOTENOTENOTENOTEThe function of AT+CMGL=”ALL” and AT+CMGL=4 are the same.
4.8 Message sending:+CMGS
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 30 of 69
DescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo sendsendsendsend messagemessagemessagemessage fromfromfromfrom thethethethe modulemodulemodulemodule totototo network,network,network,network, thethethethe networknetworknetworknetwork willwillwillwillresponseresponseresponseresponse referencereferencereferencereference valuevaluevaluevalue totototo thethethethe modulemodulemodulemodule afterafterafterafter sendingsendingsendingsending successfully.successfully.successfully.successfully.
Format � Command syntax(text mode):AT+CMGS=� Command syntax (PDU mode):AT +CMGS=
Syntax :Send message to target number in text mode
:Message content in text mode
:The length of message content digits in PDU mode.
:Storage location
:End character.
:Indicate the end of the message input.
:Give up to input message.
Response +CMGS: OKorCMS ERROR:
Example AT+CMGS=”0171112233”“This is the text”+CMGS:248
OK
Text mode(+CMGF=1)
AT+CMGS=”0171112233”“This is the text”CMS ERROR:
Text mode(+CMGF=1)
AT+CMGS=41>0891683108705505F001000B815118585050F400081C6DF157
335E02670965B979D16280002D00470050005200536A215757<Ctrl+Z>>+CMGS: 7
OK
PDU mode (+CMGF=0)
AT+CMGS=31>0891683108705505F001000B813124248536F300081200400026002A535A53D153A653C1532052C7
PDU mode (+CMGF=0)
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 31 of 69
CMS ERROR:
NOTENOTENOTENOTE
4.9 Write message:+CMGWDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo inputinputinputinput messagesmessagesmessagesmessages totototo thethethethe storage,storage,storage,storage, responseresponseresponseresponse locationlocationlocationlocation
informationinformationinformationinformation afterafterafterafter savingsavingsavingsaving correctly.correctly.correctly.correctly.
Format � Command syntax(text mode):AT+CMGW=� Command syntax(PDU mode):AT +CMGS=
Syntax :Send message to target number in text mode.
:Message content in text mode
:The length of message content digits in PDU mode.
:Storage location
:End character.
:Indicate the end of the message input.
:Give up to input message.
Response +CMGW:OKor+CMS ERROR:
Example AT+CMGW=”091137880” “This is thetext”+CMGW:15
OK
Text mode(+CMGF=1)
AT+CMGW=”091137880” “This is thetext”+CMS ERROR:
Text mode(+CMGF=1)
AT+CMGW=31,0891683108705505F001000B813124248536F300081200400026002A535A53D153A653C1532052C7+CMGW:1
PDU mode (+CMGF=0)
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 32 of 69
OKAT+CMGW=31,0891683108705505F001000B813124248536F300081200400026002A535A53D153A653C1532052C7+CMS ERROR:
PDU mode (+CMGF=0)
NOTENOTENOTENOTEIndex value from 1 to n are used for ‘ME’ and from n+1 to n+m are used for ‘SM’.
4.10 Send stored message:+CMSSDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo ssssendendendend essagesessagesessagesessages withwithwithwith locationlocationlocationlocation valuevaluevaluevalue fromfromfromfrom thethethethe
memorymemorymemorymemory storagestoragestoragestorage (SMS-SUBMIT).(SMS-SUBMIT).(SMS-SUBMIT).(SMS-SUBMIT). ReferenceReferenceReferenceReference valuevaluevaluevalue isisisis returnedreturnedreturnedreturned totototo thethethetheterminalterminalterminalterminal afterafterafterafter sendingsendingsendingsending thethethethe messagemessagemessagemessage successfulsuccessfulsuccessfulsuccessfully.ly.ly.ly.
Format � AT+CMSS=
Syntax NULLResponse See the example below.Example AT+CMSS=2
+CMSS:OK
Send messages stored in Memory 2
AT+CMSS=2CME ERROR:
Send messages stored in Memory 2
NOTENOTENOTENOTE
4.11 Delete message:+CMGDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo deletedeletedeletedelete messagesmessagesmessagesmessages fromfromfromfrom thethethethe currentcurrentcurrentcurrent storage.storage.storage.storage.
Format � AT+CMGD= [,]
Syntax :Record number of stored message.
:Delete flag0:delete the message specified record number.1:delete all read message2:delete all read and sent message3:delete all read, sent and unsent message4:delete all messages
Response See the example below.Example AT+CMGD=3
OKDelete the third message
AT+CMGD=3 Delete the third message
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 33 of 69
CME ERROR:
NOTENOTENOTENOTEIf this command catches parameter, parameter is insignificant,subject to parameter .
4.12 Service center address:+CSCADescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe serviceserviceserviceservice centercentercentercenter addressaddressaddressaddress....
Format � AT+CSCA=[,]� AT+CSCA?
Syntax :Service center address.
: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=”0170111000”,129
OKAT+CSCA=”0170111000”,129CME ERROR:AT+CSCA?+CSCA:”0170111000”,129
OK
NOTENOTENOTENOTEGeneral operators are pre-configured the SIM card message center number, do notneed to set
4.13 Set Text Mode Parameters: +CSMPDescriptionDescriptionDescriptionDescription InInInIn texttexttexttext mode,mode,mode,mode, selectselectselectselect thethethethe additionaladditionaladditionaladditional parameterparameterparameterparameter values;values;values;values; setsetsetset thethethethe validityvalidityvalidityvalidity fromfromfromfrom thethethethe
momentmomentmomentmoment whenwhenwhenwhen receivedreceivedreceivedreceived thethethethe messagemessagemessagemessage fromfromfromfrom SMSCSMSCSMSCSMSC orororor definitedefinitedefinitedefinite thethethethe absoluteabsoluteabsoluteabsolute timetimetimetimeofofofof thethethethe terminationterminationterminationtermination fofofofo thethethethe validity.validity.validity.validity.
Format � AT+CSMP=[[,[,[,]]]]� AT+CSMP?
Syntax :Depends on the command or result code: the first 8 digits of GSM 03.40SMS-DELIVER; SMS-SUBMIT (default value is 17); or use integer typeSMS-COMMAND (default value is 2).:
value Effective time0-143 (vp+1)*5 minutes144-167 12 hours+((vp–143)*30
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 34 of 69
minutes)168-196 (vp–166)*1 day197-255 (vp–192)*1 week
:integer type TP-protocol-ID (default value is 0).:integer type cell broadcasting data coding program
0.Response See the example below.Example AT+CSMP=17,167,0,0
OKAT+CSMP?+CSMP:17,167,0,0
OK
NOTENOTENOTENOTE
4.14 Display text mode parameter:+CSDHDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset totototo displaydisplaydisplaydisplay detaileddetaileddetaileddetailed headheadheadhead messagemessagemessagemessage orororor notnotnotnot inininin resultresultresultresult
codecodecodecode underunderunderunder texttexttexttext modemodemodemode
Format � AT+CSDH=[]� AT+CSDH?
Syntax :Get value:0: not display 、、、、 and (get value from thecommand +CSCA and +CSMP) in commands +CMT,+CMGL,+CMGR, neitherdisplay 、 or in the result code of SMS-DELIVER andSMS-SUBMIT; to SMS-COMMAND in the result code of +CMGR, not display、、、、
: no need to input value 0.1:display these values in result code.
Response See the example below.Example AT+CSDH=
OKEqual to AT+CSDH=0AT+CMGR=14+CMGR: "RECREAD","+8613430981504","","09/07/17,14:49:00+50"7B5675655FAE5C0F65F65019
OKAT+CSDH=1OK
AT+CMGR=14+CMGR: "REC
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 35 of 69
READ","+8613430981504","","09/07/17,14:49:00+50",145,4,0,8,"+8613800755500",145,127B5675655FAE5C0F65F65019
OKAT+CSDH?+CSDH:0
OK
NOTENOTENOTENOTE
4.15 Choose cell broadcast message type:+CSCBDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset CBMCBMCBMCBM typetypetypetype MEMEMEME receivedreceivedreceivedreceived
Format � AT+CSCB=[[,[,]]]
Syntax :Get value:0:accept the message type specified by and , no need to input
value 0;1:not accept the message type specified by and .
:Chatacter type(eg: 0,1,5,320~478,922);the combination of all possible CBM
message ID(please reference ).:
Charater type(eg:0~3,5); the combination of all possible CBM data codingprogram(please reference )(the default value is empty chatater string).
Response See the example below.Example AT+CSCB=0,"1,5,10-11,40",""
OKAT+CSCB?+CSCB:0,"1,5,10-11,40",""
OK
NOTENOTENOTENOTEIf =0 and is an empty charater string, it could not accept CB SMS.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 36 of 69
5 TELEPHONE BOOK COMMANDS
5.1 CHOOSE PHONE BOOK STORAGE:+CPBSDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo choosechoosechoosechoose phonephonephonephone bookbookbookbook storage.storage.storage.storage.
Format � AT+CPBS=� AT+CPBS?
Syntax :“SM”:SIM card storage“FD”:SIM card fixed phone book storage“LD”:SIM card the last dial-out number“ON”:locate number storage
Response +CPBS:[,,]
The used capability which in choosed storage
The total capability of choosed storageExample AT+CPBS=”SM”
OKChoosethe the phone book storage is“SM”
AT+CPBS=”SM”CME ERROR:
Choose the phone book storage is“SM”
AT+CPBS?+CPBS:”SM”,71,200
OK
Check the phone book storage andtotal capbility
NOTENOTENOTENOTE
5.2 READ PHONE BOOK:+CPBRDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo readreadreadread thethethethe informationinformationinformationinformation ofofofof phonephonephonephone book.book.book.book.
Format � AT+CPBR=[,]
Syntax :Integer type,phone book record nember
:Integer type,phone book record nember
Response [+CPBR:,,,+CPBR:,,,]:
Character string type, phone number.:
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 37 of 69
Integer type,phone number type.:
Character string type, names.:
Integer type, indicate the maximum length of phone number.:
Integer,indicate names and maximum length.Example AT+CPBR=1,3
+CPBR:1,”091137880”,129,”Comneon”+CPBR:2,”09113788223”,129,”MMI”+CPBR:3””09113788328”,129,”Test-ro”OK
Read the phone book record ofnumber 1/2/3
AT+CPBR=1,3CME ERROR:
Read the phone book record ofnumbered 1/2/3
NOTENOTENOTENOTE
5.3 FIND PHONE BOOK:+CPBFDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo findfindfindfind thethethethe informationinformationinformationinformation ofofofof phonephonephonephone book.book.book.book.
Format � AT+CPBF=
Syntax :Character string type, indicate names.
Response +CPBF:,,,�
Integer type, indicate the maximum length of phone number.�
Integer, indicate names and maximum length.Example AT+CPBF=”Comneon”
+CPBF:1,”091137880”,129,”Comneon”OK
Read the phone book information ofnamed Comneon
AT+CPBF=”Comneon”CME ERROR:
Read the phone book information ofnamed Comneon
NOTENOTENOTENOTEAT+CPBF=””It will shows all the phone book record of current storage
5.4 WRITE PHONE BOOK:+CPBWDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo writewritewritewrite thethethethe informationinformationinformationinformation inininin phonephonephonephone book.book.book.book.
Format � AT+CPBW=,,,
Syntax :
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 38 of 69
Integer type, the numbers which phone book records.:
Character string type,phone numbers.:
Integer type,the type of phone numbers.:
Character string,names.Response +CPBR:(list if supported s),[],(list of
supporteds),[]:
Integer type,indicate the maximum length of phone numbers.:
Integer,indicate names and maximum length.Example AT+CPBW=1,”091137880”,129,”Comneo
n”OK
Write phone book record of namedComneon
AT+CPBW=1,”091137880”,129,”Comneon”CME ERROR:
Write phone book record of namedComneon
NOTENOTENOTENOTENeed to pre-set TE character set,or the name of input will fail.
5.5 GAIN NATIVE NUMBER:+CNUMDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo findfindfindfind thethethethe informationinformationinformationinformation ofofofof phonephonephonephone book.book.book.book.
Format � AT+CNUM
Syntax :it can choose the character srting which is relate to ,+CSCSset the available character set:character string type of phone number,number type ensured by:number type(129 or 145)
Response +CNUM:[],,OKOrCME ERROR:
Example
AT+CPBS=”ON”OK
Choose phone book storage is ON
AT+CPBS=”ON”CME ERROR:AT+CPBW=1,”11111111111”,129,”CCH”OK
Write phone recore in “ON” storage
AT+CPBW=1,”11111111111”,129,”CCH”CEM ERROR:
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 39 of 69
AT+CNUM+CNUM:”CCH”,”11111111111”,129OK
Check native number
NOTENOTENOTENOTE1、This command is to check mobile user international number (ISDN).2、If there are various international number on terminals,each type internationalnumber will shows in different lines.3、Native number need to through AT+CPBS=”ON”;AT+CPBW connmad write inSIM card, then reads by AT+CNUM.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 40 of 69
6 SUPPLEMENTARY SERVICE COMMANDS
6.1 CALL DIVERTING:+CCFCDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset confitionconfitionconfitionconfition andandandand numbernumbernumbernumber forforforfor callcallcallcall diverting.diverting.diverting.diverting.
Format � AT+CCFC=
Syntax :0: Unconditional divert (CFU)1: When busy divert (CFB)2: Not reply divert (CFNA)3: Not reachable4: All call diverting5: All conditional call diverting
:0: Forbid1: Enable2: Check status3: Registere4: Delete
Phone number
Response See the example below.
ExampleAT+CCFC=0,”123456”OK
Set unconditional divert,divert tonumber 123456.
NOTENOTENOTENOTESIM card need to activate supplementary service.
6.2 CALL WAITING:+CCWADescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo controlcontrolcontrolcontrol callcallcallcall waiting.waiting.waiting.waiting.
Format � AT+CCWA=,� AT+CCWA?
Syntax :The third calling,if indicate+CCWA:return code0: Not indicate1: Indicate
:Call waiting forbid/enable0: Forbid1: Enable2: Check status
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 41 of 69
Response See the example below.
ExampleAT+CCWA=1,1OK
Set call waiting,indicate +CCWA:return code
AT+CCWA?+CCWA:0OK
Currently n values 0
NOTENOTENOTENOTESIM card need to activate supplementary service.
6.3 CALL HOLD and THREE-WAY-CALL:+CHLDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo realizerealizerealizerealize callcallcallcall holdholdholdhold andandandand three-way-call.three-way-call.three-way-call.three-way-call.
Format � AT+CHLD=
Syntax :0: Release all the holded call or set a waited call to UDUB(User Deteermined
User Busy)1: Release all the active call and reveive a holded or waited call;2: Hold all the active call and receive a holded or waited call;3: Add a holded call to three-way-call.
Response See the example below.
ExampleAT+CHLD=0OK
NOTENOTENOTENOTEWhen releasing calls, AT + CHLD = 1 only release the currently active call, ATHrelease all calls.SIM card need to open additional business.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 42 of 69
7 GPRS commands
7.1 Set PDPFormat:+CGDCONTDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo setsetsetset GPRSGPRSGPRSGPRS PDPPDPPDPPDP fffformatormatormatormat....
Format � AT+CGDCONT=,,
Syntax :To indicate PDP number, minimal value is 1.
:PDP packet type, IP: use TCP/IP package.
:Visit network nodes tag.
Response See the example below.Example China Mobile:AT+CGDCONT=1,”IP”,”CMNET”
China Unicom:AT+CGDCONT=1,”IP”,”UNINET”
NOTENOTENOTENOTE
7.2 Send USSD data:+CUSDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo sendsendsendsend USSDUSSDUSSDUSSD(UnstructuredUnstructuredUnstructuredUnstructured SupplementarySupplementarySupplementarySupplementary ServiceServiceServiceService DataDataDataData)....
Format � AT+CUSD=,,� AT+CUSD?
Syntax :-0:not display back code-1:display back code-2:cancel the request
:string type:USSD string,USSD string,please use ASCII code.
:integer type,it is suggesti to use 15.
Response See the example below.Example AT+CUSD=1,”*100#”,15
+CUSD:1,"5FEB4FE10031003000306B228FCE60A8000A003100560049005059278D609001000A0032670959567ADE731C002D6D7776D782395BFB5B9D000A00339ED1624B515A6E17900F004600420049000A003465E995F45FEB62A5000A00355A314E50604B5427000A003680A179685F697968000A0037795D798F4E0B8F7D000A00388D448D398BF4660E ",72
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 43 of 69
OKAT+CUSD=1,”1”,15OK+CUSD :1,"6210529F63A8835000354F4D4EB253CB514D8D39988653D679FB52A8554657CE0056004900504F1A5458670D52A1FF0C53736709673A4F1A8D6253D60031003051438BDD8D39FF0C8BE689C16D3B52A88BE660C5000A00317ACB537363A88350000A00326D3B52A88BE660C5000A003351734E8E005600490050000A00344E2D595667E58BE2000A00354E0A67086D3B52A8516C544A000A003800388FD456DE",72AT+CUSD?+CUSD:0OK
NOTENOTENOTENOTE
7.3 Data mode and AT mode switch settings:&D2DescriptionDescriptionDescriptionDescription TTTThishishishis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe switchswitchswitchswitch betweenbetweenbetweenbetween datadatadatadata modemodemodemode andandandand ATATATAT mode.mode.mode.mode.
Format � AT&D2
Syntax NULLResponse See the example below.Example AT&D2
OK
NOTENOTENOTENOTEThis command need to set before the module is connected to the network.Please following the steps below:(1)MODEM power on, then input AT&D2AT&D2AT&D2AT&D2 before inputing AT+CGDCONT andATD*99#.(2)set APN, dial-up, then use ‘+++/ATO’ regularly to switch between data modeand AT mode.(3) if you want to disconnect the data link, please switch to AT mode(use +++),then input AT&D1AT&D1AT&D1AT&D1,,,, and then switch back to data mode (use ATO) , use +++command to quit from data mode normally.(4)to re-enter data mode and use +++/ATO command, please input AT&DAT&DAT&DAT&D2222before dial-up.This command is only used in the external stack.
7.4 Data mode switch to AT mode:+++
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 44 of 69
DescriptionDescriptionDescriptionDescription TTTThishishishis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe modulemodulemodulemodule switchswitchswitchswitch datadatadatadata modemodemodemode totototo ATATATAT mode.mode.mode.mode.
Format � +++
Syntax NULLResponse See the example below.Example +++
OK
NOTENOTENOTENOTEThis command is only used in the external stack.
7.5 AT mode switched to data mode:ODescriptionDescriptionDescriptionDescription TTTThishishishis commandcommandcommandcommand isisisis totototo setsetsetset thethethethe modulemodulemodulemodule switchswitchswitchswitch ATATATAT modemodemodemode totototo datadatadatadata mode.mode.mode.mode.
Format � ATO
Syntax NULLResponse See the example below.Example ATO
CONNECT
NOTENOTENOTENOTEThis command is only used in the external stack.
7.6 User Authentication: +XGAUTHDescriptionDescriptionDescriptionDescription PDP authenticationFormat � AT+XGAUTH=,,,
� +XGAUTH:(s),(s),lname,lpwdSyntax PDP context identifier
authentication may be:- 0: meaning authentication protocol not used (NONE: see also 2.1 )- 1: meaning personal authentication protocol (PAP: see also 2.1 )- 2: meaning handshake authentication protocol (CHAP: see also 2.1 ) user name as string with length password as string with maximum length
Response See the example below.Example AT+XGAUTH=1,1,”gsm”,”1234” OK
orCME ERROR:
AT+XGAUTH=? +XGAUTH: (1-255),(0-1),20,3220:The maximum length of user name;32:The maximum length of password
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 45 of 69
NOTENOTENOTENOTE1)This instruction should be placed behind the command AT + CGDCONT2)Usually in the privateprivateprivateprivate networknetworknetworknetwork user authentication is required3)UserUserUserUser namenamenamename andandandand passwordpasswordpasswordpassword cancancancan notnotnotnot bebebebe empty,empty,empty,empty, thethethethe defaultdefaultdefaultdefault isisisis "gsm","gsm","gsm","gsm", "1234""1234""1234""1234"4)InternalInternalInternalInternal andandandand externalexternalexternalexternal protocol stack can use this instruction
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 46 of 69
8 TCP/IP AT commands
8.1 Select internal or external protocol stack:+XISPDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo selectselectselectselect totototo useuseuseuse internalinternalinternalinternal orororor externalexternalexternalexternal protocolprotocolprotocolprotocol stack.stack.stack.stack.
Format � AT+XISP=� AT+XISP?
Syntax :0:use internal TCP/IP protocol stack1:use external protocol stack (the default value of the software of the module)
Response See the example below.
Example AT+XISP=0OK
Designated to use internal protocol stack
AT+XISP?+XISP:0OK
NOTENOTENOTENOTEIf using internal protocol stack, please set ‘AT+XISP=0’ in the single boardsoftware.The following TCP / IP instruction are for the internal protocol stack
8.2 Establish PPP link:+XIICDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo establishestablishestablishestablish PPPPPPPPPPPP link.link.link.link.
Format � AT+XIIC=� AT+XIIC?
Syntax :1Response See the example below.Example AT+XIIC=1
OKRequest the module to establish PPP link.
AT+XIIC?
+XIIC+XIIC+XIIC+XIIC:::: 1,1,1,1, 10.232.165.2910.232.165.2910.232.165.2910.232.165.29OK
Check the status of PPP link.1) PPP link successfully, IP is 10.232.165.29.2) There are four spaces before 1
AT+XIIC?
+XIIC:+XIIC:+XIIC:+XIIC: 0,0,0,0, 0.0.0.00.0.0.00.0.0.00.0.0.0OK
Check the status of PPP link:1) PPP link fail and need check again.2) There are four spaces before 0
NOTENOTENOTENOTE1、Before establish PPP link, please use command ‘AT+CGDCONT’ to set value
APN. For example, to the network of China Mobile, we can use the followingcommands to set APN and other values: AT+CGDCONT=1,”IP”,”CMNET”.
2、Please set AT+XISP=0 before set AT+CGDCONT.
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 47 of 69
3、Before using AT+XIIC=1 to establish PPP link, please make sure the module hasbeen registered on network. We can use AT+CREG? to confirm the moduleregistered on the network or not. If response +CREG:0,1or +CREG:0,5, itmeans the module has been registered on the network.
8.3 Establish TCP link:+TCPSETUPDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo establishestablishestablishestablish TCPTCPTCPTCP link.link.link.link.
Format � AT+TCPSETUP=,,
Syntax :Link ID, only could be 0 or 1.
:Target IP address must be input as xx.xx.xx.xx.
: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 to220.199.66.56,6800 on Link 0,success.
AT+TCPSETUP=1,192.168.20.6,7000OK
+TCPSETUP:0,FAIL
Establish a connection to192.168.20.6,7000 on Link 1,failed.
AT+TCPSETUP=2,192.168.20.6,7000+TCPSETUP:Error 2
AT command Format: ERROR
NOTENOTENOTENOTE1、Before setting up a TCP link, you must ensure that the PPP link has been
established, you can use command +XIIC to confirm.2、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 inuse, it will response +TCPSETUP:Error 2.
8.4 Send TCP data:+TCPSENDDescriptionDescriptionDescriptionDescription ThisThisThisThis commandcommandcommandcommand isisisis totototo sendsendsendsend TCPTCPTCPTCP data.data.data.data.
Format � AT+TCPSEND=,
Syntax :Link ID, only could be 0 or 1 and this link has been already establish TCP link.
:The length of on-sent data, get value in range of 1-2000 bytes.
Response See the example below.Example AT+TCPSEND=0,10 Send 10 bytes data on Link 0,
Let’s enjoy the wireless life!
All rights reserved by Shenzhen Neoway Technology. 48 of 69
>1234567890OK+TCPSEND:0,10
success.
AT+TCPSEND=0,10>1234567890+TCPSEND:Error
Send 10 bytes data on Link 0, thislink has not established, failed.
AT+TCPSEND=0,536>1234567890…+TCPSEND:Buffer not enough,439ERROR
Send 536 bytes data on Link 0,the internal buffer is not enough,failed.
AT+TCPSEND=0,2800>1234567890…+TCPSEND:Data length error
Send 2800 bytes data on Link 0,exceed the limitation of the length,f