Набор AT-команд GSM-модуля M590 ( PDF ) 1 Мб

Набор AT-команд GSM-модуля M590 ( PDF ) 1 Мб
Neo_M590E V1 GPRS Module
AT Command Set
Version 1.0
Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd 2016. 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 M590E V1.
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
Support@neoway.com
Website: http://www.neoway.com
Neo_M590E V1 GPRS Module AT Command Set
Revision Record
Issue
Changes
Date
V1.0
Initial draft
2016-02-27
Neo_M590E V1 GPRS Module AT Command Set
Contents
Boot LOG Instruction .................................................................................................................. 1
1 General Commands .................................................................................................................. 2
1.1 Querying the Manufacturer: I ...................................................................................................................... 2
1.2 Querying the Version: +GMR ...................................................................................................................... 2
1.3 Querying Signal Quality: +CSQ .................................................................................................................. 2
1.4 Querying the Network Registration Status: +CREG .................................................................................... 3
1.5 GPRS Network Registration: +CGREG ...................................................................................................... 4
1.6 Querying IMEI: +CGSN .............................................................................................................................. 5
1.7 Restart the Module: +CFUN ........................................................................................................................ 6
1.8 Multiplexing Mode: +CMUX ...................................................................................................................... 6
1.9 Setting the Baudrate of the Module: +IPR ................................................................................................... 7
1.10 Querying the Module Status: +CPAS ......................................................................................................... 8
1.11 Enabling or Disabling the Sleep Mode: +ENPWRSAVE .......................................................................... 9
1.12 Clock: +CCLK ........................................................................................................................................... 9
1.13 Entering the PIN Codes: +CPIN .............................................................................................................. 10
1.14 Enabling PIN and Querying MT and Network Device: +CLCK ............................................................. 11
1.15 Modifying the Password of the PIN: +CPWD ......................................................................................... 12
1.16 Setting GPRS Attach and Detach: +CGATT ............................................................................................ 12
1.17 Setting PDP Format: CGDCONT ............................................................................................................ 13
1.18 GPRS Dialup: ATD*99# .......................................................................................................................... 14
1.19 Switching Data Mode to Command Mode: +++ ...................................................................................... 14
1.20 Switching Command Mode to Data Mode: O .......................................................................................... 15
1.21 Selecting and Registering a GSM Network: +COPS ............................................................................... 15
2 SMS Commands ...................................................................................................................... 17
2.1 Setting Preferred SMS Storage: +CPMS ................................................................................................... 17
2.2 Setting SMS Inputting Mode: +CMGF ...................................................................................................... 18
2.3 Setting the TE Character Set: +CSCS ........................................................................................................ 18
2.4 Setting the SMS Indication Mode: +CNMI ............................................................................................... 19
2.5 Reading SMS Messages: +CMGR ............................................................................................................. 21
2.6 SMS Message List: +CMGL...................................................................................................................... 22
2.7 Sending SMS Messages: +CMGS ............................................................................................................. 23
2.8 Writing SMS Messages: +CMGW ............................................................................................................. 24
2.9 Sending Stored SMS Messages: +CMSS ................................................................................................... 25
2.10 Deleting SMS Messages: +CMGD .......................................................................................................... 26
2.11 Setting the SMS Center Number: +CSCA ............................................................................................... 26
2.12 Setting the Parameters of the Text Mode: +CSMP .................................................................................. 27
2.13 Displaying the Parameters of the Text Mode: +CSDH ............................................................................ 27
3 TCP/UDP Data Service ........................................................................................................... 28
3.1 Setting Up a PPP Link: +XIIC ................................................................................................................... 28
3.2 Setting Up TCP connection: +TCPSETUP ................................................................................................ 29
3.3 Sending TCP Data: +TCPSEND ................................................................................................................ 30
3.4 Receiving TCP Data: +TCPRECV ............................................................................................................ 31
3.5 Closing TCP Connection: +TCPCLOSE ................................................................................................... 31
Neo_M590E V1 GPRS Module AT Command Set
3.6 Setting Up UDP Connection: +UDPSETUP .............................................................................................. 31
3.7 Sending UDP Data: +UDPSEND .............................................................................................................. 32
3.8 Receiving UDP Data: +UDPRECV ........................................................................................................... 33
3.9 Closing UDP Connection: +UDPCLOSE .................................................................................................. 33
3.10 Querying TCP/UDP Connection Status: +IPSTATUS ............................................................................. 34
3.11 Setting Local UDP Port: +UDPLPORT ................................................................................................... 34
3.12 Setting Up TCP Transparent Transmission Connection: +TCPTRANS .................................................. 35
3.13 Setting Up UDP Transparent Transmission Connection: +UDPTRANS ................................................. 35
3.14 Setting Automatic TCP Data Sending: +TCPAUTO ................................................................................ 36
4 DNS Command ....................................................................................................................... 39
4.1 Querying the IP Address: +DNS ................................................................................................................ 39
5 FTP AT Commands ................................................................................................................. 40
5.1 Logging In to the FTP Server: +FTPLOGIN ............................................................................................. 40
5.2 Logging Out from the FTP Server: +FTPLOGOUT .................................................................................. 41
5.3 Downloading Data from the FTP Server: +FTPGET ................................................................................. 41
5.4 Uploading Data to the FTP Server: +FTPPUT .......................................................................................... 42
5.5 Querying FTP Connection Status: +FTPSTATUS ..................................................................................... 43
6 TCP Server AT Commands ................................................................................................... 44
6.1 Setting TCP Listening for the Server: +TCPLISTEN ................................................................................ 44
6.2 Closing the Listening Connection: +CLOSELISTEN ............................................................................... 44
6.3 Closing Connections of the Client: +CLOSECLIENT .............................................................................. 45
6.4 Receiving Data from the Client: +TCPRECV(S) ...................................................................................... 45
6.5 Sending Data to the Client: +TCPSENDS ................................................................................................. 45
6.6 Querying the Connection Status on the Client: +CLIENTSTATUS .......................................................... 46
7 Unlimited UDP Server AT Commands............................................................................... 47
7.1 Setting UDP Listening for Server: +FUDPLISTEN .................................................................................. 47
7.2 Receiving Data from the Client: +FUDPRECV(S) .................................................................................... 48
7.3 Sending Data to the Client: +FUDPSENDS .............................................................................................. 48
7.4 Closing Listening for UDP Server: +CLOSEFUDPLISTEN..................................................................... 48
8 LBS Command ......................................................................................................................... 50
8.1 Obtaining the Location of the Module: +CIPGSMLOC ............................................................................ 50
9 Other AT Commands ............................................................................................................. 52
9.1 Querying Base Station Information: +POSI............................................................................................... 52
9.2 Getting the Local Port of a Socket: +GETLPORT ..................................................................................... 53
10 TCP Command Example Process ....................................................................................... 54
10.1 TCP Link through Internal Protocol ......................................................................................................... 54
10.2 TCP Connection through External Protocol ............................................................................................. 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 (Through UART) .................................................................. 59
A.3 Flowchart of Sending PDU SMS Messages (Through UART) ................................................................. 60
Neo_M590E V1 GPRS Module AT Command Set
Boot LOG Instruction
The default baudrate of the module is in automatic detection. The mobile terminal (MT) sends AT\r in
accordance with the standard baudrate (9600bps, 19200bps, 38400bps, 57600bps, and 115200bps), and the
module will automatically detect the baudrate. Before your repower on the module, it accomplishes UART
communications at the automatically detected baudrate. If you need to change the original baudrate during
communication, you must set a new baudrate for the module on the MT. Then the MT will change its
transmitting baudrate.
If you send AT+IPR to the module to set the baudrate to a certain value, the module cannot automatically
detect a baudrate unless you run the command AT+IPR=0\r.
After the module is started, send AT\r to the UART1 of the module. The module returns AT characters,
indicating that the baudrate matches successfully. Send AT\r to the UART again and the module will return OK.
Then, the module is ready to execute AT commands.
Boot log in automatic baudrate detection
The module will not output any boot log before you enter an AT command because the baudrate is unknown.

\r\nMODEM:STARTUP\r\n is output if you enter AT/r before starting the module and
\r\nMODEM:STARTUP\r\n is output after the phonebook is ready.

Only \r\n+PBREADY\r\n is output after the phonebook is ready if you enter AT/r after starting the
module.
Copyright © Neoway Technology Co., Ltd
1
Neo_M590E V1 GPRS Module AT Command Set
1 General Commands
1.1 Querying the Manufacturer: I
Description
To query the manufacturer information, including manufacturer, model, and version
Format
ATI<CR>
Parameter
N/A
Return Value
<CR><LF><Manufacturer>
<CR><LF><Module mode>
<CR><LF> <Version>
<CR><LF>OK<CR><LF>
Example
ATI
NEOWAY
Manufacturer
M590 V1
Module mode
REVISION V001
Version
OK
Remarks
N/A
1.2 Querying the Version: +GMR
Description
To query the software version
Format
AT+GMR<CR>
Parameter
N/A
Return Value
<CR><LF>+GMR: <version>
<CR><LF>OK<CR><LF>
Example
AT+GMR
+GMR: M590_1169_R9S63000_V001
OK
Remarks
N/A
Query the version of the software.
1.3 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
Copyright © Neoway Technology Co., Ltd
2
Neo_M590E V1 GPRS Module AT Command Set
Return Value
<CR><LF> +CSQ: < signal >,<ber>
<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
Not known or not detectable
AT+CSQ
+CSQ: 19,2
Query the current signal strength of the
module.
OK
Remarks
N/A
1.4 Querying the Network Registration Status: +CREG
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).
1: Allow unsolicited result codes of network registration
2: Allow unsolicited location information 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>: string type; two-byte location area code in hexadecimal format
Copyright © Neoway Technology Co., Ltd
3
Neo_M590E V1 GPRS Module AT Command Set
<ci>: string type; two-byte cell ID in hexadecimal format
<Act>:
0: GSM
2: UTRAN
3: GSM w/EGPRS
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
<CR><LF>OK<CR><LF>
<CR><LF>+CREG: (list of supported <n>s)
<CR><LF>OK<CR><LF>
Example
AT+CREG=1
OK
AT+CREG?
+CREG: 0,1
Allow the module to provide
unsolicited network registration code.
Query the network registration status
of the module.
OK
AT+CREG=?
+CREG: (0-2)
Query the value range of the network
registration status.
OK
Remarks
N/A
1.5 GPRS Network Registration: +CGREG
Description
Format
To control the presentation of an unsolicited result code of the module's GPRS network
registration status

AT+CGREG=[<n>]<CR>

AT+CGREG?<CR>

AT+CGREG=?<CR>
<n>: Specifies whether to enable network registration unsolicited result code
0: Disable network registration unsolicited result code (default)
1: Enable network registration unsolicited result code
2: Enable network registration and location information unsolicited result code
Parameters
<stat>: GPRS registration status, integer type
0: Not registered, the module is not currently searching an operator to register to
1: Registered the home network
2: Not registered, but the module is currently trying to attach or searching an operator to
register to
3: Registration denied
4: Unknown code
Copyright © Neoway Technology Co., Ltd
4
Neo_M590E V1 GPRS Module AT Command Set
5: Registered, roaming
<lac>: Two byte location area code in hexadecimal format, string type
<ci>: four byte GERAN/UTRAN cell ID in hexadecimal format, string type
<Act>: The access technology of the serving cell, integer type
0: GSM
2: UTRAN
3: GSM w/EGPRS
<CR><LF>OK<CR><LF>
<CR><LF>+CGREG: <n>,<stat>[,<lac>,<ci>[,<Act>]]
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CGREG: (list of supported <n>s)
<CR><LF>OK<CR><LF>
AT+CGREG?
+CGREG: 0,1
OK
Example
AT+CGREG=1
Query the current GPRS network
registration status. The network registration
unsolicited result code is disabled.
Enable network registration result code.
OK
AT+CGREG=?
Query the available parameter range.
+CGREG: (0-2)
OK
Remarks
After the module registers the GPRS network, the data service is available.
1.6 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>+CGSN: <IMEI>
<CR><LF>OK<CR><LF>
Example
AT+CGSN
Query the IMEI number.
+CGSN: "860998021170687"
OK
Remarks
The IMEI is a character string of 15 digits.
Copyright © Neoway Technology Co., Ltd
5
Neo_M590E V1 GPRS Module AT Command Set
1.7 Restart the Module: +CFUN
Description
To restart the module
Format

AT+CFUN=<fun>,<rst><CR>

AT+CFUN?<CR>

AT+CFUN=?<CR>
Parameter
<fun>: Module work mode
0: sleep mode
1: work mode
<rst>: Specifies whether to restart the module
0: Do not restart the module
1: Restart the module
Return Value
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<CR><LF>+CFUN: <fun>
<CR><LF>OK<CR><LF>
<CR><LF>+CFUN: (list of supported <fun>s), (list of supported <rst>s)
<CR><LF>OK<CR><LF>
Example
AT+CFUN=1,1
Restart the module
OK
AT+CFUN?
Query the current functions.
+CFUN: 1
OK
AT+CFUN=?
Query the range of the parameter value.
+CFUN: (0,1),(0,1)
OK
Remarks
N/A
1.8 Multiplexing Mode: +CMUX
Description
To enable/disable the GSM 07.10 multiplexing protocol control channel
Format

AT+CMUX=<mode>[,<subset>[,<port_speed>[,<N1>[,<T1>[,<N2>[,<T2>[,<T3>[,<
k>]]]]]]]]<CR>

AT+CMUX=?<CR>
Parameter
<mode>: integer type (multiplexer Transparency Mechanism)
0: Basic option
1: Advanced option (not supported)
<subset>: integer type.
Copyright © Neoway Technology Co., Ltd
6
Neo_M590E V1 GPRS Module AT Command Set
0: UIH frames used only (default value)
1: UI frames used only (not supported)
<port_speed>: integer type (transmission rate)
1: 9600 bit/s
2: 19200 bit/s
3: 38400 bit/s
4: 57600 bit/s
5: 115200 bit/s
6: 230400 bit/s
7: 460800 bit/s
8: 921600 bit/s
<N1>: integer type (maximum frame size), ranging from 1 to 32767, where the 512 is
default
<T1>: integer type (acknowledgement timer in units of ten milliseconds), ranging from 1
to 255, where 10 is default (100 ms)
<N2>: integer type (maximum number of re-transmissions) (not supported)
<T2>: integer type (response timer for the multiplexer control channel in units of ten
milliseconds) (not supported)
<T3>: integer type (wake up response timer in seconds) (not supported)
<k>: integer type (window size) (not supported)
Return Value
<CR><LF>OK<CR><LF>
Example
AT+CMUX=0
Basic option. Other parameters are left out.
OK
AT+CMUX=?
Query the available range of parameters.
+CMUX: (0)
OK
Remarks
Only default setting is supported.
1.9 Setting the Baudrate of the Module: +IPR
Description
To set the baudrate of the module
Format

AT+IPR=<baud rate><CR>

AT+IPR?<CR>

AT+IPR=?<CR>
Parameter
<baud rate>: Baudrate
The value can be: 0, 2400, 4800, 9600, 14400, 19200, 28800, 33600, 38400, 57600,
115200, 230400, 460800, 921600, and 1843200.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+IPR: <baud rate><CR><LF>
<CR><LF>OK<CR><LF>
Copyright © Neoway Technology Co., Ltd
7
Neo_M590E V1 GPRS Module AT Command Set
<CR><LF>+IPR: (list of supported <baud rate>s) <CR><LF>
<CR><LF>OK<CR><LF>
Example
Set the baudrate of the module to
115200 bit/s.
AT+IPR=115200
OK
Query the current baudrate of the
module.
AT+IPR?
+IPR: 115200
OK
AT+IPR=?
+IPR:
0,2400,4800,9600,14400,19200,28800,33600,38
400,57600,115200,230400,460800,921600,1843
200
Query the valid baudrate range of the
module.
OK
Remarks

If the queried baudrate is 0, the baudrate is not set for the module.

The settings by this command will be saved after the module is powered off.

The module can automatically detect the following baudrate: 9600, 14400, 19200,
38400, 57600, and 115200.
1.10 Querying the Module Status: +CPAS
Description
To query the work status of the module
Format

AT+CPAS<CR>

AT+CPAS?<CR>
Parameter
<pas>:
0: ready. The module is ready and is able to execute AT commands.
1: unavailable. The command is not allowed by the module terminal (MT).
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>OK<CR><LF>
<CR><LF>+CPAS: (list of supported < pas >s)
<CR><LF>OK<CR><LF>
Example
AT+CPAS
Query the work status of the module.
+CPAS: 0
The module is ready to execute AT commands.
OK
AT+CPAS=?
To query the value range of the module work status
+CPAS: 0,1,3,4
OK
Copyright © Neoway Technology Co., Ltd
8
Neo_M590E V1 GPRS Module AT Command Set
Remarks
N/A
1.11 Enabling or Disabling the Sleep Mode:
+ENPWRSAVE
Description
To enable or disable the sleep mode
Format

AT+ENPWRSAVE=<n><CR>

AT+ENPWRSAVE?<CR>

AT+ENPWRSAVE=?<CR>
Parameter
<n>:
0: Disable the sleep mode. (Default)
1: Enable the sleep mode (The module enters the sleep mode when the DTR signal is at
low level and exits from the sleep mode at high level).
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+ENPWRSAVE:<n><CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+ENPWRSAVE:(list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
Example
AT+ENPWRSAVE=1
Enable the sleep mode of the module.
OK
AT+ENPWRSAVE?
+ENPWRSAVE: 1
Query the enabling status of the sleep mode
of the module.
OK
AT+ENPWRSAVE=?
+ENPWRSAVE:0,1
To query the value range of the
module work status
OK
Remarks

The setting of the parameter <n> will not be saved after the module is powered off.

After the sleep mode is enabled and the DTR signal is at low level, the module can
enter the sleep mode only when all circuits of the module allows the sleep mode.
1.12 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. A
pair of quotation marks ("") is required.
Copyright © Neoway Technology Co., Ltd
9
Neo_M590E V1 GPRS Module AT Command Set
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CCLK: <time>
<CR><LF> OK<CR><LF>
Example
AT+CCLK="08/07/01,14:54:01"
Set the real-time clock of the module.
OK
AT+CCLK?
Query the setting of the real-time clock.
+CCLK: "08/07/01,14:54:10"
OK
AT+CCLK=14/07/02,10:48:50
Command format is incorrect.
ERROR
Remarks
The settings will not be saved after the module is powered off.
1.13 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 with a pair of quotation marks ("")
<PUK>: PUK code of the SIM card
<PIN>: PIN code of the SIM card
Return Value
<CR><LF>+CPIN:<code>
<CR><LF>OK<CR><LF>
<code>:
READY: No password
SIM PIN: Enter PIN code.
SIM PUK: Enter PUK code.
SIM PIN2: Enter PIN2 code.
SIM PUK2: Enter PUK2 code.
Example
AT+CPIN?
Query the PIN code status of the module.
+CPIN:READY
OK
AT+CPIN="0000"
PIN code is incorrect.
ERROR
AT+CPIN="1234"
The input PIN code is correct.
OK
Remarks


To enter PIN code, you must lock the current SIM card (running
AT+CLCK="SC",1,"1234") and then restart the module.
If you enter wrong PIN code for three times, you must enter PUK to unlock.
Copyright © Neoway Technology Co., Ltd
10
Neo_M590E V1 GPRS Module AT Command Set
1.14 Enabling PIN and Querying MT and Network
Device: +CLCK
Description
To lock, unlock or interrogate an ME or a network facility
Format

AT+CLCK=<fac>,<mode>[,<passwd>[,<class>]]<CR>

AT+CLCK=?<CR>
Parameter
<fac>: A pair of quotation marks is required for the value.
"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
<mode>:
0: Unlock
1: Lock
2: Query the status
<status>:
0: not active
1: active
<passwd>: Password or code, string type. A pair of quotation marks is required for the
value.
<classx>:
1: Voice service
2: Data service
4: Fax service
8: SMS
16: Synchronous data service
32: Asynchronous data service
64: Dedicated packet access
128: Dedicated PAD access
Return Value
When <mode>=2 and command successful:
<CR><LF>+CLCK:<status> [, <class1> [<CR><LF>+CLCK:<status>, <class2>
[...]]<CR><LF>
Example
AT+CLCK="SC",2
+CLCK: 0
OK
AT+CLCK=?
+CLCK:("SC","AO","OX","FD","OI")
Query the network information related to
the module.
OK
Copyright © Neoway Technology Co., Ltd
11
Neo_M590E V1 GPRS Module AT Command Set
OK
Lock the current SIM card. "1234" is the
PIN code of current SIM card.
AT+CLCK="SC",1,"2222"
The PIN code is incorrect.
AT+CLCK="SC",0,"1234"
ERROR
Remarks
The settings of this command take effect after the module is restarted.
1.15 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>

AT+CPWD=?<CR>
Parameter
<fac>: A pair of quotation marks is required for the value.
"P2":SIM PIN2
"SC": SIM card
<oldpwd>: Old password or code, string type. A pair of quotation marks is required for
the value.
<newpwd>: New password or code, string type. A pair of quotation marks is required for
the value.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CPWD: list of supported (<fac>,<pwdlength>)s
<CR><LF>OK<CR><LF>
<CR><LF> ERROR<CR><LF>
Example
AT+CPWD=?
+CPWD: ("SC",8),("P2",8)
Query the service range of the PIN
password allowed by the module.
OK
AT+CPWD="SC","1234","0000"
OK
AT+CPWD=SC,1234,0000
ERROR
Remarks
Modify the PIN code of the current SIM
card. "1234" is the old PIN code and
"0000" is the new PIN code.
The command format is incorrect. A pair
of quotation marks ("") is required for
each parameter.
To modify the PIN code, you must lock the SIM card (running
AT+CLCK="SC",1,"1234").
1.16 Setting GPRS Attach and Detach: +CGATT
Description
To set GPRS attach and detach
Format

AT+CGATT=<state><CR>

AT+CGATT?<CR>

AT+CGATT=?<CR>
Copyright © Neoway Technology Co., Ltd
12
Neo_M590E V1 GPRS Module AT Command Set
Parameter
<state>: 0, 1
0: indicates detach
1: indicates attach
Return Value
See the Example.
Example
AT+CGATT=1
OK
GPRS attach is set successfully.
AT+CGATT=0
OK
GPRS detach is set successfully.
AT+CGATT=0
ERROR
No SIM card is installed, so the module
returns ERROR.
AT+CGATT?
Query the GPRS status.
+CGATT: 0
OK
AT+CGATT=?
+CGATT:(0-1)
Query the valid parameter values for the
command.
OK
Remarks

By default, the module can automatically perform GPRS attach.

Ensure that the GPRS attach is set before the PPP connection is set up. It is
recommended that you add the AT+CGATT? command to the process to query the
GPRS status. If the module returns 1, you can set up PPP connection directly;
otherwise, you need to set GPRS attach manually by executing the command
AT+CGATT=1.
1.17 Setting PDP Format: CGDCONT
Description
To set the packet data protocol (PDP) format of the GPRS
Format
AT+CGDCONT=<cid>,<type>,<APN><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.
<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.
<addr>: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)
Copyright © Neoway Technology Co., Ltd
13
Neo_M590E V1 GPRS Module AT Command Set
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"
Set APN of the first PDP to CMNET.
OK
AT+CGDCONT=2, "IP","CMNET"
Set APN of the second PDP to CMNET.
OK
AT+CGDCONT=1, "IP","UNINET"
Set APN of the first PDP to UNINET.
OK
AT+CGDCONT=2, "IP","UNINET"
Set APN of the second PDP to UNINET.
OK
Remarks
The APN of each carrier is different from each other.
1.18 GPRS Dialup: ATD*99#
Description
GPRS dialup through the external protocol
Format
ATD*99#<CR>
Parameter
N/A
Return Value
<CR><LF>CONNECT<CR><LF>
Example
ATD*99#
Dial up
CONNECT
Successful
ATD*99#
ERROR
Remarks
No SIM card is installed.

This command is applicable only to external protocol.

Ensure that the module has registered the network and APN has been set before
dialup.
1.19 Switching Data Mode to Command Mode: +++
Description
To switch the module from the data mode to the command mode
Format
+++
Parameter
N/A
Return Value
See the Example.
Example
+++
Copyright © Neoway Technology Co., Ltd
Switch to command mode
14
Neo_M590E V1 GPRS Module AT Command Set
OK
Remarks
This command can be used only for external protocol stack.
1.20 Switching Command Mode to Data Mode: O
Description
To switch the module from the command mode to the data mode
Format
ATO<CR>
Parameter
N/A
Return Value
See the Example.
Example
ATO
Switch to data mode.
CONNECT
Remarks
This command can be used only for external protocol stack.
1.21 Selecting and Registering a GSM Network: +COPS
Description
To select and register a GSM network
Format

AT+COPS=[<mode>[,<format>[,<oper>>[,<AcT>]]]]

AT+COPS?<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
<stat>:
0: Unknown network
Copyright © Neoway Technology Co., Ltd
15
Neo_M590E V1 GPRS Module AT Command Set
1: Available network
2: Current network
3: Forbidden network
Example
OK
Automatic network selection is enabled.
Long alphanumeric mode.
AT+COPS=0,2
Set to digital mode
AT+COPS=0,0
OK
AT+COPS?
+COPS:0,0,"CHINA MOBILE"
China Mobile
OK
(Please note the two spaces between
CHINA and MOBILE.)
AT+COPS?
+COPS: 0,2,"46000"
OK
If it is set to digital mode, get the
number 46000
AT+COPS?
+COPS:0,0,"CHINA UNICOM"
China Unicom
OK
(Please note the two spaces between
CHINA and UNICOM.)
AT+COPS?
+COPS: 0,2,"46001"
OK
Remarks
If it is set to digital mode, then get the
number 46001.
N/A
Copyright © Neoway Technology Co., Ltd
16
Neo_M590E V1 GPRS Module AT Command Set
2 SMS Commands
2.1 Setting Preferred SMS Storage: +CPMS
Description
To set preferred SMS storage
Format

AT+CPMS=<mem1>[[,<mem2>][,<mem3>]]<CR>

AT+CPMS?<CR>

AT+CPMS?<CR>
Parameter
<mem1>: from where SMS messages are read or deleted, string type, for example, "SM",
"ME"
<mem2>: where SMS messages are written or sent from, string type
<mem3>: where SMS messages received are stored, string type
"SM": SIM only
"ME": ME only
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>,<us
ed3>,<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>
<used>: Used quantity
<total>: Total capacity of the storage
Example
AT+CPMS="SM"
+CPMS: 0, 50, 0, 50, 0, 50
Set the SMS storage to "SM", that is,
store SMS messages in SIM card.
OK
AT+CPMS?
+CPMS: "SM", 14, 50, "SM", 14, 50, "SM", 14,
50
Query the capacity of current SMS
storage.
OK
AT+CPMS=?
Query the available storages.
+CPMS:
("ME","SM"),("ME","SM"),("ME","SM")
OK
AT+CPMS="SM"
Copyright © Neoway Technology Co., Ltd
No SIM card is installed.
17
Neo_M590E V1 GPRS Module AT Command Set
ERROR
Remarks
N/A
2.2 Setting SMS Inputting Mode: +CMGF
Description
To set the SMS inputting mode
Format

AT+CMGF=[<mode>]<CR>

AT+CMGF?<CR>

AT+CMGF=?<CR>
Parameter
<mode>:
0: PDU mode
1: Text mode
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CMGF: <mode>
<CR><LF>OK<CR><LF>
<CR><LF>+CMGF: (list of supported <mode>s)
<CR><LF>OK<CR><LF>
AT+CMGF=1
Set the SMS to text mode.
OK
AT+CMGF?
+CMGF: 1
Query the current mode of SMS message
input.
OK
AT+CMGF=?
+CMGF: (0,1)
Query the value range of SMS mode
setting.
OK
Remarks
N/A
2.3 Setting the TE Character Set: +CSCS
Description
To set the format of the TE character set
Format

AT+CSCS=[<chest>]<CR>

AT+CSCS?<CR>

AT+CSCS=?<CR>
Parameter
< chset >:

"IRA": International reference alphabet (ITU-T T.50)

"GSM": Default GSM alphabet (GSM03.38.6.2.1)

"HEX": Character string consisting of hexadecimal numbers from 0x00 to 0xFF. For
example, "032FE6", equal to three 8-bit characters, whose values are respectively 3,
47, and 230 in decimal system. These characters do not have to be converted with
Copyright © Neoway Technology Co., Ltd
18
Neo_M590E V1 GPRS Module AT Command Set
the source MT character set.
Return Value

"PCCP936": PC character set Code Page 936

"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.
<CR><LF>OK<CR><LF>
<CR><LF>+CSCS: <chset>
<CR><LF>OK<CR><LF>
<CR><LF>+CSCS: (list of supported <chset>s)
<CR><LF>OK<CR><LF>
Example
AT+CSCS="HEX"
Set HEX character set.
OK
AT+CSCS?
+CSCS:"HEX"
Query the format of current character
set.
OK
AT+CSCS=?
+CSCS:
("IRA","GSM","HEX","PCCP936","UCS2")
OK
Remarks
Query the character set formats that the
module supports.
The list of the character set formats is
returned.
The default value is IRA.
2.4 Setting the SMS Indication Mode: +CNMI
Description
To set the mode how the module informs users of new SMS messages received from the
network
Format

AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]<CR>

AT+CNMI?<CR>

AT+CNMI=?<CR>
Parameter
<mode>: controls the processing of unsolicited result codes specified within this
command.
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.
Copyright © Neoway Technology Co., Ltd
19
Neo_M590E V1 GPRS Module AT Command Set
<mt>: sets the result code indication routing for SMS-DELIVERs. The default value is 2.
0: No SMS-DELIVER indications are routed to the TE.
1: Indication of SMS-DELIVER is routed to the TE using unsolicited result code:
+CMTI: "MT" ,<index>. The SMS message is stored rather than directly displayed.
2: SMS-DELIVERs (except class 2 messages) are routed directly to the TE using
unsolicited result code:
+CMT :<oa>,<scts>,<tooa>,<lang>,<encod>,<priority>[,<cbn>],<length><CR><LF
><data> (text mode). SMS messages are directly displayed rather than stored.
3: Class 3 SMS-DELIVERs are routed directly to TE using unsolicited result codes
defined in <mt>=2. Messages of other classes result in indication as defined in <mt>=1.
<bm>: sets the result code indication routing for CBMs. The default value is 0.
0: No CBM indications are routed to the TE.
1: The cell broadcast instruction code is +CBMI:" BC" ,<index> and the cell broadcast
is stored.
2: Indication of new CBM is routed to the TE using unsolicited result code: +CBM:
<oa>,[<alpha>,]<scts>[,<tooa>,<length>] <CR><LF><data>(text mode). The cell
broadcast will be directly displayed rather than stored.
3: Class 3 CBMs are routed directly to TE using unsolicited result codes defined in
<bm>=2. Messages of other classes result in indication as defined in <bm>=1.
<ds>: sets the result code indication routing for SMS-STATUS-REPORTs. The default
value is 0.
0: No SMS-STATUS-REPORTs are routed to the TE.
1: SMS-STATUS-REPORTs are routed to the TE using unsolicited result code:
+CDS :<fo>,<mr>,[<ra>],[<tora>],<scts>, <dt>,<st>(text mode).
<bfr>: defines the handling method for buffered result codes when <mode> 1, 2 or 3 is
enabled. The default value is 0.
0: TA buffer of unsolicited result codes defined within this command is flushed to the
TE when <mode> 1...2 is entered (OK response shall be given before flushing the codes).
1: TA buffer of unsolicited result codes defined within this command is cleared when
<mode> 1...3 is entered.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
<CR><LF>OK<CR><LF>
<CR><LF>+CNMI: (list of supported <mode>s), (list of supported <mt>s), (list of
supported <bm>s), (list of supported <ds>s), (list of supported <bfr>s)
<CR><LF>OK<CR><LF>
Example
AT+CNMI=1,1,0,0,0
Set the SMS message indication mode.
OK
AT+CNMI=?
Query the value ranges of the paramters.
+CNMI: (0-3), (0-3), (0,2), (0-1), (0,1)
OK
Copyright © Neoway Technology Co., Ltd
20
Neo_M590E V1 GPRS Module AT Command Set
AT+CNMI?
Query the current setting of the parameters.
+CNMI: 1, 1, 0, 0, 0
OK
Remarks

The default settings of this command are 0, 2, 0, 0,0.

The recommended setting is +CNMI: 2,1,0,0,0 (new messages are stored on SIM
card rather than displayed directly) or +CNMI:2,2,0,0,0 (new messages are
displayed directly rather than stored on SIM card).
SMS messages are classified into four classes based on the storing:
Class 0: displayed only
Class 1: Stored in the ME memory
Class 2: Stored in the SIM card
Class 3: Directly transmitted to TE
2.5 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:
<CR><LF>+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,<tosca>,<length>]
<CR><LF><data><CR><LF><CR><LF>OK<CR><LF>

if PDU mode (+CMGF=0) and command successful:
<CR><LF>+CMGR:
<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF><CR><LF>OK<CR><LF>
<alpha>: Name of <da> or <oa> on MT
<stat>: Message status in store
<oa>: character string of source number
<scts>: character string of SMSC time
<length>: data length in text mode; TPUD bytes in PDU mode.
<pdu>: hexadecimal value of ME/TA
<data>: SMS data
AT+CMGR=12
+CMGR: "REC
READ","13410995077","","14/07/02,14:06:25+32"
Example
asdf?@123
Read the 12th message in text
mode.
OK
AT+CMGR=12
+CMGR: 1,,27
Read the 12th message in PDU
mode.
0891683110808805F0240BA13114905970F7000041
Copyright © Neoway Technology Co., Ltd
21
Neo_M590E V1 GPRS Module AT Command Set
70204160522309E139D9FC03C46433
OK
AT+CMGR=10
ERROR
Remarks
No SMS message 10 in the
storage.
If the status of the message is received unread, the status in the storage changes to
received read.
2.6 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 READ": 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:
<CR><LF>+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data><CR><LF>
<CR><LF>+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data><CR><LF>>[...]]

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","10010","","14/06/23,14:42:27+32"
0500034F0302672C77ED4FE14E2D768452694F596D4191CF5305542B53E052A05305
6D4191CFFF0C8BF76CE8610F533A52064F7F7528FF093002672C6B2167E58BE27E
D3679C5B5857285EF665F6FF0C8BF74EE551FA8D264E3A51C63002767B96468054
Copyright © Neoway Technology Co., Ltd
22
Neo_M590E V1 GPRS Module AT Command Set
901A624B673A84254E1A53850020007700610070002E00310030003000310030002E0
063006F006D
+CMGL: 2,"REC READ","10010","","14/06/23,14:42:27+32"
0500034F03016E2999A863D0793AFF0C622A6B62003667080032003265E5FF0C60A8
5F5367085957991051856D4191CF5DF24F7F752800340033002E00360031004D0042F
F0C52694F596D4191CF003200350036002E00330039004D0042FF08598260A88BA28
D2D4E867EA256F4811662164E9196C0621660A6005400566D4191CF53E052A05305
FF0C5219
OK.
AT+CMGL=?
Query in text format (AT+CMGF=1).
+CMGL:("REC UNREAD", "REC
READ", "STO UNSENT", "STO SENT",
"ALL")
OK
AT+CMGL=?
Query in PDU format (AT+CMGF=0).
+CMGL: (0-4)
OK
AT+CMGF=1
The parameter should be set to 0.
OK
AT+CMGL=4
ERROR
AT+CMGF=0
The parameter should be set to 1.
OK
AT+CMGL="ALL"
ERROR
Remarks
N/A
2.7 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
Parameter

AT+CMGS=<da>[,<toda>]<CR>text is entered<Ctrl-Z/ESC> (Text command
syntax)

AT+CMGS=<length><CR>PDU is given<Ctrl-Z/ESC> (PDU command syntax)
<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
Copyright © Neoway Technology Co., Ltd
23
Neo_M590E V1 GPRS Module AT Command Set
<Ctrl-Z>: Indicates the end of the input message,
in the example.
<ESC>: Indicates giving up the input message
Return Value

if text mode (+CMGF=1) and sending successful:
<CR><LF>+CMGS: <mr>[,<scts>]
<CR><LF>OK<CR><LF>

if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMGS: <mr>[,<ackpdu>]
<CR><LF>OK<CR><LF>
Example
AT+CMGS="66358"<CR>
> This is the text
+CMGS: 171
OK
AT+CMGS="15889758493"<CR>
> This is the text
Text
mode(+CMGF=1)
is the symbol after
you press Ctrl+Z.
AT+CMGF=1 might
not be executed.
ERROR
AT+CMGS=33<CR>
>0891683108705505F001000B815118784271F20008146DF15
7335E025B9D5B89533A59276D6A80545EFA
PDU mode
(+CMGF=0)
+CMGS: 0
OK
Remarks


If you use UART debugging tool to sent PDU SMS message, enter \r behind the
AT+CMGS command manually or send <CR> in hexadecimal system.
For details about PDU, see the A.1 Content of PDU SMS Messages.
2.8 Writing SMS Messages: +CMGW
Description
To write an SMS message into the memory
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
<CR><LF>+CMGW:<index>
Copyright © Neoway Technology Co., Ltd
24
Neo_M590E V1 GPRS Module AT Command Set
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
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)
>0891683108705505F001000B813124248536F300081200
400026002A535A53D153A653C1532052C7<Ctrl-Z>
+CMGW: 1
OK
Remarks
Press Enter or send <CR> in hexadecimal form after AT+CMGS if you use a UART
debugging tool to send PDU messages.
2.9 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:
<CR><LF>+CMSS: <mr>[,<scts>]
<CR><LF>OK<CR><LF>

if PDU mode (+CMGF=0) and sending successful:
<CR><LF>+CMSS: <mr>[,<ackpdu>]
<CR><LF>OK<CR><LF>
Example
AT+CMSS=2
Send the SMS messages stored in memory 2.
+CMSS:<mr>
OK
AT+CMSS=2
ERROR
AT+CMSS=6,"15889758495"
+CMSS: 6
OK
Remarks
No SMS message is stored in memory 2 or the
SMS message number in memory 2 is incorrect.
Forward stored SMS message to 15889758495. 6
is the ID of the message stored successfully.
Only message in text mode support this function.
N/A
Copyright © Neoway Technology Co., Ltd
25
Neo_M590E V1 GPRS Module AT Command Set
2.10 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
<CR><LF>OK<CR><LF>
<CR><LF>+CMGD: (list of supported <index>s, list of supported <delflag>s)
<CR><LF>OK<CR><LF>
Example
AT+CMGD=1,3
Delete all read, sent, and unsent SMS messages.
OK
Delete successfully
AT+CMGD=?
Query the value ranges of parameters.
+CMGD: (1-50), (0-4)
OK
Remarks
If you set <delflag>, ignor the parameter <index>.
2.11 Setting the SMS Center Number: +CSCA
Description
To set the SMS center 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).
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+CSCA: <sca>, <tosca>
<CR><LF>OK<CR><LF>
Example
AT+CSCA="8613800755500",145
Set an international SMSC number.
OK
AT+CSCA?
Query the SMSC number.
+CSCA: "8613800755500", 145
Copyright © Neoway Technology Co., Ltd
26
Neo_M590E V1 GPRS Module AT Command Set
OK
Remarks
N/A
2.12 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, 12 hours at most
144-167
12hours +((vp–143)*30mins), 24 hours at most
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
Text mode parameters:
OK
17: 00010001 in binary system, indicating no status report
167: The validity period of the information is 24 hours.
0: Default value
0: Only messages in text format can be sent (8 indicates
PDU messages).
AT+CSMP?
Query the current settings of the text mode.
+CSMP: 17,167,0,0
OK
Remarks
N/A
2.13 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
Copyright © Neoway Technology Co., Ltd
27
Neo_M590E V1 GPRS Module AT Command Set
Format
Parameter

AT+CSDH=[<show>]<CR>

AT+CSDH?<CR>

AT+CSDH=?<CR>
<show>:
0: not display (default value)
1: display
Return Value
See the Example.
Example
AT+CSDH=0
OK
Set the header information to
not display
AT+CMGR=26
+CMGR: "REC READ","18665312109","","15/12/16
09:08:25+08"
Read the 26th message.
0038003700320030003000380034003000390040007100
71002E0063006F006D
OK
AT+CSDH=1
OK
Set the detailed header
information to display.
AT+CMGR=26
+CMGR: "REC READ","18665312109","","15/12/16
09:08:25+08",161,17,0,0,"+8613010888500",145,16
Read the 26th message.
0038003700320030003000380034003000390040007100
71002E0063006F006D
OK
AT+CSDH?
+CSDH: 0
Query the current parameter
setting of the command.
OK
AT+CSDH=?
+CSDH: (0, 1)
OK
Remarks
Query the value range of
current parameter in the
command.
This command is valid in text mode, which can be set by AT+CMGF=1.
3 TCP/UDP Data Service
3.1 Setting Up a PPP Link: +XIIC
Description
To set up a PPP connection
Format

AT+XIIC=<n><CR>

AT+XIIC?<CR> Query the PPP connection status
Copyright © Neoway Technology Co., Ltd
28
Neo_M590E V1 GPRS Module AT Command Set
Parameter
<n>: 1
Return Value
See the Example.
Example
AT+XIIC=1
OK
AT+XIIC=1
OK
The module is required to set up a
PPP connection.
GPRS DISCONNECTION is
returned because no SIM card is
installed or network abnormality
occurs.
GPRS DISCONNECTION
AT+XIIC?
+XIIC:
1, 10.232.165.29
The PPP connection is set up
successfully and the IP address is
10.232.165.29.
There are four spaces before 1.
OK
AT+XIIC?
+XIIC:
0, 0.0.0.0
The PPP connection has not been set
up successfully.
There are four spaces before 0.
OK
GPRS DISCONNECTION
Remarks
PPP connection is disconnected.

Ensure that a PPP connection has been set up before you establish a TCP connection.
You can run the +XIIC command to check.

Use the AT+CGDCONT command to set the APN and other parameters before you
set up a PPP connection.

Ensure that the module has registered the network before you use the AT+XIIC=1
command to set up PPP connection.
You can use AT+GREG?to check whether the module has registered the network or
not. If +CREG: 0,1 or +CREG: 0,5 is returned, the module has registered the
network.
3.2 Setting Up TCP connection: +TCPSETUP
Description
To set up a TCP connection
Format
AT+TCPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
<ip>: Destination IP address, in xx.xx.xx.xx or domain name format
<port>: Destination port ID in decimal ASCII code
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSETUP:<n>,OK<CR><LF>
Or
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSETUP:<n>, FAIL<CR><LF>
Or:
Copyright © Neoway Technology Co., Ltd
29
Neo_M590E V1 GPRS Module AT Command Set
<CR>+TCPSETUP:Error <err><CR>
<err>: Error code
Example
AT+TCPSETUP=0,220.199.66.56,6800
OK
The connection to 220.199.66.56,6800 is
successfully set up on socket 0.
+TCPSETUP:0,OK
AT+TCPSETUP=0,192.168.20.6,7000
OK
+TCPSETUP:0,FAIL
Failed to set up the connection to
192.168.20.6,7000 on socket 0. The
server is probably not started, the IP
address is incorrect, or the SIM card is out
of credit.
+TCPSETUP:Error 1
A TCP/UDP connection has been set up
on socket 0.
AT+TCPSETUP=201.128.20.6,7000
The command format is incorrect.
AT+TCPSETUP=0,201.128.20.6,7000
+TCPSETUP:Error 2
Remarks
Use the AT+XIIC=1 command to set up a PPP connection before running this command.
3.3 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>: 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 2000, unit: byte.
Return Value
See the Example.
Example
AT+TCPSEND=0,10
>
10-byte data is successfully sent through
socket 0.
OK
+TCPSEND:0,10
AT+TCPSEND=0,10
>
Failed to send 10-byte data through
socket 0.
+TCPSEND:Error
AT+TCPSEND=0,536
+TCPSEND:Buffer not enough,439
AT+TCPSEND=0,2800
+TCPSEND:Data length error
Copyright © Neoway Technology Co., Ltd
2800-byte data fails to be sent on socket 0
because the buffer is not enough.
2800-byte data fails to be sent on socket 0
because data length exceeds the limit.
30
Neo_M590E V1 GPRS Module AT Command Set
Remarks

Ensure that the TCP connection has been set up before sending TCP data.

It is recommended that you use the AT+IPSTATUS command to check the buffer
size before sending data.

Network congestion can result in sending failure.

Before > is 0x0d, 0x0a.
3.4 Receiving TCP Data: +TCPRECV
Description
To receive TCP data
Format
+TCPRECV:<n>,<length>,<data><CR><LF>
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
See the Example.
Example
+TCPRECV: 0,10,1234567890
Remarks
N/A
10-byte data is successfully received on
socket 0. The data is 1234567890.
3.5 Closing TCP Connection: +TCPCLOSE
Description
To close a TCP connection
Format
AT+TCPCLOSE=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return Value
See the Example.
Example
AT+TCPCLOSE=1
Close the TCP connection.
+TCPCLOSE: 1,OK
The TCP connection on socket 1 is closed
successfully.
AT+TCPCLOSE=5
Socket number error
+TCPCLOSE:ERROR
+TCPCLOSE:0,Link Closed
The TCP link is closed.
The server sends TCP connection closing command or
the network encounters abnormality or weak signals.
Remarks
N/A
3.6 Setting Up UDP Connection: +UDPSETUP
Description
To set up a UDP connection
Copyright © Neoway Technology Co., Ltd
31
Neo_M590E V1 GPRS Module AT Command Set
Format
AT+UDPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>:Socket number, ranging from 0 to 5
<ip>: Destination IP address, in xx.xx.xx.xx format or domain name format
(www.XXXX.com)
<port>: Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
The connection to 220.199.66.560.7000 is
successfully set up on socket 1.
+UDPSETUP:1,OK
AT+UDPSETUP=1,192.168.20.6,7000
OK
Failed to set up the connection to
192.168.20.6,7000 on socket 1 because
socket 1 is unavailable.
+UDPSETUP:1,FAIL
+UDPSETUP:Error 1
A TCP/UDP connection has been set up
on socket 0.
AT+UDPSETUP=201.128.20.6,7000
The command format is incorrect.
AT+UDPSETUP=0,201.128.20.6,7000
+UDPSETUP:Error 2
Remarks

Use the AT+XIIC=1 command to set up a PPP connection before running this
command.

The local address of UDP varies with PPP connections.
3.7 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>: 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 2000, unit: byte.
Return Value

If the AT command is input in correct format, the module returns >.

If the command is input in incorrect format, the module returns
<CR><LF>+UDPSEND:Error<CR><LF>.
After entering the command, input the data to be sent until the module returns >.


Example
If the UDP data is sent successfully, the module returns
<CR><LF>+UDPSEND:<n>,<length><CR><LF>. <length> indicates the length
of data already sent.
AT+UDPSEND=0,10
>1234567890
10-byte data is successfully sent through
socket 0.
OK
Copyright © Neoway Technology Co., Ltd
32
Neo_M590E V1 GPRS Module AT Command Set
+UDPSEND:0,10
AT+UDPSEND=0,2800
+UDPSEND:Data length error
Remarks
2800-byte data fails to be sent on socket 0
because data length exceeds the limit.

Ensure that the UDP connection has been set up before sending UDP data.

