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:
4.4 Call Answering: ATA ................................................................................................................................. 26
4.5 Hanging Up Calls: ATH ............................................................................................................................. 26
9.2 Setting Up a PPP Link: +XIIC ................................................................................................................... 57
9.3 Querying the PPP Connection Status: +PPPSTATUS ................................................................................ 58
9.4 Setting Up TCP Connection: +TCPSETUP ............................................................................................... 58
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.
The return values are varied with MNC:
+EUSIM:0 for MNC=00/02/07
+EUSIM:1 for MNC=01/06
+EUSIM:2 for other MNC values
+EUSIM:ERROR indicates that the module did not detect SIM card.
Remarks
Users can determine whether the module starts up successfully or not by
detecting "+EIND:128".
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
To make the indicator blink as described above, execute the
AT+SIGNAL=1 command.
After the 3G/GPRS module is booted, the UART1 outputs the following boot LOG:
+EIND: 128
<pas>:
0: ready. The module is ready and is able to execute AT commands.
1: unavailable (MT does not allow commands)
2: unknown
3: ringing. There is an incoming call and the module is ringing. The module can execute
AT commands.
4: call in progress. A call is going on and the module can execute AT commands.
5: asleep (low functionality)
Return
Value
<CR><LF>+CPAS: <pas><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>+CME ERROR: <error><CR><LF>
Example
AT+CPAS
+CPAS: 0
OK
The module is ready.
AT+CPAS=?
+CPAS: (0-5)
OK
The module is in any possible status.
AT+CPAS
+CME ERROR: <error>
Error is the type of the returned error. It can
be digits or character string.
Remarks
N/A
Description
To query the network registration status of the module
Format
AT+CREG=<n><CR>
AT+CREG? <CR>
AT+CREG=?<CR>
Parameter
<n>:
0: Forbid unsolicited result codes of network registration (default setting).
2.1 Querying the Module Status: +CPAS
2.2 Querying the Network Registration Status: +CREG
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
Example
AT+CREG=1
OK
Enable network registration unsolicited
result code.
AT+CREG?
+CREG: 1,1
OK
Query the current network registration
status.
AT+CREG=?
+CREG: (0-2)
OK
Query the valid parameter value range.
Remarks
N/A
Description
To select the functions of the module by setting <fun>
<fun> supports only a few values.
<fun>:
0: Turn off the radio an SIM power (minimum functions).
1: All functions
4: Turn off the RF transmit and receive circuit of the module (flight mode).
6: Ready to restart (the module is set to restart, and you can query this status before the
restart.)
7: Offline state (During the restart, the module is offline and then searches for the network
but fails. The module enters this state, which can be queried only.)
<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
Set the module online.
AT+CFUN=1,1
OK
Set all functions for the module and restart
it.
AT+CFUN?
+CFUN: 1
OK
Query the current functionality level.
AT+CFUN=?
+CFUN: (0-1,4,6-7),(0-1)
OK
Query the valid parameter value ranges.
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.
AT+CFUN=4,1 is not supported.After the module restarts, it enters all function mode.
PIN code is entered incorrectly for three
times. PUK code is required to unlock the
USIM card.
Enter the PUK code and new PIN code.
The USIM card is unlocked.
Remarks
N/A
Description
To lock, unlock or interrogate an MT or a network facility
Format
AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]<CR>
AT+CLCK=?<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
2.9 Enabling PIN and Querying MT and Network Device:
+CLCK
To modify the password of the lock function of the module
Format
AT+CPWD=<fac>,<oldpwd>,<newpwd><CR>
AT+CPWD=?<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>
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.
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
RELEASE
OK
AT+CEER
+CEER: Client ended call
OK
Query after ending a call which is
initiated by the module.
To enable or disable the +CME ERROR:<err> result code
Format
AT+CMEE=<n><CR>
AT+CMEE? <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+CSQ=1
+CME ERROR: 3
Enable the result code in digit format.
AT+CMEE=?
+CMEE: (0,1,2)
OK
Query the status range of error code.
AT+CMEE?
+CMEE: 1
OK
Query the status of the current result
code.
AT+CMEE=0
OK
AT+CSQ=1
ERROR
Disable the result code.
Display ERROR only.
AT+CMEE=2
OK
AT+CSQ=1
+CME ERROR: operation not allowed
Enable the result code and display
verbose error value.
Remarks
The default value is 2.
Description
To enable the hardware or software flow control function
Format
AT+IFC=<n1>,<n2><CR>
2.13 Enabling the Hardware or Software Flow Control Function:
+IFC
<n1>: TX flow control
0: None, Transmit data flow control disabled.
1: XON/XOFF, Remove Xon (0x19) and Xoff (0x17) characters from data stream.
2: Hardware, Use RTS (Request To Send) /CTS (Clear to Send) signal
3: XON/XOFF, Leave Xon (0x19) and Xoff (0x17) characters in data stream.
<n2>: RX flow control
0: None, Receive data flow control disabled.
1: XON/XOFF, Remove Xon (0x19) and Xoff (0x17) characters from data stream.
2: Hardware, Use CTS (Clear To Send) signal (default)
Return
Value
See the Example.
Example
AT+IFC=1,1
OK
Enable the software flow control.
AT+IFC=2,2
OK
Enable the hardware flow control.
AT+IFC=0,0
OK
Disable the flow control function.
AT+IFC=?
+IFC: (0-3),(0-2)
OK
Query the valid parameter value ranges.
AT+IFC?
+IFC: 0, 0
OK
Query the current status of flow
control.
Remarks
The setting of this command will not be saved after the module is powered off.
This command is supported by E9C33425 and later versions.
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
N/A
Example
AT+COPS=0,0
OK
Set to the long alphanumeric format
AT+COPS=0,2
OK
Set to digital mode
AT+COPS?
+COPS: 0,0, " CHINA MOBILE ",0"
OK
China Mobile
AT+COPS?
+COPS: 0,2,"46000",0
OK
If it is set to digital mode, get the
number 46000
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>
Example
ATA
SPEECH ON
OK
Answer the call.
Remarks
N/A
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
End all call connections.
Remarks
N/A
Description
To send the DTMF tone
Only for voice services in GSM
< 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
Query the DTMF signal range of the
module.
AT+VTS=0
OK
Send DTMF signals.
Remarks
This command is valid during a call.
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
RING
SPEECH ON
Set the auto-answer for one ring.
A call in incoming.
It is answered automatically after one
The setting of this command is not saved after the module is powered off.
Description
To enable, disable, and modify the echo cancellation function during a call
Format
AT+ECHO=<mode><CR>
AT+ECHO?<CR>
AT+ECHO=?<CR>
Parameter
<mode>: 0 to 6
0 Vocoder Echo Cancellation Off
1 Ear Seal Echo Cancellation
2 Head Set Echo Cancellation
3 AEC
4 Speaker Echo Cancellation for car kit operation
5 Bluetooth earphone Echo Cancellation (not supported)
6 Default Echo Cancellation for current path settings
Return
Value
<CR><LF>OK<CR><LF>
<CR><LF>+ECHO: <mode><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+ECHO: (0-6)<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>ERROR<CR><LF>
Example
AT+ECHO=0
OK
Disable the echo cancellation
function.
AT+ECHO=8
ERROR
The command is incorrect. The value
set is beyond the parameter value
range.
To select an SMS service among SMS-MO, SMS-MT, and SMS-CB
Format
AT+CSMS=<service><CR>
AT+CSMS?<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
OK
Set SMS AT commands to support
GSM07.05 Phase 2+.
AT+CSMS?
+CSMS: 1, 1, 1, 1
OK
Display current values.
AT+CSMS=?
+CSMS: (0-1)
OK
Query valid value range.
Remarks
N/A
Description
To set preferred SMS storage
Format
AT+CPMS=<mem1> <CR>
AT+CPMS? <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
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: 18,50,3,23,3,23
OK
Set SM as the preferred SMS storage
memory.
AT+CPMS?
+CPMS: "SM",18,50,"ME",3,23,"MT",3,23
OK
Query the detailed information of
mem1, mem2, and mem3.
"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.
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>
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.
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.
5.5 Setting the New Message SMS Indications Mode: +CNMI
<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=2,1,0,0,0
OK
Set the SMS message indication mode.
AT+CNMI=?
+CNMI:
(0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)
OK
Query the value ranges of the paramters.
AT+CNMI?
+CNMI: 2, 1, 0, 0, 0
OK
Query the current SMS indication mode.
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
AT+CNMI=2,1 or AT+CNMI=2,2 is recommended.
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:
UNREAD","18777397945",,"14/03/26,13:57:58+32"
hello world
OK
Read the message.
Remarks
If the status of the message is received unread, the status in the storage changes to received
read.
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,
0: Unread SMS messages received
1: Read SMS messages received
2: Stored unsent SMS messages
3: Stored sent SMS messages
4: All SMS messages
Return
Value
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>
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]]
if text mode (+CMGF=1), command successful and SMS-COMMANDs:
<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>
+CMGS: 171
<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>
>"This is the text"<Ctrl-Z>
The message status is set to "stored unsent" by default. <stat> also supports other values
such as "stored unsent" and "stored sent".
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:
+CMSS: <mr>[,<scts>]
if PDU mode (+CMGF=0) and sending successful:
<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
OK
Delete successfully
AT+CMGD=?
+CMGD: (0-49), (0-4)
OK
Query the value ranges of parameters.
AT+CMGD=0,4
OK
Delete all messages.
Remarks
If you set <delflag>, ignor the parameter <index>.
Description
To set the SMSC number
Format
AT+CSCA=<sca>[,<tosca>]<CR>
AT+CSCA?<CR>
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).
The setting will be saved after the module is powered off.
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
Set text mode parameters.
AT+CSMP?
+CSMP: 17, 167, 0, 0
OK
Query the current settings of the text
mode.
Remarks
N/A
5.13 Setting the Parameters of the Text Mode: +CSMP
<storage>:
"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
<index1>, <index2>, <index>: Integer type values in the range of location numbers of
phonebook memory
<number>: String type phone number of format <type>
<type>: Type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7)
<text>: The phonebook entry name, string type field of maximum length<tlength>;
character set as specified by command Select TE Character Set +CSCS
+CPBR: (list of 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
<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.
Query the phone number information of
contact Comneon.
Remarks
N/A
Description
To write information to the phonebook
Format
AT+CPBW=<index>,<number>,<type>,<text> <CR>
AT+CPBW=?<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.
<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
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>]]][
Set unconditional call
forwarding when the SIM card
supports this service.
AT+CCFC=?
+CCFC: (0,1,2,3,4,5)
OK
Query the parameter value range of
call forwarding settings.
AT+CCFC=0,1
OK
Enable unconditional call forwarding.
AT+CCFC=0,2
+CCFC: 1,1,"+8615688346754",145,,,
OK
Query unconditional call forwarding.
AT+CCFC=0,0
OK
Disable unconditional call
forwarding.
AT+CCFC=0,4
OK
Cancel unconditional call forwarding.
Remarks
Call-related supplementary services are required.
Description
To set call waiting
Format
AT+CCWA=<n>[,<mode>[,<class>]]<CR>
AT+CCWA? <CR>
AT+CCWA=?<CR>
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
+CCWA: <status>,<class1>[<CR><LF>+CCWA: <status>,<class2>[...]]
Example
AT+CCWA=1,1
OK
Set call waiting and enable callee ID
display.
AT+CCWA=?
+CCWA: (0-1)
OK
Query the value range of the
parameter <n>.
AT+CCWA?
+CCWA: 0
OK
Query the current call waiting setting.
Remarks
Call-related supplementary services are required.
Description
To set call on hold and add it to a conversation
Format
AT+CHLD=<n> <CR>
AT+CHLD=? <CR>
Parameter
<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’
7.3 Call Holding and Multi-party Conversation: +CHLD
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
Release all held calls.
ATD10010;
OK
SPEECH ON
ALERTING
CONNECT
AT+CHLD=11
SPEECH OFF
RELEASE
OK
Release first call.
AT+CHLD=?
+CHLD: (0, 1, 1x, 2, 2x, 3, 4)
OK
Query the value range of the
parameter <n>.
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.
<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.
<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
Set PDP format.
AT+CGDCONT?
+CGDCONT: 1,"IP","internet","",0,0
OK
Query current PDP format.
AT+CGDCONT=?
+CGDCONT: (1-16),"IP",,,(0-2),(0-3)
+CGDCONT: (1-16),"PPP",,,(0-2),(0-3)
<cid>: 1~16, PDP Context Identifier, which defines the PDP context. This is the local
TE-MT interface and used to other PDP context commands. You can use the query
command to get the minimum value (1).
<auth_type>: Authentication type.
0: NONE
1: PAP
2: CHAP
<pwd>: password
<user>: user name
Return
Value
See the Example
Example
AT$QCPDPP=3,0
OK
Set the authentication to NONE.
AT$QCPDPP=2,2,"1234"
OK
Set the authentication type to CHAP and
password to 1234.
AT$QCPDPP=1,1,"1234","GSM"
OK
Set the authentication type to PAP, user
name to GSM, and password to 1234.
9.3 Querying the PPP Connection Status: +PPPSTATUS
Description
To query the PPP connection status
Format
AT+PPPSTATUS
Parameter
N/A
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
OK
The dialing connection is closed.
AT+PPPSTATUS
+PPPSTATUS:OPENED
OK
The dialing connection is opened.
AT+PPPSTATUS
*
OK
The dialing connection is opening or closing.
Remarks
All TCP/UDP sockets are unavailable after the connection is closed. You need to
reconnect them.
This command is supported by E8C33419 and later versions.
Description
To set up a TCP link
Format
AT+TCPSETUP=[n],<ip>,<port>[,<recv_mode>]<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
<port>: Destination port ID in decimal ASCII code, ranging from 0 to 65535
<recv_mode>: Data receiving mode. The default value is 0.
0: Indicates that the data is output directly after the socket receives it.
1: Indicates that the data received is saved in the buffer and you can run +IPNETREAD to
The buffer size is 10K for each socket when you set data receiving mode to manual
reading.
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>: Socket number, ranging from 0 to 5. A TCP connection is established on the socket.
<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
OK
+TCPSEND:0,1
1-byte data is successfully sent through
socket 0.
AT+TCPSEND=0,10
>665A4E0A597D554AFF01
OK
+TCPSEND:0,10
Hexadecimal ASCII data is successfully
sent through socket 0. Select HEX when
sending data.
AT+TCPSEND=0,1
+TCPSEND: SOCKET ID OPEN FAILED
1-byte data fails to be sent via socket 0
because the connection is not established.
AT+TCPSEND=0,4097
+TCPSEND: DATA LENGTH ERROR
4097-byte data fails to be sent via socket
0 because data length exceeds the limit.
AT+TCPSEND=0,10
>
+TCPSEND:Error!TimeOut
10 seconds timed out. No data is input.
The module returns ERROR.
AT+TCPSEND=0,1
+TCPSEND:ERROR
No TCP connection is set up on socket 0,
but some connection of other type might
have been set up.
Remarks
Ensure that the TCP connection has been set up before sending TCP data.
If the command format is incorrect, the module will also returns +TCPSEND:ERROR.
<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
10-byte data is successfully received on
socket 0. The data is 1234567890.
Remarks
N/A
Description
To close a TCP connection
Format
AT+TCPCLOSE=<n> <CR>
AT+TCPCLOSE=?<CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return
Value
See the Example.
Example
AT+TCPCLOSE=1
OK
+TCPCLOSE: 1,OK
The TCP connection on socket 1 is closed
successfully.
AT+TCPCLOSE=?
+TCPCLOSE: (0-5)
OK
Query the value range of socket numbers
that TCP link is closed.
AT+TCPCLOSE=99
+TCPCLOSE: ERROR
Socket number error
+TCPCLOSE:0,Link Closed
The TCP link is disconnected.
Remarks
The query format is supported by E9C33424 and later versions.
Description
To set up a UDP connection
Format
AT+UDPSETUP=[n],<ip>,<port>[,<recv_mode>]<CR>
Parameter
<n>: Socket number, ranging from 0 to 5
The TE will allocate an idle ID to set up the connection 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
<recv_mode>: Data receiving mode. The default value is 0.
0: Indicates that the data is output directly after the link receives it.
1: Indicates that the data received is saved in the buffer and you can run +IPNETREAD to
read it when necessary.
Return
Value
After you input correct AT command, the module will return OK immediately.
If the input command is not correct or the socket is occupied, the module will return
+UDPSETUP: ERROR.
If the AT command is input correctly (the module returns OK), the module returns
+UDPSETUP:<n>,OK after UDP connection is set up successfully. <n> indicates the
socket number.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
+UDPSETUP:1,OK
The connection to 220.199.66.560.7000 is
successfully set up on socket 1.
AT+UDPSETUP=0,58.60.184.213,10405,1
OK
+UDPSETUP:0,OK
+IPURCREAD:0
AT+IPNETREAD=0,1024
+IPREAD:0,10
1234567890
OK
Set up a connection to
58.60.184.213,10405 on socket 0.
Socket 0 receives data.
Read data buffered in socket 0.
AT+UDPSETUP=1,220.199.66.56,6000
+UDPSETUP:ERROR
Socket 1 is in use.
AT+UDPSETUP=55,192.168.20.6,6800
+UDPSETUP:ERROR
The format or the AT command is
incorrect or the socket number is
incorrect.
Remarks
Parameter <recv_mode> is supported by E9C33424 and later versions.
The buffer size is 10K for each socket when you set data receiving mode to manual
reading.
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>: Socket number, ranging from 0 to 5. A UDP connection is established on the socket.
<length>: The length of the data to be sent, ranging from 1 to 1024, unit: byte.
Return
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.
Example
AT+UDPSEND=0,2
>12
OK
+UDPSEND:0,2
Send 2-byte data on socket 0. Then send
the characters to be sent 50 ms to 100 ms
after the module returns >.
The UDP data is sent successfully.
AT+UDPSEND=1,10
>
+UDPSEND:Error!TimeOut
10 seconds timed out. No data is input.
The module returns ERROR.
Remarks
Ensure that the UDP link has been set up before sending UDP data.
Description
To receive UDP data
Format
+UDPRECV:<n>,<length>,<data><CR>
Parameter
<n>: Socket 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
10-byte data is successfully received on
socket 0. The data is 1234567890.
Remarks
N/A
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
AT+UDPCLOSE=?<CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return
Value
If <n> is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns +UDPCLOSE:<n>,OK.
Example
AT+UDPCLOSE=1
OK
The TCP connection on socket 1 is closed
successfully.
Command is incorrect. Socket number
cannot be omitted.
Remarks
This command is supported by E9C33424 and later versions.
This command is not supported by links that are set to automatic receiving mode.
This command is applicable to both TCP and UDP.
If the length is set greater than the actual data packet, this command reads data
according to the actual data packet size.
The buffer size is 10K for each socket.
Description
Unsolicited data incoming report
Format
<CR><LF>+IPURCREAD:<n><CR><LF>
Parameter
<n>: Socket number, ranging from 0 to 5
Return
Value
N/A
Example
AT+TCPSETUP=0,58.60.184.213,10405,1
OK
+TCPSETUP:0,OK
+IPURCREAD:0
Set up a connection to
58.60.184.213,10405 on socket 0.
Unsolicited data incoming report
on socket 0.
AT+UDPSETUP=1,58.60.184.213,10405,1
OK
+UDPSETUP:1,OK
+IPURCREAD:1
Set up a connection to
58.60.184.213,10405 on socket 1.
Unsolicited data incoming report
on socket 1.
AT+TCPLISTEN=6000,1
+TCPLISTEN:0,OK
Connect AcceptSocket=1,ClientAddr=10.65.164.98
+IPURCREAD:1
Set up TCP connection with the
remote on socket 1.
This report is supported by E9C33424 and later versions.
The buffer size is 10K for each socket.
+IPURCREAD:FATAL indicates abnormality occurred inside the module during buffer
allocating. The module will restart when this abnormality occurs.
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>: Socket number, ranging from 0 to 5
Return
Value
+TCPACK:<n>,<data_sent>,<acked_recv>
< data_sent >: Data successfully sent through this socket
<acked_recv>: Data acknowledged by the receiver
+TCPACK:<n>,< DISCONNECT >
No connection is set up on this socket.
+TCPACK: <n>,NO TCP LINK
A UDP connection has been set up on this socket.
Example
AT+TCPACK=0
+ TCPACK:0,20,20
OK
20-byte data has been transmitted through
socket 0 and the receiver acknowledged
20-byte data.
AT+TCPACK=0
+ TCPACK:0,128,120
OK
128-byte data has been transmitted
through socket 0 and the receiver
acknowledged 120-byte data.
AT+TCPACK=1
+ TCPACK:1,DISCONNECT
OK
No connection is set up on socket 1.
AT+TCPACK=2
+TCPACK:2,NO TCP LINK
OK
A UDP connection is set up on socket 2.
Remarks
The values of <data_sent> and <acked_recv> are unsigned 64-bit integers in decimal
ASCII. The unit is byte.
9.15 Querying the Status of Data Sent by the TCP Socket:
+TCPACK
<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
+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.
Example
AT+FTPLOGIN=58.60.184.213,21,neowayft
p,neowayftp
OK
+FTPLOGIN:User logged in
Use the user name neowayftp and
password neowayftp to log in to the
server 58.60.184.213 through port 21.
Log in to the server successfully.
AT+FTPLOGIN=11.60.184.213,21,neowayft
p,neoway
OK
+FTPLOGIN:Error TimeOut
The IP address of the FTP server is
incorrect.
Fail to log in to the server.
AT+FTPLOGIN=58.60.184.213,23,neowayft
p,neowayftp
OK
+FTPLOGIN:Error TimeOut
Log in to the FTP server.
Fail to log in to the server because the
port is incorrect.
Fail to log in to the server because the
user name or password is incorrect.
AT+FTPLOGIN=neowayjsr.oicp.net,21,neow
ay,neoway
OK
+FTPLOGIN:User logged in
Log in to the FTP server through its
domain name.
Remarks
You can read or write data on the FTP server only after you logged in to the FTP server.
You must execute AT+XIIC=1 before logging in to the FTP server.
Description
To log out from the FTP server
Format
AT+FTPLOGOUT<CR>
Parameter
N/A
Return
Value
See the Example.
Example
AT+FTPLOGOUT
+FTPLOGOUT:User logged out
OK
Log out from the FTP server
Remarks
N/A
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.
11.2 Logging Out from the FTP Server: +FTPLOGOUT
11.3 Downloading Data from the FTP Server: +FTPGET
+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.
Example
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rw- 1 user group 0 Apr 14 15:55 .
drw-rw-rw- 1 user group 0 Apr 14 15:55 ..
-rw-rw-rw- 1 user group 1238528 Jan 14 10:36 1M.doc
-rw-rw-rw- 1 user group 10 Jan 15 15:01 test.txt
+FTPGET:OK.total length is 446
Obtain
information
in the root
directory.
AT+FTPGET=test.txt,1,2
+FTPGET:65,-rw-rw-rw- 1 user group 10 Jan 15 15:01
test.txt
<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
+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.
+FTPPUT:Error!TimeOut: You did not input file content for too long time.
+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
Query the FTP link status.
The FTP link has been set up. The IP address of
the server and the port are respectively
119.139.221.66 and 21.
AT+FTPSTATUS
+FTPSTATUS:0
Query the FTP link status.
The FTP link has not been set up.
Query the local IP address.
AT+GETIP
+CME ERROR: 3
ERROR is returned because you query the
local IP address before PPP dialup.
Remarks
N/A
Description
To set the TCP listening function of the server, supporting three client links
Format
AT+TCPLISTEN=<port>[,<recv_mode>]<CR>
AT+TCPLISTEN?<CR>
AT+TCPLISTEN=?<CR>
Parameter
<Port>: Port ID, ranging from 1 to 65535
<recv_mode>: Data receiving mode. The default value is 0.
0: Indicates that the data is output directly after the link receives it.
1: Indicates that the data received is saved in the buffer and you can run +IPNETREAD to
read it when necessary.
<Socket>: SOCKET ID
Return
Value
<CR><LF>+TCPLISTEN:<socket>,OK<CR><LF>
Example
AT+TCPLISTEN=6800
+TCPLISTEN:0,OK
or
+TCPLISTEN:bind error
Listening port ID: 6800
The listening function of the server is
started.
Failed to bind
AT+TCPLISTEN=6800
+CME ERROR: 3
Set server listening before setting up
PPP links.
AT+TCPLISTEN=6800
Listening...
Transparent listening has been set.
12.1 Obtaining the Local IP Address: +GETIP
12.2 Setting TCP Listening for the Server: +TCPLISTEN
Query the listening status. Here the
server is in the listening status.
AT+TCPLISTEN?
+TCPLISTEN:not listening
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.
Parameter <recv_mode> is supported by E9C33424 and later versions.
<recv_mode> specified in this command controls the data receiving mode of the
connection set up by Connect AcceptSocket.
Description
To close the listening connection and the listened links with the client
Format
AT+CLOSELISTEN<CR>
Parameter
<Socket>: Socket number
Return
Value
<CR><LF>+CLOSECLIENT:<socket>,remote link closed<CR><LF>
<CR><LF>+CLOSECLIENT:<socket>,local link closed<CR><LF>
Example
AT+CLOSELISTEN
+CLOSELISTEN:0,local link closed
+CLOSECLIENT:1,remote link closed
Abnormalities might occur on the network.
The local link will be closed if there is any link
to the client.
Remarks
N/A
Description
To close all connections with the client
Format
AT+CLOSECLIENT[=<socket>]<CR>
Parameter
<Socket>: Socket ID
12.3 Closing the Listening Link: +CLOSELISTEN
12.4 Closing Connections with the Client: +CLOSECLIENT
No TCP link is set up on link 0 through
listening, but some link of other type might
have been set up.
AT+TCPSENDS=0,10
>
+TCPSENDS:Error!TimeOut
10 seconds timed out. No data is input. The
module returns ERROR.
AT+TCPSENDS=0,4000
+TCPSENDS:DATA LENGTH ERROR
The sending length is incorrect.
Remarks
Ensure that the TCP link has been set up before sending TCP data.
If the format is incorrect, the module returns +TCPSENDS:ERROR.
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
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
<para>: HTTP parameters, supporting the following two parameters:
url: Destination path
port: Destination port ID
<para_value>: The value of <para>. The value of url contains at most 128 bytes and url
supports domain name translation. Slash (/) in the domain name is the ending flag.
Return
Value
See the Example.
Example
AT+HTTPSPARA=url,mybank.icbc.com.cn/icbc/perbank/index.jsp
OK
Set the ICBC
login page as
the URL. The
URL supports
domain name
translation.
AT+HTTPSPARA=url,132.188.73.13/prodreg/beginRegistration.action
OK
Set
132.188.73.13
as the
destination path.
AT+HTTPSPARA=port,443
OK
Set the
destination port
ID to 443.
Remarks
You need to set new HTTP parameters for new HTTPS requests.
After you run the +HTTPSCLOSE command, the link is closed and the HTTPS
parameters are cleared.
This command is supported by E9C33424 and later versions.
Set up an HTTPS link
Failed to translate the domain name.
AT+HTTPSSETUP
OK
Https linking
Set up an HTTP link
Failed because an HTTPS link has
been set up.
AT+HTTPSSETUP
ERROR
Set up an HTTP link
Failed because PPP connection has
not been set up.
AT+HTTPSSETUP
OK
+HTTPSSETUP:FAIL
Set up an HTTP link
Failed. The port has not been set
before setting up an HTTPS link.
Remarks
The link is set up successfully only after you set the destination address and port ID
correctly.
Ensure PPP connection has been set up succesfully before an HTTPS link is set up.
This command is supported by E9C33424 and later versoins.
Description
To execute an HTTPS request
Format
AT+HTTPSACTION=<mode>[,<length>]<CR>
Parameter
<mode>: HTTPS request mode, available value can be 0, 1, 2, 99
0: GET
1: HEAD
2: POST
99: OPEN_MODE, user-defined packet mode
<length>: The length of the POST content or user-defined packet length, maximum value
2048
This parameter must be set when you set <mode> to POST or OPEN_MODE.
Return
Value
See the Example.
Example
AT+HTTPSPARA=url,support.cdmatech.com/login/
OK
AT+HTTPSPARA=port,443
OK
AT+HTTPSSETUP
information */
Content-Length: 10<CRLF> /* custom header
information */
Content-Type: application/x-www-form-urlencoded<CRLF>
/* custom header information */
<CRLF><CRLF>
/*Information to be sent */
……
+HTTPSRECV:
/*homepage content, html format*/ ……..
/* homepage content */
+HTTPSCLOSE:Link Closed
Note that the length includes custom header information.
OPEN_MODE
Custom packet mode
Remarks
You need to comply with the HTTP protocol when defining packets.
This command is supported by E9C33424 and later versions.
<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
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.
+CSQ: 99, 99 indicates no signal.
+CSQ: 21, 99 indicates that the RSSI is 21.
6. Check the network registration status.
The module returns +CREG: 0,1 or +CREG: 0,5, indicating that it has registered a network.
Startup code
AT\r
ERROR
AT+CCID\r
ICCID
ERROR
No signal
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.
1. Power on the module.
2. +EIND: 128 indicates that the module is
ready
OK
There is signal
Not registered
+CREG: 0,1
+CREG: 0,5
AT+CMGF=1\r
AT+CSCS="GSM"\r
AT+CNMI=2,1,0,0,0\r
OK
ERROR
Return ERROR
Return ERROR
OK
OK
Waiting for new messages
7. Set the SMS mode.
Note:
AT+CMGF=1 indicates the text mode.
AT+CMGF=0 indicates the PDU mode.
8. Set the TE 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.
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.
10. Relevant functions have been configured.
Wait for SMS message reminder.
AT+CMGR=index\r
Failed read messages
End
Read the message
successfully
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
+CSQ: 99, 99 indicates no signal.
+CSQ: 21, 99 indicates that the RSSI is 21.
6. Check the network status.
The module returns +CREG: 0,1 or
+CREG: 0,5, indicating that it has registered
a network.
Startup code
AT\r
ERROR
AT+CCID\r
Return ICCID
Return ERROR
No signal
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.
1. Power on the module.
2. +EIND: 128 indicates that the module is
ready.
Return OK
There is signal
Not register the
netwrok
Register the netwrok
AT+CMGF=1\r
AT+CSCS="GSM"\r
Return OK
Return ERROR
Return ERROR
Return OK
Send a text message
7. Set the SMS mode.
Note:
AT+CMGF=1 indicates the text mode.
AT+CMGF=0 indicates the PDU mode.
8. Set the TE character set.
Note:
Select a format for the sent content. For
details, see the command set.
In general, set it to GSM for text format and
UCS2 for PDU format.
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.
Check whether > is returned
Not return >
Return >
10. Send data only after the module returns
>.
Neoway Technology<Ctrl+z>
Fail to send
Successful
End
11. Send data (end with 0x1A)
+CMGS: 117 (not a fixed value)
OK
Indicates that the data is sent successfully.