Neoway_WM620 WCDMA Module AT Command Set V2.0

Neoway_WM620 WCDMA Module AT Command Set V2.0
Neo_WM620
AT Command Set
Version 2.0
Neoway Technology Co., Ltd.
Let's enjoy the wireless life
Neo_WM620 AT Command Set
Copyright © Neoway Technology Co., Ltd 2013. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without
prior written consent of Shenzhen Neoway Technology Co., Ltd.
is the trademark of Shenzhen Neoway Technology Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
This document provides guide for users to use the WM620.
This document is intended for system engineers (SEs), development engineers, and test engineers.
The information in this document is subject to change without notice due to product version update or
other reasons.
Every effort has been made in preparation of this document to ensure accuracy of the contents, but all
statements, information, and recommendations in this document do not constitute a warranty of any
kind, express or implied.
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
Support@neoway.com.cn
Website: http://www.neoway.com.cn
Copyright © Neoway Technology Co., Ltd
i
Neo_WM620 AT Command Set
Revision Record
Issue
Changes
Date
V1.0
Initial draft
2013-04-23
V1.1
3034 baseline
2013-09-18
V1.2
Modified the return value format
2013-09-30


V1.3





V1.4






V1.5





V1.6


Modified the description of the TCP and UDP commands
Modified the example of +DNS
Deleted the +SIGNAL command
Added remarks for +ENPWRSAVE
Modified TCP server commands
2013-11-26
Added examples and remarks for the +TCPSEND, +TCPSENDS,
and +CLOSECLIENT commands
Revised errors tested
Added the +PPPSTATUS command
Added the +GETPORT command
Modified and added some FTP commands
2013-12-13
Modified the return codes in the example of the +FTPGET command
Modified the return value description of the +FTPPUT command
Modified the remarks for +DNS
Modified the return value description and remarks of the
+CLIENTSTATUS command
Modified the return value description of the +TCPPORT command
Modified the return value description of the +UDPPORT command
2013-12-18
Modified the +CPAS command
Modified the +FTPPUT command
Modified the example of the +GETPORT command
Added the timeout examples for the +TCPSEND, +UDPSEND,
+TCPSENDS commands
2013-12-24
V1.7
Modified some errors
2013-01-01
V1.8
Modified some errors
2013-01-04
V1.9
Modified the brackets not used in compliant with standards
2013-01-06
V2.0


Modified the return code of the ATD commands
Modified the flowcharts
Copyright © Neoway Technology Co., Ltd
2013-01-11
ii
Neo_WM620 AT Command Set
Contents
Boot LOG Instruction ................................................................................................................. 1
LED Indicators .............................................................................................................................. 1
1 General Commands ................................................................................................................. 2
1.1 Querying the Manufacturer: +CGMI ........................................................................................................... 2
1.2 Querying the Module Model: +CGMM ....................................................................................................... 2
1.3 Querying the Version: +CGMR .................................................................................................................... 2
1.4 Querying IMEI: +CGSN .............................................................................................................................. 3
1.5 Querying the IMSI: +CIMI .......................................................................................................................... 3
1.6 Obtaining the ICCID of the SIM Card: +CCID ........................................................................................... 4
2 Mobile Device Control and Status Report .......................................................................... 4
2.1 Querying the Module Status: +CPAS ........................................................................................................... 4
2.2 Querying the Network Registration Status: +CREG .................................................................................... 5
2.3 Setting Module Functions: +CFUN ............................................................................................................. 6
2.4 Enabling or Disabling the Sleep Mode: +ENPWRSAVE............................................................................. 7
2.5 Clock: +CCLK ............................................................................................................................................. 7
2.6 Setting the Baudrate of the Module: +IPR ................................................................................................... 8
2.7 Entering the PIN Codes: +CPIN .................................................................................................................. 8
2.8 Enabling PIN and Querying MT and Network Device: +CLCK.................................................................. 9
2.9 Modifying the Password of the PIN: +CPWD ........................................................................................... 10
2.10 Extended Error Report: +CEER ............................................................................................................... 11
2.11 Setting Error Information: +CMEE .......................................................................................................... 12
2.12 Setting the Network Model: +PREF ........................................................................................................ 12
3 Network Service Commands ............................................................................................... 13
3.1 Querying Signal Quality: +CSQ................................................................................................................. 13
3.2 Selecting and Registering a GSM Network: +COPS ................................................................................. 14
4 Calling Control Commands ................................................................................................. 15
4.1 Setting the Speaker Volume: +CLVL ......................................................................................................... 15
4.2 Mute Control: +CMUT .............................................................................................................................. 16
4.3 Dialing Command: ATD............................................................................................................................. 16
4.4 Call Answering: ATA ................................................................................................................................. 17
4.5 Hanging Up Calls: ATH ............................................................................................................................. 18
4.6 Sending DTMF Tone: +VTS ...................................................................................................................... 18
4.7 Auto-Answer: ATS0 ................................................................................................................................... 19
4.8 Handfree Switch: +HANDFREE ............................................................................................................... 19
4.9 Starting the DTMF Detection: +DTMFDETECT ...................................................................................... 20
4.10 MIC Volume Control: +MICL.................................................................................................................. 20
5 SMS Commands ..................................................................................................................... 21
Copyright © Neoway Technology Co., Ltd
iii
Neo_WM620 AT Command Set
5.1 Selecting SMS Services: CSMS ................................................................................................................. 21
5.2 Setting Preferred SMS Storage: +CPMS .................................................................................................... 21
5.3 Setting SMS Inputting Mode: +CMGF ...................................................................................................... 22
5.4 Setting the TE Character Set: +CSCS ........................................................................................................ 23
5.5 Setting the New Message SMS Indications Mode: +CNMI....................................................................... 23
5.6 Reading SMS Messages: +CMGR ............................................................................................................. 25
5.7 SMS Message List: +CMGL ...................................................................................................................... 26
5.8 Sending SMS Messages: +CMGS .............................................................................................................. 28
5.9 Writing SMS Messages: +CMGW ............................................................................................................. 28
5.10 Sending Stored SMS Messages: +CMSS ................................................................................................. 29
5.11 Deleting SMS Messages: +CMGD .......................................................................................................... 30
5.12 Setting the SMSC Number: +CSCA ........................................................................................................ 30
5.13 Setting the Parameters of the Text Mode: +CSMP ................................................................................... 31
5.14 Displaying the Parameters of the Text Mode: +CSDH ............................................................................ 32
6 Phonebook Commands ......................................................................................................... 32
6.1 Selecting Phonebook Storage: +CPBS ....................................................................................................... 32
6.2 Reading the Phonebook: +CPBR ............................................................................................................... 33
6.3 Querying the Phonebook: +CPBF .............................................................................................................. 34
6.4 Writing Information to the Phonebook: +CPBW ....................................................................................... 35
7 Supplementary Service Commands ................................................................................... 35
7.1 Call Forwarding: +CCFC ........................................................................................................................... 35
7.2 Call Waiting: +CCWA ................................................................................................................................ 36
7.3 Call Holding and Multi-party Conversation: +CHLD ................................................................................ 37
8 GPRS/3G Commands ............................................................................................................ 38
8.1 Setting PDP Format: CGDCONT .............................................................................................................. 38
9 TCP/UDP Data Service .......................................................................................................... 39
9.1 Setting Up a PPP Link: +XIIC ................................................................................................................... 39
9.2 Querying the PPP Connection Status: +PPPSTATUS ................................................................................ 40
9.3 Setting Up TCP Connection: +TCPSETUP ............................................................................................... 41
9.4 Sending TCP Data: +TCPSEND ................................................................................................................ 42
9.5 Receiving TCP Data: +TCPRECV ............................................................................................................. 42
9.6 Closing TCP Connection: +TCPCLOSE .................................................................................................... 43
9.7 Setting Up UDP Connection: +UDPSETUP .............................................................................................. 43
9.8 Sending UDP Data: +UDPSEND ............................................................................................................... 44
9.9 Receiving UDP Data: +UDPRECV ........................................................................................................... 44
9.10 Closing UDP Connection: +UDPCLOSE ................................................................................................ 45
9.11 Querying TCP/UDP Link Status: +IPSTATUS ........................................................................................ 45
9.12 Querying the Status of Data Sent by the TCP Link: +TCPACK .............................................................. 46
9.13 Setting Local TCP Port: +TCPPORT ....................................................................................................... 47
9.14 Setting Local UDP Port: +UDPPORT ...................................................................................................... 47
9.15 Setting Socket Timeout Parameter: +SSTP .............................................................................................. 48
Copyright © Neoway Technology Co., Ltd
iv
Neo_WM620 AT Command Set
10 DNS Command .................................................................................................................... 48
10.1 Querying the IP Address: +DNS .............................................................................................................. 48
11 FTP AT Commands .............................................................................................................. 49
11.1 Logging In to the FTP Server: +FTPLOGIN............................................................................................ 49
11.2 Logging Out from the FTP Server: +FTPLOGOUT ................................................................................ 49
11.3 Downloading Data from the FTP Server: +FTPGET ............................................................................... 50
11.4 Uploading Data from the FTP Server: +FTPPUT .................................................................................... 51
11.5 Querying FTP Link Status: +FTPSTATUS............................................................................................... 52
12 TCP Server AT Commands ................................................................................................ 52
12.1 Obtaining the Local IP Address: +GETIP ................................................................................................ 52
12.2 Setting TCP Listening for the Server: +TCPLISTEN .............................................................................. 53
12.3 Closing the Listening Link: +CLOSELISTEN ........................................................................................ 53
12.4 Closing Connections with the Client: +CLOSECLIENT ......................................................................... 54
12.5 Receiving Data from the Client: +TCPRECV(S) ..................................................................................... 54
12.6 Sending Data to the Client: +TCPSENDS ............................................................................................... 55
12.7 Querying the Link Status on the Client: +CLIENTSTATUS.................................................................... 55
A Reference Process of AT Command Programming ........................................................ 57
A.1 Content of PDU SMS Messages................................................................................................................ 57
A.2 Flowchart of Sending Text SMS Messages ............................................................................................... 59
A.3 Flowchart of Sending PDU SMS Messages .............................................................................................. 60
A.4 Flowchart of AT Commands to Establish TCP Link.................................................................................. 61
A.5 Flowchart of Receiving SMS Messages .................................................................................................... 63
A.6 Flowchart of Sending SMS Messages ....................................................................................................... 65
A.7 Common AT Commands for SMS TX/RX ................................................................................................ 66
A.8 Flowchart of AT Commands To Log In to the FTP Server ........................................................................ 68
Copyright © Neoway Technology Co., Ltd
v
Neo_WM620 AT Command Set
Boot LOG Instruction
After the 3G/GPRS module is booted, the UART1 outputs the following boot LOG:
+EIND: 128
+EUSIM: 1
LOG
LOG Description
1
+EIND: 128
Indicates that the module starts up successfully and can receive AT
commands.
2
+EUSIM: 1
Detect the SIM card.
For a China Mobile card, the module returns +EUSIM: 0.
For a China Unicom 2G card, the module returns +EUSIM: 1.
When the module does not detect any SIM card, the module returns
+EUSIM:ERROR.
Remarks
Users can determine whether the module starts up successfully or not by
detecting "+EIND:128".
LED Indicators
TE Status
LED Status
1
Registered 2G network successfully
and in the idle status
Blinking (500 ms ON / 1500 ms OFF)
2
Registered 3G network successfully
and in the idle status
Blinking (100 ms ON / 2900 ms OFF)
3
Search networks
Blinking twice (100 ms ON / 100 ms OFF / 100 ms ON /
2700 ms OFF)
4
Service mode (voice, data)
Blinking (125 ms ON / 125 ms OFF)
Remarks
Copyright © Neoway Technology Co., Ltd
1
Neo_WM620 AT Command Set
1 General Commands
1.1 Querying the Manufacturer: +CGMI
Description
To query the manufacturer information
Format
AT+CGMI<CR>
Parameter
N/A
Return
Value
<CR><LF><manufacturer><CR><LF>
Example
AT+CGMI
<CR><LF>OK<CR><LF>
+CGMI: Neoway Corp Ltd
OK
Remarks
N/A
1.2 Querying the Module Model: +CGMM
Description
To query the module model
Format
AT+CGMM<CR>
Parameter
N/A
Return
Value
<CR><LF><model><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR:<err><CR><LF>
Example
AT+CGMM
+CGMM: WM620
OK
Remarks
N/A
1.3 Querying the Version: +CGMR
Description
To query the software version
Format
AT+CGMR<CR>
Parameter
N/A
Return
Value
<CR><LF><version><CR><LF>
<CR><LF>OK<CR><LF>
Copyright © Neoway Technology Co., Ltd
2
Neo_WM620 AT Command Set
or
<CR><LF>+CME ERROR:<err><CR><LF>
Example
AT+CGMR
+CGMR: E8C31107
OK
Remarks
N/A
1.4 Querying IMEI: +CGSN
Description
To query the International Mobile Equipment Identity (IMEI) of the module
Format
AT+CGSN<CR>
Parameter
N/A
Return
Value
<CR><LF><IMEI><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR:<err><CR><LF>
Example
AT+CGSN
864894010024181
OK
Remarks
The IMEI is a character string of 15 digits.
1.5 Querying the IMSI: +CIMI
Description
To query the international mobile subscriber identification (IMSI)
Format
AT+CIMI<CR>
Parameter
N/A
Return
Value
<CR><LF><IMSI><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
Example
AT+CIMI
460022201575463
OK
Remarks
IMSI is a character string of 15 digits and starts with 3-bit MCC and 2-bit MNC. It is used
Copyright © Neoway Technology Co., Ltd
3
Neo_WM620 AT Command Set
to authenticate the SIM card.
1.6 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
N/A
Return
Value
<CR><LF><ICCID><CR><LF>
<CR><LF>OK<CR><LF>
Or
<CR><LF>ERROR<CR><LF>
Example
AT+CCID <CR>
Read command
+CCID: 89860002190810001367
OK
AT+CCID <CR>
ERROR
Remarks
Read command
The SIM card is not inserted.
The ICCID number is a character string of 20 digits.
2 Mobile Device Control and Status Report
2.1 Querying the Module Status: +CPAS
Description
To query the work status of the module
Format
AT+CPAS<CR>
Parameter
<pas>:
0: ready. The module is ready and is able to execute AT commands.
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.
Return
Value
<CR><LF>+CPAS: <pas><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <error><CR><LF>
Example
AT+CPAS
The module is ready.
+CPAS: 0
OK
Copyright © Neoway Technology Co., Ltd
4
Neo_WM620 AT Command Set
AT+CPAS=?
The module is in any possible status.
+CPAS: (0,3,4)
OK
AT+CPAS
+CME ERROR: <error>
Remarks
N/A
2.2 Querying the Network Registration Status: +CREG
Description
To query the network registration status of the module
Format

AT+CREG=<n><CR>

AT+CREG? <CR>
Parameter
<n>:
0: Forbid unsolicited result codes of network registration (default setting).
1: Allow unsolicited result codes of network registration.
2: Allow unsolicited location information (Cell ID, Local ID) of network registration.
Return
Value
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]<CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
<n>:
0: Forbid unsolicited result codes of network registration (default setting).
1: Allow unsolicited result codes of network registration.
2: Allow unsolicited location information (Cell ID, Local ID) of network registration.
<stat>:
0: Unregistered. The device is not searching for new carriers.
1: Registered the local network
2: Unregistered. The device is searching for base stations.
3: The registration is rejected.
4. Unknown code
5: Registered, roaming
<lac>: Location Area Code
<ci>: string type; two-byte cell ID in hexadecimal format
<Act>:
0: GSM
2: UTRAN
3: GSM w/EGPRS
Copyright © Neoway Technology Co., Ltd
5
Neo_WM620 AT Command Set
Example
AT+CREG=1
OK
AT+CREG?
+CREG: 0,1
OK
AT+CREG=?
+CREG: (list of supported <n>s)
+CREG: (0-2)
OK
Remarks
N/A
2.3 Setting Module Functions: +CFUN
Description
To select the functions of the module by setting <fun>
<fun> supports only a few values.
Format
Parameter

AT+CFUN=<fun>[,<rst>]<CR>

AT+CFUN=?<CR>
<fun>:
1: All functions
4: Turn off the RF transmit and receive circuit of the module (flight mode).
0: Turn off the radio an SIM power (minimum functions).
<rst>:
0: Do not reset the MT before setting it to <fun> power level.
1: Reset the MT before setting it to <fun> power level
Return
Value
<CR><LF>+CFUN: (list of supported <fun>s), (list of supported <rst>s) <CR><LF>
<CR><LF>OK<CR><LF>
OR
<CR><LF>+CME ERROR: <err><CR><LF>
Example
AT+CFUN=1
OK
AT+CFUN?
+CFUN: 4
OK
AT+CFUN=?
+CFUN: (0,1,4),(0,1)
Copyright © Neoway Technology Co., Ltd
+CFUN: (list of supported <fun>s), (list of
supported <rst>s)
6
Neo_WM620 AT Command Set
OK
Remarks
If using the UART Debug Tool on the PC, you must close and then open the UART after
you enter restart parameters so that the module can respond to the AT command.
2.4 Enabling or Disabling the Sleep Mode: +ENPWRSAVE
Description
To enable or disable the sleep mode
Format

AT+ENPWRSAVE=<n> <CR>

AT+ENPWRSAVE?<CR>
Parameter
<n>:
0: Enable the sleep mode. (The module enters the sleep mode when the DTR signal is at
low level.)
1: Disable the sleep mode
(The module cannot enter the sleep mode if <n> is not 0.)
Return
Value
See the Example.
Example
AT+ENPWRSAVE=1
OK
AT+ENPWRSAVE?
+ENPWRSAVE: 1
OK
Remarks
Only 0 and 1 are supported.
This command supports only USB ports.
2.5 Clock: +CCLK
Description
To set and query the real-time clock
Format

AT+CCLK=<time> <CR>

AT+CCLK? <CR>
Parameter
< time >: Character string in format of YY/MM/DD,hh:mm:ss+TZ.
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
Value
See the Example.
Example
AT+CCLK="11/10/14,09:30:16"
OK
AT+CCLK?
Copyright © Neoway Technology Co., Ltd
7
Neo_WM620 AT Command Set
+CCLK: "11/10/14,09:32:04"
OK
Remarks
N/A
2.6 Setting the Baudrate of the Module: +IPR
Description
To set the baudrate of the module
Format

AT+IPR=<baud rate> <CR>

AT+IPR? <CR>
Parameter
<baud rate>: The value can be 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600,
115200, and 230400.
Return
Value
See the Example.
Example
AT+IPR=115200
OK
AT + IPR =?
+IPR: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400
OK
AT+IPR?
+IPR: 115200
OK
Remarks
The default baudrate is 115200.
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>
Parameter
<pin>, <newpin>: string type values
Return
Value
<CR><LF>+CPIN:<code><CR><LF>
<CR><LF>OK<CR><LF>
<code>:
READY: No password
SIM PIN: Enter PIN code.
SIM PUK: Enter PUK code.
Copyright © Neoway Technology Co., Ltd
8
Neo_WM620 AT Command Set
SIM PIN2: Enter PIN2 code.
SIM PUK2: Enter PUK2 code.
Example
AT+CPIN?
+CPIN: READY
OK
Remarks
N/A
2.8 Enabling PIN and Querying MT and Network Device:
+CLCK
Description
To lock, unlock or interrogate an MT or a network facility
Format
AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]<CR>
Parameter
<fac> :
"OI": Outgoing international calls
"AI": All incoming calls
"IR": Incoming calls when roaming outside the home country
"SC": SIM card
"AO": All outgoing calls
"OX": All outgoing international calls except to the home country
"FD": SIM fixed dialing memory feature
"PN": Network authentication
"PU": Network subsystem authentication
PP: Service provider authentication
"PC": Corporate authentication
<mode>:
0: Unlock
1: Lock
2: Query the status
<status>:
0: not active
1: active
<passwd>: Password or code, string type
<class>:
1: Voice service
2: Data service
4: Fax service
8: SMS
16: Synchronous data service
Copyright © Neoway Technology Co., Ltd
9
Neo_WM620 AT Command Set
32: Asynchronous data service
64: Dedicated packet access
128: Dedicated PAD access
Return
Value
when <mode>=2 and command successful:
Example
AT+CLCK="SC",2
<CR><LF>+CLCK: <status> [, <class1> [<CR><LF>+CLCK: <status>, <class2>
[...]]]<CR><LF>
+CLCK: 0
OK
AT+CLCK=?
+CLCK: (list of supported <fac>s)
+CLCK:
("PF","SC","AO","OI","OX","AI","IR",
"AB","AG","AC","FD","PN","PU","PP",
"PC")
OK
Remarks
N/A
2.9 Modifying the Password of the PIN: +CPWD
Description
To modify the password of the lock function of the module
Format
AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>
Parameter
<fac>:
"P2": SIM PIN2
"OI": Outgoing international calls
"AI": All incoming calls
"IR": Incoming calls when roaming outside the homing place
"SC": SIM card
"AO": All outgoing calls
"OX": All outgoing international calls except to the home country
"AB": All calling services
"AG": All outgoing call services
"AC": All incoming call services
<oldpwd>: Old password or code, string type
<newpwd>: New password or code, string type
Return
Value
<CR><LF>+CPWD: list of supported (<fac>,<pwdlength>)s<CR><LF>
<CR><LF>+CME ERROR: <err><CR><LF>
Copyright © Neoway Technology Co., Ltd
10
Neo_WM620 AT Command Set
Example
AT+CPWD=?
+CPWD: list of supported (<fac>,
+CPWD:
("SC",8),("P2",8),("AO",4),("OI",4),
<pwdlength>)s
("OX",4),("AI",4),("IR",4),("AB",4),
("AG",4),("AC",4)
OK
Remarks
Lock the SIM card before modifying the password for the SIM card. Otherwise, the
module returns +CME ERROR: SIM failure.
The password is in the string type, for example 1234.
2.10 Extended Error Report: +CEER
Description
To report the call releasing cause if a call fails to be initiated or answered
Format
AT+CEER<CR>
Parameter
N/A
Return
Value
<CR><LF>+CEER: <report ><CR><LF>
<CR><LF>OK<CR><LF>
<report>: The ME manufacturer provides the extended report about the following error
causes:
Failure of the latest call (initiate or answer) or modification during the call
Release of the latest call
The latest 3G/GPRS attach failure or PDP context activation
The latest 3G/GPRS detach or PDP context deactivation
The detailed report causes are defined in GSM 04.08.
Example
ATH
SPEECH OFF
Query after ending a call which is
initiated by the module.
RELEASE
OK
AT+CEER
+CEER: Client ended call
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
11
Neo_WM620 AT Command Set
2.11 Setting Error Information: +CMEE
Description
To enable or disable the +CME ERROR:<err> result code
Format

AT+CMEE=<n><CR>

AT+CMEE? <CR>
Parameter
<n>:
0: Disable the +CME ERROR:<err> result code and display ERROR.
1: Enable the +CME ERROR:<err> result code and use the numeric <err> value.
2: Enable the +CME ERROR:<err> result code and use verbose <err> values.
Return
Value
See the Example.
Example
AT+CMEE=1
OK
AT+CMEE=?
+CMEE: (0,1,2)
OK
AT+CMEE?
+CMEE: 1
OK
Remarks
N/A
2.12 Setting the Network Model: +PREF
Description
To set the network model
Format

AT+PREF=<value> <CR>

AT+PREF=? <CR>

AT+PREF? <CR>
Parameter
<value>:
4: AUTO
13: GSM
14: WCDMA
Return
Value
See the Example.
Example
AT+PREF=14
OK
AT+PREF=?
Copyright © Neoway Technology Co., Ltd
12
Neo_WM620 AT Command Set
+PREF: (4,13,14)
OK
AT+PREF?
+PREF: WCDMA
OK
Remarks
The default status setting is AUTO. The parameter setting of this command can be saved
after the module is powered off.
3 Network Service Commands
3.1 Querying Signal Quality: +CSQ
Description
To check the receiving signal strength indication (RSSI) and the bit error rate (BER) of the
channel
Format
AT+CSQ<CR>
Parameter
N/A
Return
Value
<CR><LF> +CSQ: < signal >, <ber><CR><LF>
<CR><LF> OK <CR><LF>
< signal >
The following table shows the relationship between the signal and the RSSI.
signal
rssi
0
<4 or 99
<-107 dBm or unknown
1
<10
<-93dBm
2
<16
<-71 dBm
3
<22
<-69dBm
4
<28
<-57dBm
5
>=28
>=-57 dBm
<ber>
Example
0...7
Refer to the value of RXQUAL in the table of GSM 05.08
8.2.4.
99
Unknown or not detectable
AT+CSQ
+CSQ: 1, 99
OK
Copyright © Neoway Technology Co., Ltd
13
Neo_WM620 AT Command Set
Remarks
N/A
3.2 Selecting and Registering a GSM Network: +COPS
Description
To select and register a network
Format

AT+COPS=<mode>[,<format>[,<oper>>[,<AcT>]]]<CR>

AT+COPS?<CR>
Parameter
<mode>: To set automatic network selection or manual selection
0: Automatic selection (ignore the parameter <oper>)
1: Manual selection
2: Deregister from the network
3: Set <format> only
4: Manual/automatic selection (if the manual selection fails, automatic mode starts)
<format>:
0: Long alphanumeric <oper> (default value)
1: Short format alphanumeric <oper>
2: Numeric <oper>
<oper>:
It is given in <format>. This field may be in 16-character long alphanumeric format,
8-characters short alphanumeric format, or 5-character numeric format (MCC/MNC).
<AcT>: Indicates the radio access technology and its value can be 0, 1, and 2.
0: GSM
1: GSM compact
2: UTRAN
Return
Value
Example
AT+COPS=0,0
Set to the long alphanumeric format
OK
AT+COPS=0,2
Set to digital mode
OK
AT+COPS?
+COPS: 0,0, " CHINA
MOBILE ",0"
China Mobile
OK
AT+COPS?
+COPS: 0,2,"46000",0
If it is set to digital mode, get the
number 46000
OK
Copyright © Neoway Technology Co., Ltd
14
Neo_WM620 AT Command Set
AT+COPS?
+COPS: 0,0," CHN-UNICOM ",2
China Unicom
OK
AT+COPS?
+COPS: 0,2,"46001",2
If it is set to digital mode, then get the
number 46001.
OK
Remarks

When you try to query the current network selection parameters, <AcT> is displayed
only if the device supports UMTS.

<AcT> indicates the access technology of the manual attach procedure if you choose
GSM/UMTS dual mode and select network manually.

Ignore the parameter <AcT> if you set automatic network selection.
4 Calling Control Commands
4.1 Setting the Speaker Volume: +CLVL
Description
To set the level of the speaker volume, which is valid during a call
Format

AT+CLVL=<level> <CR>

AT+CLVL?<CR>

AT+CLVL=? <CR>
Parameter
<level>: Integers, ranging from 0 to 6
Return
Value
See the Example.
Example
AT+CLVL=3
OK
AT+CLVL?
+CLVL:3
OK
AT+CLVL=?
+CLVL: (0-6)
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
15
Neo_WM620 AT Command Set
4.2 Mute Control: +CMUT
Description
To set mute control of the voice calls.
The setting is valid during a call
Format
Parameter

AT+CMUT=<n> <CR>

AT+CMUT? <CR>
<n>:
0: Mute off
1: Mute on
Return
Value
See the Example.
Example
AT+CMUT=0
OK
AT+CMUT?
+CMUT: 0
OK
Remarks
This command is valid only during a call. ERROR will be returned in any other situations.
4.3 Dialing Command: ATD
Description
To initialize a data, fax, or voice link
For a voice link, the dialing string consists of numbers and modifiers and must end with a
semicolon.
Format
Parameter

ATD<dial string> <CR>

ATD><n> <CR>
<dial string>: Phone number
<n>: The location of phone number
Return
Value
OK
SPEECH ON
ALERTING
If the call is hung up directly on the other side:
SPEECH OFF
RELEASE
BUSY
Copyright © Neoway Technology Co., Ltd
16
Neo_WM620 AT Command Set
NO CARRIER
The phone is picked up on the other side:
CONNECT
If the call is hung up on the other side during the call
SPEECH OFF
RELEASE
NO CARRIER
If a second call comes and is ended during a call, the other side ends the first call after
SPEECH OFF is returned.
DISCONNECT
RELEASE
NO CARRIER
Example
ATD10010;
OK
SPEECH ON
ALERTING
CONNECT
Remarks
N/A
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.
Format
ATA<CR>
Parameter
N/A
Return
Value
<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:
<CR><LF> SPEECH OFF <CR><LF>
<CR><LF> RELEASE <CR><LF>
<CR><LF> NO CARRIER <CR><LF>
Copyright © Neoway Technology Co., Ltd
17
Neo_WM620 AT Command Set
Example
ATA
SPEECH ON
OK
Remarks
N/A
4.5 Hanging Up Calls: ATH
Description
To hang up all call links
Format
ATH<CR>
Parameter
N/A
Return
Value
<CR><LF> SPEECH OFF <CR><LF>
<CR><LF> RELEASE <CR><LF>
<CR><LF> OK <CR><LF>
Example
ATH
SPEECH OFF
RELEASE
OK
Remarks
N/A
4.6 Sending DTMF Tone: +VTS
Description
To send the DTMF tone
Only for voice services in GSM
Format
AT+VTS=<DTMF><CR>
Parameter
< DTMF >:
A single ASCII character in the set .0-9, #, *, A-D.
Return
Value
See the Example.
Example
AT+VTS=?
+VTS: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,#,*
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
18
Neo_WM620 AT Command Set
4.7 Auto-Answer: ATS0
Description
To control the auto-answer mode of the module
Format

ATS0=<value> <CR>

ATS0? <CR>
Parameter
<value>: Integers, ranging from 0 to 255
If ATS0 is set to 0, auto-answer is disabled;
If ATS0 is set to other values, the module will automatically answer the call after ringing
for the set times.
Return
Value
See the Example.
Example
ATS0=1
OK
ATS0?
001
OK
Remarks
N/A
4.8 Handfree Switch: +HANDFREE
Description
To control the handfree mode of a voice call
Format

AT+HANDFREE=<value> <CR>

AT+HANDFREE? <CR>
Parameter
<value>: Integer
0: Earphone mode
1: Handfree mode, always valid if the module is not powered off or switched to other
modes
2: Handfree mode, only valid for the current call. It will switch to the earphone mode after
the call ends.
Return
Value
<CR><LF> +HANDFREE:0<CR><LF>
Example
AT+HANDFREE=0
<CR><LF> OK<CR><LF>
Set to the earphone mode.
OK
AT+HANDFREE=1
Set to the handfree mode.
OK
AT+HANDFREE?
The current mode is earphone mode.
+HANDFREE:0
Copyright © Neoway Technology Co., Ltd
19
Neo_WM620 AT Command Set
OK
Remarks
N/A
4.9 Starting the DTMF Detection: +DTMFDETECT
Description
To start the DTMF detection during a call
Format
AT+DTMFDETECT=<value><CR>
Parameter
<value>: Integer
0: Stop DTMF detection
1: Start DTMF detection
Return
Value
<CR><LF> +DTMF:DETECT START OK<CR><LF>
<CR><LF> +DTMF:DETECT STOP OK <CR><LF>
<CR><LF> +DTMF:DETECT ALREADY STARTED <CR><LF>
<CR><LF> +DTMF:OPERATION NOT ALLOWED <CR><LF>
Example
AT+DTMFDETECT=1
Start the DTMF detection.
+DTMF:DETECT START OK
AT+ DTMFDETECT=0
Stop the DTMF detection.
+DTMF:DETECT STOP OK
Remarks
N/A
4.10 MIC Volume Control: +MICL
Description
To set the level of the MIC volume in a call
Format

AT+MICL=<level> <CR>

AT+MICL? <CR>
Parameter
<level>: Integers, ranging from 0 to 6
Return
Value
See the Example.
Example
AT+MICL=3
Set the level of the MIC volume to 3.
OK
AT+MICL?
+MICL:3
Query the current level of the MIC
volume.
OK
Remarks
The setting of this command is not saved after the module is powered off.
Copyright © Neoway Technology Co., Ltd
20
Neo_WM620 AT Command Set
5 SMS Commands
5.1 Selecting SMS Services: CSMS
Description
To select an SMS service among SMS-MO, SMS-MT, and SMS-CB
Format

AT+CSMS=<service><CR>

AT+CSMS?<CR>
Parameter
<service>:
0: GSM03.40 and GSM03.41. SMS-related AT commands support GSM07.05 Phase 2.
1: GSM03.40 and GSM03.41. SMS-related AT commands support GSM07.05 Phase 2+.
<mt>,<mo>,<bm>:
0: Not support
1: Support
Return
Value
See the Example.
Example
AT+CSMS=1
+CSMS: 1, 1, 1
+CSMS:<mt>,<mo>,<bm>
OK
OK
AT+CSMS?
+CSMS: 1, 1, 1, 1
+CSMS:<service>,<mt>,<mo>,<bm
>
OK
OK
Remarks
N/A
5.2 Setting Preferred SMS Storage: +CPMS
Description
To set preferred SMS storage
Format

AT+CPMS=<mem1> <CR>

AT+CPMS? <CR>
Parameter
<mem1>: String type, for example, "SM", "ME", "MT"
SM: Store the SMS messages in the SIM card
ME: Store the SMS messages in the module
<used>: Used quantity
<total>: Total capacity of the storage
Return
Value
<CR><LF>+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3> <CR><LF>
<CR><LF>OK<CR><LF>
OR
<CR><LF>+CPMS:<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<use
Copyright © Neoway Technology Co., Ltd
21
Neo_WM620 AT Command Set
d3>,<total3><CR><LF>
<CR><LF>OK<CR><LF>
OR
<CR><LF>+CPMS: (list of supported <mem1>s),(list of supported <mem2>s),
(list of supported <mem3>s)<CR><LF>
<CR><LF>OK<CR><LF>
Example
AT+CPMS="SM"
+CPMS:
+CPMS: 12,50,12,50,12, 50
<used1>,<total1>,<used2>,<total2>,
<used3>,<total3>
OK
OK
AT+CPMS?
+CPMS:
+CPMS: "ME",13,23,"ME",13,23,"SM",12,50
<mem1>,<used1>,<total1>,<mem2>,
<used2>,<total2>,<mem3>,<used3>,
<total3>
OK
AT+CPMS=?
+CPMS:(list of supported <mem1>s),
+CPMS:
("ME","MT","SM","SR"),("ME","MT","SM","SR
"),("ME","MT","SM","SR")
(list of supported <mem2>s),
OK
Remarks
OK
(list of supported <mem3>s)
OK
N/A
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
Value
See the Example.
Example
AT+CMGF=1
OK
AT+CMGF?
+CMGF: 1
OK
Copyright © Neoway Technology Co., Ltd
22
Neo_WM620 AT Command Set
Remarks
N/A
5.4 Setting the TE Character Set: +CSCS
Description
To set the format of the TE character set
Format
AT+CSCS=<chest><CR>
AT+CSCS? <CR>
Parameter
< chset >:

"GSM": Default GSM alphabet (GSM03.38.6.2.1)

"IRA": International reference alphabet (ITU-T T.50)

"UCS2": 16-bit universal multiple-octet coded character set (USO/IEC10646). The
UCS2 character string is converted into a hexadecimal number (ranging from 0x0000 to
0xFFFF). UCS2 encoding is used only in some character string of the statement.
Return
Value
N/A
Example
AT+CSCS="IRA"
OK
AT+CSCS?
+CSCS: <chset>
+CSCS: "IRA"
OK
OK
AT+CSCS=?
+CSCS: (list of supported <chset>s)
+CSCS: ("IRA","GSM", "UCS2")
OK
OK
Remarks
N/A
5.5 Setting the New Message SMS Indications Mode: +CNMI
Description
To set the mode how the module indicates new SMS messages received from the network
to users
Format

AT+CNMI=<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]<CR>

AT+CNMI?<CR>
Parameter
<mode>: Set the indication mode after receiving SMS messages.
0: Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications can
be buffered in some other place or the oldest indications may be discarded and
replaced with the new received indications.
1: Discard indication and reject new received message unsolicited result codes when
TA-TE link is reserved (e.g. in on-line data mode). Otherwise forward them directly to the
TE.
Copyright © Neoway Technology Co., Ltd
23
Neo_WM620 AT Command Set
2: Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line
data mode) and flush them to the TE after reservation. Otherwise forward them directly to
the TE.
3 Forward unsolicited result codes directly to the TE. TA-TE link specific inband
technique used to embed result codes and data when TA is in on-line data mode.
<mt>: Set the format of the new SMS indication codes. The default value is 0.
0: SMS indication codes will not be sent to the TE.
1: The format of the new SMS indication codes is +CMTI: "MT" ,<index>. The SMS
message is stored rather than directly displayed.
2: The format of the new SMS indication codes is
+CMT :<oa>,<scts>,<tooa>,<lang>,<encod>,<priority>[,<cbn>],<length><CR><LF>
<data> (text mode). SMS messages are directly displayed rather than stored.
3: Use the report codes defined by <mt>=2 to transmit SMS indication codes to the TE.
The SMS indication codes in other modes are the same as that of <mt>=1.
<bm>: Set the format of the new cell broadcast codes. The default value is 1.
0: Not send the indication information of new cell broadcast. The cell broadcast will not be
stored.
1: The cell broadcast indication code is +CBMI:" BC" ,<index> and the cell broadcast is
stored.
2: The format of the new cell broadcast indication codes is
<oa>,[<alpha>,]<scts>[,<tooa>,<length>] <CR><LF><data>(text mode). The cell
broadcast will be directly displayed rather than stored.
3: The CBM of the third-type information will be displayed on the end device using the
report codes defined by <bm>=2. For other type SMS messages that support CBM storage,
the indication codes are the same as that of <bm>=1.
<ds>: Report status of SMS message sending. The default value is 1.
0: No status report of SMS message sending
1: The format of the SMS sending status report is
+CDS :<fo>,<mr>,[<ra>],[<tora>],<scts>, <dt>,<st>(text mode).
<bfr>: The default value is 0.
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 in TA will
be cleared.
Return
Value
See the Example.
Example
AT+CNMI=1,1,0,0,0
OK
AT+CNMI=?
+CNMI: (list of supported <mode>s),(list of
+CNMI:
Supported <mt>s),(list of supported <bm>s),
(0,1,2), (0,1,2,3), (0,2), (0,1,2), (0,1)
(list of supported <ds>s),(list of supported
Copyright © Neoway Technology Co., Ltd
24
Neo_WM620 AT Command Set
<bfr>s)
OK
AT+CNMI?
+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
+CNMI: 1, 1, 0, 0, 0
OK
OK
Remarks
SMS messages are classified into four classes based on the storing:

Class0: displayed only

Class 1: Stored in the ME memory

Class 2: Stored in the SIM card

Class 3: Directly transmitted to TE
5.6 Reading SMS Messages: +CMGR
Description
To read SMS messages stored in current memory (use the AT+CPMS command to specify
the current memory)
Format
AT+CMGR=<index><CR>
Parameter
<index>: location value <index> from preferred message storage <mem1> to the TE
Return
Value
if text mode (+CMGF=1), command successful and SMS-DELIVER:
+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1), command successful and SMS-SUBMIT:
+CMGR:
<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>], <sca>,<tosca>,<length>]
<CR><LF><data>
if text mode (+CMGF=1),command successful and SMS-STATUS-REPORT:
+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
if text mode (+CMGF=1), command successful and SMS-COMMAND:
+CMGR:
<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length><CR><LF><cdata>]
if text mode (+CMGF=1), command successful and CBM storage:
+CMGR: <stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data>
if PDU mode (+CMGF=0) and command successful:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
Copyright © Neoway Technology Co., Ltd
25
Neo_WM620 AT Command Set
Example
AT+CMGR=1
+CMGR: "REC READ","66421","","2011/09/13 16:37:59+32"
050003140401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596
D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA
6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C
D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD
EC627E8E9441BD42655DEF446
OK
Remarks
If the status of the message is received unread, the status in the storage changes to received
read.
5.7 SMS Message List: +CMGL
Description
To read SMS messages of one type from the current memory specified by the +CPMS
command
Format
AT+CMGL=<stat><CR>
AT+CMGL=?<CR>
Parameter
<state>: String type or numeric type
When you set AT+CMGF=1,

"REC UNREAD": Unread SMS messages received

"REC UNREAD": Read SMS messages received

"STO UNSENT": Stored unsent SMS messages

"STO SENT": Stored sent SMS messages

"ALL": All SMS messages
When you set AT+CMGF=0,
Return
Value

0: Unread SMS messages received

1: Read SMS messages received

2: Stored unsent SMS messages

3: Stored sent SMS messages

4: All SMS messages
if text mode (+CMGF=1),command successful and SMS-SUBMITs and/or
SMS-DELIVERs:
+CMGL: <index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[<CR><LF>
+CMGL: <index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[...]]
if text mode (+CMGF=1),commandsuccessful and SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
[<CR><LF>
Copyright © Neoway Technology Co., Ltd
26
Neo_WM620 AT Command Set
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]]
if text mode (+CMGF=1), command successful and SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
if text mode (+CMGF=1), command successful and CBM storage:
+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data>[<CR><LF>
+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data> [...]]
if PDU mode (+CMGF=0) and command successful:
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>
[<CR><LF>
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu>[...]]
Example
AT+CMGL="ALL"
+CMGL: 1,"REC READ","66421",,"2011/09/13 16:37:59+32"
050003140401E27778592EA7E7EBE9373C3C279BCF68F59AADC78FED62779BA596
D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA75688B50EADACA
6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56C375C0E1693C
D6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B747AA9021BD
EC627E8E9441BD42655DEF446
+CMGL: 44,"REC UNREAD","8615719556937",,"2011/09/30
03:00:55+32"5E7F4E1C79FB52A863D0919260A8003A4E2D536B752862370031003500
37003100390035003500360039003300377ED960A86765753500326B21002C6700540E4
E006B21572800320039002F00300039002000320030003A00340038002C60A853EF6309
901A8BDD952E621690099879952E76F463A556DE62E8
+CMGL: 14,"STO
SENT","66045",,050003010401E27778592EA7E7EBE9373C3C279BCF68F59AADC78F
ED62779BA596D7EBAEB5B91EBD16A5D46C35F98406A744E311A95C32594DA756
88B50EADACA6D689150EADF1B2BC5E579AD575E5B5582D5EABD5624C36A3D56
C375C0E1693CD6835DB0D9783A15C91D2E06BDAA558AC1F60C52B937CADCD2B
747AA9021BDEC627E8E9441BD42655DEF446
OK
AT+CMGL=?
+CMGL: ("REC UNREAD", "REC READ", "STO UNSENT", "STO SENT", "ALL")
OK
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
27
Neo_WM620 AT Command Set
5.8 Sending SMS Messages: +CMGS
Description
To send an SMS message from the module to the network
The network will return reference value <mr> to the module after the SMS message is sent
successfully.
Format

Text command syntax
AT+CMGS=<da>[,<toda>]<CR>text is entered<ctrl-Z/ESC>

PDU command syntax
AT+CMGS=<length><CR>PDU is given<ctrl-Z/ESC>
Parameter
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode
<length>: The byte length of the SMS message content in PDU mode
<mr>: The storage location
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message
<ESC>: Indicates giving up the input message
Return
Value
if text mode (+CMGF=1) and sending successful:
+CMGS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMGS: <mr>[,<ackpdu>]
Example
AT+CMGS="66358"<CR>
> This is the text<Ctrl-Z>
Text
mode(+CMGF=1)
+CMGS: 171
OK
AT+CMGS=33<CR>
>0891683108705505F001000B815118784271F20008146DF157
335E025B9D5B89533A59276D6A80545EFA<Ctrl-Z>
PDU mode
(+CMGF=0)
+CMGS: 119
OK
Remarks

If you use UART debugging tool to sent a PDU SMS message, enter \r after the
AT+CMGS command manually or send <CR> in hexadecimal system.

For details about PDU, see the A.1 Content of PDU SMS Messages.
5.9 Writing SMS Messages: +CMGW
Description
To write an SMS message into the memory
Copyright © Neoway Technology Co., Ltd
28
Neo_WM620 AT Command Set
The location information <index> will be returned after the message is saved correctly.
Format
Command syntax (text mode):
AT+CMGW=<oa/da>[,<tooa/toda>[,<stat>]]<CR>text is entered<Ctrl-Z /ESC>
Command syntax (PDU mode):
AT+CMGW=<length>[,<stat>]<CR>PDU is given<Ctrl-Z /ESC>
Parameter
<da>: The destination number to which the SMS message is sent in text mode
<text>: SMS message content in text mode
<length>: The byte length of the SMS message content in PDU mode
<index>: Location information
<CR>: End character
<Ctrl-Z>: Indicates the end of the input message
<ESC>: Indicates giving up the input message
Return
Value
+CMGW:<index>
OK
or
+CMS ERROR:<err>
Example
AT+CMGW="091137880"<CR>
Text mode (+CMGF=1)
>"This is the text"<Ctrl-Z>
+CMGW: 15
OK
AT+CMGW=31<CR>
PDU mode (+CMGF=0)
>0891683108705505F001000B813124248536F3000812004
00026002A535A53D153A653C1532052C7<Ctrl- Z>
+CMGW: 1
OK
Remarks
The message status is set to "stored unsent" by default. <stat> also supports other values
such as "stored unsent" and "stored sent".
5.10 Sending Stored SMS Messages: +CMSS
Description
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
<da>: the destination number of the SMS messages
Return
Value
if text mode (+CMGF=1) and sending successful:
Copyright © Neoway Technology Co., Ltd
29
Neo_WM620 AT Command Set
+CMSS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
+CMSS: <mr>[,<ackpdu>]
Example
AT+CMSS=2
+CMSS: <mr>
Send the SMS messages stored in
memory 2.
OK
AT+CMSS=2
CMS ERROR: <err>
Remarks
Send the SMS messages stored in
memory 2.
N/A
5.11 Deleting SMS Messages: +CMGD
Description
To delete SMS messages from the current memory
Format

AT+CMGD=<index> [,<delflag>] <CR>

AT+CMGD=? <CR>
Parameter
<index>: The recording number of the stored SMS messages
<delflag>: Integer
0: Delete the SMS messages with the specified recording numbers.
1: Delete all read SMS messages.
2: Delete all read and sent SMS messages.
3: Delete all read, sent, and unsent SMS messages.
4: Delete all messages.
Return
Value
See the Example.
Example
AT+CMGD=3
Delete successfully
OK
AT+CMGD=?
+CMGD:(list of supported <index>s)
+CMGD: (0-49), (0-4)
[,(list of supported <delflag>s)]
OK
Remarks
If you set <delflag>, ignor the parameter <index>.
5.12 Setting the SMSC Number: +CSCA
Description
To set the SMSC number
Format

AT+CSCA=<sca>[,<tosca>]<CR>

AT+CSCA?<CR>
Copyright © Neoway Technology Co., Ltd
30
Neo_WM620 AT Command Set
Parameter
<sca>: SMS center number
<tosca>: The format of the SMS center number. 129 indicates common number; 145
indicates international number (add + in front of the number automatically).
Return
Value
See the Example.
Example
AT+CSCA="8613800755500",145
OK
AT+CSCA?
+CSCA: "8613800755500", 145
OK
Remarks
The setting will be saved after the module is powered off.
5.13 Setting the Parameters of the Text Mode: +CSMP
Description
To select required values for the additional parameters in the text mode, and set the validity
period since the message is received from the SMSC, or the absolute time defining the end
of the validity period
Format

AT+CSMP=[<fo>[,<vp>[,<pid>[,<dcs>]]]]<CR>

AT+CSMP?<CR>
Parameter
<fo>: Determined by the command or the first 8 bits of the result code GSM 03.40
SMS-DELIVER; SMS-SUBMIT (default value: 17); or adopt the integer-type
SMS-COMMAND (default value: 2)
<vp>:
Value
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
Value
See the Example.
Example
AT+CSMP=17,167,0,0
OK
AT+CSMP?
+CSMP: 0, 255, 0, 0
Copyright © Neoway Technology Co., Ltd
31
Neo_WM620 AT Command Set
OK
Remarks
N/A
5.14 Displaying the Parameters of the Text Mode: +CSDH
Description
To set whether the detailed header information is displayed in the result code in text mode
Format

AT+CSDH=<show><CR>

AT+CSDH?<CR>
Parameter
<show>:
0: disable or not display
1: enable or display
Return
Value
See the Example.
Example
AT+CSDH=0
AT+CMGR=14
OK
+CMGR: "REC READ","+86134309815
04",,"09/07/17,14:49:00+50"7B5675655FAE5C0F6
5F65019
OK
AT+CSDH=1
AT+CMGR=14
OK
+CMGR: "REC READ","+86134309815
04",,"09/07/17,14:49:00+50",145,4,0,8,"+86138007
55500",145,127B5675655FAE5C0F65F65019
OK
AT+CSDH?
+CSDH: 0
OK
Remarks
N/A
6 Phonebook Commands
6.1 Selecting Phonebook Storage: +CPBS
Description
To select phonebook storage
Format

AT+CPBS=<storage> <CR>

AT+CPBS? <CR>
Parameter
<storage>:
Copyright © Neoway Technology Co., Ltd
32
Neo_WM620 AT Command Set
"ME": MT phonebook
"SM": SIM/UICC phonebook
"EN": Emergency number
"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
Value
<CR><LF>+CPBS: <storage>[,<used>,<total>] <CR><LF>
<CR><LF> OK<CR><LF>
<used>
Used count
<total>
Total count
Example
AT+CPBS="SM"
OK
AT+CPBS?
+CPBS: "SM", 1, 250
OK
Remarks
N/A
6.2 Reading the Phonebook: +CPBR
Description
To read the phonebook information
Format

AT+CPBR=<index1>[,<index2>] <CR>

AT+CPBR=? <CR>
Parameter
<index1>: Integer type, the sequence number of the phone number
<index2>: Integer type, the sequence number of the phone number
Return
Value
[+CPBR: <index1>,<number>,<type>,<text><CR>
+CPBR: <index2>,<number>,<type>,<text>]
[+CPBR:
<index1>,<number>,<type>,<text>[,<hidden>][[...]
<CR><LF>+CPBR:
<index2>,<number>,<type>,<text>[,<hidden>]]]
<index1>, <index2>, <index>: Integer type values in the range of location numbers of
phonebook memory
<number>: String type phone number of format <type>
Copyright © Neoway Technology Co., Ltd
33
Neo_WM620 AT Command Set
<type>: Type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7)
<text>: The phonebook entry name, string type field of maximum length<tlength>;
character set as specified by command Select TE Character Set +CSCS
+CPBR: (list of supported <index>s),[<nlength>],[<tlength>]
<nlength>: Integer type value, indicating the maximum length of field <number>
<tlength>: Integer type value indicating the maximum length of field <text>
<hidden>: Indicates if the entry is hidden or not
0: phonebook entry, not hidden
1: phonebook entry, hidden
Example
AT+CPBR=1,3
+CPBR: 1, "091137880", 129, "Comneon"
+CPBR: 2, "09113788223", 129, "MMI"
+CPBR: 3, "09113788328", 129, "Test-ro"
OK
AT+CPBR=?
+CPBR:(list of supported <index>s),
+CPBR: (1-250), 18, 14
[<nlength>],[<tlength>]
OK
Remarks
N/A
6.3 Querying the Phonebook: +CPBF
Description
To query the phonebook information
Format
AT+CPBF=<findtext><CR>
Parameter
<findtext>: the phone book entry name
Return
Value
+CPBF: <index1>,<number>,<type>,<text>
<index>: Integer type values in the range of location numbers of phonebook memory
<number>: String type phone number of format <type>
<type>: Type of address
<text>: The phone book entry name, string type field of maximum length <tlength>;
character set as specified by command Select TE Character Set +CSCS.UCS2", and "IRA"
are supported.
Example
AT+CPBF="Comneon"
+CPBF: 1, "091137880", 129, "Comneon"
OK
Copyright © Neoway Technology Co., Ltd
34
Neo_WM620 AT Command Set
Remarks
N/A
6.4 Writing Information to the Phonebook: +CPBW
Description
To write information to the phonebook
Format
AT+CPBW=<index>,<number>,<type>,<text> <CR>
Parameter
<index>: integer type values in the range of location numbers of phonebook memory
<number>: string type phone number of format <type>
<type>: type of address
<text>: the phone book entry name, string type field of maximum length <tlength>;
character set as specified by command Select TE Character Set +CSCS.UCS2", and "IRA"
are supported.
Return
Value
See the Example.
Example
AT+CPBW=1,"091137880",129,"Comneon"
OK
AT+CPBW=?
+CPBW: (1-50), 40, (129,145), 14
OK
Remarks
Preconfigure the TE character set. Otherwise names cannot be input successfully.
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
4: Forward all calls (refer to 3GPP TS 22.030 [19])
5: Forward all conditional calls (refer to 3GPP TS 22.030 [19])
<mode>:
0: Disable
Copyright © Neoway Technology Co., Ltd
35
Neo_WM620 AT Command Set
1: Enable
2: Query status
3: Registration
4: Erasure
<number>: String type phone number of forwarding address in format specified by <type>
<type>: type of address
<subaddr>: string type subaddress of format specified by <satype>
<satype>: type of subaddress octet in integer format (refer TS 24.008 [8] subclause
10.5.4.8); default 128
<classx> is a sum of integers each representing a class of information (default 7):
1: voice (telephony)
2: data (refers to all bearer services)
4: fax (facsimile services)
8: short message service
16: data circuit sync
32: data circuit async
64: dedicated packet access
128: dedicated PAD access
<time>: 1...30 when "no reply" is enabled or queried, this parameter gives the time in
seconds to wait before call is forwarded
<status>:
0: not active
1: active
Return
Value
when <mode>=2 and command successful:
+CCFC: <status>,<class1>[,<number>,<type>[,<subaddr>,<satype>[,<time>]]][
<CR><LF>+CCFC: <status>,<class2>[,<number>,<type>[,<subaddr>,<satype>[,
<time>]]][...]]
Example
AT+CCFC=0,1,"123456"
OK
AT+CCFC=?
+CCFC: (list of supported <reason>s)
+CCFC: (0,1,2,3,4,5)
OK
Remarks
Call-related supplementary services are required.
7.2 Call Waiting: +CCWA
Description
To set call waiting
Format

AT+CCWA=<n>[,<mode>[,<class>]]<CR>

AT+CCWA? <CR>
Copyright © Neoway Technology Co., Ltd
36
Neo_WM620 AT Command Set
Parameter
<n>: (sets/shows the result code presentation status to the TE)
0: disable
1: enable
<mode>: (when <mode> parameter is not given, network is not interrogated)
0: disable
1: enable
2: query status
<classx>: is a sum of integers each representing a class of information (default 7)
1: voice (telephony)
2: data (refers to all bearer services)
4: fax (facsimile services)
8: short message service
16: data circuit sync
32: data circuit async
64: dedicated packet access
128: dedicated PAD access
<status>:
0: not active
1: active
<number>: string type phone number of calling address in format specified by <type>
<type>: type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7)
Return
Value
when <mode>=2 and command successful
Example
AT+CCWA=1,1
+CCWA: <status>,<class1>[<CR><LF>+CCWA: <status>,<class2>[...]]
OK
AT+CCWA=?
+CCWA: (list of supported <n>s)
+CCWA: (0-1)
OK
AT+CCWA?
+CCWA: <n>
+CCWA: 0
OK
Remarks
Call-related supplementary services are required.
7.3 Call Holding and Multi-party Conversation: +CHLD
Description
To set call on hold and add it to a conversation
Format

AT+CHLD=<n> <CR>
Copyright © Neoway Technology Co., Ltd
37
Neo_WM620 AT Command Set

Parameter
AT+CHLD=? <CR>
<n>: (sets/shows the result code presentation status to the TE)
0: Releases all held calls, or sets User-Determined User Busy for a waiting call
1: Releases all active calls and accepts the other (waiting or held) call
1x: Releases the specific active call X
2: Places all active calls on hold and accepts the other (held or waiting) call’
2x: Places all active calls, except call X, on hold
3: Adds a held call to the conversation
4: Connects two calls and disconnects the subscriber from both calls
5: Activates the Completion of Calls to Busy Subscriber Request. (CCBS)
Return
Value
See the Example.
Example
AT+CHLD=0
OK
AT+CHLD=?
[+CHLD: (list of supported <n>s)]
+CHLD: (0, 1, 1x, 2, 2x, 3, 4)
OK
Remarks

Call-related supplementary services are required.

Refer to a service that allows a call to be temporarily disconnected from the ME but the
connection to be retained by the network, and to a service that allows multiparty
conversation.

Calls can be held on, recovered, released and added to a conversation.
8 GPRS/3G Commands
8.1 Setting PDP Format: CGDCONT
Description
To set the PDP format of the GPRS/3G
Format

AT+CGDCONT=<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp>
[,<h_comp> [,<pd1> [,…[,pdN]]]]]]]]<CR>

AT+CGDCONT?<CR>

