background image

Neo_M660 AT Command Set

 

 

 

Copyright © Neoway Technology Co., Ltd 

15 

 

<ber> 

0...7 

Refer to the value of RXQUAL in the table of GSM 05.08 
8.2.4. 

99 

Not known or not detectable 

 

Example

 

AT+CSQ 

+CSQ: 1, 99 

 

OK 

 

Remarks

 

N/A 

 

3.2 Selecting and Registering a GSM Network: +COPS 

Description

 

To select and register a GSM network 

Format

 

 

AT+COPS=[<mode>[,<format>[,<oper>>[,<AcT>]]]]<CR> 

 

AT+COPS?<CR> 

Parameter

 

<mode>: 

To set automatic network selection or manual selection: 

0: Automatic selection (ignore the parameter 

<per>

1: Manual selection 

2: Deregister from the network 

3: Set 

<format> 

only 

4: Manual/automatic selection (if the manual selection fails, automatic mode starts) 

<format>: 

0: Long alphanumeric <oper> (default value) 

1: Short format alphanumeric <oper> 

2: Numeric <oper> 

<oper>: 

It is given in 

<format>

. This field may be in 16-character long alphanumeric format, 

8-characters short alphanumeric format, or 5-character numeric format (MCC/MNC). 

<AcT>: Indicates the radio access technology and its value can be 0, 1, and 2. 

0: GSM 

1: GSM compact 

2: UTRAN 

Return 

Value

 

<stat>: 

0: Unknown network 

1: Available network 

2: Current network 

3: Forbidden network 

Example

 

AT+COPS=0,0 

 

Summary of Contents for M660

Page 1: ...Neo_M660 AT Command Set Version 3 7 Neoway Technology Co Ltd Let s enjoy the wireless life ...

Page 2: ... to use the M660 This document is intended for system engineers SEs development engineers and test engineers The information in this document is subject to change without notice due to product version update or other reasons Every effort has been made in preparation of this document to ensure accuracy of the contents but all statements information and recommendations in this document do not consti...

Page 3: ...ent mode AT CLOSECLIENT AT IPSTATUS AT TCPACK and AT CLIENTSTATUS Added the description of the ATO command in the transparent mode and AT TRABSCLOSE command Added the description of the AT REST and AT CPWROFF commands 2013 11 06 V3 5 Added the following commands AT TCPACKS HTTP commands AT TCPSRVTRANS and ATE1 ATE0 2013 11 29 V3 6 Modified the terminal display after the client is connected to the ...

Page 4: ...g PIN and Querying MT and Network Device CLCK 9 2 9 Modifying the Password of the PIN CPWD 10 2 10 Extended Error Report CEER 11 2 11 Setting Error Information CMEE 12 2 12 Setting the Signal Indicator Status SIGNAL 12 2 13 Enabling the Hardware or Software Flow Control Function IFC 13 2 14 Enabling Disabling the Terminal Display ATE1 ATE0 14 3 Network Service Commands 14 3 1 Querying Signal Quali...

Page 5: ...34 5 11 Deleting SMS Messages CMGD 35 5 12 Setting the SMS Center Number CSCA 35 5 13 Setting the Parameters of the Text Mode CSMP 36 5 14 Displaying the Parameters of the Text Mode CSDH 37 5 15 Selecting the Type of Cell Broadcast Messages CSCB 37 6 Phonebook Commands 38 6 1 Selecting Phonebook Storage CPBS 38 6 2 Reading the Phonebook CPBR 39 6 3 Querying the Phonebook CPBF 40 6 4 Writing Inform...

Page 6: ...ing Transparent Transmission Link TRANSCLOSE 59 10 DNS Command 59 10 1 Querying the IP Address DNS 59 11 FTP AT Commands 60 11 1 Logging In to the FTP Server FTPLOGIN 60 11 2 Logging Out from the FTP Server FTPLOGOUT 60 11 3 Downloading Data from the FTP Server FTPGET 61 11 4 Uploading Data from the FTP Server FTPPUT 62 11 5 Querying FTP Link Status FTPSTATUS 63 12 TCP Server AT Commands 63 12 1 S...

Page 7: ...ELE 79 15 6 Cancelling All Deleting Marks POPRSET 80 15 7 Ending the Conversation POPQUIT 80 15 8 Reading Emails POPRETR 80 16 eCall Commands 81 16 1 Enabling Disabling the DSP Monitor EMSD 81 16 2 Configuring MSD Data EMSDSET 82 16 3 Initiating an eCall CECALL 82 16 4 Triggering an MSD Transmission EMSDPUSH 83 16 5 eCall Indications 83 16 6 eCall Commands Process 83 17 Recording Commands 84 17 1 ...

Page 8: ...oadcast TTSCFG 92 18 14 Resetting the Module REST 93 18 15 Shutting Down the Module CPWROFF 93 A Reference Process of AT Command Programming 94 A 1 Content of PDU SMS Messages 94 A 2 Flowchart of Sending Text SMS Messages Through UART 96 A 3 Flowchart of Sending PDU SMS Messages Through UART 97 A 4 Flowchart of AT Commands to Establish TCP Link 98 A 5 Flowchart of Receiving SMS Messages 100 A 6 Fl...

Page 9: ... FB52A875355B50554652A10F120A806211768400530049004D84254E1A53850F080B808D224FE1901A0F 0A0C8062117684573076D80F0A4D805E9475287BA174060F084F804E0B4E009875 EIND 2 EIND 1 LOG LOG Description 1 EIND 128 Indicates that the module starts up successfully and can receive AT commands 2 EUSIM 0 Detect the SIM card For a China Mobile card the module returns EUSIM 0 For a China Unicom 2G card the module return...

Page 10: ...r CR LF CR LF OK CR LF or CR LF CME ERROR err CR LF Example AT CGMI CGMI Neoway Corp Ltd OK Remarks N A 1 2 Querying the Module Model CGMM Description To query the module model Format AT CGMM CR Parameter N A Return Value CR LF model CR LF CR LF OK CR LF or CR LF CME ERROR err CR LF Example AT CGMM CGMM M660 OK Remarks N A 1 3 Querying the Version CGMR Description To query the software version For...

Page 11: ...Equipment Identity IMEI of the module Format AT CGSN CR Parameter N A Return Value CR LF IMEI CR LF CR LF OK CR LF or CR LF CME ERROR err CR LF Example AT CGSN 864894010024181 OK The IMEI is a character string of 15 digits Remarks N A 1 5 Querying the IMSI CIMI Description To query the international mobile subscriber identification IMSI Format AT CIMI CR Parameter N A Return Value CR LF IMSI CR LF...

Page 12: ...R An error occurs when the read command is executed Remarks The ICCID number is a character string of 20 digits 2 Mobile Device Control and Status Report 2 1 Querying the Module Status CPAS Description To query the work status of the module Format AT CPAS CR Parameter pas 0 ready The module is ready and is able to execute AT commands 1 unavailable The command is not allowed by the module terminal ...

Page 13: ...tion Cell ID Local ID of network registration Return Value CR LF CREG n stat lac ci Act CR LF CR LF OK CR LF or CR LF CME ERROR err CR LF n Value 0 Forbid unsolicited result codes of network registration default setting 1 Allow unsolicited result codes of network registration 2 Allow unsolicited location information Cell ID Local ID of network registration stat Value 0 Unregistered The device is n...

Page 14: ...Format AT CFUN fun rst CR AT CFUN CR Parameter fun 1 All functions 4 Turn off the RF transmit and receive circuit of the module flight mode 0 Turn off the radio an SIM power minimum functions 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 Return Value CR LF CFUN list of supported fun s list of supported rst s CR LF CR LF OK CR LF ...

Page 15: ... See the Example Example AT ENPWRSAVE 1 OK AT ENPWRSAVE ENPWRSAVE 1 OK Remarks The setting of the parameter n will not be saved after the module is powered off The DTR signal of the module is at high level by default After the sleep mode is enabled and the DTR signal is at low or high level the module can enter the sleep mode only when all circuits of the module allows the sleep mode The DTR signa...

Page 16: ...00 600 1200 2400 4800 9600 14400 19200 38400 57600 115200 230400 460800 and 921600 Return Value See the Example Example AT IPR 115200 OK AT IPR IPR 115200 OK AT IPR IPR 300 600 1200 2400 4800 9600 14400 19200 38400 57600 115200 230400 460800 921600 OK Remarks The default baudrate is 115200 and the parameter setting of this command can be saved after the module is powered off 2 7 Entering the PIN C...

Page 17: ...terrogate an ME or a network facility Format AT CLCK fac mode passwd class CR Parameter fac OI Outgoing international calls AI All incoming calls IR Incoming calls when roaming outside the home country SC SIM card AO All outgoing calls OX All outgoing international calls except to the home country AB All barring services AG All outgoing barring services AC All incoming barring services FD SIM fixe...

Page 18: ...lue when mode 2 and command successful CR LF CLCK status class1 CR LF CLCK status class2 CR LF 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 Remarks N A 2 9 Modifying the Password of the PIN CPWD Description To modify the password of the lock function of the module Format AT CPWD fac oldpwd newpwd CR Parameter fac P2 SIM PI...

Page 19: ...F CR LF CME ERROR err CR LF 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 Remarks N A 2 10 Extended Error Report CEER Description To return text information report of one line or multiple lines determined by the ME manufacturers Format AT CEER CR Parameter N A Return Value CR LF CEER cause report CR LF CR LF OK CR LF cause cause va...

Page 20: ...ple AT CMEE 1 OK AT CMEE CMEE 1 OK Remarks N A 2 12 Setting the Signal Indicator Status SIGNAL Description To set the different blinking status of the signal indicator Format AT SIGNAL value CR AT SIGNAL CR AT SIGNAL CR Parameter value Integers ranging from 0 to 5 0 Blink once every second in normal situation Being off or on if any abnormality occurs 1 Blink once every second after the module is c...

Page 21: ...tor status ranges from 0 to 5 Remarks The default status setting is 2 The parameter setting of this command can be saved after the module is powered off 2 13 Enabling the Hardware or Software Flow Control Function IFC Description To enable the hardware or software flow control function Format AT IFC n1 n2 CR AT IFC CR AT IFC CR Parameter n1 0 2 n2 0 2 Return Value See the Example Example AT IFC 1 ...

Page 22: ...e Example ATE1 OK Enable the terminal display function of the AT commands ATE0 OK Disable the terminal display function of the AT commands Remarks N A 3 Network Service Commands 3 1 Querying Signal Quality CSQ Description To check the receiving signal strength indication RSSI and the bit error rate BER of the channel Format AT CSQ CR Parameter N A Return Value CR LF CSQ signal ber CR LF CR LF OK C...

Page 23: ...gnore the parameter per 1 Manual selection 2 Deregister from the network 3 Set format only 4 Manual automatic selection if the manual selection fails automatic mode starts format 0 Long alphanumeric oper default value 1 Short format alphanumeric oper 2 Numeric oper oper It is given in format This field may be in 16 character long alphanumeric format 8 characters short alphanumeric format or 5 char...

Page 24: ...he current network selection parameters AcT is displayed only if the device supports UMTS AcT indicates the access technology of the manual attach procedure if you choose GSM UMTS dual mode and select network manually Ignore the parameter AcT if you set automatic network selection 4 Calling Control Commands 4 1 Setting the Speaker Volume CLVL Description To set the level of the speaker volume whic...

Page 25: ...g a call Format AT CMUT n CR AT CMUT CR Parameter n 0 Mute off 1 Mute on Return Value See the Example Example AT CMUT 0 OK AT CMUT CMUT 0 OK Remarks This command is valid only during a call ERROR will be returned in any other situations 4 3 Dialing Command ATD Description To initialize a data fax or voice link For a voice link the dialing string consists of numbers and modifiers and must end with ...

Page 26: ... 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 144...

Page 27: ...ed 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 Remarks N A 4 5 Hanging Up Calls ATH Description To hang up all call links Format ATH CR Parameter N A Return Value CR LF SPEECH OFF CR LF CR LF RELEA...

Page 28: ...Example AT CLIP 1 OK AT CLIP CLIP 1 1 default OK Remarks N A 4 7 Sending DTMF Tone VTS Description To send the DTMF tone Only for voice services in GSM Format AT VTS DTMF CR Parameter DTMF A single ASCII character in the set 0 9 A D Return Value See the Example Example AT VTS VTS 0 1 2 3 4 5 6 7 8 9 A B C D OK Remarks N A 4 8 Auto Answer ATS0 Description To control the auto answer mode of the modu...

Page 29: ...mat AT HANDFREE value CR AT HANDFREE CR Parameter value Integer 0 Receiver mode 1 Handfree mode always valid if the module is not powered off or switched to other modes 2 Handfree mode only valid for the current call It will switch to the receiver mode after the call ends Return Value CR LF HANDFREE 0 CR LF CR LF OK CR LF Example AT HANDFREE 0 OK Set to the receiver mode AT HANDFREE 1 OK Set to th...

Page 30: ... ALREADY STARTED CR LF CR LF DTMF OPERATION NOT ALLOWED CR LF Example AT DTMFDETECT 1 DTMF DETECT START OK Start the DTMF detection AT DTMFDETECT 0 DTMF DETECT STOP OK Stop the DTMF detection AT DTMFDETECT 2 DTMF DETECT ALLOWED OK Start the DTMF detection AT DTMFDETECT 3 DTMF DETECT ALLOWED NOT OK Stop the DTMF detection Remarks N A 4 11 Setting Echo Suppression Level in the Earphone Mode ESL Desc...

Page 31: ...iver mode Format AT HESL value CR AT HESL CR AT HESL CR Parameter value Integers ranging from 0 to 6 Return Value See the Example Example AT HESL HESL 1 OK Query the current echo suppression level AT HESL 2 OK Set the level of echo suppression to 2 AT HESL HESL 0 6 OK Query the range of the command parameter Remarks The setting of this command is saved after the module is powered off 4 13 Setting ...

Page 32: ...module is powered off 4 14 MIC Volume Control MICL Description To set the level of the MIC volume in a call Format AT MICL level CR AT MICL CR Parameter level Integers ranging from 0 to 6 Return Value See the Example Example AT MICL 3 OK Set the level of the MIC volume to 3 AT MICL MICL 3 OK Query the current level of the MIC volume Remarks The setting of this command is not saved after the module...

Page 33: ...rks The setting of this command is not saved after the module is powered off 4 16 Switching the Audio Output Channel AUDIN Description To switch the audio output channel before and in a call Format AT AUDOUT n CR AT AUDOUT CR AT AUDOUT CR Parameter n 0 Set to receiver output default 1 Set to loud speaker output 2 Set to earphone output Return Value See the Example Example AT AUDOUT 0 OK Set to rec...

Page 34: ...ommands support GSM07 05 Phase 2 1 GSM03 40 and GSM03 41 SMS related AT commands support GSM07 05 Phase 2 mt mo bm 0 Not support 1 Support Return Value See the Example Example AT CSMS 1 CSMS 1 1 1 OK CSMS mt mo bm OK AT CSMS CSMS 1 1 1 1 OK CSMS service mt mo bm OK Remarks N A 5 2 Setting Preferred SMS Storage CPMS Description To set preferred SMS storage Format AT CPMS mem1 CR AT CPMS CR Paramete...

Page 35: ...otal3 OK AT CPMS CPMS SM_P 50 50 SM_P 50 50 SM_P 50 50 OK CPMS mem1 used1 total1 mem2 used2 total2 mem3 used3 total3 OK AT CPMS CPMS SM ME SM_P ME_P MT SM ME SM_P ME_P MT SM ME SM_P ME_P MT OK CPMS list of supported mem1 s list of supported mem2 s list of supported mem3 s OK Remarks The setting of this command is saved after the module is powered off 5 3 Setting SMS Inputting Mode CMGF Description...

Page 36: ...t IRA International reference alphabet ITU T T 50 PCCP437 PC character set Code Page 437 8859 1 ISO 8859 Latin 1 character set UCS2 16 bit universal multiple octet coded character set USO IEC10646 The UCS2 character string is converted into a hexadecimal number ranging from 0x0000 to 0xFFFF UCS2 encoding is used only in some character string of the statement Return Value See the Example Example AT...

Page 37: ...xt mode SMS messages are directly displayed rather than stored 3 Use the report codes defined by mt 2 to transmit SMS instruction codes to the end device The SMS instruction codes in other modes are the same as that of mt 1 bm Set the format of the new cell broadcast codes The default value is 1 0 Not send the instruction information of new cell broadcast The cell broadcast will not be stored 1 Th...

Page 38: ...6 Reading SMS Messages CMGR Description To read SMS messages stored in current memory use the AT CPMS command to specify the current memory Format AT CMGR index CR Parameter index location value index from preferred message storage mem1 to the TE Return Value if text mode CMGF 1 command successful and SMS DELIVER CMGR stat oa alpha scts tooa fo pid dcs sca tosca length CR LF data if text mode CMGF...

Page 39: ...ived unread the status in the storage changes to received read 5 7 SMS Message List CMGL Description To read SMS messages of one type from the current memory specified by the CPMS command Format AT CMGL stat CR AT CMGL CR Parameter state String type or numeric type When you set AT CMGF 1 REC UNREAD Unread SMS messages received REC UNREAD Read SMS messages received STO UNSENT Stored unsent SMS mess...

Page 40: ...EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596 D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA 6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD EC627E8E9441BD42655DEF446 CMGL 14 STO SENT 66045 050003010401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596 D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C3259...

Page 41: ... message content in text mode length The byte length of the SMS message content in PDU mode mr The storage location CR End character Ctrl Z Indicates the end of the input message ESC Indicates giving up the input message Return Value if text mode CMGF 1 and sending successful CMGS mr scts if PDU mode CMGF 0 and sending successful CMGS mr ackpdu Example AT CMGS 66358 CR This is the text CMGS 171 OK...

Page 42: ...on information CR End character Ctrl Z Indicates the end of the input message ESC Indicates giving up the input message Return Value CMGW index OK or CMS ERROR err Example AT CMGW 091137880 CR This is the text Ctrl Z CMGW 15 OK Text mode CMGF 1 AT CMGW 31 CR 0891683108705505F001000B813124248536F3000812004 00026002A535A53D153A653C1532052C7 Ctrl Z CMGW 1 OK PDU mode CMGF 0 Remarks The message status...

Page 43: ...sages from the current memory Format AT CMGD index delflag CR AT CMGD CR Parameter index The recording number of the stored SMS messages delflag Integer 0 Delete the SMS messages with the specified recording numbers 1 Delete all read SMS messages 2 Delete all read and sent SMS messages 3 Delete all read sent and unsent SMS messages 4 Delete all messages Return Value See the Example Example AT CMGD...

Page 44: ...ng the Parameters of the Text Mode CSMP Description To select required values for the additional parameters in the text mode and set the validity period since the message is received from the SMSC or the absolute time defining the end of the validity period Format AT CSMP fo vp pid dcs CR AT CSMP CR Parameter fo Determined by the command or the first 8 bits of the result code GSM 03 40 SMS DELIVER...

Page 45: ...r show 0 disable or not display 1 enable or display Return Value See the Example 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 7B5675655FAE5C0 F65F65019 OK AT CSDH 1 OK AT CMGR 14 CMGR REC READ 86134309815 04 09 07 17 14 49 00 50 145 4 0 8 8613800 755500 145 127B5675655FAE5C0F65F65019 OK AT CSDH CSDH 0 OK Remarks N A 5 15 Selecting the Type of...

Page 46: ...s the default value is empty character string Return Value See the Example Example AT CSCB 0 2 2 OK AT CSCB CSCB 0 2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 32 3 3 34 35 36 15 OK Remarks N A 6 Phonebook Commands 6 1 Selecting Phonebook Storage CPBS Description To select phonebook storage Format AT CPBS storage CR AT CPBS CR Parameter storage ME MT phonebook SM SIM UICC phonebook LD last dialling phoneb...

Page 47: ...er 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 phonebook entry name string type field of maximum length tlength character set as specified by command Select TE Character Set CSCS CPBR list of supp...

Page 48: ...format type type Type of address text The phone book entry name string type field of maximum length tlength character set as specified by command Select TE Character Set CSCS UCS2 and IRA are supported Example AT CPBF Comneon CPBF 1 091137880 129 Comneon OK Remarks N A 6 4 Writing Information to the Phonebook CPBW Description To write information to the phonebook Format AT CPBW index number type t...

Page 49: ...er Format AT CNUM CR Parameter N A Return Value CNUM alphal number typel Example AT CNUM CNUM A 10086 129 0 4 OK Remarks Before reading my number you must use the AT CPBS ON to set the storage of my number and use the AT CPBW to store my number 7 Supplementary Service Commands 7 1 Call Forwarding CCFC Description To set the call forwarding conditions and number Format AT CCFC reason mode number ty...

Page 50: ...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 parameter gives the time in seconds to wait before call is forwarded status 0 not a...

Page 51: ...oice 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 Return Value w...

Page 52: ...o Busy Subscriber Request CCBS Return Value See the Example Example AT CHLD 0 OK AT CHLD CHLD 0 1 1x 2 2x 3 4 5 OK CHLD list of supported n s Remarks Call related supplementary services are required Refer 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 held ...

Page 53: ... procedure The allocated address may be read using the CGPADDR command d_comp a numeric parameter that controls PDP data compression applicable for SNDCP only 0 off default if value is omitted h_comp a numeric parameter that controls PDP header compression 0 off default if value is omitted pd1 pdN zero to N string parameters whose meanings are specific to the PDP_type Return Value See the Example ...

Page 54: ...e 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 response times out Return Value See the Example Example AT CUSD 1 100 15 OK CUSD 1 0031795D798F4E0B8F7D000A00325F694FE18D3A5 361000A0033665A95F465B095FB000A003480A179686 7E58BE2000A003586816BD2000A00367...

Page 55: ...the transparent transmission of external internal protocol stack This command should not end with r or n 8 4 Switching Command Mode to Data Mode ATO Description To switch the module from the command mode to the data mode Format ATO CR Parameter N A Return Value CONNECT CONNECT text NO CARRIER ERROR Example ATO CONNECT Remarks This command is used to switch the command mode to the data mode for dia...

Page 56: ...er n 1 Return Value See the Example Example AT XIIC 1 OK The module is required to set up a PPP link AT XIIC XIIC 1 10 232 165 29 OK The PPP link is set up successfully and the IP address is 10 232 165 29 There are four spaces before 1 AT XIIC XIIC 0 0 0 0 0 OK The PPP link has not been set up successfully There are four spaces before 0 Remarks Ensure that the module has registered the network bef...

Page 57: ...e format or the AT command is incorrect or the link number is incorrect Remarks Use the AT XIIC 1 command to set up a PPP link before running this command 9 4 Sending TCP Data TCPSEND Description To send TCP data The module will returns after this command is sent Send TCP data 50 ms to 100 ms later Format AT TCPSEND n length CR Parameter n Link number ranging from 0 to 4 A TCP connection is establ...

Page 58: ...ceived Add 0x0d 0x0a to the end of the data You can identify the end based on length Return Value See the Example Example TCPRECV 0 10 1234567890 10 byte data is successfully received on link 0 The data is 1234567890 Remarks N A 9 6 Closing TCP Connection TCPCLOSE Description To close a TCP link Format AT TCPCLOSE n CR Parameter n Link number ranging from 0 to 4 Return Value See the Example Exampl...

Page 59: ...ending UDP Data UDPSEND Description To send UDP data The module will returns after this command is sent Send UDP data 50 ms to 100 ms later Format AT UDPSEND n length CR Parameter n Link number ranging from 0 to 4 A UDP connection is established on the link length The length of the data to be sent ranging from 1 to 1024 unit byte Return Value If the AT command is input in correct format the module...

Page 60: ...SE n CR Parameter n Link number ranging from 0 to 4 Return Value If n is illegal the module returns UDPCLOSE ERROR Otherwise the module returns UDPCLOSE n OK Example AT UDPCLOSE 1 UDPCLOSE 1 OK The TCP connection on link 1 is closed successfully AT UDPCLOSE 5 UDPCLOSE ERROR Link number error Remarks N A 9 11 Querying TCP UDP Link Status IPSTATUS Description To query the TCP UDP link status Format ...

Page 61: ... mode has been set up Remarks This command can be used to query the status of the link in transparent transmission mode 9 12 Querying the Status of Data Sent by the TCP Link TCPACK Description To query the size of data successfully sent by the TCP server and the size of the data successfully received Format AT TCPACK n CR AT TCPACK CR Parameter n Link number ranging from 0 to 4 Return Value AT TCP...

Page 62: ...K A UDP connection is set up on link 2 AT TCPACK TCPACK 1024 1024 1024 byte data is successfully sent and received in TCP transparent transmission mode AT TCPACK TCPACK DISCONNECT No link in transparent transmission mode has been set up AT TCPACK TCPACK NO TCP LINK A UDP link in transparent transmission mode has been set up Remarks The values of data_sent and acked_recv are unsigned 64 bit integer...

Page 63: ...pe m Received data type 0 Hexadecimal ASCII code 1 Char type Return Value See the Example Example AT DATAFORMAT 0 0 OK AT DATAFORMAT 1 0 OK AT DATAFORMAT DATAFORMAT 0 0 OK Remarks The transmitted received data is displayed in char type by default 9 15 Setting Data Receiving Mode TRANMODE Description To set the TCP UDP data receiving type Format AT TRANMODE mode CR Parameter mode 0 Original data wi...

Page 64: ...ing mode Format AT SETCLSMODE SocketID Mode CR Parameter SocketID Socket ID ranging from 0 to 4 Mode 0 Close in normal mode 1 Forced closing Return Value See the Example Example AT SETCLSMODE 1 1 OK The mode is set successfully Remarks This command should be executed after the AT TCPSETUP command has been executed 9 17 Setting Local TCP Port TCPLPORT Description Setting Local TCP Port TCPLPORT For...

Page 65: ...alue See the Example Example AT UDPLPORT 0 6800 OK Set the local port ID of link 0 to 6800 AT UDPLPORT 0 0 OK The local port ID of link 0 is allocated randomly Remarks This command should have been executed before the AT UDPSETUP command is executed If you do not use this command the local port ID will be allocated dynamically every time the UDP link is set up The local port ID setting will not be...

Page 66: ...ample AT TCPTRANS 220 199 66 56 6800 OK TCPTRANS OK A TCP transparent transmission link is set up successfully Remarks The UART does not display the data transmitted to the server after the transparent transmission TCP link is set up successfully Use to switch the server to the command mode and ATO to switch it to the data mode The module will exit from the transparent transmission link if a call ...

Page 67: ...4096 byte data can be sent or received in transparent transmission mode 9 22 Closing Transparent Transmission Link TRANSCLOSE Description To close the transparent transmission link Format AT TRANSCLOSE CR Parameter N A Return Value See the Example Example AT TRANSCLOSE TRANSCLOSE 0 OK Quit Transparent Success A TCP transparent transmission link is closed successfully AT TRANSCLOSE TRANSCLOSE 1 OK ...

Page 68: ...I code and the password cannot contain comma Return Value FTPLOGIN Error The format of the AT command is incorrect FTPLOGIN Have Logged In The user has logged in to the FTP server FTPLOGIN AT Busy Last FTP AT command has not been executed completely FTPLOGIN User logged in The user logged in to the FTP server successfully FTPLOGIN 530 Not logged in The user failed to log in to the FTP server becau...

Page 69: ...has not been executed completely FTPGET Error TimeOut Some failure is caused by download timeout timeout period is 30 seconds and the module does not receive data from the FTP server within 30 seconds FTPGET length data length indicates the data length data indicates the data content FTPGET OK total length is n The module reads data successfully and the data length is n FTP Server Data Link Discon...

Page 70: ...TPGET OK total length is n to ensure the reliability of data transmission Do not perform next FTP operation until FTPGET OK total length is n is displayed 11 4 Uploading Data from the FTP Server FTPPUT Description To upload data to the FTP server Format AT FTPPUT filename type mode size CR Parameter filename The name of the file to be uploaded type File transfer mode 1 ASCII 2 Binary mode Operatio...

Page 71: ...d the text txt file which is 1024 in length The transfer mode is ASCII mode and the operation mode is STOR AT FTPPUT test txt 1 2 1024 FTPPUT OK 1024 Upload the text txt file which is 1024 in length The transfer mode is ASCII mode and the operation mode is APPE AT FTPPUT test txt 1 3 0 FTPPUT Delete File OK Delete the test txt file Remarks N A 11 5 Querying FTP Link Status FTPSTATUS Description To...

Page 72: ... not in the listening status Connect AcceptSocket 1 ClientAddr 119 123 77 133 ClientPort 8000 Receive the connection request from the client AcceptSocket indicates the socket ID on the module and 119 123 77 133 is the IP address of the client Remarks Only the SIM cards with fixed IP addresses can be used as servers 12 2 Closing the Listening Link CLOSELISTEN Description To close the listening conn...

Page 73: ...he client is closed successfully AT CLOSECLIENT CLOSECLIENT transparent remote link closed The remote link is closed in transparent transmission mode Remarks N A 12 4 Receiving Data from the Client TCPRECV S Description To receive data from the client Format TCPRECV S n length data CR Parameter n Link number ranging from 0 to 4 length The length of the data received data The data received Add 0x0d...

Page 74: ...IENTSTATUS Description To query the status of the link with the client Format AT CLIENTSTATUS socket CR AT CLIENTSTATUS CR Parameter socket The value of AcceptSocket that is the socket of the module See the description of the AT TCPLISTEN command Return Value AT CLIENTSTATUS socket CR Non transparent transmission CLIENTSTATUS socket CONNECT or DISCONNECT TCP send buffer size CONNECT or DISCONNECT ...

Page 75: ...of Transparent Transmission TCPSRVTRANS Description To setting TCP listening for the server of transparent transmission Format AT TCPSRVTRANS port CR AT TCPSRVTRANS CR Parameter N A Return Value See the Example Example AT TCPSRVTRANS 6800 TCPSRVTRANS OK or TCPSRVTRANS bind error Listening port ID 6800 The listening function of the server in transparent transmission mode is started Failed to bind A...

Page 76: ...ocket that is set up between the client and the module The value ranges from 0 to 4 Return Value AT TCPACKS socket CR Non transparent transmission mode TCPACKS socket data_sent acked_recv data_sent The size of data that the module sent to the client successfully acked_recv The size of the data that the client received successfully TCPACKS socket DISCONNECT The link with the client has not been set...

Page 77: ...ra The value of url contains at most 128 bytes and url supports domain name translation The default port is 80 Return Value See the Example Example AT HTTPPARA url www neoway com cn en index aspx OK Set the Neoway homepage as the URL The URL supports domain name translation AT HTTPPARA url 121 15 200 97 Service1 asmx GetNote OK Set URL AT HTTPPARA port 80 OK Set the destination port ID to 80 AT HT...

Page 78: ...OST 99 OPEN_MODE user defined packet mode length The length of the POST content or user defined packet length maximum value 2048 This parameter must be set when you set mode to POST or OPEN_MODE Return Value See the Example Example AT HTTPPARA url www neoway com cn en index aspx OK AT HTTPSETUP OK AT HTTPACTION 0 OK HTTPRECV HTTP 1 1 200 OK Cache Control private Content Type text html charset utf ...

Page 79: ...Server Microsoft IIS 7 5 Set Cookie ASP NET_SessionId znt4fqabqsuclz55pvfufn55 path HttpOnly X AspNet Version 2 0 50727 X Powered By ASP NET X UA Compatible IE EmulateIE7 Date Thu 28 Nov 2013 03 32 35 GMT Connection close HTTPCLOSE HTTP Link Closed Set the destination path The default port is 80 Set up an HTTP link HEAD request The HTTP server responds AT HTTPPARA url 121 15 200 97 Service1 asmx G...

Page 80: ... and 0123456 The server disconnected with the module after it finished responding AT HTTPPARA url www neoway com cn en index aspx OK AT HTTPSETUP OK AT HTTPACTION 99 76 HEAD en index aspx HTTP 1 1 connection close HOST www neoway com cn OK HTTPRECV HTTP 1 1 200 OK Cache Control private Content Length 13842 Content Type text html charset utf 8 Server Microsoft IIS 7 5 Set Cookie ASP NET_SessionId p...

Page 81: ...TTPCLOSE command the HTTP link is closed and the setting of HTTPPARA is cleared 13 5 Receiving HTTP Data HTTPRECV Description To report the data received from the HTTP link Format CR LF HTTPRECV CR LF datas Parameter datas Data received through the HTTP link Return Value See the Example Example HTTPRECV HTTP 1 1 200 OK Cache Control private Content Length 13842 Content Type text html charset utf 8...

Page 82: ... 1 Setting Parameters for the SMTP Login Server SMTPSRV Description To set parameters of the SMTP server Format AT SMTPSRV addr port CR Parameter addr SMTP server address port Destination port ID In general the port ID of the POP3 server is 25 Return Value See the Example AT SMTPSRV smtp 163 com 25 OK AT SMTPSRV smtp qq com 25 OK Remarks N A 14 2 Setting SMTP Login Account SMTPAUTH Description To ...

Page 83: ...MTPFROM zhangyanun101 163 com Damon OK Remarks The content before in the sender email address must be the same as the login email account 14 4 Setting SMTP Receiving Parameters SMTPRCPT Description To set the SMTP receiving parameter Format AT SMTPRCPT receiver_type receiver_num receiver_addr receiver_name CR Parameter receiver_type 0 Receiver 1 Copy to 2 Bcc to receiver_num 0 9 receiver_type is 0...

Page 84: ...al times to add different types of recipients At most 10 primary recipients 0 to 9 At most 10 secondary recipients 0 to 9 At most 5 tertiary recipients 0 to 4 14 5 Entering an Email Subject SMTPSUB Description To enter the subject of an email Format AT SMTPSUB subject CR Parameter subject The maximum length of an email subject is 100 bytes Return Value See the Example Example AT SMTPSUB flower OK ...

Page 85: ...3 server Format AT POPSRV addr port CR Parameter addr POP3 server address port Destination port ID In general the port ID of the POP3 server is 110 Return Value See the Example Example AT POPSRV pop3 163 com 110 OK AT POPSRV pop qq com 110 OK Remarks Some email server supports POP rather than POP3 15 2 Using Account to Log In to the Emailbox POPAUTH Description To use an account to log in to the e...

Page 86: ...il server including all characters following OK num Total number of emails totalsize Total size of emails Example AT POPSTAT POPRECV 15 OK 36 327235 Remarks N A 15 4 Querying Specified Email Information POPLIST Description To query specified email information Format AT POPLIST num CR AT POPLIST CR Parameter num Numeric type email number Return Value POPRECV bytes OK num totalsize bytes The bytes s...

Page 87: ...14820 10 25609 11 18182 12 5780 13 3393 14 27736 15 17749 16 17750 17 23050 18 6172 19 5797 20 28983 21 4088 22 28545 23 26138 24 1332 25 1326 26 1333 27 1328 28 1330 29 10498 30 1328 31 1333 32 1331 33 1328 34 1330 35 4486 36 10496 Remarks N A 15 5 Marking an Email Deleted POPDELE Description To mark the email deleted ...

Page 88: ...ommand to cancel the marks 15 6 Cancelling All Deleting Marks POPRSET Description To cancel all deleting marks Format AT POPRSET CR Parameter N A Return Value See the Example Example AT POPRSET OK Remarks N A 15 7 Ending the Conversation POPQUIT Description To end a conversation Format AT POPQUIT CR Parameter N A Return Value See the Example Example AT POPQUIT OK POP POP Link Closed Remarks N A 15...

Page 89: ... 03 ejcp v14 HB patch with SMTP 12 Jun 2012 22 29 14 0900 X CM TRANSID UsCowECpsm83YNdPX_v8Ig 404S2 X Coremail Antispam 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU6OJeDUUUU Message Id 4FD76037 194D40 02028 m12 82 163 com Date Tue 12 Jun 2012 23 28 55 0800 CST From postmaster recro or kr POPRECV 3 Remarks N A 16 eCall Commands 16 1 Enabling D...

Page 90: ...RROR Example AT EMSDSET 0D0D0D OK AT EMSD 0 OK Remarks Refer to TS 26 267 maximum size of MSD is 140 bytes This command is sent before eCall is initiated 16 3 Initiating an eCall CECALL Description To trigger an eCall to the network Based on the configuration selected it can be used to either trigger a test call a reconfiguration call a manually initiated eCall or an automatically initiated eCall ...

Page 91: ...he Example Example AT EMSDPUSH OK Remarks IVS MSD and PSAP are defined in TS 26 267 16 5 eCall Indications Description The indications about eCall Format EMSDPULL PSAP start get pull data EMSDSYNC SYNC frame detected start sending MSD EMSDLACK link layer data transfer success only sent when lower layer transfer success EMSDHACK High layer data ack Will send to AP no matter MSD transfer success or ...

Page 92: ...PSAP please make sure that before PUSH MSD data is set ATH OK release call AT EMSD 0 OK Switch off DSP monitor mode Remarks N A 17 Recording Commands 17 1 Setting Buffer Mode for Recording RSMODE Description To set the buffer mode for the recording Format AT RSMODE val CR Parameter val 0 No buffer for recording output as a data block 1 Buffer for recording Return Value See the Example Example AT R...

Page 93: ...ng AT RECF 0 OK Stop recording Remarks The recording rate is 5 15 Kbit s and each block is completed in 6 seconds The recording format is amr All recording data is put together and then added the amr header AMR n 2321414D525C6E 17 3 Reading Recording Data RECR Description To read recording data in buffer mode Format AT RECR CR Parameter N A Return Value See the Example Example AT RECR Recpack 0 20...

Page 94: ...ystem 18 2 Calculating CRC32 Verification Value CALCRC32 Description To calculate the verification value of the CRC32 Format AT CALCRC32 length CR Parameter length The length of the data to be calculated Return Value CALCRC32 str Example AT CALCRC32 6 313233343536 CALCRC32 398f3fd4 Remarks The data is entered in hexadecimal system and the return character string is 8 bytes in hexadecimal system 18...

Page 95: ...ID hexadecimal BSIC Base station ID hexadecimal RxLev Signal strength of the base station expressed by 1 to 64 ENDED End symbol 0 indicates there is more base station information 1 indicates that this is the last line of the base station information Example AT POSI 1 POSI 1 460 00 27A8 EA7 1D 7 1 OK Remarks If no cell is found the module returns OK If there are multiple pieces of base station info...

Page 96: ...OK AT EXTRARING EXTRARING 1 OK Query the set parameter Allow additional RING pulse output The module returns OK Remarks The setting of the n parameter will not be saved after the module powers off Its value is 0 by default and there are relevant RING pulses only when a call or SMS message is coming When the value is set to 1 The RING pin outputs 100 ms low pulses when a call is not answered or end...

Page 97: ...50 ms for incoming SMS message 600 ms and extra pulse 100 ms 18 8 Configuring the Pin Mode of Flow Control by Hardware for UART1 FCHW Description To configure the pin mode of flow control by hardware for UART1 Format AT FCHW n CR AT FCHW CR Parameter n 0 Configure it to the U2RXD and U2TXD mode 1 Configure it to U1RTS and U1CTS mode default Return Value See the Example Example AT FCHW 1 OK The set...

Page 98: ... OK AT OFFTIME OFFTIME 50 OK Query the set parameter The module returns OK Remarks For the poweroff procedure of the ON PFF pin see the Hardware User Guide The default offtime is 250 ms 18 10 Setting Mode and Volume of the Incoming Ring RINGOUT Description To set the mode and volume of the incoming ring Format AT RINGOUT value level CR AT RINGOUT CR AT RINGOUT CR Parameter value 0 No ring 1 Earpho...

Page 99: ...after the module is powered off 18 12 Inputting Broadcasting Content Through AT TTSPLAY Description To input text for voice broadcast through AT commands Format AT TTSPLAY n CR Parameter n The length of the content to be input 0 to 140 Return Value If the AT command is input in correct format the module returns If the command is input in incorrect format the module returns TTSPLAYERROR You can inp...

Page 100: ... finished 18 13 Configuring Parameters of Voice Broadcast TTSCFG Description To set the volume speaking speed and tone of the voice broadcast Format AT TTSCFG CR AT TTSCFG volume speed pitch CR AT TTSCFG CR Parameter volume Ranges 0 to 6 speed Broadcast speed ranging from 0 to 6 pitch Broadcast tone ranging from 0 to 6 Return Value See the Example Example AT TTSCFG 1 3 2 OK Set the volume to 1 spe...

Page 101: ...After this command is sent and the return code is displayed other return codes including EIND 128 will be displayed 18 15 Shutting Down the Module CPWROFF Description To shut down the module Format AT CPWROFF CR Parameter N A Return Value See the Example Example AT CPWROFF OK The module is off after returning OK Remarks Before sending AT CPWROFF leave the ON OFF pin blank or pull its level high Af...

Page 102: ...bits add F if the bits are not sufficient in the recipient number For example 13421839693 should be 3124819396F3 after conversion 7 0008 8 The hexadecimal length of the SMS message content For example the UCS2 code of hello is 00080A00680065006C006C006F that is 10 bits and the hexadecimal length is 0A 9 Message content for example the USC2 code of hello is 00080A00680065006C006C006F One PDU messag...

Page 103: ...ssage whose SMSC address length is 0 0001000B813124819396F300080A00680065006C006C006F Wherein 00 SMSC address information length 0100 0B the length of the recipient number 81 Receiving mode 3124819396F3 The number of recipient 0008 0A The length of the content 00680065006C006C006F SMS message content SMS message content hello The SMS message content starts from 0100 so the value of LENGTH in AT CM...

Page 104: ...text mode AT CMGF 1 OK Configure the TE character set AT CSCS GSM OK Send an SMS message AT CMGS 13430981508 Content of the message to be sent Shenzhen Neoway Technology Return value CMGS 116 OK End Enter Shenzhen Neoway Technology and press Ctrl Z character 0x1A to send the message Press Enter to send the SMS message When the symbol is displayed you can send the message Successful ...

Page 105: ...DU mode AT CMGF 0 OK Configure TE character set AT CSCS UCS2 OK Send an SMS message AT CMGS 23 CR Content of the message to be sent 0891683110808805F001000B813124819396F3 00080A00680065006C006C006F Return value CMGS 117 OK End Input message content which is encoded in PDU mode and sent by pressing Ctrl Z 0X1A The length of the SMS message is 23 bytes in PDU mode Successfully ...

Page 106: ...ting that it registered the network Set up a PPP link Query the PPP link status XIIC 1 10 232 165 29 indicates that the link is set up successfully XIIC 0 0 0 0 0 indicates the PPP link has not been set up A PPP link is set up successfully Startup code Send AT r ERROR Send AT CCID r Return ICCID ERROR No signal Test AT commands Query the ICCID of the SIM card ERROR indicates no SIM card If the mod...

Page 107: ...end more data AT TCPCLOSE 0 r Return TCPCLOSE 0 OK End If socket 0 has been opened close it first Use socket 0 to set up a TCP link The server IP address is 220 199 66 56 and the port ID is 6800 Query socket 0 link IPSTATUS 0 CONNECT TCP 4096 Indicates the TCP link is set up successfully Socket 0 sends 10 byte data 0123456789 r 1 When the module returns send data to the UART 2 The data should end ...

Page 108: ... card is inserted or the card socket works properly 1 Power on the module 2 EIND 1 indicates that the module is ready OK There is signal Not registered CREG 0 1 CREG 0 5 Send AT CMGF 1 r Send AT CSCS GSM r Send AT CNMI 2 1 0 0 0 r OK ERROR Return ERROR Return ERROR OK OK Waiting for new messages 7 Set the SMS mode Note AT CMGF 1 indicates the text mode AT CMGF 0 indicates the PDU mode 8 Set the TE...

Page 109: ...et to AT CNMI 2 2 0 0 0 for example CMT 8615013473810 2012 09 15 15 20 32 32 Neoway Technology the message is directly displayed and you do not have to run the next command 10 Relevant functions have been configured Wait for SMS message reminder Send AT CMGR index r Read messages successfully End Failed to read the message 12 Determine the value of index SMS message SN based on the SMS indication ...

Page 110: ...eturn OK There is signal Not register the netwrok Register the netwrok Send AT CMGF 1 r Send AT CSCS GSM r Return OK Return ERROR Return ERROR Return OK Send a text message 7 Set the SMS mode Note AT CMGF 1 indicates the text mode AT CMGF 0 indicates the PDU mode 8 Set the TE character set Note Select a format for the sent content For details see the command set In general set it to GSM for text f...

Page 111: ...nzhen CMGS 232 OK Enter the AT CMGS 13430981508 command and press Enter r When is displayed enter the message content Shenzhen and press Ctrl Z character 0x1A to sent the message Notice mode of new messages AT CNMI 2 1 0 0 0 AT CNMI 2 1 0 0 0 Received SMS message and message SN CMTI SM 1 The default value of CNNI is 1 0 0 0 0 The module can only store the SMS messages on the SIM card so you must s...

Page 112: ...read messages after all messages are listed Delete SMS messages AT CMGD n AT CMGD 1 OK Delete SMS messages based on the sequence number Delete all messages AT CMGD 0 4 AT CMGD 0 4 OK Delete SMS messages as required For details see the AT commands Query the number of SMS messages AT CPMS AT CPMS CPMS SM 1 50 SM_P 1 50 SM_P 1 50 OK 1 Indicates the number of the messages 50 indicates the number of me...

Page 113: ... check whether the SIM card is inserted or the card socket works properly 5 Query the signal quallity 6 Query the network registration status If the module returns CREG 0 1 or CREG 0 5 the SIM card registers the network successfully 7 CMNET is the APN of China Mobile APN varies with carriers 8 Set up a PPP link 9 Return value XIIC 1 10 232 165 29 indicates the module sets up a PPP link successfull...

Page 114: ...GIN Have Logged In You have logged in to the FTP server π FTPLOGIN User logged in You log in to the FTP server successfully π If you failed to log in to the FTP server check whether the parameters are set correctly 11 Query the FTP status Optional The IP and port of the FTP server will be returned FTPSTATUS 1 119 139 221 66 21 12 Upload or download data 13 Exit from the FTP server Failed to log in...

Reviews: