Neoway WM620 Series At Command Manual
Hide thumbs Also See for WM620 Series:
Table of Contents

Advertisement

Quick Links

WM620 AT
Command Manual
Issue 2.7
Date 2018-07-03
Neoway Product Document

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Neoway WM620 Series

  • Page 1 WM620 AT Command Manual Issue 2.7 Date 2018-07-03 Neoway Product Document...
  • Page 2 THIS GUIDE PROVIDES INSTRUCTIONS FOR CUSTOMERS TO DESIGN THEIR APPLICATIONS. PLEASE FOLLOW THE RULES AND PARAMETERS IN THIS GUIDE TO DESIGN AND COMMISSION. NEOWAY WILL NOT TAKE ANY RESPONSIBILITY OF BODILY HURT OR ASSET LOSS CAUSED BY IMPROPER OPERATIONS. THE INFORMATION IN THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE DUE TO PRODUCT VERSION UPDATE OR OTHER REASONS.
  • Page 3: Table Of Contents

    3.2 Selecting and Registering a GSM Network: +COPS ..............30 3.3 Obtaining Module Location: +CIPGSMLOC ................32 3.4 Updating Time: +UPDATETIME ....................34 4 Calling Control Commands ..............36 4.1 Setting the Speaker Volume: +CLVL ..................36 4.2 Mute Control: +CMUT ........................ 36 Copyright © Neoway Technology Co., Ltd...
  • Page 4 9.3 Querying the PPP Connection Status: +PPPSTATUS ............... 80 9.4 Setting Heartbeat Packet: + TCPKEEPALIVE ................81 9.5 Setting Up TCP Connection: +TCPSETUP ................83 9.6 Sending TCP Data: +TCPSEND ....................84 9.7 Receiving TCP Data: +TCPRECV ..................... 85 Copyright © Neoway Technology Co., Ltd...
  • Page 5 16.1 Setting UDP Listening for Server: +FUDPLISTEN ..............118 16.2 Receiving Data from the Client: +FUDPRECV(S) ..............119 16.3 Sending Data to the Client: +FUDPSENDS ................119 16.4 Closing Listening for UDP Server: +CLOSEFUDPLISTEN ........... 120 Copyright © Neoway Technology Co., Ltd...
  • Page 6 A.5 Flowchart of Receiving SMS Messages .................. 142 A.6 Flowchart of Sending SMS Messages ..................144 A.7 Common AT Commands for SMS TX/RX ................145 A.8 Flowchart of AT Commands To Log In to the FTP Server ............147 Copyright © Neoway Technology Co., Ltd...
  • Page 7 WM620 AT Command Manual About This Document Scope This document is applicable to WM620 series. Audience This document is intended for system engineers (SEs), development engineers, and test engineers. Change History Issue Date Change 2013-04 Initial draft 2013-09 3034 baseline...
  • Page 8 +FUDPRECV(S), +FUDPLISTEN, +FUDPSENDS, and +CLOSEFUDPLISTEN Added HTTP commands  Modified the parameter description of +CCWA and +IPSTATUS  Modified the description of +IFC  Modified the return values of +CMGR and +CMGL  Copyright © Neoway Technology Co., Ltd...
  • Page 9 Means reader be careful. In this situation, you might perform an action that could result in module or product damages. Means note or tips for readers to use the module Related Documents Neoway_WM620_Datasheet Neoway_ WM620_Product_Specifications Neoway_ WM620_Hardware_User_Guide Neoway_ WM620_EVK_User_Guide Copyright © Neoway Technology Co., Ltd viii...
  • Page 10 +EUSIM:0 for MNC=00/02/07 +EUSIM:1 for MNC=01/06 +EUSIM:2 for other MNC values +EUSIM:ERROR indicates that the module did not detect SIM card. Users can determine whether the module starts up successfully or not by Remarks detecting "+EIND:128". Copyright © Neoway Technology Co., Ltd...
  • Page 11 Blinking twice (100 ms ON / 100 ms OFF / 100 ms Search networks ON / 2700 ms OFF) Service mode (voice, data) Blinking (125 ms ON / 125 ms OFF) To make the indicator blink as described above, Remarks execute the AT+SIGNAL=1 command. Copyright © Neoway Technology Co., Ltd...
  • Page 12: General Commands

    Query the manufacturer information. Remarks 1.2 Querying the Module Model: +CGMM Description To query the module model Format AT+CGMM<CR> Parameter <CR><LF><model><CR><LF> <CR><LF>OK<CR><LF> Return Value <CR><LF>+CME ERROR:<err><CR><LF> AT+CGMM +CGMM: WM620 Example Query the product model. Copyright © Neoway Technology Co., Ltd...
  • Page 13: Querying The Version: +Cgmr

    1.4 Querying Device Manufacturer Information: ATI To obtain the manufacturer information including manufacturer name, model, and Description version Format ATI<CR> <CR><LF><manufacturer> <CR><LF><module_version> Parameter <CR><LF><soft_version> <CR><LF>OK<CR><LF> <manufacturer>: Manufacturer name Return Value <module_version>: Module model <soft_version>: Software version Copyright © Neoway Technology Co., Ltd...
  • Page 14: Obtaining The Module Software Version: +Gmr

    Remarks The standard module supports this command since E9C33425. 1.6 Querying IMEI: +CGSN Description To query the International Mobile Equipment Identity (IMEI) of the module Format AT+CGSN<CR> Parameter <CR><LF><IMEI><CR><LF> <CR><LF>OK<CR><LF> Return Value <CR><LF>+CME ERROR:<err><CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 15: Querying The Imsi: +Cimi

    IMSI is a character string of 15 digits and starts with 3-bit MCC and 2-bit MNC. It Remarks is used to authenticate the SIM card. 1.8 Obtaining the ICCID of the SIM Card: +CCID Description To obtain the integrated circuit card identifier (ICCID) of the SIM card Format AT+CCID<CR> Parameter Copyright © Neoway Technology Co., Ltd...
  • Page 16: Enabling & Disabling The Terminal Display: Ate

    To specify whether to enable the terminal display Format ATE<mode><CR> Parameter <CR><LF>OK<CR><LF> <mode>: Return Value 0: disable the terminal display 1: enable the terminal display ATE0 Disable the terminal display +CSQ: 7,99 Example ATE1 AT+CSQ Enable the terminal display +CSQ: 7,99 Copyright © Neoway Technology Co., Ltd...
  • Page 17: Restarting The Module: +Srst

    To power off the module Format AT+PWRD<CR> Parameter <CR><LF>PWR OFF OK<CR><LF> Return Value AT+PWRD Example Power off PWR OFF OK Remarks 1.12 Getting ADC Value: +GETADC Description To query the environment temperature Format AT+GETADC<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 18: Querying Environment Temperature: $Myadctemp

    OVH: The temperature exceeds the higher threshold 85℃ AT+GETADC +GETADC: 1901,13 Get the temperature and the voltage and Example the ADC port. Refer to Neoway temperature sensing scheme.  Remarks This command is supported on E9C33426 and later versions.  1.13 Querying Environment Temperature: $MYADCTEMP...
  • Page 19 AT$MYADCTEMP=1 Example $MYADCTEMP: 1303 Get the ADC value AT$MYADCTEMP=? $MYADCTEMP: (0-1) Query the available value range. Refer to Neoway temperature sensing scheme.  Remarks This command is supported on E9C33426 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 20: Mobile Device Control And Status Report

    The module is ready. AT+CPAS=? Example +CPAS: (0-5) The module is in any possible status. AT+CPAS Error is the type of the returned error. It can be digits or character string. +CME ERROR: <error> Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 21: Querying The Network Registration Status: +Creg

    <ci>: string type; two-byte cell ID in hexadecimal format <Act>: 0: GSM 2: UTRAN 3: GSM w/EGPRS AT+CREG=1 Enable network registration unsolicited result code. Example AT+CREG? Query the current network registration status. +CREG: 1,1 Copyright © Neoway Technology Co., Ltd...
  • Page 22: Gprs Network Registration: +Cgreg

    <lac>: Two byte location area code in hexadecimal format, string type <ci>: four byte GERAN/UTRAN cell ID in hexadecimal format, string type <Act>: The access technology of the serving cell, integer type 0: GSM 2: UTRAN 3: GSM w/EGPRS Copyright © Neoway Technology Co., Ltd...
  • Page 23 AT+CGREG? Query current GPRS network +CGREG: 2,1, A547, 1EB6AAF registration status. The network registration and location information unsolicited result code is enabled. AT+CGREG=3 The set value exceeds the parameter range Copyright © Neoway Technology Co., Ltd...
  • Page 24: Setting Gprs Attach And Detach: +Cgatt

    (AT+XIIC=1). Example AT+CGATT=0 This value is returned if you run the $MYURCACT: 0,0 command after the PPP connection is set up (AT$MYNETACT=0,1). AT+CGATT=0 No SIM card is installed, so the module returns ERROR. ERROR Copyright © Neoway Technology Co., Ltd...
  • Page 25: Setting Module Functionality: +Cfun

    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> Copyright © Neoway Technology Co., Ltd...
  • Page 26: Setting The Signal Indicator Mode: +Signal

    < mode>: Parameter 0: China Grid Regulation mode 1: Standard indicator mode Return Value See the Example AT+SIGNAL=1 Set the signal indicator to the standard mode. Example AT+SIGNAL? Query the current signal indicator mode. Copyright © Neoway Technology Co., Ltd...
  • Page 27: Enabling Or Disabling The Sleep Mode: +Enpwrsave

    If the module communicates with the DTE only through UART, all the  following conditions must be met to let the module enter the sleep mode: Remarks AT+ENPWRSAVE=0; Set the SLEEP_IN pin low level (by default) Copyright © Neoway Technology Co., Ltd...
  • Page 28: Clock: +Cclk

    2.9 Setting the Baudrate of the Module: +IPR Description To set the baudrate of the module AT+IPR=<baud rate> <CR>  Format AT+IPR? <CR>  Parameter <baud rate>: The value can be 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, Copyright © Neoway Technology Co., Ltd...
  • Page 29: Entering The Pin Codes: +Cpin

    Return Value SIM PIN: Enter PIN code. SIM PUK: Enter PUK code. SIM PIN2: Enter PIN2 code. SIM PUK2: Enter PUK2 code. AT+CPIN? Query the PIN code status of the Example module. +CPIN: READY Copyright © Neoway Technology Co., Ltd...
  • Page 30: Enabling Pin And Querying Mt And Network Device: +Clck

    To lock, unlock or interrogate an MT or a network facility AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]<CR>  Format AT+CLCK=?<CR>  <fac> : "OI": Outgoing international calls "AI": All incoming calls Parameter "IR": Incoming calls when roaming outside the home country "SC": SIM card "AO": All outgoing calls Copyright © Neoway Technology Co., Ltd...
  • Page 31 <mode>=2 and command successful: Return Value <CR><LF>+CLCK: <status> [, <class1> [<CR><LF>+CLCK: <status>, <class2> [...]]]<CR><LF> AT+CLCK="SC",2 +CLCK: 0 Query the SIM card status. AT+CLCK=? Example +CLCK: ("PF","SC","AO","OI","OX","AI","IR", Query valid parameter value range. "AB","AG","AC","FD","PN","PU","PP", "PC") Copyright © Neoway Technology Co., Ltd...
  • Page 32: Modifying The Password Of The Pin: +Cpwd

    Query if the PIN code is required. Remarks 2.12 Modifying the Password of the PIN: +CPWD Description To modify the password of the lock function of the module AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>  Format AT+CPWD=?<CR>  <fac>: Parameter "P2": SIM PIN2 Copyright © Neoway Technology Co., Ltd...
  • Page 33 +CPIN: SIM PIN PIN code is required. AT+CPIN="4321" Enter new password. +EUSIM:1 Unlock Lock the SIM card before modifying the password for the SIM card.  Remarks Otherwise, the module returns +CME ERROR: SIM failure. Copyright © Neoway Technology Co., Ltd...
  • Page 34: Extended Error Report: +Ceer

    The detailed report causes are defined in GSM 04.08. SPEECH OFF RELEASE Query after ending a call which is initiated by the module. AT+CEER Example +CEER: Client ended call AT+CEER +CEER: No cause information available Query before dialing a number. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 35: Setting Error Information: +Cmee

    Example code. AT+CMEE=0 Disable the result code. AT+CSQ=1 Display ERROR only. ERROR AT+CMEE=2 Enable the result code and display verbose error value. AT+CSQ=1 +CME ERROR: operation not allowed Remarks The default value is 2. Copyright © Neoway Technology Co., Ltd...
  • Page 36: Enabling The Flow Control Function

    The setting of this command will not be saved after the module is powered  off. Remarks This command is applicable to E9C33425 and later versions.  The flow control function is disabled by default.  Copyright © Neoway Technology Co., Ltd...
  • Page 37: Setting The Network Model: +Pref

    The setting of this command takes effective only after the module is  restarted. 2.17 Querying the Network Standards Description To query or set the network standards AT+ERAT=<rat mode>[,<prefer rat>]<CR>  Format AT+ERAT=?<CR>  AT+ERAT?<CR>  <rat mode>: Parameter 0: GSM only Copyright © Neoway Technology Co., Ltd...
  • Page 38 The network standard setting takes effective only after the module is  Remarks powered on again. When <rat mode> is set to 0 or 1, <prefer rat> can be set only to 0.  Copyright © Neoway Technology Co., Ltd...
  • Page 39 WM620 AT Command Manual This command is applicable to E9C33424 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 40: Network Service Commands

    <22 <-69dBm <28 <-57dBm >=28 >=-57 dBm <ber> 0...7 Refer to the value of RXQUAL in the table of GSM 05.08 8.2.4. Unknown or not detectable AT+CSQ +CSQ: 24,99 Example Query the current RSSI. Copyright © Neoway Technology Co., Ltd...
  • Page 41: Selecting And Registering A Gsm Network: +Cops

    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 AT+COPS=0,0 Example Set to the long alphanumeric format Copyright © Neoway Technology Co., Ltd...
  • Page 42 UMTS. Remarks <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.  Copyright © Neoway Technology Co., Ltd...
  • Page 43: Obtaining Module Location: +Cipgsmloc

    401: No permission 400: parsing error 404: requested base station has not been included 408: parsing times out 500: server error 000: unknown error <CR><LF>OK<CR><LF> <CR><LF>+CIPGSMLOC: TIMEOUT<CR><LF> The single-BS location AT$MYNETACT=0,1 Example request executed successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 44 AT+PPPOPEN +NEWIP:183.42.3.173 The single-BS location request executed successfully. +PPPSTATUS:OPENED AT+CIPGSMLOC=0 The module reports the coordinates location. +CIPGSMLOC: {"location":{"lat":22.682403116613813,"lng":113.9904227 2056249},"accuracy":0.0} +CIPGSMLOC: OK Remarks This command is applicable on E9C33502 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 45: Updating Time: +Updatetime

    AT+UPDATETIME=0 Query when the time was +UPDATETIME: updated last time. Last Update Time 2014-03-31,11:10:26 Example AT+UPDATETIME=0 Query when the time was updated last time. +UPDATETIME: Last Update Time 0000-00-00,00:00:00 The time was not updated. Copyright © Neoway Technology Co., Ltd...
  • Page 46  Remarks Send AT+CCLK? to query whether RTC is synchronized to the current network  time after this command is sent successfully. Current the following time servers support time update: time.windows.com,  time.nist.gov, etc. Copyright © Neoway Technology Co., Ltd...
  • Page 47: Calling Control Commands

    Remarks 4.2 Mute Control: +CMUT To set mute control of the voice calls. Description The setting is valid during a call AT+CMUT=<n> <CR>  Format AT+CMUT? <CR>  AT+CMUT=?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 48: Selecting Audio Channel: +Speaker

    4.3 Selecting Audio Channel: +SPEAKER Description To select an audio channel: earphone I/O, receiver/speaker AT+SPEAKER=<ActiveSpkMic><CR>  Format AT+SPEAKER?<CR>  AT+SPEAKER=?<CR>  <ActiveSpkMic>: Parameter 0: Earphone 1: Receiver <CR><LF>OK<CR><LF> <CR><LF>+SPEAKER: <ActiveSpkMic><CR><LF> <CR><LF>OK<CR><LF> Return Value <CR><LF>+SPEAKER: (0-1)<CR><LF> <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 49: Dialing Command: Atd

    <dial string>: Phone number Parameter <n>: The location of phone number name: Name in the current phonebook. SPEECH ON ALERTING Return Value If the call is hung up directly on the other side: SPEECH OFF Copyright © Neoway Technology Co., Ltd...
  • Page 50 DISCONNECT RELEASE NO CARRIER ATD10010; Dial a number. SPEECH ON ALERTING CONNECT The receiver answered the call. Example ATD>4; SPEECH ON Use the index in the current phonebook to make a call. ALERTING CONNECT Copyright © Neoway Technology Co., Ltd...
  • Page 51: Call Answering: Ata

    <CR><LF>SPEECH ON<CR><LF> <CR><LF> OK <CR><LF> If the call is hung up on the other side during the call, the command returns: Return Value <CR><LF> SPEECH OFF <CR><LF> <CR><LF> RELEASE <CR><LF> <CR><LF> NO CARRIER <CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 52: Hanging Up Calls: Ath

    <CR><LF> OK <CR><LF> SPEECH OFF Example End all call connections. RELEASE Remarks 4.7 Caller ID: +CLIP Description To enable or disable caller ID AT+CLIP=<n><CR>  Format AT+CLIP?<CR>  AT+CLIP=?<CR>  <n>: Parameter 0: disable caller ID Copyright © Neoway Technology Co., Ltd...
  • Page 53: Sending Dtmf Tone: +Vts

    AT+VTS=?<CR>  Parameter < DTMF >: A single ASCII character in the set .0-9, #, *, A-D. Return Value See the Example. AT+VTS=? +VTS: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,#,* Query the DTMF signal range of Example the module. Copyright © Neoway Technology Co., Ltd...
  • Page 54: Auto-Answer: Ats0

    Example ATS0? Query the status of the auto-answer function. Remarks 4.10 Handfree Switch: +HANDFREE Description To control the handfree mode of a voice call AT+HANDFREE=<value> <CR>  Format AT+HANDFREE? <CR>  Parameter <value>: Integer Copyright © Neoway Technology Co., Ltd...
  • Page 55: Starting The Dtmf Detection: +Dtmfdetect

    <CR><LF> +DTMF:DETECT STOP OK <CR><LF> Return Value <CR><LF> +DTMF:DETECT ALREADY STARTED <CR><LF> <CR><LF> +DTMF:OPERATION NOT ALLOWED <CR><LF> AT+DTMFDETECT=1 Start the DTMF detection. +DTMF:DETECT START OK Example AT+ DTMFDETECT=0 Stop the DTMF detection. +DTMF:DETECT STOP OK Copyright © Neoway Technology Co., Ltd...
  • Page 56: Mic Volume Control: +Micl

    Detect DTMF signals. +DTMF:DETECT STOP OK SPEECH OFF RELEASE Remarks 4.12 MIC Volume Control: +MICL Description To set the level of the MIC volume in a call AT+MICL=<level> <CR>  Format AT+MICL? <CR>  AT+MICL=?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 57: Echo Control: +Echo

    Parameter 3 AEC 4 Speaker Echo Cancellation for car kit operation 5 Bluetooth earphone Echo Cancellation (not supported) 6 Default Echo Cancellation for current path settings <CR><LF>OK<CR><LF> <CR><LF>+ECHO: <mode><CR><LF> Return Value <CR><LF>OK<CR><LF> <CR><LF>+ECHO: (0-6)<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 58: Sending Ussd Data: +Cusd

    <str>: USSD string Parameter <dcs>: 3GPP TS 23.038 [25] Cell Broadcast Data Coding Scheme in integer format (default 15) <m>: 0: no further user action required 1: further user action required 2: USSD terminated by network Copyright © Neoway Technology Co., Ltd...
  • Page 59 FFB9875", 72 AT+CUSD=1,"*121#",15 The operator does not support this data service. module returns Example +CUSD: 4. +CUSD: 4 AT+CUSD=? +CUSD: (0-2) Query the value range of parameters. AT+CUSD? +CUSD: 0 Query current parameter value. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 60: Sms Commands

    See the Example. AT+CSMS=1 +CSMS: 1, 1, 1 Set SMS AT commands to support GSM07.05 Phase 2+. AT+CSMS? +CSMS: 1, 1, 1, 1 Example Display current values. AT+CSMS=? +CSMS: (0-1) Query valid value range. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 61: Setting Preferred Sms Storage: +Cpms

    Set SM as the preferred SMS storage memory. AT+CPMS? +CPMS: "SM",18,50,"ME",3,23,"MT",3,23 Query the detailed information of Example mem1, mem2, and mem3. AT+CPMS=? +CPMS: Query the value range of mem1, ("ME","MT","SM","SR"),("ME","MT","SM", mem2, and mem3. "SR"),("ME","MT","SM","SR") Copyright © Neoway Technology Co., Ltd...
  • Page 62: Setting Sms Inputting Mode: +Cmgf

    Set SMS mode to text mode. AT+CMGF? +CMGF: 1 Query current SMS mode. Example AT+CMGF=? +CMGF: (0-1) Query the value range of SMS mode. Remarks The default value of the mode parameter is 0. Copyright © Neoway Technology Co., Ltd...
  • Page 63: Setting The Te Character Set: +Cscs

    5.5 Setting the New Message SMS Indications Mode: +CNMI To set the mode how the module indicates new SMS messages received from the Description network to users AT+CNMI=<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]<CR>  Format AT+CNMI?<CR>  AT+CNMI=?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 64 0: When <mode> is set to 1 or 2, codes defined by this command and stored in TA will be sent to 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 Copyright © Neoway Technology Co., Ltd...
  • Page 65: Reading Sms Messages: +Cmgr

    Format AT+CMGR=<index><CR> <index>: location value <index> from preferred message storage <mem1> to the Parameter If text mode (+CMGF=1), 1) command successful and SMS-DELIVER: +CMGR: Return Value <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>] <CR><LF><data> Copyright © Neoway Technology Co., Ltd...
  • Page 66 TP data, excluding the octets in the service center address pdu: PDU data AT+CMGR=1 Read the content of +CMGR: "REC READ","66421",,"11/09/13,16:37:59+32" Example SMS message 1. 050003140401E27778592EA7E7EBE9373C3C279BCF 68F59AADC78FED62779BA596D7EBAEB5B91EBD16 Copyright © Neoway Technology Co., Ltd...
  • Page 67 Set text mode. AT+CSCS="GSM" +CMTI: "SM",40 AT+CMGR=40 message +CMGR: "REC incoming. UNREAD","18777397945",,"14/03/26,13:57:58+32" Read the message. hello world If the status of the message is received unread, the status in the storage changes Remarks to received read. Copyright © Neoway Technology Co., Ltd...
  • Page 68: Sms Message List: +Cmgl

    If text mode (+CMGF=1) 1) command successful and SMS-SUBMITs and/or SMS-DELIVERs: +CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> <data>[<CR><LF> +CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF> <data>[...]] Return Value 2) commandsuccessful and SMS-STATUS-REPORTs: +CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> [<CR><LF> +CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]] 3) command successful and SMS-COMMANDs: +CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF> +CMGL: <index>,<stat>,<fo>,<ct>[...]] Copyright © Neoway Technology Co., Ltd...
  • Page 69 TP data, excluding the octets in the service center address pdu: PDU data AT+CMGL="ALL" +CMGL: 1,"REC READ","66421",,"11/09/14,16:37:59+32" 050003140401E27778592EA7E7EBE9373C3C279BC F68F59AADC78FED62779BA596D7EBAEB5B91EBD Read all messages in 16A5D46C35F98406A744E311A95C32594DA75688B Example text mode. 50EADACA6D689150EADF1B2BC5E579AD575E5B5 582D5EABD5624C36A3D56C375C0E1693CD6835DB 0D9783A15C91D2E06BDAA558AC1F60C52B937CAD CD2B747AA9021BDEC627E8E9441BD42655DEF446 +CMGL: 44,"REC UNREAD","8615719556937",,"11/09/30,03:00:55+32"5 Copyright © Neoway Technology Co., Ltd...
  • Page 70 Query the SMS read options in PDU mode. AT+CMGF=0 AT+CMGL=3 +CMGL: 0,3,,19 Read SMS lists in PDU 0891683110808805F0111E0B818177377949F50000A mode. 705E8329BFD06 Read stored sent SMS +CMGL: 15,3,,16 messages. 0891683110808805F0112605810110F00000A705E83 29BFD06 +CMGL: 28,3,,33 0891683110808805F001280B815118784271F200081 46DF157335E025B9D5B89533A59276D6A80545EFA +CMGL: 29,3,,13 Copyright © Neoway Technology Co., Ltd...
  • Page 71: Sending Sms Messages: +Cmgs

    <da>: The destination number to which the SMS message is sent in text mode <text>: SMS message content in text mode Parameter <length>: The byte length of the SMS message content in PDU mode <mr>: The storage location <CR>: End character Copyright © Neoway Technology Co., Ltd...
  • Page 72: Writing Sms Messages: +Cmgw

    To write an SMS message into the memory Description The location information <index> will be returned after the message is saved correctly. Command syntax (text mode): AT+CMGW=<oa/da>[,<tooa/toda>[,<stat>]]<CR>text is entered<Ctrl-Z /ESC> Format Command syntax (PDU mode): AT+CMGW=<length>[,<stat>]<CR>PDU is given<Ctrl-Z /ESC> Copyright © Neoway Technology Co., Ltd...
  • Page 73: Sending Stored Sms Messages: +Cmss

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

    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. AT+CMGD=3 Delete successfully Example AT+CMGD=? Query the value ranges of parameters. +CMGD: (0-49), (0-4) Copyright © Neoway Technology Co., Ltd...
  • Page 75: Setting The Smsc Number: +Csca

    To select required values for the additional parameters in the text mode, and set Description the validity period since the message is received from the SMSC, or the absolute time defining the end of the validity period AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]]<CR>  Format AT+CSMP?<CR>  Copyright © Neoway Technology Co., Ltd...
  • Page 76: Displaying The Parameters Of Text Mode: +Csdh

    To set whether the detailed header information is displayed in the result code in Description text mode AT+CSDH=<show><CR>  Format AT+CSDH?<CR>  AT+CSDH=?<CR>  <show>: Parameter 0: disable or not display 1: enable or display Return Value See the Example. Copyright © Neoway Technology Co., Ltd...
  • Page 77 +CMGR: "REC READ","+8613430981504",,"09/07/17, detailed header Example information to display. 14:49:00+50",145,4,0,8,"+8613800755500",145, 7B5675655FAE5C0F65F65019 AT+CSDH? +CSDH: 1 Query the current parameter setting of the command. AT+CSDH=? Query the value range of +CSDH: (0-1) current parameter command. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 78: Phonebook Commands

    Set the phonebook storage to SIM card. AT+CPBS? +CPBS: "SM", 1, 250 Query the current storage of the phonebook. Example AT+CPBS=? +CPBS: ("SM", "DC", "FD", "MC", "ME", Query value range "RC", "EN", "ON") phonebook storage. Copyright © Neoway Technology Co., Ltd...
  • Page 79: Reading The Phonebook: +Cpbr

    0: phonebook entry, not hidden 1: phonebook entry, hidden AT+CPBR=1,3 Read the phone numbers from Example +CPBR: 1, "091137880", 129, "Comneon" index 1 to index 3 in the phonebook. +CPBR: 2, "09113788223", 129, "MMI" Copyright © Neoway Technology Co., Ltd...
  • Page 80: Querying The Phonebook: +Cpbf

    <text>: The phone book entry name, string type field of maximum length <tlength>; character set as specified by command Select TE Character Set +CSCS.UCS2", and "IRA" are supported. AT+CPBF="Comneon" +CPBF: "091137880", 129, Query the phone number information of "Comneon" Example contact Comneon. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 81: Writing Information To The Phonebook: +Cpbw

    +CPBR: 1, "091137880", 129, "Comneon" Delete contact record of index 1. AT+CPBW=1 AT+CPBR=1 Read the contact of index 1. +CME ERROR: not found Remarks Preconfigure the TE character set. Otherwise names cannot be input successfully. Copyright © Neoway Technology Co., Ltd...
  • Page 82: Supplementary Service Commands

    <classx> is a sum of integers each representing a class of information (default 7): 1: voice (telephony) 2: data (refers to all bearer services) 4: fax (facsimile services) 8: short message service 16: data circuit sync Copyright © Neoway Technology Co., Ltd...
  • Page 83 Query the parameter value range +CCFC: (0,1,2,3,4,5) of call forwarding settings. Example AT+CCFC=0,1 Enable unconditional call forwarding. AT+CCFC=0,2 +CCFC: 1,1,"+8615688346754",145,,, Query unconditional call forwarding. AT+CCFC=0,0 Disable unconditional call forwarding. AT+CCFC=0,4 Cancel unconditional call forwarding. Copyright © Neoway Technology Co., Ltd...
  • Page 84: Call Waiting: +Ccwa

    Set call waiting and enable callee ID display. AT+CCWA=? +CCWA: (0-1) Query the value range of the parameter <n>. Example AT+CCWA? +CCWA: 1 Query the current call waiting setting. Remarks Call-related supplementary services are required. Copyright © Neoway Technology Co., Ltd...
  • Page 85: Call Holding And Multi-Party Conversation: +Chld

    Release all held calls. ATD10010; SPEECH ON ALERTING CONNECT Example AT+CHLD=11 SPEECH OFF Release first call. RELEASE AT+CHLD=? +CHLD: (0, 1, 1x, 2, 2x, 3, 4) Query the value range of the parameter <n>. Copyright © Neoway Technology Co., Ltd...
  • Page 86 Refer to a service that allows a call to be temporarily disconnected from the  Remarks ME but the connection to be retained by the network, and to a service that allows multiparty conversation. Calls can be held on, recovered, released and added to a conversation.  Copyright © Neoway Technology Co., Ltd...
  • Page 87: Gprs/3G Commands

    <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. AT+CGDCONT=1,"IP", "CMNET" Example Set PDP format. Copyright © Neoway Technology Co., Ltd...
  • Page 88 WM620 AT Command Manual AT+CGDCONT? +CGDCONT: 1,"IP","internet","",0,0 Query current PDP format. AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-2),(0-3) Query the value range of the PDP +CGDCONT: (1-16),"PPP",,,(0-2),(0-3) format. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 89: Tcp/Udp Data Service

    Query the PAP authentication settings. For CID1, PAP is set and the user $QCPDPP: 2,2 name is GSM. $QCPDPP: 3,0 For CID2, CHAP is set. $QCPDPP: 4,0 For other CIDs, no authentication is set. $QCPDPP: 5,0 $QCPDPP: 6,0 Copyright © Neoway Technology Co., Ltd...
  • Page 90: Setting Up A Ppp Connection: +Xiic

    To set up a PPP connection AT+XIIC=<act><CR>  Format AT+XIIC?<CR>  <act>: Parameter 1: Activate the PPP connection 0: Deactivate the PPP connection Return Value See the Example. AT+XIIC=1 Example Set up a PPP connection Copyright © Neoway Technology Co., Ltd...
  • Page 91: Querying The Ppp Connection Status: +Pppstatus

    CLOSED: No PPP connection, the dialing connection is closed. OPENED: The PPP connection is activated, the dialing connection is opened. *: Opening or closing AT+PPPSTATUS +PPPSTATUS:CLOSED The dialing connection is closed. Example AT+PPPSTATUS +PPPSTATUS:OPENED The dialing connection is opened. Copyright © Neoway Technology Co., Ltd...
  • Page 92: Setting Heartbeat Packet: + Tcpkeepalive

    The value ranges from 1s to 1800s, and the default value is 75s. <CR><LF>OK<CR><LF> <CR><LF>ERROR<CR><LF> Return Value <CR><LF>+TCPKEEPALIVE: <mode>,<time>,< interval><CR><LF> <CR><LF>OK<CR><LF> AT+TCPKEEPALIVE=1 Example Enable the KEEPALIVE function. Copyright © Neoway Technology Co., Ltd...
  • Page 93 ACK message. The terminal will disconnect from the remote server after failing to receive the ACK messages for several times. This command is applicable to E9C33501H and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 94: Setting Up Tcp Connection: +Tcpsetup

    The received data is displayed directly. +TCPRECV:0,10,1234567890 AT+TCPSETUP=1,neowayjsr.oicp.net,6 0002 connection neowayjsr.oicp.net on socket 1. Example +TCPSETUP:1,OK AT+TCPSETUP=0,58.60.184.213,10405 connection 58.60.184.213,10405 on socket 0. +TCPSETUP:0,OK +IPURCREAD:0 Socket 0 receives data. AT+IPNETREAD=0,1024 Read data buffered in socket 0. +IPREAD:0,10 1234567890 Copyright © Neoway Technology Co., Ltd...
  • Page 95: Sending Tcp Data: +Tcpsend

    AT+TCPSEND=<n>,<length> <CR> <n>: Socket number, ranging from 0 to 5. A TCP connection is established on the socket. Parameter <length>: The length of the data to be sent, ranging from 1 to 4096, unit: byte. Copyright © Neoway Technology Co., Ltd...
  • Page 96: Receiving Tcp Data: +Tcprecv

    <n>: Socket number, ranging from 0 to 5 <length>: The length of the data received Parameter <data>: The data received Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>. Copyright © Neoway Technology Co., Ltd...
  • Page 97: Closing Tcp Connection: +Tcpclose

    To set up a UDP connection Format AT+UDPSETUP=[n],<ip>,<port>[,<recv_mode>]<CR> <n>: Socket number, ranging from 0 to 5 Parameter The TE will allocate an idle ID to set up the connection if you do not set the value Copyright © Neoway Technology Co., Ltd...
  • Page 98 +UDPSETUP:ERROR incorrect. Parameter <recv_mode> is applicable to E9C33424 and later versions.  Remarks The buffer size is 10K for each socket when you set data receiving mode to  manual reading. Copyright © Neoway Technology Co., Ltd...
  • Page 99: Sending Udp Data: +Udpsend

    Ensure that the UDP connection has been set up before sending UDP data. 9.11 Receiving UDP Data: +UDPRECV Description To receive UDP data Format +UDPRECV:<n>,<length>,<data><CR> <n>: Socket number, ranging from 0 to 5 Parameter <length>: The length of the data received <data>: The data received Copyright © Neoway Technology Co., Ltd...
  • Page 100: Closing Udp Connection: +Udpclose

    Example that UDP connection is closed. AT+UDPCLOSE=2 No UDP connection is set up on socket 2. +UDPCLOSE:ERROR AT+UDPCLOSE=55 Socket number error +UDPCLOSE: ERROR Remarks This querying format is applicable to E9C33424 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 101: Querying Tcp/Udp Connection Status: +Ipstatus

    Format AT+IPNETREAD=<n>[,<len>]<CR> <n>: Socket number, ranging from 0 to 5 Parameter <len>: Length of data to be read, ranging from 1 to 1024. +IPNETREAD:<n>,<len> Return Value <n>: Socket number, ranging from 0 to 5 Copyright © Neoway Technology Co., Ltd...
  • Page 102 ERROR The command is executed incorrectly. AT+IPNETREAD=1,10 The connection is not set up or the ERROR receiving mode is not manual reading. AT+IPNETREAD=,10 Command is incorrect. Socket number cannot be omitted. ERROR Copyright © Neoway Technology Co., Ltd...
  • Page 103: Data Incoming Report: +Ipurcread

    58.60.184.213,10405 on socket Example +UDPSETUP:1,OK Unsolicited data incoming report +IPURCREAD:1 on socket 1. AT+TCPLISTEN=6000,1 +TCPLISTEN:0,OK Set up TCP connection with the Connect remote on socket 1. AcceptSocket=1,ClientAddr=10.65.164.98 Unsolicited data incoming report on socket 1. +IPURCREAD:1 Copyright © Neoway Technology Co., Ltd...
  • Page 104: Querying The Status Of Data Sent By The Tcp Socket: +Tcpack

    20-byte data has been transmitted + TCPACK:0,20,20 through socket 0 and the receiver acknowledged 20-byte data. Example AT+TCPACK=0 128-byte data has been transmitted + TCPACK:0,128,120 through socket 0 and the receiver acknowledged 120-byte data. Copyright © Neoway Technology Co., Ltd...
  • Page 105: Setting Local Tcp Port: +Tcpport

    This command should have been executed before the AT+TCPSETUP  command is executed. Remarks If you do not use this command, the local port ID will be allocated  dynamically every time the UDP connection is set up. Copyright © Neoway Technology Co., Ltd...
  • Page 106: Setting Local Udp Port: +Udpport

    To obtain the port ID of the socket on the module Format AT+GETPORT=<socket> Parameter <socket>: socket ID +GETPORT:<n>,<typet> <port> <n>: socket ID Return Value <typet>: Connection type <port>: Port ID AT+GETPORT=0 Return the port ID of socket Example +GETPORT:0,TCP,42299 Copyright © Neoway Technology Co., Ltd...
  • Page 107 WM620 AT Command Manual AT+GETPORT=2 Return the port ID of socket +GETPORT:2,UDP,23353 AT+GETPORT=0 No connection has been set +GETPORT:0,NUL,0 up using socket 0. Remarks This command is supported on E8C33419 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 108: Ppp Heartbeat Packet Commands

    <CR><LF>+PKEEPALIVE: (list of supported <mode>)<CR><LF> <CR><LF>OK<CR><LF> AT+PKEEPALIVE=1 Enable the PPP KEEPALIVE function. AT+PKEEPALIVE=0 Disable PPP KEEPALIVE function. AT+PKEEPALIVE? +PKEEPALIVE: 1 Read the current setting of Example KEEPALIVE. AT+PKEEPALIVE=? +PKEEPALIVE: (0-1) Query the value range of the parameter. Copyright © Neoway Technology Co., Ltd...
  • Page 109: Setting Ppp Heartbeat Interval: + Iptimer

    Query the value range of the parameter. The setting by this command will not be saved after the module is powered down.  Remarks This command is applicable to E9C33427 and later versions  Copyright © Neoway Technology Co., Ltd...
  • Page 110: Dns Command

    Query the IP address of www.baidu.com. module returns address: 61.135.169.105. +DNS: 61.135.169.105 Example AT+DNS="www.baidu.com" Query the IP address of "www.baidu.com". module returns address: 61.135.169.105. +DNS:61.135.169.105 Remarks The URL length should not exceed 35 bytes. Copyright © Neoway Technology Co., Ltd...
  • Page 111: Icmp Protocol Command

    Ping statistics for 112.80.248.74: Packets: Sent = 4, Received = 4, Lose = 0 <0% loss> AT+PING=www.neoway.com Example PING www.neoway.com Pinging www.neoway.com.cn with 32 bytes of data: Reply from 112.127.8.18: bytes=32 time<1ms TTL=113 Send request Reply from 112.127.8.18: bytes=32 time<1ms TTL=113 packets continuously (32-bytes) Reply from 112.127.8.18: bytes=32 time<1ms TTL=113...
  • Page 112 Packets: Sent = 4, Received = 0, Lose = 4 <100% loss> AT+PING=192.168.2 The input parameter value is incorrect. ERROR This command is applicable to E933502 and later versions.  Remarks Set up a PPP connection before using this command.  Copyright © Neoway Technology Co., Ltd...
  • Page 113: Ftp At Commands

    58.60.184.213 through port 21. Log in to the server successfully. +FTPLOGIN:User logged in Example AT+FTPLOGIN=11.60.184.213,21,neow The IP address of the FTP server is ayftp,neoway incorrect. +FTPLOGIN:Error TimeOut Fail to log in to the server. Copyright © Neoway Technology Co., Ltd...
  • Page 114: Logging Out From The Ftp Server: +Ftplogout

    13.2 Logging Out from the FTP Server: +FTPLOGOUT Description To log out from the FTP server Format AT+FTPLOGOUT<CR> Parameter Return Value See the Example. AT+FTPLOGOUT +FTPLOGOUT:User logged out Example Log out from the FTP server Copyright © Neoway Technology Co., Ltd...
  • Page 115: Downloading Data From The Ftp Server: +Ftpget

    You need to connect to the FTP server again by running the AT+FTPLOGIN command. AT+FTPGET=,1,2 Obtain Example +FTPGET:446,drw-rw-rw- 1 user group 0 Apr 14 information 15:55 . in the root Copyright © Neoway Technology Co., Ltd...
  • Page 116 +FTP:Server Data Link Disconnect AT+FTPGET=t.txt,1,1,20 +FTPGET:102,23145679872312345678978945612345646578978 64545312365478946531654465654123645456465465789789564 31232154 command with offset parameter. +FTPGET:OK.total length is 102 +FTP:Server Data Link Disconnect AT+FTPGET=test.txt,1,1 +FTPGET:10,123456780 Obtain information +FTPGET:OK.total length is 10 in test.txt. +FTP:Server Data Link Disconnect Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 117: Uploading Data From The Ftp Server: +Ftpput

    AT+FTPPUT=test.txt,1,2,10 Upload the text.txt file, which is 10 in Example >1234567890 length. The transfer mode is ASCII mode and the operation mode is APPE. +FTPPUT:OK,10 AT+FTPPUT=test.txt,1,3,0 Delete the test.txt file. +FTPPUT:Delete File OK Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 118: Querying Ftp Connection Status: +Ftpstatus

    The FTP connection has been set up. The +FTPSTATUS:1,119.139.221.66,21 IP address of the server and the port are Example respectively 119.139.221.66 and 21. AT+FTPSTATUS Query the FTP connection status. +FTPSTATUS:0 The FTP connection has not been set up. Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 119: Tcp Server At Commands

    0: Indicates that the data is output directly after the socket receives it. 1: Indicates that the data received is saved in the buffer and you can run +IPNETREAD to read it when necessary. Return Value <CR><LF>+TCPLISTEN:<socket>,OK<CR><LF> Copyright © Neoway Technology Co., Ltd...
  • Page 120: Closing The Listening Socket: +Closelisten

    <recv_mode> specified in this command controls the data receiving mode of  the connection set up by Connect AcceptSocket. 14.3 Closing the Listening Socket: +CLOSELISTEN Description To close the listening socket and the listened sockets on the client Format AT+CLOSELISTEN<CR> Parameter <Socket>: Socket number Copyright © Neoway Technology Co., Ltd...
  • Page 121: Closing Client Socket: +Closeclient

    AT+CLOSECLIENT=1 Example With parameter: closed one socket. +CLOSECLIENT:1,remote link closed AT+CLOSECLIENT=1 No remote client connecting to socket 1. ERROR AT+CLOSECLIENT Sockets connecting to all remote clients have been closed. +CLOSECLIENT:All remote link closed Remarks Copyright © Neoway Technology Co., Ltd...
  • Page 122: Receiving Data From The Client: +Tcprecv(S)

    No TCP connection is set up on socket AT+TCPSENDS=0,10 through listening, some connection of other type might have +TCPSENDS:ERROR been set up. AT+TCPSENDS=0,10 10 seconds timed out. No data is input. > The module returns ERROR. +TCPSENDS:Error!TimeOut Copyright © Neoway Technology Co., Ltd...
  • Page 123: Querying The Socket Status On The Client: +Clientstatus

    If the connection type is INVALID, the link might be TCP/UDP client or server  listening connection instead of a TCP connection listened. Remarks You can use the +IPSTATUS to query the specific type.  Copyright © Neoway Technology Co., Ltd...
  • Page 124: Udp Server At Commands

    Query the value range of the listening port. AT+UDPLISTEN? Query the listening status. Here the server is in the listening status. +UDPLISTEN:listening status AT+UDPLISTEN? Query the listening status. Here the server is not in the listening status. +UDPLISTEN:not listening Copyright © Neoway Technology Co., Ltd...
  • Page 125: Closing The Listening Socket: +Closeudplisten

    This command is applicable to E9C33426 and later versions. 15.3 Closing Client Socket: +CLOSEUDPCLIENT Description To close sockets connecting to clients Format AT+CLOSEUDPCLIENT[=<socket>]<CR> Parameter Socket: SOCKET number Return Value <CR><LF>+CLOSEUDPCLIENT:<socket>,remote link closed<CR><LF> AT+CLOSEUDPCLIENT parameter, closed Example multiple sockets. +CLOSEUDPCLIENT:1,remote link closed Copyright © Neoway Technology Co., Ltd...
  • Page 126: Receiving Data From The Client: +Udprecv(S)

    This command is applicable to E9C33426 and later versions.  15.5 Sending Data to the Client: +UDPSENDS Description To send data to the client Format AT+UDPSENDS=<socket>,<length><CR> Parameter <socket>: The value of AcceptSocket, that is, the socket of the module. Copyright © Neoway Technology Co., Ltd...
  • Page 127: Querying The Socket Status On The Client: +Udpclientstatus

    Format AT+UDPCLIENTSTATUS=<socket><CR> <socket>: The value of AcceptSocket, that is, the socket of the module. See the Parameter description of the AT+UDPLISTEN command. +UDPCLIENTSTATUS:<socket>,<CONNECT DISCONNECT>,<UDP INVALID> Return Value <CONNECT DISCONNECT>: Socket status, value: CONNECT DISCONNECT Copyright © Neoway Technology Co., Ltd...
  • Page 128 If the connection type is INVALID, the link might be TCP/UDP client or server  listening connection instead of a UDP connection listened. Remarks You can use the +IPSTATUS to query the specific type.  This command is applicable to E9C33426 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 129: Unlimited Udp Server At Commands

    This command is valid only after a PPP connection is set up successfully.  Remarks Only the SIM cards with fixed IP addresses can be used as servers.  This command is applicable to E9C33426 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 130: Receiving Data From The Client: +Fudprecv(S)

    See the Example. AT+FUDPSENDS=10.230.214.106,44416, Send 10-byte data to the client (IP: >0123456789 10.230.214.106, 44416). +FUDPSENDS:0,10 Example AT+FUDPSENDS=10.230.214.106,44416, The listening is not enabled. +FUDPSENDS:ERROR AT+FUDPSENDS=10.230.214.106,44416, 10 seconds timed out. No data is input. The module returns ERROR. Copyright © Neoway Technology Co., Ltd...
  • Page 131: Closing Listening For Udp Server: +Closefudplisten

    To close listening for UDP server Format AT+CLOSEFUDPLISTEN<CR> Parameter <CR><LF>+CLOSEFUDPCLIENT:<socket>,remote link closed<CR><LF> Return Value <CR><LF>+CLOSEFUDPCLIENT:<socket>,local link closed<CR><LF> AT+CLOSEFUDPLISTEN Example Close listening for UDP server +CLOSEFUDPLISTEN:0,closed Remarks This command is applicable to E9C33426 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 132: Http Commands

    AT+HTTPPARA=url, The AT command is not complete. ERROR AT+HTTPPARA=port,80 Set the destination port ID to 80. AT+HTTPPARA=port,8080 Set the destination port ID to 8080. Remarks This command is applicable to E9C33426 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 133: Setting Up Http Connection: +Httpsetup

    Ensure that the PPP connection has been set up successfully (AT+XIIC=1)  before setting an HTTP connection. This command is applicable to E9C33426 and later versions.  17.3 Executing HTTP Request: +HTTPACTION Description To execute an HTTP request Format AT+HTTPACTION=<mode>[,<length>]<CR> Copyright © Neoway Technology Co., Ltd...
  • Page 134 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 Date: Thu, 28 Nov 2013 03:06:57 GMT Connection: close Content-Length: 13842 /*neoway homepage, html format, 13842 bits*/ Copyright © Neoway Technology Co., Ltd...
  • Page 135 Set-Cookie: responds. 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:Link Closed AT+HTTPPARA=url,121.15.200.97/Service1.asmx/Get Set URL Note Set the destination port AT+HTTPPARA=port,8080 ID as 8080. Copyright © Neoway Technology Co., Ltd...
  • Page 136 +HTTPCLOSE:Connection Closed finished responding. AT+HTTPPARA=url,www.neoway.com.cn/en/index.asp Set URL The HTTP connection is AT+HTTPPARA=port,80 set up through port 80. AT+HTTPSETUP HTTP SETUP OK Send 76-byte user- defined packets AT+HTTPACTION=99,76 >HEAD /en/index.aspx HTTP/1.1 connection: close Copyright © Neoway Technology Co., Ltd...
  • Page 137 You need to comply with the HTTP protocol when defining packets.  Add a carriage return to the end of the packets if the HTTP request is set to  Remarks custom packet mode. This command is applicable to E9C33426 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 138: Closing Http Connection: +Httpclose

    <data>: Data received through the HTTP connection Return Value See the Example. +HTTPRECV: HTTP/1.1 200 OK Cache-Control:private Content-Length: 13842 Report data Example received from the HTTP Content-Type:text/html; charset=utf-8 connection. Server:Microsoft-IIS/7.5 Set- Cookie:ASP.NET_SessionId=pvlaai3fizxg44eyvyqsyenk; path=/; HttpOnly Copyright © Neoway Technology Co., Ltd...
  • Page 139: Http Connection Closing: +Httpclosed

    Unsolicited report of the HTTP connection closing Format <CR><LF>+HTTPCLOSED:HTTP Link Closed<CR><LF> Parameter Return Value See the Example. Unsolicited report of the HTTP connection Example +HTTPCLOSED:HTTP Link Closed closing Remarks This command is applicable to E9C33426 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 140: Https Command

    You need to set new HTTP parameters for new HTTPS requests.  After you run the +HTTPSCLOSE command, the connection is closed and  Remarks the HTTPS parameters are cleared. This command is applicable to E9C33424 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 141: Setting Up Https Connection: +Httpssetup

    The connection is set up successfully only after you set the destination  address and port ID correctly. Remarks Ensure PPP connection has been set up successfully before an HTTPS  connection is set up. This command is applicable to E9C33424 and later versions.  Copyright © Neoway Technology Co., Ltd...
  • Page 142: Executing Https Request: +Httpsaction

    HTTPS server. X-Powered-By: Servlet/2.5 JSP/2.1 Content-Type: text/html; charset=ISO-8859-1 Date: Sat, 15 Feb 2014 05:58:54 GMT Content-Length: 7630 Connection: close Set-Cookie: JSESSIONID=8V1dS1CpzlPcyNl2LzJZLQgDxWclpMJzP 3FHZhVhpGb83GVM02sn!1955538012; path=/; HttpOnly /*homepage content, html format*/ The server responded …….. then Copyright © Neoway Technology Co., Ltd...
  • Page 143 Content-Length: 0 The HTTPS server responded. Connection: close Set-Cookie: JSESSIONID=qyNVS1DSmnjS9cvh72yW1xz1jtjBBRj0yv 0zTmMy2LVyBG7HK02b!1955538012; path=/; HttpOnly +HTTPSCLOSE:Link Closed AT+HTTPSPARA=url,mybank.icbc.com.cn/icbc/perbank/ index.jsp AT+HTTPSPARA =port,443 OPEN_MODE AT+HTTPSPARA Custom packet mode HTTPS SETUP OK AT+HTTPSACTION=99,500 >POST /icbc/perbank/index.jsp HTTP/1.1<CRLF> /*custom header information*/ Copyright © Neoway Technology Co., Ltd...
  • Page 144: Closing Https Connection: +Httpsclose

    Description To close and HTTPS connection Format AT+HTTPSCLOSE<CR> Parameter Return Value See the example. AT+HTTPSCLOSE Example Close the HTTPS connection. +HTTPSCLOSE:Link Closed Remarks After you run the +HTTPSCLOSE command, the HTTPS connection is  Copyright © Neoway Technology Co., Ltd...
  • Page 145: Receiving Https Data: +Httpsrecv

    This command is applicable to E9C33424 and later versions. 18.6 HTTPS Closing: +HTTPSCLOSE Description Unsolicited report of the HTTPS connection closing Format <CR><LF>+HTTPSCLOSE: Link Closed <CR><LF> Parameter Return Value See the Example. Example +HTTPSCLOSE: Link Closed Unsolicited report of the HTTP connection Copyright © Neoway Technology Co., Ltd...
  • Page 146 WM620 AT Command Manual closing Remarks This command is applicable to E9C33424 and later versions. Copyright © Neoway Technology Co., Ltd...
  • Page 147: A Reference Process Of At Command Programming

    One PDU message contains the above 9 parts and the parameter values are determined by the actual situation. If the SMSC address length is 0, replace 08 with 00 and the SMSC type and address fields must be omitted. Copyright © Neoway Technology Co., Ltd...
  • Page 148 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 149: Flowchart Of Sending Text Sms Messages

    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 150: Flowchart Of Sending Pdu Sms Messages

    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 151: Flowchart Of At Commands To Establish Tcp Connection

    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 152 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 153: Flowchart Of Receiving Sms Messages

    AT+CNMI=2,1,0,0,0 indicates there is a reminder for new messages and the messages 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 154 SN)based on the SMS indication code and read the message of that SN. The message is AT+CMGR=index\r in the following format: +CMGR:"REC Read the message UNREAD0","8615013473810",,"2012/09/15 successfully 15:20:32+32"Neoway Technology Neoway Technology is the content of the message received. Copyright © Neoway Technology Co., Ltd...
  • Page 155: Flowchart Of Sending Sms Messages

    Fail to send +CMGS: 117 (not a fixed value) 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 156: Common At Commands For Sms Tx/Rx

    2012/09/08 16:30:08+32" Read AT+CMGR=1 messages Shenzhen Neoway Technology If AT+CMGF=0, the  command to read all AT+CMGL ="ALL" Read all SMS AT+CMGL="ALL" SMS messages is messages List all messages AT+CMGL =4. The unread SMS  Copyright © Neoway Technology Co., Ltd...
  • Page 157 AT+CPMS? 1: Indicates the number of +CPMS: the messages. Query "SM", 1, 50, "SM", 1, 50, number of SMS AT+CPMS? 50: indicates the number of "MT", 1, 50 messages messages that can be stored. Copyright © Neoway Technology Co., Ltd...
  • Page 158: Flowchart Of At Commands To Log In To The Ftp Server

    WM620 AT Command Manual A.8 Flowchart of AT Commands To Log In to the FTP Server Figure A-6 Flowchart of AT commands to log in to the FTP server Copyright © Neoway Technology Co., Ltd...
  • Page 159 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 160 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