Before > is 0x0d, 0x0a.
3.8 Receiving UDP Data: +UDPRECV
Description
To receive UDP data
Format
<CR><LF>+UDPRECV:<n>,<length>,<data><CR><LF>
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
See the Example.
Example
+UDPRECV: 0,10,1234567890
Remarks
N/A
10-byte data is successfully received on
socket 0. The data is 1234567890.
3.9 Closing UDP Connection: +UDPCLOSE
Description
To close the UDP connection
Format
AT+UDPCLOSE=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return Value
If the value of <n> is illegal, the module returns: +UDPCLOSE: ERROR.
Otherwise, the module returns +UDPCLOSE:<n>,OK.
Example
+UDPCLOSE: 1,OK
The TCP connection on socket 1 is closed
successfully.
AT+UDPCLOSE=2
Socket number error
AT+UDPCLOSE=1
+UDPCLOSE:ERROR
The TCP connection is closed.
+UDPCLOSE:0,Link Closed
Remarks
The server sends UDP connection closing
command or the network encounters
abnormality or weak signals.
N/A
Copyright © Neoway Technology Co., Ltd
33
Neo_M590E V1 GPRS Module AT Command Set
3.10 Querying TCP/UDP Connection Status: +IPSTATUS
Description
To query the TCP/UDP connection status
Format
AT+IPSTATUS=<n><CR>
Parameter
<n>: Socket number, ranging from 0 to 5
Return Value
<CR><LF>+IPSTATUS:<n>,<CONNECT or DISCONNECT>,<TCP or UDP>,
<send-buffer-size><CR><LF>
<CONNECT or DISCONNECT>:Socket status, value: CONNECT or DISCONNECT
<TCP or UDP>:Connection type, value: TCP or UDP
<send-buffer-size>:The size of the available send buffer on the module, in decimal ASCII
mode, unit: byte
Example
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP,2047
A TCP connection has been set up on
socket 0 and the buffer size is 2047 bytes.
+IPSTATUS:1,DISCONNECT
No TCP or UDP connection is set up on
socket 1.
AT+IPSTATU
The AT command is not complete.
AT+IPSTATUS=1
ERROR
AT+IPSTATUS=7
+IPSTATUS:Error 1
The socket number in the command is
incorrect.
AT+IPSTATU=1
The command format is incorrect. An "S"
is omitted.
ERROR
Remarks
N/A
3.11 Setting Local UDP Port: +UDPLPORT
Description
To set the local UDP port
Format
AT+UDPLPORT=<socket>,<port><CR>
Parameter
<socket>: Socket ID, ranging from 0 to 5
<port>: Port ID, ranging from 1 to 65535
Return Value
See the Example.
Example
AT+UDPLPORT=0,6800
Set the local port ID of socket 0 to 6800.
OK
Remarks
AT+UDPLPORT=0,0
The local port ID of socket 0 is allocated by default.
OK
The first UDP port is 4096 while the second is 4097.

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 by default, that is,
the first one is 4096, the second one is 4097, …
Copyright © Neoway Technology Co., Ltd
34
Neo_M590E V1 GPRS Module AT Command Set
3.12 Setting Up TCP Transparent Transmission
Connection: +TCPTRANS
Description
To set up TCP transparent transmission connection
Format
AT+TCPTRANS=<ip>,<port><CR>
Parameter
<ip>: Destination IP address, in xx.xx.xx.xx format or domain name format (www.
XXXXXX.com)
<port>:Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+TCPTRANS=220.199.66.56,6800
OK
A TCP transparent transmission
connection is set up successfully.
+ TCPTRANS:OK
AT+TCPTRANS=neowayjsr.oicp.net,60010
OK
+TCPTRANS:OK
AT+TCPTRANS=220.199.66.56,
A TCP transparent transmission
connection is set up by using domain
name successfully.
The command is in wrong format.
+TCPTRANS:ERROR
AT+TCPTRANS=220.199.66.56,6800
OK
Failed to set up a TCP transparent
transmission connection.
+TCPTRANS:FAIL
AT+TCPTRANS=220.199.66.56,6800
ERROR
Remarks
ERROR is returned after the command is
executed because a transparent
transmission (TCP, UDP, TCP server)
connection has been set up.

The UART does not display the data transmitted to the server after the transparent
transmission TCP connection is set up successfully.

Use +++ to switch the server to the command mode and ATO to switch it to the data
mode.

The module will exit from the transparent transmission connection if a call or
message is incoming.

At most 4096-byte data can be sent or received in transparent transmission mode.

TCP data can be transparently transmitted after the TCP connection is set up
successfully and +TCPTRANS:OK is returned.
3.13 Setting Up UDP Transparent Transmission
Connection: +UDPTRANS
Description
To transparently transmit UDP data
Format
AT+UDPTRANS=<ip>,<port><CR>
Parameter
<ip>: Destination IP address, in xx.xx.xx.xx format or in domain name format
Copyright © Neoway Technology Co., Ltd
35
Neo_M590E V1 GPRS Module AT Command Set
(www.XXXXX.com).
<port>: Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+UDPTRANS =220.199.66.56,6800
OK
A UDP transparent transmission
connection is set up successfully.
+UDPTRANS:OK
AT+UDPTRANS=neowayjsr.oicp.net,60010
OK
+UDPTRANS:OK
AT+UDPTRANS=220.199.66.56,
A UDP transparent transmission
connection is set up by using domain
name successfully.
The command format is incorrect.
+UDPTRANS:ERROR
AT+UDPTRANS=220.199.66.56,6800
OK
Failed to set up a UDP transparent
transmission connection.
+UDPTRANS:FAIL
AT+UDPTRANS=220.199.66.56,6800
ERROR
Remarks
ERROR is returned after the command is
executed because a transparent
transmission (TCP, UDP, TCP server)
connection has been set up.

The UART does not display the data transmitted to the server after the transparent
transmission UDP connection is set up successfully.

Use +++ to switch the server to the command mode and ATO to switch it to the data
mode.

The module will exit from the transparent transmission connection if a call or
message is incoming.

At most 4096-byte data can be sent or received in transparent transmission mode.

UDP data can be transparently transmitted after the UDP connection is set up
successfully and +UDPTRANS:OK is returned.
3.14 Setting Automatic TCP Data Sending: +TCPAUTO
Description
To set automatic TCP data sending
Format

AT+TCPAUTO=<socket>,<operation>[,<mode>,<time>,<length>]<CR>

AT+TCPAUTO=?<CR>
Parameter
<socket>: socket number, ranging from 0 to 5.
<operation>: Operation, ranging from 0 to 3.
0: restore to the default setting
1: set automatic sending
2: start automatic sending
3: stop automatic sending
<mode>: return value mode, which is valid only when <operation> is set to 1.
0: No return value is displayed after the TCP data is (or not) sent successfully.
Copyright © Neoway Technology Co., Ltd
36
Neo_M590E V1 GPRS Module AT Command Set
1: Return value is displayed after the TCP data is (or not) sent successfully.
<time>: Time when the TCP data is sent, ranging from 1 to 1800, unit: s (valid only when
<operation> is set to 1)
<length>: data length, ranging from 1 to 50, unit: byte (valid only when <operation> is set
to 1)
Return Value
See the Example
Example
AT+TCPAUTO=0,1,1,120,20
OK
Set socket 0 to send 20-byte data after 120
seconds and allow return value.
Enter the 20-byte TCP data after > is
returned.
+TCPAUTO: 0,OK
Set up a TCP connection.
>
AT+TCPSETUP=0,220.199.66.56,6800
OK
+TCPSETUP:0,OK
Start the automatic sending.
AT+TCPAUTO=0,2
OK
+TCPAUTO: 0,120,20,OK
Return value after socket 0 successfully
sends 20-byte data at the scheduled time.
+TCPAUTO: 0,120,20,ERROR
Return value after socket 0 fails to send
20-byte data at the scheduled time.
AT+TCPAUTO=0,1,0,120,20
>
OK
Set socket 0 to send 20-byte data after 120
seconds and forbid return value.
Enter the 20-byte TCP data after > is
returned.
+TCPAUTO: 0,OK
AT+TCPAUTO=0,1,1,120,20
>
+TCPAUTO: 0,OPERATION EXPIRED
AT+TCPAUTO=0,2
OK
After > is displayed, the operation expired
information will be displayed if you do not
enter TCP data in 1 minute.
After the TCP connection is set up, send this
command to start the automatic sending.
ERROR
ERROR is returned because the TCP
connection has not been set up or the
automatic sending is not set on socket 0.
AT+TCPAUTO=0,3
Stop automatic sending on socket 0.
AT+TCPAUTO=0,2
OK
AT+TCPAUTO=0,3
ERROR
AT+TCPAUTO=0,0
OR
ERROR is returned because the automatic
sending is not set on socket 0 or has been
stopped.
Restore the default settings of socket 0, that
is, cancel the automatic sending.
ERROR
ERROR is returned because automatic
sending is not set on socket 0.
AT+TCPAUTO=?
Query the available range of parameters
AT+TCPAUTO=0,0
+TCPAUTO: (0-5),(0-3),(1-1800),(1-50)
Copyright © Neoway Technology Co., Ltd
37
Neo_M590E V1 GPRS Module AT Command Set
OK
Remarks

The settings by this command will not be saved after the module is powered off.

This command is used only for non-transparent transmission TCP connections.

The auto-sending function will be stopped if you issue the AT+TCPSEND
command. It will start again after the AT+TCPSEND command is executed
completely.
Copyright © Neoway Technology Co., Ltd
38
Neo_M590E V1 GPRS Module AT Command Set
4 DNS Command
4.1 Querying the IP Address: +DNS
Description
To query the IP address
Format
AT+DNS=<string><CR>
Parameter
<string>: The website URL to be queried, in form of www.xxxx.com
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+DNS:<ip>
<CR><LF>+DNS:OK<CR><LF>
Example
AT+DNS=" www.neoway.com.cn "
OK
Query the IP address
of www.neoway.com.cn, and the module
returns the IP address 112.127.8.18.
+DNS: 112.127.8.18
+DNS:OK
AT+DNS="www.neoway.com.cn"
OK
Failed to translate the DNS in to IP
address because PPP is not activated
+DNS:Error
Remarks

The URL length should not exceed 250 bytes.

Activate PPP before executing this command.
Copyright © Neoway Technology Co., Ltd
39
Neo_M590E V1 GPRS Module AT Command Set
5 FTP AT Commands
5.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 in general
<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: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: Failed to connect the FTP server.

+FTPLOGIN:Error
TimeOut: Logging exceeds 30 seconds.

+FTP:Server Control Link Disconnect
+FTP:Server Data Link Disconnect: Connected to the FTP server successfully and
then the connection disconnected.
At+FTPLOGIN=219.134.179.52,21,user1,p
wd2009
OK
user1 logs in to the server 219.134.179.52
through port 21 successfully. And the
password for user1 is pwd2009.
+FTPLOGIN:User logged in
AT+FTPLOGIN=219.134.179.52,21,user1,p
wd2009
OK
Failed to log in to the FTP server because
the PPP is not activated or the server
didn’t respond.
+FTPLOGIN:Error Connect Server Fail
AT+FTPLOGIN=58.60.184.213,21,neowayf
tp,neoway
Failed to log in to the FTP server because
the password is incorrect.
OK
+FTPLOGIN:530 Not logged in
AT+FTPLOGIN=58.60.184.213,21,neowayf
tp,neowayftp
The user has logged in to the FTP server.
+FTPLOGIN:Have Logged In
Copyright © Neoway Technology Co., Ltd
40
Neo_M590E V1 GPRS Module AT Command Set
Remarks

The FTP functions cannot be used together with the internal protocol stack
TCP/UDP function.

You can read or write data on the FTP server only after you logged in to the FTP
server.

Activate PPP before using this command.
5.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
<CR><LF>OK<CR><LF>
Example
AT+FTPLOGOUT
Log out from the FTP server
OK
Remarks
N/A
5.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>[,<size>]<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
3: Obtain the file length
<offset>: file content offset
<length>: Specifies the length of file content to be read, ranging from 1 to 1024
Return Value


+FTPGET: Error<n>: The format of the AT command is incorrect. n: Error Code
+FTPGET:Error Not Login: The user has not logged in to the FTP server.

+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.
+FTPGET:OK.partial length is <m>: The module reads the data of <m> byte

Copyright © Neoway Technology Co., Ltd
41
Neo_M590E V1 GPRS Module AT Command Set
successfully.
Example
AT+FTPGET=,1,2
+FTPGET:446,drw-rw-rwApr 14 15:55 .
1 user
group
0
drw-rw-rw15:55 ..
1 user
group
-rw-rw-rw1M.doc
1 user
group
1238528 Jan 14 10:36
-rw-rw-rwtest.txt
1 user
group
10 Jan 15 15:01
Obtain information in
the root directory.
0 Apr 14
+FTPGET:OK.total length is 446
AT+FTPGET=test.txt,1,2
+FTPGET:65,-rw-rw-rw15 15:01 test.txt
1 user
group
10 Jan
Obtain the information
about test.txt.
+FTPGET:OK.total length is 65
AT+FTPGET=test.txt,1,1
+FTPGET:10,0123456789
Obtain the information
in test.txt.
+FTPGET:OK.total length is 10
AT+FTPGET=test.txt,1,1,2
+FTPGET:8,23456789
Obtain file content
starting from the 2nd
byte.
+FTPGET:OK.total length is 8
AT+FTPGET=test.txt,1,1,2,4
+FTPGET:4,2345
Obtain the information
of the 4th byte counting
since second byte.
+FTPGET:OK.total length is 4
AT+FTPGET=test.txt,1,3
+FTPGET:OK.file length is 10
Remarks
Obtain the file length of
test.txt.
N/A
5.4 Uploading Data to 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
Copyright © Neoway Technology Co., Ltd
42
Neo_M590E V1 GPRS Module AT Command Set
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. You need to set size to 0, and then enter 0x0d after > is
displayed.
<size>: Data length. The data length cannot exceed 3072.
Return Value

Error: The format of the AT command is incorrect.

+FTPPUT:Error Not Login: The user has not logged in to the FTP server.

+FTPPUT:length overflow: The value of <length> is greater than 3072.

+FTPPUT:OK,<n>: The file is sent successfully and the file length is n.
+FTPPUT:Delete File OK: The file is deleted successfully.

Example
AT+FTPPUT=test.txt,1,1,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=test.txt,1,2,1024
>
+FTPPUT:OK,1024
AT+FTPPUT=test.txt,1,3,0
Upload the text.txt file, which is 1024
bytes. The file is transferred in ASCII and
the operated in STORE.
Upload the text.txt file, which is 1024
bytes. The file is transferred in ASCII and
the operated in APPE.
Delete the test.txt file.
+FTPPUT:Delete File OK
Remarks
No terminal display for input data.
5.5 Querying FTP Connection Status: +FTPSTATUS
Description
To query the FTP connection status
Format
AT+FTPSTATUS<CR>
Parameter
N/A
Return Value
+FTPSTATUS:<status>,<ip>, <port>
<status>:
logout: The FTP connection has not been set up.
login: The FTP connection has been set up.
<ip>: The IP address of the FTP server
<port>: The port of the FTP server
Example
AT+FTPSTATUS
+FTPSTATUS:login,219.134.179.521,21
Remarks
The module is successfully connected to
the FTP server.
N/A
Copyright © Neoway Technology Co., Ltd
43
Neo_M590E V1 GPRS Module AT Command Set
6 TCP Server AT Commands
6.1 Setting TCP Listening for the Server: +TCPLISTEN
Description
To set the TCP listening function of the server
Format
AT+TCPLISTEN=<port><CR>
Parameter
<Port>: Port ID
<Socket>:SOCKET ID
Return Value
<CR><LF>+TCPLISTEN:<socket>,OK<CR><LF>
<Socket>:SOCKET ID, at most five sockets at one time
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...
Query the listening status. Here the
server is in the listening status.
AT+TCPLISTEN?
+TCPLISTEN:listening status
Query the listening status. Here the
server is not in the listening status.
AT+TCPLISTEN?
+TCPLISTEN:not listening
Connect
AcceptSocket=1,ClientAddr=119.123.77.133,C
lientPort=8000
Remarks
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.
Activate the PPP before using this command.
Only the SIM cards with fixed IP addresses can be used as servers.
6.2 Closing the Listening Connection: +CLOSELISTEN
Description
To close the listening connection and close all connections
Format
AT+CLOSELISTEN<CR>
Parameter
N/A
Return Value
<CR><LF>+CLOSELISTEN:<socket>,local link closed<CR><LF>
Socket: SOCKET ID
Example
AT+CLOSELISTEN
+CLOSECLIENT:1,remote link closed
Copyright © Neoway Technology Co., Ltd
The local link will be closed if there is any
connection to the client.
44
Neo_M590E V1 GPRS Module AT Command Set
+CLOSELISTEN:0,local link closed
AT+CLOSELISTEN
No listening connection
+CLOSELISTEN:ERROR
Remarks
N/A
6.3 Closing Connections of the Client: +CLOSECLIENT
Description
To close all connections with the client
Format
AT+CLOSECLIENT[=<socket>]
Parameter
<Socket>: Socket ID
Return Value
<CR><LF>+CLOSECLIENT:<socket>,remote link closed<CR><LF>
Example
AT+CLOSECLIENT=1
There is a parameter in this command.
+CLOSECLIENT:1,remote link closed
Close the connection on socket 1 with the
client.
AT+CLOSECLIENT
There is no parameter in this command.
+CLOSECLIENT:0,remote link closed
All connections with the client are closed
successfully.
+CLOSECLIENT:1,remote link closed
Remarks
N/A
6.4 Receiving Data from the Client: +TCPRECV(S)
Description
To receive data from the client
Format
<CR><LF>+TCPRECV(S):<SOCKET>,<length>,<data><CR><LF>
Parameter
< SOCKET>: Socket number
<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(S):1,10,1234567899
Remarks
Additional (s) makes this command different from the receive mode of the client mode in
format.
Socket 1 receives 10-byte data in char
format from the client.
6.5 Sending Data to the Client: +TCPSENDS
Description
To send data to the client
Copyright © Neoway Technology Co., Ltd
45
Neo_M590E V1 GPRS Module AT Command Set
Format
AT+TCPSENDS=<socket>,<length><CR>
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 2000, unit: byte.
Return Value
<CR><LF>OK<CR><LF>
<CR><LF>+TCPSENDS: <socket>,<length><CR><LF>
Example
AT+TCPSENDS=0,10
>1234567890
10-byte data is successfully sent through
socket 0.
OK
+TCPSENDS:0,10
AT+TCPSENDS=0,536
>1234567890…
536-byte data is sent on socket 0. Failed to
transmit the data because internal buffer is
insufficient.
+TCPSENDS:Buffer not enough,439
AT+TCPSENDS=0,1024
>
+TCPSENDS:ERROR
Remarks
The module (server) sends TCP data and
encounters data congestion.
Ensure that the TCP connection has been set up before sending TCP data.
6.6 Querying the Connection Status on the Client:
+CLIENTSTATUS
Description
To query the status of the connection with the client
Format
AT+CLIENTSTATUS=<socket><CR>
Parameter
<socket>: The value of AcceptSocket, that is, the socket of the module. See the
description of the AT+TCPLISTEN command.
Return Value
<CR><LF>+CLIENTSTATUS:<socket>,CONNECT,TCP,<send-buffer-size><CR><LF
>
Or
<CR><LF>+CLIENTSTATUS:Error 1<CR><LF>
<send-buffer-size>: The size of the available send buffer on the module, in decimal
ASCII mode, unit: byte
Example
+CLIENTSTATUS:0,CONNECT,TCP,2048
A TCP connection has been set up with
the socket 0 client and the buffer size is
2048 bytes.
AT+CLIENTSTATUS=1
The connection does not exist.
AT+CLIENTSTATUS=0
+CLIENTSTATUS:Error 1
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
46
Neo_M590E V1 GPRS Module AT Command Set
7 Unlimited UDP Server AT Commands
7.1 Setting UDP Listening for Server: +FUDPLISTEN
Description
To set UDP listening for the server
Format

AT+FUDPLISTEN=<port><CR>

AT+FUDPLISTEN?<CR>

AT+FUDPLISTEN=?<CR>
Parameter
<port>: Port number, ranging from 1 to 65535
<socket>: SOCKET number
Return Value
<CR><LF>+FUDPLISTEN:<socket>,OK<CR><LF>
Example
AT+FUDPLISTEN=6000
Listening port ID: 6000
+FUDPLISTEN:0,OK
or
The listening function of the server is
started.
+FUDPLISTEN:bind error
Failed to bind
AT+FUDPLISTEN=6000
ERROR
Set server listening before setting up
PPP connections.
AT+FUDPLISTEN=6000
Transparent listening has been set.
Listening...
AT+FUDPLISTEN=?
+FUDPLISTEN:(1-65535)
Query the value range of the listening
port.
OK
AT+FUDPLISTEN?
+FUDPLISTEN:listening status
AT+FUDPLISTEN?
+FUDPLISTEN:not listening
Remarks
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.

This command is valid only after a PPP connection is set up succesfully.

Only the SIM cards with fixed IP addresses can be used as servers.
Copyright © Neoway Technology Co., Ltd
47
Neo_M590E V1 GPRS Module AT Command Set
7.2 Receiving Data from the Client: +FUDPRECV(S)
Description
To receive and output data from the client
Format
+FUDPRECV(S):<ip>,<port>,<length><data><CR><LF>
Parameter
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: Length of data received, byte
<data>: Data received
Return Value
See the Example.
Example
+FUDPRECV(S):10.72.170.156,38
061,10,1234567890
Remarks
N/A
FUDP receives 10-byte data (1234567890) from
the client (IP: 10.72.170.156, 38061)
7.3 Sending Data to the Client: +FUDPSENDS
Description
To send data to the client
Format
AT+FUDPSENDS=<ip>,<port>,<length><CR>
Parameter
<ip>: IP address of the client
<port>: ID of the port for the client to communicate
<length>: The length of the data to be sent, value ranges from 1 to 1024, unit: byte.
Return Value
See the Example.
Example
AT+FUDPSENDS=10.230.214.106,44416,10
>0123456789
Send 10-byte data to the client (IP:
10.230.214.106, 44416).
OK
+FUDPSENDS:0,10
AT+FUDPSENDS=10.230.214.106,44416,10
The listening is not enabled.
+FUDPSENDS:ERROR
AT+FUDPSENDS=10.74.2222.173,41287,10
The IP address is incorrect.
+FUDPSENDS:IP OR PORT ERROR
AT+UDPSENDS=10.74.2222.173,41287,4000
The length is incorrect.
+UDPSENDS:DATA LENGTH ERROR
Remarks
N/A
7.4 Closing Listening for UDP Server:
+CLOSEFUDPLISTEN
Description
To close listening for UDP server
Format
AT+CLOSEFUDPLISTEN<CR>
Copyright © Neoway Technology Co., Ltd
48
Neo_M590E V1 GPRS Module AT Command Set
Parameter
N/A
Return Value
<CR><LF>+ CLOSEFUDPLISTEN:<socket>, closed<CR><LF>
Example
AT+CLOSEFUDPLISTEN
Close listening for UDP server
+CLOSEFUDPLISTEN:0,closed
Remarks
N/A
Copyright © Neoway Technology Co., Ltd
49
Neo_M590E V1 GPRS Module AT Command Set
8 LBS Command
8.1 Obtaining the Location of the Module:
+CIPGSMLOC
Description
To obtain the location information of the module
Format

AT+CIPGSMLOC<CR>

AT+CIPGSMLOC=<n><CR>
Parameter
<n>: request selection
0: Close location request
1: multi-BS positioning request
Return Value
<CR><LF>+CIPGSMLOC: <fail_string><CR><LF>
<fail_string>: Failure string
<fail_string>:
CONTACT FAIL
LINK FAIL
LINK NOT FREE
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: {<result_string>}
<CR><LF>+CIPGSMLOC: OK<CR><LF>
< result_string>: string including longitude and latitude
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: <code>
<CR><LF>+CIPGSMLOC: FAIL <CR><LF>
<code>: return code after request is submitted successfully but not longitude or latitude
information is returned.
401: No right
400: error occurs during request parsing.
404: legal request, but the queried BS is not included.
408: parsing times out.
500: internal error of server
<CR><LF>OK<CR><LF>
<CR><LF>+CIPGSMLOC: TIMEOUT<CR><LF>
Copyright © Neoway Technology Co., Ltd
50
Neo_M590E V1 GPRS Module AT Command Set
Example
AT+CIPGSMLOC
OK
+CIPGSMLOC:
{"location":{"lat":22.69083,"lng":113.985228},"accuracy":0.0}
+CIPGSMLOC: OK
AT+CIPGSMLOC
GPRS DISCONNECTION
The command is sent
successfully.
The module reports
location information.
No SIM card is
installed.
+CIPGSMLOC: CONTACT FAIL
AT+CIPGSMLOC
+CIPGSMLOC: CONTACT FAIL
AT+CIPGSMLOC
+CIPGSMLOC: LINK FAIL
AT+CIPGSMLOC
OK
+CIPGSMLOC: 404
The server domain
name fails to be
translated.
The connection to the
server fails to be set
up.
The location request is
sent successfully, but
the queried BS is not
included.
+CIPGSMLOC: FAIL
AT+CIPGSMLOC=1
OK
Request multi-BS
positioning
AT+CIPGSMLOC=1
+CIPGSMLOC: LINK NOT FREE
The connection is
occupied
AT+CIPGSMLOC=0
Close the request.
OK
The link will be
released.
AT+CIPGSMLOC=1
OK
Request multi-BS
positioning
+CIPGSMLOC:
{"location":{"lat":22.689646628671216,"lng":113.9858612179
0129},"accuracy":0.0}
The module reports its
location.
+CIPGSMLOC: OK
Remarks

Activate the PPP before using this command.

The obtained location information is the GPS coordinates.

If the server does not reply in 10 seconds after the request is submitted successfully,
the module returns +CIPGSMLOC: TIMEOUT.

The current coordinates of latitude and longitude are valid and precision is reserved
(0.0 by default).
Copyright © Neoway Technology Co., Ltd
51
Neo_M590E V1 GPRS Module AT Command Set
9 Other AT Commands
9.1 Querying Base Station Information: +POSI
Description
To query the base station information
Format
AT+POSI=<mode><CR>
Parameter
Return Value
<CR><LF>+POSI: MODE,MCC,MNC,LAC,CI,BSIC,
RxLev,ENDED[…]<CR><LF><CR>
<LF>OK<CR><LF>
MODE: 1, indicating that all base station information will be read
MCC: Country code
MNC: Mobile network code, hexadecimal
LAC: Area code, hexadecimal
CI: Cell ID, hexadecimal
BSIC: Base station ID, hexadecimal
RxLev: Signal strength of the base station, expressed by 1 to 64
ENDED: End symbol. 0 indicates there is more base station information; 1 indicates that
this is the last line of the base station information.
Example
AT+POSI=1
+POSI:1,460,00,27A8,EA7,1D,7,1
Obtain the
information of one
base station.
OK
AT+POSI=1
+POSI:
1,460,01,2543,A85D,3E,45,0,460,01,2543,AB13,1E,41,0,460,0
Obtain the
information of
multiple base stations.
1,2543,A85E,10,36,0,460,01,2543,AA51,0A,34,0,460,01,2543,
B046,11,32,0,460,01,2543,A9A8,3F,31,0,460,01,2543,A805,33,
27,1
OK
Remarks
If no cell is found, the module returns OK.
Copyright © Neoway Technology Co., Ltd
52
Neo_M590E V1 GPRS Module AT Command Set
If there are multiple pieces of base station information, the data circulates between MCC
and ENDED.
9.2 Getting the Local Port of a Socket: +GETLPORT
Description
To get the local port of a socket
Format
AT+GETLPORT=<n><CR>
Parameter
<n>: Socket ID, ranging from 0 to 5
Return
Value
<CR><LF>+GETLPORT: <port_num><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<port_num>: Local port ID
Example
AT+GETLPORT=1
Obtain the local port ID of socket 1.
+GETLPORT: 4096
Its port ID is 4096.
OK
AT+GETLPORT=2
ERROR
Remarks
Obtain the local port of socket 2.
Error is returned because no link is set
up on socket 2.
N/A
Copyright © Neoway Technology Co., Ltd
53
Neo_M590E V1 GPRS Module AT Command Set
10 TCP Command Example Process
10.1 TCP Link through Internal Protocol
MODEM:STARTUP
// Boot log at a fixed baudrate.
+PBREADY
// Run the following commands unless you see this code.
AT+CPIN?
// Check the SIM card status.
+CPIN: READY
OK
AT+CCID
// Read the CCID of the SIM card.
+CCID: 89860109247552607598
OK
AT+CSQ
// Query the RSSI.
CSQ: 26,0
OK
AT+CREG?
+CREG: 0,1
// The module registered the GSM network.
OK
AT+XISP=0
// Set to internal protocol
OK
AT+CGDCONT=1,"IP","CMNET" // Set APN.
OK
AT+CGATT?
// Query the GPRS attach status.
+CGATT: 1
// Attached
OK
AT+XIIC=1
// Activate the PPP connection.
OK
AT+XIIC?
+XIIC:
1, 10.10.73.214
// The PPP connection is set up.
OK
Copyright © Neoway Technology Co., Ltd
54
Neo_M590E V1 GPRS Module AT Command Set
AT+TCPSETUP=0,220.199.66.56,6800
// Set up a TCP connection.
OK
+TCPSETUP:0,OK
AT+TCPSEND=0,10
>0123456789
// Successful
//Send data through the TCP connection.
// Send data at least 50 ms after getting >.
OK
+TCPSEND:0,10
//Data is sent successfully.
AT+IPSTATUS=0
+IPSTATUS:0,CONNECT,TCP,2047 //Query the connection status.
AT+TCPCLOSE=0
// Close the TCP connection on socket 0.
+TCPCLOSE:0,OK
AT+CGATT=0
// Close the PPP connection.
GPRS DISCONNECTED
OK
10.2 TCP Connection through External Protocol
MODEM:STARTUP
+PBREADY
// Boot log at a fixed baudrate
// Run the following commands unless you see this code.
AT+CPIN?
// Check the SIM card status.
+CPIN: READY
OK
AT+CCID
// Read the CCID of the SIM card.
+CCID: 89860109247552607598
OK
AT+CSQ
Copyright © Neoway Technology Co., Ltd
// Query the RSSI.
55
Neo_M590E V1 GPRS Module AT Command Set
CSQ: 30,1
OK
AT+CREG?
+CREG: 0,1
// The module registered the GSM network.
OK
…
AT+CGDCONT=1,"IP","CMNET"
// Set APN.
OK
AT+CGATT?
+CGATT: 1
// Query the GPRS attach status.
// Attached
OK
ATD*99#
// Dial up
CONNECT
Copyright © Neoway Technology Co., Ltd
56
Neo_M590E V1 GPRS Module 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 receiving 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 Mobile
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:
Copyright © Neoway Technology Co., Ltd
57
Neo_M590E V1 GPRS Module AT Command Set
0001000B813124819396F300080A00680065006C006C006F
Wherein,
00: SMSC address information length
SMSC number is not needed.
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_M590E V1 GPRS Module AT Command Set
A.2 Flowchart of Sending Text SMS Messages (Through
UART)
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_M590E V1 GPRS Module AT Command Set
A.3 Flowchart of Sending PDU SMS Messages (Through
UART)
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
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