Neoway M660 At Command Manual

Neoway M660 At Command Manual

At command set
Hide thumbs Also See for M660:
Table of Contents

Advertisement

Quick Links

Neo_M660
AT Command Set
Version 3.7
Neoway Technology Co., Ltd.
Let's enjoy the wireless life

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the M660 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Neoway M660

  • Page 1 Neo_M660 AT Command Set Version 3.7 Neoway Technology Co., Ltd. Let's enjoy the wireless life...
  • Page 2 Shenzhen Neoway provides customers complete technical support. If you have any question, please contact your account manager or email to the following email addresses: Sales@neoway.com.cn...
  • Page 3  Added the AT+CNUM command to obtain my number and added the following commands: AT+POPSRV, AT+POPAUTH, AT+POPSTAT, AT+POPRSET, AT+POPDELE, AT+POPLIST, AT+POPRETR, and AT+POPQUIT.  V3.7 Added eCall commands: AT%EMSD, AT%EMSDSET, 2013-12-24 AT+CECALL, AT%EMSDPUSH, etc. Copyright © Neoway Technology Co., Ltd...
  • Page 4: Table Of Contents

    4.7 Sending DTMF Tone: +VTS ........................20 4.8 Auto-Answer:ATS0 ............................ 20 4.9 Handfree Switch: +HANDFREE ....................... 21 4.10 Starting the DTMF Detection: +DTMFDETECT ..................22 4.11 Setting Echo Suppression Level in the Earphone Mode: +ESL ............... 22 Copyright © Neoway Technology Co., Ltd...
  • Page 5 8.4 Switching Command Mode to Data Mode: ATO ..................47 9 TCP/UDP Data Service ......................47 9.1 Setting Network APN: +NETAPN ......................47 9.2 Setting Up a PPP Link: +XIIC ........................48 9.3 Setting Up TCP Connection: +TCPSETUP ....................49 Copyright © Neoway Technology Co., Ltd...
  • Page 6 12.9 Querying the Status of Data Sent by the TCP Server: +TCPACKS ............68 13 HTTP Commands ......................... 69 13.1 Setting HTTP Parameters: +HTTPPARA ....................69 13.2 Setting Up HTTP Link: +HTTPSETUP ....................69 13.3 Executing HTTP Request: +HTTPACTION .................... 70 Copyright © Neoway Technology Co., Ltd...
  • Page 7 18.6 Setting Extra RING Pulses: +EXTRARING .................... 88 18.7 Setting the Width of the RING Pulse: +RINGTIME ................88 18.8 Configuring the Pin Mode of Flow Control by Hardware for UART1: +FCHW ........89 Copyright © Neoway Technology Co., Ltd...
  • Page 8 A.5 Flowchart of Receiving SMS Messages ....................100 A.6 Flowchart of Sending SMS Messages ..................... 102 A.7 Common AT Commands for SMS TX/RX ....................103 A.8 Flowchart of AT Commands To Log In to the FTP Server ..............105 Copyright © Neoway Technology Co., Ltd...
  • Page 9: Boot Log Instruction

    UART1 does not display information of 2 and +EIND: 2 The phonebook is available. +EIND: 1 SMS is available. Remarks Users can determine whether the module starts up successfully or not by detecting "+EIND:1". Copyright © Neoway Technology Co., Ltd...
  • Page 10: General Commands

    Description To query the module model Format AT+CGMM<CR> Parameter Return <CR><LF><model><CR><LF> Value <CR><LF>OK<CR><LF> <CR><LF>+CME ERROR:<err><CR><LF> Example AT+CGMM +CGMM: M660 Remarks 1.3 Querying the Version: +CGMR Description To query the software version Format AT+CGMR<CR> Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 11: Querying Imei: +Cgsn

    The IMEI is a character string of 15 digits. Remarks 1.5 Querying the IMSI: +CIMI Description To query the international mobile subscriber identification (IMSI) Format AT+CIMI<CR> Parameter Return <CR><LF><IMSI><CR><LF> Value <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Example AT+CIMI 460022201575463 Copyright © Neoway Technology Co., Ltd...
  • Page 12: Obtaining The Iccid Of The Sim Card: +Ccid

    3: ringing. There is an incoming call and the module is ringing. The module can execute AT commands. 4: call in progress. A call is going on and the module can execute AT commands. 5: asleep. The module is in the sleep mode and not prepared. Return <CR><LF>+CPAS: <pas><CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 13: Querying The Network Registration Status: +Creg

    2: Unregistered. The device is searching for base stations. 3: The registration is rejected. 4. Unknown code 5: Registered, roaming <lac>: string type; two-byte location area code in hexadecimal format <ci>: string type; two-byte cell ID in hexadecimal format Copyright © Neoway Technology Co., Ltd...
  • Page 14: Setting Module Functions: +Cfun

    1: Reset the MT before setting it to <fun> power level Return <CR><LF>+CFUN: (list of supported <fun>s), (list of supported <rst>s) <CR><LF> Value <CR><LF>OK<CR><LF> <CR><LF>+CME ERROR: <err><CR><LF> Example AT+CFUN=1 AT+CFUN=? +CFUN: (list of supported <fun>s), (list of supported <rst>s) +CFUN: (0,1,4),(0,1) Copyright © Neoway Technology Co., Ltd...
  • Page 15: Enabling Or Disabling The Sleep Mode: +Enpwrsave

    TZ: Two digits, indicating the time lag between the local time and the GMT time. This information is optional because it can be displayed only when the network supports it. Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 16: Setting The Baudrate Of The Module: +Ipr

    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 Codes: +CPIN Description To query the PIN status and enter the PIN codes Format  AT+CPIN=<pin>[,<newpin>]<CR>  AT+CPIN?<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 17: Enabling Pin And Querying Mt And Network Device: +Clck

    "AC": All incoming barring services "FD": SIM fixed dialing memory feature "PS": PH-SIM (lock Phone to SIM card) "PN": Network authentication "PU": Network subsystem authentication PP: Service provider authentication "PC": Corporate authentication <mode>: 0: Unlock 1: Lock Copyright © Neoway Technology Co., Ltd...
  • Page 18: Modifying The Password Of The Pin: +Cpwd

    To modify the password of the lock function of the module Format AT+CPWD=<fac>,<oldpwd>,<newpwd><CR> Parameter <fac>: "P2": SIM PIN2 "OI": Outgoing international calls "AI": All incoming calls "IR": Incoming calls when roaming outside the homing place "SC": SIM card Copyright © Neoway Technology Co., Ltd...
  • Page 19: Extended Error Report: +Ceer

    Failure of the latest call (initiate or answer) or modification during the call Release of the latest call The latest GPRS attach failure or PDP context activation The latest GPRS detach or PDP context deactivation Copyright © Neoway Technology Co., Ltd...
  • Page 20: Setting Error Information: +Cmee

    2: Flash and blink. Flash every 250 ms for the GPRS data service and blink every second in other normal situations. 3: Being on after the GPRS data service is connected and blink every second in other situations. Copyright © Neoway Technology Co., Ltd...
  • Page 21: Enabling The Hardware Or Software Flow Control Function

    Disable the flow control function. Remarks  You must configure the U1RTS and U1CTS pins before enabling the hardware flow control. For details, see the AT+FCHW command.  This command supports only the (n1, n2) parameter combination: (0,0);(1,1);(2,2). Copyright © Neoway Technology Co., Ltd...
  • Page 22: Enabling & Disabling The Terminal Display: Ate1/Ate0

    < signal > The following table shows the relationship between the signal and the RSSI. signal rssi <4 or 99 <-107 dBm or unknown <10 <-93dBm <16 <-71 dBm <22 <-69dBm <28 <-57dBm >=28 >=-57 dBm Copyright © Neoway Technology Co., Ltd...
  • Page 23: Selecting And Registering A Gsm Network: +Cops

    <AcT>: Indicates the radio access technology and its value can be 0, 1, and 2. 0: GSM 1: GSM compact 2: UTRAN Return <stat>: Value 0: Unknown network 1: Available network 2: Current network 3: Forbidden network Example AT+COPS=0,0 Copyright © Neoway Technology Co., Ltd...
  • Page 24: Calling Control Commands

    To set the level of the speaker volume, which is valid before a call or during a call Format  AT+CLVL=<level><CR>  AT+CLVL?<CR>  AT+CLVL=?<CR> Parameter <level>:Integers, ranging from 0 to 6 Return See the Example. Value Example AT+CLVL=4 Copyright © Neoway Technology Co., Ltd...
  • Page 25: Mute Control: +Cmut

    To initialize a data, fax, or voice link For a voice link, the dialing string consists of numbers and modifiers and must end with a semicolon. Format  ATD<dial string><CR>  ATD><n><CR> Parameter <dial string>: Phone number Copyright © Neoway Technology Co., Ltd...
  • Page 26: Call Answering: Ata

    Connected with data bit rate of 28800 bits/s Remarks 4.4 Call Answering: ATA Description To answer the call and establish a call connection The return codes containing RING or +CRING indicate an incoming call. Copyright © Neoway Technology Co., Ltd...
  • Page 27: Hanging Up Calls: Ath

    To hang up all call links Format ATH<CR> Parameter Return <CR><LF>SPEECH OFF<CR><LF> Value <CR><LF>RELEASE<CR><LF> <CR><LF>OK<CR><LF> Example SPEECH OFF RELEASE Remarks 4.6 Caller ID: CLIP Description To enable or disable caller ID Format  AT+CLIP=<n> <CR>  AT+CLIP?<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 28: Sending Dtmf Tone: +Vts

    A single ASCII character in the set .0-9, #, *, A-D. Return See the Example. Value Example AT+VTS=? +VTS: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,#,* Remarks 4.8 Auto-Answer: ATS0 Description To control the auto-answer mode of the module Format  ATS0=<value><CR> Copyright © Neoway Technology Co., Ltd...
  • Page 29: Handfree Switch: +Handfree

    Set to the handfree mode. AT+HANDFREE? The current mode is receiver mode. +HANDFREE:0 Remarks It is recommended that you use the AT+AUDIN and AT+AUDOUT commands to switch the voice input/output channels. For details, see the command description. Copyright © Neoway Technology Co., Ltd...
  • Page 30: Starting The Dtmf Detection: +Dtmfdetect

    To set the level of the echo suppression level in the earphone mode Format  AT+ESL=<value><CR>  AT+ESL?<CR>  AT+ESL=?<CR> Parameter <value>: Integers, ranging from 0 to 6 Return See the Example. Value Example AT+ESL? Query the current echo suppression level. +ESL:2 Copyright © Neoway Technology Co., Ltd...
  • Page 31: Setting Echo Suppression Level In The Receiver Mode: +Hesl

    The setting of this command is saved after the module is powered off. 4.13 Setting Echo Suppression Level of the Loud Speaker Mode: +LESL Description To set the level of the echo suppression level in the loud speaker mode Format  AT+LESL=<value><CR>  AT+LESL?<CR>  AT+LESL=?<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 32: Mic Volume Control: +Micl

    The setting of this command is not saved after the module is powered off. 4.15 Switching the Audio Input Channel: +AUDIN Description To switch the audio input channel before and in a call Format  AT+AUDIN=<n><CR>  AT+AUDIN?<CR>  AT+AUDIN=?<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 33: Switching The Audio Output Channel: +Audin

    2: Set to earphone output Return See the Example. Value Example AT+AUDOUT=0 Set to receiver output. AT+AUDOUT? Query the current audio output channel +AUDOUT: 0 AT+AUDOUT=? Query the range of the command parameter. +AUDOUT: (0-2) Copyright © Neoway Technology Co., Ltd...
  • Page 34: Sms Commands

    5.2 Setting Preferred SMS Storage: +CPMS Description To set preferred SMS storage Format  AT+CPMS=<mem1><CR>  AT+CPMS?<CR> Parameter <mem1>: String type, for example, "SM", "ME", "MT" <used>: Used quantity <total>: Total capacity of the storage Return <CR><LF>+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3> <CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 35: Setting Sms Inputting Mode: +Cmgf

    5.3 Setting SMS Inputting Mode: +CMGF Description To set the SMS inputting mode Format AT+CMGF=[<mode>]<CR> AT+CMGF?<CR> Parameter <mode>: 0: PDU mode 1: Text mode Return See the Example. Value Example AT+CMGF=1 AT+CMGF? +CMGF: 1 Copyright © Neoway Technology Co., Ltd...
  • Page 36: Setting The Te Character Set: +Cscs

    +CSCS: (list of supported <chset>s) "8859-1", "UCS2", "UCS2_0X81") Remarks 5.5 Setting the SMS Instruction Mode: +CNMI Description To set the mode how the module informs users of new SMS messages received from the network Format  AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 37 TE. The module will return OK before transmitting the codes. 1: When <mode> is set to 1 or 2, the codes defined by this command and stored in TA will be cleared. Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 38: Reading Sms Messages: +Cmgr

    <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>] <CR><LF><data> if text mode (+CMGF=1), command successful and SMS-SUBMIT: +CMGR: <stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>], <sca>,<tosca>,<length>] <CR><LF><data> if text mode (+CMGF=1),command successful and SMS-STATUS-REPORT: +CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> if text mode (+CMGF=1), command successful and SMS-COMMAND: +CMGR: <stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><CR><LF><cdata>] Copyright © Neoway Technology Co., Ltd...
  • Page 39: Sms Message List: +Cmgl

    1: Read SMS messages received  2: Stored unsent SMS messages  3: Stored sent SMS messages  "ALL": All SMS messages Return if text mode (+CMGF=1),command successful and SMS-SUBMITs and/or Value SMS-DELIVERs: +CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> <data>[<CR><LF> +CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 40 PDU mode (+CMGF=0) and command successful: +CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu> [<CR><LF> +CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>[...]] Example AT+CMGL="ALL" +CMGL: 1,"REC READ","66421","","2011/09/13 16:37:59+32" 050003140401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596 D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA 6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD EC627E8E9441BD42655DEF446 +CMGL: 14,"STO SENT","66045","", 050003010401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596 D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA 6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD EC627E8E9441BD42655DEF446 +CMGL: 44,"REC UNREAD","8615719556937","","2011/09/30 03:00:55+32" 5E7F4E1C79FB52A863D0919260A8003A4E2D536B75286237003100350037003100390 035003500360039003300377ED960A86765753500326B21002C6700540E4E006B21572 800320039002F00300039002000320030003A00340038002C60A853EF6309901A8BDD 952E621690099879952E76F463A556DE62E8 AT+CMGL=? Copyright © Neoway Technology Co., Ltd...
  • Page 41: Sending Sms Messages: +Cmgs

    If you use UART debugging tool to sent PDU SMS message, enter \r behind the AT+CMGS command manually or send <CR> in hexadecimal system.  For details about PDU, see the A.1 Content of PDU SMS Messages. Copyright © Neoway Technology Co., Ltd...
  • Page 42: Writing Sms Messages: +Cmgr

    To send an SMS message specified by <index> in the memory (SMS-SUBMIT) The network returns reference value <mr> to the end device after the SMS message is sent successfully. Format AT+CMSS=<index>[,<da>[,<toda>]]<CR> Parameter <index>: Message location Copyright © Neoway Technology Co., Ltd...
  • Page 43: Deleting Sms Messages: +Cmgd

    +CMGD:(list of supported <index>s) +CMGD: (1-50), (0-4) [,(list of supported <delflag>s)] Remarks If you set <delflag>, ignor the parameter <index>. 5.12 Setting the SMS Center Number: +CSCA Description To set the SMS center number Copyright © Neoway Technology Co., Ltd...
  • Page 44: Setting The Parameters Of The Text Mode: +Csmp

    Validity Period 0-143 (vp+1)*5mins 144-167 12hours +((vp–143)*30mins) 168-196 (vp–166)*1day 197-255 (vp–192)*1week <pid>: Integer-type TP-protocol-ID (default value: 0) <dcs>: Encoding plan for integer-type cell broadcast data (default value: 0) Return See the Example. Value Example AT+CSMP=17,167,0,0 Copyright © Neoway Technology Co., Ltd...
  • Page 45: Displaying The Parameters Of The Text Mode: +Csdh

    04","","09/07/17,14:49:00+50"7B5675655FAE5C0 F65F65019 AT+CSDH=1 AT+CMGR=14 +CMGR: "REC READ","+86134309815 04","","09/07/17,14:49:00+50",145,4,0,8,"+8613800 755500",145,127B5675655FAE5C0F65F65019 AT+CSDH? +CSDH: 0 Remarks 5.15 Selecting the Type of Cell Broadcast Messages: +CSCB Description To set the cell broadcast message (CBM) type the ME receives Copyright © Neoway Technology Co., Ltd...
  • Page 46: Phonebook Commands

    "MC": MT missed calls list "RC": MT received calls list "DC": MT dialled calls list "FD": SIM/USIM fixdialling-phonebook "ON": SIM own numbers (MSISDNs) list Return <CR><LF>+CPBS: <storage>[,<used>,<total>] <CR><LF> Value <CR><LF> OK<CR><LF> <used> Used count Copyright © Neoway Technology Co., Ltd...
  • Page 47: Reading The Phonebook: +Cpbr

    <tlength>: Integer type value indicating the maximum length of field <text> <hidden>: Indicates if the entry is hidden or not 0: phonebook entry, not hidden 1: phonebook entry, hidden Example AT+CPBR=1,3 +CPBR: 1, "091137880", 129, "Comneon" Copyright © Neoway Technology Co., Ltd...
  • Page 48: Querying The Phonebook: +Cpbf

    <number>: string type phone number of format <type> <type>: type of address <text>: the phone book entry name, string type field of maximum length <tlength>; character set as specified by command Select TE Character Set +CSCS.UCS2", and "IRA" Copyright © Neoway Technology Co., Ltd...
  • Page 49: Reading My Number: +Cnum

    7 Supplementary Service Commands 7.1 Call Forwarding: +CCFC Description To set the call forwarding conditions and number Format  AT+CCFC=<reason>,<mode>[,<number>[,<type>[,<class>[,<subaddr>[,<satype>[,<tim e>]]]]]]<CR>  AT+CCFC=?<CR> Parameter <reason>: 0: Unconditional 1: Mobile number is busy 2: No reply 3: Unreachable Copyright © Neoway Technology Co., Ltd...
  • Page 50 <status>: 0: not active 1: active Return when <mode>=2 and command successful: Value +CCFC: <status>,<class1>[,<number>,<type>[,<subaddr>,<satype>[,<time>]]][ <CR><LF>+CCFC: <status>,<class2>[,<number>,<type>[,<subaddr>,<satype>[, <time>]]][...]] Example AT+CCFC=0,1,"123456" AT+CCFC=? +CCFC: (list of supported <reason>s) +CCFC: (0-5) Remarks Call-related supplementary services are required. Copyright © Neoway Technology Co., Ltd...
  • Page 51: Call Waiting: +Ccwa

    <type>: type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7) Return when <mode>=2 and command successful Value +CCWA: <status>,<class1>[<CR><LF>+CCWA: <status>,<class2>[...]] Example AT+CCWA=1,1 AT+CCWA=? +CCWA: (list of supported <n>s) +CCWA: (0-1) AT+CCWA? +CCWA: <n> +CCWA: 0 Remarks Call-related supplementary services are required. Copyright © Neoway Technology Co., Ltd...
  • Page 52: Call Holding And Multi-Party Conversation: +Chld

    The parameter is local to the TE-MT interface and is used in other PDP context-related commands. The range of permitted values (minimum value = 1) is returned by the test form of the command. Copyright © Neoway Technology Co., Ltd...
  • Page 53 (list of supported <d_comp>s), (list of supported <h_comp>s)[,(list of supported <pd1>s)[,…[,(list of supported <pdN>s)]]][<CR><LF><CR><LF> +CGDCONT: (range of supported <cid>s), <PDP_type>,,,(list of supported <d_comp>s),(list of supported <h_comp>s)[,(list of supported <pd1>s) [,…[,(list of supported <pdN>s)]]][...]] Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 54: Sending Ussd Data: +Cusd

    4: operation not supported 5: network response times out Return See the Example. Value Example AT+CUSD=1,”*100#”,15 +CUSD: 1,"0031795D798F4E0B8F7D000A00325F694FE18D3A5 361000A0033665A95F465B095FB000A003480A179686 7E58BE2000A003586816BD2000A003675377F5153CB5 F008F665E26597953BB65C56E38000A00378BDD8D39 67E58BE2000A00387FFB9875", 72 AT+CUSD=? +CUSD: (list of supported <n>s) +CUSD: (0-2) AT+CUSD? +CUSD: <m> +CUSD: 0 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 55: Switching Data Mode To Command Mode

    This command is used to switch the command mode to the data mode for dial-up connection through external protocol stack and transparent transmission through internal protocol stack. 9 TCP/UDP Data Service 9.1 Setting Network APN: +NETAPN Description To set the network APN Copyright © Neoway Technology Co., Ltd...
  • Page 56: Setting Up A Ppp Link: +Xiic

    PPP link. You can use AT+GREG? to check whether the module has registered the network or not. If +CREG: 0,1 or +CREG: 0,5 is returned, the module has registered the network. Copyright © Neoway Technology Co., Ltd...
  • Page 57: Setting Up Tcp Connection: +Tcpsetup

    4097-byte data fails to be sent on link 0 because data length exceeds the limit. +TCPSEND: DATA LENGTH ERROR Remarks  Ensure that the TCP link has been set up before sending TCP data. Copyright © Neoway Technology Co., Ltd...
  • Page 58: Receiving Tcp Data: +Tcprecv

    The TCP connection on link 1 is closed successfully. +TCPCLOSE: 1,OK AT+TCPCLOSE=5 Link number error +TCPCLOSE: ERROR The TCP link is disconnected. +TCPCLOSE:0,Link Closed Remarks 9.7 Setting Up UDP Connection: +UDPSETUP Description To set up a UDP link Copyright © Neoway Technology Co., Ltd...
  • Page 59: Sending Udp Data: +Udpsend

    Example AT+UDPSEND=0,2 Send 2-byte data on link 0. Then send the characters to be sent 50 ms to 100 ms >11 after the module returns >. The UDP data is sent successfully. +UDPSEND:0,2 Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 60: Receiving Udp Data: +Udprecv

    +IPSTATUS:<n>,<CONNECT or DISCONNECT>,<TCP or UDP>, <send-buffer-size> <CONNECT or DISCONNECT>: Link status, value: CONNECT or DISCONNECT <TCP or UDP>: Link type, value: TCP or UDP <send-buffer-size>: The size of the available send buffer on the module, in decimal Copyright © Neoway Technology Co., Ltd...
  • Page 61: Querying The Status Of Data Sent By The Tcp Link: +Tcpack

    AT+TCPACK<CR> (Transparent transmission) +TCPACK:<data_sent>,<acked_recv> < data_sent >: Data transparently transmitted through this link successfully <acked_recv>: Transparently transmitted data acknowledged by the receiver +TCPACK:< DISCONNECT > No link in transparent transmission mode has been set up. Copyright © Neoway Technology Co., Ltd...
  • Page 62: Setting Data Receiving Type: +Ascii

    9.13 Setting Data Receiving Type: +ASCII Description To set the TCP/UDP data receiving type Format  AT+ASCII=<n><CR>  AT+ASCII?<CR> Parameter <n>: 0: Hexadecimal ASCII code 1: Char type Return See the Example. Value Example AT+ASCII=0 AT+ASCII=1 AT+ASCII? +ASCII: 0 Copyright © Neoway Technology Co., Ltd...
  • Page 63: Setting Data Tx/Rx Type: +Dataformat

    <mode>: 0: Original data without header, that is, transparent receiving mode 1: Data with header, that is, non-transparent receiving mode Return See the Example. Value Example AT+TRANMODE=1 Set the receiving mode with data header Copyright © Neoway Technology Co., Ltd...
  • Page 64: Setting Link Closing Mode: +Setclsmode

    <socket>: Socket ID, ranging from 0 to 4 <port>: Port ID, ranging from 0, 4097 to 32767 Return See the Example. Value Example AT+TCPLPORT=0,6800 Set the local port ID of link 0 to 6800. Copyright © Neoway Technology Co., Ltd...
  • Page 65: Setting Local Udp Port: +Udplport

     AT+SSTP=?<CR> (Query the range of the timeout parameter) Parameter <n>: The timeout period, ranging from 8 to 30, unit: s Return +SSTP ERROR: INVALID VALUE (The parameter value exceeds the allowed range.) Value Copyright © Neoway Technology Co., Ltd...
  • Page 66: Transparently Transmitting Tcp Data: +Tcptrans

    9.21 Transparently Transmitting UDP Data: +UDPTRANS Description To transparently transmit UDP data Format AT+UDPTRANS=<ip>,<port><CR> Parameter <ip>: Destination IP address, in xx.xx.xx.xx format <port>: Destination port ID in decimal ASCII code Return See the Example. Copyright © Neoway Technology Co., Ltd...
  • Page 67: Closing Transparent Transmission Link: +Transclose

    10 DNS Command 10.1 Querying the IP Address: +DNS Description To query the IP address Format AT+DNS=<string><CR> Parameter <string>: The website URL to be queried, in form of www.xxxx.com Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 68: Ftp At Commands

    You can read or write data on the FTP server only after you logged in to the FTP server. 11.2 Logging Out from the FTP Server: +FTPLOGOUT Description To log out from the FTP server Format AT+FTPLOGOUT<CR> Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 69: Downloading Data From The Ftp Server: +Ftpget

    AT+FTPGET=,1,2 Obtain information in the root +FTPGET:446,drw-rw-rw- 1 user group 0 Apr 14 15:55 . directory. drw-rw-rw- 1 user group 0 Apr 14 15:55 .. -rw-rw-rw- 1 user group 1238528 Jan 14 10:36 1M.doc Copyright © Neoway Technology Co., Ltd...
  • Page 70: Uploading Data From The Ftp Server: +Ftpput

    2: APPE mode. Create a file on the FTP server and write the data to the file. If the file exists, the data is attached to the end of the file. 3: DELE mode. Delete a file. <size>: Data length. The data length cannot exceeds 1024. Copyright © Neoway Technology Co., Ltd...
  • Page 71: Querying Ftp Link Status: +Ftpstatus

    <port>: The port of the FTP server Example AT+FTPSTATUS +FTPSTATUS:1,119.139.221.66,21 Remarks 12 TCP Server AT Commands 12.1 Setting TCP Listening for the Server: +TCPLISTEN Description To set the TCP listening function of the server Copyright © Neoway Technology Co., Ltd...
  • Page 72: Closing The Listening Link: +Closelisten

    Abnormalities might occur on the network. AT+CLOSELISTEN +CLOSELISTEN:0,local link closed The local link will be closed if there is any link to the client. AT+CLOSELISTEN +CLOSELISTEN:Transparent local This message is displayed in transparent link closed transmission mode. Copyright © Neoway Technology Co., Ltd...
  • Page 73: Closing Connections Of The Client: +Closeclient

    See the Example. Value Example +TCPRECV(S):1,10,1234567899 Remarks  Additional (s) makes this command different from the receive mode of the client mode in format.  The parameters are different from those of the client mode. Copyright © Neoway Technology Co., Ltd...
  • Page 74: Sending Data To The Client: +Tcpsends

    <send-buffer-size>: The size of the available send buffer on the module, in decimal ASCII mode, unit: byte Example A TCP link has been set up with the AT+CLIENTSTATUS=0 socket 0 client and the buffer size is 1024 +CLIENTSTATUS:0,CONNECT,TCP,1024 bytes. Copyright © Neoway Technology Co., Ltd...
  • Page 75: Obtaining The Local Ip Address: +Getip

    AT+TCPSRVTRANS? Query the listening status. Here the server is in the listening status. + TCPSRVTRANS:listening status AT+TCPSRVTRANS? Query the listening status. Here the server is not in the listening status. +TCPSRVTRANS:not listening Connect AcceptSocket=0,ClientAddr=119.123.77.133,ClientPort=8000 Copyright © Neoway Technology Co., Ltd...
  • Page 76: Querying The Status Of Data Sent By The Tcp Server: +Tcpacks

    Socket 1 has not set up link with the client. + TCPACK:1,DISCONNECT AT+TCPACK TCP transparent transmission mode The module sent 1024-byte data to the +TCPACK:1024,1024 socket 0 client and the client received 1024-byte data successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 77: Http Commands

    You need to set new HTTP parameters for new HTTP requests.  After you run the +HTTPCLOSE command, the link is closed and the HTTP parameters are cleared. 13.2 Setting Up HTTP Link: +HTTPSETUP Description Set up an HTTP link Format AT+HTTPSETUP<CR> Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 78: Executing Http Request: +Httpaction

    Set up an HTTP link. AT+HTTPSETUP GET request AT+HTTPACTION=0 Receive the response from +HTTPRECV: the HTTP server. HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=rh3fjg554ufzb145aevgzz45; path=/; HttpOnly X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Copyright © Neoway Technology Co., Ltd...
  • Page 79 Set the destination port ID as 8080. Set up an HTTP link AT+HTTPSETUP POST request. Send 25 bytes; enter the AT+HTTPACTION=2,25 contents to be uploaded > MAC=NEOWAY&DATA=0123456 after > is displayed. Receive the response from Copyright © Neoway Technology Co., Ltd...
  • Page 80 HTTP server. HTTP/1.1 200 OK Cache-Control: private Content-Length: 13842 Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk; path=/; HttpOnly X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Date: Thu, 28 Nov 2013 05:40:24 GMT Connection: close Copyright © Neoway Technology Co., Ltd...
  • Page 81: Closing Http Link: +Httpclose

    Example +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=pvlaai3fizxg44eyvyqsyenk; path=/; HttpOnly X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET X-UA-Compatible: IE=EmulateIE7 Date: Thu, 28 Nov 2013 05:40:24 GMT Connection: close Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 82: Http Link Closing: +Httpclosed

    See the Example. Value AT+SMTPSRV="smtp.163.com",25 AT+SMTPSRV="smtp.qq.com",25 Remarks 14.2 Setting SMTP Login Account: +SMTPAUTH Description To set the SMTP login account Format AT+SMTPAUTH=<user>,<password><CR> Parameter <user>: Email account <password>: Password for the account Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 83: Setting Smtp Sending Parameters: +Smtpfrom

    0~5: (<receiver_type> is 2) <receiver_addr >: The email address of receivers < receiver_name >: The name of the receiver Return See the Example. Value Example AT+SMTPRCPT=0,0,"571783423@qq.com","yf" Add the first receiver AT+SMTPRCPT=0,1,"571783424@qq.com","yg" Add the second receiver Copyright © Neoway Technology Co., Ltd...
  • Page 84: Entering An Email Subject: +Smtpsub

    14.6 Entering Email Content: +SMTPBODY Description To enter the content of an email Format AT+SMTPBODY=<context><CR> Parameter < context >: The maximum length of email content is 400 bytes. Return See the Example. Value Example AT+SMTPBODY="rose is better" Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 85: Sending An Email: +Smtpsend

    15.2 Using Account to Log In to the Emailbox: +POPAUTH Description To use an account to log in to the emailbox Format AT+POPAUTH=<user>,<password><CR> Parameter <user>: Email account <password>: Password for the account Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 86: Querying The Email Box Status: +Popstat

    <bytes>: The bytes sent by the email server, including all characters following OK <num>: Email number <totalsize>: Email size Example AT+POPLIST=1 +POPRECV:12 +OK 1 7743 AT+POPLIST To obtain the sizes of all emails +POPRECV:344 +OK 36 327235 Copyright © Neoway Technology Co., Ltd...
  • Page 87: Marking An Email Deleted: +Popdele

    26 1333 27 1328 28 1330 29 10498 30 1328 31 1333 32 1331 33 1328 34 1330 35 4486 36 10496 Remarks 15.5 Marking an Email Deleted: +POPDELE Description To mark the email deleted Copyright © Neoway Technology Co., Ltd...
  • Page 88: Cancelling All Deleting Marks: +Poprset

    15.7 Ending the Conversation: +POPQUIT Description To end a conversation Format AT+POPQUIT<CR> Parameter Return See the Example. Value Example AT+POPQUIT +POP:POP Link Closed Remarks 15.8 Reading Emails: +POPRETR Description To read an email Format AT+POPRETR=<num><CR> Copyright © Neoway Technology Co., Ltd...
  • Page 89: Ecall Commands

    Description To enable/disable DSP to monitor eCall related signal Format AT%EMSD=<Monitor_DSP><CR> Parameter < Monitor_DSP >: 0: DSP stop monitor "eCall related signal" 1: DSP start monitor "eCall related signal" Return See the Example. Value Copyright © Neoway Technology Co., Ltd...
  • Page 90: Configuring Msd Data: %Emsdset

    Format AT+CECALL=<type_of_eCall><CR> Parameter <type_of_eCall>: Integer 0: Test call 1: Reconfiguration call 2: Manually initiated eCall 3: Automatically initiated eCall Return OK/ERROR Value Example AT+CECALL=? +CECALL: (0,1,2,3) Copyright © Neoway Technology Co., Ltd...
  • Page 91: Triggering An Msd Transmission: %Emsdpush

    +EMSDHACK: High layer data ack. Will send to AP no matter MSD transfer success or fail. (could be success or fail)->ecall session finish, depends on AP if Call need to be end. Parameter Return Value Example Remarks 16.6 eCall Commands Process Description The process of eCall commands Format Copyright © Neoway Technology Co., Ltd...
  • Page 92: Recording Commands

    1: Buffer for recording Return See the Example. Value Example AT+RSMODE=1 Set buffer for recording AT+RSMODE=0 Set the no buffer for recording data Remarks Set the buffer mode for recording before you start recording. Copyright © Neoway Technology Co., Ltd...
  • Page 93: Starting/Stopping Recording: +Recf

    5 to 7 blocks because of the delay of the read act. If you do not obtain the recording data in 10 seconds, the early data will be overwritten. Copyright © Neoway Technology Co., Ltd...
  • Page 94: Other At Commands

    18.3 Calculating CRC16 Verification Value: +CALCRC16 Description To calculate the verification value of CRC16 Format AT+CALCRC16=<length><CR> Parameter <length>: The length of the data to be calculated Return +CALCRC16: str Value Example AT+CALCRC16=6 >313233343536 Copyright © Neoway Technology Co., Ltd...
  • Page 95: Querying Base Station Information: +Posi

    To open/close the digital audio channel Format  AT+SETPCM=<n><CR>  AT+SETPCM?<CR> Parameter <n>: The digital audio channel setting 0: Close 1: Start Return See the Example. Value Example AT+SETPCM=1 Open the digital audio channel Copyright © Neoway Technology Co., Ltd...
  • Page 96: Setting Extra Ring Pulses: +Extraring

    To set the width of the RING pulse (ms) Format  AT+RINGTIME=<n>,<time><CR>  AT+RINGTIME=?<CR> Parameter <n>: 0: The width of the pulse for incoming calls 1: The width of the pulse for incoming messages 2: The width of the extra pulse <time>: Copyright © Neoway Technology Co., Ltd...
  • Page 97: Configuring The Pin Mode Of Flow Control By Hardware For Uart1: +Fchw

    The value of the parameter <n> is 1 by default, and the setting will not be saved after the module powers off.  This command is used together with AT+IFC. You can run AT+IFC=2,2 to enable the flow control function of UART1. Copyright © Neoway Technology Co., Ltd...
  • Page 98: Setting The Offtime Of The On/Off Pin: +Offtime

    < value >: 0: No ring 1: Earphone output 2: Speaker output < level >: 0 to 6, the volume level Return See the Example. Value Example AT+RINGOUT=2,6 The setting is successful and the module returns Copyright © Neoway Technology Co., Ltd...
  • Page 99: Setting The Format Of The Voice Broadcast: +Ttsfmt

    OK. If you do not input data one minute after > is displayed, +TTSPLAY:EXPIRED will be displayed.  If the text is broadcast successfully, the module returns +TTSPLAY:OK.  If the text fails to be broadcast, the module returns +TTSPLAY:FAILED. Copyright © Neoway Technology Co., Ltd...
  • Page 100: Configuring Parameters Of Voice Broadcast: +Ttscfg

    Query the configuration range of the voice broadcast parameters. +TTSCFG:(0-6),(0-6),(0-6) Remarks  The parameter setting is saved after the module is powered off.  The TTS voice broadcast commands are not support on the 60s versions but supported on Copyright © Neoway Technology Co., Ltd...
  • Page 101: Resetting The Module: +Rest

    Before sending AT+CPWROFF, leave the ON/OFF pin blank or pull its level high.  After the module returns OK, you can pull down the ON/OFF pin level if you want to restart the module. Copyright © Neoway Technology Co., Ltd...
  • Page 102: A Reference Process Of At Command Programming

    0891 683108705505F0: SMSC number of China Unicom 0100 0B: the length of the recipient number 81: Receiving mode 3124819396F3: The number of recipient 0008 0A: The length of the content 00680065006C006C006F: SMS message content Copyright © Neoway Technology Co., Ltd...
  • Page 103 3124819396F3: The number of recipient 0008 0A: The length of the content 00680065006C006C006F: SMS message content SMS message content: hello The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23. Copyright © Neoway Technology Co., Ltd...
  • Page 104: Flowchart Of Sending Text Sms Messages (Through Uart)

    AT+CMGS="13430981508" > Content of the message to be sent. Enter Shenzhen Neoway Technology and press Shenzhen Neoway Technology Ctrl+Z (character 0x1A) to send the message. Successful Return value +CMGS: 116 Copyright © Neoway Technology Co., Ltd...
  • Page 105: Flowchart Of Sending Pdu Sms Messages (Through Uart)

    23 bytes in PDU mode. AT+CMGS=23<CR> > Content of the message to be sent Input message content, which is encoded in PDU 0891683110808805F001000B813124819396F3 mode and sent by pressing 00080A00680065006C006C006F Ctrl+Z (0X1A). Successfully Return value +CMGS: 117 Copyright © Neoway Technology Co., Ltd...
  • Page 106: Flowchart Of At Commands To Establish Tcp Link

    Query the PPP link status. +XIIC: 1,10.232.165.29 indicates that the address Send AT+XIIC?\r link is set up successfully. +XIIC: 0,0.0.0.0 indicates the PPP link has not been set up. Valid IP A PPP link is set up successfully Copyright © Neoway Technology Co., Ltd...
  • Page 107 1. When the module returns >, send data to ERROR the UART. 0123456789\r 2. The data should end with \r, which is 0x0D in hexadecimal system. Send more data? AT+TCPCLOSE=0\r Close socket 0. Return "+TCPCLOSE:0,OK" Copyright © Neoway Technology Co., Ltd...
  • Page 108: Flowchart Of Receiving Sms Messages

    AT+CNMI=2,1,0,0,0 indicates there is a reminder for new messages and the messages Send AT+CNMI=2,1,0,0,0\r are stored rather than directly displayed. AT+CNMI=2,2,0,0,0 indicates the messages are displayed with the indication code rather than stored. Waiting for new messages Copyright © Neoway Technology Co., Ltd...
  • Page 109 SN. The message is Send AT+CMGR=index\r in the following format: +CMGR:"REC Failed to read the UNREAD0","8615013473810","","2012/09/1 message 5 15:20:32+32"Neoway Technology Neoway Technology is the content of the message received. Copyright © Neoway Technology Co., Ltd...
  • Page 110: Flowchart Of Sending Sms Messages

    Fail to send +CMGS: 117 (not a fixed value) Send Neoway Technology<Ctrl+z> Indicates that the data is sent successfully. Note: Successful On the hyper terminal or UART tool, press Ctrl+Z to enter the end symbol 0x1A. Copyright © Neoway Technology Co., Ltd...
  • Page 111: Common At Commands For Sms Tx/Rx

    SIM card rather than directly displayed) or 2,2,0,0,0 (new messages are directly displayed rather than stored on the SM card). Read SMS AT+CMGR=1 AT+CMGR=1 messages +CMGR:"REC UNREAD", "13430981508",""," 2012/09/08 16:30:08+32" Shenzhen Neoway Technology Copyright © Neoway Technology Co., Ltd...
  • Page 112 Query the number AT+CPMS? AT+CPMS? 1: Indicates the number of the of SMS messages messages. +CPMS: 50: indicates the number of "SM", 1, 50, "SM_P", 1, 50, messages that can be stored. "SM_P", 1, 50 Copyright © Neoway Technology Co., Ltd...
  • Page 113: Flowchart Of At Commands To Log In To The Ftp Server

    IP address the module sets up a PPP link AT+XIIC?\r successfully. The module IP is 10.232.165.29. Valid IP +XIIC: 0,0.0.0.0 indicates the PPP link is not set up. The PPP link is set up successfully Copyright © Neoway Technology Co., Ltd...
  • Page 114 The IP and port of the FTP server will be AT+FTPSTATUS\r returned: +FTPSTATUS:1,119.139.221.66,21 Download data Upload data to the from the server server AT+FTPGET=<dir&filename> AT+FTPPUT=<filename>,<typ 12. Upload or download data. ,<type>,<Content or Info> e>,<mode>,<size> AT+FTPLOGOUT\r 13. Exit from the FTP server Copyright © Neoway Technology Co., Ltd...

Table of Contents