AT+CGDCONT=?<CR>
Parameter
<cid>: (PDP Context Identifier) a numeric parameter that specifies a particular PDP
context definition. The parameter is local to the TE-MT interface and is used in other PDP
context-related commands. The range of permitted values (minimum value = 1) is returned
by the test form of the command.
<PDP_type>: (Packet Data Protocol type) a string parameter. IP Internet Protocol (IETF
STD 5)
<APN>: (Access Point Name) a string parameter which is a logical name that is used to
select the GGSN or the external packet data network. If the value is null or omitted, then
the subscription value will be requested.
Copyright © Neoway Technology Co., Ltd
38
Neo_WM620 AT Command Set
<PDP_address>: a string parameter that identifies the MT in the address space applicable
to the PDP. If the value is null or omitted, then a value maybe provided by the TE during
the PDP startup procedure or, failing that, a dynamic address will be requested. The read
form of the command will continue to return the null string even if an address has been
allocated during the PDP startup procedure. The allocated address may be read using the
+CGPADDR command.
<d_comp>: a numeric parameter that controls PDP data compression (applicable for
SNDCP only)
0: off (default if value is omitted)
<h_comp>: a numeric parameter that controls PDP header compression
0: off (default if value is omitted)
<pd1>, … <pdN>: zero to N string parameters whose meanings are specific to the
<PDP_type>
Return
Value
See the Example.
Example
AT+CGDCONT=1,"IP", "CMNET"
OK
AT+CGDCONT?
+CGDCONT: <cid>, <PDP_type>,
+CGDCONT: 1,"IP","internet","",0,0
<APN>,"", <d_comp>,
<h_comp>[,<pd1>[,…[,pdN]]]
[<CR><LF>
OK
AT+CGDCONT=?
+CGDCONT:(range of supported
+CGDCONT: (1-16),"IP",,,(0-2),(0-3)
<cid>s),<PDP_type>,,,
+CGDCONT: (1-16),"PPP",,,(0-2),(0-3)
(list of supported <d_comp>s),
(list of supported <h_comp>s)[,(list of
OK
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
N/A
9 TCP/UDP Data Service
9.1 Setting Up a PPP Link: +XIIC
Description
To set up a PPP link
Format
AT+XIIC=<act><CR>
Parameter
<act>:
Copyright © Neoway Technology Co., Ltd
39
Neo_WM620 AT Command Set
1: Activate the PPP connection
0: Deactivate the PPP connection
Return
Value
See the Example.
Example
AT+XIIC=1
Set up a PPP link
OK
+NEWIP:10.90.208.163
+PPPSTATUS:OPENED
AT+XIIC?
+XIIC:1,10.90.208.163
The PPP connection is activated and
the local IP address is 10.90.208.163.
OK
AT+XIIC=0
Deactivate the PPP connection.
OK
+PPPSTATUS:CLOSED
AT+XIIC?
+XIIC:0,0.0.0.0
The PPP connection is deactivated
and the local IP address is blank.
OK
Remarks
N/A
9.2 Querying the PPP Connection Status: +PPPSTATUS
Description
To query the PPP connection status
Format
AT+PPPSTATUS
Parameter
Return
Value
+PPPSTATUS:<status>
<status>
CLOSED: No PPP link, the dialing connection is closed.
OPENED: The PPP link is activated, the dialing connection is opened.
*: Opening or closing
Example
AT+PPPSTATUS
+PPPSTATUS:CLOSED
The dialing connection is closed.
OK
AT+PPPSTATUS
+PPPSTATUS:OPENED
Copyright © Neoway Technology Co., Ltd
The dialing connection is opened.
40
Neo_WM620 AT Command Set
OK
AT+PPPSTATUS
The dialing connection is opening or closing.
*
OK
Remarks
All TCP/UDP sockets are unavailable after the connection is closed. You need to reconnect
them.
9.3 Setting Up TCP Connection: +TCPSETUP
Description
To set up a TCP link
Format
AT+TCPSETUP=[n],<ip>,<port><CR>
Parameter
[n]: Link number, ranging from 0 to 4
The TE will allocate an idle ID to set up the link if you do not set the value of [n].
<ip>: Destination IP address, in xx.xx.xx.xx
<port>: Destination port ID in decimal ASCII code, ranging from 0 to 65535
Return
Value
See the Example.
Example
AT+TCPSETUP=0,10.92.189.131,5500
OK
The link to 10.92.189.131,5500 is
successfully set up on link 0.
+TCPSETUP:0,OK
AT+TCPSETUP=1,192.168.20.6,7000
OK
Failed to set up the link to
192.168.20.6,7000 on link 1. The server
is probably not started, the IP address is
incorrect, or the SIM card is out of credit.
+TCPSETUP:1,FAIL
AT+TCPSETUP=66,192.168.20.6,7000
+TCPSETUP: ERROR
AT+TCPSETUP=0,113.87.11.200,65536
+TCPSETUP:ERROR
AT+TCPSETUP=,113.87.11.200,4983
OK
The format or the AT command is
incorrect or the link number is incorrect.
The format or the AT command is
incorrect or the port number is incorrect.
Set up a TCP link without specifying a
link number.
The TE selects link 1.
+TCPSETUP:1,OK
Remarks
Use the AT+XIIC=1 command to set up a PPP link before running this command.
The TE has 6 links (TCP/UDP/Server).
Copyright © Neoway Technology Co., Ltd
41
Neo_WM620 AT Command Set
9.4 Sending TCP Data: +TCPSEND
Description
To send TCP data
The module will returns > after this command is sent. Send TCP data 50 ms to 100 ms
later.
Format
AT+TCPSEND=<n>,<length> <CR>
Parameter
<n>: Link number, ranging from 0 to 5. A TCP connection is established on the link.
<length>: The length of the data to be sent, ranging from 1 to 4096, unit: byte.
Return
Value
See the Example.
Example
AT+TCPSEND=0,1
>1
1-byte data is successfully sent through
link 0.
OK
+TCPSEND:0,1
AT+TCPSEND=0,1
+TCPSEND: SOCKET ID OPEN FAILED
AT+TCPSEND=0,4097
+TCPSEND: DATA LENGTH ERROR
AT+TCPSEND=0,10
>
1-byte data fails to be sent on link 0
because the link is not established.
4097-byte data fails to be sent on link 0
because data length exceeds the limit.
10 seconds timed out. No data is input.
The module returns ERROR.
+TCPSEND:Error!TimeOut
AT+TCPSEND=0,1
+TCPSEND:ERROR
Remarks
No TCP link is set up on link 0, but some
link of other type might have been set up.

Ensure that the TCP link has been set up before sending TCP data.

If the command format is incorrect, the module will also returns +TCPSEND:ERROR.
9.5 Receiving TCP Data: +TCPRECV
Description
To receive TCP data
Format
+TCPRECV:<n>,<length>,<data><CR>
Parameter
<n>: Link number, ranging from 0 to 5
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>.
Return
Value
See the Example.
Example
+TCPRECV: 0,10,1234567890
Copyright © Neoway Technology Co., Ltd
10-byte data is successfully received on
link 0. The data is 1234567890.
42
Neo_WM620 AT Command Set
Remarks
N/A
9.6 Closing TCP Connection: +TCPCLOSE
Description
To close a TCP link
Format
AT+TCPCLOSE=<n> <CR>
Parameter
<n>: Link number, ranging from 0 to 5
Return
Value
See the Example.
Example
AT+TCPCLOSE=1
OK
The TCP connection on link 1 is closed
successfully.
+TCPCLOSE: 1,OK
AT+TCPCLOSE=99
Link number error
+TCPCLOSE: ERROR
+TCPCLOSE:0,Link Closed
Remarks
The TCP link is disconnected.
N/A
9.7 Setting Up UDP Connection: +UDPSETUP
Description
To set up a UDP link
Format
AT+UDPSETUP=[n],<ip>,<port><CR>
Parameter
<n>: Link number, ranging from 0 to 5
The TE will allocate an idle ID to set up the link if you do not set the value of [n].
<ip>: Destination IP address, in xx.xx.xx.xx format
<port>: Destination port ID in decimal ASCII code
Return
Value
See the Example.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
The link to 220.199.66.560.7000 is
successfully set up on link 1.
+UDPSETUP:1,OK
AT+UDPSETUP=1,192.168.20.6,7000
OK
Failed to set up the link to
192.168.20.6,7000 on link 1.
+UDPSETUP:1,FAIL
AT+UDPSETUP=55,192.168.20.6,6800
Copyright © Neoway Technology Co., Ltd
The format or the AT command is
43
Neo_WM620 AT Command Set
+UDPSETUP:ERROR
Remarks
incorrect or the link number is incorrect.
N/A
9.8 Sending UDP Data: +UDPSEND
Description
To send UDP data
The module will returns > after this command is sent. Send UDP data 50 ms to 100 ms
later.
Format
AT+UDPSEND=<n>,<length><CR>
Parameter
<n>: Link number, ranging from 0 to 5. A UDP connection is established on the link.
<length>: The length of the data to be sent, ranging from 1 to 1024, unit: byte.
Return
Value
Example

If the AT command is input in correct format, the module returns >.

If the command is input in incorrect format, the module returns ERROR.

If the link has not been set up, the module returns +UDPSEND:ERROR.

After entering the command, input the data to be sent until the module returns >.

If the UDP data is sent successfully, the module returns +UDPSEND:<n>,<length>.
<length> indicates the length of data already sent.
AT+UDPSEND=0,2
>12
OK
+UDPSEND:0,2
AT+UDPSEND=1,10
>
Send 2-byte data on link 0. Then send the
characters to be sent 50 ms to 100 ms
after the module returns >.
The UDP data is sent successfully.
10 seconds timed out. No data is input.
The module returns ERROR.
+UDPSEND:Error!TimeOut
Remarks
N/A
9.9 Receiving UDP Data: +UDPRECV
Description
To receive UDP data
Format
+UDPRECV:<n>,<length>,<data><CR>
Parameter
<n>: Link number, ranging from 0 to 5
<length>: The length of the data received
<data>: The data received
Add 0x0d 0x0a to the end of the data. You can identify the end based on <length>.
Return
Value
N/A
Example
+UDPRECV: 0,10,1234567890
Copyright © Neoway Technology Co., Ltd
10-byte data is successfully received on
link 0. The data is 1234567890.
44
Neo_WM620 AT Command Set
Remarks
N/A
9.10 Closing UDP Connection: +UDPCLOSE
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
Parameter
<n>: Link number, ranging from 0 to 5
Return
Value
If <n> is illegal, the module returns: +UDPCLOSE: ERROR.
Example
AT+UDPCLOSE=1
Otherwise, the module returns +UDPCLOSE:<n>,OK.
OK
The TCP connection on link 1 is closed
successfully.
+UDPCLOSE: 1,OK
AT+UDPCLOSE=55
Link number error
+UDPCLOSE: ERROR
Remarks
N/A
9.11 Querying TCP/UDP Link Status: +IPSTATUS
Description
To query the TCP/UDP link status
Format
AT+IPSTATUS=<n><CR>
Parameter
<n>: Link number, ranging from 0 to 5
Return
Value
+IPSTATUS:<n>,< status>,<type>:
<n>: Link number, ranging from 0 to 5
<status>: link status, value: CONNECT, DISCONNECT, or LISTENING
<type>: Connection type, TCP, UDP, SVR
Example
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP
A TCP connection has been set up on
link 0.
OK
AT+IPSTATUS=2
+IPSTATUS:2,DISCONNECT
Link 2 has been closed and no
connection has been set up on it.
OK
AT+IPSTATUS=1
+IPSTATUS:1,CONNECT,UDP
A UDP connection has been set up on
link 1.
OK
AT+IPSTATUS=2
Copyright © Neoway Technology Co., Ltd
TCP service listening has been enabled
on link 2.
45
Neo_WM620 AT Command Set
+IPSTATUS:2,LISTENING,SVR
OK
Remarks
N/A
9.12 Querying the Status of Data Sent by the TCP Link:
+TCPACK
Description
To query the size of data successfully sent by the TCP server and the size of the data
successfully received
Format
AT+TCPACK=<n> <CR>
Parameter
<n>: Link number, ranging from 0 to 5
Return
Value
+TCPACK:<n>,<data_sent>,<acked_recv>
< data_sent >: Data successfully sent through this link
<acked_recv>: Data acknowledged by the receiver
+TCPACK:<n>,< DISCONNECT >
No connection is set up on this link.
+TCPACK: <n>,NO TCP LINK
A UDP connection has been set up on this link.
Example
AT+TCPACK=0
+ TCPACK:0,20,20
20-byte data has been transmitted through
link 0 and the receiver acknowledged
20-byte data.
OK
AT+TCPACK=0
+ TCPACK:0,128,120
128-byte data has been transmitted
through link 0 and the receiver
acknowledged 120-byte data.
OK
AT+TCPACK=1
No connection is set up on socket 1.
+ TCPACK:1,DISCONNECT
OK
AT+TCPACK=2
A UDP connection is set up on link 2.
+TCPACK:2,NO TCP LINK
OK
Remarks
The values of <data_sent> and <acked_recv> are unsigned 64-bit integers in decimal
ASCII. The unit is byte.
Copyright © Neoway Technology Co., Ltd
46
Neo_WM620 AT Command Set
9.13 Setting Local TCP Port: +TCPPORT
Description
To set the local TCP port
Format
AT+TCPPORT=<n>,<port> <CR>
Parameter
<n>: Socket ID on the client, ranging from 0 to 5
<port>: Port ID, ranging from 1024 to 65535
Return
Value
N/A
Example
AT+TCPPORT=0,5500
OK
AT+TCPPORT=1,1023
+CME ERROR: 3
AT+TCPPORT=1,1026
+TCPPORT:ERROR,USED
AT+TCPPORT=0,1066
+TCPPORT:ERROR,OPENED
Remarks
The port has been occupied
by other links and the link is
opened.
The link has been opened
and does not allow new port
number.

This command should have been executed before the AT+TCPSETUP command is
executed.

If you do not use this command, the local port ID will be allocated dynamically every
time the UDP link is set up.
9.14 Setting Local UDP Port: +UDPPORT
Description
To set the local UDP port
Format
AT+UDPPORT=<n>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
<port>: Port ID, ranging from 1024 to 65535
Return
Value
N/A
Example
AT+UDPPORT=2,5500
OK
AT+UDPPORT=1,1023
+CME ERROR: 3
AT+UDPPORT=1,1026
+UDPPORT:ERROR, USED
AT+UDPPORT=0,1026
Copyright © Neoway Technology Co., Ltd
The port has been occupied
by other links and the link is
opened.
The link has been opened
and does not allow new port
47
Neo_WM620 AT Command Set
+UDPPORT:ERROR, OPENED
Remarks
number.

This command should have been executed before the AT+UDPSETUP command is
executed.

If you do not use this command, the local port ID will be allocated dynamically every
time the UDP link is set up.
9.15 Setting Socket Timeout Parameter: +SSTP
Description
To obtain the port ID of the socket on the module
Format
AT+GETPORT=<socket>
Parameter
<socket>: socket ID
Return
Value
+GETPORT:<n>,<typet> <port>
<n>: socket ID
<typet>: Connection type
<port>: Port ID
Example
AT+GETPORT=0
+GETPORT:0,TCP,42299
Return the port ID of socket
0.
OK
AT+GETPORT=2
+GETPORT:2,UDP,23353
Return the port ID of socket
2.
OK
AT+GETPORT=0
+GETPORT:0,NUL,0
No link has been set up
using socket 0.
OK
Remarks
N/A
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" or www.xxxx.com
Return
Value
N/A
Example
AT+DNS=www.china.com
OK
Copyright © Neoway Technology Co., Ltd
Query the IP address of
"www.china.com", and the module
returns the IP address 112.90.216.41.
48
Neo_WM620 AT Command Set
+DNS:112.90.216.41
Remarks
The URL length should not exceed 35 bytes.
11 FTP AT Commands
11.1 Logging In to the FTP Server: +FTPLOGIN
Description
To log in to the FTP server
Format
AT+FTPLOGIN=<ip>,<port>,<user>,<pwd> <CR>
Parameter
<ip>: FTP server address
<port>: Port ID of the FTP server, 21
<user>: The user name to log in to the FTP server. The length of the user name cannot
exceed 100 bytes in ASCII code and the user name cannot contain comma (,).
<pwd>: The password for the user account to log in to the FTP server. The length of the
password cannot exceed 100 bytes in ASCII code and the password cannot contain comma
(,).
Return
Value
Example

+FTPLOGIN: Error: The format of the AT command is incorrect.

+FTPLOGIN:Have Logged In: The user has logged in to the FTP server.

+FTPLOGIN:AT Busy: Last FTP AT command has not been executed completely.

+FTPLOGIN:User logged in: The user logged in to the FTP server successfully.

+FTPLOGIN: 530 Not logged in: The user failed to log in to the FTP server because
the user account or password is incorrect.

FTPLOGIN:Error Connect Server Fail: The user failed to log in to the FTP server for
other reasons.
At+ftplogin=219.134.179.52,21,user1,pwd20
09
OK
user1 logged in to the server
219.134.179.52 through port 21. And the
password for user1 is pwd2009.
Successful
+FTPLOGIN:User logged in
Remarks
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
N/A
Return
Value
See the Example.
Copyright © Neoway Technology Co., Ltd
49
Neo_WM620 AT Command Set
Example
AT+FTPLOGOUT
Log out from the FTP server
+FTPLOGOUT:User logged out
OK
Remarks
N/A
11.3 Downloading Data from the FTP Server: +FTPGET
Description
To download data from the FTP server
Format
AT+FTPGET=<dir&filename>,<type>,<Content or Info> [,<offset>,<len>]<CR>
Parameter
<Dir&filename>: Path and name of the file to be read
(Note: The file directory under the FTP root directory)
<Type>: File transfer mode
1: ASCII
2: Binary
<Content or Info>: File content or file (or specified directory) information
1: Obtain the file content
2: Obtain the information of the file or the specified path
<offset>: The down load offset
<len>: The length of the download data
If the value is 0, it indicates the size of the download file minus the offset.
Return
Value
Example

+FTPGET: Error: The format of the AT command is incorrect

+FTPGET:Error Not Login: The user has not logged in to the FTP server.

+FTPGET:AT Busy: Last FTP AT command has not been executed completely.

+FTPGET: Error!TimeOut: Some failure is caused by download timeout (timeout
period is 30 seconds) and the module does not receive data from the FTP server within
30 seconds.

+FTPGET:<length>,<data>: <length> indicates the data length; <data> indicates the
data content.

+FTPGET:OK.total length is <n>: The module reads data successfully and the data
length is n.

+FTP:Server Data Link Disconnect: The link is disconnected. It will be connected
automatically when the module downloads or uploads data again.

+FTP:Server Control Link Disconnect: The control link is disconnected because you
do not use the link for long time or for other causes. The module returns this
message whenever the control link is disconnected. You need to connect to the FTP
server again by running the AT+FTPLOGIN command.
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rw-
1 user
drw-rw-rw-
1 user
group
-rw-rw-rw-
1 user
group
Copyright © Neoway Technology Co., Ltd
group
0 Apr 14 15:55 .
0 Apr 14 15:55 ..
Obtain
information
in the root
directory.
1238528 Jan 14 10:36 1M.doc
50
Neo_WM620 AT Command Set
-rw-rw-rw-
1 user
group
10 Jan 15 15:01 test.txt
+FTPGET:OK.total length is 446
AT+FTPGET=test.txt,1,2
+FTPGET:65,-rw-rw-rwtest.txt
1 user
group
10 Jan 15 15:01
Obtain the
information
about
test.txt.
+FTPGET:OK.total length is 65
Obtain the
information
in test.txt.
AT+FTPGET=test.txt,1,1
+FTPGET:10,123456780
+FTPGET:OK.total length is 10
Remarks
Do not perform next FTP operation until +FTPGET:OK.total length is <n> is displayed.
11.4 Uploading Data from the FTP Server: +FTPPUT
Description
To upload data to the FTP server
Format
AT+FTPPUT=<filename>,<type>,<mode>,<size><CR>
Parameter
<filename>: The name of the file to be uploaded
<type>: File transfer mode
1: ASCII
2: Binary
<mode>: Operation mode
1: STOR mode. Create a file on the FTP server and write the data to the file. If the file
exists, the original file will be overwritten.
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 exceed 1024.
Return
Value
Example

+FTPPUT: Error: The format of the AT command is incorrect.

+FTPPUT:Error Not Login: The user has not logged in to the FTP server.

+FTPPUT:AT Busy: Last FTP AT command has not been executed completely.

+FTPPUT:SIZE Error: The value of <length> is greater than 1024 or less than 1.

+FTPPUT:OK,<n>: The file is sent successfully and the file length is n.

+FTPPUT:Delete File OK: The file is deleted successfully.
AT+FTPPUT=test.txt,1,1,10
>1234567890
+FTPPUT:OK,10
Copyright © Neoway Technology Co., Ltd
Upload the text.txt file, which is 10 in
length. The transfer mode is ASCII mode
and the operation mode is STOR.
51
Neo_WM620 AT Command Set
AT+FTPPUT=test.txt,1,2,10
>1234567890
+FTPPUT:OK,10
AT+FTPPUT=test.txt,1,3,0
Upload the text.txt file, which is 10 in
length. The transfer mode is ASCII mode
and the operation mode is APPE.
Delete the test.txt file.
+FTPPUT:Delete File OK
Remarks
N/A
11.5 Querying FTP Link Status: +FTPSTATUS
Description
To query the FTP link status
Format
AT+FTPSTATUS<CR>
Parameter
No paremeter.
Return
Value
+FTPSTATUS:<status>,<ip>, <port>
<status>:
0: The FTP link has not been set up.
1: The FTP link has been set up.
<ip>: The IP address of the FTP server
<port>: The port of the FTP server
Example
AT+FTPSTATUS
+FTPSTATUS:1,119.139.221.66,21
AT+FTPSTATUS
+FTPSTATUS:0
Remarks
N/A
12 TCP Server AT Commands
12.1 Obtaining the Local IP Address: +GETIP
Description
To query the local IP address
Format
AT+GETIP<CR>
Parameter
N/A
Return
Value
+LOCALIP:<ip_addr>
Example
AT+GETIP
+LOCALIP:119.139.220.13
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
52
Neo_WM620 AT Command Set
12.2 Setting TCP Listening for the Server: +TCPLISTEN
Description
To set the TCP listening function of the server, supporting three client links
Format

AT+TCPLISTEN=<port>

+TCPLISTEN:<socket>,OK
Parameter
<Port>: Port ID
<Socket>: SOCKET ID
Return
Value
See the Example.
Example
AT+TCPLISTEN=6800
Listening port ID: 6800
+TCPLISTEN:0,OK
or
The listening function of the server is
started.
+TCPLISTEN:bind error
Failed to bind
AT+TCPLISTEN=6800
Transparent listening has been set.
Listening...
AT+TCPLISTEN?
+TCPLISTEN:listening status
AT+TCPLISTEN?
+TCPLISTEN:not listening
Query the listening status. Here the
server is in the listening status.
Query the listening status. Here the
server is not in the listening status.
Connect AcceptSocket=1,ClientAddr=119.123.77.133
Receive the connection request from the client. AcceptSocket indicates the socket ID on
the module, and 119.123.77.133 is the IP address of the client.
Remarks
This command is valid only after a PPP link is set up succesfully.
Only the SIM cards with fixed IP addresses can be used as servers.
12.3 Closing the Listening Link: +CLOSELISTEN
Description
To close the listening connection and the listened links with the client
Format
AT+CLOSELISTEN<CR>
+CLOSECLIENT:<socket>,remote link closed
+CLOSECLIENT:<socket>,local link closed
Parameter
<Socket>: Socket number
Return
Value
See the Example.
Copyright © Neoway Technology Co., Ltd
53
Neo_WM620 AT Command Set
Example
Remarks
AT+CLOSELISTEN
+CLOSELISTEN:0,local link closed
Abnormalities might occur on the network.
+CLOSECLIENT:1,remote link closed
The local link will be closed if there is any link
to the client.
N/A
12.4 Closing Connections with the Client: +CLOSECLIENT
Description
To close all connections with the client
Format
AT+CLOSECLIENT[=<socket>]
CLOSECLIENT:<socket>,remote link closed
Parameter
<Socket>: Socket ID
Return
Value
See the Example.
Example
AT+CLOSECLIENT
No parameter, closed multiple connections.
+CLOSECLIENT:1,remote link closed
+CLOSECLIENT:2,remote link closed
AT+CLOSECLIENT=1
With parameter: closed one connection.
+CLOSECLIENT:1,remote link closed
AT+CLOSECLIENT=1
No remote client on link 1.
ERROR
AT+CLOSECLIENT
All remote clients have been closed.
+CLOSECLIENT:All remote link closed
Remarks
N/A
12.5 Receiving Data from the Client: +TCPRECV(S)
Description
To receive data from the client
Format
+TCPRECV(S):<socket>,<length>,<data>
Parameter
N/A
Return
See the Example.
Copyright © Neoway Technology Co., Ltd
54
Neo_WM620 AT Command Set
Value
Example
+TCPRECV(S):1,10,1234567899
Remarks
Additional (s) makes this command different from the receive mode of the client mode in
format.
12.6 Sending Data to the Client: +TCPSENDS
Description
To send data to the client
Format
AT+TCPSENDS=<socket>,<length>
Parameter
<socket>: The value of AcceptSocket, that is, the socket of the module. See the
description of the AT+TCPLISTEN command.
<length>: The length of the data to be sent, value ranges from 1 to 1024, unit: byte.
Return
Value
See the Example.
Example
AT+TCPSENDS=0,10
>1234567890
10-byte data is successfully sent through link
0.
OK
+TCPSENDS:0,10
AT+TCPSENDS=0,10
No link has been set up using socket 0.
+TCPSENDS:SOCKET ID NOT
ACTIVE
AT+TCPSENDS=0,10
+TCPSENDS:ERROR
AT+TCPSENDS=0,10
>
No TCP link is set up on link 0 through
listening, but some link of other type might
have been set up.
10 seconds timed out. No data is input. The
module returns ERROR.
+TCPSENDS:Error!TimeOut
AT+TCPSENDS=0,4000
The sending length is incorrect.
+TCPSENDS:DATA LENGTH ERROR
Remarks
Ensure that the TCP link has been set up before sending TCP data.
If the format is incorrect, the module returns +TCPSENDS:ERROR.
12.7 Querying the Link Status on the Client: +CLIENTSTATUS
Description
To query the status of the link with the client
Format
AT+CLIENTSTATUS=<socket>
Parameter
<socket>: The value of AcceptSocket, that is, the socket of the module. See the
Copyright © Neoway Technology Co., Ltd
55
Neo_WM620 AT Command Set
description of the AT+TCPLISTEN command.
Return
Value
+CLIENTSTATUS:<socket>,<CONNECT or DISCONNECT>,<TCP or INVALID>,
<send-buffer-size>
<CONNECT or DISCONNECT>: Link status, value: CONNECT or DISCONNECT
<TCP or INVALID>: Link type, value: TCP or INVALID
<send-buffer-size>: The size of the available send buffer on the module, in decimal ASCII
mode, unit: byte
Example
AT+CLIENTSTATUS=0
+CLIENTSTATUS:0,CONNECT,TCP,61440
A TCP link has been set up with the
socket 0 client and the buffer size is
61440 bytes.
AT+CLIENTSTATUS=4
+CLIENTSTATUS:4,DISCONNECT
Remarks
If the link type is INVALID, the link might be TCP/UDP client instead of a TCP link
listened.
You can use the +IPSTATUS to query the specific type.
Copyright © Neoway Technology Co., Ltd
56
Neo_WM620 AT Command Set
A Reference Process of AT Command Programming
A.1 Content of PDU SMS Messages
<PDU> SMS message sending format:
1>: 0891
08: indicates the length of the SMSC address information
91: indicates the format of the SMSC address
2>: Inversion of every two bits (add F if the bits are not sufficient) in SMSC number, fixed. For example,
China Unicom 8613010888500 should be 683108705505F0 here.
3>: 0100
01: Indicates basic parameters
00: indicates message baseline value
4>: Convert the receive
ng number into hexadecimal. For example, the number length is 11 bits and then the hexadecimal length should
be 0B.
5>: 81 (Receiving mode) there are multiple receiving modes. 81 indicates that the receiving mode is
unknown.
6>: Inversion of every two bits (add F if the bits are not sufficient) in the recipient number. For example,
13421839693 should be 3124819396F3 after conversion.
7>: 0008
8>: The hexadecimal length of the SMS message content. For example, the UCS2 code of hello is
00080A00680065006C006C006F, that is 10 bits and the hexadecimal length is 0A.
9>: Message content, for example, the USC2 code of hello is 00080A00680065006C006C006F.
One PDU 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.
The following is an example of the PDU message whose SMSC address length is not 0:
0891683110808805F001000B813124819396F300080A00680065006C006C006F
Wherein,
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
Copyright © Neoway Technology Co., Ltd
57
Neo_WM620 AT Command Set
00680065006C006C006F: SMS message content
Message content: hello
The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23.
The following is an example of the PDU message whose SMSC address length is 0:
0001000B813124819396F300080A00680065006C006C006F
Wherein,
00: SMSC address information length
0100
0B: the length of the recipient number
81: Receiving mode
3124819396F3: The number of recipient
0008
0A: The length of the content
00680065006C006C006F: SMS message content
SMS message content: hello
The SMS message content starts from 0100, so the value of LENGTH in AT+CMGS=LENGTH is 23.
Copyright © Neoway Technology Co., Ltd
58
Neo_WM620 AT Command Set
A.2 Flowchart of Sending Text SMS Messages
Figure A-1 Flowchart of sending text format SMS messages
Set the text mode
AT+CMGF=1
OK
Configure the TE character set
AT+CSCS="GSM"
OK
Send an SMS message.
Press Enter to send the SMS
message. When the > symbol
is displayed, you can send the
message.
AT+CMGS="13430981508"
>
Enter Shenzhen Neoway
Technology and press
Ctrl+Z (character 0x1A) to
send the message.
Content of the message to be
sent.
Shenzhen Neoway Technology
Successful
Return value
+CMGS: 116
OK
End
Copyright © Neoway Technology Co., Ltd
59
Neo_WM620 AT Command Set
A.3 Flowchart of Sending PDU SMS Messages
Figure A-2 Flowchart of Sending PDU SMS messages
Set the PDU mode.
AT+CMGF=0
OK
Configure TE character set.
AT+CSCS="UCS2"
OK
Send an SMS message.
The length of the SMS
message is 23 bytes in
PDU mode.
AT+CMGS=23<CR>
>
Content of the message to be
sent
Input message content,
which is encoded in PDU
mode and sent by pressing
Ctrl+Z (0X1A).
0891683110808805F001000B813124819396F3
00080A00680065006C006C006F
Successfully
Return value
+CMGS: 117
OK
End
Copyright © Neoway Technology Co., Ltd
60
Neo_WM620 AT Command Set
A.4 Flowchart of AT Commands to Establish TCP Link
Figure A-3 Flowchart of using AT commands to establish TCP link
Start the module
+EIND:128
The module is initialized.
ERROR
AT\r
Test AT commands
ERROR
AT+CCID\r
Return ICCID
Query the ICCID of the SIM card.
ERROR indicates no SIM card.
If the module returns an ICCID, there is a SIM
card.
No signal
AT+CSQ\r
Failed to register
Query the RF power.
Valid RF
power
AT+CREG?\r
Query the network registration status.
The module returns +CREG: 0,1 or +CREG:
0,5, indicating that it registered the network.
Registered
ERROR
Set up a PPP connection.
AT+XIIC=1\r
OK
ERROR
AT+PPPSTATUS\r
+PPPSTATUS:OPENED
A PPP link is set up
successfully
Copyright © Neoway Technology Co., Ltd
61
Neo_WM620 AT Command Set
A PPP link is set up
successfully
AT+TCPCLOSE=0\r
ERROR
AT+TCPSETUP=0,220.199.66.56,5500\r
DISCONNECT
If socket 0 has been opened, close it first.
Use socket 0 to set up a TCP link. The server
IP address is 220.199.66.56 and the port ID is
6800.
+TCPSETUP:0,OK
AT+IPSTATUS=0\r
Query socket 0.
+IPSTATUS:0,CONNECT,TCP,4096;
Indicates the TCP link is set up successfully.
CONNECT
AT+TCPSEND=0,10\r
No
Return ">"
Yes
ERROR
0123456789\r
Yes
Send more data?
Socket 0 sends 10-byte data.
1. Send 10 bytes: 0...9, the data should end
with 0x0D.
2. If the module returns:
OK
TCPSEND:0,10
Data is sent successfully.
3. When the module returns >, send data to
the UART.
No
AT+TCPCLOSE=0\r
No
Return
"+TCPCLOSE:0,OK"
Yes
End
Copyright © Neoway Technology Co., Ltd
62
Neo_WM620 AT Command Set
A.5 Flowchart of Receiving SMS Messages
Figure A-4 Flowchart of receiving SMS messages
1. Power on the module.
Start the module
2. +EIND: 128 indicates that the module is
ready
Startup code
ERROR
3. Check whether AT commands are available.
AT\r
OK
ERROR
AT+CCID\r
ICCID
No signal
4. Read the ICCID of the SIM card.
ERROR indicates that the SIM card cannot be
found.
Check whether the SIM card is inserted or the
card socket works properly.
5. Check the RSSI.
+CSQ: 99, 99 indicates no signal.
+CSQ: 21, 99 indicates that the RSSI is 21.
AT+CSQ\r
There is signal
Not registered
AT+CREG?\r
6. Check the network registration status.
The module returns +CREG: 0,1 or +CREG:
0,5, indicating that it has registered a network.
+CREG: 0,1
+CREG: 0,5
ERROR
AT+CMGF=1\r
OK
Return ERROR
AT+CSCS="GSM"\r
OK
Return ERROR
AT+CNMI=2,1,0,0,0\r
OK
7. Set the SMS mode.
Note:
AT+CMGF=1 indicates the text mode.
AT+CMGF=0 indicates the PDU mode.
8. Set the TE character set.
Note:
Select a format for the received content. For
details, see the command set.
In general, set it to GSM for text format and
UCS2 for PDU format.
9. Set the SMS message notice format.
Note:
AT+CNMI=2,1,0,0,0 indicates there is a
reminder for new messages and the messages
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
63
Neo_WM620 AT Command Set
Waiting for new messages
ERROR
AT+CNMI=2,1,0,0,0\r
OK
Failed read messages
AT+CMGR=index\r
Read the message
successfully
End
Copyright © Neoway Technology Co., Ltd
10. Relevant functions have been configured.
Wait for SMS message reminder.
11. Check whether the end device receives any
return code of an SMS reminder.
Determine the SMS reminder format based on
the SMS indication format.
+CMTI:"MT",<index>
"MT" indicates the storing location.
<index> indicates the sequence number of the
SMS messages.
Note:
If the SMS message notice is set to
AT+CNMI=2,2,0,0,0, for example,
+CMT:"8615013473810",,"2012/09/15
15:20:32+32"Neoway Technology,
the message is directly displayed and you do not
have to run the next command.
12. Determine the value of <index> (SMS
message SN)based on the SMS indication code
and read the message of that SN. The message is
in the following format:
+CMGR:"REC
UNREAD0","8615013473810",,"2012/09/15
15:20:32+32"Neoway Technology
OK
Neoway Technology is the content of the
message received.
64
Neo_WM620 AT Command Set
A.6 Flowchart of Sending SMS Messages
Figure A-5 Flowchart of sending SMS messages
Start the module
Startup code
ERROR
AT\r
Return OK
Return ERROR
AT+CCID\r
Return ICCID
No signal
AT+CSQ\r
Not register the
netwrok
1. Power on the module.
2. +EIND: 128 indicates that the module is
ready.
3. Check whether AT commands are
available.
4. Read the ICCID of the SIM card.
ERROR indicates that the SIM card cannot
be found.
Check whether the SIM card is inserted or
the card socket works properly.
5. Check the RSSI.
+CSQ: 99, 99 indicates no signal.
+CSQ: 21, 99 indicates that the RSSI is 21.
There is signal
AT+CREG?\r
6. Check the network status.
The module returns +CREG: 0,1 or
+CREG: 0,5, indicating that it has registered
a network.
Register the netwrok
Return ERROR
AT+CMGF=1\r
Return OK
Return ERROR
AT+CSCS="GSM"\r
Return OK
7. Set the SMS mode.
Note:
AT+CMGF=1 indicates the text mode.
AT+CMGF=0 indicates the PDU mode.
8. Set the TE character set.
Note:
Select a format for the sent content. For
details, see the command set.
In general, set it to GSM for text format and
UCS2 for PDU format.
Send a text message
AT+CMGS="number"\r
9. Send the SMS message.
Note:
If you want to send PDU SMS messages,
send AT+CMGS=Length.
Length indicates the length of the SMS
message. For details, see A.1.
Not return >
Check whether > is returned
Return >
Fail to send
Neoway Technology<Ctrl+z>
Successful
End
Copyright © Neoway Technology Co., Ltd
10. Send data only after the module returns
>.
11. Send data (end with 0x1A)
+CMGS: 117 (not a fixed value)
OK
Indicates that the data is sent successfully.
Note:
On the hyper terminal or UART tool, press
Ctrl+Z to enter the end symbol 0x1A.
65
Neo_WM620 AT Command Set
A.7 Common AT Commands for SMS TX/RX
Function
Format
Example
Description
Set text mode
AT+CMGF=1
AT+CMGF=1
AT commands to be set when
sending SMS messages in
text mode
OK
To set the TE
character set
AT+CSCS="GSM"
Set PDU mode
AT+CMGF=0
AT+CSCS="GSM"
OK
AT+CMGF=0
OK
Display TE in
hexadecimal
AT+CSCS="UCS2"
Send SMS
messages.
AT+CMGS="Number
"
AT+CSCS="UCS2"
OK
AT+CMGS"13430981508"
>Shenzhen
+CMGS: 232
OK
Notice mode of
new messages
AT commands to be set when
sending SMS messages in
PDU mode
AT+CNMI=2,1,0,0,0
AT+CNMI=2,1,0,0,0
(Received SMS message and
message SN)
Enter the
AT+CMGS"13430981508"
command and press Enter
(\r).
When > is displayed, enter
the message content
(Shenzhen) and press Ctrl+Z
(character 0x1A) to sent the
message.
The CNNI can be set to
2,2,0,0,0.
+CMTI: "SM", 1
Read SMS
messages
AT+CMGR=1
AT+CMGR=1
+CMGR:"REC UNREAD",
"13430981508",,"
2012/09/08 16:30:08+32"
Shenzhen Neoway
Technology
OK
Read all SMS
messages
Delete SMS
messages
AT+CMGL="ALL"
AT+CMGL ="ALL"

If AT+CMGF=0, the
command to read all SMS
messages is AT+CMGL
=4.

The unread SMS messages
change to read messages
after all messages are listed.
List all messages
AT+CMGD=n
Copyright © Neoway Technology Co., Ltd
AT+CMGD=1
OK
Delete SMS messages based
on the sequence number.
66
Neo_WM620 AT Command Set
Delete all
messages.
AT+CMGD=0,4
Query the number
of SMS messages
AT+CPMS?
AT+CMGD=0,4
OK
Delete SMS messages as
required. For details, see the
AT commands.
+CPMS:
1: Indicates the number of the
messages.
"SM", 1, 50, "SM", 1, 50,
"MT", 1, 50
50: indicates the number of
messages that can be stored.
AT+CPMS?
OK
Copyright © Neoway Technology Co., Ltd
67
Neo_WM620 AT Command Set
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
Start the module
1. Power on the module.
Startup code
2. ...
+EIND: 1 indicates that the module
is ready.
AT\r
3. Check whether AT commands are
available.
ERROR
OK
ERROR
AT+CCID\r
4. Read the ICCID of the SIM card.
If the module returns ERROR, check
whether the SIM card is inserted or
the card socket works properly.
CCID
No signal
AT+CSQ\r
There is signal
Not registered
AT+CREG?\r
Registered the network
5. Query the signal quallity.
6. Query the network registration
status.
If the module returns +CREG: 0,1 or
+CREG: 0,5, the SIM card registers
the network successfully.
ERROR
AT+CGDCONT=1, "IP", "CMNET" \r
7. CMNET is the APN of China
Mobile. APN varies with carriers.
OK
ERROR
AT+XIIC=1\r
Failed to obtain the
IP address
OK
AT+XIIC?\r
Valid IP
8. Set up a PPP link.
9. Return value:
+XIIC: 1,10.232.165.29 indicates
the module sets up a PPP link
successfully.
The module IP is 10.232.165.29.
+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
68
Neo_WM620 AT Command Set
The PPP link is
set up
successfully
Failed to log in
AT+FTPLOGIN=<ip>,<port
>,<user>,<pwd>
10. Return value:
π +FTPLOGIN:Have Logged In: You
have logged in to the FTP server.
π +FTPLOGIN:User logged in: You
log in to the FTP server successfully.
π If you failed to log in to the FTP
server, check whether the parameters
are set correctly.
Logged in
AT+FTPSTATUS\r
Download data
from the server
11. Query the FTP status. (Optional)
The IP and port of the FTP server will be
returned:
+FTPSTATUS:1,119.139.221.66,21
Upload data to the
server
AT+FTPGET=<dir&filename>
,<type>,<Content or Info>
AT+FTPPUT=<filename>,<typ
e>,<mode>,<size>
AT+FTPLOGOUT\r
12. Upload or download data.
13. Exit from the FTP server
End
Copyright © Neoway Technology Co., Ltd
69
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising