Simcom Sim5320 Atc en v2.02
Simcom Sim5320 Atc en v2.02
SIMCOM_SIM5320_ATC_EN_V2.02
Document Title:
Version:
2.02
Date:
2014-07-28
Status:
Release
Document ID:
SIMCOM_SIM5320_ATC_EN_V2.02
General Notes
SIMCom offers this information as a service to its customers, to support application and engineering efforts
that use the products designed by SIMCom. The information provided is based upon requirements
specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search
for additional relevant information, including any information that may be in the customers possession.
Furthermore, system validation of this product designed by SIMCom within a larger electronic system
remains the responsibility of the customer or the customers system integrator. All specifications supplied
herein are subject to change.
Copyright
This document contains proprietary technical information which is the property of SIMCom Limited.,
copying of this document and giving it to others and the using or communication of the contents thereof,
are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved
in the event of grant of a patent or the registration of a utility model or design. All specification supplied
herein are subject to change without notice at any time.
SIM5320_ATC_V2.02
7/28/2014
Version History
This chapter describes modifications and improvements base on SIMCOM_SIM5320_ATC_EN_V1.31.
Version
Chapter
Comments
V2.00
11.20 AT+CPCMS
12.18 AT+SJDR
16.2.13 AT+CIPOPEN
16.4.19 AT+CFTPSTO
16.4.20 AT+CFTPSABORT
V2.01
3.14 AT+IFC
11.12 AT+CVLVL
16.2.13 AT+CIPOPEN
V2.02
4.11 AT+CATR
9.7 AT+CGQREQ
9.8 AT+CGEQREQ
9.9 AT+CGQMIN
9.10 AT+CGEQMIN
12.28 AT+CMUXSRVPORT
16.1.4 AT+CGSOCKQREQ
16.1.5 AT+CGSOCKEQREQ
16.1.6 AT+CGSOCKQMIN
16.1.7 AT+CGSOCKEQMIN
16.2.3 AT+CIPSENDMODE
16.2.14 AT+CIPSEND
16.2.19 Information elements related to TCP/IP
SIM5320_ATC_V2.02
7/28/2014
Contents
V e r s i o n H i s t o r y ........................................................................................................................... 2
C o n t e n t s ............................................................................................................................................ 3
1 Introduction.................................................................................................................................... 15
1.1
Scope.................................................................................................................................................... 15
1.2
References ............................................................................................................................................ 15
1.3
1.4
AT Interface Synopsis.................................................................................................................... 18
2.1
2.2
AT command syntax............................................................................................................................. 18
2.3
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.14
3.15
AT&C
3.16
3.17
3.18
3.19
3.20
3.21
3.22
3.23
3.24
3.25
3.26
3.27
3.28
AT+CGMI
3.29
SIM5320_ATC_V2.02
7/28/2014
3.30
3.31
AT+CGSN
3.32
3.33
AT+CIMI
3.34
4.2
AT+CPIN
4.3
4.4
4.5
4.6
4.7
4.8
4.9
4.10
AT+AUTOCSQ
4.11
4.12
4.13
4.14
4.15
4.16
4.17
4.18
AT+CCLK
4.19
4.20
4.21
AT+SIMEI
4.22
AT+DSWITCH
4.23
4.24
4.25
4.26
Indication of EONS.............................................................................................................................. 75
4.27
Enter PIN.......................................................................................................................... 50
5.2
5.3
AT+CLCK
5.4
5.5
5.6
5.7
5.8
5.9
SIM5320_ATC_V2.02
7/28/2014
5.10
AT+COPN
5.11
5.12
5.13
5.14
5.15
5.16
5.17
5.18
5.19
5.20
5.21
5.22
5.23
5.24
AT+CPASSMGR
5.25
5.26
5.27
5.28
5.29
5.30
5.31
5.32
5.33
5.34
5.35
5.36
5.37
6.2
6.3
6.4
6.5
6.6
AT+CRC
6.7
6.8
6.9
6.10
6.11
AT+CCFC
6.12
6.13
6.14
SIM5320_ATC_V2.02
7/28/2014
6.15
6.16
AT+VTD
6.17
6.18
6.19
6.20
6.21
6.22
6.23
AT+CODEC
6.24
6.25
6.26
6.27
6.28
AT+CMUTW Mute call waiting sound for voice call ..................................................................... 158
7.2
AT+CPMS
7.3
7.4
7.5
7.6
7.7
AT+CSDH
7.8
7.9
7.10
7.11
7.12
7.13
7.14
AT+CMSS
7.15
7.16
7.17
7.18
7.19
7.20
7.21
AT+CMGSO
7.22
7.23
7.24
AT+CMGENREF
7.25
7.26
AT+CMSSEXM
7.27
7.28
AT+CMGREX
SIM5320_ATC_V2.02
7/28/2014
7.29
8.2
AT+CPBR
8.3
8.4
8.5
8.6
9.2
9.3
9.4
9.5
9.6
9.7
9.8
9.9
9.10
9.11
9.12
AT+CGPADDR
9.13
AT+CGCLASS
9.14
9.15
10
10.1
10.2
10.3
10.4
11
11.1
11.2
11.3
11.4
11.5
11.6
AT+CTXGAIN
11.7
AT+CRXGAIN
11.8
11.9
SIM5320_ATC_V2.02
7/28/2014
12
12.1
12.2
12.3
12.4
12.5
AT+CSPISETF
12.6
12.7
12.8
12.9
AT+CGFUNC Enable/Disable the function for the special GPIO. ................................................. 278
12.25 AT+CDTRISRMD Configure the trigger condition for DTRs interrupt. ....................................... 294
12.26 AT+CDTRISRS Enable/Disable the pin of DTRs awakening function ......................................... 295
12.27 AT+CMUX Enable the multiplexer over the UART ....................................................................... 296
12.28 AT+CMUXSRVPORT Configure MUX port service ..................................................................... 297
12.29 AT+CUSBSPD
12.30 AT+CLEDDYNC Control the blinking frequency for the led......................................................... 299
12.31 AT+CLEDITST Adjust the LEDs intensity ................................................................................... 300
12.32 AT+CBC
12.33 AT+CADC Read the value from the ADC ...................................................................................... 302
12.34 AT+CADCA Read the value from the second ADC........................................................................ 303
SIM5320_ATC_V2.02
7/28/2014
12.35 AT+CVAUXS Set state of the pin named VREG_AUX1 ............................................................... 304
12.36 AT+CVAUXV Set voltage value of the pin named VREG_AUX1................................................. 304
12.37 AT+CAPWRON Auto power on setting ......................................................................................... 305
12.38 AT+CVALARM
12.39 AT+CPMVT
13
13.1
13.2
AT+FSMKDIR
13.3
13.4
13.5
13.6
AT+FSRENAME
13.7
AT+FSATTRI
13.8
13.9
14
14.1
14.2
14.3
AT+CMWAIT Config the waiting seconds before xmodem start receiving.................................... 323
14.4
14.5
AT+CFTRANTX
15
15.1
15.2
AT+CMMSPROTO Set the protocol parameters and MMS proxy ................................................. 328
15.3
15.4
15.5
AT+CMMSDOWN Download the file data or title from UART .................................................... 331
15.6
AT+CMMSDELFILE Delete a file within the editing MMS body ................................................. 333
15.7
15.8
15.9
SIM5320_ATC_V2.02
7/28/2014
15.24.2
16
16.1
Common............................................................................................................................................. 354
16.1.1
16.1.2
16.1.3
16.1.4
16.1.5
16.1.6
16.1.7
16.1.8
16.1.9
16.1.10
16.1.11
AT+CDNSGHNAME
16.1.12
16.1.13
16.1.14
AT+CTCPFIN
16.1.15
16.1.16
16.1.17
AT+CUPURE
16.1.18
16.2
16.2.1
AT+CIPCCFG
16.2.2
16.2.3
AT+CIPSENDMODE
16.2.4
AT+CIPHEAD
16.2.5
16.2.6
AT+CIPMODE
16.2.7
16.2.8
AT+NETDORM
16.2.9
AT+NETCLOSE
16.2.10
AT+IPADDR
16.2.11
16.2.12
16.2.13
AT+CIPOPEN
16.2.14
AT+CIPSEND
16.2.15
SIM5320_ATC_V2.02
10
7/28/2014
16.2.16
AT+CIPCLOSE
16.2.17
AT+CIPSTAT Inquire the total size of data sent or received ................................................................... 407
16.2.18
AT+CIPENPSH
16.2.19
16.2.20
16.3
FTP..................................................................................................................................................... 409
16.3.1
16.3.2
AT+CFTPMODE
16.3.3
AT+CFTPTYPE
16.3.4
16.3.5
AT+CFTPUN
16.3.6
16.3.7
AT+CFTPGETFILE
16.3.8
AT+CFTPPUTFILE
16.3.9
AT+CFTPGET Get a file from FTP server and output it to SIO.............................................................. 417
16.3.10
AT+CFTPPUT Upload the DATA from SIO to FTP server ..................................................................... 419
16.3.11
AT+CFTPLIST List the items in the directory on FTP server ................................................................. 420
16.3.12
AT+CFTPMKD
16.3.13
AT+CFTPRMD
16.3.14
AT+CFTPDELE
16.3.15
16.4
FTPS................................................................................................................................................... 424
16.4.1
16.4.2
16.4.3
16.4.4
16.4.5
16.4.6
16.4.7
AT+CFTPSDELE
16.4.8
16.4.9
16.4.10
AT+CFTPSTYPE
16.4.11
16.4.12
AT+CFTPSGETFILE
16.4.13
AT+CFTPSPUTFILE
16.4.14
16.4.15
16.4.16
AT+CFTPSSIZE
16.4.17
16.4.18
16.4.19
AT+CFTPSTO
16.4.20
16.4.21
SIM5320_ATC_V2.02
11
7/28/2014
16.4.22
16.4.23
16.5
16.5.1
16.5.2
16.5.3
AT+CHTTPSOPSE
16.5.4
AT+CHTTPSCLSE
16.5.5
16.5.6
16.5.7
AT+CHTTPSSTATE
16.5.8
16.5.9
16.6
16.6.1
16.6.2
AT+CHTPUPDATE
16.6.3
16.7
16.7.1
AT+SMTPSRV Set SMTP server address and port number .................................................................... 454
16.7.2
16.7.3
16.7.4
16.7.5
AT+SMTPSUB
16.7.6
16.7.7
AT+SMTPBCH
16.7.8
AT+SMTPFILE
16.7.9
AT+SMTPSEND
16.7.10
16.8
16.8.1
16.8.2
16.8.3
16.8.4
16.8.5
AT+CSMTPSSUB
16.8.6
16.8.7
16.8.8
AT+CSMTPSFILE
16.8.9
AT+CSMTPSSEND
16.8.10
16.8.11
16.8.12
16.9
16.9.1
16.9.2
SIM5320_ATC_V2.02
12
7/28/2014
16.9.3
AT+CCHOPEN
16.9.4
AT+CCHCLOSE
16.9.5
AT+CCHSEND
16.9.6
16.9.7
16.9.8
AT+CCHADDR
16.9.9
AT+CCHMODE
16.9.10
AT+CCHSTATE
16.9.11
16.9.12
AT+CCERTDOWN
16.10.2
16.10.3
AT+CCERTDELE
16.10.4
16.10.5
16.10.6
16.10.7
17
17.1
17.2
17.3
AT+CGPSCOLD
17.4
17.5
17.6
17.7
17.8
17.9
17.10 AT+CGPSMD
17.11 AT+CGPSFTM
17.19 AT+CGPSMSB
17.20 AT+CGPSHOR
AT+CASSISTLOC
17.22.2
SIM5320_ATC_V2.02
13
7/28/2014
17.22.3
17.22.4
AT+CASSISTLOCMODE
18
18.1
18.2
18.3
19
19.1
19.2
19.3
19.4
19.5
19.6
AT+PRINTDIR
19.7
19.8
19.9
20
20.1
20.2
20.2.1
20.2.2
20.3
21
21.1
21.2
21.3
21.4
SIM5320_ATC_V2.02
14
7/28/2014
1
1.1
Introduction
Scope
The present document describes the AT Command Set for the SIMCom Module:
SIM5320
More information about the SIMCom Module which includes the Software Version information can be
retrieved by the command ATI. In this document, a short description, the syntax, the possible setting values
and responses, and some examples of AT commands are presented.
Prior to using the Module, please read this document and the Version History to know the difference
from the previous document.
In order to implement communication successfully between Customer Application and the Module, it
is recommended to use the AT commands in this document, but not to use some commands which are not
included in this document.
1.2
References
The present document is based on the following standards:
[1] ETSI GSM 01.04: Abbreviations and acronyms.
[2] 3GPP TS 27.005: Use of Data Terminal Equipment Data Circuit terminating Equipment (DTE
DCE) interface for Short Message Service (SMS) and Cell Broadcast Service (CBS).
[3] 3GPP TS 27.007: AT command set for User Equipment (UE).
[4] WAP-224-WTP-20010710-a
[5] WAP-230-WSP-20010705-a
[6] WAP-209-MMSEncapsulation-20010601-a
1.3
1.4
EGPRS
Enhanced General Packet Radio Service
GPIO
GeneralPurpose Input/Output
GPRS
General Packet Radio Service
GSM
Global System for Mobile communications
HSDPA
High Speed Downlink Packet Access
HSUPA
High Speed Uplink Packet Access
I2C
InterIntegrated Circuit
IMEI
International Mobile station Equipment Identity
IMSI
International Mobile Subscriber Identity
ME
Mobile Equipment
MO
MobileOriginated
MS
Mobile Station
MT
MobileTerminated; Mobile Termination
PCS
Personal Communication System
PDU
Protocol Data Unit
PIN
Personal Identification Number
PUK
Personal Unlock Key
SIM
Subscriber Identity Module
SMS
Short Message Service
SMSSC
Short Message Service Service Center
TA
Terminal Adaptor; e.g. a data card (equal to DCE)
TE
Terminal Equipment; e.g. a computer (equal to DTE)
UE
User Equipment
UMTS
Universal Mobile Telecommunications System
USIM
Universal Subscriber Identity Module
WCDMA
Wideband Code Division Multiple Access
File Transfer Protocol
FTP
HTTP
Hyper Text Transfer Protocol
POP3
Post Office Protocol Version 3
POP3 client An client that can receive e-mail from POP3 server over TCP session
RTC
Real Time Clock
SMTP
Simple Mail Transfer Protocol
SMTP client An client that can transfer text-based e-mail to SMTP server over TCP session
URC
Unsolicited Result Code
MMS
Multimedia message system
1. For the purposes of the present document, the following syntactical definitions apply:
<CR>
<LF>
Linefeed character.
SIM5320_ATC_V2.02
16
7/28/2014
<>
[]
underline
2. Document conventions:
NOTE: AT commands and responses in figures may be not following above conventions.
3. Special marks for commands or parameters:
SIM PIN
References
AT command can be used when SIM card is absent or SIM PIN validation is
pending.
Where is the derivation of command?
3GPP TS 27.007
V.25ter
Vendor
SIM5320_ATC_V2.02
17
7/28/2014
2
2.1
AT Interface Synopsis
Interface settings
Between Customer Application and the Module, standardized RS232 interface is used for the
communication, and default values for the interface settings as following:
115200bps, 8 bit data, no parity, 1 bit stop, no data stream control.
2.2
AT command syntax
The prefix AT or at (no case sensitive) must be included at the beginning of each command line
(except A/ and +++), and the character <CR> is used to finish a command line so as to issue the command
line to the Module. It is recommended that a command line only includes a command.
When Customer Application issues a series of AT commands on separate command lines, leave a pause
between the preceding and the following command until information responses or result codes are retrieved
by Customer Application, for example, OK is appeared. This advice avoids too many AT commands are
issued at a time without waiting for a response for each command.
In the present document, AT commands are divided into three categories: Basic Command, S Parameter
Command, and Extended Command.
1. Basic Command
The format of Basic Command is AT<x><n> or AT&<x><n>, <x> is the command name, and
<n> is/are the parameter(s) for the basic command, and optional. An example of Basic Command is
ATE<n>, which informs the TA/DCE whether received characters should be echoed back to the TE/DTE
according to the value of <n>; <n> is optional and a default value will be used if omitted.
2. S Parameter Command
The format of S Parameter Command is ATS<n>=<m>, <n> is the index of the Sregister to set,
and <m> is the value to assign to it. <m> is optional; in this case, the format is ATS<n>, and then a
default value is assigned.
3. Extended Command
The Extended Command has several formats, as following table list:
Table 2-1: Types of Extended Command
Command Type
SIM5320_ATC_V2.02
Syntax
Comments
18
7/28/2014
Test Command
AT+<NAME>=?
Read Command
AT+<NAME>?
Write Command
AT+<NAME>=<>
Execution Command
AT+<NAME>
NOTE: The character + between the prefix AT and command name may be replaced by other
character. For example, using # or $instead of +.
2.3
Information responses
If the commands included in the command line are supported by the Module and the subparameters are
correct if presented, some information responses will be retrieved by from the Module. Otherwise, the
Module will report ERROR or +CME ERROR or +CMS ERROR to Customer Application.
Information responses start and end with <CR><LF>, i.e. the format of information responses is
<CR><LF><response><CR><LF>. Inside information responses, there may be one or more <CR><LF>.
Throughout this document, only the responses are presented, and <CR><LF> are intentionally omitted.
SIM5320_ATC_V2.02
19
7/28/2014
3.1
A/
Description
This command is used for implement previous AT command repeatedly (except A/), and the return
value depends on the last AT command. If A/ is issued to the Module firstly after power on, the
response OK is only returned.
SIM PIN
NO
References
V.25ter
Syntax
Execution Command
A/
Responses
The response the last AT command return
Examples
AT+GCAP
+GCAP:+CGSM,+FCLASS,+DS
OK
A/
+GCAP:+CGSM,+FCLASS,+DS
OK
3.2
ATD
Dial command
Description
This command is used to list characters that may be used in a dialling string for making a call or
controlling supplementary services.
NOTE:
1. Support several P or p in the DTMF string but the valid auto-sending DTMF after characters
P or p should not be more than 29.
2. Auto-sending DTMF after character P or p should be ASCII character in the set 0-9, *, #.
SIM PIN
NO
References
V25.ter
SIM5320_ATC_V2.02
20
7/28/2014
Syntax
Execution Commands
ATD<n>[<mgsm>][;]
Responses
Originate a voice call successfully:
OK
VOICE CALL: BEGIN
Originate a data call successfully:
CONNECT<text>
Originate a call unsuccessfully during command execution:
ERROR
Originate a call unsuccessfully for failed connection recovery:
NO CARRIER
Originate a call unsuccessfully for error related to the MT:
+CME ERROR: <err>
Defined values
<n>
String of dialing digits and optionally V.25ter modifiers dialing digits:
0 1 2 3 4 5 6 7 8 9 * # + A B C
Following V.25ter modifiers are ignored:
, T P ! W @
<mgsm>
String of GSM modifiers:
I
Activates CLIR (disables presentation of own phone number to called party)
i
Deactivates CLIR (enables presentation of own phone number to called party)
G
Activate Closed User Group explicit invocation for this call only
g
Deactivate Closed User Group explicit invocation for this call only
<;>
The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax
calls.
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
Service failure result code string; the string formats please refer +CME ERROR result code and
AT+CMEE command.
Examples
ATD10086;
OK
VOICE CALL:BEGIN
SIM5320_ATC_V2.02
21
7/28/2014
3.3
ATD><mem><n>
Description
This command is used to originate a call using specified memory and index number.
SIM PIN
NO
References
V.25ter
Syntax
Execution Commands
ATD><mem><n>[;]
Responses
Originate a voice call successfully:
OK
VOICE CALL: BEGIN
Originate a data call successfully:
CONNECT<text>
Originate a call unsuccessfully during command execution:
ERROR
Originate a call unsuccessfully for failed connection recovery:
NO CARRIER
Originate a call unsuccessfully for error related to the MT:
+CME ERROR: <err>
Defined values
<mem>
Phonebook storage: (For detailed description of storages see AT+CPBS)
"DC"
ME dialed calls list
"MC"
ME missed (unanswered received) calls list
"RC"
ME received calls list
"SM"
SIM phonebook
"ME"
UE phonebook
"FD"
SIM fixed dialing phonebook
"ON"
MSISDN list
"LD"
Last number dialed phonebook
"EN"
Emergency numbers
<n>
Integer type memory location in the range of locations available in the selected memory, i.e. the
index returned by AT+CPBR.
<;>
The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax
calls.
SIM5320_ATC_V2.02
22
7/28/2014
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
Service failure result code string; the string formats please refer +CME ERROR result code and
AT+CMEE command.
Examples
ATD>SM3;
OK
VOICE CALL: BEGIN
3.4
ATD><n>
Description
This command is used to originate a call to specified number.
SIM PIN
NO
References
V.25ter
Syntax
Execution Commands
ATD><n>[;]
Responses
Originate a voice call successfully:
OK
VOICE CALL: BEGIN
Originate a data call successfully:
CONNECT<text>
Originate a call unsuccessfully during command execution:
ERROR
Originate a call unsuccessfully for failed connection recovery:
NO CARRIER
Originate a call unsuccessfully for error related to the MT:
+CME ERROR: <err>
Defined values
<n>
Integer type memory location in the range of locations available in the selected memory, i.e. the
index number returned by AT+CPBR.
<;>
The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax
SIM5320_ATC_V2.02
23
7/28/2014
calls.
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
Service failure result code string; the string formats please refer +CME ERROR result code and
AT+CMEE command.
Examples
ATD>2;
OK
VOICE CALL: BEGIN
3.5
ATD><str>
Description
This command is used to originate a call to specified number.
SIM PIN
NO
References
V.25ter
Syntax
Execution Commands
ATD><str>[;]
Responses
Originate a voice call successfully:
OK
VOICE CALL: BEGIN
Originate a data call successfully:
CONNECT<text>
Originate a call unsuccessfully during command execution:
ERROR
Originate a call unsuccessfully for failed connection recovery:
NO CARRIER
Originate a call unsuccessfully for error related to the MT:
+CME ERROR: <err>
Defined values
<str>
String type value, which should equal to an alphanumeric field in at least one phone book entry in
the searched memories. <str> formatted as current TE character set specified by AT+CSCS.<str>
must be double quoted.
SIM5320_ATC_V2.02
24
7/28/2014
<;>
The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax
calls.
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
Service failure result code string; the string formats please refer +CME ERROR result code and
AT+CMEE command.
Examples
ATD>Kobe;
OK
VOICE CALL: BEGIN
3.6
Description
This command is used to make remote station to go off-hook, e.g. answer an incoming call. If there
is no an incoming call and entering this command to TA, it will be return NO CARRIER to TA.
SIM PIN
YES
References
V.25ter
Syntax
Execution Commands
ATA
Responses
For voice call:
OK
VOICE CALL: BEGIN
For data call, and TA switches to data mode:
CONNECT
No connection or no incoming call:
NO CARRIER
Examples
ATA
VOICE CALL: BEGIN
OK
SIM5320_ATC_V2.02
25
7/28/2014
3.7
ATH
Description
This command is used to disconnect existing call. Before using ATH command to hang up a voice
call, it must set AT+CVHU=0. Otherwise, ATH command will be ignored and OK response is
given only.
This command is also used to disconnect CSD or PS data call, and in this case it doesnt depend on
the value of AT+CVHU.
SIM PIN
NO
References
V.25ter
Syntax
Execution Command
ATH
Responses
If AT+CVHU=0:
VOICE CALL: END: <time>
OK
OK
Defined values
<time>
Voice call connection time:
Format HHMMSS (HH: hour, MM: minute, SS: second)
Examples
AT+CVHU=0
OK
ATH
VOICE CALL:END:000017
OK
3.8
ATS0
Description
The S-parameter command controls the automatic answering feature of the Module. If set to 000,
automatic answering is disabled, otherwise it causes the Module to answer when the incoming call
indication (RING) has occurred the number of times indicated by the specified value; and the
setting will not be stored upon power-off, i.e. the default value will be restored after restart.
SIM PIN
References
SIM5320_ATC_V2.02
26
7/28/2014
YES
V.25ter
Syntax
Read Command
ATS0?
Responses
<n>
OK
Write Command
ATS0=<n>
Responses
OK
Defined values
<n>
000
Automatic answering mode is disable. (default value when power-on)
001255 Enable automatic answering on the ring number specified.
NOTE: 1.The S-parameter command is effective on voice call and data call.
2.If <n> is set too high, the remote party may hang up before the call can be answered
automatically.
Examples
ATS0?
000
OK
ATS0=003
OK
3.9
+++
Description
This command is only available during a connecting CSD call or PS data call. The +++ character
sequence causes the TA to cancel the data flow over the AT interface and switch to Command
Mode. This allows to enter AT commands while maintaining the data connection to the remote
device.
NOTE: To prevent the +++ escape sequence from being misinterpreted as data, it must be preceded
and followed by a pause of at least 1000 milliseconds, and the interval between two + character
cant exceed 900 milliseconds.
SIM PIN
YES
References
V.25ter
Syntax
SIM5320_ATC_V2.02
27
7/28/2014
Execution Command
+++
Responses
OK
Examples
+++
OK
3.10
ATO
Description
ATO is the corresponding command to the +++ escape sequence. When there is a CSD call or a PS
data call connected and the TA is in Command Mode, ATO causes the TA to resume the data and
takes back to Data Mode.
SIM PIN
YES
References
V.25ter
Syntax
Execution Command
ATO
Responses
TA/DCE switches to Data Mode from Command Mode:
CONNECT (baud rate)
If connection is not successfully resumed or there is not a
connected CSD call:
NO CARRIER
Examples
ATO
CONNECT 115200
3.11
ATI
Description
This command is used to request the product information, which consists of manufacturer
identification, model identification, revision identification, International Mobile station Equipment
Identity (IMEI) and overall capabilities of the product.
SIM PIN
NO
References
V.25ter
SIM5320_ATC_V2.02
28
7/28/2014
Syntax
Execution Command
ATI
Responses
Manufacturer: <manufacturer>
Model: <model>
Revision: <revision>
IMEI: <sn>
+GCAP: list of <name>s
OK
Defined values
<manufacturer>
The identification of manufacturer.
<model>
The identification of model.
<revision>
The revision identification of firmware.
<sn>
Serial number identification, which consists of a single line containing IMEI (International Mobile
station Equipment Identity) number.
<name>
List of additional capabilities:
+CGSM
GSM function is supported
+FCLASS
FAX function is supported
+DS
Data compression is supported
+ES
Synchronous data mode is supported.
Examples
ATI
Manufacturer: SIMCOM INCORPORATED
Model: SIMCOM_SIM5320E
Revision: SIM5320E_V1.5
IMEI: 351602000330570
+GCAP: +CGSM,+FCLASS,+DS
OK
3.12
AT+IPR
Description
This command sets the baud rate of modules serial interface temporarily, after reboot the baud rate
is set to default value.The default value is 115200.
SIM5320_ATC_V2.02
29
7/28/2014
SIM PIN
NO
References
V.25ter
Syntax
Test Command
AT+IPR=?
Responses
+IPR: (list of supported<speed>s)
OK
Read Command
AT+IPR?
Responses
+IPR: <speed>
OK
Write Command
AT+IPR=<speed>
Responses
OK
Execution Command
AT+IPR
ERROR
Responses
Set default value 115200:
OK
Defined values
<speed>
Baud rate per second:
300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800,921600,
3200000,3686400,4000000
Examples
AT+IPR?
+IPR: 115200
OK
AT+IPR=?
+IPR:(300,600,1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600,
3200000, 3686400, 4000000)
OK
AT+IPR=115200
OK
3.13
Description
This command sets character framing which contains data bit, stop bit and parity bit.
SIM5320_ATC_V2.02
30
7/28/2014
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+ICF=?
Responses
+ICF: (list of supported<format>s), (list of supported<parity>s)
OK
Read Command
AT+ICF?
Responses
+ICF: <format>,<parity>
OK
Write Command
AT+ICF=
<format>[,<parity>]
Execution Command
AT+ICF
Responses
OK
ERROR
Responses
Set default value:
OK
Defined values
<format>
Only support value 3 at moment:
3 data bit 8, stop bit 1
<parity>
0 Odd
1 Even
2 mark
3 none
Examples
AT+ICF?
+ICF: 3,3
OK
AT+ICF=?
+ICF: (3),(0-3)
OK
AT+ICF=3,3
OK
SIM5320_ATC_V2.02
31
7/28/2014
3.14
AT+IFC
Description
The command sets the flow control mode of the module.
SIM PIN
NO
References
V.25ter
Syntax
Test Command
AT+IFC=?
Responses
+IFC: (list of supported<DCE>s), (list of supported<DTE>s)
OK
ERROR
Read Command
AT+IFC?
Responses
+IFC: <DCE>,<DTE>
OK
ERROR
Write Command
AT+IFC=<DCE>[,<DTE>]
Execution Command
AT+IFC
Responses
OK
ERROR
Responses
Set default value:
OK
ERROR
Defined values
<DCE>
0
1
2
3
<DTE>
0
1
2
3
none (default)
software flow control(XON/XOFF) but strip XON/XOFF characters from stream
RTS hardware flow control
software flow control(XON/XOFF) and leave XON/XOFF characters in stream
none (default)
software flow control(XON/XOFF) but strip XON/XOFF characters from stream
CTS hardware flow control
software flow control(XON/XOFF) and leave XON/XOFF characters in stream
Examples
AT+IFC?
SIM5320_ATC_V2.02
32
7/28/2014
+IFC: 0,0
OK
AT+IFC=?
+IFC: (0-3),(0-3)
OK
AT+IFC=2,2
OK
3.15
AT&C
Description
This command determines how the state of DCD PIN relates to the detection of received line signal
from the distant end.
NOTE: After executing AT+CSUART=1 and AT+CGFUNC=10,1, it takes effect.
SIM PIN
NO
References
V.25ter
Syntax
Execution Command
AT&C[<value>]
Responses
OK
ERROR
Defined values
<value>
0 DCD line shall always be on.
1 DCD line shall be on only when data carrier signal is present.
2 Setting winks(briefly transitions off,then back on)the DCD line when data calls end.
Examples
AT&C1
OK
3.16
ATE
Description
This command sets whether or not the TA echoes characters.
SIM PIN
NO
References
V.25ter
SIM5320_ATC_V2.02
33
7/28/2014
Syntax
Execution Command
ATE[<value>]
Responses
OK
ERROR
Defined values
<value>
0
1
Examples
ATE1
OK
3.17
Description
This command returns some of the base configuration parameters settings.
SIM PIN
YES
References
V.25ter
Syntax
Execution Command
AT&V
Responses
<TEXT>
OK
Defined values
<TEXT>
All relative configuration information.
Examples
AT&V
&C: 0; &D: 2; &F: 0; E: 1; L: 0; M: 0; Q: 0; V: 1; X: 0; Z: 0; S0: 0;
S3: 13; S4: 10; S5: 8; S6: 2; S7: 50; S8: 2; S9: 6; S10: 14; S11: 95;
+FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6;
+WS46: 12; +CBST: 0,0,1;
SIM5320_ATC_V2.02
34
7/28/2014
OK
3.18
AT&D
Description
This command determines how the TA responds when DTR PIN is changed from the ON t
o the OFF condition during data mode.
NOTE: After executing AT+CSUART=1, it takes effect.
SIM PIN
NO
References
V.25ter
Syntax
Execution Command
AT&D[<value>]
Responses
OK
ERROR
Defined values
<value>
0 TA ignores status on DTR.
1 ON->OFF on DTR: Change to Command mode with remaining the connected call
2 ON->OFF on DTR: Disconnect call, change to Command mode.During state DTR =
OFF is auto-answer off.
Examples
AT&D1
OK
3.19
AT&S
Description
The command determines how the state of DSR pin works.
SIM PIN
YES
References
V.25ter
Syntax
Execution Command
AT&S<value>
SIM5320_ATC_V2.02
Responses
OK
35
7/28/2014
ERROR
Defined values
<value>
0 DSR line shall always be on.
1 DSR line shall be on only when DTE and DCE are connected.
Examples
AT&S0
OK
3.20
Description
This parameter setting determines the contents of the header and trailer transmitted with result
codes and information responses.
NOTE: In case of using This command without parameter <value> will be set to 0.
SIM PIN
NO
References
V.25ter
Syntax
Write Command
ATV[<value>]
Responses
If <value> =0
0
If <value> =1
OK
Defined values
<value>
0 Information response: <text><CR><LF>
Short result code format: <numeric code><CR>
1 Information response: <CR><LF><text><CR><LF>
Long result code format: <CR><LF><verbose code><CR><LF>
Examples
ATV1
OK
SIM5320_ATC_V2.02
36
7/28/2014
3.21
Description
This command is used to set all current parameters to the manufacturer defined profile.
NOTE:List of parameters reset to manufacturer default can be found in defined values, factory
default settings restorable with AT&F[<value>].
Every ongoing or incoming call will be terminated.
SIM PIN
NO
References
V.250
Syntax
Execution Command
AT&F[<value>]
Responses
OK
Defined values
<value>
0 Set some temporary TA parameters to manufacturer defaults. The setting after power on or
reset is same as value 0.
1 Set all TA parameters to manufacturer defaults.
NOTE: Module must reset after setting value 1, otherwise some unknown issue will happen.
default values
TA parameters
VALUE
AT+CATR
AT+CSUART
AT+CPCM
0,0
AT+CPCMFMT
AT+CPCMSLOT
1
AT+CNBP
0x0002000000680380
AT+CNMP
AT+CNAOP
AT+CNSDP
AT+CTZU
AT+CRSL
AT+CALM
AT+CEMNLIST
0, ""
AT+CVALARM
0,3400
AT+CRFEN
AT+CSDVC
SIM5320_ATC_V2.02
37
7/28/2014
2
AT+CLVL
2
AT+CVLVL
-200,1000,3000,5000,3000,4000,5000,5000
2
AT+CMICAMP1
2
AT+SIDET
8000
2
AT+CTXGAIN
10000
2
AT+CRXGAIN
3000
2
AT+CTXVOL
10000
2
AT+CRXVOL
2
AT+CTXFTR
0, 0, 0, 0, 0, 0, 0
2
AT+CRXFTR
0, 0, 0, 0, 0, 0, 0
AT+CVAUXS
AT+CVAUXV
52
AT+CDTRISRS
AT+CDTRISRMD
0,0
AT+CGDCONT
1,"IP","","0.0.0.0",0,0
AT+CGSOCKCONT
+CGSOCKCONT: 1,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 2,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 3,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 4,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 5,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 6,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 7,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 8,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 9,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 10,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 11,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 12,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 13,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 14,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 15,"IP","","0.0.0.0",0,0
+CGSOCKCONT: 16,"IP","","0.0.0.0",0,0
AT+CPLMNWLIST
"", 1
AT+CPASSMGR
AT+CGPSSSL
AT+CGPSURL
""
AT+CMMSSENDCFG
6,3,0,0,2,4
AT+CMMSCURL
""
AT+CMMSPROTO
1,"0.0.0.0",0
AT+CGPSAUTO
AT+CGPSSWITCH
SIM5320_ATC_V2.02
38
7/28/2014
1 SIM5320E
value
is
Examples
AT&F
OK
AT&F1
OK (then reset the module manually)
3.22
ATQ
Description
Specify whether the TA transmits any result code to the TE or not. Text information transmitted in
response is not affected by this setting
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Write Command
ATQ<n>
Responses
If <n>=0:
OK
If <n>=1:
Execution Command
ATQ
Responses
Set default value:0
OK
Defined values
<n>
0
1
Examples
ATQ0
OK
SIM5320_ATC_V2.02
39
7/28/2014
3.23
ATX
Description
This parameter setting determines whether the TA transmits unsolicited result codes or not. The
unsolicited result codes are
<CONNECT><SPEED><COMMUNICATION PROTOCOL>[<TEXT>]
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Write Command
ATX<VALUE>
Responses
OK
ERROR
Execution Command
ATX
Responses
Set default value:1
OK
Defined values
<value>
0 CONNECT result code returned
1,2,3,4 May be transmits extern result codes according to AT&E and AT\V settings. Refer to
AT&E.
Examples
ATX1
OK
3.24
Description
This parameter setting determines whether report the communication protocol. If PS call, it also
determines wether report APN, uplink rate, downlink rate.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Write Command
SIM5320_ATC_V2.02
Responses
40
7/28/2014
AT\V<value>
OK
ERROR
Execution Command
AT\V
Responses
Set default value: 0
OK
Defined values
<value>
0 Dont report
1 Report communication protocol. And report APN, uplink rate, downlink rate if PS call.
Refer
to
AT&E.
The
maybe
communication
protocol
report
include
NONE,PPPoverUD,AV32K,AV64K,PACKET. And APN in string format while
uplink rate and downlink rate in integer format with kb unit.
Examples
AT\V0
OK
3.25
AT&E
Description
This parameter setting determines to report Serial connection rate or Wireless connection speed. It
is valid only ATX above 0.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Write Command
AT&E<value>
Responses
OK
ERROR
Execution Command
AT&E
Responses
Set default value: 1
OK
Defined values
<value>
0 Wireless connection speed in integer format.
1 Serial connection rate in integer format. Such as: 115200
SIM5320_ATC_V2.02
41
7/28/2014
Examples
AT&E0
OK
3.26
Description
This command will save the user settings to ME which set by ATE, ATQ, ATV, ATX, AT&C AT&D,
AT&S, AT\V, AT+IFC and ATS0.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Write Command
AT&W<value>
Responses
OK
ERROR
Execution Command
AT&W
Responses
Set default value: 0
OK
Defined values
<value>
0 Save
Examples
AT&W0
OK
3.27
ATZ
Description
This command will restore the user setting from ME which set by ATE, ATQ, ATV, ATX, AT&C
AT&D, AT&S, AT\Q, AT\V, and ATS0.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
SIM5320_ATC_V2.02
42
7/28/2014
Write Command
ATZ<value>
Responses
OK
ERROR
Execution Command
ATZ
Responses
Set default value: 0
OK
Defined values
<value>
0 Restore
Examples
ATZ0
OK
3.28
AT+CGMI
Description
This command is used to request the manufacturer identification text, which is intended to permit
the user of the Module to identify the manufacturer.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CGMI=?
Responses
OK
Execution Command
AT+CGMI
Responses
<manufacturer>
OK
Defined values
<manufacturer>
The identification of manufacturer.
Examples
AT+CGMI
SIMCOM INCORPORATED
SIM5320_ATC_V2.02
43
7/28/2014
OK
3.29
AT+CGMM
Description
This command is used to requests model identification text, which is intended to permit the user of
the Module to identify the specific model.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CGMM=?
Responses
OK
Execution Command
AT+CGMM
Responses
<model>
OK
Defined values
<model>
The identification of model.
Examples
AT+CGMM
SIMCOM_SIM5320
OK
3.30
AT+CGMR
Description
This command is used to request product firmware revision identification text, which is intended to
permit the user of the Module to identify the version.
SIM PIN References
NO
3GPP TS 27.007
Syntax
Test Command
AT+CGMR=?
SIM5320_ATC_V2.02
Responses
OK
44
7/28/2014
Execution Command
AT+CGMR
Responses
+CGMR: <revision>
OK
Defined values
<revision>
The revision identification of firmware.
Examples
AT+CGMR
+CGMR: 1575B09SIM5320E
OK
3.31
AT+CGSN
Description
This command requests product serial number identification text, which is intended to permit the
user of the Module to identify the individual ME to which it is connected to.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CGSN=?
Responses
OK
Execution Command
AT+CGSN
Responses
<sn>
OK
Defined values
<sn>
Serial number identification, which consists of a single line containing the IMEI (International
Mobile station Equipment Identity) number of the MT.
Examples
AT+CGSN
351602000330570
OK
SIM5320_ATC_V2.02
45
7/28/2014
3.32
AT+CSCS
Description
Write command informs TA which character set <chest> is used by the TE. TA is then able to
convert character strings correctly between TE and MT character sets.
Read command shows current setting and test command displays conversion schemes implemented
in the TA.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSCS=?
Read Command
AT+CSCS?
Write Command
AT+CSCS=<chset>
Execution Command
AT+CSCS
Responses
+CSCS: (list of supported <chset>s)
OK
Responses
+CSCS: <chset>
OK
Responses
OK
ERROR
Responses
Set subparameters as default value:
OK
Defined values
<chest>
Examples
AT+CSCS=IRA
OK
AT+CSCS?
+CSCS:IRA
OK
SIM5320_ATC_V2.02
46
7/28/2014
3.33
AT+CIMI
Description
Execution command causes the TA to return <IMSI>, which is intended to permit the TE to identify
the individual SIM card which is attached to MT.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CIMI=?
Execution Command
AT+CIMI
Responses
OK
Responses
<IMSI>
OK
Defined values
<IMSI>
International Mobile Subscriber Identity (string, without double quotes).
Examples
AT+CIMI
460010222028133
OK
3.34
Description
Execution command causes the TA reports a list of additional capabilities.
SIM PIN
YES
References
V.25ter
Syntax
Test Command
AT+GCAP=?
Responses
OK
Execution Command
Responses
SIM5320_ATC_V2.02
47
7/28/2014
AT+GCAP
Defined values
<name>
List of additional capabilities.
+CGSM
GSM function is supported
+FCLASS
FAX function is supported
+DS
Data compression is supported
+ES
Synchronous data mode is supported.
Examples
AT+GCAP
+GCAP:+CGSM,+FCLASS,+DS
OK
SIM5320_ATC_V2.02
48
7/28/2014
4.1
AT+CFUN
Description
This command is used to select the level of functionality <fun> in the ME. Level "full
functionality" is where the highest level of power is drawn. "Minimum functionality" is where
minimum power is drawn. Level of functionality between these may also be specified by
manufacturers. When supported by manufacturers, ME resetting with <rst> parameter may be
utilized.
NOTE: AT+CFUN=6 must be used after setting AT+CFUN=7. If module in offline mode, must
execute AT+CFUN=6 or restart module to online mode.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CFUN=?
Responses
+CFUN: (list of supported <fun>s), (list of supported <rst>s)
OK
ERROR
+CME ERROR: <err>
Read Command
AT+CFUN?
Responses
+CFUN: <fun>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CFUN=<fun>[,<rst>]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<fun>
0
1
minimum functionality
full functionality, online mode
SIM5320_ATC_V2.02
49
7/28/2014
Examples
AT+CFUN?
+CFUN: 1
OK
AT+CFUN=0
OK
4.2
AT+CPIN
Enter PIN
Description
This command is used to send the ME a password which is necessary before it can be operated
(SIM PIN, SIM PUK, PH-SIM PIN, etc.). If the PIN is to be entered twice, the TA shall
automatically repeat the PIN. If no PIN request is pending, no action is taken towards MT and an
error message, +CME ERROR, is returned to TE.
If the PIN required is SIM PUK or SIM PUK2, the second pin is required. This second pin,
<newpin>, is used to replace the old pin in the SIM.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CPIN=?
Responses
OK
Read Command
AT+CPIN?
Responses
+CPIN: <code>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CPIN=
<pin>[,<newpin>]
SIM5320_ATC_V2.02
Responses
OK
ERROR
50
7/28/2014
Defined values
<pin>
String type values.
<newpin>
String type values.
<code>
Values reserved by the present document:
READY
ME is not pending for any password
SIM PIN
ME is waiting SIM PIN to be given
SIM PUK
ME is waiting SIM PUK to be given
PH-SIM PIN ME is waiting phone-to-SIM card password to be given
SIM PIN2
ME is waiting SIM PIN2 to be given
SIM PUK2
ME is waiting SIM PUK2 to be given
PH-NET PIN ME is waiting network personalization password to be given
Examples
AT+CPIN?
+CPIN: SIM PUK2
OK
4.3
AT+CICCID
Description
This command is used to Read the ICCID from SIM card
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CICCID=?
Responses
OK
Execution Command
AT+CICCID
Responses
+ICCID: <ICCID>
OK
ERROR
+CME ERROR: <err>
SIM5320_ATC_V2.02
51
7/28/2014
Defined values
<ICCID>
Integrate circuit card identity, a standard ICCID is a 20-digit serial number of the SIM card,
it presents the publish state, network code, publish area, publish date, publish manufacture and
press serial number of the SIM card.
Examples
AT+CICCID
+ICCID: 898600700907A6019125
OK
4.4
AT+CSIM
Description
This command is used to control the SIM card directly.
Compared to restricted SIM access command AT+CRSM, AT+CSIM allows the ME to take more
control over the SIM interface.
For SIMME interface please refer 3GPP TS 11.11.
NOTEThe SIM Application Toolkit functionality is not supported by AT+CSIM. Therefore the
following SIM commands can not be used: TERMINAL PROFILE, ENVELOPE,
FETCH and TEMINAL RESPONSE.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSIM=?
Responses
OK
Write Command
AT+CSIM=
<length>,<command>
Responses
+CSIM: <length>, <response>
OK
ERROR
+CME ERROR: <err>
Defined values
<length>
Interger type; length of characters that are sent to TE in <command> or <response>
<command>
Command passed from MT to SIM card.
SIM5320_ATC_V2.02
52
7/28/2014
<response>
Response to the command passed from SIM card to MT.
Examples
AT+CSIM=?
OK
4.5
AT+CRSM
Description
By using AT+CRSM instead of Generic SIM Access AT+CSIM, TE application has easier but
more limited access to the SIM database.
Write command transmits to the MT the SIM <command> and its required parameters. MT handles
internally all SIM-MT interface locking and file selection routines. As response to the command,
MT sends the actual SIM information parameters and response data. MT error result code +CME
ERROR may be returned when the command cannot be passed to the SIM, but failure in the
execution of the command in the SIM is reported in <sw1> and <sw2> parameters.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CRSM=?
Responses
OK
Write Command
AT+CRSM=<command>
[,<fileID>[,<p1>,<p2>, <p3>
[,<data>]]]
Responses
+CRSM: <sw1>,<sw2>[,<response>]
OK
ERROR
+CME ERROR: <err>
Defined values
<command>
Command passed on by the MT to the SIM:
176 READ BINARY
178 READ RECORD
192 GET RESPONSE
214 UPDATE BINARY
220 UPDATE RECORD
242 STATUS
203 RETRIEVE DATA
SIM5320_ATC_V2.02
53
7/28/2014
SIM5320_ATC_V2.02
54
7/28/2014
0x6F81
0x6F82
0x6F83
0x6F4E
0x6F4F
0x6FB5
0x6FB6
0x6FC2
0x6FC3
0x6F4D
0x6F55
0x6F58
0x6F56
0x6F57
0x6F2C
0x6F32
0x6F5B
0x6F5C
0x6F61
0x6F5D
0x6F62
0x6F06
0x6F65
0x6FC4
0x6F11
0x6F12,
0x6F13
0x6F14
0x6F15
0x6F16
0x6F17
0x6FC5
0x6FC6
0x6F9F
0x6F92
0x6F98
0x6F9B
0x4F30
0x4F22
0x4F23
0x4F24
0x4F20
0x4F52
SIM5320_ATC_V2.02
55
7/28/2014
0x4F63
CPBCCH information
0x4F64
Investigation scan
0x4F40
MExE Service table
0x4F41
Operator Root Public Key
0x4F42
Administrator Root Public Key
0x4F43
Third party Root public key
0x6FC7
Mail Box Dialing Number
0x6FC8
Extension 6
0x6FC9
Mailbox Identifier
0x6FCA
Message Waiting Indication Status
0x6FCD
Service Provider Display Information
0x6FD2
UIM_USIM_SPT_TABLE
0x6FD9
Equivalent HPLMN
0x6FCB
Call Forwarding Indicator Status
0x6FD6
GBA Bootstrapping parameters
0x6FDA
GBA NAF List
0x6FD7
MBMS Service Key
0x6FD8
MBMS User Key
0x6FCE
MMS Notification
0x6FD0
MMS Issuer connectivity parameters
0x6FD1
MMS User Preferences
0x6FD2
MMS User connectivity parameters
0x6FCF
Extension 8
0x5031
Object Directory File
0x5032
Token Information File
0x5033
Unused space Information File
EFs under Telecom DF
0x6F3A
Abbreviated Dialing Numbers
0x6F3B
Fixed dialling numbers
0x6F3C
Short messages
0x6F3D
Capability Configuration Parameters
0x6F4F
Extended CCP
0x6F40
MSISDN
0x6F42
SMS parameters
0x6F43
SMS Status
0x6F44
Last number dialled
0x6F49
Service Dialling numbers
0x6F4A
Extension 1
0x6F4B
Extension 2
0x6F4C
Extension 3
0x6F4D
Barred Dialing Numbers
0x6F4E
Extension 4
0x6F47
SMS reports
SIM5320_ATC_V2.02
56
7/28/2014
0x6F58
Comparison Method Information
0x6F54
Setup Menu elements
0x6F06
Access Rule reference
0x4F20
Image
0x4F30
Phone book reference file
0x4F22
Phone book synchronization center
0x4F23
Change counter
0x4F24
Previous Unique Identifier
<p1> <p2> <p3>
Integer type; parameters to be passed on by the Module to the SIM.
<data>
Information which shall be written to the SIM (hexadecimal character format, refer AT+CSCS).
<sw1> <sw2>
Status information from the SIM about the execution of the actual command. It is returned in both
cases, on successful or failed execution of the command.
<response>
Response data in case of a successful completion of the previously issued command.
STATUS and GET RESPONSE commands return data, which gives information about the
currently selected elementary data field. This information includes the type of file and its size.
After READ BINARY or READ RECORD commands the requested data will be returned.
<response> is empty after UPDATE BINARY or UPDATE RECORD commands.
Examples
AT+CRSM=?
OK
4.6
AT+SPIC
Description
This command is used to inquire times remain to input SIM PIN/PUK.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+SPIC=?
Responses
OK
Execution Command
AT+SPIC
Responses
+SPIC: <pin1>,<puk1>,<pin2>,<puk2>
OK
SIM5320_ATC_V2.02
57
7/28/2014
Defined values
<pin1>
Times remain to input PIN1 code.
<puk1>
Times remain to input PUK1 code.
<pin2>
Times remain to input PIN2 code.
<puk2>
Times remain to input PUK2 code.
Examples
AT+SPIC=?
OK
AT+SPIC
+SPIC: 3,10,0,10
OK
4.7
AT+CSPN
Description
This command is used to get service provider name from SIM card.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSPN=?
Responses
OK
ERROR
Read Command
AT+CSPN?
Responses
+CSPN: <spn>,<display mode>
OK
OK
+CME ERROR: <err>
Defined values
<spn>
String type; service provider name on SIM
SIM5320_ATC_V2.02
58
7/28/2014
<display mode>
0 doesnt display PLMN. Already registered on PLMN.
1 display PLMN
Examples
AT+CSPN=?
OK
AT+CSPN?
+CSPN: CMCC,0
OK
4.8
AT+CRFSIM
Description
This command is used to reload and initialize the SIM card.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRFSIM=?
Responses
OK
Execute Command
AT+CRFSIM
Responses
OK
ERROR
Examples
AT+CRFSIM=?
OK
AT+CRFSIM
OK
4.9
AT+CSQ
Description
SIM5320_ATC_V2.02
59
7/28/2014
This command is used to return received signal strength indication <rssi> and channel bit error rate
<ber> from the ME. Test command returns values supported by the TA as compound values.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSQ=?
Responses
+CSQ: (list of supported <rssi>s),(list of supported <ber>s)
OK
Execution Command
AT+CSQ
Responses
+CSQ: <rssi>,<ber>
OK
ERROR
Defined values
<rssi>
0
1
2...30
31
99
<ber>
(in percent)
0
1
2
3
4
5
6
7
99
<0.01%
0.01% --- 0.1%
0.1% --- 0.5%
0.5% --- 1.0%
1.0% --- 2.0%
2.0% --- 4.0%
4.0% --- 8.0%
>=8.0%
not known or not detectable
Examples
AT+CSQ
+CSQ: 22,0
OK
SIM5320_ATC_V2.02
60
7/28/2014
4.10
AT+AUTOCSQ
Description
This command is used to enable or disable automatic report CSQ information, when automatic
report enabled, the module reports CSQ information every five seconds or only after <rssi> or
<ber> is changed, the format of automatic report is +CSQ: <rssi>,<ber>.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+AUTOCSQ=?
Responses
+AUTOCSQ: (list of supported<auto>s),(list of supported<mod
e>s)
OK
Read Command
AT+AUTOCSQ?
Responses
+AUTOCSQ: <auto>,<mode>
OK
Write Command
AT+AUTOCSQ=<auto>[,<
mode>]
Responses
OK
ERROR
Defined values
<auto>
0 disable automatic report
1 enable automatic report
<mode>
0 CSQ automatic report every five seconds
1 CSQ automatic report only after <rssi> or <ber> is changed
NOTE: If the parameter of <mode> is omitted when executing write command, <mode> will be set
to default value.
Examples
AT+AUTOCSQ=?
+AUTOCSQ: (0-1),(0-1)
OK
AT+AUTOCSQ?
+AUTOCSQ: 1,1
OK
SIM5320_ATC_V2.02
61
7/28/2014
AT+AUTOCSQ=1,1
OK
+CSQ: 23,0 (when <rssi> or <ber> changing)
4.11
AT+CATR
Description
This command is used to configure the serial port which will be used to output URCs. We
recommend configure a destination port for receiving URC in the system initialization phase, in
particular, in the case that transmitting large amounts of data, e.g. use
TCP/UDP/FTP(S)/HTTP(S)/SSL and MT SMS related AT command.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CATR=?
Read Command
AT+CATR?
Write Command
AT+CATR=<port>[,<save>]
Responses
+CATR: (list of supported <port>s),( list of supported <save>s)
OK
Responses
+CATR: <port>
OK
Responses
OK
ERROR
Defined values
<port>
0 all ports
1 use UART port to output URCs
2 use MODEM port to output URCs
3 use ATCOM port to output URCs
4 use MUX port, corresponding to DLCI 1 of UART multiplexor protocol.
5 use MUX port, corresponding to DLCI 2 of UART multiplexor protocol.
6 use MUX port, corresponding to DLCI 3 of UART multiplexor protocol.
7 use MUX port, corresponding to DLCI 4 of UART multiplexor protocol.
NOTE:
When use MUX port to output URCs, the service of corresponding MUX port should
configure as DATA service by AT+CMUXSRVPORT command.
<save>
SIM5320_ATC_V2.02
62
7/28/2014
0
1
set temporarily
set permanently
Examples
AT+CATR=1,0
OK
AT+CATR?
+CATR: 1
OK
4.12
AT+CFBDURC
Description
This command is used to enable or disable URC reporting. The report of the following modules
will
not
be
regarded
as
URC:
TCPIP/MMS/FTP/SMTP/POP3/HTTP/FTPS/SMTPS/HTTPS/COMMON CHANNEL.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CFBDURC=?
Read Command
AT+CFBDURC?
Write Command
AT+ CFBDURC=<mode>
Responses
+CFBDURC: (0,1)
OK
Responses
+CFBDURC: <mode>
OK
Responses
OK
ERROR
Defined values
<mode>
The mode of disabling URC:
0 Not disable.
1 Disable.
Examples
AT+CFBDURC=1
OK
SIM5320_ATC_V2.02
63
7/28/2014
4.13
Description
This command is used to power off the module. Once the AT+CPOF command is executed, The
module will store user data and deactivate from network, and then shutdown.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CPOF=?
Responses
OK
Execution Command
AT+CPOF
Responses
OK
Examples
AT+CPOF
OK
4.14
Description
This command is used to reset the module.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRESET=?
Responses
OK
Execute Command
AT+CRESET
Responses
OK
Examples
AT+CRESET=?
SIM5320_ATC_V2.02
64
7/28/2014
OK
AT+CRESET
OK
4.15
AT+CACM
Description
This command is used to reset the Advice of Charge related accumulated call meter value in SIM
file EFACM.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CACM=?
Responses
OK
Read Command
AT+CACM?
Responses
+CACM: <acm>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CACM=<passwd>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
Responses
AT+CACM
OK
+CME ERROR: <err>
Defined values
<passwd>
String type, SIM PIN2.
<acm>
String type, accumulated call meter value similarly coded as <ccm> under +CAOC.
Examples
AT+CACM?
+CACM: "000000"
OK
SIM5320_ATC_V2.02
65
7/28/2014
4.16
AT+CAMM
Description
This command is used to set the Advice of Charge related accumulated call meter maximum value
in SIM file EFACMmax.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CAMM=?
Responses
OK
Read Command
AT+CAMM?
Responses
+CAMM: <acmmax>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CAMM=
<acmmax>[,<passwd>]
Execution Command
AT+CAMM
Responses
OK
ERROR
+CME ERROR: <err>
Responses
OK
+CME ERROR: <err>
Defined values
<acmmax>
String type, accumulated call meter maximum value similarly coded as <ccm> under AT+CAOC,
value zero disables ACMmax feature.
<passwd>
String type, SIM PIN2.
Examples
AT+CAMM?
+CAMM: "000000"
OK
SIM5320_ATC_V2.02
66
7/28/2014
4.17
AT+CPUC
Description
This command is used to set the parameters of Advice of Charge related price per unit and currency
table in SIM file EFPUCT..
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPUC=?
Responses
OK
Read Command
AT+CPUC?
Responses
+CPUC: [<currency>,<ppu>]
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CPUC=<currency>,
<ppu>[,<passwd>]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<currency>
String type, three-character currency code (e.g. "GBP", "DEM"), character set as specified by
command Select TE Character Set AT+CSCS.
<ppu>
String type, price per unit, dot is used as a decimal separator. (e.g. "2.66").
<passwd>
String type, SIM PIN2.
Examples
AT+CPUC?
+CPUC: GBP , 2.66
OK
SIM5320_ATC_V2.02
67
7/28/2014
4.18
AT+CCLK
Description
This command is used to manage Real Time Clock of the module.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CCLK=?
Responses
OK
Read Command
AT+CCLK?
Responses
+CCLK: <time>
OK
Write Command
AT+CCLK=<time>
Responses
OK
ERROR
Defined values
<time>
String type value; format is yy/MM/dd,hh:mm:sszz, where characters indicate year (two last
digits), month, day, hour, minutes, seconds and time zone (indicates the difference, expressed in
quarters of an hour, between the local time and GMT; three last digits are mandatory, range
-47+48). E.g. 6th of May 2008, 14:28:10 GMT+8 equals to 08/05/06,14:28:10+32.
NOTE: 1. Time zone is nonvolatile, and the factory value is invalid time zone.
2. Command +CCLK? will return time zone when time zone is valid, and if time zone is
00, command +CCLK? will return +00, but not -00.
Examples
AT+CCLK=08/11/28,12:30:33+32
OK
AT+CCLK?
+CCLK: 08/11/28,12:30:35+32
OK
AT+CCLK=08/11/26,10:15:00
OK
AT+CCLK?
+CCLK: 08/11/26,10:15:02+32
OK
SIM5320_ATC_V2.02
68
7/28/2014
4.19
AT+CMEE
Description
This command is used to disable or enable the use of result code +CME ERROR: <err> or
+CMS ERROR: <err> as an indication of an error relating to the functionality of ME; when
enabled, the format of <err> can be set to numeric or verbose string.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CMEE=?
Responses
+CMEE: (list of supported <n>s)
OK
Read Command
AT+CMEE?
Responses
+CMEE: <n>
OK
Write Command
AT+CMEE=<n>
Responses
OK
ERROR
Execution Command
AT+CMEE
Responses
Set default value:
OK
Defined values
<n>
0
1
2
Examples
AT+CMEE?
+CMEE: 2
OK
AT+CPIN="1234","1234"
+CME ERROR: incorrect password
AT+CMEE=0
OK
AT+CPIN="1234","1234"
SIM5320_ATC_V2.02
69
7/28/2014
ERROR
AT+CMEE=1
OK
AT+CPIN="1234","1234"
+CME ERROR: 16
4.20
AT+CPAS
Description
This command is used to return the activity status <pas> of the ME. It can be used to interrogate the
ME before requesting action from the phone.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CPAS=?
Responses
+CPAS: (list of supported <pas>s)
OK
Execution Command
AT+CPAS
Responses
+CPAS: <pas>
OK
Defined values
<pas>
0
3
4
Examples
RING (with incoming call)
AT+CPAS
+CPAS: 3
OK
AT+CPAS=?
+CPAS: (0,3,4)
OK
SIM5320_ATC_V2.02
70
7/28/2014
4.21
AT+SIMEI
Description
This command is used to set the modules IMEI value.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+SIMEI=?
Responses
OK
Read Command
AT+SIMEI?
Responses
+SIMEI: <imei>
OK
Write Command
AT+SIMEI=<imei>
Responses
OK
ERROR
Defined values
<imei>
The 15-digit IMEI value.
Examples
AT+SIMEI=357396012183170
OK
AT+SIMEI?
+SIMEI: 357396012183170
OK
AT+SIMEI=?
OK
4.22
AT+DSWITCH
Description
This command is used to change diagnostics port mode.The default mode of diagnostics port is
debug mode. User can switch it from debug mode to data mode or from data mode to debug
mode.Under data mode, you can send and receive PCM data.
SIM5320_ATC_V2.02
71
7/28/2014
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+DSWITCH=?
Responses
+DSWITCH: (list of supported <mode>s)
OK
Read Command
AT+DSWITCH?
Responses
+DSWITCH: <mode>
OK
Write Command
AT+DSWITCH =<mode>
Responses
OK
ERROR
Defined values
<mode>
Pamameter shows the settings of diagnostics port
0
Switch from data mode to debug mode
1
Switch from debug mode to data mode
Examples
AT+DSWITCH=?
+DSWITCH: (0-1)
OK
AT+DSWITCH?
+DSWITCH: 0
OK
AT+DSWITCH=1
OK
4.23
Description
This command is used to write the delta package to FOTA partition, during the next startup time the
module will start to update the firmware with this delta package.
SIM PIN
NO
References
Vendor
SIM5320_ATC_V2.02
72
7/28/2014
Syntax
Test Command
AT+CDELTA=?
Responses
OK
Write Command
AT+CDELTA=<delta_packa
ge>
Responses
If successful,return:
+CDELTA: 1
OK
If fail,return:
+CDELTA: 0,<err_code>
OK
Defined values
<delta_package>
File name of delta package (string type). <delta_package> must be double quoted.
Please refer to NOTE section for more detail.
<err_code>
The error code of writing delta package.
0
The delta package does not existed
1
Error occurs when reading delta package
2
Error occurs when writing delta package to FOTA partition
3
Set the flag for updateing unsuccessfully
Examples
AT+CDELTA=?
OK
AT+CDELTA=delta_1_2.mld
+CDELTA: 1
OK
NOTE:
1. Delta package can be saved in the module EFS, this command will lookup the package under current
directory. BTW you can use AT+FSCD to change the current directory.
2. After the command finished excuting, user needs to reset the module to start the updating process;
during the process the status led will blink for attention. Please refer to
SIM52xx_Delta_Package_Update_Application_note_V0.01.doc for more detail.
4.24
Description
This command is used to set RSSI delta threshold for signal strength reporting.
SIM5320_ATC_V2.02
73
7/28/2014
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSQDELTA=?
Responses
+CSQDELTA: (list of supported <delta>s)
OK
Read Command
AT+CSQDELTA?
Responses
+CSQDELTA: <delta>
OK
ERROR
Write Command
AT+CSQDELTA=<delta>
Responses
OK
ERROR
Execution Command
AT+CSQDELTA
Responses
Set default value<delta>=5:
OK
Defined values
<delta>
Range: from 0 to 5.
Examples
AT+CSQDELTA?
+CSQDELTA: 5
OK
4.25
AT+CSVM
Description
Execution command returns the voice mail number related to the subscriber.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSVM=?
SIM5320_ATC_V2.02
Responses
+CSVM: (0-1), (0-9,+), (128-255)
74
7/28/2014
OK
Read Command
AT+CSVM?
Responses
+CSVM: <valid>, <number>,<type>
OK
ERROR
Write Command
Responses
AT+CSVM=<valid>,
<number>,<type>
OK
ERROR
Defined values
<valid>
Whether voice mail number is valid:
0 Voice mail number is invalid.
1 Voice mail number is valid.
<number>
String type phone number of format specified by <type>.
<type>
Type of address octet in integer format. see also AT+CPBR <type>
Examples
AT+CSVM?
+CSVM: 1 ,"13697252277",129
OK
4.26
Indication of EONS
This module supports EONS function; the following table shows the URC related EONS.
OPL INIT
OPL DONE
Description
This indication means EF-OPL has been read successfully. Only
after this URC is reported, the AT+COPS? can query the network
name that supports EONS function.
PNN INIT
PNN DONE
Description
This indication means EF-PNN has been read successfully
OPL UPDATING
OPL UPDATING
Description
This indication means the EF-OPL is updating using OTA message.
After updating, the OPL DONE should report.
Description
PNN UPDATING
SIM5320_ATC_V2.02
75
7/28/2014
PNN UPDATING
PNN UPDATING
4.27
This module supports voice mail function; the subscriber number is configured by AT+CSVM
command, the following table shows the URC related Voice Mail.
Box Empty
+VOICEMAIL: EMPTY
Description
This indication means the voice mail box is empty
New Message
+VOICEMAIL: NEW MSG
Description
This indication means there is a new voice mail message
notification received. This is for CPHS.
Description
This indication means that there are <count> number of
mail messages that needs to be got.
voice
Defined values
< count>
Count of voice mail message that waits to be got.
Examples
+VOICEMAIL: WAITING, <count>
+VOICEMAIL: WAITING, 5
SIM5320_ATC_V2.02
76
7/28/2014
5.1
Description
This command is used to control the presentation of an unsolicited result code +CREG: <stat>
when <n>=1 and there is a change in the ME network registration status, or code +CREG:
<stat>[,<lac>,<ci>] when <n>=2 and there is a change of the network cell.
Read command returns the status of result code presentation and an integer <stat> which shows
whether the network has currently indicated the registration of the ME. Location information
elements <lac> and <ci> are returned only when <n>=2 and ME is registered in the network.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CREG=?
Responses
+CREG: (list of supported <n>s)
OK
Read Command
AT+CREG?
Responses
+CREG: <n>,<stat>[,<lac>,<ci>]
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CREG =<n>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+CREG
Responses
Set default value<n>=0:
OK
Defined values
<n>
0
1
2
SIM5320_ATC_V2.02
77
7/28/2014
<stat>[,<lac>,<ci>]
<stat>
0 not registered, ME is not currently searching a new operator to register to
1 registered, home network
2 not registered, but ME is currently searching a new operator to register to
3 registration denied
4 unknown
5 registered, roaming
<lac>
Two byte location area code in hexadecimal format(e.g.00C3 equals 193 in decimal).
<ci>
Cell ID in hexadecimal format.
GSM : Maximum is two byte
WCDMA : Maximum is four byte
Examples
AT+CREG?
+CREG: 0,1
OK
5.2
AT+COPS
Operator selection
Description
Write command forces an attempt to select and register the GSM/UMTS network operator. <mode>
is used to select whether the selection is done automatically by the ME or is forced by this
command to operator <oper> (it shall be given in format <format>). If the selected operator is not
available, no other operator shall be selected (except <mode>=4). The selected operator name
format shall apply to further read commands (AT+COPS?) also. <mode>=2 forces an attempt to
deregister from the network. The selected mode affects to all further network registration (e.g. after
<mode>=2, ME shall be unregistered until <mode>=0 or 1 is selected).
Read command returns the current mode and the currently selected operator. If no operator is
selected, <format> and <oper> are omitted.
Test command returns a list of quadruplets, each representing an operator present in the network.
Quadruplet consists of an integer indicating the availability of the operator <stat>, long and short
alphanumeric format of the name of the operator, and numeric format representation of the operator.
Any of the formats may be unavailable and should then be an empty field. The list of operators shall
be in order: home network, networks referenced in SIM, and other networks.
It is recommended (although optional) that after the operator list TA returns lists of supported
<mode>s and <format>s. These lists shall be delimited from the operator list by two commas.
When executing AT+COPS=? , any input from serial port will stop this command.
SIM PIN
References
SIM5320_ATC_V2.02
78
7/28/2014
NO
3GPP TS 27.007
Syntax
Test Command
AT+COPS=?
Responses
+COPS: [list of supported (<stat>,long alphanumeric <oper>
,short alphanumeric <oper>,numeric <oper>[,< AcT>])s]
[,,(list of supported <mode>s),(list of supported <format>s)]
OK
ERROR
+CME ERROR: <err>
Read Command
AT+COPS?
Responses
+COPS: <mode>[,<format>,<oper>[,< AcT>]]
OK
ERROR
+CME ERROR: <err>
Write Command
AT+COPS=<mode>[,<form
at>[,<oper>[,< AcT>]]]
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+COPS
Responses
OK
Defined values
<mode>
0
1
2
3
4
5
automatic
manual
force deregister
set only <format>
manual/automatic
manual,but do not modify the network selection mode(e.g GSM,WCDMA) after
module resets.
<format>
0 long format alphanumeric <oper>
1 short format alphanumeric <oper>
2 numeric <oper>
<oper>
string type, <format> indicates if the format is alphanumeric or numeric.
<stat>
0 unknown
SIM5320_ATC_V2.02
79
7/28/2014
1 available
2 current
3 forbidden
<AcT>
Access technology selected
0 GSM
1 GSM Compact
2 UTRAN
Examples
AT+COPS?
+COPS: 0,0,"China Mobile Com",0
OK
AT+COPS=?
+COPS: (2,"China Unicom","Unicom","46001",0),(3,"China Mobile Com","DGTMPT",
"46000",0),,(0,1,2,3,4,5),(0,1,2)
OK
5.3
AT+CLCK
Facility lock
Description
This command is used to lock, unlock or interrogate a ME or a network facility <fac>. Password is
normally needed to do such actions. When querying the status of a network service (<mode>=2) the
response line for 'not active' case (<status>=0) should be returned only if service is not active for
any <class>.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CLCK=?
Responses
+CLCK: (list of supported <fac>s)
OK
+CME ERROR: <err>
Write Command
AT+CLCK=<fac>,<mode>
[,<passwd>[,<class>]]
Responses
OK
When <mode>=2 and command successful:
+CLCK:<status>[,<class1>[<CR><LF>
+CLCK: <status>,<class2>
[...]]
SIM5320_ATC_V2.02
80
7/28/2014
OK
Defined values
<fac>
"PF"
lock Phone to the very First inserted SIM card or USIM card
"SC"
lock SIM card or USIM card
"AO"
Barr All Outgoing Calls
"OI"
Barr Outgoing International Calls
"OX"
Barr Outgoing International Calls except to Home Country
"AI"
Barr All Incoming Calls
"IR"
Barr Incoming Calls when roaming outside the home country
"AB"
All Barring services (only for <mode>=0)
"AG"
All outGoing barring services (only for <mode>=0)
"AC"
All inComing barring services (only for <mode>=0)
"FD"
SIM fixed dialing memory feature
"PN"
Network Personalization
"PU"
network subset Personalization
"PP"
service Provider Personalization
"PC"
Corporate Personalization
<mode>
0 unlock
1 lock
2 query status
<status>
0 not active
1 active
<passwd>
Password.
string type; shall be the same as password specified for the facility from the ME user interface or
with command Change Password +CPWD
<classX>
It is a sum of integers each representing a class of information (default 7):
1
voice (telephony)
2
data (refers to all bearer services)
4
fax (facsimile services)
8
short message service
16
data circuit sync
32
data circuit async
SIM5320_ATC_V2.02
81
7/28/2014
Examples
AT+CLCK="SC",2
+CLCK: 0
OK
5.4
AT+CPWD
Change password
Description
Write command sets a new password for the facility lock function defined by command Facility
Lock AT+CLCK.
Test command returns a list of pairs which present the available facilities and the maximum length
of their password.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPWD=?
Responses
+CPWD: (list of supported (<fac>,<pwdlength>)s)
OK
+CME ERROR: <err>
Write Command
AT+CPWD=
<fac>,<oldpwd>,<newpwd>
Responses
OK
+CME ERROR: <err>
Defined values
<fac>
Refer Facility Lock +CLCK for other values:
"SC"
SIM or USIM PIN1
"P2"
SIM or USIM PIN2
"AB" All Barring services
"AC" All inComing barring services (only for <mode>=0)
"AG" All outGoing barring services (only for <mode>=0)
"AI"
Barr All Incoming Calls
"AO" Barr All Outgoing Calls
"IR"
Barr Incoming Calls when roaming outside the home country
SIM5320_ATC_V2.02
82
7/28/2014
"OI"
Barr Outgoing International Calls
"OX" Barr Outgoing International Calls except to Home Country
<oldpwd>
String type, it shall be the same as password specified for the facility from the ME user interface or
with command Change Password AT+CPWD.
<newpwd>
String type, it is the new password; maximum length of password can be determined with
<pwdlength>.
<pwdlength>
Integer type, max length of password.
Examples
AT+CPWD=?
+CPWD: ("AB",4),("AC",4),("AG",4),("AI",4),("AO",4),("IR",4),("OI",4),("OX",4),(
"SC",8),("P2",8)
OK
5.5
Description
This command allows control of the Closed User Group supplementary service. Set command
enables the served subscriber to select a CUG index, to suppress the Outgoing Access (OA), and to
suppress the preferential CUG.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CCUG=?
Responses
OK
Read Command
AT+CCUG?
Responses
+CCUG: <n>,<index>,<info>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CCUG=
<n>[,<index>[,<info>]]
Responses
OK
ERROR
+CME ERROR: <err>
SIM5320_ATC_V2.02
83
7/28/2014
Execution Command
AT+CCUG
Responses
Set default value:
OK
Defined values
<n>
0 disable CUG temporary mode
1 enable CUG temporary mode
<index>
0...9 CUG index
10 no index (preferred CUG taken from subscriber data)
<info>
0 no information
1 suppress OA
2 suppress preferential CUG
3 suppress OA and preferential CUG
Examples
AT+CCUG?
+CCUG: 0,0,0
OK
5.6
AT+CUSD
Description
This command allows control of the Unstructured Supplementary Service Data (USSD). Both
network and mobile initiated operations are supported. Parameter <n> is used to disable/enable the
presentation of an unsolicited result code (USSD response from the network, or network initiated
operation) +CUSD: <m>[,<str>,<dcs>] to the TE. In addition, value <n>=2 is used to cancel an
ongoing USSD session.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CUSD=?
Responses
+CUSD: (list of supported <n>s)
OK
Read Command
SIM5320_ATC_V2.02
Responses
84
7/28/2014
AT+CUSD?
+CUSD: <n>
OK
Write Command
AT+CUSD=
<n>[,<str>[,<dcs>]]
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+CUSD
Responses
Set default value (<n>=0):
OK
Defined values
<n>
0 disable the result code presentation in the TA
1 enable the result code presentation in the TA
2 cancel session (not applicable to read command response)
<str>
String type USSD-string.
<dcs>
Cell Broadcast Data Coding Scheme in integer format (default 0).
<m>
0 no further user action required (network initiated USSD-Notify, or no further
information needed after mobile initiated operation)
1 further user action required (network initiated USSD-Request, or further information
needed after mobile initiated operation)
2 USSD terminated by network
4 operation not supported
5 network time out
Examples
AT+CUSD?
+CUSD: 1
OK
AT+CUSD=0
OK
5.7
AT+CAOC
Advice of charge
Description
SIM5320_ATC_V2.02
85
7/28/2014
This command refers to Advice of Charge supplementary service that enables subscriber to get
information about the cost of calls. With <mode>=0, the execute command returns the current call
meter value from the ME.
This command also includes the possibility to enable an unsolicited event reporting of the CCM
information. The unsolicited result code +CCCM: <ccm> is sent when the CCM value changes, but
not more that every 10 seconds. Deactivation of the unsolicited event reporting is made with the
same command.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CAOC=?
Responses
+CAOC: (list of supported <mode>s)
OK
Read Command
AT+CAOC?
Responses
+CAOC: <mode>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CAOC=<mode>
Responses
+CAOC: <ccm>
OK
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+ CAOC
Responses
Set default value (<mode>=1):
OK
Defined values
<mode>
0 query CCM value
1 deactivate the unsolicited reporting of CCM value
2 activate the unsolicited reporting of CCM value
<ccm>
String type, three bytes of the current call meter value in hexadecimal format (e.g. "00001E"
indicates decimal value 30), value is in home units and bytes are similarly coded as ACMmax value
in the SIM.
SIM5320_ATC_V2.02
86
7/28/2014
Examples
AT+CAOC=0
+CAOC: "000000"
OK
5.8
AT+CSSN
Description
This command refers to supplementary service related network initiated notifications. The set
command enables/disables the presentation of notification result codes from TA to TE.
When <n>=1 and a supplementary service notification is received after a mobile originated call
setup, intermediate result code +CSSI: <code1>[,<index>] is sent to TE before any other MO call
setup result codes presented in the present document. When several different <code1>s are received
from the network, each of them shall have its own +CSSI result code.
When <m>=1 and a supplementary service notification is received during a mobile terminated call
setup or during a call, or when a forward check supplementary service notification is received,
unsolicited result code +CSSU: <code2>[,<index>[,<number>,<type>[,<subaddr>,<satype>]]] is
sent to TE. In case of MT call setup, result code is sent after every +CLIP result code (refer
command "Calling line identification presentation +CLIP") and when several different <code2>s
are received from the network, each of them shall have its own +CSSU result code.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSSN=?
Responses
+CSSN: (list of supported <n>s),(list of supported <m>s)
OK
Read Command
AT+CSSN?
Responses
+CSSN: <n>,<m>
OK
Write Command
AT+CSSN=<n>[,<m>]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<n>
Parameter sets/shows the +CSSI result code presentation status in the TA:
SIM5320_ATC_V2.02
87
7/28/2014
0
1
disable
enable
<m>
Parameter sets/shows the +CSSU result code presentation status in the TA:
0 disable
1 enable
<code1>
0 unconditional call forwarding is active
1 some of the conditional call forwarding are active
2 call has been forwarded
3 call is waiting
5 outgoing calls are barred
<index>
Refer "Closed user group +CCUG".
<code2>
0 this is a forwarded call (MT call setup)
2 call has been put on hold (during a voice call)
3 call has been retrieved (during a voice call)
5 call on hold has been released (this is not a SS notification) (during a voice call)
<number>
String type phone number of format specified by <type>.
<type>
Type of address octet in integer format; default 145 when dialing string includes international
access code character "+", otherwise 129.
<subaddr>
String type sub address of format specified by <satype>.
<satype>
Type of sub address octet in integer format, default 128.
Examples
AT+CSSN=1,1
OK
AT+CSSN?
+CSSN: 1,1
OK
5.9
Description
This command is used to edit the SIM preferred list of networks.
SIM5320_ATC_V2.02
88
7/28/2014
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPOL=?
Responses
+CPOL: (list of supported <index>s), (list of supported <format>s)
OK
Read Command
AT+CPOL?
Responses
[+CPOL:<index1>,<format>,<oper1>[<GSM_AcT1>,<GSM_Com
pact_AcT1>,<UTRAN_AcT1> ][<CR><LF>
+CPOL:
<index2>,<format>,<oper2>[,<GSM_AcT1>,<GSM_Compact_Ac
T1>,<UTRAN_AcT1> ]
[...]]]
OK
Write Command
AT+CPOL=<index>
[,<format>[,<oper>][,<GSM
_AcT1>,<GSM_Compact_A
cT1>,<UTRAN_AcT1> ]]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
Integer type, the order number of operator in the SIM preferred operator list.
If only input <index>, command will delete the value indicate by <index>.
<format>
0 long format alphanumeric <oper>
1 short format alphanumeric <oper>
2 numeric <oper>
<operX>
String type.
<GSM_AcTn>
GSM access technology:
0 access technology not selected
1 access technology selected
<GSM_Compact_AcTn>
GSM compact access technology:
0 access technology not selected
1 access technology selected
<UTRA_AcTn>
SIM5320_ATC_V2.02
89
7/28/2014
Examples
AT+CPOL?
+CPOL: 1,2,"46001",0,0,1
OK
AT+CPOL=?
+CPOL: (1-8),(0-2)
OK
5.10
AT+COPN
Description
This command is used to return the list of operator names from the ME. Each operator code
<numericX> that has an alphanumeric equivalent <alphaX> in the ME memory shall be returned.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+COPN=?
Responses
OK
Write Command
AT+COPN
Responses
+COPN:<numeric1>,<alpha1>[<CR><LF>
+COPN: <numeric2>,<alpha2>
[...]]
OK
ERROR
+CME ERROR: <err>
Defined values
<numericX>
String type, operator in numeric format (see AT+COPS).
<alphaX>
String type, operator in long alphanumeric format (see AT+COPS).
Examples
SIM5320_ATC_V2.02
90
7/28/2014
AT+COPN
+COPN: "46000","China Mobile Com"
+COPN: "46001"," China Unicom"
OK
5.11
Description
This command is used to select or set the state of the mode preference.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CNMP=?
Responses
+CNMP: (list of supported <mode>s)
OK
Read Command
AT+CNMP?
Responses
+CNMP: <mode>
OK
Write Command
AT+CNMP=<mode>
Responses
OK
ERROR
Defined values
<mode>
2
13
14
Automatic
GSM Only
WCDMA Only
Examples
AT+CNMP=13
OK
AT+CNMP?
+CNMP: 2
OK
SIM5320_ATC_V2.02
91
7/28/2014
5.12
Description
This command is used to select or set the state of the band preference.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CNBP?
Responses
+CNBP: <mode>
OK
Write Command
AT+CNBP=<mode>
Responses
OK
ERROR
Defined values
<mode>
64bit number, the value is 1 << <pos>, then or by bit.
<pos>
Value:
0xFFFFFFFF7FFFFFFF
Any (any value)
7
GSM_DCS_1800
8
GSM_EGSM_900
9
GSM_PGSM_900
16
GSM_450
17
GSM_480
18
GSM_750
19
GSM_850
20
GSM_RGSM_900
21
GSM_PCS_1900
22
WCDMA_IMT_2000
23
WCDMA_PCS_1900
24
WCDMA_III_1700
25
WCDMA_IV_1700
26
WCDMA_850
27
WCDMA_800
48
WCDMA_VII_2600
49
WCDMA_VIII_900
50
WCDMA_IX_1700
SIM5320_ATC_V2.02
92
7/28/2014
Examples
AT+CNBP=0x000700000FFF0380
OK
AT+CNBP?
+CNBP: 0xFFFFFFFF3FFFFFFF
OK
5.13
Description
This command is used to reset the state of acquisitions order preference.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CNAOP=?
Responses
+CNAOP: (list of supported <mode>s)
OK
Read Command
AT+CNAOP?
Responses
+CNAOP: <mode>
OK
Write Command
AT+CNAOP=<mode>
Responses
OK
ERROR
Defined values
<mode>
0 Automatic
1 GSM,WCDMA
2 WCDMA,GSM
Examples
AT+CNAOP=1
OK
AT+CNAOP?
+CNAOP: 2
OK
SIM5320_ATC_V2.02
93
7/28/2014
5.14
Description
This command is used to reset the state of the service domain preference.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CNSDP=?
Responses
+CNSDP: (list of supported <mode>s)
OK
Read Command
AT+CNSDP?
Responses
+CNSDP: <mode>
OK
Write Command
AT+CNSDP=<mode>
Responses
OK
ERROR
Defined values
<mode>
0
1
2
CS Only
PS Only
CS + PS
Examples
AT+CNSDP=2
OK
AT+CNSDP?
+CNSDP: 0
OK
5.15
AT+CPSI
Description
This command is used to return the UE system information.
SIM PIN
References
SIM5320_ATC_V2.02
94
7/28/2014
NO
Vendor
Syntax
Test Command
AT+CPSI=?
Responses
+CPSI: (scope of <time>)
OK
Read Command
AT+CPSI?
Responses
If camping on a 2G cell:
+CPSI:<System Mode>,<Operation Mode>,<MCC>- <MNC>
<LAC>,<Cell ID>,<Absolute RF Ch Num>, < RxLev >,
<Track LO Adjust>,<C1-C2>
OK
If camping on a 3G cell:
+CPSI: <System Mode>, <Operation Mode>, <MCC><MNC>,<LAC>,<Cell ID>,<Frequency Band>, <PSC>, <Freq>,
<SSC>,<EC/IO>,< RSCP >,<Qual>,<RxLev>,<TXPWR>
OK
ERROR
Write Command
AT+CPSI=<time>
Responses
OK
ERROR
Defined values
<time>
The range is 0-255, unit is second, module will reports +CPSI URC every <time> seconds
automatically when the value of <time> above 0, value equal 0 indicates stop reporting, the format
of automatic report is same with response of AT+CPSI? command.
<System Mode>
System mode, values: NO SERVICE, GSM or WCDMA.
<Operation Mode>
UE operation mode, values: Online,Offline,Factory Test Mode,Reset, Low Power Mode.
<MCC>
Mobile Country Code (first part of the PLMN code)
<MNC>
Mobile Network Code (second part of the PLMN code)
<LAC>
Location Area Code (hexadecimal digits)
<Cell ID>
Service-cell ID.
<Absolute RF Ch Num>
SIM5320_ATC_V2.02
95
7/28/2014
Examples
AT+CPSI?
+CPSI: GSM,Online,460-00 0x182d,12401,27 EGSM 900,-64,2110,42-42
OK
AT+CPSI=?
+CPSI: WCDMA,Online,001-01,0xED2E ,WCDMA IMT 2000,0,9,10688,0,6,62,43,45,500
OK
AT+CPSI=?
+CPSI: (0-255)
OK
5.16
AT+CNSMOD
Description
This command is used to return the current network system mode.
SIM5320_ATC_V2.02
96
7/28/2014
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CNSMOD=?
Responses
+CNSMOD: (list of supported <n>s)
OK
Read Command
AT+CNSMOD?
Responses
+CNSMOD: <n>,<stat>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CNSMOD=<n>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<n>
0 disable auto report the network system mode information
1
Examples
AT+CNSMOD?
+CNSMOD: 0,2
OK
SIM5320_ATC_V2.02
97
7/28/2014
5.17
AT+CTZU
Description
This command is used to enable or disable automatic time and time zone update via NITZ.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CTZU=?
Responses
+CTZU: (list of supported <onoff>s)
OK
Read Command
AT+CTZU?
Responses
+CTZU: <onoff>
OK
Write Command
AT+CTZU=<onoff>
Responses
OK
ERROR
Defined values
<onoff>
Integer type value indicating:
0 Disable automatic time zone update via NITZ (default).
1 Enable automatic time zone update via NITZ.
NOTE: 1. The value of <onoff> is nonvolatile, and factory value is 0.
2. For automatic time and time zone update is enabled (+CTZU=1):
If time zone is only received from network and it doesnt equal to local time zone
(AT+CCLK), time zone is updated automatically, and real time clock is updated based
on local time and the difference between time zone from network and local time zone
(Local time zone must be valid).
If Universal Time and time zone are received from network, both time zone and real
time clock is updated automatically, and real time clock is based on Universal Time and
time zone from network.
Examples
AT+CTZU?
+CTZU: 0
OK
AT+CTZU=1
SIM5320_ATC_V2.02
98
7/28/2014
OK
5.18
AT+CTZR
Description
This command is used to enable or disable the time zone change event reporting. If the reporting is
enabled the MT returns the unsolicited result code +CTZV: <tz>[,<time>][,<dst>]whenever the
time zone is changed.
NOTE: The time zone reporting is not affected by the Automatic Time and Time Zone command
AT+CTZU.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CTZR=?
Responses
+CTZR: (list of supported <onoff>s)
OK
Read Command
AT+CTZR?
Responses
+CTZR: <onoff>
OK
Write Command
AT+CTZR=<onoff>
Responses
OK
ERROR
Execution Command
AT+CTZR
Responses
Set default value:
OK
Defined values
<onoff>
Integer type value indicating:
0 Disable time zone change event reporting (default).
1 Enable time zone change event reporting.
+CTZV: <tz>[,<time>][,<dst>]
Unsolicited result code when time zone received from network doesnt equal to local time zone, and
if the informations from network dont include date and time, then only time zone will be reported,
and if network daylight saving time is present, it is also reported. For example:
+CTZV: 32 (Only report time zone)
+CTZV: 32,1 (Report time zone and network daylight saving time)
+CTZV: 32,08/12/09,17:00:00 (Report time and time zone)
SIM5320_ATC_V2.02
99
7/28/2014
+CTZV: 32,08/12/09,17:00:00,1
For more detailed informations about time and time zone, please refer 3GPP TS 24.008.
<tz>
Local time zone received from network.
<time> Universal time received from network, and the format is yy/MM/dd,hh:mm:ss,
where characters indicate year (two last digits), month, day, hour, minutes and
seconds.
<dst> Network daylight saving time, and if it is received from network, it indicates the
value that has been used to adjust the local time zone. The values as following:
0 No adjustment for Daylight Saving Time.
1 +1 hour adjustment for Daylight Saving Time.
2 +2 hours adjustment for Daylight Saving Time.
NOTE: Herein, <time> is Universal Time or NITZ time, but not local time.
Examples
AT+CTZR?
+CTZR: 0
OK
AT+CTZR=1
OK
5.19
AT+CCINFO
Description
This command is used to inquire serving cell and neighbors cell system information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCINFO=?
Responses
OK
Execution Command
AT+CCINFO
Responses
For GSM:
When ME in idle mode:
+CCINFO:[<SCELL>],ARFCN:<arfcn>,MCC:<mcc>,MNC:<mnc
>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,C1:<c1>,C2:<
c2>,TA:<TA>,TXPWR:<TXPWR><CR><LF>
<CR><LF>+CCINFO:[<NCELLn>],ARFCN:<arfcn>,MCC:<mcc
>,MNC:<mnc>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,
C1:<c1>,C2:<c2> <CR><LF>
SIM5320_ATC_V2.02
100
7/28/2014
[]
When ME in dedicated mode:
<CR><LF>+CCINFO:[<SCELL>],ARFCN:<arfcn>,MCC:<mcc>,
MNC:<mnc>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>db
m,C1:<c1>,C2:<c2>,TA:<TA>,TXPWR:<TXPWR><CR><LF>
<CR><LF>+CCINFO:[<NCelln>],ARFCN:<arfcn>,BSIC:<bsic>,
RXLev:<rxlev> <CR><LF>
[]
For WCDMA:
+CCINFO:[<SCELL>],UARFCN:<uarfcn>,MCC:<mcc>,MNC:<
mnc>,LAC:<lac>,ID:<id>,PSC:<psc>, SSC:<ssc>, RSCP:<rscp>,
ECIO:<ecio>,RXLev:<rxlev>dbm,TXPWR:<TXPWR><CR><LF>
<CR><LF>+CCINFO:[<NCelln>],UARFCN:<uarfcn>,PSC:<psc>,
SSC:<ssc>,RSCP:<rscp>,ECIO:<ecio>,RXLev:<rxlev>dbm
<CR><LF>
[]
OK
OK
Defined values
<SCELL>
indicate serving cell
<NCELLn>
available neighbour cell index
<arfcn>
assigned radio channel
<uarfcn>
UMTS assigned radio channel
<mcc>
mobile country code
<mnc>
mobile network code
<lac>
localization area code
<id>
cell identifier
<bsic>
base station identification code
<psc>
primary scrambling code
<rscp>
Received Signal Code Power
SIM5320_ATC_V2.02
101
7/28/2014
<ecio>
chip energy per total wideband power
<ssc>
secondary scrambling code
<rxlev>
received signal strength in dBm
<TA>
timing advance
<c1>
Coefficient for base station selection
<c2>
Coefficient for Cell re-selection
<TXPWR>
UE TX power in dBm. If no TX, the value is 0.
Examples
AT+CCINFO (idle mode)
+CCINFO:[SCELL],ARFCN:11,MCC:460,MNC:00,LAC:6360,ID:12402,BSIC:52,RXLev:-68dbm,
C1:35,C2:35,TA:0,TXPWR:0
+CCINFO:[NCell1],ARFCN:29,MCC:460,MNC:00,LAC:6360,ID:12625,BSIC:55,RXLev:-81dbm,
C1:21,C2:21
+CCINFO:[NCell2],ARFCN:28,MCC:460,MNC:00,LAC:6360,ID:8466,BSIC:49,RXLev:-81dbm,C
1:21,C2:21
+CCINFO:[NCell3],ARFCN:25,MCC:460,MNC:00,LAC:6360,ID:8498,BSIC:40,RXLev:-81dbm,C
1:21,C2:21
+CCINFO:[NCell4],ARFCN:2,MCC:460,MNC:00,LAC:6362,ID:24644,BSIC:48,RXLev:-87dbm,C
1:15,C2:15
+CCINFO:[NCell5],ARFCN:14,MCC:460,MNC:00,LAC:6360,ID:12403,BSIC:54,RXLev:-86dbm,
C1:16,C2:16
+CCINFO:[NCell6],ARFCN:13,MCC:460,MNC:00,LAC:6362,ID:24705,BSIC:51,RXLev:-89dbm,
C1:13,C2:13
OK
AT+CCINFO (dedicated mode)
+CCINFO:[SCELL],ARFCN:11,MCC:460,MNC:00,LAC:6360,ID:12402,BSIC:52,RXLev:-61dbm,
C1:42,C2:42,TXPWR:29
SIM5320_ATC_V2.02
102
7/28/2014
+CCINFO:[NCell1],ARFCN:25,BSIC:40,RXLev:-81dbm
+CCINFO:[NCell2],ARFCN:28,BSIC:49,RXLev:-82dbm
+CCINFO:[NCell3],ARFCN:29,BSIC:55,RXLev:-82dbm
+CCINFO:[NCell4],ARFCN:14,BSIC:54,RXLev:-87dbm
+CCINFO:[NCell5],ARFCN:2,BSIC:48,RXLev:-89dbm
+CCINFO:[NCell6],ARFCN:13,BSIC:51,RXLev:-89dbm
OK
5.20
AT+CSCHN
Description
This command is used to inquire serving cell channel information in GSM.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSCHN=?
Responses
OK
Execution Command
AT+CSCHN
Responses
When during a call:
+CSCHN:ARFCN:<arfcn>,BISC:<bsic>,HSN:<hsn>,MAIO:<mai
o>, TN:<tn>,HF:<hf>,TSC:<tsc>,TCH:<tch>
OK
Defined values
<arfcn>
assigned radio channel
<bsic>
base station identification code
<hsn>
HSN
<maio>
SIM5320_ATC_V2.02
103
7/28/2014
MAIO
<tn>
timeslot number
<hf>
hopping flag
<tsc>
TSC
<tch>
channel type
Examples
AT+CSCHN
+CSCHN: ARFCN:11, BISC: 52, HSN: 41, MAIO: 6, TN: 1, HF: 1, TSC: 4, TCH: 3
OK
5.21
Description
This command is used to inquire serving cell radio parameter in GSM.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSRP=?
Responses
OK
Execution Command
AT+CSRP
Responses
When during a call:
+CSRP:ARFCN:<arfcn>,RXLevFull:<rxlevfull>,RXLevSub:
<rxlevsub>,RXQualFull:<rxqualfull>,RXQualSub:<rxqualsub>,
PWRC:<pwrc>,DTX:<dtx>,RLT:<rlt>
OK
Defined values
<arfcn>
assigned radio channel
<rxlevfull>
received full signal strength in dBm
<rxlevsub>
SIM5320_ATC_V2.02
104
7/28/2014
Examples
AT+CSRP
+CSRP:ARFCN:11,RXLevFull:-88dbm,RXLevSub:-89dbm,RXQualFull:7,RXQualSub:7,PWRC:1,
DTX:0,RLT:32
OK
5.22
AT+CRUS
Description
This command is used to return the mobile phone system information in WCDMA.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRUS=?
Responses
OK
Execution Command
AT+CRUS
Responses
+CRUS: Active SET, <ActiveSET Cells Num>[, <ActiveSET
Cell1 PSC>, <ActiveSET Cell1 Freq>, <ActiveSET Cell1 SSC> ,
<ActiveSET Cell1 Sttd> , <ActiveSET Cell1 TotEcio> ,
<ActiveSET Cell1 Ecio> , <ActiveSET Cell1 Rscp> ,
<UTMS_SETS Cell TPC>, <UTMS_SETS Cell SecCpichOvsf>,
<ActiveSET Cell1 WinSize> []]
+CRUS: Sync Neighbor SET, <SyncSET Cells Num>[, <SyncSET
Cell1 PSC>, <SyncSET Cell1 Freq>, < SyncSET Cell1 SSC> , <
SyncSET Cell1 Sttd> , < SyncSET Cell1 TotEcio> , < SyncSET
Cell1 Ecio> , < SyncSET Cell1 Rscp> , < SyncSET Cell1
SIM5320_ATC_V2.02
105
7/28/2014
WinSize> []]
+CRUS: Async Neighbor SET, <AsyncSET Cells Num>[, <
AsyncSET Cell1 PSC>, < AsyncSET Cell1 Freq>, < AsyncSET
Cell1 SSC> , < AsyncSET Cell1 Sttd> , < AsyncSET Cell1
TotEcio> , < AsyncSET Cell1 Ecio> , < AsyncSET Cell1 Rscp> , <
AsyncSET Cell1 WinSize> []]
OK
Defined values
<UTMS_SETS Cells Num>
cells number
<UTMS_SETS Cell 1-n PSC>
primary synchronization code of the cell
<UTMS_SETS Cell 1-n Freq>
downlink frequency of the cell
<UTMS_SETS Cell 1-n SSC>
secondary synchronization code
<UTMS_SETS Cell 1-n Sttd>
if the CPICH of this cell uses STTD
<UTMS_SETS Cell 1-n TotEcio>
the total Ec/Io in the best paths found in a sweep
<UTMS_SETS Cell 1-n 1 Ecio>
Ec/Io
<UTMS_SETS Cell 1-n Rscp>
CPICH RSCP
<UTMS_SETS Cell 1-n TPC>
Forward power control combination
<UTMS_SETS Cell 1-n SecCpichOvsf>
OVSF code of the secondary CPICH
<UTMS_SETS Cell 1-n WinSize>
search window size for this cell
UTMS_SETS contains:
ActiveSET
active set
SyncSET
neighbor (monitored) set for neighbors whose timing is known
AsyncSET
neighbor (monitored) set for neighbors whose timing is unknown
Examples
AT+CRUS
+CRUS: Active SET,1,2,10663,0,0,16,16,101,0,0,1536
+CRUS: Sync Neighbor SET,2,42,10663,0,0,34,33,109,1536,35,10663,0,0,26,26,106,1536
+CRUS: Async Neighbor SET,10,11,10663,0,0,0,49,121,0,6,10663,0,0,0,49,121,0,28, 10663, 0, 0,0,
49,121,0,247,10663,0,0,0,49,121,0,193,10663,0,0,0,49,121,0,493,10663,0,0,0,49,121,0,485,10663,
SIM5320_ATC_V2.02
106
7/28/2014
0,0,0,49,121,0,258,10663,0,0,0,49,121,0,109,10663,0,0,0,49,121,0,226,10663,0,0,38,49,121,1536
OK
5.23
Description
This command is used to manage the PLMN list allowed by customer. After setting the plmnwlist, The
setting will be take effect on the next power up time.
SIM PIN
NO
References
Vendor
Syntax
Read Command
AT+CPLMNWLIST?
Responses
+CPLMNWLIST: <plmnwlist>,<type>
OK
Write Command
AT+CPLMNWLIST=<plmn
wlist>[,<type>]
Responses
OK
ERROR
Defined values
<plmnwlist>
The list of PLMN separated by semicolon. The maximum count of the items in the list is 20.
Empty list represents no filter. If the CPASSMGR has set password for this command, the password
must be verified before operating this command.
<type>
The type of PLMN filter:
1 filter by HPLMN.
2 filter by PLMN of the wireless network.
3 filter by both HPLMN and PLMN of the wireless network.
Examples
AT+CPLMNWLIST= 46000;46001
OK
AT+CPLMNWLIST=
OK
AT+CPLMNWLIST?
+CPLMNWLIST: 46000;46001, 1
OK
SIM5320_ATC_V2.02
107
7/28/2014
5.24
AT+CPASSMGR
Manage password
Description
This command is used to manage password for some AT commands.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CPASSMGR=<module
>,"<password>"[,
<new_password>]
Responses
OK
ERROR
Defined values
<module>
The module for the password operation:
"cplmnwlist" AT+CPLMNWLIST command
"portmode"
Used for locking DIAG port. No AT command affected.
"imei"
AT+SIMEI command
<password>
The password for the module. The maximum length is 8.
<new_password>
The new password for the module. The maximum length is 8.
Examples
AT+CPASSMGR=cplmnwlist, , 12345678
OK
AT+CPASSMGR=cplmnwlist, 12345678, 111111
OK
AT+CPASSMGR=cplmnwlist,111111
OK
AT+CPASSMGR=cplmnwlist,111111,
OK
5.25
AT+CNSVSQ
Description
SIM5320_ATC_V2.02
108
7/28/2014
This command is used to perform a quick survey through channels belonging to the band selected,
starting from channel <s> to channel <e>. If parameters are omitted, a full band scan is performed.
After issuing the command, the information for every received BCCH (BCCH-Carrier and non
BCCH-Carrier) is reported in the format of string.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CNSVSQ=<s>,<e>
Execution Command
AT+CNSVSQ
Responses
Network survey started...
For BCCH-Carrier:
[arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>]
[]
For non BCCH-Carrier:
[arfch: <arfcn_value>,dBm: <dBm_value>]
[]
Network survey end
OK
ERROR
Responses
Network survey started...
For BCCH-Carrier:
[arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>]
[]
For non BCCH-Carrier:
[arfch: <arfcn_value>,dBm: <dBm_value>]
[]
Network survey end
OK
Defined values
<s>
starting channel.
<e>
ending channel.
<arfcn_value>
carrier assigned radio channel (BCCH Broadcast Control Channel).
<bsic_value>
base station identification code.
<dBm_value>
the value of dBm.
SIM5320_ATC_V2.02
109
7/28/2014
Examples
AT+CNSVSQ
Network survey started
For BCCH-Carrier:
arfcn: 16,bsic: 45,dBm: -75
5.26
AT+CNSVS
Description
This command is used to perform a quick survey through channels belonging to the band selected ,
starting from channel <s> to channel <e>. If parameters are omitted, a full band scan is performed.
After issuing the command, the information for every received BCCH(BCCH-Carrier and non
BCCH-Carrier) is reported in the format of string.
SIM PIN
NO
References
Vendor
Syntax
Read Command
AT+CNSVS?
Write Command
AT+CNSVS=<s>,<e>
SIM5320_ATC_V2.02
Responses
+CNSVS: <count>
OK
Responses
Network survey started
For BCCH-Carrier:
[arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>,
<[mcc: <mcc_value>,mnc: <mnc_value>,lac: <lac_value>,cellId:
<cellId>,cellStatus: <cellStasus>] or [SIB3 not available]>,
<[numArfcn: <num_afrcn>, arfcn: <list of arfcns>] or [cell
allocation empty]>,<[numChannels: <num_channel>,array: <list of
channels>] or [SIB2 not available]>]
[]
For non BCCH-Carrier:
[arfch: <arfcn_value>,dBm: <dBm_value>]
[]
110
7/28/2014
If BCCH-Carrier:
arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>,
<[mcc: <mcc_value>,mnc: <mnc_value>,lac: <lac_value>,cellId:
<cellId>,cellStatus: <cellStasus>] or [SIB3 not available]>,
<[numArfcn: <num_afrcn>, arfcn: <list of arfcns>] or [cell
allocation empty]>,<[numChannels: <num_channel>,array: <list of
channels>] or [SIB2 not available]>
OK
If non BCCH-Carrier:
arfch: <arfcn_value>,dBm: <dBm_value>
OK
+CNSVS: NOT IN GSM
OK
+CNSVS: arfcn index invalid
OK
Execution Command
AT+CNSVS
ERROR
Responses
Network survey started
For BCCH-Carrier:
[arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>,
<[mcc: <mcc_value>,mnc: <mnc_value>,lac: <lac_value>,cellId:
<cellId>,cellStatus: <cellStasus>] or [SIB3 not available]>,
<[numArfcn: <num_afrcn>, arfcn: <list of arfcns>] or [cell
allocation empty]>,<[numChannels: <num_channel>,array: <list of
channels>] or [SIB2 not available]>]
[]
For non BCCH-Carrier:
[arfch: <arfcn_value>,dBm: <dBm_value>]
[]
Network survey end
OK
Defined values
<count>
the count of arfcn.
<s>
starting channel.
<e>
ending channel.
SIM5320_ATC_V2.02
111
7/28/2014
<arfcn_value>
carrier assigned radio channel (BCCH Broadcast Control Channel).
<bsic_value>
base station identification code.
<dBm_value>
the value of dBm.
<mcc_value>
mobile country code.
<mnc_value>
mobile network code.
<lac_value>
localization area code.
<cellId>
cell identifier.
<cellStatus>
cell status, this parameter indicates the following statuses:
- CELL_SUITABLE indicates the C0 is a suitable cell.
- CELL_LOW_PRIORITY indicates the cell is low priority based on the system information
received.
- CELL_FORBIDDEN indicates the cell is forbidden.
- CELL_BARRED indicates the cell is barred based on the system information received.
- CELL_LOW_LEVEL indicates the cell RXLEV is low.
- CELL_OTHER indicates none of the above, e.g. exelusion timer running, no BCCH available
etc.
<num_arfcn>
number of valid channels
<list of arfcns>
list of arfcns BCCH allocation and the total number is <num_arfcn>
<num_channel>
number of valid channels
<list of channels>
list of channels, and the total number is <num_channels>
<arfcn_index>
the index of arfcn, and the minimum value is zero
Examples
AT+CNSVS
Network survey started...
For BCCH-Carrier:
arfcn: 600,bsic: 54,dBm: -98,mcc: 460,mnc: 0,lac: 6180,cellId: 49443,cellStatus:
CELL_LOW_LEVEL, numArfcn: 6,arfcn: 518 521 542 547 574 600,numChannels: 25,array: 6 9 11
12 14 19 20 21 22 23 24 25 27 28 36 516 525 528 552 556 564 568 572 584 600
SIM5320_ATC_V2.02
112
7/28/2014
5.27
AT+CNSVN
Description
This command is used to perform a quick survey through channels belonging to the band selected,
starting from channel <s> to channel <e>. If parameters are omitted, a full band scan is performed.
After issuing the command, the information for every received BCCH(BCCH-Carrier and non
BCCH-Carrier) is reported in the format of string.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CNSVN=<s>,<e>
Responses
Network survey started
If BCCH-Carrier:
[<arfcn_value>,<bsic_value>,<dBm_value>,<[<mcc_value>,
<mnc_value>,<lac_value>,<cellId>,<cellStasus>] or [SIB3 not
available]>, <[<num_afrcn>,<list of arfcns>] or [cell allocation
empty]>,<[<num_channel>,<list of channels>] or [SIB2 not
available]>]
[]
If non BCCH-Carrier:
[<arfcn_value>,<dBm_value>]
[]
Network survey end
OK
AT+CNSVN=<arfcn_index>
If BCCH-Carrier:
<arfcn_value>,<bsic_value>,<dBm_value>,<[<mcc_value>,
<mnc_value>,<lac_value>,<cellId>,<cellStasus>] or [SIB3 not
available]>, <[<num_afrcn>,<list of arfcns>] or [cell allocation
empty]>,<[<num_channel>,<list of channels>] or [SIB2 not
available]>
OK
If non BCCH-Carrier:
SIM5320_ATC_V2.02
113
7/28/2014
<arfcn_value>,<dBm_value>
OK
+CNSVN: NOT IN GSM
OK
+CNSVN: arfcn index invalid
OK
Execution Command
AT+CNSVN
ERROR
Responses
Network survey started
If BCCH-Carrier:
[<arfcn_value>,<bsic_value>,<dBm_value>,<[<mcc_value>,
<mnc_value>,<lac_value>,<cellId>,<cellStasus>] or [SIB3 not
available]>, <[<num_afrcn>,<list of arfcns>] or [cell allocation
empty]>,<[<num_channel>,<list of channels>] or [SIB2 not
available]>]
[]
If non BCCH-Carrier:
[<arfcn_value>,<dBm_value>]
[]
Network survey end
OK
Defined values
<count>
the count of arfcn.
<s>
starting channel.
<e>
ending channel.
<arfcn_value>
carrier assigned radio channel (BCCH Broadcast Control Channel).
<bsic_value>
base station identification code.
<dBm_value>
the value of dBm.
<mcc_value>
mobile country code.
<mnc_value>
mobile network code.
<lac_value>
localization area code.
SIM5320_ATC_V2.02
114
7/28/2014
<cellId>
cell identifier.
<cellStatus>
cell status, this parameter indicates the following statuses:
0 Indicates the C0 is a suitable cell.
1 Indicates the cell is low priority based on the system information received.
2 Indicates the cell is forbidden.
3 Indicates the cell is barred based on the system information received.
4 Indicates the cell RXLEV is low.
5 Indicates none of the above, e.g. exelusion timer running, no BCCH available etc
<num_arfcn>
number of valid channels.
<list of arfcns>
list arfcns BCCH allocation, and the total number is <num_arfcn>.
<num_channel>
number of valid channels.
<list of channels>
list channels, and the total number is <num_channels>.
<arfcn_index>
the index of arfcn, and the minimum value is zero.
Examples
AT+CNSVN
Network survey started
16,45,-82,460,0,6180,42545,0,5, 16 45 49 71 81,11, 11 12 14 16 19 20 21 22 24 26 27
694, -94
5.28
AT+CNSVUS
Description
This command is used to perform a quick survey of user defined channels. It scans the given
channels. The result format is in string format.
SIM PIN
NO
References
Vendor
Syntax
SIM5320_ATC_V2.02
115
7/28/2014
Write Command
AT+CNSVUS=<ch1>,[<ch2
>,[[<ch10>]]]
Responses
Network survey started
For BCCH-Carrier:
[arfcn: <arfcn_value>,bsic: <bsic_value>,dBm: <dBm_value>,
<[mcc: <mcc_value>,mnc: <mnc_value>,lac: <lac_value>,cellId:
<cellId>,cellStatus: <cellStasus>] or [SIB3 not available]>,
<[numArfcn: <num_afrcn>, arfcn: <list of arfcns>] or [cell
allocation empty]>,<[numChannels: <num_channel>,array: <list of
channels>] or [SIB2 not available]>]
[]
For non BCCH-Carrier:
[arfch: <arfcn_value>,dBm: <dBm_value>]
[]
Network survey end
OK
+CNSVN: NOT IN GSM
OK
ERROR
Defined values
<chN>
channel number(arfcn). It must be in an increasing order, and the range of N is from 1 to 10.
<arfcn_value>
carrier assigned radio channel (BCCH Broadcast Control Channel).
<bsic_value>
base station identification code.
<dBm_value>
the value of dBm.
<mcc_value>
mobile country code.
<mnc_value>
mobile network code.
<lac_value>
localization area code.
<cellId>
cell identifier.
<cellStatus>
cell status, this parameter indicates the following statuses:
- CELL_SUITABLE indicates the C0 is a suitable cell.
- CELL_LOW_PRIORITY indicates the cell is low priority based on the system information
received.
- CELL_FORBIDDEN indicates the cell is forbidden.
SIM5320_ATC_V2.02
116
7/28/2014
- CELL_BARRED indicates the cell is barred based on the system information received.
- CELL_LOW_LEVEL indicates the cell RXLEV is low.
- CELL_OTHER indicates none of the above, e.g. exelusion timer running, no BCCH
available etc.
<num_arfcn>
number of valid channels.
<list of arfcns>
list arfcns BCCH allocation, and the total number is <num_arfcn>.
<num_channel>
number of valid channels.
<list of channels>
list channels, and the total number is <num_channels>.
Examples
AT+CNSVUS=16,20,86,96,109
Network survey started...
For BCCH-Carrier:
arfcn: 16,bsic: 45,dBm: -80,mcc: 460,mnc: 0,lac: 6180,cellId: 42545,cellStatus:CELL_SUITABLE,
numArfcn: 5,arfcn: 16 45 49 71 81,numChannels: 11,array: 11 12 14 16 19 20 21 22 24 26 27
For non BCCH-Carrier:
arfcn: 86,dBm: -97
Network survey end
OK
5.29
AT+CNSVUN
Description
This command is used to perform a quick survey of user defined channels. It scans the given
channels. The result is reported in numeric format.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CNSVUN=<ch1>,[<ch2
>,[[<ch10>]]]
SIM5320_ATC_V2.02
Responses
Network survey started
For BCCH-Carrier:
[<arfcn_value>,<bsic_value>,<dBm_value>,<[<mcc_value>,
<mnc_value>,<lac_value>,<cellId>,<cellStasus>] or [SIB3 not
available]>, <[<num_afrcn>,<list of arfcns>] or [cell allocation
empty]>,<[<num_channel>,<list of channels>] or [SIB2 not
117
7/28/2014
available]>]
[]
For non BCCH-Carrier:
[ <arfcn_value>, <dBm_value>]
[]
Network survey end
OK
+CNSVN: NOT IN GSM
OK
ERROR
Defined values
<chN>
channel number(arfcn). It must be in a increasing order, and the range of N is from 1 to 10.
<arfcn_value>
carrier assigned radio channel (BCCH Broadcast Control Channel).
<bsic_value>
base station identification code.
<dBm_value>
the value of dBm.
<mcc_value>
mobile country code.
<mnc_value>
mobile network code.
<lac_value>
localization area code.
<cellId>
cell identifier.
<cellStatus>
cell status, this parameter indicates the following statuses:
0 Indicates the C0 is a suitable cell.
1 Indicates the cell is low priority based on the system information received.
2 Indicates the cell is forbidden.
3 Indicates the cell is barred based on the system information received.
4 Indicates the cell RXLEV is low.
5 Indicates none of the above, e.g. exelusion timer running, no BCCH available etc
<num_arfcn>
number of valid channels.
<list of arfcns>
list arfcns BCCH allocation, and the total number is <num_arfcn>.
<num_channel>
number of valid channels.
SIM5320_ATC_V2.02
118
7/28/2014
<list of channels>
list channels, and the total number is <num_channels>.
Examples
AT+CNSVUN=16,20,86,96,109
Network survey started...
14,51, -89, 460, 0, 6180, 41074,0, 8, 5 7 14 51 61 65 74 88, 24, 2 3 9 11 12 15 16 17 19 20 22 24 25
26 27 28 36 81 516 520 525 532 556 600
86, -97
Network survey end
OK
5.30
Description
This command is used to enable or disable single mode in RAT balancing mode. This command
supports SIM5320A only. The default setting of RAT balancing depends on EF-RAT, and usually it
is Dual Mode. After calling AT+CCGMDF=1 and AT+CNMP=13 or 14, the mode can be
changed to single mode.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CCGMDF=?
Responses
+CCGMDF: (0,1)
OK
Read Command
AT+CCGMDF?
Responses
+CCGMDF: <mode>
OK
Write Command
AT+CCGMDF=<mode>
Responses
OK
ERROR
Defined values
<mode>
Whether to enable or disable single mode in RAT balancing condition (mode depends on
AT+CNMP):
0 Disable.
1 Enable.
SIM5320_ATC_V2.02
119
7/28/2014
Examples
AT+CCGMDF=1
OK
AT+CCGMDF?
+CCGMDF:0
OK
AT+CCGMDF=?
+CCGMDF:(0-1)
OK
5.31
AT+CPLMNPASS
Description
This command is used to manage password for AT+CPLMNWLIST.
Syntax
Write Command
AT+CPLMNPASS=<passwo
rd>[, <new_password>]
Responses
OK
ERROR
Defined values
<password>
The password for the module. Value field in string format, the maximum length is 8.
<new_password>
The new password for the module. Value field in string format, the maximum length is 8.
Examples
AT+CPLMNPASS= , 12345678
OK
AT+CPLMNPASS= 12345678, 111111
OK
AT+CPLMNPASS=111111
OK
AT+CPLMNPASS=111111,
OK
5.32
AT*CNTI
Description
SIM5320_ATC_V2.02
120
7/28/2014
References
Vendor
Syntax
Test Command
AT*CNTI=?
Responses
*CNTI: (list of supported <CNTI_option>s)
OK
Read Command
AT*CNTI?
Responses
*CNTI:<CNTI_option>, <network_mode>
OK
Write Command
AT*CNTI =
<CNTI_option>
Responses
*CNTI:<CNTI_option>, <network_mode>s
OK
ERROR
Defined values
<CNTI_option>
Network query option.
Value:
0
Query the current network mode
1
Query the network mode available for the module now
2
Query the network mode supported by the module
<network_mode>
The wireless access technologies separated by ,. For some products, the HSDPA or HSUPA is
not supported.
Value:
NONE
GSM
GPRS
EDGE
UMTS
HSDPA
HSUPA
Examples
AT*CNTI =1
SIM5320_ATC_V2.02
121
7/28/2014
*CNTI: 1, UMTS
OK
AT*CNTI?
*CNTI: 1, GSM, GPRS
OK
5.33
AT+CELLLOCK
Description
This command is used to lock on specified 2G cell
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CELLLOCK=?
Read Command
AT+CELLLOCK?
Execution Command
AT+CELLLOCK
Write Command
AT+CELLLOCK=<arfcn>
Responses
OK
Responses
+CELLLOCK: <arfcn>,<state>
OK
Responses
Set default value: 0,IDLE
OK
Responses
OK
[+CELLLOCKED]
ERROR
Defined values
<arfcn>
The arfcn of the cell. User can use AT+CCINFO to get it.
<state>
The state of the locking action
IDLE no locking
LOCKING trying to lock on the target cell.
LOCKED already locked on the target cell.
Examples
AT+CELLLOCK=736
OK
SIM5320_ATC_V2.02
122
7/28/2014
+CELLLOCKED
AT+CELLLOCK?
+CELLLOCK: 736, LOCKED
OK
AT+CELLLOCK=?
OK
5.34
Description
This command is used to lock on specified 3G cell
SIM PIN
NO
References
Vendor
Syntax
Execution Command
AT+CLUCELL
Responses
Set factory default: Disable frequency locking
OK
Write Command
AT+CLUCELL=<Freq>,<PSC>
Responses
OK
ERROR
Defined values
<Freq>
Downlink frequency of cell. User can use AT+CPSI? command to get it.
<PSC>
Primary synchronization code of active set. User can use AT+CPSI? command to get it.
Examples
AT+CLUCELL=10663,279
OK
AT+CLUCELL
OK
5.35
AT+CLUARFCN
Description
SIM5320_ATC_V2.02
123
7/28/2014
References
Vendor
Syntax
Execution Command
AT+CLUARFCN
Responses
Set factory default: Disable frequency locking
OK
Write Command
AT+CLUARFCN=<Freq>
Responses
OK
ERROR
Defined values
<Freq>
Downlink frequency of cell. User can use AT+CPSI? command to get it.
Examples
AT+CLUARFCN=10663
OK
AT+CLUARFCN
OK
5.36
AT+CRPAAO
Description
This command is used to set network searching preference on power up. This command only needs
to be set once, it will take effect for ever.
Usually, when the module is power down normally, it will search the latest registered PLMN on
next power up. But for some device, it sometimes does not power down normally, maybe just cut
off the power, which may cause the module to search the network using unexpected order (like
search the GSM first even the AT+CNAOP is set to WCDMA first. When set the AT+CRPAAO=1,
it will try to search the network according to AT+CNAOP setting on power up.
SIM PIN
YES
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
124
7/28/2014
AT+CRPAAO=?
Read Command
AT+CRPAAO?
Write Command
AT+CRPAAO=<state>
Defined values
<state>
The State of the setting:
0 Disable.
1 Enable.
Examples
AT+CRPAAO=1
OK
AT+CRPAAO?
+CRPAAO:1
OK
AT+CRPAAO=?
+CRPAAO: (0,1)
OK
5.37
Description
This command is used to set the band indicator to 800 or 850 for the common RF channels of 800
and 850.This command is only valid for SIM5320J.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CBVTBP=?
Responses
+CBVTBP: (0,1)
OK
Read Command
Responses
SIM5320_ATC_V2.02
125
7/28/2014
AT+CBVTBP?
+CBVTBP: <ind>
OK
ERROR
Write Command
Responses
AT+CBVTBP=<ind>
OK
ERROR
Defined values
<ind>
0
1
Examples
AT+CBVTBP?
+CBVTBP: 1
OK
AT+CBVTBP=1
OK
SIM5320_ATC_V2.02
126
7/28/2014
6.1
AT+CVHU
Description
Write command selects whether ATH or drop DTR shall cause a voice connection to be
disconnected or not. By voice connection is also meant alternating mode calls that are currently in
voice mode.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CVHU=?
Responses
+CVHU: (list of supported <mode>s)
OK
Read Command
AT+CVHU?
Responses
+CVHU: <mode>
OK
Write Command
AT+CVHU=<mode>
Responses
OK
ERROR
Execution Command
AT+CVHU
Responses
Set default value:
OK
Defined values
<mode>
0
1
Examples
AT+CVHU=0
OK
AT+CVHU?
+CVHU: 0
OK
SIM5320_ATC_V2.02
127
7/28/2014
6.2
Description
This command is used to cancel voice calls. If there is no call, it will do nothing but OK response is
given. After running AT+CHUP, multiple VOICE CALL END: may be reported which relies on
how many calls exist before calling this command.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CHUP=?
Responses
OK
Execution Command
AT+CHUP
Responses
VOICE CALL: END: <time>
[
VOICE CALL: END: <time>]
OK
No call:
OK
Defined values
<time>
Voice call connection time.
Format HHMMSS (HH: hour, MM: minute, SS: second)
Examples
AT+CHUP
VOICE CALL:END: 000017
OK
6.3
Description
Write command selects the bearer service <name> with data rate <speed>, and the connection
element <ce> to be used when data calls are originated. Values may also be used during mobile
terminated data call setup, especially in case of single numbering scheme calls.
SIM PIN
References
SIM5320_ATC_V2.02
128
7/28/2014
YES
3GPP TS 27.007
Syntax
Test Command
AT+CBST=?
Read Command
AT+CBST?
Write Command
AT+CBST=
<speed>[,<name>[,<ce>]]
Execution Command
AT+CBST
Responses
+CBST: (list of supported <speed>s), (list of supported <name>s),
(list of supported <ce>s)
OK
Responses
+CBST: <speed>,<name>,<ce>
OK
Responses
OK
ERROR
Responses
Set default value:
OK
Defined values
<speed>
0
7
12
14
16
17
39
43
48
51
71
75
80
81
83
84
116
134
<name>
0
1
Asynchronous modem
Synchronous modem
SIM5320_ATC_V2.02
129
7/28/2014
Examples
AT+CBST=0,0,1
OK
AT+CBST?
+CBST:0,0,1
OK
6.4
Description
Radio Link Protocol(RLP) parameters used when non-transparent data calls are originated may be
altered with write command.
Read command returns current settings for each supported RLP version <verX>. Only RLP
parameters applicable to the corresponding <verX> are returned.
Test command returns values supported by the TA as a compound value. If ME/TA supports several
RLP versions <verX>, the RLP parameter value ranges for each <verX> are returned in a separate
line.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CRLP=?
Responses
+CRLP: (list of supported <iws>s), (list of supported <mws>s),
(list of supported <T1>s), (list of supported <N2>s) [,<ver1>
[,(list of supported <T4>s)]][<CR><LF>
+CRLP: (list of supported <iws>s), (list of supported <mws>s),
(list of supported <T1>s), (list of supported <N2>s) [,<ver2>
[,(list of supported <T4>s)]]
Read Command
AT+CRLP?
SIM5320_ATC_V2.02
[...]]
OK
Responses
+CRLP: <iws>, <mws>, <T1>, <N2> [,<ver1> [, <T4>]][<CR>
<LF>
130
7/28/2014
+CRLP:<iws>,<mws>,<T1>,<N2>[,<ver2>[,<T4>]]
[...]]
OK
Write Command
AT+CRLP=<iws>
[,<mws>[,<T1>[,<N2>
[,<ver>[,<T4>]]]]]
Responses
OK
Execution Command
AT+CRLP
Responses
OK
ERROR
Defined values
<ver>, <verX>
RLP version number in integer format, and it can be 0, 1 or 2; when version indication is not
present it shall equal 1.
<iws>
IWF to MS window size.
<mws>
MS to IWF window size.
<T1>
Acknowledgement timer.
<N2>
Retransmission attempts.
<T4>
Re-sequencing period in integer format.
NOTE: <T1> and <T4> are in units of 10 ms.
Examples
AT+CRLP?
+CRLP:61,61,48,6,0
+CRLP:61,61,48,6,1
+CRLP:240,240,52,6,2
OK
6.5
AT+CR
Description
SIM5320_ATC_V2.02
131
7/28/2014
Write command controls whether or not intermediate result code +CR: <serv> is returned from
the TA to the TE. If enabled, the intermediate result code is transmitted at the point during connect
negotiation at which the TA has determined which speed and quality of service will be used, before
any error control or data compression reports are transmitted, and before the intermediate result
code CONNECT is transmitted.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CR=?
Responses
+CR: (list of supported <mode>s)
OK
Read Command
AT+CR?
Responses
+CR: <mode>
OK
Write Command
AT+CR=<mode>
Responses
OK
Execution Command
AT+CR
Responses
Set default value:
OK
Defined values
<mode>
0 disables reporting
1 enables reporting
<serv>
ASYNC
asynchronous transparent
SYNC
synchronous transparent
REL ASYNC
asynchronous non-transparent
REL sync
synchronous non-transparent
GPRS [<L2P>]
GPRS
The optional <L2P> proposes a layer 2 protocol to use between the MT and the TE.
Examples
AT+CR?
+CR:0
OK
AT+CR=1
OK
SIM5320_ATC_V2.02
132
7/28/2014
6.6
AT+CRC
Description
Write command controls whether or not the extended format of incoming call indication or GPRS
network request for PDP context activation is used. When enabled, an incoming call is indicated to
the TE with unsolicited result code +CRING: <type> instead of the normal RING.
Test command returns values supported by the TA as a compound value.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CRC=?
Responses
+CRC: (list of supported <mode>s)
OK
Read Command
AT+CRC?
Responses
+CRC: <mode>
OK
Write Command
AT+CRC=<mode>
Responses
OK
Execution Command
AT+CRC
Responses
Set default value:
OK
Defined values
<mode>
0 disable extended format
1 enable extended format
<type>
ASYNC
asynchronous transparent
SYNC
synchronous transparent
REL ASYNC
asynchronous non-transparent
REL SYNC
synchronous non-transparent
FAX
facsimile
VOICE
normal voice
VOICE/XXX
voice followed by data(XXX is ASYNC, SYNC, REL ASYNC or REL
SYNC)
ALT VOICE/XXX alternating voice/data, voice first
ALT XXX/VOICE alternating voice/data, data first
ALT FAX/VOICE alternating voice/fax, fax first
SIM5320_ATC_V2.02
133
7/28/2014
GPRS
Examples
AT+CRC=1
OK
AT+CRC?
+CRC: 1
OK
6.7
AT+CLCC
Description
This command isused to return list of current calls of ME. If command succeeds but no calls are
available, no information response is sent to TE.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CLCC=?
Responses
+CLCC: (list of supported <n>s)
OK
Read Command
AT+CLCC?
Responses
+CLCC: <n>
OK
Write Command
Responses
OK
AT+CLCC=<n>
Execution Command
AT+CLCC
Responses
+CLCC:<id1>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<
alpha>]][<CR><LF>
+CLCC:<id2>,<dir>,<stat>,<mode>,<mpty>[,<number>,<type>[,<
alpha>]]
[...]]
OK
ERROR
+CME ERROR: <err>
Defined values
SIM5320_ATC_V2.02
134
7/28/2014
<n>
0 Dont report a list of current calls of ME automatically when the current call status
changes.
1 Report a list of current calls of ME automatically when the current call status changes.
<idX>
Integer type, call identification number, this number can be used in +CHLD command operations.
<dir>
0 mobile originated (MO) call
1 mobile terminated (MT) call
<stat>
State of the call:
0 active
1 held
2 dialing (MO call)
3 alerting (MO call)
4 incoming (MT call)
5 waiting (MT call)
6 disconnect
<mode>
bearer/teleservice:
0 voice
1 data
2 fax
9 unknown
<mpty>
0 call is not one of multiparty (conference) call parties
1 call is one of multiparty (conference) call parties
<number>
String type phone number in format specified by <type>.
<type>
Type of address octet in integer format;
128 Restricted number type includes unknown type and format
145 International number type
161 national number.The network support for this type is optional
177 network specific number,ISDN format
129 Otherwise
<alpha>
String type alphanumeric representation of <number> corresponding to the entry found in
phonebook; used character set should be the one selected with command Select TE Character Set
AT+CSCS.
Examples
SIM5320_ATC_V2.02
135
7/28/2014
ATD10011;
OK
AT+CLCC
+CLCC: 1,0,0,0,0,"10011",129,"sm"
OK
RING (with incoming call)
AT+CLCC
+CLCC: 1,1,4,0,0,"02152063113",128,"gongsi"
OK
6.8
AT+CEER
Description
Execution command causes the TA to return the information text <report>, which should offer the
user of the TA an extended report of the reason for:
1 The failure in the last unsuccessful call setup(originating or answering) or in-call
modification.
2 The last call release.
3 The last unsuccessful GPRS attach or unsuccessful PDP context activation.
4 The last GPRS detach or PDP context deactivation.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CEER=?
Responses
OK
Execution Command
AT+CEER
Responses
+CEER:<report>
OK
Defined values
<report>
Wrong information which is possibly occurred.
Examples
AT+CEER
+CEER: Invalid/incomplete number
SIM5320_ATC_V2.02
136
7/28/2014
OK
6.9
Description
This command allows control of the Call Waiting supplementary service. Activation, deactivation
and status query are supported. When querying the status of a network service (<mode>=2) the
response line for 'not active' case (<status>=0) should be returned only if service is not active for
any <class>. Parameter <n> is used to disable/enable the presentation of an unsolicited result code
+CCWA: <number>,<type>,<class> to the TE when call waiting service is enabled. Command
should be abortable when network is interrogated.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CCWA=?
Responses
+CCWA: (list of supported <n>s)
OK
Read Command
AT+CCWA?
Responses
+CCWA: <n>
OK
Write Command
AT+CCWA=
<n>[,<mode>[,<class>]]
Responses
When <mode>=2 and command successful:
+CCWA:<status>,<class>[<CR><LF>
+CCWA: <status>, <class>[...]]
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+CCWA
Responses
Set default value (<n>=0):
OK
Defined values
<n>
Sets/shows the result code presentation status in the TA
0 disable
1 enable
<mode>
SIM5320_ATC_V2.02
137
7/28/2014
Examples
AT+CCWA=?
+CCWA:(0-1)
OK
AT+CCWA?
+CCWA: 0
OK
6.10
AT+CHLD
Description
SIM5320_ATC_V2.02
138
7/28/2014
This command allows the control the following call related services:
1. A call can be temporarily disconnected from the ME but the connection is retained by the
network.
2. Multiparty conversation (conference calls).
3. The served subscriber who has two calls (one held and the other either active or alerting)
can connect the other parties and release the served subscriber's own connection.
Calls can be put on hold, recovered, released, added to conversation, and transferred. This is
based on the GSM/UMTS supplementary services.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CHLD=?
Responses
+CHLD: (list of supported <n>s)
OK
Write Command
AT+CHLD=<n>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+CHLD
Default to <n>=2.
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<n>
0
1
1X
2
Terminate all held calls; or set User Determined User Busy for a waiting call
Terminate all active calls and accept the other call (waiting call or held call)
Terminate a specific call X
Place all active calls on hold and accept the other call (waiting call or held call) as
the active call
2X Place all active calls except call X on hold
3
Add the held call to the active calls
4
Connect two calls and cut off the connection between users and them simultaneously
Examples
AT+CHLD=?
+CHLD: (0,1,1x,2,2x,3,4)
OK
SIM5320_ATC_V2.02
139
7/28/2014
6.11
AT+CCFC
Description
This command allows control of the call forwarding supplementary service. Registration, erasure,
activation, deactivation, and status query are supported.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CCFC=?
Responses
+CCFC: (list of supported <reason>s)
OK
Write Command
AT+CCFC=<reason>,<mode
>[,<number>[,<type>[,<clas
s>[,<subaddr>[,<satype>[,<ti
me> ]]]]]]
Responses
When <mode>=2 and command successful:
+CCFC: <status>,<class1>[,<number>,<type>
[,<subaddr>,<satype>[,<time>]]][<CR><LF>
+CCFC: <status>,<class2>[,<number>,<type>
[,<subaddr>,<satype>[,<time>]]][...]]
OK
ERROR
+CME ERROR:<err>
Defined values
<reason>
0 unconditional
1 mobile busy
2 no reply
3 not reachable
4 all call forwarding
5 all conditional call forwarding
<mode>
0 disable
1 enable
2 query status
3 registration
4 erasure
<number>
String type phone number of forwarding address in format specified by <type>.
SIM5320_ATC_V2.02
140
7/28/2014
<type>
Type of address octet in integer format:
145 dialing string <number> includes international access code character +
129 otherwise
<subaddr>
String type sub address of format specified by <satype>.
<satype>
Type of sub address octet in integer format, default 128.
<classX>
It is a sum of integers each representing a class of information (default 7):
1
voice (telephony)
2
data (refers to all bearer services)
4
fax (facsimile services)
16
data circuit sync
32
data circuit async
64 dedicated packet access
128 dedicated PAD access
255 The value 255 covers all classes
<time>
1...30 when "no reply" is enabled or queried, this gives the time in seconds to wait before call
is forwarded, default value 20.
<status>
0 not active
1 active
Examples
AT+CCFC=?
+CCFC: (0,1,2,3,4,5)
OK
AT+CCFC=0,2
+CCFC: 0,255
OK
6.12
Description
SIM5320_ATC_V2.02
141
7/28/2014
This command refers to the GSM/UMTS supplementary service CLIP (Calling Line Identification
Presentation) that enables a called subscriber to get the calling line identity (CLI) of the calling
party when receiving a mobile terminated call.
Write command enables or disables the presentation of the CLI at the TE. It has no effect on the
execution of the supplementary service CLIP in the network.
When the presentation of the CLI at the TE is enabled (and calling subscriber allows), +CLIP:
<number>,<type>,,[,[<alpha>][,<CLI validity>]] response is returned after every RING (or
+CRING: <type>; refer sub clause "Cellular result codes +CRC") result code sent from TA to TE. It
is manufacturer specific if this response is used when normal voice call is answered.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CLIP=?
Responses
+CLIP: (list of supported <n>s)
OK
Read Command
AT+CLIP?
Responses
+CLIP: <n>,<m>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CLIP=<n>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+CLIP
Responses
Set default value(<n>=0,<m>=0):
OK
Defined values
<n>
Parameter sets/shows the result code presentation status in the TA:
0 disable
1 enable
<m>
0 CLIP not provisioned
1 CLIP provisioned
2 unknown (e.g. no network, etc.)
<number>
SIM5320_ATC_V2.02
142
7/28/2014
Examples
AT+CLIP=1
OK
RING (with incoming call)
+CLIP: "02152063113",128,,,"gongsi",0
6.13
AT+CLIR
Description
This command refers to CLIR-service that allows a calling subscriber to enable or disable the
presentation of the CLI to the called party when originating a call.
Write command overrides the CLIR subscription (default is restricted or allowed) when temporary
mode is provisioned as a default adjustment for all following outgoing calls. This adjustment can be
revoked by using the opposite command.. If this command is used by a subscriber without
provision of CLIR in permanent mode the network will act.
Read command gives the default adjustment for all outgoing calls (given in <n>), and also triggers
an interrogation of the provision status of the CLIR service (given in <m>).
Test command returns values supported as a compound value.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
143
7/28/2014
AT+CLIR =?
Read Command
AT+CLIR?
Responses
+CLIR: <n>,<m>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CLIR =<n>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<n>
0
1
2
0
1
2
3
4
<m>
Examples
AT+CLIR=?
+CLIR:(0-2)
OK
6.14
Description
This command refers to the GSM/UMTS supplementary service COLP(Connected Line
Identification Presentation) that enables a calling subscriber to get the connected line identity
(COL) of the called party after setting up a mobile originated call. The command enables or
disables the presentation of the COL at the TE. It has no effect on the execution of the
supplementary service COLR in the network.
When enabled (and called subscriber allows), +COLP:<number>, <type> [,<subaddr>, <satype>
[,<alpha>]] intermediate result code is returned from TA to TE before any +CR responses. It is
SIM5320_ATC_V2.02
144
7/28/2014
manufacturer specific if this response is used when normal voice call is established.
When the AT+COLP=1 is set, any data input immediately after the launching of ATDXXX; will
stop the execution of the ATD command, which may cancel the establishing of the call.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+COLP=?
Responses
+COLP: (list of supported <n>s)
OK
Read Command
AT+COLP?
Responses
+COLP: <n>,<m>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+COLP =<n>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+COLP
Responses
Set default value(<n>=0, <m>=0):
OK
Defined values
<n>
Parameter sets/shows the result code presentation status in the TA:
0 disable
1 enable
<m>
0 COLP not provisioned
1 COLP provisioned
2 unknown (e.g. no network, etc.)
Examples
SIM5320_ATC_V2.02
145
7/28/2014
AT+COLP?
+COLP: 1,0
OK
ATD10086;
VOICE CALL: BEGIN
+COLP: "10086",129,,,
OK
6.15
AT+VTS
Description
This command allows the transmission of DTMF tones and arbitrary tones which cause the Mobile
Switching Center (MSC) to transmit tones to a remote subscriber. The command can only be used
in voice mode of operation (active voice call).
NOTE: The END event of voice call will terminate the transmission of tones, and as an operator
option, the tone may be ceased after a pre-determined time whether or not tone duration has been
reached.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
Responses
AT+VTS=?
Write Command
AT+VTS=<dtmf>
[,<duration>]
Responses
OK
AT+VTS=<dtmf-string>
ERROR
Defined values
<dtmf>
A single ASCII character in the set 0-9, *, #, A, B, C, D.
<duration>
Tone duration in 1/10 seconds, from 0 to 255. This is interpreted as a DTMF tone of different
duration from that mandated by the AT+VTD command, otherwise, the duration which be set the
AT+VTD command will be used for the tone (<duration> is omitted).
<dtmf-string>
SIM5320_ATC_V2.02
146
7/28/2014
A sequence of ASCII character in the set 0-9, *, #, A, B, C, D, and maximal length of the string is
29. The string must be enclosed in double quotes (), and separated by commas between the ASCII
characters (e.g. 1,3,5,7,9,*). Each of the tones with a duration which is set by the AT+VTD
command.
Examples
AT+VTS=1
OK
AT+VTS=1,20
OK
AT+VTS=1,3,5
OK
AT+VTS=?
+VTS: (0-9,*,#,A,B,C,D)
OK
6.16
AT+VTD
Tone duration
Description
This refers to an integer <n> that defines the length of tones emitted as a result of the AT+VTS
command. A value different than zero causes a tone of duration <n>/10 seconds.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+VTD=?
Responses
+VTD: (list of supported <n>s)
OK
Read Command
AT+VTD?
Responses
+VTD: <n>
OK
Write Command
Responses
OK
AT+VTD=<n>
Defined values
<n>
Tone duration in integer format, from 0 to 255, and 0 is factory value.
0
Tone duration of every single tone is dependent on the network.
1255 Tone duration of every single tone in 1/10 seconds.
SIM5320_ATC_V2.02
147
7/28/2014
Examples
AT+VTD=?
+VTD: (0-255)
OK
AT+VTD?
+VTD: 0
OK
AT+VTD=5
OK
6.17
Description
Write command is used to select the type of number for further dialing commands (ATD) according
to GSM/UMTS specifications.
Read command returns the current type of number.
Test command returns values supported by the Module as a compound value.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CSTA=?
Write Command
AT+CSTA=<type>
Responses
+CSTA:(list of supported <type>s)
OK
Responses
+CSTA:<type>
OK
Responses
OK
Execution Command
AT+CSTA
ERROR
Responses
OK
Read Command
AT+CSTA?
Defined values
<type>
Type of address octet in integer format:
145 when dialling string includes international access code character +
161 national number.The network support for this type is optional
177 network specific number,ISDN format
SIM5320_ATC_V2.02
148
7/28/2014
129 otherwise
NOTE: Because the type of address is automatically detected on the dial string of dialing
command, command AT+CSTA has really no effect.
Examples
AT+CSTA?
+CSTA: 129
OK
AT+CSTA=145
OK
6.18
AT+CMOD
Call mode
Description
Write command selects the call mode of further dialing commands (ATD) or for next answering
command (ATA). Mode can be either single or alternating.
Test command returns values supported by the TA as a compound value.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CMOD=?
Responses
+CMOD: (list of supported <mode>s)
OK
Read Command
AT+CMOD?
Responses
+CMOD: <mode>
OK
Write Command
AT+CMOD=<mode>
Responses
OK
ERROR
Execution Command
AT+CMOD
Responses
Set default value:
OK
Defined values
<mode>
0 single mode(only supported)
NOTE: The value of <mode> shall be set to zero after a successfully completed alternating mode
SIM5320_ATC_V2.02
149
7/28/2014
call. It shall be set to zero also after a failed answering. The power-on, factory and user resets shall
also set the value to zero. This reduces the possibility that alternating mode calls are originated or
answered accidentally.
Examples
AT+CMOD?
+CMOD: 0
OK
AT+CMOD=0
OK
6.19
AT+VMUTE
Description
This command is used to control the loudspeaker to mute and unmute during a voice call or a video
call which is connected. If there is not a connected call, write command cant be used.
When all calls are disconnected, the Module sets the subparameter as 0 automatically.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+VMUTE=?
Responses
+VMUTE: (list of supported <mode>s)
OK
Read Command
AT+VMUTE?
Responses
+VMUTE: <mode>
OK
Write Command
AT+VMUTE=<mode>
Responses
OK
ERROR
Defined values
<mode>
0
1
mute off
mute on
Examples
AT+VMUTE=1
SIM5320_ATC_V2.02
150
7/28/2014
OK
AT+VMUTE?
+VMUTE:1
OK
6.20
Description
This command is used to enable and disable the uplink voice muting during a voice call or a video
call which is connected. If there is not a connected call, write command cant be used.
When all calls are disconnected, the Module sets the subparameter as 0 automatically.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CMUT=?
Read Command
AT+CMUT?
Write Command
AT+CMUT=<mode>
Responses
+CMUT: (list of supported <mode>s)
OK
Responses
+CMUT: <mode>
OK
Responses
OK
ERROR
Defined values
<mode>
0
1
mute off
mute on
Examples
AT+CMUT=1
OK
AT+CMUT?
+CMUT: 1
OK
SIM5320_ATC_V2.02
151
7/28/2014
6.21
AT+CALM
Description
This command is used to select the general alert sound mode of the device. If silent mode is
selected then incoming calls will not generate alerting sounds but only the unsolicited indications
RING or +CRING. The value of <mode> will be saved to nonvolatile memory after write command
is executed.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CALM=?
Read Command
AT+CALM?
Write Command
AT+CALM=<mode>
Responses
+CALM: (list of supported <mode>s)
OK
Responses
+CALM: <mode>
OK
Responses
OK
Defined values
<mode>
0 normal mode (factory value)
1 silent mode; no sound will be generated by the device
Examples
AT+CALM=0
OK
AT+CALM?
+CALM: 0
OK
6.22
Description
This command is used to select the incoming call ringer sound level of the device. The value of
<level> will be saved to nonvolatile memory after write command is executed.
SIM5320_ATC_V2.02
152
7/28/2014
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CRSL=?
Responses
+CRSL: (list of supported <level>s)
OK
Read Command
AT+CRSL?
Responses
+CRSL: <level>
OK
Write Command
AT+CRSL=<level>
Responses
OK
Defined values
<level>
Integer type value which represents the incoming call ringer sound level. The range is from 0 to 8,
and 0 represents the lowest level, 2 is default factory value.
NOTE: <level> is nonvolatile, and it is stored when restart.
Examples
AT+CRSL=2
OK
AT+CRSL?
+CRSL:2
OK
6.23
AT+CODEC
Description
The command is used to configure audio codec mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CODEC=?
SIM5320_ATC_V2.02
Responses
+CODEC: (list of supported <g_codec>s), (list of supported
153
7/28/2014
<w_codec>s)
OK
Read Command
AT+CODEC?
Responses
+CODEC: <g_codec>, <w_codec>
OK
Write Command
AT+CODEC=<g_codec>,<
w_codec>
Responses
OK
Execution Command
AT+CODEC
Responses
Set default value(31,7)
OK
ERROR
Defined values
<g_codec>
1~63 Sum of integers each representing a specific codec mode, default value is 31.
1 GSM FR
2 GSM HR
4 GSM EFR
8 GSM FR AMR
16 GSM HR AMR
32 GSM FR AMR-WB
<w_codec>
1~7 Sum of integers each representing a specific codec mode.,default value is 7.
1 UMTS AMR
2 UMTS AMR2
4 UMTS AMR-WB
Examples
AT+CODEC=?
+CODEC: (1-63),( 1-7)
OK
AT+CODEC?
+CODEC: 63,7
OK
AT+AUTOCSQ=31,7
OK
6.24
AT+CVOC
Description
SIM5320_ATC_V2.02
154
7/28/2014
References
Vendor
Syntax
Test Command
AT+CVOC=?
Responses
OK
Execution Command
AT+CVOC
Responses
+CVOC: <voc>,<amr_mode>,<DTX>,<SCR>
OK
Defined values
<voc>
0x100 AMR codec
0x200 GSM EFR codec
0x400 GSM Full rate codec
0x800 GSM Half rate codec
0x1000000 AMR-WB vocoder
Other values is reserved
<amr_mode>
0 4.75kbit/s AMR
1 5.15kbit/s AMR
2 5.9kbit/s AMR
3 6.7kbit/s AMR
4 7.4kbit/s AMR
5 7.95kbit/s AMR
6 10.2kbit/s AMR
7 12.2kbit/s AMR
8 6.60kbit/s AMR-WB
9 8.85kbit/s AMR-WB
10 12.65kbit/s AMR-WB
11 14.25kbit/s AMR-WB
12 15.58kbit/s AMR-WB
13 18.25kbit/s AMR-WB
14 19.58kbit/s AMR-WB
15 23.05kbit/s AMR-WB
16 23.85kbit/s AMR-WB
17 undefined
<DTX>
0 Disable encoder DTX mode
1 Enable encoder DTX mode
SIM5320_ATC_V2.02
155
7/28/2014
<SCR>
0
1
Examples
AT+CVOC
+CVOC: 0x200,17,0,0
OK
AT+CVOC
+CVOC: 0x100,7,0,0
OK
6.25
Description
This command is used to enable or disable report MO ring URC
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+MORING=?
Read Command
AT+MORING?
Write Command
AT+MORING=<mode>
Responses
+MORING: (0-1)
OK
Responses
+ MORING: <mode>
OK
Responses
OK
ERROR
Defined values
<mode>
Enable or disable report MO ring URC:
0 disable
1 enable.
Examples
AT+MORING=1
OK
SIM5320_ATC_V2.02
156
7/28/2014
AT+MORING?
+MORING:1
OK
AT+MORING=?
+MORING: (0-1)
OK
6.26
Description
References
Vendor
Syntax
Test Command
AT+DDET=?
Responses
+DDET: (0,1)
OK
Read Command
AT+DDET?
Responses
+DDET: <mode>
OK
Write Command
AT+DDET=<mode>
Responses
OK
ERROR
Defined values
<mode>
Enable or disable RX DTMF detection:
0 Disable.
1 Enable.
Examples
AT+DDET=0
OK
AT+DDET?
+DDET:0
OK
SIM5320_ATC_V2.02
157
7/28/2014
AT+DDET=?
+DDET:(0,1)
OK
6.27
Description
This command is set whether or not forbid new incoming voice call.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFBDMTCALL=?
Write Command
Responses
+CFBDMTCALL: (0,1)
OK
Responses
+CFBDMTCALL: <mode>
OK
Responses
AT+ CFBDMTCALL
=<mode>
OK
ERROR
Read Command
AT+CFBDMTCALL?
Defined values
<mode>
The mode of forbidding new incoming voice call:
0 Not forbidden.
1 Forbidden.
Examples
AT+CFBDMTCALL=1
OK
6.28
Description
SIM5320_ATC_V2.02
158
7/28/2014
This command is set whether or not mute call waiting sound for voice call.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMUTW=?
Read Command
AT+CMUTW?
Write Command
AT+ CMUTW =<mode>
Responses
+CMUTW: (0,1)
OK
Responses
+CMUTW: <mode>
OK
Responses
OK
ERROR
Defined values
<mode>
The mode of muting call waiting sound for voice call:
0 Not mute.
1 Mute.
Examples
AT+CMUTW=1
OK
SIM5320_ATC_V2.02
159
7/28/2014
7.1
AT+CSMS
Description
This command is used to select messaging service <service>.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CSMS=?
Responses
+CSMS: (list of supported <service>s)
OK
Read Command
AT+CSMS?
Responses
+CSMS: <service>,<mt>,<mo>,<bm>
OK
Write Command
AT+CSMS=<service>
Responses
+CSMS: <mt>,<mo>,<bm>
OK
ERROR
+CMS ERROR: <err>
Defined values
<service>
0 SMS at command is compatible with GSM phase 2.
1 SMS at command is compatible with GSM phase 2+.
<mt>
Mobile terminated messages:
0 type not supported.
1 type supported.
<mo>
Mobile originated messages:
0 type not supported.
1 type supported.
<bm>
Broadcast type messages:
0
1
Examples
AT+CSMS=0
+CSMS:1,1,1
OK
AT+CSMS?
+CSMS:0,1,1,1
OK
AT+CSMS=?
+CSMS:(0-1)
OK
7.2
AT+CPMS
Description
This command is used to select memory storages <mem1>, <mem2> and <mem3> to be used for
reading, writing, etc.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CPMS=?
Responses
+CPMS: (list of supported <mem1>s), (list of supported
<mem2>s), (list of supported <mem3>s)
OK
Read Command
AT+CPMS?
Responses
+CPMS:<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,
<mem3>,<used3>,<total3>
OK
ERROR
+CMS ERROR: <err>
Write Command
AT+CPMS=<mem1>
[,<mem2>[,<mem3>]]
Responses
+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>
OK
ERROR
+CMS ERROR: <err>
SIM5320_ATC_V2.02
161
7/28/2014
Defined values
<mem1>
String type, memory from which messages are read and deleted (commands List Messages
AT+CMGL, Read Message AT+CMGR and Delete Message AT+CMGD).
ME and MT
FLASH message storage
SM
SIM message storage
SR
Status report storage
<mem2>
String type, memory to which writing and sending operations are made (commands Send Message
from Storage AT+CMSS and Write Message to Memory AT+CMGW).
ME and MT
FLASH message storage
SM
SIM message storage
SR
Status report storage
<mem3>
String type, memory to which received SMS is preferred to be stored (unless forwarded directly to
TE; refer command New Message Indications AT+CNMI).
ME
FLASH message storage
SM
SIM message storage
<usedX>
Integer type, number of messages currently in <memX>.
<totalX>
Integer type, total number of message locations in <memX>.
Examples
AT+CPMS=?
+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","SM")
OK
AT+CPMS?
+CPMS:"ME", 0, 23,"ME", 0, 23,"ME", 0, 23
OK
AT+CPMS="SM","SM","SM"
+CPMS:3,40,3,40,3,40
OK
7.3
Description
This command is used to specify the input and output format of the short messages.
SIM PIN
YES
References
3GPP TS 27.005
SIM5320_ATC_V2.02
162
7/28/2014
Syntax
Test Command
AT+CMGF=?
Responses
+CMGF: (list of supported <mode>s)
OK
Read Command
AT+CMGF?
Responses
+CMGF: <mode>
OK
Write Command
AT+CMGF=<mode>
Responses
OK
Execution Command
AT+CMGF
Responses
Set default value (<mode>=0):
OK
Defined values
<mode>
0
1
PDU mode
Text mode
Examples
AT+CMGF?
+CMGF: 0
OK
AT+CMGF=?
+CMGF: (0-1)
OK
AT+CMGF=1
OK
7.4
Description
This command is used to update the SMSC address, through which mobile originated SMS are
transmitted.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
SIM5320_ATC_V2.02
163
7/28/2014
Test Command
AT+CSCA=?
Responses
OK
Read Command
AT+CSCA?
Responses
+CSCA: <sca>,<tosca>
OK
Write Command
AT+CSCA=<sca>[,<tosca>]
Responses
OK
Defined values
<sca>
Service Center Address, value field in string format, BCD numbers (or GSM 7 bit default alphabet
characters) are converted to characters of the currently selected TE character set (refer to command
AT+CSCS), type of address given by <tosca>.
<tosca>
SC address Type-of-Address octet in integer format, when first character of <sca> is + (IRA 43)
default is 145, otherwise default is 129.
Examples
AT+CSCA="+8613012345678"
OK
AT+CSCA?
+CSCA: "+8613010314500", 145
OK
7.5
AT+CSCB
Description
The test command returns the supported <mode>s as a compound value.
The read command displays the accepted message types.
Depending on the <mode> parameter, the write command adds or deletes the message types
accepted.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CSCB=?
SIM5320_ATC_V2.02
Responses
+CSCB: (list of supported <mode>s)
OK
164
7/28/2014
ERROR
Read Command
AT+CSCB?
Responses
+CSCB: <mode>,<mids>,<dcss>
OK
ERROR
Write Command
AT+CSCB=
<mode>[,<mides>[,<dcss>]]
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<mode>
0 message types specified in <mids> and <dcss> are accepted.
1 message types specified in <mids> and <dcss> are not accepted.
<mides>
String type; all different possible combinations of CBM message identifiers.
<dcss>
String type; all different possible combinations of CBM data coding schemes(default is empty
string)
Examples
AT+CSCB=?
+CSCB: (0-1)
OK
AT+CSCB=0,15-17,50,86,
OK
7.6
Description
This command is used to select values for additional parameters needed when SM is sent to the
network or placed in storage when text format message mode is selected.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CSMP=?
SIM5320_ATC_V2.02
Responses
OK
165
7/28/2014
Read Command
AT+CSMP?
Responses
+CSMP: <fo>,<vp>,<pid>,<dcs>
OK
Write Command
AT+CSMP=
[<fo>[,<vp>[,<pid>[,<dcs>]]
]]
Responses
OK
Defined values
<fo>
Depending on the Command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer
format. SMS status report is supported under text mode if <fo> is set to 49.
<vp>
Depending on SMS-SUBMIT <fo> setting: GSM 03.40,TP-Validity-Period either in integer format
(default 167), in time-string format, or if is supported, in enhanced format (hexadecimal coded
string with quotes), (<vp> is in range 0... 255).
<pid>
GSM 03.40 TP-Protocol-Identifier in integer format (default 0).
<dcs>
GSM 03.38 SMS Data Coding Scheme (default 0), or Cell Broadcast Data Coding Scheme in
integer format depending on the command or result code.
Examples
AT+CSMP=17,23,64,244
OK
7.7
AT+CSDH
Description
This command is used to control whether detailed header information is shown in text mode result
codes.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CSDH=?
SIM5320_ATC_V2.02
Responses
+CSDH: (list of supported <show>s)
166
7/28/2014
OK
Read Command
AT+CSDH?
Responses
+CSDH: <show>
OK
Write Command
AT+CSDH=<show>
Responses
OK
Execution Command
AT+CSDH
Responses
Set default value (<show>=0):
OK
Defined values
<show>
0 do not show header values defined in commands AT+CSCA and AT+CSMP (<sca>,
<tosca>, <fo>, <vp>, <pid> and <dcs>) nor <length>, <toda> or <tooa> in +CMT,
AT+CMGL, AT+CMGR result codes for SMS-DELIVERs and SMS-SUBMITs in text
mode; for SMS-COMMANDs in AT+CMGR result code, do not show <pid>, <mn>,
<da>, <toda>, <length> or <data>
1 show the values in result codes
Examples
AT+CSDH?
+CSDH: 0
OK
AT+CSDH=1
OK
7.8
Description
This command is used to confirm successful receipt of a new message (SMS-DELIVER or
SMS-STATUSREPORT) routed directly to the TE. If ME does not receive acknowledgement within
required time (network timeout), it will send RP-ERROR to the network.
NOTE: The execute / write command shall only be used when AT+CSMS parameter <service>
equals 1 (= phase 2+) and appropriate URC has been issued by the module, i.e.:
<+CMT> for <mt>=2 incoming message classes 0, 1, 3 and none;
<+CMT> for <mt>=3 incoming message classes 0 and 3;
<+CDS> for <ds>=1.
SIM PIN
YES
References
3GPP TS 27.005
SIM5320_ATC_V2.02
167
7/28/2014
Syntax
Test Command
AT+CNMA=?
Responses
if text mode(AT+CMGF=1):
OK
if PDU mode (AT+CMGF=0):
+CNMA: (list of supported <n>s)
OK
Write Command
AT+CNMA=<n>
Responses
OK
ERROR
+CMS ERROR: <err>
Execution Command
AT+CNMA
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<n>
Parameter required only for PDU mode.
0
Command operates similarly as execution command in text mode.
1
Send positive (RP-ACK) acknowledgement to the network. Accepted only in PDU
mode.
2
Send negative (RP-ERROR) acknowledgement to the network. Accepted only in PDU
mode.
Examples
AT+CNMI=1,2,0,0,0
OK
+CMT:1380022xxxx,02/04/03,11 :06 :38,129,7,0<CR><LF>
Testing
(receive new short message)
AT+CNMA(send ACK to the network)
OK
AT+CNMA
+CMS ERROR340
(the second time return error, it needs ACK only once)
SIM5320_ATC_V2.02
168
7/28/2014
7.9
AT+CNMI
Description
This command is used to select the procedure how receiving of new messages from the network is
indicated to the TE when TE is active, e.g. DTR signal is ON. If TE is inactive (e.g. DTR signal is
OFF). If set <mt>2, <mt>3 or <ds>1, make sure <mode>1, otherwise it will return error.
SIM PIN
References
YES
3GPP TS 27.005
Syntax
Test Command
AT+CNMI=?
Responses
+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)
OK
Read Command
AT+CNMI?
Responses
+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>
OK
Write Command
AT+CNMI=<mode>[,<mt>[,
<bm>[,<ds> [,<bfr>]]]]
Responses
OK
ERROR
+CMS ERROR: <err>
Execution Command
AT+CNMI
Responses
Set default value:
OK
Defined values
<mode>
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.
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.
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.
<mt>
SIM5320_ATC_V2.02
169
7/28/2014
The rules for storing received SMS depend on its data coding scheme, preferred memory storage
(AT+CPMS) setting and this value:
0
Examples
AT+CNMI?
+CNMI: 0,0,0,0,0
OK
AT+CNMI=?
+CNMI: (0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)
SIM5320_ATC_V2.02
170
7/28/2014
OK
AT+CNMI=2,1 (unsolicited result codes after received messages.)
OK
7.10
AT+CGSMS
Description
The write command is used to specify the service or service preference that the MT will use to send
MO SMS messages.
The test command is used for requesting information on which services and service preferences can
be set by using the AT+CGSMS write command
The read command returns the currently selected service or service preference.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGSMS=?
Responses
+CGSMS: (list of supported <service>s)
OK
Read Command
AT+CGSMS?
Responses
+CGSMS: <service>
OK
Write Command
AT+CGSMS=<service>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<service>
A numeric parameter which indicates the service or service preference to be used
0 GPRS(value is not really supported and is internally mapped to 2)
1 circuit switched(value is not really supported and is internally mapped to 3)
2 GPRS preferred (use circuit switched if GPRS not available)
3 circuit switched preferred (use GPRS if circuit switched not available)
Examples
AT+CGSMS?
+CGSMS: 3
OK
SIM5320_ATC_V2.02
171
7/28/2014
AT+CGSMS=?
+CGSMS: (0-3)
OK
7.11
Description
This command is used to return messages with status value <stat> from message storage <mem1>
to the TE.
If the status of the message is 'received unread', the status in the storage changes to 'received read'.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGL=?
Responses
+CMGL: (list of supported <stat>s)
OK
Write Command
AT+CMGL=<stat>
Responses
If text mode (AT+CMGF=1), command successful and SMS-S
UBMITs and/or SMS-DELIVERs:
+CMGL:<index>,<stat>,<oa>/<da>,[<alpha>],[<scts>][,<tooa>/<t
oda>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data
>[<CR><LF>
+CMGL:<index>,<stat>,<oa>/<da>,[<alpha>],[<scts>][,<tooa>/<t
oda>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data
>[...]]
OK
If text mode (AT+CMGF=1), command successful and SMSSTATUS-REPORTs:
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<s
t>[<CR><LF>
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<s
t>[...]]
OK
If text mode (AT+CMGF=1), command successful and SMSCOMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
OK
SIM5320_ATC_V2.02
172
7/28/2014
Defined values
<stat>
1. Text Mode:
"REC UNREAD" received unread message (i.e. new message)
"REC READ"
received read message
"STO UNSENT" stored unsent message
"STO SENT"
stored sent message
"ALL"
all messages
2. PDU Mode:
0 received unread message (i.e. new message)
1 received read message
2 stored unsent message
3 stored sent message
4 all messages
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <tooa>.
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<alpha>
SIM5320_ATC_V2.02
173
7/28/2014
String type alphanumeric representation of <da> or <oa> corresponding to the entry found in MT
phonebook; implementation of this feature is manufacturer specific; used character set should be
the one selected with command Select TE Character Set AT+CSCS.
<scts>
TP-Service-Centre-Time-Stamp in time-string format (refer <dt>).
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer <toda>).
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP data unit in
octets. (i.e. the RP layer SMSC address octets are not counted in the length)
<data>
In the case of SMS: TP-User-Data in text mode responses; format:
1. If <dcs> indicates that GSM 7 bit default alphabet is used and <fo> indicates that
TP-User-Data-Header-Indication is not set:
a. If TE character set other than "HEX": ME/TA converts GSM alphabet into current TE
character set.
b. If TE character set is "HEX": ME/TA converts each 7-bit character of GSM 7 bit
default alphabet into two IRA character long hexadecimal numbers. (e.g. character
(GSM 7 bit default alphabet 23) is presented as 17 (IRA 49 and 55))
2. If <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates that
TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet into two IRA
character long hexadecimal numbers. (e.g. octet with integer value 42 is presented to TE as
two characters 2A (IRA 50 and 65))
3. If <dcs> indicates that GSM 7 bit default alphabet is used:
a. If TE character set other than "HEX": ME/TA converts GSM alphabet into current TE
character set.
b. If TE character set is "HEX": ME/TA converts each 7-bit character of the GSM 7 bit
default alphabet into two IRA character long hexadecimal numbers.
4. If <dcs> indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each
8-bit octet into two IRA character long hexadecimal numbers.
<fo>
Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer
format. SMS status report is supported under text mode if <fo> is set to 49.
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<ra>
Recipient Address
SIM5320_ATC_V2.02
174
7/28/2014
GSM 03.40 TP-Recipient-Address Address-Value field in string format;BCD numbers (or GSM
default alphabet characters) are converted to characters of the currently selected TE character
set(refer to command AT+CSCS);type of address given by <tora>
<tora>
Type of Recipient Address
GSM 04.11 TP-Recipient-Address Type-of-Address octet in integer format (default refer <toda>)
<dt>
Discharge Time
GSM 03.40 TP-Discharge-Time in time-string format:yy/MM/dd,hh:mm:ss+zz,where characters
indicate year (two last digits),month,day,hour,minutes,seconds and time zone.
<st>
Status
GSM 03.40 TP-Status in integer format
0255
<ct>
Command Type
GSM 03.40 TP-Command-Type in integer format
0255
<sn>
Serial Number
GSM 03.41 CBM Serial Number in integer format
<mid>
Message Identifier
GSM 03.41 CBM Message Identifier in integer format
<page>
Page Parameter
GSM 03.41 CBM Page Parameter bits 4-7 in integer format
<pages>
Page Parameter
GSM 03.41 CBM Page Parameter bits 0-3 in integer format
<pdu>
In the case of SMS: SC address followed by TPDU in hexadecimal format: ME/TA converts each
octet of TP data unit into two IRA character long hexadecimal numbers. (e.g. octet with integer
value 42 is presented to TE as two characters 2A (IRA 50 and 65)).
Examples
AT+CMGL=?
+CMGL: ("REC UNREAD","REC READ","STO UNSENT","STO SENT","ALL")
OK
AT+CMGL="ALL"
+CMGL: 1,"STO UNSENT","+10011",,,145,4
Hello World
SIM5320_ATC_V2.02
175
7/28/2014
OK
7.12
AT+CMGR
Read message
Description
This command is used to return message with location value <index> from message storage
<mem1> to the TE.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGR=?
Responses
OK
Write Command
AT+CMGR=<index>
Responses
If text mode (AT+CMGF=1), command successful and SMSDELIVER:
+CMGR: <stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,
<sca>, <tosca>, <length>]<CR><LF><data>
OK
If text mode (AT+CMGF=1), command successful and SMSSUBMIT:
+CMGR:<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],
<sca>, <tosca>,<length>]<CR><LF><data>
OK
If text mode (AT+CMGF=1), command successful and SMSSTATUS-REPORT:
+CMGR: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
If text mode (AT+CMGF=1), command successful and SMSCOMMAND:
+CMGR:<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<length
>]<CR><LF><data>
OK
If text mode (AT+CMGF=1), command successful and CBM
storage:
+CMGR:<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><d
ata>
OK
If PDU mode (AT+CMGF=0) and Command successful:
SIM5320_ATC_V2.02
176
7/28/2014
+CMGR:<stat>,[<alpha>],<length><CR><LF><pdu>
OK
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<stat>
1.Text Mode
"REC UNREAD" received unread message (i.e. new message)
"REC READ"
received read message
"STO UNSENT" stored unsent message
"STO SENT"
stored sent message
2. PDU Mode
0 received unread message (i.e. new message)
1 received read message.
2 stored unsent message.
3 stored sent message
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <tooa>.
<alpha>
String type alphanumeric representation of <da> or <oa> corresponding to the entry found in MT
phonebook; implementation of this feature is manufacturer specific; used character set should be
the one selected with command Select TE Character Set AT+CSCS.
<scts>
TP-Service-Centre-Time-Stamp in time-string format (refer <dt>).
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer <toda>).
<fo>
Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer
format. SMS status report is supported under text mode if <fo> is set to 49.
<pid>
Protocol Identifier
GSM 03.40 TP-Protocol-Identifier in integer format
0255
<dcs>
Depending on the command or result code: SMS Data Coding Scheme (default 0), or Cell
Broadcast Data Coding Scheme in integer format.
SIM5320_ATC_V2.02
177
7/28/2014
<sca>
RP SC address Address-Value field in string format; BCD numbers (or GSM 7 bit default alphabet
characters) are converted to characters of the currently selected TE character set, type of address
given by <tosca>.
<tosca>
RP SC address Type-of-Address octet in integer format (default refer <toda>).
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length).
<data>
In the case of SMS: TP-User-Data in text mode responses; format:
1 If <dcs> indicates that GSM 7 bit default alphabet is used and <fo> indicates that
TP-User-Data-Header-Indication is not set:
a. If TE character set other than "HEX": ME/TA converts GSM alphabet into current
TE character set.
b. If TE character set is "HEX": ME/TA converts each 7-bit character of GSM 7 bit
default alphabet into two IRA character long hexadecimal numbers. (e.g. character
2
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<vp>
Depending on SMS-SUBMIT <fo> setting: TP-Validity-Period either in integer format (default
167) or in time-string format (refer <dt>).
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
SIM5320_ATC_V2.02
178
7/28/2014
<ra>
Recipient Address
GSM 03.40 TP-Recipient-Address Address-Value field in string format;BCD numbers(or GSM
default alphabet characters) are converted to characters of the currently selected TE character
set(refer to command AT+CSCS);type of address given by <tora>
<tora>
Type of Recipient Address
GSM 04.11 TP-Recipient-Address Type-of-Address octet in integer format (default refer <toda>)
<dt>
Discharge Time
GSM 03.40 TP-Discharge-Time in time-string format:yy/MM/dd,hh:mm:ss+zz,where characters
indicate year (two last digits),month,day,hour,minutes,seconds and time zone.
<st>
Status
GSM 03.40 TP-Status in integer format
0255
<ct>
Command Type
GSM 03.40 TP-Command-Type in integer format
0255
<mn>
Message Number
GSM 03.40 TP-Message-Number in integer format
<sn>
Serial Number
GSM 03.41 CBM Serial Number in integer format
<mid>
Message Identifier
GSM 03.41 CBM Message Identifier in integer format
<page>
Page Parameter
GSM 03.41 CBM Page Parameter bits 4-7 in integer format
<pages>
Page parameter
GSM 03.41 CBM Page Parameter bits 0-3 in integer format
<pdu>
In the case of SMS: SC address followed by TPDU in hexadecimal format: ME/TA converts each
octet of TP data unit into two IRA character long hexadecimal numbers. (eg. octet with integer
value 42 is presented to TE as two characters 2A (IRA 50 and 65)).
Examples
AT+CMGR=1
SIM5320_ATC_V2.02
179
7/28/2014
7.13
AT+CMGS
Send message
Description
This command is used to send message from a TE to the network (SMS-SUBMIT).
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGS=?
Responses
OK
Write Command
If text mode (AT+CMGF=1):
AT+CMGS=<da>[,<toda>]<
CR>Text is entered.
<CTRL-Z/ESC>
If PDU mode(AT+CMGF=
0):
AT+CMGS=<length><CR>
PDU is entered
<CTRL-Z/ESC>
Responses
If text mode (AT+CMGF=1) and sending successfully:
+CMGS: <mr>
OK
If PDU mode(AT+CMGF=0) and sending successfully:
+CMGS: <mr>
OK
If sending fails:
ERROR
If sending fails:
+CMS ERROR: <err>
Defined values
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<length>
integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length)
<mr>
SIM5320_ATC_V2.02
180
7/28/2014
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMGS="13012832788"<CR>(TEXT MODE)
> ABCD<ctrl-Z/ESC>
+CMGS: 46
OK
7.14
AT+CMSS
Description
This command is used to send message with location value <index> from preferred message
storage <mem2> to the network (SMS-SUBMIT or SMS-COMMAND).
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMSS=?
Responses
OK
Write Command
AT+CMSS=
<index> [,<da>[,<toda>]]
Responses
+CMSS: <mr>
OK
ERROR
If sending fails:
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<mr>
SIM5320_ATC_V2.02
181
7/28/2014
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMSS=3
+CMSS: 0
OK
AT+CMSS=3,"13012345678"
+CMSS: 55
OK
7.15
Description
This command is used to store message (either SMS-DELIVER or SMS-SUBMIT) to memory
storage <mem2>.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGW=?
Responses
OK
Write Command
If text mode(AT+CMGF=1):
AT+CMGW=<oa>/<da>[,<t
ooa>/<toda>[,<stat>]]<CR>
Text is entered.
<CTRL-Z/ESC>
If PDU mode(AT+CMGF=
0):
AT+CMGW=<length>[,<sta
t>]<CR>PDU is entered.
<CTRL-Z/ESC>
Responses
+CMGW: <index>
SIM5320_ATC_V2.02
OK
ERROR
182
7/28/2014
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <tooa>.
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer <toda>).
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length).
<stat>
1. Text Mode:
"STO UNSENT" stored unsent message
"STO SENT"
stored sent message
2. PDU Mode:
2 stored unsent message
3 stored sent message
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMGW="13012832788" <CR> (TEXT MODE)
ABCD<ctrl-Z/ESC>
+CMGW:1
OK
7.16
AT+CMGD
Delete message
Description
SIM5320_ATC_V2.02
183
7/28/2014
This command is used to delete message from preferred message storage <mem1> location
<index>. If <delflag> is present and not set to 0 then the ME shall ignore <index> and follow the
rules for <delflag> shown below.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGD=?
Responses
+CMGD: (list
<delflag>s)]
of
supported
<index>s)[,(list
of
supported
OK
Write Command
AT+CMGD=
<index>[,<delflag>]
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<delflag>
0 (or omitted) Delete the message specified in <index>.
1 Delete all read messages from preferred message storage, leaving unread messages and
stored mobile originated messages (whether sent or not) untouched.
2 Delete all read messages from preferred message storage and sent mobile originated
messages, leaving unread messages and unsent mobile originated messages untouched.
3 Delete all read messages from preferred message storage, sent and unsent mobile
originated messages leaving unread messages untouched.
4 Delete all messages from preferred message storage including unread messages.
NOTE: If set <delflag>=1, 2, 3 or 4, <index> is omitted, such as AT+CMGD=,1.
Examples
AT+CMGD=1
OK
7.17
AT+CMGRO
Description
SIM5320_ATC_V2.02
184
7/28/2014
This command is used to return message with location value <index> from message storage
<mem1> to the TE, but the messages status does not change.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGRO=?
Responses
OK
Write Command
AT+CMGRO=<index>
Responses
If
text
mode(AT+CMGF=1),command
successful
and
SMS-DELIVER:
+CMGRO:<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs
>, <sca>,<tosca>,<length>]<CR><LF><data>
OK
If text mode (AT+CMGF=1),command successful and
SMS-SUBMIT:
+CMGRO:<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp
>], <sca>,<tosca>,<length>]<CR><LF><data>
OK
If text mode(AT+CMGF=1),command successful and SMSSTATUS-REPORT:
+CMGRO: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
If text mode (AT+CMGF=1),command successful and
SMS-COMMAND:
+CMGRO:<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<lengt
h><CR><LF><data>]
OK
If text mode(AT+CMGF=1), command successful and CBM
storage:
+CMGRO:<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><
data>
OK
If PDU mode (AT+CMGF=0) and command successful:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
OK
Otherwise:
+CMS ERROR: <err>
SIM5320_ATC_V2.02
185
7/28/2014
Defined values
Refer to command AT+CMGR.
Examples
AT+CMGRO=6
+CMGRO:"REC READ","+8613917787249",,"06/07/10,12:09:38+32",145,4,0,0,"+86138002105
00",145,4
abcd
OK
7.18
Description
This command is used to change the message status. If the status is unread, it will be changed read.
Other statuses dont change.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGMT=?
Responses
OK
Write Command
AT+CMGMT=<index>
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
Examples
AT+CMGMT=1
OK
SIM5320_ATC_V2.02
186
7/28/2014
7.19
Description
This command is used to set valid period for sending short message.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMVP=?
Responses
+CMVP: (list of supported <vp>s)
OK
Read Command
AT+CMVP?
Responses
+CMVP:<vp>
OK
Write Command
AT+CMVP=<vp>
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<vp>
Validity period value:
0 to 143
(<vp>+1) x 5 minutes (up to 12 hours)
144 to 167
12 hours + (<vp>-143) x 30 minutes
168 to 196
(<vp>-166) x 1 day
197 to 255
(<vp>-192) x 1 week
Examples
AT+CMVP=167
OK
AT+CMVP?
+CMVP: 167
OK
7.20
AT+CMGRD
Description
SIM5320_ATC_V2.02
187
7/28/2014
This command is used to read message, and delete the message at the same time. It integrate
AT+CMGR and AT+CMGD, but it doesnt change the message status.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGRD=?
Responses
OK
Write Command
AT+CMGRD=<index>
Responses
If text mode(AT+CMGF=1),command successful and SMS-DELIVER:
+CMGRD:<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs
>, <sca>,<tosca>,<length>]<CR><LF><data>
OK
If text mode(AT+CMGF=1),command successful and SMS-SUBMIT:
+CMGRD:<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp
>], <sca>,<tosca>,<length>]<CR><LF><data>
OK
If text mode(AT+CMGF=1),command successful and SMS-STATUS- REPORT:
+CMGRD: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
If text mode(AT+CMGF=1),command successful and SMS-COMMAND:
+CMGRD:<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<lengt
h><CR><LF><data>]
OK
If text mode(AT+CMGF=1),command successful and CBM storage:
+CMGRD:<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><
data>
OK
If PDU mode(AT+CMGF=0) and command successful:
+CMGRD: <stat>,[<alpha>],<length><CR><LF><pdu>
OK
ERROR
+CMS ERROR: <err>
Defined values
SIM5320_ATC_V2.02
188
7/28/2014
Examples
AT+CMGRD=6
+CMGRD:"REC READ","+8613917787249",,"06/07/10,12:09:38+32",145,4,0,0, "+86138002105
00",145,4
How do you do
OK
7.21
AT+CMGSO
Description
This command is used to send message from a TE to the network (SMS-SUBMIT). But its
different from AT+CMGS. This command only need one time input, and wait for > needless.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGSO=?
Responses
OK
Write Command
If text mode (AT+CMGF=1):
AT+CMGSO=<da>[,<toda>
], <text>
If PDU mode (AT+CMGF
=0):
AT+CMGSO=<length>,<pd
ucontent>
Responses
+CMGSO: <mr>
OK
ERROR
Defined values
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
SIM5320_ATC_V2.02
189
7/28/2014
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length).
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<text>
Content of message.
<pducontent>
Content of message.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMGSO="10086","YECX"
+CMGSO: 128
OK
7.22
AT+CMGWO
Description
This command stores message (either SMS-DELIVER or SMS-SUBMIT) to memory storage
<mem2>. But its different from AT+CMGW. This command only need one time input, and wait for
> needless.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGWO=?
Responses
OK
Write Command
If text mode (AT+CMGF=
1):
AT+CMGWO=<da>[,<toda
>],<text>
If PDU mode (AT+CMGF
=0):
AT+CMGWO=<length>,<p
ducontent>
Responses
+CMGWO: <index>
SIM5320_ATC_V2.02
OK
ERROR
+CMS ERROR: <err>
190
7/28/2014
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<text>
Content of message.
<pducontent>
Content of message.
Examples
AT+CMGWO="13012832788","ABCD"
+CMGWO: 1
OK
7.23
AT+CMGSEX
Send message
Description
This command is used to send message from a TE to the network (SMS-SUBMIT).
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGSEX=?
Responses
OK
Write Command
If text mode (AT+CMGF=1):
AT+CMGSEX=<da>[,<toda
>][,<mr>,
<msg_seg>,
<msg_total>]<CR>Text is
entered.
<CTRL-Z/ESC>
Responses
If text mode (AT+CMGF=1) and sending successfully:
SIM5320_ATC_V2.02
+CMGSEX: <mr>
OK
If PDU mode(AT+CMGF=0) and sending successfully:
+CMGSEX: <mr>
OK
191
7/28/2014
If PDU mode(AT+CMGF=
0):
AT+CMGSEX=<length><C
R>
PDU is entered
<CTRL-Z/ESC>
If sending fails:
ERROR
If sending fails:
+CMS ERROR: <err>
Defined values
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (When first character of <da> is
+ (IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length)
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<msg_seg>
The segment number for long sms
<msg_total>
The total number of the segments for long sms. Its range is from 2 to 255.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: For
single SMS, it is 160 characters if the 7 bit GSM coding scheme is used; For multiple long sms, it is
153 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMGSEX="13012832788", 190, 1, 2<CR>(TEXT MODE)
> ABCD<ctrl-Z/ESC>
+CMGSEX: 190
OK
AT+CMGSEX="13012832788", 190, 2, 2<CR>(TEXT MODE)
> EFGH<ctrl-Z/ESC>
+CMGSEX: 190
OK
SIM5320_ATC_V2.02
192
7/28/2014
7.24
Description
This command is used to generate a new message reference which can be used by AT+CMGSEX.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMGENREF=?
Responses
OK
Execute Command
AT+CMGENREF
Responses
+CMGENREF: <mr>
OK
Defined values
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
Examples
AT+CMGENREF=?
OK
AT+CMGENREF
+CMGENREF:190
OK
7.25
AT+CMSSEX
Description
This command is used to send messages with location value <index1>,<index2>,<index3> from
preferred message storage <mem2> to the network (SMS-SUBMIT or SMS-COMMAND).The
max count of index is 13 one time.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
193
7/28/2014
AT+CMSSEX=?
OK
Write Command
AT+CMSSEX=
<index> [,<index >[, ]]
Responses
+CMSSEX: <mr>[,<mr>[,]]
OK
ERROR
If sending fails:
[+CMSSEX: <mr>[,<mr>[,]]]
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMSSEX=0,1
+CMSSEX: 239,240
OK
AT+CMSSEX=0,1
+CMSSEX: 238
+CMS ERROR: Invalid memory index
7.26
AT+CMSSEXM
Description
This command is used to send message with location value <index> from preferred message
storage <mem2> to the network (SMS-SUBMIT or SMS-COMMAND).The DA is the PB index in
the specified PB storage max to 10.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
SIM5320_ATC_V2.02
194
7/28/2014
Test Command
AT+CMSSEXM=?
Responses
OK
Write Command
AT+CMSSEXM=
<index>,
<storage>,<pb_index1>
[,<pb_index2>[,<>]]
Responses
+CMSSEXM: <pb_index1>,<mr>
+CMSSEXM: <pb_index2>,<mr>
OK
ERROR
If sending fails:
+CMSSEXM: <pb_index1>,<err>
+CMSSEXM: <pb_index2>,<err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<storage>
Values reserved by the present document:
"DC"
ME dialed calls list
Capacity: max. 10 entries
AT+CPBW command is not applicable to this storage.
"MC"
ME missed (unanswered received) calls list
Capacity: max. 10 entries
AT+CPBW command is not applicable to this storage.
"RC"
ME received calls list
Capacity: max. 10 entries
AT+CPBW command is not applicable to this storage.
"SM"
SIM phonebook
Capacity: depending on SIM card
"ME"
Mobile Equipment phonebook
Capacity: max. 100 entries
"FD"
SIM fixdialling-phonebook
Capacity: depending on SIM card
"ON"
MSISDN list
Capacity: depending on SIM card
"LD"
Last number dialed phonebook
Capacity: depending on SIM card
AT+CPBW command is not applicable to this storage.
"EN"
Emergency numbers
SIM5320_ATC_V2.02
195
7/28/2014
Examples
AT+CMSSEXM=0,sm,1,3
+CMSSEXM: 1,241
+CMSSEXM: 3,242
OK
AT+CMSSEXM=0,sm,1,2
+CMSSEXM: 1,invalid index
+CMSSEXM: 2,243
OK
7.27
Description
This command is used to set if try to match alpha In PB when read message.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSALPHA=?
Responses
+ CSALPHA: (list of supported <setting>s)
OK
Read Command
AT+ CSALPHA?
Responses
+ CSALPHA: < setting >
OK
SIM5320_ATC_V2.02
196
7/28/2014
Write Command
AT+ CSALPHA =< setting >
Responses
OK
Execution Command
Responses
Set default value (<setting >=1):
OK
AT+ CSALPHA
Defined values
< setting >
0 not to match alpha in PB
1 try to match alpha in PB
Examples
AT+ CSALPHA?
+ CSALPHA: 0
OK
AT+ CSALPHA =?
+ CSALPHA: (0-1)
OK
AT+ CSALPHA =1
OK
7.28
AT+CMGREX
Read message
Description
This command is used to return message with location value <index> from message storage
<mem1> to the TE.This command supports long SMS operation.
SIM PIN
YES
References
3GPP TS 27.005
Syntax
Test Command
AT+CMGREX=?
Responses
OK
Write Command
AT+CMGREX=<index>
Responses
If text mode (AT+CMGF=1), command successful and SMSDELIVER:
+CMGREX:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>, <sca>,
SIM5320_ATC_V2.02
197
7/28/2014
<tosca>,
<length>],<mr>,
<msg_total><CR><LF><data>
<msg_seg>,
OK
If text mode (AT+CMGF=1), command successful and SMSSUBMIT:
+CMGREX:<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<v
p>],
<sca>,
<tosca>,<length>],<mr>,
<msg_seg>,
<msg_total><CR><LF><data>
OK
If text mode (AT+CMGF=1), command successful and SMSSTATUS-REPORT:
+CMGREX: <stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
OK
If text mode (AT+CMGF=1), command successful and SMSCOMMAND:
+CMGREX:<stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>],[<toda>],<len
gth>]<CR><LF><data>
OK
If text mode (AT+CMGF=1), command successful and CBM
storage:
+CMGREX:<stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF>
<data>
OK
If PDU mode (AT+CMGF=0) and Command successful:
+CMGREX:<stat>,[<alpha>],<length><CR><LF><pdu>
OK
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<stat>
1.Text Mode
"REC UNREAD" received unread message (i.e. new message)
"REC READ"
received read message
"STO UNSENT" stored unsent message
"STO SENT"
stored sent message
2. PDU Mode
0 received unread message (i.e. new message)
1 received read message.
SIM5320_ATC_V2.02
198
7/28/2014
2
3
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <tooa>.
<alpha>
String type alphanumeric representation of <da> or <oa> corresponding to the entry found in MT
phonebook; implementation of this feature is manufacturer specific; used character set should be
the one selected with command Select TE Character Set AT+CSCS.
<scts>
TP-Service-Centre-Time-Stamp in time-string format (refer <dt>).
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer <toda>).
<fo>
Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer
format. SMS status report is supported under text mode if <fo> is set to 49.
<pid>
Protocol Identifier
GSM 03.40 TP-Protocol-Identifier in integer format
0255
<dcs>
Depending on the command or result code: SMS Data Coding Scheme (default 0), or Cell
Broadcast Data Coding Scheme in integer format.
<sca>
RP SC address Address-Value field in string format; BCD numbers (or GSM 7 bit default alphabet
characters) are converted to characters of the currently selected TE character set, type of address
given by <tosca>.
<tosca>
RP SC address Type-of-Address octet in integer format (default refer <toda>).
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length).
<data>
In the case of SMS: TP-User-Data in text mode responses; format:
1 If <dcs> indicates that GSM 7 bit default alphabet is used and <fo> indicates that
TP-User-Data-Header-Indication is not set:
a. If TE character set other than "HEX": ME/TA converts GSM alphabet into current
TE character set.
b. If TE character set is "HEX": ME/TA converts each 7-bit character of GSM 7 bit
default alphabet into two IRA character long hexadecimal numbers. (e.g. character
SIM5320_ATC_V2.02
199
7/28/2014
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<vp>
Depending on SMS-SUBMIT <fo> setting: TP-Validity-Period either in integer format (default
167) or in time-string format (refer <dt>).
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<ra>
Recipient Address
GSM 03.40 TP-Recipient-Address Address-Value field in string format;BCD numbers(or GSM
default alphabet characters) are converted to characters of the currently selected TE character
set(refer to command AT+CSCS);type of address given by <tora>
<tora>
Type of Recipient Address
GSM 04.11 TP-Recipient-Address Type-of-Address octet in integer format (default refer <toda>)
<dt>
Discharge Time
GSM 03.40 TP-Discharge-Time in time-string format:yy/MM/dd,hh:mm:ss+zz,where characters
indicate year (two last digits),month,day,hour,minutes,seconds and time zone.
<st>
Status
GSM 03.40 TP-Status in integer format
0255
<ct>
Command Type
SIM5320_ATC_V2.02
200
7/28/2014
Examples
AT+CMGREX=1
+CMGREX: "STO UNSENT","+10011",,145,17,0,0,167,"+8613800100500",145,4,190,1,2
Hello World
OK
7.29
AT+CMGWEX
Description
This command is used to store message (either SMS-DELIVER or SMS-SUBMIT) to memory
storage <mem2>. This command supports long SMS operation.
SIM PIN
References
SIM5320_ATC_V2.02
201
7/28/2014
YES
3GPP TS 27.005
Syntax
Test Command
AT+CMGWEX=?
Responses
OK
Write Command
If text mode(AT+CMGF=1):
AT+CMGWEX=<oa>/<da>[
,<tooa>/<toda>[,<stat>[,<mr
>,
<msg_seg>,
<msg_total>]]]<CR>Text is
entered.
<CTRL-Z/ESC>
If PDU mode(AT+CMGF=
0):
AT+CMGWEX=<length>[,<
stat>]<CR>PDU is entered.
<CTRL-Z/ESC>
Responses
+CMGWEX: <index>
OK
ERROR
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<oa>
Originating-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <tooa>.
<tooa>
TP-Originating-Address, Type-of-Address octet in integer format. (default refer <toda>).
<da>
Destination-Address, Address-Value field in string format; BCD numbers (or GSM 7 bit default
alphabet characters) are converted to characters of the currently selected TE character set, type of
address given by <toda>.
<toda>
TP-Destination-Address, Type-of-Address octet in integer format. (when first character of <da> is +
(IRA 43) default is 145, otherwise default is 129). The range of value is from 128 to 255.
<length>
Integer type value indicating in the text mode (AT+CMGF=1) the length of the message body
<data> > (or <cdata>) in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP
data unit in octets. (i.e. the RP layer SMSC address octets are not counted in the length).
<stat>
SIM5320_ATC_V2.02
202
7/28/2014
1. Text Mode:
"STO UNSENT" stored unsent message
"STO SENT"
stored sent message
2. PDU Mode:
2 stored unsent message
3 stored sent message
<mr>
Message Reference
GSM 03.40 TP-Message-Reference in integer format.
<msg_seg>
The segment number for long sms
<msg_total>
The total number of the segments for long sms. Its range is from 2 to 255.
NOTE: In text mode, the maximum length of an SMS depends on the used coding scheme: It is
160 characters if the 7 bit GSM coding scheme is used.
Examples
AT+CMGWEX="13012832788" ,,STO SENT,190, 1, 2<CR> (TEXT MODE)
ABCD<ctrl-Z/ESC>
+CMGWEX:1
OK
SIM5320_ATC_V2.02
203
7/28/2014
8.1
AT+CPBS
Description
This command selects the active phonebook storage,i.e.the phonebook storage that all subsequent
phonebook commands will be operating on.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPBS=?
Responses
+CPBS: (list of supported <storage>s)
OK
Read Command
AT+CPBS?
Responses
+CPBS: <storage>[,<used>,<total>]
OK
+CME ERROR: <err>
Write Command
AT+CPBS=<storage>
Responses
OK
ERROR
+CME ERROR: <err>
Execution Command
Responses
AT+CPBS
Defined values
<storage>
Values reserved by the present document:
"DC"
ME dialed calls list
Capacity: max. 10 entries
AT+CPBW command is not applicable to this storage.
"MC"
ME missed (unanswered received) calls list
Capacity: max. 10 entries
AT+CPBW command is not applicable to this storage.
"RC"
"SM"
"ME"
"FD"
"ON"
"LD"
"EN"
"SN"
<used>
Integer type value indicating the number of used locations in selected memory.
<total>
Integer type value indicating the total number of locations in selected memory.
Examples
AT+CPBS=?
+CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON","SN")
OK
AT+CPBS=SM
OK
AT+CPBS?
+CPBS: "SM",1,200
OK
8.2
AT+CPBR
Description
This command gets the record information from the selected memory storage in phonebook. If the
storage is selected as SM then the command will return the record in SIM phonebook, the same to
others.
SIM5320_ATC_V2.02
205
7/28/2014
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPBR=?
Responses
+CPBR: (<minIndex>-<maxIndex>), [<nlength>], [<tlength>]
OK
+CME ERROR: <err>
Write Command
AT+CPBR=
<index1>[,<index2>]
Responses
[+CPBR: <index1>,<number>,<type>,<text>[<CR><LF>
+CPBR: <index2>,<number>,<type>,<text>[]]]
OK
ERROR
+CME ERROR: <err>
Defined values
<index1>
Integer type value in the range of location numbers of phonebook memory.
<index2>
Integer type value in the range of location numbers of phonebook memory.
<index>
Integer type.the current position number of the Phonebook index.
<minIndex>
Integer type the minimum <index> number.
<maxIndex>
Integer type the maximum <index> number
<number>
String type, phone number of format <type>, the maximum length is <nlength>.
<type>
Type of phone number octet in integer format, default 145 when dialing string includes international
access code character "+", otherwise 129.
<text>
String type field of maximum length <tlength>; often this value is set as name.
<nlength>
Integer type value indicating the maximum length of field <number>.
<tlength>
Integer type value indicating the maximum length of field <text>.
Examples
SIM5320_ATC_V2.02
206
7/28/2014
AT+CPBS?
+CPBS: "SM",2,200
OK
AT+CPBR=1,10
+CPBR: 1,"1234567890",129,"James"
+CPBR: 2,"0987654321",129,"Kevin"
OK
8.3
Description
This command finds the record in phonebook (from the current phonebook memory storage
selected with AT+CPBS) which alphanumeric field has substring <findtext>.If <findtext> is null, it
will lists all the entries.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPBF=?
Responses
+CPBF: [<nlength>],[<tlength>]
OK
+CME ERROR: <err>
Write Command
AT+CPBF=[<findtext>]
Responses
[+CPBF: <index1>,<number>,<type>,<text>[<CR><LF>
+CPBF: <indexN>,<number>,<type>,<text>[]]]
OK
ERROR
+CME ERROR: <err>
Defined values
<findtext>
String type, this value is used to find the record. Character set should be the one selected with
command AT+CSCS.
<index>
Integer type values in the range of location numbers of phonebook memory.
<number>
String type, phone number of format <type>, the maximum length is <nlength>.
<type>
SIM5320_ATC_V2.02
207
7/28/2014
Type of phone number octet in integer format, default 145 when dialing string includes international
access code character "+", otherwise 129.
<text>
String type field of maximum length <tlength>; Often this value is set as name.
<nlength>
Integer type value indicating the maximum length of field <number>.
<tlength>
Integer type value indicating the maximum length of field <text>.
Examples
AT+CPBF=" James "
+CPBF: 1,"1234567890",129," James "
OK
8.4
Description
This command writes phonebook entry in location number <index> in the current phonebook
memory storage selected with AT+CPBS.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CPBW=?
Responses
+CPBW:(list of supported <index>s),[<nlength>],
(list of supported <type>s),[<tlength>]
OK
+CME ERROR:<err>
Write Command
AT+CPBW=[<index>][,<nu
mber>[,<type>[,<text>]]]
Responses
OK
ERROR
+CME ERROR:<err>
Defined values
<index>
Integer type values in the range of location numbers of phonebook memory.If <index> is not given,
the first free entry will be used. If <index> is given as the only parameter, the phonebook entry
specified by <index> is deleted.If record number <index> already exists, it will be overwritten.
SIM5320_ATC_V2.02
208
7/28/2014
<number>
String type, phone number of format <type>, the maximum length is <nlength>.It must be an
non-empty string.
<type>
Type of address octet in integer format, The range of value is from 128 to 255. If <number>
contains a leading + <type> = 145 (international) is used.Supported value are:
128 Restricted number type includes unknown type and format
145 when dialling string includes international access code character +
161 national number.The network support for this type is optional
177 network specific number,ISDN format
129 otherwise
NOTE: Other value refer TS 24.008 [8] subclause 10.5.4.7.
<text>
String type field of maximum length <tlength>; character set as specified by command Select TE
Character Set AT+CSCS.
<nlength>
Integer type value indicating the maximum length of field <number>.
<tlength>
Integer type value indicating the maximum length of field <text>.
NOTE: If the parameters of <type> and <text> are omitted and the first character of <number> is
+it will specify <type> as 145(129 if the first character isnt +) and <text> as NULL.
Examples
AT+CPBW=3,"88888888",129,"John"
OK
AT+CPBW=,6666666,129,mary
OK
AT+CPBW=1
OK
8.5
AT+CNUM
Subscriber number
Description
Execution command returns the MSISDNs related to the subscriber (this information can be stored
in the SIM or in the ME). If subscriber has different MSISDN for different services, each MSISDN
is returned in a separate line.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
SIM5320_ATC_V2.02
209
7/28/2014
Test Command
AT+CNUM=?
Responses
OK
Execution Command
AT+CNUM
Responses
[+CNUM: <alpha>,<number>,<type>[<CR><LF>
+CNUM: <alpha>, <number>,<type> [...]]]
OK
+CME ERROR: <err>
Defined values
<alpha>
Optional alphanumeric string associated with <number>, used character set should be the one
selected with command Select TE Character Set AT+CSCS.
<number>
String type phone number of format specified by <type>.
<type>
Type of address octet in integer format.see also AT+CPBR <type>
Examples
AT+CNUM
+CNUM: ,"13697252277",129
OK
8.6
Description
This command allows user to define emergency number list which stored in ME.
NOTE: These emergency numbers in this list only be available without SIMCard or with P
IN locked.Once SIM card is here without pin locked, this list will not be accessable, but c
ustomer could access another emergency number list from phone book on EN entry, pleas
e refer to command AT+CPBS. This EN list is usually released by SIM card provider.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CEMNLIST=?
Responses
+CEMNLIST: (list of supported <mode>s), <nlength>,<total>
OK
Read Command
Responses
SIM5320_ATC_V2.02
210
7/28/2014
AT+CEMNLIST?
Write Command
AT+CEMNLIST=<mode>[,
<emergency numbers>]
Responses
OK
Defined values
<mode>
0
disable
1
enable
2
edit emergency numbers
<nlength>
Integer type value indicating the maximum length of single emergency number.
<total>
Integer type value indicating the total number of emergency numbers.
<emergency numbers>
Emergency numbers list, string type.
<emergency number> includes all of emergency numbers,every emergency number is seperated by
comma,for example 911,112.
Examples
AT+CEMNLIST=?
+CEMNLIST: (0-2),10,30
OK
AT+CEMNLIST?
+CEMNLIST: 1,911,112
OK
AT+CEMNLIST=1
OK
AT+CEMNLIST=2,911,112
OK
SIM5320_ATC_V2.02
211
7/28/2014
9.1
Description
This command controls the presentation of an unsolicited result code +CGREG: <stat> when
<n>=1 and there is a change in the MT's GPRS network registration status.
The read command returns the status of result code presentation and an integer <stat> which shows
Whether the network has currently indicated the registration of the MT.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CGREG=?
Responses
+CGREG: (list of supported <n>s)
OK
Read Command
AT+CGREG?
Responses
+CGREG: <n>,<stat>[,<lac>,<ci>]
OK
Write Command
AT+CGREG=<n>
Execution Command
AT+CGREG
Responses
OK
Responses
Set default value:
OK
Defined values
<n>
0
1
2
<stat>
0 not registered, ME is not currently searching an operator to register to
1 registered, home network
2 not registered, but ME is currently trying to attach or searching an operator to register
to
3 registration denied
SIM5320_ATC_V2.02
212
7/28/2014
4 unknown
5 registered, roaming
<lac>
Two bytes location area code in hexadecimal format (e.g.00C3 equals 193 in decimal).
<ci>
Cell ID in hexadecimal format.
GSM : Maximum is two byte
WCDMA : Maximum is four byte
Examples
AT+CGREG=?
+CGREG: (0-1)
OK
AT+CGREG?
+CGREG: 0,0
OK
9.2
Description
The write command is used to attach the MT to, or detach the MT from, the Packet Domain service.
The read command returns the current Packet Domain service state.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGATT=?
Responses
+CGATT: (list of supported <state>s)
OK
Read Command
AT+CGATT?
Responses
+CGATT: <state>
OK
Write Command
AT+CGATT=<state>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
SIM5320_ATC_V2.02
213
7/28/2014
<state>
Indicates the state of Packet Domain attachment:
0 detached
1 attached
Examples
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=1
OK
9.3
Description
The write command is used to activate or deactivate the specified PDP context (s).
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGACT=?
Responses
+CGACT: (list of supported <state>s)
OK
Read Command
AT+CGACT?
Responses
+CGACT: [<cid>, <state>[<CR><LF>
+CGACT: <cid>, <state>
[...]]]
OK
Write Command
AT+CGACT=<state>
[,<cid>]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<state>
Indicates the state of PDP context activation:
0 deactivated
1 activated
SIM5320_ATC_V2.02
214
7/28/2014
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command).
116
Examples
AT+CGACT?
+CGACT: 1,0
OK
AT+CGACT=?
+CGACT: (0,1)
OK
AT+CGACT=0,1
OK
9.4
Description
The set command specifies PDP context parameter values for a PDP context identified by the
(local) context identification parameter <cid>. The number of PDP contexts that may be in a
defined state at the same time is given by the range returned by the test command. A special form of
the write command (AT+CGDCONT=<cid>) causes the values for context <cid> to become
undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGDCONT=?
Responses
+CGDCONT: (range of supported<cid>s),<PDP_type>,,,(list of
supported <d_comp>s),(list of supported <h_comp>s)
OK
ERROR
Read Command
AT+CGDCONT?
Responses
+CGDCONT: [<cid>, <PDP_type>, <APN>,<PDP_addr>,
<d_comp>, <h_comp>[<CR><LF>
+CGDCONT: <cid>, <PDP_type>, <APN>, <PDP_addr>,
<d_comp>, <h_comp>[...]]]
OK
ERROR
SIM5320_ATC_V2.02
215
7/28/2014
Write Command
AT+CGDCONT=
<cid>[,<PDP_type>
[,<APN>[,<PDP_addr>
[,<d_comp>[,<h_comp>]]]]]
Responses
OK
Execution Command
AT+CGDCONT
Responses
OK
ERROR
ERROR
Defined values
<cid>
(PDP Context Identifier) a numeric parameter which 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.
116
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6
<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.
<PDP_addr>
A string parameter that identifies the MT in the address space applicable to the PDP.
Read 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 command AT+CGPADDR.
<d_comp>
A numeric parameter that controls PDP data compression, this value may depend on platform:
0 off (default if value is omitted)
1 on
2 V.42bis
<h_comp>
A numeric parameter that controls PDP header compression, this value may depend on platform:
0 off (default if value is omitted)
1 on
2 RFC1144
3 RFC2507
4 RFC3095
Examples
SIM5320_ATC_V2.02
216
7/28/2014
AT+CGDCONT?
+CGDCONT: 1,"IP","","0.0.0.0",0,0
OK
AT+CGDCONT=?
+CGDCONT: (1-16),"IP",,,(0-2),(0-4)
+CGDCONT: (1-16),"PPP",,,(0-2),(0-4)
+CGDCONT: (1-16),"IPV6",,,(0-2),(0-4)
OK
9.5
Description
The set command specifies PDP context parameter values for a Secondary PDP context identified
by the (local) context identification parameter, <cid>. The number of PDP contexts that may be in a
defined state at the same time is given by the range returned by the test command. A special form of
the set command, AT+CGDSCONT=<cid> causes the values for context number <cid> to become
undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGDSCONT=?
Responses
+CGDSCONT: (range of supported <cid>s),(list of <p_cid>s for
active primary contexts),(list of supported <d_comp>s),(list of
supported <h_comp>s)
OK
Read Command
AT+CGDSCONT?
Responses
+CGDSCONT: <cid>,<p_cid>,<d_comp>,<h_comp>
[<CR><LF>+CGDSCONT: <cid>,<p_cid>,<d_comp>,<h_comp>
[...]]
OK
Write Command
AT
+CGDSCONT=<cid>[,<p_ci
d>[,<d_comp>[,<h_comp>]]
]
Responses
OK
ERROR
Defined values
SIM5320_ATC_V2.02
217
7/28/2014
<cid>
a numeric parameter which 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.
NOTE: The <cid>s for network-initiated PDP contexts will have values outside the ranges
indicated for the <cid> in the test form of the commands +CGDCONT and +CGDSCONT.
<p_cid>
a numeric parameter which specifies a particular PDP context definition which has been specified
by use of the +CGDCONT command. The parameter is local to the TE-MT interface. The list of
permitted values is returned by the test form of the command.
<d_comp>
a numeric parameter that controls PDP data compression (applicable for SNDCPonly) (refer
3GPP TS 44.065 [61])
0
off
1
on (manufacturer preferred compression)
2
V.42bis
Other values are reserved.
<h_comp>
a numeric parameter that controls PDP header compression (refer 3GPP TS 44.065 [61] and
3GPP TS 25.323 [62])
0
off
1
on (manufacturer preferred compression)
2
RFC1144 (applicable for SNDCP only)
3
RFC2507
4
RFC3095 (applicable for PDCP only)
Other values are reserved.
Examples
AT+CGDSCONT?
+CGDSCONT: 2,1,0,0
OK
AT+CGDSCONT=2,1
OK
AT+CGDSCONT=?
+CGDSCONT: (1-16),(1),"IP",,,(0-2),(0-4)
+CGDSCONT: (1-16),(1),"PPP",,,(0-2),(0-4)
+CGDSCONT: (1-16),(1),"IPV6",,,(0-2),(0-4)
OK
SIM5320_ATC_V2.02
218
7/28/2014
9.6
Description
This command allows the TE to specify a Packet Filter - PF for a Traffic Flow Template - TFT that
is used in the GGSN in UMTS/GPRS and Packet GW in EPS for routing of packets onto different
QoS flows towards the TE. The concept is further described in the 3GPP TS 23.060 [47]. A TFT
consists of from one and up to 16 Packet Filters, each identified by a unique <packet filter
identifier>. A Packet Filter also has an <evaluation precedence index> that is unique within all TFTs
associated with all PDP contexts that are associated with the same PDP address.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGTFT=?
Responses
+CGTFT: <PDP_type>,(list
of
supported
<packet
filter
identifier>s),(list
of
supported
<evaluation
precedence
index>s),(list of supported <source address and subnet
mask>s),(list of supported <protocol number (ipv4) / next header
(ipv6)>s),(list of supported <destination port range>s),(list of
supported <source port range>s),(list of supported <ipsec security
parameter index (spi)>s),(list of supported <type of service (tos)
(ipv4) and mask / traffic class (ipv6) and mask>s),(list of supported
<flow label (ipv6)>s),(list of supported <direction>s)
[<CR><LF>+CGTFT: <PDP_type>,(list of supported <packet filter
identifier>s),(list
of
supported
<evaluation
precedence
index>s),(list of supported <source address and subnet
mask>s),(list of supported <protocol number (ipv4) / next header
(ipv6)>s),(list of supported <destination port range>s),(list of
supported <source port range>s),(list of supported <ipsec security
parameter index (spi)>s),(list of supported <type of service (tos)
(ipv4) and mask / traffic class (ipv6) and mask>s),(list of supported
<flow label (ipv6)>s),(list of supported <direction>s)
[...]]
OK
Read Command
AT+CGTFT?
SIM5320_ATC_V2.02
Responses
+CGTFT: <cid>,<packet filter identifier>,<evaluation precedence
index>,<source address and subnet mask>,<protocol number (ipv4)
/ next header (ipv6)>,<destination port range>,<source port
range>,<ipsec security parameter index (spi)>,<type of service (tos)
219
7/28/2014
Responses
OK
ERROR
Defined values
<cid>
a numeric parameter which specifies a particular PDP context definition (see theAT+CGDCONT
and AT+CGDSCONT commands).
<packet filter identifier>
a numeric parameter, value range from 1 to 16.
<evaluation precedence index>
a numeric parameter. The value range is from 0 to 255.
<source address and subnet mask>
string type The string is given as dot-separated numeric (0-255) parameters on the form:
"a1.a2.a3.a4.m1.m2.m3.m4" for IPv4 or
"a1.a2.a3.a4.a5.a6.a7.a8.a9.a10.a11.a12.a13.a14.a15.a16.m1.m2.m3.m4.m5.m6.m7.m8.m9.m10.m1
1.m12.m13.m14.m15.m16", for IPv6.
<protocol number (ipv4) / next header (ipv6)>
SIM5320_ATC_V2.02
220
7/28/2014
Examples
AT+CGTFT?
+CGTFT: 2,1,0,"74.125.71.99.255.255.255.255",0,0.0,0.0,0,0.0,0
OK
AT+CGTFT=2,1,0,"74.125.71.99.255.255.255.255"
OK
AT+CGTFT=?
+CGTFT: "IP",(1-2),(0-255),,(0-255),(0-65535.0-65535),(0-65535.0-65535),(0-FFFFF
FFF),(0-255.0-255),(0-FFFFF)
+CGTFT: "PPP",(1-2),(0-255),,(0-255),(0-65535.0-65535),(0-65535.0-65535),(0-FFFF
FFFF),(0-255.0-255),(0-FFFFF)
+CGTFT: "IPV6",(1-2),(0-255),,(0-255),(0-65535.0-65535),(0-65535.0-65535),(0-FFF
FFFFF),(0-255.0-255),(0-FFFFF)
OK
9.7
AT+CGQREQ
Description
This command allows the TE to specify a Quality of Service Profile that is used when the MT sends
an Activate PDP Context Request message to the network.. A special form of the set command
(AT+CGQREQ=<cid>) causes the requested profile for context number <cid> to become
SIM5320_ATC_V2.02
221
7/28/2014
undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGQREQ=?
Responses
+CGQREQ: <PDP_type>, (list of supported <precedence>s), (list
of supported <delay>s), (list of supported <reliability>s) , (list of
supported <peak>s), (list of supported <mean>s) [<CR><LF>
+CGQREQ: <PDP_type>, (list of supported <precedence>s), (list
of supported <delay>s), (list of supported <reliability>s) , (list of
supported <peak>s), (list of supported <mean>s)
[]]
OK
ERROR
Read Command
AT+CGQREQ?
Responses
+CGQREQ: [<cid>, <precedence >, <delay>, <reliability>,
<peak>, <mean>[<CR><LF>
+CGQREQ: <cid>, <precedence >, <delay>, <reliability.>, <peak>,
<mean>[]]]
OK
ERROR
Write Command
AT+CGQREQ=<cid>
[,<precedence>
[,<delay>[,<reliability>
[,<peak> [,<mean>]]]]]
Responses
OK
Execution Command
Responses
AT+CGQREQ
OK
ERROR
ERROR
Defined values
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command). The range is from 1 to 16.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
SIM5320_ATC_V2.02
222
7/28/2014
SIM5320_ATC_V2.02
223
7/28/2014
5
6
7
8
9
10
11
12
13
14
15
16
17
18
31
Examples
AT+CGQREQ?
+CGQREQ:
OK
AT+CGQREQ=?
+CGQREQ: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQREQ: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQREQ: "IPV6",(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
9.8
AT+CGEQREQ
Description
The test command returns values supported as a compound value.
The read command returns the current settings for each defined context for which a QOS was
explicitly specified.
The write command allows the TE to specify a Quality of Service Profile for the context identified
by the context identification parameter <cid> which is used when the MT sends an Activate PDP
Context Request message to the network.
A special form of the write command, AT+CGEQREQ=<cid> causes the requested profile for
context number <cid> to become undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
SIM5320_ATC_V2.02
224
7/28/2014
Test Command
AT+CGEQREQ=?
Responses
+CGEQREQ: <PDP_type>,(list of supported <Traffic class>s),(list
of supported <Maximum bitrate UL>s),(list of supported <Maxim
um bitrate DL>s),(list of supported <Guaranteed bitrate UL>s,(list
of supported <Guaranteed bitrate DL>s),(list of supported <Deliv
ery order>s),(list of supported <Maximum SDU size>s),(list of
supported <SDU error ratio>s),(list of supported <Residual bit error
Ratio>s),(list of supported <Delivery of erroneous SDUs>s),(list of
Supported <Transfer delay>s),(list of supported <Traffic handling
priority>s)
OK
Read Command
AT+CGEQREQ?
Responses
+CGEQREQ: [<cid>,<Traffic class>,<Maximum bitrate UL>,<Ma
ximum bitrate DL>,<Guaranteed bitrate UL>,<Guaranteed bitrate
DL>,<Delivery order>,<Maximum SDU size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>][<CR><LF>
+CGEQREQ: <cid>,<Traffic class>,<Maximum bitrate UL>,<Ma
ximum bitrate DL>,<Guaranteed bitrate UL>,<Guaranteed bitrate
DL>,<Delivery order>,<Maximum SDU size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>[]]
OK
Write Command
AT+CGEQREQ=<cid>[,<Tr
affic class>[,<Maximum bit
rate UL>[,<Maximum bitrat
e DL>[,<Guaranteed bitrate
UL>[,<Guaranteed bitrate
DL>[,<Delivery order>[,<M
aximum SDU size>[,<SDU
error ratio>[,<Residual bit
error ratio>[,<Delivery of e
rroneous SDUs>[,<Transfer
delay>[,<Traffic handling p
riority>]]]]]]]]]]]]
Responses
OK
Execution Command
Responses
AT+CGEQREQ
OK
ERROR
Defined values
<cid>
SIM5320_ATC_V2.02
225
7/28/2014
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands. The range is from 1 to 16.
<Traffic class>
0 conversational
1 streaming
2 interactive
3 background
4 subscribed value
<Maximum bitrate UL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(up-link traffic)at a
SAP. As an example a bitrate of 32kbit/s would be specified as 32(e.g. AT+CGEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Maximum bitrate DL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(down-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g. AT+CGEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate UL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(up-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate DL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(down-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Delivery order>
This parameter indicates whether the UMTS bearer shall provide in-sequence SDU delivery or not.
0
no
1 yes
2
subscribed value
<Maximum SDU size>
This parameter indicates the maximum allowed SDU size in octets.
The range is from 0 to 1520. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<SDU error ratio>
This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU
error ratio is defined only for conforming traffic.As an example a target SDU error ratio of 5*10-3
would be specified as 5E3(e.g.AT+CGEQREQ=..,5E3,).
SIM5320_ATC_V2.02
226
7/28/2014
SIM5320_ATC_V2.02
227
7/28/2014
IPV6
Examples
AT+CGEQREQ?
+CGEQREQ:
OK
AT+CGEQREQ=?
+CGEQREQ: "IP",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","1E
1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E
4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGEQREQ: "PPP",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","1
E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1
E4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGEQREQ: "IPV6",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","
1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","
1E4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
OK
9.9
AT+CGQMIN
Description
This command allows the TE to specify a minimum acceptable profile which is checked by the MT
against the negotiated profile returned in the Activate PDP Context Accept message.A special form
of the set command,AT+CGQMIN=<cid> causes the minimum acceptable profile for context
number <cid> to become undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGQMIN=?
Responses
+CGQMIN: <PDP_type>, (list of supported <precedence>s), (list
of supported <delay>s), (list of supported <reliability>s) , (list of
supported <peak>s), (list of supported <mean>s) [<CR><LF>
+CGQMIN: <PDP_type>, (list of supported <precedence>s), (list
of supported <delay>s), (list of supported <reliability>s) , (list of
supported <peak>s), (list of supported <mean>s)[]]
OK
ERROR
Read Command
SIM5320_ATC_V2.02
Responses
228
7/28/2014
AT+CGQMIN?
Write Command
AT+CGQMIN=
<cid>[,<precedence>
[,<delay>[,<reliability>
[,<peak> [,<mean>]]]]]
Responses
OK
Execution Command
AT+CGQMIN
Responses
OK
ERROR
Defined values
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command). The range is from 1 to 16.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6
<precedence>
A numeric parameter which specifies the precedence class:
0 network subscribed value
1 high priority
2 normal priority
3 low priority
<delay>
A numeric parameter which specifies the delay class:
0 network subscribed value
1 delay class 1
2 delay class 2
3 delay class 3
4 delay class 4
<reliability>
A numeric parameter which specifies the reliability class:
0 network subscribed value
1 Non real-time traffic,error-sensitive application that cannot cope with data loss
2 Non real-time traffic,error-sensitive application that can cope with infrequent data loss
SIM5320_ATC_V2.02
229
7/28/2014
Non real-time traffic,error-sensitive application that can cope with data loss, GMM/SM,and SMS
Real-time traffic,error-sensitive application that can cope with data loss
Real-time traffic error non-sensitive application that can cope with data loss
4
5
<peak>
A numeric parameter which specifies the peak throughput class:
0 network subscribed value
1 Up to 1000 (8 kbit/s)
2 Up to 2000 (16 kbit/s)
3 Up to 4000 (32 kbit/s)
4 Up to 8000 (64 kbit/s)
5 Up to 16000 (128 kbit/s)
6 Up to 32000 (256 kbit/s)
7 Up to 64000 (512 kbit/s)
8 Up to 128000 (1024 kbit/s)
9 Up to 256000 (2048 kbit/s)
<mean>
A numeric parameter which specifies the mean throughput class:
0
network subscribed value
1 100 (~0.22 bit/s)
2 200 (~0.44 bit/s)
3 500 (~1.11 bit/s)
4 1000 (~2.2 bit/s)
5 2000 (~4.4 bit/s)
6 5000 (~11.1 bit/s)
7
10000 (~22 bit/s)
8
20000 (~44 bit/s)
9
50000 (~111 bit/s)
10 100000 (~0.22 kbit/s)
11 200000 (~0.44 kbit/s)
12 500000 (~1.11 kbit/s)
13 1000000 (~2.2 kbit/s)
14 2000000 (~4.4 kbit/s)
15 5000000 (~11.1 kbit/s)
16 10000000 (~22 kbit/s)
17 20000000 (~44 kbit/s)
18 50000000 (~111 kbit/s)
31 optimization
Examples
AT+CGQMIN?
+CGQMIN:
SIM5320_ATC_V2.02
230
7/28/2014
OK
AT+CGQMIN=?
+CGQMIN: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQMIN: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQMIN: "IPV6",(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
9.10
AT+CGEQMIN
3G quality
of
service
profile
(minimum
acceptable)
Description
The test command returns values supported as a compound value.
The read command returns the current settings for each defined context for which a QOS was
explicitly specified.
The write command allow the TE to specify a Quallity of Service Profile for the context identified
by the context identification parameter <cid> which is checked by the MT against the negotiated
profile returned in the Activate/Modify PDP Context Accept message.
A special form of the write command, AT+CGEQMIN=<cid> causes the requested for context
number <cid> to become undefined.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGEQMIN=?
Responses
+CGEQMIN: <PDP_type>,(list of supported <Traffic class>s),(list
of supported <Maximum bitrate UL>s),(list of supported <Maxim
um bitrate DL>s),(list of supported <Guaranteed bitrate UL>s,(list
of supported <Guaranteed bitrate DL>s),(list of supported <Deliv
ery order>s),(list of supported <Maximum SDU size>s),(list of
supported <SDU error ratio>s),(list of supported <Residual bit error
Ratio>s),(list of supported <Delivery of erroneous SDUs>s),(list of
Supported <Transfer delay>s),(list of supported <Traffic handling
priority>s)
OK
Read Command
AT+CGEQMIN?
Responses
+CGEQMIN: [<cid>,<Traffic class>,<Maximum bitrate UL>,<Ma
ximum bitrate DL>,<Guaranteed bitrate UL>,<Guaranteed bitrate
DL>,<Delivery order>,<Maximum SDU size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>][<CR><LF>
SIM5320_ATC_V2.02
231
7/28/2014
Responses
OK
Execution Command
Responses
AT+CGEQMIN
OK
ERROR
Defined values
<cid>
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands. The range is from 1 to 16.
<Traffic class>
0 conversational
1 streaming
2 interactive
3 background
4 subscribed value
<Maximum bitrate UL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(up-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g. AT+CGEQMIN=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Maximum bitrate DL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(down-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g. AT+CGEQMIN=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
SIM5320_ATC_V2.02
232
7/28/2014
will be requested.
<Guaranteed bitrate UL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(up-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGEQMIN=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate DL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(down-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGEQMIN=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Delivery order>
This parameter indicates whether the UMTS bearer shall provide in-sequence SDU delivery or not.
0 no
1 yes
2 subscribed value
<Maximum SDU size>
This parameter indicates the maximum allowed SDU size inoctets.
The range is from 0 to 1520. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<SDU error ratio>
This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU
error ratio is defined only for conforming traffic.As an example a target SDU error ratio of 5*10-3
would be specified as 5E3(e.g.AT+CGEQMIN=..,5E3,).
0E0 subscribed value
1E2
7E3
1E3
1E4
1E5
1E6
1E1
<Residual bit error ratio>
This parameter indicates the target value for the undetected bit error ratio in the delivered SDUs. If
no error detection is requested,Residual bit error ratio indicates the bit error ratio in the delivered
SDUs.As an example a target residual bit error ratio of 5*10-3 would be specified as 5E3(e.g.
AT+CGEQMIN=,5E3,..).
0E0 subscribed value
5E2
1E2
5E3
SIM5320_ATC_V2.02
233
7/28/2014
4E3
1E3
1E4
1E5
1E6
6E8
<Delivery of erroneous SDUs>
This parameter indicates whether SDUs detected as erroneous shall be delivered or not.
0 no
1 yes
2 no detect
3 subscribed value
<Transfer delay>
This parameter indicates the targeted time between request to transfer an SDU at one SAP to its
delivery at the other SAP,in milliseconds.
The range is from 0 to 4000. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Traffic handling priority>
This parameter specifies the relative importance for handling of all SDUs belonging to the UMTS
Bearer compared to the SDUs of the other bearers.
The range is from 0 to 3. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6
Examples
AT+CGEQMIN?
+CGEQMIN:
OK
AT+CGEQMIN=?
+CGEQMIN: "IP",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","1E
1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E
4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGEQMIN: "PPP",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","1
E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1
E4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGEQMIN: "IPV6",(0-4),(0-384),(0-7168),(0-384),(0-7168),(0-2),(0-1520),("0E0","
1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","
1E4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
SIM5320_ATC_V2.02
234
7/28/2014
OK
9.11
Description
The command causes the MT to perform whatever actions are necessary to establish
communication between the TE and the network using one or more Packet Domain PDP types. This
may include performing a PS attach and one or more PDP context activations.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGDATA=?
Responses
+CGDATA: (list of supported <L2P>s)
OK
Write Command
AT+CGDATA=[<L2P>,[<ci
d>]]
Responses
CONNECT
NO CARRIER
OK
ERROR
+CME ERROR: <err>
Defined values
<L2P>
A string parameter that indicates the layer 2 protocol to be used between the TE and MT.
PPP
Point-to-point protocol for a PDP such as IP
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command).
116
Examples
AT+CGDATA=?
+CGDATA: ("PPP")
OK
AT+CGDATA="PPP",1
CONNECT
SIM5320_ATC_V2.02
235
7/28/2014
9.12
AT+CGPADDR
Description
The write command returns a list of PDP addresses for the specified context identifiers.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGPADDR=?
Responses
+CGPADDR: (list of defined <cid>s)
OK
Write Command
AT+CGPADDR=
<cid>[,<cid>[,]]
Responses
[+CGPADDR:<cid>,<PDP_addr>[<CR><LF>
+CGPADDR: <cid>,<PDP_addr>[...]]]
OK
ERROR
Execution Command
AT+CGPADDR
Defined values
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command). If no <cid> is specified, the addresses for all defined contexts are returned.
116
<PDP_addr>
A string that identifies the MT in the address space applicable to the PDP. The address may be static
or dynamic. For a static address, it will be the one set by the AT+CGDCONT command when the
context was defined. For a dynamic address it will be the one assigned during the last PDP context
activation that used the context definition referred to by <cid>. <PDP_addr> is omitted if none is
available.
Examples
AT+CGPADDR =?
SIM5320_ATC_V2.02
236
7/28/2014
+CGPADDR: ( 1)
OK
AT+CGPADDR=1
+CGPADDR: 1,"0.0.0.0"
OK
9.13
AT+CGCLASS
Description
This command is used to set the MT to operate according to the specified GPRS mobile class.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGCLASS=?
Responses
+CGCLASS: (list of supported <class>s)
OK
ERROR
Read Command
AT+CGCLASS?
Responses
+CGCLASS: <class>
OK
ERROR
Write Command
AT+CGCLASS=<class>
Responses
OK
ERROR
Execution Command
AT+CGCLASS
Defined values
<class>
A string parameter which indicates the GPRS mobile class (in descending order of functionality)
A class A (highest)
Examples
AT+CGCLASS=?
SIM5320_ATC_V2.02
237
7/28/2014
+CGCLASS: ("A")
OK
AT+CGCLASS?
+CGCLASS: "A"
OK
9.14
Description
The write command enables or disables sending of unsolicited result codes, +CGEV from MT to
TE in the case of certain events occurring in the Packet Domain MT or the network. <mode>
controls the processing of unsolicited result codes specified within this command. <bfr> controls
the effect on buffered codes when <mode> 1 or 2 is entered. If a setting is not supported by the MT,
ERROR or +CME ERROR: is returned.
Read command returns the current <mode> and buffer settings.
Test command returns the modes and buffer settings supported by the MT as compound values.
SIM PIN
YES
References
3GPP TS 27.007
Syntax
Test Command
AT+CGEREP=?
Responses
+CGEREP: (list of supported <mode>s),(list of supported <bfr>s)
OK
Read Command
AT+CGEREP?
Responses
+CGEREP: <mode>,<bfr>
OK
Write Command
AT+CGEREP=
<mode>[,<bfr>]
Responses
OK
Execution Command
AT+CGEREP
ERROR
+CME ERROR: <err>
Responses
OK
Defined values
<mode>
0 buffer unsolicited result codes in the MT; if MT result code buffer is full, the oldest
ones can be discarded. No codes are forwarded to the TE.
1 discard unsolicited result codes when MT-TE link is reserved (e.g. in on-line data
mode); otherwise forward them directly to the TE.
SIM5320_ATC_V2.02
238
7/28/2014
<bfr>
0
buffer unsolicited result codes in the MT when MT-TE link is reserved (e.g. in on-line
data mode) and flush them to the TE when MT-TE link becomes available; otherwise
forward them directly to the TE.
MT buffer of unsolicited result codes defined within this command is cleared when
<mode> 1 or 2 is entered.
1 MT buffer of unsolicited result codes defined within this command is flushed to the TE
when <mode> 1 or 2 is entered (OK response shall be given before flushing the codes).
The following unsolicited result codes and the corresponding events are defined:
+CGEV: REJECT <PDP_type>, <PDP_addr>
A network request for PDP context activation occurred when the MT was unable to
report it to the TE with a +CRING unsolicited result code and was automatically
rejected.
+CGEV: NW REACT <PDP_type>, <PDP_addr>, [<cid>]
The network has requested a context reactivation. The <cid> that was used to reactivate
the context is provided if known to the MT.
+CGEV: NW DEACT <PDP_type>, <PDP_addr>, [<cid>]
The network has forced a context deactivation. The <cid> that was used to activate the
context is provided if known to the MT.
+CGEV: ME DEACT <PDP_type>, <PDP_addr>, [<cid>]
The mobile equipment has forced a context deactivation. The <cid> that was used to
activate the context is provided if known to the MT.
+CGEV: NW DETACH
The network has forced a Packet Domain detach. This implies that all active contexts
have been deactivated. These are not reported separately.
+CGEV: ME DETACH
The mobile equipment has forced a Packet Domain detach. This implies that all active
contexts have been deactivated. These are not reported separately.
+CGEV: NW CLASS <class>
The network has forced a change of MS class. The highest available class is reported
(see AT+CGCLASS).
+CGEV: ME CLASS <class>
The mobile equipment has forced a change of MS class. The highest available class is
reported (see AT+CGCLASS).
Examples
AT+CGEREP=?
+CGEREP: (0-2),(0-1)
OK
AT+CGEREP?
+CGEREP: 0,0
OK
SIM5320_ATC_V2.02
239
7/28/2014
9.15
AT+CGAUTH
of GPRS
Description
This command is used to set type of authentication for PDP-IP connections of GPRS.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CGAUTH=?
Responses
+CGAUTH:(range of supported <cid>s),(list of supported <auth _type> s),,
OK
ERROR
+CME ERROR: <err>
Read Command
AT+CGAUTH?
Responses
+CGAUTH: <cid>,<auth_type>[,<user>]<CR><LF>
+CGAUTH: <cid>,<auth_type>[,<user>]<CR><LF>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CGAUTH=<cid>[,<aut
h_type>[,<passwd>[,<user>]
]]
Execution Command
AT+CGAUTH
Responses
OK
ERROR
+CME ERROR: <err>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<cid>
Parameter specifies a particular PDP context definition. This is also used in other PDP
context-related commands.
116
SIM5320_ATC_V2.02
240
7/28/2014
<auth_type>
Indicate the type of authentication to be used for the specified context. If CHAP is selected another
parameter <passwd> needs to be specified. If PAP is selected two additional parameters <passwd>
and <user> need to specified.
0 none
1 PAP
2 CHAP
3 PAP or CHAP
<passwd>
Parameter specifies the password used for authentication.
<user>
Parameter specifies the user name used for authentication.
Examples
AT+CGAUTH=?
+CGAUTH: (1-16),(0-3),
OK
AT+CGAUTH=1,1,123,SIMCOM
OK
SIM5320_ATC_V2.02
241
7/28/2014
AT+STIN
SAT Indication
Description
Every time the SIM Application issues a Proactive Command, via the ME, the TA will receive an
indication. This indicates the type of Proactive Command issued.
AT+STGI must then be used by the TA to request the parameters of the Proactive Command from
the ME. Upon receiving the +STGI response from the ME, the TA must send AT+STGR to confirm
the execution of the Proactive Command and provide any required user response, e.g. a selected
menu item.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+STIN=?
Responses
OK
Read Command
AT+STIN?
Responses
+STIN: <cmd_id>
OK
Defined values
<cmd_id>
21 display text
22
get inkey
SIM5320_ATC_V2.02
242
7/28/2014
23
24
25
get input
select item
set up menu
Examples
AT+STIN?
+STIN: 24
OK
10.2
AT+STGI
Description
Regularly this command is used upon receipt of an URC "+STIN" to request the parameters of the
Proactive Command. Then the TA is expected to acknowledge the AT+STGI response with
AT+STGR to confirm that the Proactive Command has been executed. AT+STGR will also provide
any user information, e.g. a selected menu item. The Proactive Command type value specifies to
which "+STIN" the command is related.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+STGI=?
Responses
OK
Write Command
Responses
AT+STGI=<cmd_id>
If <cmd_id>=10:
OK
If <cmd_id>=21:
+STGI:21,<prio>,<clear_mode>,<text_len>,<text>
OK
If <cmd_id>=22:
+STGI: 22,< rsp_format>,< help>,<text_len>,<text>
OK
If <cmd_id>=23:
+STGI:23,<rsp_format>,<max_len>,<min_len>,<help>,<show>,<t
ext_len>,<text>
OK
If <cmd_id>=24:
+STGI:24,<help>,<softkey>,<present>,<title_len>,<title>,<item_n
um>
SIM5320_ATC_V2.02
243
7/28/2014
+STGI:24,<item_id>,<item_len>,<item_data>
[]
OK
If <cmd_id>=25:
+STGI:25,<help>,<softkey>,<title_len>,<title>,<item_num>
+STGI:25,<item_id>,<item_len>,<item_data>
[...]
OK
Defined values
<cmd_id>
21 display text
22
get inkey
23
get input
24
select item
25 set up menu
<prio>
Priority of display text
0 Normal priority
1 High priority
<clear_mode>
0 Clear after a delay
1 Clear by user
<text_len>
Length of text
<rsp_format>
0 SMS default alphabet
1 YES or NO
2 numerical only
3 UCS2
<help>
0 Help unavailable
1 Help available
<max_len>
Maximum length of input
<min_len>
Minimum length of input
<show>
0
Hide input text
1 Display input text
<softkey>
0 No softkey preferred
SIM5320_ATC_V2.02
244
7/28/2014
1 Softkey preferred
<present>
Menu presentation format available for select item
0 Presentation not specified
1 Data value presentation
2 Navigation presentation
<title_len>
Length of title
<item_num>
Number of items in the menu
<item_id>
Identifier of item
<item_len>
Length of item
<title>
Title in ucs2 format
<item_data>
Content of the item in ucs2 format
<text>
Text in ucs2 format.
Examples
AT+STGI=25
at+stgi=25
+STGI:25,0,0,10,"795E5DDE884C59295730",15
+STGI:25,1,8,"8F7B677E95EE5019"
+STGI:25,2,8,"77ED4FE17FA453D1"
+STGI:25,3,8,"4F1860E05FEB8BAF"
+STGI:25,4,8,"4E1A52A17CBE9009"
+STGI:25,5,8,"8D448D3963A88350"
+STGI:25,6,8,"81EA52A9670D52A1"
+STGI:25,7,8,"8F7B677E5F6994C3"
+STGI:25,8,8,"8BED97F367425FD7"
+STGI:25,9,10,"97F34E506392884C699C"
+STGI:25,10,8,"65B095FB59296C14"
+STGI:25,11,8,"94C358F056FE7247"
+STGI:25,12,8,"804A59294EA453CB"
+STGI:25,13,8,"5F005FC34F1195F2"
+STGI:25,14,8,"751F6D3B5E388BC6"
+STGI:25,21,12,"00530049004D53614FE1606F"
OK
SIM5320_ATC_V2.02
245
7/28/2014
10.3
AT+STGR
SAT respond
Description
The TA is expected to acknowledge the AT+STGI response with AT+STGR to confirm that the
Proactive Command has been executed. AT+STGR will also provide any user information, e.g. a
selected menu item.
SIM PIN
YES
References
Vendor
Syntax
Test Command
Responses
AT+STGR=?
OK
Write Command
Responses
AT+STGR=<cmd_id>[,<dat
a>]
OK
Defined values
<cmd_id>
22
get inkey
23
get input
24
select item
25 set up menu
83 session end by user
84
go backward
<data>
If <cmd_id>=22:
Input a character
If <cmd_id>=23:
Input a string.
If <rsp_format> is YES or NO, input of a character in case of ANSI character set requests one
byte, e.g. Y.
If <rsp_format> is numerical only, input the characters in decimal number, e.g. 123
If <rsp_faomat> is UCS2, requests a 4 byte string, e.g. 0031
<rsp_faomat> refer to the response by AT+STGI=23
If <cmd_id>=24:
Input the identifier of the item selected by user
If <cmd_id>=25:
Input the identifier of the item selected by user
If <cmd_id>=83:
SIM5320_ATC_V2.02
246
7/28/2014
<data> ignore
Note: It could return main menu during Proactive Command id is not 22 or 23
If <cmd_id>= 84:
<data> ignore
Examples
AT+STGR=25,1
OK
+STIN: 24
10.4
AT+STK
STK Switch
Description
This command is used to disable or enable the STK function. If the argument is 1, it is enabled.
While if the argument is 0, it is disabled.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+STK=?
Responses
+STK: (list of supported <value>s)
OK
Read Command
AT+STK?
Responses
+STK: <value>
OK
Write Command
AT+STK=<value>
Responses
OK
ERROR
Execution Command
AT+STK
Responses
Set default value (<value>=1):
OK
Defined values
<value>
0
1
Disable STK
Enable STK
Examples
SIM5320_ATC_V2.02
247
7/28/2014
AT+STK=1
OK
SIM5320_ATC_V2.02
248
7/28/2014
AT+CSDVC
Description
This command is used to switch voice channel device. After changing current voice channel device
and if there is a connecting voice call, it will use the settings of previous device (loudspeaker
volume level, mute state of loudspeaker and microphone, refer to AT+CLVL, AT+VMUTE, and
AT+CMUT).
NOTE: Use AT+CPCM command to enable PCM function and configure the mode that you want
before setting AT+CSDVC=4.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSDVC=?
Responses
+CSDVC: (list of supported <dev>s),(list of supported <save> s)
OK
Read Command
AT+CSDVC?
Responses
+CSDVC: <dev>
OK
Write Command
AT+CSDVC=
<dev>[,<save>]
Responses
OK
Defined values
<dev>
1 handset
3 speaker phone
4 PCM interface
<save>
0 temporary voice device setting, after reboot it will be resumed.
1 permanent voice device setting.
NOTE: If subparameter <save> is omitted, voice device setting is temporary.
Examples
SIM5320_ATC_V2.02
249
7/28/2014
AT+CSDVC=1
OK
AT+CSDVC?
+CSDVC:1
OK
AT+CSDVC=1,1
OK
11.2
Description
Write command is used to select the volume of the internal loudspeaker audio output of the device.
Test command returns supported values as compound value.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
Test Command
AT+CLVL=?
Responses
+CLVL: (list of supported <level>s)
OK
Read Command
AT+CLVL?
Responses
+CLVL: <level>
OK
Write Command
AT+CLVL=<level>
Responses
OK
ERROR
Defined values
<level>
Integer type value which represents loudspeaker volume level. The range is from 0 to 8, and 0
represents the lowest loudspeaker volume level, 2 is default factory value.
NOTE: <level> is nonvolatile, and it is stored when restart.
Examples
AT+CLVL?
+CLVL:2
OK
AT+CLVL=3
SIM5320_ATC_V2.02
250
7/28/2014
OK
11.3
AT+CMICAMP1
Description
This command is used to set audio path parameter micamp1; With this command you can change
the first stage of MIC amplify value based on your design separately. Please refer to related
hardware design document for more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CMICAMP1=?
Responses
+CMICAMP1: (list of supported <amp_val>s)
OK
Read Command
AT+ CMICAMP1?
Responses
+CMICAMP1:<amp_val>
OK
Write Command
AT+CMICAMP1=
<amp_val>
Responses
OK
ERROR
Defined values
<amp_val>
Amplify value number which is from 0 to 1. 0 is 0DB and 1 is 24DB.
Examples
AT+CMICAMP1=0
+CMICAMP1: 0
OK
AT+CMICAMP1?
+CMICAMP1: 0
OK
AT+ CMICAMP1=?
+CMICAMP1: (0-1)
OK
SIM5320_ATC_V2.02
251
7/28/2014
11.4
AT+CPTONE
Play tone
Description
This command is used to play a DTMF tone or complex tone on local voice channel device which is
selected by AT+CSDVC.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CPTONE=?
Responses
+CPTONE: (list of supported <tone>s)
OK
Write Command
AT+CPTONE=<tone>
Responses
OK
[+RXDTMF: <key>] (when <tone> is between 1 and 16)
Defined values
<tone>
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SIM5320_ATC_V2.02
252
7/28/2014
21
22
23
24
25
26
<key>
1
2
3
4
5
6
7
8
9
0
A
B
C
D
#
*
Examples
AT+CPTONE= ?
+CPTONE:(0-26)
OK
AT+CPTONE=17
OK
11.5
Description
This command is used to play a tone on local voice channel device which is selected by
AT+CSDVC.
SIM PIN
NO
References
Vendor
Syntax
SIM5320_ATC_V2.02
253
7/28/2014
Test Command
AT+CPTONEEXT=?
Responses
+CPTONE: (list of supported <tone>s)
OK
Write Command
AT+CPTONEEXT=<tone>
Responses
OK
Execution Command
AT+CPTONEEXT
Responses
OK (Stop the sound tone)
Defined values
<tone>
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SIM5320_ATC_V2.02
254
7/28/2014
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
SIM5320_ATC_V2.02
255
7/28/2014
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Examples
AT+CPTONEEXT=0
OK
11.6
AT+CTXGAIN
Set TX gain
Description
This command is used to set audio path parameter TX gain, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTXGAIN=?
Read Command
AT+CTXGAIN?
Write Command
AT+CTXGAIN=<tx_gain>
SIM5320_ATC_V2.02
Responses
+CTXGAIN: (list of supported <tx_gain>s)
OK
Responses
+CTXGAIN: <tx_gain>
OK
Responses
OK
256
7/28/2014
Defined values
<tx_gain>
TX gain level which is from 0 to 65535.
Examples
AT+CTXGAIN=1234
OK
11.7
AT+CRXGAIN
Set RX gain
Description
This command is used to set audio path parameter RX gain, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRXGAIN=?
Read Command
AT+CRXGAIN?
Write Command
AT+CRXGAIN=<rx_gain>
Responses
+CRXGAIN: (list of supported <rx_gain>s)
OK
Responses
+CRXGAIN: <rx_gain>
OK
Responses
OK
Defined values
<rx_gain>
RX gain level which is from 0 to 65535.
Examples
AT+CRXGAIN=1234
OK
11.8
Description
SIM5320_ATC_V2.02
257
7/28/2014
This command is used to set audio path parameter TX volume, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTXVOL=?
Responses
+CTXVOL: (list of supported <tx_vol>s)
OK
Read Command
AT+CTXVOL?
Responses
+CTXVOL: <tx_vol>
OK
Write Command
AT+CTXVOL=<tx_vol>
Responses
OK
Defined values
<tx_vol>
TX volume level which is from 0 to 65535.
Examples
AT+CTXVOL=1234
OK
11.9
Description
This command is used to set audio path parameter RX volume, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRXVOL=?
Responses
+CRXVOL: (list of supported <rx_vol>s)
OK
Read Command
Responses
SIM5320_ATC_V2.02
258
7/28/2014
AT+CRXVOL?
+CRXVOL: <rx_vol>
OK
Write Command
AT+CRXVOL=<rx_vol>
Responses
OK
Defined values
<rx_vol>
RX volume level which is from -100 to 100.
Examples
AT+CRXVOL=12
OK
11.10 AT+CTXFTR
Set TX filter
Description
This command is used to set audio path parameter TX filter, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTXFTR=?
Responses
+CTXFTR: (list of supported <tx_ftr_N>s)
OK
Read Command
AT+CTXFTR?
Responses
+CTXFTR: <tx_ftr_1>,<>,<tx_ftr_7>
OK
Write Command
AT+CTXFTR=
<tx_ftr_1>,<>,<tx_ftr_7>
Responses
OK
Defined values
<tx_ftr_N>
TX filter level which is from 0 to 65535. (N is from 1 to 7)
Examples
SIM5320_ATC_V2.02
259
7/28/2014
AT+CTXFTR=1111,2222,3333,4444,5555,6666,7777
OK
11.11 AT+CRXFTR
Set RX filter
Description
This command is used to set audio path parameter RX filter, and refer to related hardware
design document to get more information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRXFTR=?
Responses
+CRXFTR: (list of supported <rx_ftr_N>s)
OK
Read Command
AT+CRXFTR?
Responses
+CRXFTR: <rx_ftr_1>,<>,<rx_ftr_7>
OK
Write Command
AT+CRXFTR=
<rx_ftr_1>,<>,<rx_ftr_7>
Responses
OK
Defined values
<rx_ftr_N>
RX filter level which is from 0 to 65535. (N is from 1 to 7)
Examples
AT+CRXFTR=1111,2222,3333,4444,5555,6666,7777
OK
SIM5320_ATC_V2.02
260
7/28/2014
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CVLVL=?
Responses
+CVLVL: (list of supported <lvl>s),(list of supported <lvl_va
lue>s)
OK
Read Command
AT+CVLVL?
Responses
+CVLVL: <lvl_value1>,<lvl_value2>,<lvl_value3>,<lvl_value4>
<lvl_value5>,<lvl_value6>,<lvl_value7>,<lvl_value8>
OK
Write Command
AT+CVLVL=<lvl>,<lvl_val
ue>
Responses
+CVLVL: lvl_value
OK
ERROR
Defined values
<lvl>
Sound level number which is from 1 to 8.
<lvl_value>
Sound level value which is from -5000 to 5000.
<lvl_value1>
Sound level value that sound level number equals 1.
<lvl_value2>
Sound level value that sound level number equals 2.
<lvl_value3>
Sound level value that sound level number equals 3.
<lvl_value4>
Sound level value that sound level number equals 4.
<lvl_value5>
Sound level value that sound level number equals 5.
<lvl_value6>
Sound level value that sound level number equals 6.
<lvl_value7>
Sound level value that sound level number equals 7.
<lvl_value8>
Sound level value that sound level number equals 8.
SIM5320_ATC_V2.02
261
7/28/2014
Examples
AT+CVLVL=1,-2000
+CVLVL: -2000
OK
AT+CVLVL?
+CVLVL: -2000,-200,500,1000
OK
AT+ CVLVL=?
+CVLVL: (1-8),(-5000-5000)
OK
NOTE: Currently level 7 and level 8 are the same, which means the value set for one level also will set for
the other automatically(they have the same values).
References
Vendor
Syntax
Test Command
AT+SIDET=?
Responses
+SIDET: (list of supported <st>s)
OK
Read Command
AT+SIDET?
Responses
+SIDET:<st>
OK
Write Command
AT+SIDET=<st>
Responses
OK
ERROR
Defined values
<st>
Digital attenuation of sidetone, integer type in decimal format and nonvolatile.
Range: from 0 to 65535.
Factory value: HANDSET:4000, HEADSET:9472, SPEAKER PHONE:16384.
Examples
SIM5320_ATC_V2.02
262
7/28/2014
AT+CSDVC=1
OK
AT+SIDET?
+SIDET: 4000
OK
11.14 AT+CECM
Description
This command is used to select the echo cancellation mode. Each audio channel has own default
echo cancellation mode. For example:
Handset: at+cecm=1(default open)
Headset: at+cecm=2(default open)
Speaker: at+cecm=4(default open)
PCM: at+cecm=5(default open)
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CECM=?
Responses
+CECM: (list of supported <enable>s)
OK
Read Command
AT+CECM?
Responses
+CECM: <enable>
OK
Write Command
AT+CECM=<enable>
Responses
OK
ERROR
Defined values
<enable>:
0 : disable EC mode
1 : EC mode recommended for HANDSET
2 : EC mode recommended for HEADSET
3 : EC mode recommended for HANDSFREE
4 : EC mode recommended for SPEAKER
5 : EC mode recommended for BT HEADSET
6 : EC mode recommended for aggressive SPEAKER
7 : EC mode recommended for medium SPEAKER
SIM5320_ATC_V2.02
263
7/28/2014
Examples
AT+CECM=0
OK
AT+ CECM =1
OK
11.15 AT+CNSM
Description
This command is used to enable/disable noise suppression. The default value is enabled.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CNSM=?
Responses
+CNSM: (list of supported <enable>s)
OK
Read Command
AT+CNSM?
Responses
+CNSM: <enable>
OK
Write Command
AT+CNSM=<enable>
Responses
OK
ERROR
Defined values
<enable>:
0 : disable this feature
1 : enable this feature
NOTE: User should use this AT command together with other related audio AT commands like
AT+CSDVC , AT+CPCM and so on.
Examples
SIM5320_ATC_V2.02
264
7/28/2014
AT+CNSM=0
OK
AT+ CNSM =1
OK
11.16 AT+CECSET
mode
Description
This command is used to adjust the parameters of the selected EC mode for the given device. It can
be used together with AT+CECM command.
This configuration will be saved automatically.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CECSET=?
Responses
+CECSET: (list of supported <index>s), (list of supported
<value>s)
OK
Read Command
AT+CECSET?
Responses
+CECSET:
current echo cancellation mode is : <ec_md>
<index> -> <value>
[]
OK
Write Command
AT+CECSET
=<index>,<value>
Responses
OK
ERROR
Defined values
<ec_md>:
Current echo cancellation mode, please refer AT+CECM for more details
<index>:
0 37, EC has 38 parameters; this is the index of the selected parameter.
<value>:
0 65535, EC parameter value.
NOTE:
SIM5320_ATC_V2.02
265
7/28/2014
1. Currently only three EC modes parameters can be adjusted, they are 6, 7 and 8 you can use
AT+CECM to select one of these modes.
2. You have to use AT+CECM to select the right EC mode first in order to change the parameters.
Examples
AT+CSDVC=1
OK
AT+CECM=6
OK
AT+CECSET=0,65530
OK
AT+CECSET=1,1000
OK
11.17 AT+CEXTERNTONE
Description
This command is used to enable or disable MIC.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CEXTERNTONE=?
Responses
OK
Read Command
AT+ CEXTERNTONE?
Responses
+CEXTERNTONE: <mode>
OK
Write Command
AT+CEXTERNTONE=<mode>
Responses
OK
ERROR
Defined values
<mode>
0 enable MIC
1 disable MIC
Examples
AT+ CEXTERNTONE =?
SIM5320_ATC_V2.02
266
7/28/2014
OK
AT+ CEXTERNTONE =1
OK
AT+ CEXTERNTONE?
+ CEXTERNTONE: 1
OK
References
Vendor
Syntax
Test Command
AT+CPCMREG=?
Responses
+CPCMREG: (list of supported <n>s)
OK
Read Command
AT+CPCMREG?
Responses
+CPCMREG: <n>
OK
Write Command
AT+CPCMREG=<n>
Responses
OK
ERROR
Defined values
<n>
Switch PCM data transfer by diagnostics port on/off
0
Disable PCM data transfer by diagnostics port
1
Enable PCM data transfer by diagnostics port
Examples
AT+CPCMREG=?
+CPCMREG: (0-1)
OK
AT+CPCMREG?
+CPCMREG: 0
OK
SIM5320_ATC_V2.02
267
7/28/2014
AT+CPCMREG=1
OK
11.19 AT+CPCM
Description
This command is used to enable PCM or disable PCM function. And configure different PCM
mode. Because the PCM pins are multiplex on GPIO, it will switch the function between GPIO and
PCM.
SIM PIN
References
NO
Vendor
Syntax
Test Command
AT+CPCM=?
Responses
+CPCM: (list of supported <arg_1>s), (list of supported <arg_2>s)
OK
Read Command
AT+CPCM?
Responses
+CPCM: <arg_1>,<arg_2>
OK
Write Command
AT+CPCM=<arg_1>[,<arg_
2>]
Responses
OK
Defined values
<arg_1>
0
1
<arg_2>
0
1
2
Examples
AT+CPCM=1
OK
AT+CPCM=?
+CPCM : (0-1),(0-2)
OK
AT+CPCM?
+CPCM : 1,1
OK
SIM5320_ATC_V2.02
268
7/28/2014
11.20 AT+CPCMS
Description
This command is used to open / close the pcm CLOCK and SYNC signal output, with this
command one can control the CLOK and SYNC at any time (even if no call happened).
NOTE: PCM interface will enabled automatically when a call is happened, so one needs not to use
this command manually if PCM is only used during the call process.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CPCMS=?
Responses
+CPCMS: (0,1)
OK
Read Command
AT+CPCMS?
Responses
+CPCMS: <switch>
OK
Write Command
Responses
OK
AT+CPCMS=<switch>
ERROR
Defined values
< switch >
0 disable CLOCK and SYNC output.
1 enable CLOCK and SYNC output.
Examples
AT+CPCMS=1
OK
References
Vendor
SIM5320_ATC_V2.02
269
7/28/2014
Syntax
Test Command
AT+CPCMFMT=?
Responses
+CPCMFMT: (list of supported <format>s)
OK
Read Command
AT+CPCMFMT?
Responses
+CPCMFMT: <format>
OK
Write Command
AT+CPCMFMT=<format>
Responses
OK
ERROR
Defined values
<format>
0
1
2
u-law
a-law
linear
Examples
AT+CPCMFMT=?
+CPCMFMT: (0-2)
OK
AT+CPCMFMT?
+CPCMFMT: 1
OK
AT+CPCMFMT=2
OK
SIM5320_ATC_V2.02
270
7/28/2014
AT+CRIIC
Description
This command is used to read values from register of IIC device.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRIIC=?
Responses
OK
Write Command
AT+CRIIC=
<addr>,<reg>,<len>[,<opt>]
Responses
+CRIIC: <data>
OK
ERROR
Defined values
<addr>
Device address. Input format must be hex, such as 0xFF.
<reg>
Register address. Input format must be hex, such as 0xFF.
<len>
Read length. Range:1-4; unit:byte.
<data>
Data read. Input format must be hex, such as 0xFF 0xFFFFFFFF.
<opt>
Bit definitions for use in options byte in the I/O, the default value is 0x44:
0x01 Use default address for I/O
0x02 Use 16 bit addresses for Memory device
0x04 Use 8 bit register based device
0x08 NACK last byte read from slave
0x10 Reserved
0x20 During a read transaction, gen a repeated START after writing the slave address
(just before read)
0x40 During a read transaction, gen a STOP & START after writing the slave address
SIM5320_ATC_V2.02
271
7/28/2014
Examples
AT+CRIIC=0x0F, 0x0F, 2
+CRIIC: FFFF
OK
12.2
AT+CWIIC
Description
This command is used to write values to register of IIC device.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CWIIC=?
Responses
OK
Write Command
AT+CWIIC=
<addr>,<reg>,<data>,<len>[,
<opt>]
Responses
OK
ERROR
Defined values
<addr>
Device address. Input format must be hex, such as 0xFF.
<reg>
Register address. Input format must be hex, such as 0xFF.
<len>
Read length. Range: 1-4; unit: byte.
<data>
Data written. Input format must be hex, such as 0xFF 0xFFFFFFFF.
<opt>
Bit definitions for use in options byte in the I/O, the default value is 0x44:
0x01 Use default address for I/O
0x02 Use 16 bit addresses for Memory device
0x04 Use 8 bit register based device
0x08 NACK last byte read from slave
0x10 Reserved
SIM5320_ATC_V2.02
272
7/28/2014
0x20 During a read transaction, generate a repeated START after writing the slave
address (just before read)
0x40 During a read transaction, generate a STOP & START after writing the slave
address (just before read)
0x80 Generate a clock and a START before every I/O operation
Examples
AT+CWIIC=0x0F, 0x0F, 0x1234, 2
+CWIIC: 0x1234
OK
12.3
AT+CSPISETCLK
Description
This command is used to set SPI clock configuration and trigger mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPISETCLK=?
Responses
+CSPISETCLK: (range of supported <polarity>s), (range of su
pported <mode>s),(range of supported <trigger mode>s)
OK
Read Command
AT+CSPISETCLK?
Responses
Write Command
AT+CSPISETCLK=<polarit
y>,<mode>,<trigger mode>
Responses
OK
ERROR
Defined values
<polarity>
0
the SPI clock signal is low when the clock is idle
1
the SPI clock signal is high when the clock is idle
<mode>
0
the SPI clock runs only during a transfer unit
1
the SPI clock runs continuously from the start of the transfer
<trigger mode>
0
the SPI data input signal is sampled on the leading clock edge
SIM5320_ATC_V2.02
273
7/28/2014
the SPI data input signal is sampled on the trailing clock edge
Examples
AT+CSPISETCLK =1,0,1
OK
AT+CSPISETCLK?
+CSPISETCLK: 1,0,1
OK
AT+CSPISETCLK=?
+CSPISETCLK: (0-1),(0-1),(0-1)
OK
12.4
AT+CSPISETCS
Description
This command is used to set SPI chip select polarity and mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPISETCS=?
Responses
+CSPISETCS: (range of supported <mode>s), (range of suppor
ted <polarity>s)
OK
Read Command
AT+CSPISETCS?
Responses
+CSPISETCS: <mode>,<polarity>
OK
Write Command
AT+CSPISETCS=<mode>,<
polarity>
Responses
OK
ERROR
Defined values
<mode>
0
the SPI chip select is de-asserted between transfer units
1
the SPI chip select is kept asserted between transfer units
<polarity>
0
the SPI chip select is active low
1
the SPI chip select is active high
SIM5320_ATC_V2.02
274
7/28/2014
Examples
AT+CSPISETCS =1,0
OK
AT+CSPISETCS?
+CSPISETCS: 1,0
OK
AT+CSPISETCS =?
+CSPISETCS: (0-1),(0-1)
OK
12.5
Description
This command is used to set SPI clock frequency
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPISETF=?
Responses
+CSPISETF: (range of supported <min>s), (range of supported
<max>s),(range of supported <de-assertion time>s)
OK
Read Command
AT+CSPISETF?
Responses
+CSPISETF: <min>,<max>,<de-assertion time>
OK
Write Command
AT+CSPISETF=<min>,<ma
x>,<de-assertion time>
Responses
OK
ERROR
Defined values
<min>
In master mode, set the minimum SPI clock frequency by the slave device
026000000
<max>
In master mode, set the maximum SPI clock frequency by the slave device
026000000
<de-assertion time>
In master mode, set the minimum time to wait between transfer units in nanoseconds
064
SIM5320_ATC_V2.02
275
7/28/2014
Examples
AT+CSPISETF =960000,10000000,0
OK
AT+CSPISETF?
+CSPISETF: 960000,10000000,0
OK
AT+CSPISETF =?
+CSPISETF: (0-26000000), (0-26000000),(0-64)
OK
12.6
Description
This command is used to set SPI transfer parameters
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPISETPARA=?
Responses
+CSPISETPARA: (range of supported <bit>s), (range of suppo
rted <input packed>s),(range of supported <output unpacked>s)
OK
Read Command
AT+CSPISETPARA?
Responses
+CSPISETPARA: <bit>,<input packed>,<output unpacked>
OK
Write Command
AT+CSPISETPARA=<bit>,
<input packed>,<output un
packed>
Responses
OK
ERROR
Defined values
<bit>
set the number of bits to use per transfer unit, only support 8,16,32 bits
032
<input packed>
0 data should be not packed into the user input buffer
1 data should be packed into the user input buffer
<output unpacked>
0 data should be not packed from the user output buffer
SIM5320_ATC_V2.02
276
7/28/2014
Examples
AT+CSPISETPARA =16,0,1
OK
AT+CSPISETPARA?
+CSPISETPARA:16,0,1
OK
AT CSPISETPARA=?
+CSPISETPARA : (0-32), (0-1),(0-1)
OK
12.7
Description
This command is used to write data to SPI.
NOTE: If you want to write data only when you use SPI to connect to some special slave device,
you can set <reg> to 0xFFFF.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPIW=?
Responses
OK
Write Command
AT+CSPIW=<reg>,<data>,<
len>
Responses
OK
ERROR
Defined values
<reg>
Examples
SIM5320_ATC_V2.02
277
7/28/2014
AT+CSPIW=0x0F, 0x1234, 2
OK
12.8
AT+CSPIR
Description
This command is used to read data from SPI.
NOTE: If you want to read data only when you use SPI to connect to some special slave device,
you can set <reg> to 0xFFFF.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSPIR=?
Responses
OK
Write Command
Responses
AT+CSPIR=<reg>,<len>
+CSPIR: <data>
OK
ERROR
Defined values
<reg>
Examples
AT+CSPIR =0x0F, 2
+CSPIR : 0x1234
OK
12.9
AT+CGFUNC
Description
SIM5320_ATC_V2.02
278
7/28/2014
SIM5320 supplies many GPIOs, all of which can be used as General Purpose Input/Output pin,
interrupt pin and some of them can be used as function pin.
This command is used to enable/disable the function for the special GPIO. Please consult the
document SIM5320_GPIO_Application_note for more details.
The configuration will be saved automatically.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGFUNC=?
Responses
+CGFUNC: (list of supported <function>s),(list of supported
<switch>s)
OK
Read Command
AT+CGFUNC=<function>
Responses
+CGFUNC: <switch>
OK
ERROR
Write Command
AT+CGFUNC=<function>,
<switch>
Responses
OK
ERROR
Defined values
<function>
1 : function status led.
2 : function wakeup me
3 : function wakeup host
4 : function pcm
7 : function keypad
9 : function rf switch
10 : function uart1 dcd
11 : function uart1 flow control
12: function wake up SIM5320 module by GPIO43
13: function wake up host by GPIO41
14:function module power up status(GPIO40)
17:function RI line 2G mode control, please see the detail from NOTE
18:function UART DTR sleep mode
19:function used to control status led dynamically (use +CLEDDYNC)
<switch>
0 : disable the function.
1 : enable the function
SIM5320_ATC_V2.02
279
7/28/2014
Examples
AT+CGFUNC=1,1
OK
AT+CGFUNC=1
+CGFUNC: 1
OK
NOTE:
1 .Not all of the Modules of SIM5XXX series have the whole upper functions; some may have camera
function while others may have keypad function and so on, please refer the Module SPEC for more details.
2. If AT+CGFUNC=17,1 then assert 60ms when have urc reported;assert 120m when have sms
received;and always asserted during the ring(incoming call).
12.10 AT+CGPIO
Description
This command is used to set GPIO0 interrupt trigger mode.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CGPIO=<detect>,
<polarity>[,<save>]
Responses
OK
ERROR
Defined values
<detect>
0 LEVEL trigger mode
1 EDGE trigger mode
<polarity>
0 trigger when low level
1 trigger when high level
<save>
0 not save the setting
1 save the setting
NOTE: If the parameter of <save> is omitted, it will save the setting.
Examples
AT+CGPIO=1,1,0
OK
SIM5320_ATC_V2.02
280
7/28/2014
References
Vendor
Syntax
Write Command
AT+CGDRT=<gpio_num>,
<gpio_io>[,<save>]
Responses
OK
ERROR
Defined values
<gpio_num>
0 GPIO0
2 GPIO2
3 GPIO3
5 GPIO5
<gpio_io>
0 in
1 out
<save>
0 not save the setting
1 save the setting
NOTE: If the parameter of <save> is omitted, it will save the direction of specified GPIO.
Examples
AT+CGDRT=3,0,0
OK
References
Vendor
SIM5320_ATC_V2.02
281
7/28/2014
Syntax
Write Command
AT+CGSETV=<gpio_num>,
<gpio_hl>[,<save>]
Responses
OK
ERROR
Defined values
<gpio_num>
0 GPIO0
2 GPIO2
3 GPIO3
5 GPIO5
<gpio_hl>
0 low
1 high
<save>
0 not save the setting
1 save the setting
NOTE: If the parameter of <save> is omitted, it will save the value of specified GPIO.
Examples
AT+CGSETV=3,0,0
OK
References
Vendor
Syntax
Write Command
AT+CGGETV=<gpio_num>
Responses
+CGGETV: <gpio_hl>
OK
ERROR
Defined values
SIM5320_ATC_V2.02
282
7/28/2014
<gpio_num>
0 GPIO0
1 GPIO1
2 GPIO2
3 GPIO3
4 GPIO4
5 GPIO5
<gpio_hl>
0 low
1 high
Examples
AT+CGGETV=3
+CGGETV: 0
OK
12.14 AT+CGISR
Description
The module supplies many GPIOs, all of which can be used as General Purpose Input/Oupt pin,
interrupt pin and some of them can be used as function pin.
This command is used to set one GPIO pin as an interrupt source, and then set the detect
type[optional] and polarity type[optional], and enable interrupt. Please refer to the document
SIMCom_3G_GPIO_Application_Note_V1.1.doc for details.
SIM PIN
References
No
Syntax
Read Command
AT+CGISR=<GPIO>
Responses
+CGISR: < GPIO >[<detect>,<polarity>]
OK
Write Command
AT+CGISR=< GPIO
>,<detect>,<polarity>
Responses
OK
Defined values
< GPIO >
GPIO number.
< detect >
SIM5320_ATC_V2.02
283
7/28/2014
0 level detection.
1 edge detection
< polarity >
0 low level/edge detection
1 high level/edge detection
Examples
AT+CGISR=1
+CGISR : 1[0,1]
OK
AT+CGISR=1,0,1
OK
NOTE:
1. if the interruption is triggered SIM52XX will send the following URC to host.
2.
3.
After setting one GPIO pin as an interrupt source successfully, the setting will be saved.
References
Vendor
Syntax
Test Command
AT+CGWHOST
Responses
OK
Examples
AT+CGWHOST
OK
SIM5320_ATC_V2.02
284
7/28/2014
12.16 AT+CGWISRMD
Description
This command is used to set the appropriate trigger condition for GPIO43s interrupt, which will
finally waking up the module.
The interrupt is low level triggered by default.
NOTE: Before using this AT to set triggered mode, please use AT+CGFUNC=12,0 to disable the
function of GPIO43s interrupt. After setting triggered mode, then use AT+CGFUNC=12,1 to
enable this function.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGWISRMD=?
Responses
+CGWISRMD: (list of supported <detect>s),(list of supported
<polarity>s)
OK
Read Command
AT+CGWISRMD?
Responses
+CGWISRMD: <detect>,<polarity>
OK
Write Command
AT+CGWISRMD
=<detect>,<polarity>
Responses
OK
ERROR
Defined values
<detect>
0
Level trigger
1
Edge trigger
<polarity>
0
Low trigger
1
High trigger
Examples
AT+CGWISRMD=0,1
OK
AT+CGWISRMD=0,0
OK
SIM5320_ATC_V2.02
285
7/28/2014
12.17 AT+CRFEN
Enable/Disable RF checking
Description
This command is used to enable or disable RF checking function during the startup process.
This configuration will take effect after reboot.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRFEN=?
Responses
+CRFEN: (list of supported <value>s)
OK
Read Command
AT+CRFEN?
Responses
+CRFEN:<value>
OK
Write Command
AT+CRFEN= <value>
Responses
OK
ERROR
Defined values
<value>
0 disable RF checking function when startup
1 enable RF checking function when startup
Examples
AT+CRFEN=1
OK
AT+CRFEN?
+CRFEN: 1
OK
AT+CRFEN=?
+CRFEN : (0-1)
OK
12.18 AT+SJDR
Jamming detection
Description
SIM5320_ATC_V2.02
286
7/28/2014
This command is used to open or close jamming detection. When jamming is detected, URC will be
reported at 470ms intervals. When no jamming, URC will be reported once. If one unused GPIO is
assigned to JAMMING detection, it will be set to high level for indicating jamming when jamming
is detected. Conversely, it will be set to low level for indicating no jamming.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+SJDR=?
Responses
+SJDR: (0,1)
OK
Read Command
AT+ SJDR?
Responses
+SJDR: <op_code>,<report_mode>[,<GPIO_num>]
OK
Write Command
Responses
OK
AT+SJDR=<op_code>
<report_mode>[,
+SJDR: <URC_percentage>
<GPIO_num>]
OK
ERROR
Defined values
<op_code>
Operate code.
0 close jamming detection.
1 open jamming detection.
<report_mode>
Jamming report mode
0 neither URC nor GPIO.
1 URC report.
2 GPIO report. <GPIO_num> is required.
3 both URC and GPIO. <GPIO_num> is required.
<GPIO_num>
Which GPIO is assigned to JAMMING detection. This GPIO should not be assigned to other
function. Please refer to GPIO APP note to find which GPIO is not used.
<URC_percentage>
URC, indicate jamming possibility. The range of this value is [0,100]
0 no jamming.
100 jamming detection.
SIM5320_ATC_V2.02
287
7/28/2014
Examples
AT+SJDR=?
+SJDR: (0,1)
OK
AT+SJDR?
+SJDR: 0,1
OK
AT+SJDR?
+SJDR: 1,3,43
AT+SJDR=0
OK
AT+SJDR=1,1
OK
+SJDR: 0
// no jamming.
+SJDR: 80
// interference detection.
+SJDR: 100
// jamming detection.
AT+SJDR=1,3,43
OK
+SJDR: 0
+SJDR: 80
+SJDR: 100
References
Vendor
Syntax
Unsolicited Result Code
+KEY: <key>, [<key_row>, <key_column>], <key_text>
SIM5320_ATC_V2.02
288
7/28/2014
Defined values
<key>
Key code in hexadecimal fomat (e.g. 0x0A).
<key_row>
Key row number.
<key_column>
Key column number.
<key_text>
The key text on EVB (Evaluation Board) for reference.
KEY VALUE REFERENCE
<key>
<key_row>
<key_column>
0x01
2
4
0x02
1
3
0x03
1
1
0x04
1
2
0x05
4
1
0x06
4
2
0x07
4
3
0x08
3
1
0x09
3
2
0x0A
3
3
0x0B
2
1
0x0C
2
2
0x0D
2
3
0x0E
1
0
0x0F
4
0
0x10
3
4
0x11
0
4
0x12
1
4
0x13
3
0
0x14
4
4
0x15
0
0
0x16
0
2
0x17
0
3
0x18
0
1
0x19
2
0
0xFF
row and column is same as the key pressed
<key_text>
"MSG"
"#"
"*"
"0"
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"BACK"
"REJECT"
"UP"
"DOWN"
"CALL"
"MENU"
"SELECT"
"HANDFREE"
"NAMES"
"V+"
"V-"
"SET"
"RELEASE"
Examples
(Press the menu key, and then release the key):
+KEY: 0x13, [3, 0], "MENU"
+KEY: 0xFF, [3, 0], "RELEASE"
SIM5320_ATC_V2.02
289
7/28/2014
12.20 AT+IPREX
Description
This command sets the baud rate of modules serial interface permanently, after reboot the baud rate
is also valid.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+IPREX=?
Responses
+IPREX: (list of supported<speed>s)
OK
Read Command
AT+IPREX?
Responses
+IPREX: <speed>
OK
Write Command
AT+IPREX =<speed>
Responses
OK
Execution Command
AT+IPREX
ERROR
Responses
Set default value 115200:
OK
Defined values
<speed>
Baud rate per second:
300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800,921600,
3200000,3686400,4000000
Examples
AT+IPREX?
+IPREX: 115200
OK
AT+IPREX=?
+IPREX: (300,600,1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600
3200000, 3686400, 4000000)
OK
AT+IPREX=115200
OK
SIM5320_ATC_V2.02
290
7/28/2014
12.21 AT+CFGRI
Description
This command is used to config whether pulling down the RI pin of UART when URC reported. If
<status> is 1, host may be wake up by RI pin.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CFGRI=?
Read Command
AT+CFGRI?
Write Command
AT+CFGRI=<status>[,<sav
e>]
Execution Command
AT+CFGRI
Responses
+CFGRI: (range of supported <status>s), (range of supported
<save>s)
OK
Responses
+CFGRI: <status>, <save>
OK
Responses
OK
ERROR
Responses
Set <status> = 1,<save> = 0:
OK
Defined values
<status>
0 off
1 on
<save>
0 <status> not saved in nonvolatile memory
1 <status> saved in nonvolatile memory.After it resets, <status> still takes effect.
Examples
AT+CFGRI=?
+CFGRI: (0-1),(0-1)
OK
AT+CFGRI?
+CFGRI: 0,0
OK
AT+CFGRI=1,1
SIM5320_ATC_V2.02
291
7/28/2014
OK
AT+CFGRI
OK
12.22 AT+CRIRS
Description
This command is used to reset RI pin of serial port (Null modem Mode). After This command is
executed, when a voice (csd, video) call or a SMS is coming or URC is reported, RI pin will be
asserted. It can wake up host.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRIRS=?
Responses
OK
Write Command
AT+CRIRS
Responses
OK
ERROR
Defined values
None
Examples
AT+CRIRS
OK
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
292
7/28/2014
AT+CSUART=?
Read Command
AT+CSUART?
Responses
+CSUART: <mode>
OK
Write Command
AT+CSUART=<mode>[,<sa
ve>]
Responses
OK
ERROR
Defined values
<mode>
0
1
<save>
0
1
3 lines mode
7 lines mode
dont save the setting
save the setting
Examples
AT+CSUART=1
OK
12.24 AT+CUARTWD
Description
This command is used to configure a delay time used while UART waken up from sleep mode.
During this delay time, any data received from UART will be ignored.
This configuration will be saved automatically. The default value is 0.
NOTE: when RX pin is used to wake up module from sleep mode, this command should be
configured according to external host response time, 200ms is usually recommended. When DTR
pin is used to wake up module, dont care about this setting.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CUARTWD=?
Responses
+CUARTWD: (0-10000)
OK
Read Command
Responses
SIM5320_ATC_V2.02
293
7/28/2014
AT+CUARTWD?
+CUARTWD: <interval>
OK
Write Command
AT+ CUARTWD =<
interval >
Responses
OK
ERROR
Defined values
< interval >: unit: ms
0 : disable the delaytimer
Other value: interval time for the delay timer
Examples
AT+CUARTWD=0
OK
AT+ CUARTWD =200
OK
12.25 AT+CDTRISRMD
interrupt.
Description
This command is used to set the appropriate trigger condition for DTRs interrupt, which will
finally waking up the module.
This command is only valid for NULL modem.
The interrupt is low level triggered by default.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CDTRISRMD=?
Responses
+CDTRISRMD: (list of supported <detect>s),(list of supported
<polarity>s)
OK
Read Command
AT+CDTRISRMD?
Responses
+CDTRISRMD: <detect>,<polarity>
OK
Write Command
Responses
SIM5320_ATC_V2.02
294
7/28/2014
AT+CDTRISRMD
=<detect>,<polarity>
OK
ERROR
Defined values
<detect>
0
Level trigger
1
Edge trigger
<polarity>
0
Low trigger
1
High trigger
Examples
AT+CDTRISRMD=0,1
OK
AT+CDTRISRMD=0,0
OK
12.26 AT+CDTRISRS
function
Description
This command is used to enable or disable the function of waking up the module by means of
UARTs DTR pin which to trigger an interrupt
This command is only valid for NULL modem.
The function is disabled by default.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CDTRISRS=?
Responses
+CDTRISRS: (list of supported <switch>s)
OK
Read Command
AT+CDTRISRS?
Responses
+CDTRISRS: <switch>
OK
Write Command
AT+CDTRISRS =<switch>
Responses
OK
SIM5320_ATC_V2.02
295
7/28/2014
Defined values
<switch>
0
disable such function
1
enable such function
Examples
AT+CDTRISRS=1
OK
AT+CDTRISRS=0
OK
12.27 AT+CMUX
Description
This command is used to enable the multiplexer over the UART, after enabled four virtual ports can
be used as DIAG port, NMEA port, AT command port or MODEM port(configured by
+CMUXSRVPORT command) , the physical UART can no longer transfer data directly under this
case.
By default all of the four virtual ports are used as AT command port.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CMUX=?
Responses
+CMUX: (0)
OK
Write Command
AT+CMUX=
<value>[,<subset>[,<port
_speed>[,<N1>[,<T1>[,
<N2>[,<T2>[,<T3>[,<k
>]]]]]]]]
Responses
OK
ERROR
Defined values
< value >:
0 currently only 0 is supported (basic operation mode).
< subset >:
Currently omitted
< port_speed >:
SIM5320_ATC_V2.02
296
7/28/2014
Examples
AT+CMUX=0
OK
NOTE: Currently only basic operation mode is supported.
References
Vendor
Syntax
Test Command
AT+CMUXSRVPORT=?
Responses
+CMUXSRVPORT: (0-3),(0,1,5)
OK
Read Command
AT+CMUXSRVPORT?
Responses
virtual port [<port>] - <service>
OK
Write Command
AT+CMUXSRVPORT=<po
rt>,<service>
SIM5320_ATC_V2.02
Responses
OK
ERROR
297
7/28/2014
Defined values
<port>
0 MUX port, corresponding to DLCI 1 of UART multiplexor protocol.
1 MUX port, corresponding to DLCI 2 of UART multiplexor protocol.
2 MUX port, corresponding to DLCI 3 of UART multiplexor protocol.
3 MUX port, corresponding to DLCI 4 of UART multiplexor protocol.
NOTE:
DLCI 0 is the control channel for MUX protocol, and DLCI 1~4 used for data communication.
More information about MUX protocol, please refer to 3GPP TS 27.010.
<service>
0 DIAG Service, used for diagnostic.
1 DATA(MODEM) Service, used for AT command control or Modem data transmit.
5 NMEA Service, used for output GPS NMEA sentence.
Examples
AT+CMUXSRVPORT=0,1
OK
AT+CMUXSRVPORT=?
+CMUXSRVPORT: (0-3),(0,1,5)
OK
NOTE:
1. NMEA service only supported by SIM5320.
2. DIAG and NMEA service are exclusively, so it is forbidden to configure the DIAG or NMEA service to
more than one MUX port.
12.29 AT+CUSBSPD
Description
This command is used to switch the speed of USB between high speed and full speed.
This configuration will take effect after reboot.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CUSBSPD=?
Responses
+CUSBSPD: (list of supported <speed>s)
OK
Read Command
Responses
SIM5320_ATC_V2.02
298
7/28/2014
AT+CUSBSPD?
+CUSBSPD: <speed>
OK
Write Command
Responses
OK
AT+CUSBSPD=<speed>
ERROR
Defined values
<speed>
Integer type and nonvolatile value.
0 High speed
1
Full speed (default value)
Examples
AT+CUSBSPD=?
+CUSBSPD: (0-1)
OK
AT+CUSBSPD=0
OK
AT+CUSBSPD=1
OK
12.30
AT+CLEDDYNC
Description
GPIO1 of SIM52xx/SIM53xx is used to control the status led by default. Now the module
supplies a new function called DYNAMIC-LED to control the led, which can control the blinking
frequency dynamically, this command is just used to set the leds ON/OFF frequency.
Note this command is valid only when the function DYNAMIC-LED is enabled. One can use
AT+CGFUNC=19, 1 to enable this function.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CLEDDYNC=?
Responses
OK
Write Command
AT+CLEDDYNC=<on_freq
>,<off_freq>
Responses
OK
SIM5320_ATC_V2.02
ERROR
299
7/28/2014
Defined values
<on_freq>
led on time, unit: ms
<off_freq>
led off time, unit: ms
Examples
AT+CGFUNC=19,1
OK
AT+CLEDDYNC=800,200
OK
References
NO
Vendor
Syntax
Test Command
AT+CLEDITST=?
Responses
+CLEDITST: (list of supported <led_type>s), (list of supported
<val>s)
OK
Read Command
AT+CLEDITST?
Responses
+CLEDITST: <val>
OK
Write Command
AT+CLEDITST=<led_type>
,<val>
Responses
OK
ERROR
Defined values
<led_type>
0 : LCD
<val>
0 : 0mA (disable driver)
1 : 10mA
SIM5320_ATC_V2.02
300
7/28/2014
2 : 20mA
3 : 30mA
4 : 40mA
5 : 50mA
6 : 60mA
7 : 70mA
8 : 80mA
9 : 90mA
10 : 100mA
11 : 110mA
12 : 120mA
13 : 130mA
14 : 140mA
15 : 150mA
Examples
AT+CLEDITST=0,0
OK
AT+ CLEDITST =0,10
OK
12.32 AT+CBC
Battery charge
Description
The command is used to query the current voltage of power supply.
NOTE If module is not allow the detection of battery used,then <bcs> and <bcl> may be
ignored.You can get the current voltage of power supply by <vol>.
SIM PIN
NO
References
3GPP TS 07.07
Syntax
Test Command
AT+CBC=?
Responses
+CBC: (list of supported <bcs>s),(list of supported <bcl>s)
OK
Execution Command
AT+CBC
Responses
+CBC: <bcs>,<bcl>,<vol>V
OK
+CME ERROR: <err>
Defined values
SIM5320_ATC_V2.02
301
7/28/2014
<bcs>
0 Battery powered
<bcl>
0100 Battery charge level
<vol>
Current voltage value (V).
Examples
AT+CBC=?
+CBC: (0),(0-100)
OK
AT+CBC
+CBC: 0,75,3.810V
OK
12.33 AT+CADC
Description
This command is used to read the ADC value from modem. ME supports 3 types of ADC, which
are raw type, temperature type and voltage type.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CADC=?
Responses
+CADC: (range of supported <adc>s)
OK
Write Command
AT+CADC=<adc>
Responses
+CADC: <value>
OK
ERROR
Execution Command
AT+CADC
Responses
Same as AT+CADC= 0:
+CADC: <value>
OK
Defined values
<adc>
ADC type:
SIM5320_ATC_V2.02
302
7/28/2014
0 raw type.
1 temperature type.
2 voltage type(mv)
<value>
Integer type value of the ADC.
Examples
AT+CADC=?
+CADC:(0-2)
OK
AT+CADC=0
+CADC: 187
OK
References
Vendor
Syntax
Execution Command
AT+CADCA
Responses
+CADCA: <value>
OK
Defined values
<value>
Integer type value of the voltage.
Examples
AT+CADCA
+CADCA: 1100
OK
SIM5320_ATC_V2.02
303
7/28/2014
12.35 AT+CVAUXS
Description
This command is used to set state of the pin which is named VREG_AUX1.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CVAUXS=?
Responses
+CVAUXS: (list of supported <state>s)
OK
Read Command
AT+CVAUXS?
Responses
+CVAUXS: <state>
OK
Write Command
AT+CVAUXS=<state>
Responses
OK
ERROR
Defined values
<state>
0
1
Examples
AT+CVAUXS=1
OK
AT+CVAUXS?
+CVAUXS: 1
OK
References
Vendor
SIM5320_ATC_V2.02
304
7/28/2014
Syntax
Test Command
AT+CVAUXV=?
Responses
+CVAUXV: (list of supported <voltage>s)
OK
Read Command
AT+CVAUXV?
Responses
+CVAUXV: <voltage>
OK
Write Command
AT+CVAUXV=<voltage>
Responses
OK
ERROR
Defined values
<voltage>
Voltage value of the pin which is named VREG_AUX1. The unit is in 50*mV.
Examples
AT+CVAUXV=?
+CVAUXV:(30-61)
OK
AT+CVAUXV=40
OK
AT+CVAUXV?
+CVAUXV: 40
OK
12.37 AT+CAPWRON
Description
This command is used to set the module to be powered on automatically at the appointed time.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CAPWRON=?
Responses
+CAPWRON: (0-23), (0-59),(0-1)
OK
Read Command
Responses
SIM5320_ATC_V2.02
305
7/28/2014
AT+CAPWRON?
+CAPWRON: <hour>,<minute>,<repeated>
OK
Write Command
AT+CAPWRON=<hour>,<
minute>,<repeated>
Responses
OK
ERROR
Defined values
<hour>
0 23 : the hour to power on
<minute>
0 59 : the minute to power on
<repeated>
0 : not repeated.
1 : repeated every day.
Examples
AT+CAPWRON=8,30,0
OK
AT+CAPWRON?
+CAPWRON: 8,30,0
OK
AT+CAPWRON=?
+CAPWRON: (0-23),(0-59),(0-1)
OK
NOTE: User can use the command AT+CAPWRON=255,255,255 to disable this function.
12.38 AT+CVALARM
Description
This command is used to open or close the low voltage alarm function.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CVALARM=?
SIM5320_ATC_V2.02
Responses
+CVALARM: (list of supported <enable>s), (list of supported
<voltage>s)
OK
306
7/28/2014
Read Command
AT+CVALARM?
Responses
+CVALARM: <enable>,<voltage>
OK
Write Command
AT+CVALARM=<enable>[,
<voltage>]
Responses
OK
ERROR
Defined values
<enable>
0
1
Close
Open. If voltage < <voltage>, it will report warning! Voltage is low:<voltage value>
erery 20s.
<voltage>
Between 2800mV and 4300mV. Default value is 3450.
NOTEThe two parameters will be saved automatically.
Examples
AT+CVALARM=1,3400
OK
AT+CVALARM?
+CVALARM: 1,3400
OK
AT+CVALARM=?
+CVALARM: (0-1),(2800-4300)
OK
12.39 AT+CPMVT
Description
This command is used to set the lowest working voltage and if the system voltage is lower
than this value the system will power off automatically to save the module.
Also while this function is enabled the module will shutdown if the voltage is higher than
4300mV which value is hard-coded.
This function is disabled by default.
SIM PIN
NO
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
307
7/28/2014
AT+CPMVT=?
+CPMVT: (0,2800-4300)
OK
Read Command
AT+ CPMVT?
Responses
+ CPMVT: <voltage>
OK
Write Command
Responses
OK
AT+CPMVT =<voltage>
Defined values
< voltage >
0 - disable the function
2800 - 4300 in 100mV steps.
Examples
AT+CPMVT=2800
OK
AT+CPMVT=3300
OK
References
Vendor
Syntax
Test Command
AT+CAPWROFF=?
Responses
+CAPWROFF: (0-23), (0-59),(0-1)
OK
Read Command
AT+CAPWROFF?
Responses
+CAPWROFF: <hour>,<minute>,<repeated>
OK
Write Command
AT+CAPWROFF=<hour>,<
minute>,<repeated>
Responses
OK
ERROR
Defined values
SIM5320_ATC_V2.02
308
7/28/2014
<hour>
0 23 : the hour to power off
<minute>
0 59 : the minute to power off
<repeated>
0 : not repeated.
1 : repeated every day.
Examples
AT+CAPWROFF=22,30,0
OK
AT+CAPWROFF?
+CAPWROFF: 22,30,0
OK
AT+CAPWROFF=?
+CAPWROFF: (0-23),(0-59),(0-1)
OK
NOTE: User can use the command AT+CAPWROFF=255,255,255 to disable this function
SIM5320_ATC_V2.02
309
7/28/2014
The length of actual fully qualified names of directories and files can not exceed 254.
Directory and file names can not include the following characters:
\ : * ?
<
> |
, ;
Between directory name and file/directory name, use character / as list separator, so it can not
appear in directory name or file name.
The first character of names must be a letter or a numeral or underline, and the last character can
not be period . and oblique /.
13.1
AT+FSCD
Description
This command is used to select a directory. The Module supports absolute path and relative path.
Read Command will return current directory without double quotation marks.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSCD=?
Responses
OK
Read Command
AT+FSCD?
Responses
+FSCD: <curr_path>
OK
Write Command
AT+FSCD=<path>
Responses
+FSCD: <curr_path>
OK
ERROR
Defined values
<path>
SIM5320_ATC_V2.02
310
7/28/2014
Examples
AT+FSCD=C:
+FSCD: C:/
OK
AT+FSCD=C:/
+FSCD: C:/
OK
AT+FSCD?
+FSCD: C:/
OK
AT+FSCD=..
+FSCD: C:/
OK
13.2
AT+FSMKDIR
Description
This command is used to create a new directory in current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSMKDIR=?
Responses
OK
Write Command
AT+FSMKDIR=<dir>
Responses
OK
ERROR
Defined values
<dir>
String without double quotes, directory name which does not already exist in current directory.
Examples
SIM5320_ATC_V2.02
311
7/28/2014
AT+FSMKDIR= SIMTech
OK
AT+FSCD?
+FSCD: C:/
OK
AT+FSLS
+FSLS: SUBDIRECTORIES:
SIMTech
OK
13.3
AT+FSRMDIR
Description
This command is used to delete existing directory in current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSRMDIR=?
Responses
OK
Write Command
AT+FSRMDIR=<dir>
Responses
OK
ERROR
Defined values
<dir>
String without double quotes.
Examples
AT+FSRMDIR=SIMTech
OK
AT+FSCD?
+FSCD: C:/
OK
AT+FSLS
+FSLS: SUBDIRECTORIES:
Audio
Picture
SIM5320_ATC_V2.02
312
7/28/2014
Video
VideoCall
OK
13.4
AT+FSLS
Description
This command is used to list informations of directories and/or files in current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSLS=?
Responses
+FSLS: (list of supported <type>s)
OK
Read Command
AT+FSLS?
Responses
+FSLS: SUBDIRECTORIES:<dir_num>,FILES:<file_num>
OK
Write Command
AT+FSLS=<type>
Responses
[+FSLS: SUBDIRECTORIES:
<list of subdirectories>
<CR><LF>]
[+FSLS: FILES:
<list of files>
<CR><LF>]
OK
Execution Command
AT+FSLS
Responses
[+FSLS: SUBDIRECTORIES:
<list of subdirectories>
<CR><LF>]
[+FSLS: FILES:
<list of files>
<CR><LF>]
OK
Defined values
<dir_num>
Integer type, the number of subdirectories in current directory.
<file_num>
SIM5320_ATC_V2.02
313
7/28/2014
Examples
AT+FSLS?
+FSLS: SUBDIRECTORIES:2,FILES:2
OK
AT+FSLS
+FSLS: SUBDIRECTORIES:
FirstDir
SecondDir
+FSLS: FILES:
image_0.jpg
image_1.jpg
OK
AT+FSLS=2
+FSLS: FILES:
image_0.jpg
image_1.jpg
OK
13.5
Description
This command is used to delete a file in current directory. Before do that, it needs to use AT+FSCD
select the father directory as current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
Responses
AT+FSDEL=?
OK
Write Command
AT+FSDEL=<filename>
Responses
OK
SIM5320_ATC_V2.02
314
7/28/2014
ERROR
Defined values
<filename>
String with or without double quotes, file name which is relative and already existing.
If <filename> is *.*, it means delete all files in current directory.
If the file path contains non-ASCII characters, the filename parameter should contain a prefix of
{non-ascii} and the quotation mark.
Examples
AT+FSDEL=image_0.jpg
OK
13.6
AT+FSRENAME
Description
This command is used to rename a file in current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSRENAME=?
Responses
OK
Write Command
AT+FSRENAME=
<old_name>,<new_name>
Responses
OK
ERROR
Defined values
<old_name>
String with or without double quotes, file name which is existed in current directory. If the file path
contains non-ASCII characters, the file path parameter should contain a prefix of {non-ascii} and
the quotation mark.
<new_name>
New name of specified file, string with or without double quotes. If the file path contains
non-ASCII characters, the file path parameter should contain a prefix of {non-ascii} and the
quotation mark.
Examples
SIM5320_ATC_V2.02
315
7/28/2014
AT+FSRENAME=image_0.jpg, image_1.jpg
OK
AT+FSRENAME= "my test.jpg", {non-ascii}"E6B58BE8AF95E99984E4BBB62E6A7067"
OK
13.7
AT+FSATTRI
Description
This command is used to request the attributes of file which exists in current directory.
SIM PIN
NO
References
Vendor
Syntax
Test Command
Responses
AT+FSATTRI=?
OK
Write Command
AT+FSATTRI=<filename>
Responses
+FSATTRI: <file_size>, <create_date>
OK
Defined values
<filename>
String with or without double quotes, file name which is in current directory. If the file path
contains non-ASCII characters, the file path parameter should contain a prefix of {non-ascii} and
the quotation mark.
<file_size>
The size of specified file, and the unit is in Byte.
<create_date>
Create date and time of specified file, the format is YYYY/MM/DD HH/MM/SS Week.
Week Mon, Tue, Wed, Thu, Fri, Sat, Sun
Examples
AT+FSATTRI=image_0.jpg
+FSATTRI: 8604, 2008/04/28 10:24:46 Tue
OK
AT+FSATTRI={non-ascii}"E6B58BE8AF95E99984E4BBB62E6A7067"
+FSATTRI: 6296, 2012/01/06 00:00:00 Sun
OK
SIM5320_ATC_V2.02
316
7/28/2014
13.8
AT+FSMEM
Description
This command is used to check the size of available memory. The response will list total size and
used size of local storage space if present and mounted.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSMEM=?
Responses
OK
Execution Command
AT+FSMEM
Responses
+FSMEM: C:(<total>, <used>)
OK
Defined values
<total>
The total size of local storage space.
<used>
The used size of local storage space.
NOTE: The unit of storage space size is in Byte.
Examples
AT+FSMEM
+FSMEM: C:(11348480, 2201600)
OK
13.9
Description
This command is used to set the storage place for media files.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+FSLOCA=?
SIM5320_ATC_V2.02
Responses
+FSLOCA: (list of supported <loca>s)
317
7/28/2014
OK
Read Command
AT+FSLOCA?
Responses
+FSLOCA: <loca>
OK
Write Command
AT+FSLOCA=<loca>
Responses
OK
ERROR
Defined values
<loca>
0
Examples
AT+FSLOCA=0
OK
AT+FSLOCA?
+FSLOCA: 0
OK
References
Vendor
Syntax
Test Command
AT+FSCOPY=?
Responses
OK
Write Command
AT+FSCOPY=<file1>,<file
2>[<sync_mode>]
Responses
+FSCOPY: <percent>
[+FSCOPY: <percent>]
OK
OK
+FSCOPY: <percent>
[+FSCOPY: <percent>]
+FSCOPY: END
SIM5320_ATC_V2.02
318
7/28/2014
Defined values
<file1>
The sources file name or the whole path name with sources file name. If the file path contains
non-ASCII characters, the file path parameter should contain a prefix of {non-ascii} and the
quotation mark.
<file2>
The destination file name or the whole path name with destination file name. If the file path
contains non-ASCII characters, the file path parameter should contain a prefix of {non-ascii} and
the quotation mark.
<percent>
The percent of copy done. The range is 0.0 to 100.0
<sync_mode>
The execution mode of the command:
0 synchronous mode
1 asynchronous mode
NOTE:
1. The <file1> and <file2> should give the whole path and name, if only given file name, it will
refer to current path (AT+FSCD) and check the files validity.
2. If <file2> is a whole path and name, make sure the directory exists, make sure that the file
name does not exist or the file name is not the same name as the sub folder name, otherwise return
error.
3. <percent> report refer to the copy file size. The big file maybe report many times, and little
file report less.
4. If <sync_mode> is 1, the command will return OK immediately, and report final result with
+FSCOPY: END.
SIM5320_ATC_V2.02
319
7/28/2014
Examples
AT+FSCD?
+FSCD: C:/
OK
AT+FSCOPY= C:/TESTFILE,COPYFILE (Copy file TESTFILE on C:/ to C:/COPYFILE)
+FSCOPY: 1.0
+FSCOPY: 9.7
+FSCOPY: 19.4
+FSCOPY: 100.0
OK
AT+FSCOPY= "my test.jpg", {non-ascii}"E6B58BE8AF95E99984E4BBB62E6A7067"
+FSCOPY:1.0
+FSCOPY:100.0
OK
SIM5320_ATC_V2.02
320
7/28/2014
14.1
AT+CTXFILE
Description
This command is used to select a file which will be transmitted from the module to host. After
selecting the file successfully, use HyperTerminal to get the file over Xmodem protocol [refer AT
Commands Samples: File transmission to host].
NOTE: If available memory is not enough, file transmission will fail. If user uses HyperTerminal
Applet (MS), please make sure the storage path to host can not include Non-ASCII character, but
file name can include Non-ASCII character.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTXFILE=?
Responses
+CTXFILE: (list of supported <dir_type>s), (list of supported
<protocol>s)
OK
Write Command
AT+CTXFILE=<file_name>
[,<dir_type>[,<protocol>]]
Responses
OK
FILE NOT EXISTING
ERROR
Defined values
<filename>
String with double quotes, file name to be transmitted to PC host which already exists. If the file
path contains non-ASCII characters, the file path parameter should contain a prefix of {non-ascii}.
NOTE: The path name only supports ASCII character.
<dir_type>
0 file to be transmitted is in current directory; before AT+CTXFILE execution, it needs to set
current directory [refer AT+FSCD]
NOTE: If <dir_type> is omitted, it will select a file to be transmitted which is in current directory.
AT+FSCD and AT+FSLS being used in combination can help user to check the file selected
SIM5320_ATC_V2.02
321
7/28/2014
Examples
AT+CTXFILE=image_0.jpg, 0,1
OK
AT+FSCD=C:/
+FSCD: C:/
OK
AT+FSLS=2
+FSLS: FILES:
video_2.mp4
image_1.jpg
OK
AT+CTXFILE=video_2.mp4
OK
.
14.2
AT+CRXFILE
Description
This command is used to set file name which is received from host to file system of module. After
setting successfully, use HyperTerminal to send the file over Xmodem protocol [refer AT
Commands Samples: File received from host].
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CRXFILE=
Responses
+CRXFILE: (list of supported <dir_type>s)
OK
Write Command
AT+CRXFILE=<file_name>
[,<dir_type>]
Responses
OK
FILE IS EXISTING
ERROR
SIM5320_ATC_V2.02
322
7/28/2014
Defined values
<file_name>
String with double quotes, file name which is received from host. If the file path contains
non-ASCII characters, the file path parameter should contain a prefix of {non-ascii}.
<dir_type>
Specify storage location of file which is received from host. If this parameter is omitted, it will save
the file to current directory [refer AT+FSCD]
0 save file received from host to current directory; before AT+CTXFILE execution, it
needs to set current directory [refer AT+FSCD]
Examples
AT+CRXFILE=image_8.jpg,0
OK
AT+FSCD=C:/
+FSCD: C:/
OK
AT+CRXFILE=video.mp4
OK
.
14.3
AT+CMWAIT
receiving
Description
This command is used to config the waiting seconds when setup a xmodem receiving task. Set to
zero means no wait and start receive process. Ought to be used together with +CRXFILE command.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CMWAIT=?
Responses
+CMWAIT: (0-60)
OK
Read Command
AT+CMWAIT?
Responses
+CMWAIT: <value>
OK
ERROR
SIM5320_ATC_V2.02
323
7/28/2014
Write Command
AT+CMWAIT=<value>
Responses
OK
ERROR
Execution Command
AT+CMWAIT
Responses
+CMWAIT: 10
OK
Defined values
< value >:
0 60 second
Examples
AT+FSCD=C:/Video
+FSCD: C:/Video/
OK
AT+CMWAIT=5
OK
AT+CRXFILE=1.txt
OK
NOTE:
1. The default < value > is 10 second, it can be set to any positive integer value, 0~60 is permitted..
2. The < value > cannt be saved, will be set to default value when the device restart later.
14.4
AT+CFTRANRX
Description
This command is used to transfer a file to EFS.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CFTRANRX=?
Write Command
Responses
+CFTRANRX: [{non-ascii}]"FILEPATH"
OK
Responses
AT+CFTRANRX=<filepat
>
SIM5320_ATC_V2.02
324
7/28/2014
h>,<len>
OK
>
ERROR
ERROR
Defined values
<filepath>
The path of the file on EFS.
<len>
The length of the file data to send.
NOTE
The <filepath> must be a full path with the directory path.
Examples
AT+CFTRANRX=c:/MyDir/t1.txt,10
>testcontent
OK
14.5
AT+CFTRANTX
Description
This command is used to transfer a file from EFS to host. Before using this command, the
AT+CATR must be used to set the correct port used.
SIM PIN References
NO
Vendor
Syntax
Test Command
AT+CFTRANTX=?
Write Command
AT+CFTRANTX=<filepath
>
Responses
+CFTRANTX: [{non-ascii}]"FILEPATH"
OK
Responses
[
+CFTRANTX: DATA,<len>
+CFTRANTX: DATA,<len>
]
+CFTRANTX: 0
SIM5320_ATC_V2.02
325
7/28/2014
OK
ERROR
Defined values
<filepath>
The path of the file on EFS.
<len>
The length of the following file data to output.
NOTE
The <filepath> must be a full path with the directory path.
Examples
AT+CFTRANTX=c:/MyDir/t1.txt
+CFTRANTX: DATA, 10
Testcontent
+CFTRANTX: 0
OK
SIM5320_ATC_V2.02
326
7/28/2014
15.1
Description
This command is used to set the URL of MMS center.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSCURL=?
Responses
+CMMSCURL:URL
OK
Read Command
AT+CMMSCURL?
Responses
+CMMSCURL: <mmscurl>
OK
Write Command
AT+CMMSCURL=<mmsc
url>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<mmscurl>
The URI of MMS center, not including http://.The max length of <mmscurl> is 40 bytes.
Examples
AT+CMMSCURL=mmsc.monternet.com
OK
AT+CMMSCURL?
+CMMSCURL:mmsc.monternet.com
OK
AT+CMMSCURL=?
+CMMSCURL:URL
SIM5320_ATC_V2.02
327
7/28/2014
OK
15.2
AT+CMMSPROTO
Description
This command is used to set the protocol parameters and MMS proxy address.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSPROTO=?
Responses
+CMMSPROTO:
(0,1),(0-255).(0-255).(0-255).(0-255),(0-65535)
OK
Read Command
AT+CMMSPROTO?
Responses
+CMMSPROTO: <type>,<gateway>,<port>
OK
Write Command
AT+CMMSPROTO=<type>
[,<gateway>,<port>]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<type>
The application protocol for MMS:
0 WAP
1 HTTP
<gateway>
IP address of MMS proxy. If empty, it is set to 255.255.255.255.
<port>
Port of MMS proxy. If empty, it is set to 65535.
Examples
AT+CMMSPROTO=0,10.0.0.172,9201
OK
AT+CCMMSPROTO?
+CMMSPROTO: 0,10.0.0.172,9201
OK
AT+CMMSPROTO=?
SIM5320_ATC_V2.02
328
7/28/2014
+CMMSPROTO: (0,1),(0-255).(0-255).(0-255).(0-255),(0-65535)
OK
15.3
Description
This command is used to set the parameters for sending MMS.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSSENDCFG=?
Responses
+CMMSSENDCFG: (0-6),(0-3),(0,1),(0,1),(0-2),(0-4)
OK
Read Command
AT+CMMSSENDCFG?
Responses
+CMMSSENDCFG:
<valid>,<pri>,<sendrep>,<readrep>,<visible>,<class>
OK
Write Command
AT+CMMSSENDCFG=<val
id>,<pri>,<sendrep>,<readre
p>,<visible>,<class>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<valid>
The valid time of the sent MMS:
0 1 hour.
1 12 hours.
2 24 hour.
3 2 days.
4 1 week.
5 maximum.
6 Not set (default).
<pri>
Priority:
0 lowest.
1 normal.
2 highest.
3 Not set (default)
<sendrep>
SIM5320_ATC_V2.02
329
7/28/2014
Examples
AT+CMMSSENDCFG=6,3,1,1,2,4
OK
AT+CMMSSENDCFG?
+CMMSSENDCFG:6,3,1,1,2,4
OK
AT+CMMSSENDCFG=?
+CMMSSENDCFG: (0-6),(0-3),(0,1),(0,1),(0-2),(0-4)
OK
15.4
Description
This command is used to enter or exit edit mode of mms.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSEDIT=?
SIM5320_ATC_V2.02
Responses
+CMMSEDIT: (0,1)
330
7/28/2014
OK
Read Command
AT+CMMSEDIT?
Responses
+CMMSEDIT: <mode>
OK
Write Command
AT+CMMSEDIT=<mode>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<mode>
Whether to allow edit MMS:
0 No.
1 Yes.
Examples
AT+CMMSEDIT=0
OK
AT+CMMSEDIT?
+CMMSEDIT:0
OK
AT+CMMSEDIT=?
+CMMSEDIT:(0-1)
OK
15.5
AT+CMMSDOWN
Description
This command is used to download file data to MMS body. When downloading a text file or title
from UART, the text file or title must start with \xFF\xFE , \xFE\xFF or \xEF\xBB\xBF to indicate
whether it is UCS2 little endian, UCS2 big endian or UTF-8 format. Without these OCTETS, the
text file or title will be regarded as UTF-8 format.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSDOWN=?
SIM5320_ATC_V2.02
Responses
+CMMSDOWN: PIC,(1-<max_pdu_size>),NAME
331
7/28/2014
Write Command
AT+CMMSDOWN=<type>,
<size>[,<name>]
Or
AT+CMMSDOWN=<type>,
<dir>,<filename>
+CMMSDOWN: TEXT,(1-<max_pdu_size>),NAME
+CMMSDOWN: AUDIO,(1-<max_pdu_size>),NAME
+CMMSDOWN: VIDEO,(1-<max_pdu_size>),NAME
+CMMSDOWN: SDP,(1-<max_pdu_size>)
+CMMSDOWN: FILE,(0),FILENAME
+CMMSDOWN: TITLE,(1-40)
OK
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<type>
The type of file to download:
PIC
JPG/GIF/PNG/TIFF file.
TEXT"
plain text file.
AUDIO MIDI/WAV/AMR/MPEG file.
VIDEO 3GPP/MP4 file.
SDP
application/sdp type
FILE"
file in the UE.
TITLE"
subject of the MMS.
<size>
The size of file data needs to download through AT interface.
<name>
The name of the file to download. When <type> is TITLE or SDP, this field is not needed.
Otherwise, it cannot be omitted.
<dir>
The directory of the selected file:
0 current directory[refer to AT+FSCD]
1 C:/Picture directory
2 C:/Video directory
3 C:/VideoCall directory
7 C:/Audio directory
<filename>
The name of the file existing in the UE to download.
<max_pdu_size>
The maximum size of MMS PDU permitted.
Examples
SIM5320_ATC_V2.02
332
7/28/2014
AT+CMMSDOWN=?
+CMMSDOWN: PIC,(1-102400),NAME
+CMMSDOWN: TEXT,(1-102400),NAME
+CMMSDOWN: AUDIO,(1-102400),NAME
+CMMSDOWN: VIDEO,(1-102400),NAME
+CMMSDOWN:"SDP",(1-102400)
+CMMSDOWN: FILE,(0), FILENAME
+CMMSDOWN: TITLE,(1-40)
OK
AT+CMMSDOWN=PIC,20112,test1.jpg <CR><LF>
>.(20112 bytes of data transferred in AT interface)
OK
AT+CMMSDOWN="FILE",2, test2.wav
OK
15.6
AT+CMMSDELFILE
Description
This command is used to delete a file within the editing MMS body.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSDELFILE=?
Responses
OK
Write Command
AT+CMMSDELFILE=<inde
x>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of the file to delete contains in the MMS body.
Examples
AT+CMMSDELFILE=2
OK
AT+CMMSDELFILE=?
OK
SIM5320_ATC_V2.02
333
7/28/2014
15.7
AT+CMMSSEND
Send MMS
Description
This command is used to send MMS. It can only be performed in edit mode of MMS.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSSEND=?
Write Command
AT+CMMSSEND=<address
>
Responses
+CMMSSEND=ADDRESS
OK
Responses
OK
+CMMSSEND:0
ERROR
+CME ERROR: <err>
Or
Execute Command
AT+CMMSSEND
OK
+CMMSSEND :<err>
Responses
OK
+CMMSSEND:0
ERROR
+CME ERROR: <err>
or
OK
+CMMSSEND :<err>
Defined values
<address>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
SIM5320_ATC_V2.02
334
7/28/2014
AT+CMMSSEND=13613623116
OK
+CMMSSEND:0
AT+CMMSSEND
OK
+CMMSSEND:0
AT+CMMSSEND= 13613623116
OK
+CME ERROR: 190
AT+CMMSSEND=2,13613623116
+CME ERROR: 177
15.8
Description
This command is used to add the recipients.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSRECP=?
Responses
+CMMSRECP: ADDRESS
OK
Read Command
AT+CMMSRECP?
Responses
+CMMSRECP: (list of <addr>s)
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CMMSRECP=<addr>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
SIM5320_ATC_V2.02
335
7/28/2014
AT+CMMSRECP=?
+CMMSRECP: "ADDRESS"
OK
AT+CMMSRECP?
+CMMSRECP:"[email protected];15813862534
OK
AT+CMMSRECP=13818362596"
OK
15.9
AT+CMMSCC
Description
This command is used to add the cc recipients.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSCC=?
Responses
+CMMSCC: ADDRESS
OK
Read Command
AT+CMMSCC?
Responses
+CMMSCC: (list of <addr>s)
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CMMSCC=<addr>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
AT+CMMSCC=?
+CMMSCC: "ADDRESS"
SIM5320_ATC_V2.02
336
7/28/2014
OK
AT+CMMSCC?
+CMMSCC:"[email protected];15813862534
OK
AT+CMMSCC=13818362596"
OK
15.10 AT+CMMSBCC
Description
This command is used to add the secret recipients.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSBCC=?
Responses
+CMMSBCC: ADDRESS
OK
Read Command
AT+CMMSBCC?
Responses
+CMMSBCC: (list of <addr>s)
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CMMSBCC=<addr>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
AT+CMMSBCC=?
+CMMSBCC: "ADDRESS"
OK
AT+CMMSBCC?
SIM5320_ATC_V2.02
337
7/28/2014
+CMMSBCC:"[email protected];15813862534
OK
AT+CMMSBCC=13818362596"
OK
References
Vendor
Syntax
Test Command
AT+CMMSDELRECP=?
Responses
+CMMSDELRECP: ADDRESS
OK
Write Command
AT+CMMSDELRECP=<add
r>
Responses
OK
ERROR
+CME ERROR: <err>
Execute Command
AT+CMMSDELRECP
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
AT+CMMSDELRECP=?
+CMMSDELRECP: "ADDRESS"
OK
AT+CMMSDELRECP
OK
AT+CMMSDELRECP=13818362596"
SIM5320_ATC_V2.02
338
7/28/2014
OK
15.12 AT+CMMSDELCC
Description
This command is used to delete the cc recipients. The execution command is used to delete all the
cc recipients
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSDELCC=?
Responses
+CMMSDELCC: ADDRESS
OK
Write Command
AT+CMMSDELCC=<addr>
Responses
OK
ERROR
+CME ERROR: <err>
Execute Command
AT+CMMSDELCC
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
AT+CMMSDELCC=?
+CMMSDELCC: "ADDRESS"
OK
AT+CMMSDELCC
OK
AT+CMMSDELCC=13818362596"
OK
SIM5320_ATC_V2.02
339
7/28/2014
15.13 AT+CMMSDELBCC
Description
This command is used to delete the secret recipients. The execution command is used to delete all
the secret recipients
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSDELBCC=?
Responses
+CMMSDELBCC: ADDRESS
OK
Write Command
AT+CMMSDELBCC=<addr
>
Responses
OK
ERROR
+CME ERROR: <err>
Execute Command
AT+CMMSDELBCC
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address.
As mobile phone number, the max length is 40;
As email address, the max length is 60;
Examples
AT+CMMSDELBCC=?
+CMMSDELRECP: "ADDRESS"
OK
AT+CMMSDELBCC
OK
AT+CMMSDELBCC=13818362596"
OK
SIM5320_ATC_V2.02
340
7/28/2014
References
Vendor
Syntax
Test Command
AT+CMMSRECV=?
Write Command
AT+CMMSRECV=<locatio
n>
Responses
+CMMSRECV: LOCATION
OK
Responses
OK
+CMMSRECV: 0
ERROR
+CME ERROR: <err>
OK
+CMMSRECV :<err>
Defined values
<location>
Reported by +WAP_PUSH_MMS message
Examples
AT+CMMSRECV=http://211.136.112.84/MI76xou_anB
OK
+CMMSRECV: 0
AT+CMMSRECV= http://211.136.112.84/MI76xou_anB
OK
+CMMSRECV: 190
AT+CMMSRECV=http://211.136.112.84/MI76xou_anB
+CME ERROR: 177
SIM5320_ATC_V2.02
341
7/28/2014
This command is used to view the information of MMS from the inbox or the memory. The title
part of the MMS is formatted with UCS2 little endian character set.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSVIEW=?
Responses
+CMMSVIEW: (0,1)
OK
Write Command
AT+CMMSVIEW=<index>
Responses
+CMMSVIEW:<mmstype>,<sender>,<receipts>,<ccs>,<bc
cs>,<datetime>,<subject>,<size><CR><LF>list
of
[<fileIndex>, <name>, <type>, <filesize>]<CR><LF>
OK
ERROR
+CME ERROR: <err>
Execute Command
AT+CMMSVIEW
Responses
+CMMSVIEW:<mmstype>,<sender>,<receipts>,<ccs>,<bc
cs>,<datetime>,<subject>,<size><CR><LF>list
of
[<fileIndex>, <name>, <type>,<fileSize>]<CR><LF>
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of MMS.
<mmstype>
The state of MMS:
0 Received MMS.
1 Sent MMS.
2 Unsent MMS.
<sender>
The address of the sender
<receipts>
The list of the recipients separated by ;
<ccs>
The list of cc recipients separated by ;
<bccs>
The list of secret recipients separated by ;
SIM5320_ATC_V2.02
342
7/28/2014
<datetime>
For received MMS, it is the time indication when you received the MMS. For other MMS, it is the
time indication when you create the MMS.
<subject>
The title of MMS.
<size>
The data size of MMS.
<fileIndex>
The index of each file contained in the MMS body
<name>
The name of each file contained in the MMS body
<type>
The type of each file contained in the MMS body:
1 unknown type.
2 text.
3 text/html.
4 text/plain.
5 image.
6 image/gif.
7 image/jpg.
8 image/tif.
9 image/png.
10 audio/midi.
11 audio/x-wav.
12 audio /amr.
13 audio /mpeg.
14 video /mp4.
15 video /3gpp.
29 application/sdp.
30 application/smil.
<fileSize>
The size of each file contained in the MMS body
Examples
AT+CMMSVIEW=?
+CMMSVIEW: (0,1)
OK
AT+CMMSVIEW
+CMMSVIEW:2,"",,,,"0000-00-00 00:00:00","dsidfisids",83867
0,"1.txt",4,10
1,"80.jpg",7,83794
OK
SIM5320_ATC_V2.02
343
7/28/2014
AT+CMMSVIEW=1
+CMMSVIEW:0,"",,,,"2009-03-10 10:06:12","my title",83867
0,"1.txt",4,10
1,"80.jpg",7,83794
OK
15.16 AT+CMMSREAD
Description
This command is used to read the given file of MMS in the memory. When reading a text file, it
will be converted to UCS2 little endian before final UART output.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSREAD=?
Responses
OK
Write Command
AT+CMMSREAD=<index>
Responses
+CMMSREAD:<name>,<datSize>
<FileContent>
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of the given file contained in the MMS body
<name>
The name of the given file contained in the MMS body
<datSize>
The size of the given file contained in the MMS body
<FileContent>
The content of the file to be read
Examples
AT+CMMSREAD=?
OK
SIM5320_ATC_V2.02
344
7/28/2014
AT+CMMSREAD=3
+CMMSREAD:"1.jpg",83794
(File Content)
OK
15.17 AT+CMMSSNATCH
Description
This command is used to snatch the given file of MMS in memory, and save it to UE file system.
If the input file name already exists in the selected directory, it will fail.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSSNATCH=?
Responses
OK
Write Command
AT+CMMSSNATCH=<inde
x>,<dir>,<filename>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of the given file contained in the MMS body
<dir>
The directory of the selected file:
0 current directory[[refer to AT+FSCD]
<filename>
The name of the given file contained in the MMS body
Examples
AT+CMMSSNATCH=?
OK
AT+CMMSSNATCH=3,2,mylocalfile.jpg
OK
SIM5320_ATC_V2.02
345
7/28/2014
15.18 AT+CMMSSAVE
Description
This command is used to save the selected MMS into a mailbox.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSSAVE=?
Responses
+CMMSSAVE: (0-1),(0-2)
OK
Write Command
AT+CMMSSAVE=<index>[,
<mmstype>]
Responses
+CMMSSAVE: <index>
OK
ERROR
+CME ERROR: <err>
Execute Command
AT+CMMSSAVE
Responses
+CMMSSAVE: <index>
OK
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of mail box is selected to save the MMS
<mmstype>
The status of MMS:
0 Received MMS.
1 Sent MMS.
2 Unsent MMS.
Examples
AT+CMMSSAVE=?
+CMMSSAVE: (0-1),(0-2)
OK
AT+CMMSSAVE=1
+CMMSSAVE: 1
OK
SIM5320_ATC_V2.02
346
7/28/2014
15.19 AT+CMMSDELETE
Description
This command is used to delete MMS in the mailbox. The execute command is used to delete all
MMS in the mailbox.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSDELETE=?
Responses
+CMMSDELETE: (0-1)
OK
Write Command
AT+CMMSDELETE?
Responses
+CMMSDELETE: <mmsNum>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CMMSDELETE=<inde
x>
Responses
OK
Execute Command
AT+CMMSDELETE
Responses
OK
ERROR
+CME ERROR: <err>
ERROR
+CME ERROR: <err>
Defined values
<index>
The index of the mail box, where is selected to save the MMS.
<mmsNum>
The number of MMS saved in the mail box
Examples
AT+CMMSDELETE=?
+CMMSDELETE: (0-1)
OK
AT+CMMSDELETE
OK
AT+CMMSDELETE=1
SIM5320_ATC_V2.02
347
7/28/2014
OK
References
Vendor
Syntax
Test Command
AT+CMMSSYSSET=?
Responses
+CMMSSYSSET:
(10240-<max_pdu_size>),(512-4096),(512-4096),(1-<wap_send_b
uf_count>)
OK
Write Command
AT+CMMSSYSSET?
Responses
+CMMSSYSSET:
<max_pdu_size>,<wap_send_buf_size>,<wap_recv_buf_size>,<w
ap_send_buf_count>
OK
Write Command
AT+CMMSSYSSET=<max_
pdu_size>[,<wap_send_buf_
size>[,<wap_recv_buf_size>
[,<wap_send_buf_count>]]]
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
< max_pdu_size >
The maximum MMS pdu size allowed by operator.
<wap_send_buf_size>
The length of WTP PDU for sending
<wap_recv_buf_size>
The length of WTP PDU for receiving
<wap_send_buf_count>
The count of buffers for WTP sending in group
Examples
AT+CMMSSYSSET=?
+CMMSSYSSET: (10240-307712),(512-4096),(512-4096),(1-8)
SIM5320_ATC_V2.02
348
7/28/2014
OK
AT+CMMSSYSSET?
+CMMSSYSSET:102400,1460,1500,6
OK
AT+CMMSSYSSET=102400,1430,1500,8
OK
AT+CMMSSYSSET=102400
OK
15.21 AT+CMMSINCLEN
Increase
the
length
of
audio/video
attachment header
Description
This command is used to increase the length of video/audio attachment header length in the length
indicator field. This command is used to be compatible with some operators. This command must
be set before calling AT+CMMSEDIT=1.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSINCLEN=?
Responses
+CMMSINCLEN: (0,1)
OK
Read Command
AT+CMMSINCLEN?
Responses
+CMMSINCLEN: <mode>
OK
Write Command
AT+CMMSINCLEN=<mod
e>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<mode>
Whether to increase the length:
0 No.
1 Yes.
Examples
SIM5320_ATC_V2.02
349
7/28/2014
AT+CMMSINCLEN=0
OK
AT+CMMSINCLEN?
+CMMSINCLEN:0
OK
AT+CMMSINCLEN=?
+CMMSINCLEN:(0-1)
OK
References
Vendor
Syntax
Test Command
AT+CMMSUA=?
Responses
+CMMSUA: UserAgent
OK
Read Command
AT+CMMSUA?
Responses
+CMMSUA: <useragent>
OK
Write Command
AT+CMMSUA=<useragent
>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<useragent>
The User-Agent of MMS packet. The maximum length is 511 bytes.
Examples
AT+CMMSUA= Test my UserAgent
OK
AT+CMMSUA?
+CMMSUA: Test my UserAgent
OK
AT+CMMSUA=?
SIM5320_ATC_V2.02
350
7/28/2014
+CMMSUA: UserAgent
OK
15.23 AT+CMMSPROFILE
Description
This command is used to set the User-Agent profile of MMS packet.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CMMSPROFILE=?
Responses
+CMMSPROFILE:UserAgentProfile
OK
Read Command
AT+CMMSPROFILE?
Responses
+CMMSPROFILE: <profile>
OK
Write Command
AT+CMMSPROFILE=<pr
ofile>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<profile>
The User-Agent profile of MMS packet. The maximum length is 511 bytes.
Examples
AT+CMMSPROFILE= Test my UserAgent profile
OK
AT+CMMSPROFILE?
+CMMSUA: Test my UserAgent profile
OK
AT+CMMSPROFILE=?
+CMMSPROFILE:UserAgent profile
OK
SIM5320_ATC_V2.02
351
7/28/2014
Description
This indication means the result of sending MMS. If successful, it
reports +CMMSSEND:0, or else, it report +CMMSSEND:<err>
MMS Notification
+WAP_PUSH_MMS:<sende
r>,<transaction_id>,<locatio
n>,<timestamp>,<class>,<si
ze>
Description
This indication means there is a new MMS received in the MMS
center.
MMS Receiving
+CMMSRECV:<err>
Description
This indication means the result of receiving MMS. If successful, it
reports +CMMSRECV:0, or else, it reports +CMMSRECV:<err>
Defined values
< sender>
The sender address of the received MMS
<transaction_id>
The X-Mms-Transaction-ID of the received MMS
<location>
The X-Mms-Content-Location of the received MMS
<timestamp>
The timestamp of the WAP push message
<class>
The X-Mms-Class of the received MMS
0 Expired
1 Retrieved
2 Rejected
3 Deferred
4 Unrecognized
<size>
The size of the received MMS
Examples
SIM5320_ATC_V2.02
352
7/28/2014
+WAP_PUSH_MMS
+WAP_PUSH_MMS: "15001844675","RROpJGJVyjeA","http://211.136.112.84/RROpJGJVyjeA"
,"09/03/17,17:14:41+32",0,13338
Description
Unknown error for mms
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
SIM5320_ATC_V2.02
353
7/28/2014
Common
16.1.1
Description
This command specifies socket PDP context parameter values for a PDP context identified by the
(local) context identification parameter <cid>. The number of PDP contexts that may be in a
defined state at the same time is given by the range returned by the test command. A special form of
the write command (AT+CGSOCKCONT=<cid>) causes the values for context <cid> to become
undefined.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CGSOCKCONT=?
Responses
+CGSOCKCONT: (range of supported<cid>s),<PDP_type>,,,(list
of supported <d_comp>s),(list of supported <h_comp>s)
OK
ERROR
Read Command
AT+CGSOCKCONT?
Responses
+CGSOCKCONT: [<cid>, <PDP_type>, <APN>,<PDP_addr>,
<d_comp>, <h_comp>[<CR><LF>
+CGSOCKCONT: <cid>, <PDP_type>, <APN>, <PDP_addr>,
<d_comp>, <h_comp>[...]]]
OK
ERROR
Write Command
AT+CGSOCKCONT=
<cid>[,<PDP_type>
[,<APN>[,<PDP_addr>
[,<d_comp>[,<h_comp>]]]]]
Responses
OK
Execution Command
AT+CGSOCKCONT
Responses
OK
ERROR
ERROR
SIM5320_ATC_V2.02
354
7/28/2014
Defined values
<cid>
(PDP Context Identifier) a numeric parameter which 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.
116
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6(reserved)
<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.
<PDP_addr>
A string parameter that identifies the MT in the address space applicable to the PDP.
Read command will continue to return the null string even if an address has been allocated during
the PDP startup procedure.
<d_comp>
A numeric parameter that controls PDP data compression:
0 off (default if value is omitted)
1 on
<h_comp>
A numeric parameter that controls PDP header compression:
0 off (default if value is omitted)
1 on
Examples
AT+CGSOCKCONT?
+CGSOCKDCONT: 1,"IP","","0.0.0.0",0,0
OK
AT+CGSOCKCONT=?
+CGSOCKCONT: (1-16),"IP",,,(0,1),(0,1)
+CGSOCKCONT: (1-16),"PPP",,,(0,1),(0,1)
+CGSOCKCONT: (1-16),"IPV6",,,(0,1),(0,1)
OK
16.1.2
AT+CSOCKSETPN
Description
SIM5320_ATC_V2.02
355
7/28/2014
This command sets default active PDP contexts profile number. When we activate PDP by using
AT+NETOPEN command, we need use the default profile number, and the context of this profile is
set by AT+CGSOCKCONT command.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSOCKSETPN=?
Responses
+CSOCKSETPN: (list of supported <profile_number>s)
OK
ERROR
Read Command
AT+CSOCKSETPN?
Responses
+CSOCKSETPN: <profile_number>
OK
ERROR
Write Command
AT+CSOCKSETPN=
<profile_number>
Execution Command
AT+CSOCKSETPN
Responses
OK
ERROR
Responses
OK
ERROR
Defined values
<profile_number>
A numeric parameter that identifies default profile number, the range of permitted values is one to
sixteen.
116
Examples
AT+CSOCKSETPN=1
OK
16.1.3
AT+CSOCKAUTH
connections of socket
Description
This command is used to set type of authentication for PDP-IP connections of socket.
SIM5320_ATC_V2.02
356
7/28/2014
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSOCKAUTH=?
Responses
+CSOCKAUTH:(range of supported <cid>s),(list of supported
<auth _type> s), <passwd_len>,<user_len>
OK
ERROR
+CME ERROR: <err>
Read Command
AT+CSOCKAUTH?
Responses
+CSOCKAUTH: <cid>,<auth_type>[,<user>]<CR><LF>
+CSOCKAUTH: <cid>,<auth_type>[,<user>]<CR><LF>
OK
ERROR
+CME ERROR: <err>
Write Command
AT+CSOCKAUTH=<cid>
[,<auth_type>[,<passwd>[,<
user>]]]
Execution Command
AT+CSOCKAUTH
Responses
OK
ERROR
+CME ERROR: <err>
Responses
OK
ERROR
+CME ERROR: <err>
Defined values
<cid>
Parameter specifies a particular PDP context definition. This is also used in other PDP
context-related commands.
116
<auth_type>
Indicate the type of authentication to be used for the specified context. If CHAP is selected
another parameter <passwd> needs to be specified. If PAP option is selected, two additional
parameters, <passwd> and <user>, need to be specified.
0 none
1 PAP
2 CHAP
3 PAP or CHAP
SIM5320_ATC_V2.02
357
7/28/2014
<passwd>
Parameter specifies the password used for authentication.
<user>
Parameter specifies the user name used for authentication.
<passwd_len>
The maximum length of the password.
<user_len>
The maximum length of the user name.
Examples
AT+CSOCKAUTH=?
+CSOCKAUTH: (1-16),(0-3),132,132
OK
AT+CSOCKAUTH=1,2,SIMCOM,123
OK
16.1.4
AT+CGSOCKQREQ
Description
This command allows the TE to specify a Quality of Service Profile that is used when the MT sends
an Activate PDP Context Request message to the network. A special form of the set command
(AT+CGSOCKQREQ=<cid>) causes the requested profile for context number <cid> to become
undefined.
This command only affects the embedded socket related PDP context definition (refer to
AT+CGSOCKCONT).
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CGSOCKQREQ=?
Responses
+CGSOCKQREQ: <PDP_type>, (list of supported <precedence>s),
(list of supported <delay>s), (list of supported <reliability>s) , (list
of supported <peak>s), (list of supported <mean>s) [<CR><LF>
+CGSOCKQREQ: <PDP_type>, (list of supported <precedence>s),
(list of supported <delay>s), (list of supported <reliability>s) , (list
of supported <peak>s), (list of supported <mean>s)
[]]
OK
ERROR
Read Command
SIM5320_ATC_V2.02
Responses
358
7/28/2014
AT+CGSOCKQREQ?
Write Command
AT+CGSOCKQREQ=<cid>
[,<precedence>
[,<delay>[,<reliability>
[,<peak> [,<mean>]]]]]
Responses
OK
Execution Command
Responses
AT+CGSOCKQREQ
OK
ERROR
ERROR
Defined values
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command). The range is from 1 to 16.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6(reserved)
<precedence>
A numeric parameter which specifies the precedence class:
0 network subscribed value
1 high priority
2 normal priority
3 low priority
<delay>
A numeric parameter which specifies the delay class:
0 network subscribed value
1 delay class 1
2 delay class 2
3 delay class 3
4 delay class 4
<reliability>
A numeric parameter which specifies the reliability class:
0 network subscribed value
1 Non real-time traffic,error-sensitive application that cannot cope with data loss
SIM5320_ATC_V2.02
359
7/28/2014
2
3
Non real-time traffic,error-sensitive application that can cope with infrequent data loss
Non real-time traffic,error-sensitive application that can cope with data loss, GMM/SM,and SMS
Real-time traffic,error-sensitive application that can cope with data loss
Real-time traffic error non-sensitive application that can cope with data loss
4
5
<peak>
A numeric parameter which specifies the peak throughput class:
0 network subscribed value
1 Up to 1000 (8 kbit/s)
2 Up to 2000 (16 kbit/s)
3 Up to 4000 (32 kbit/s)
4 Up to 8000 (64 kbit/s)
5 Up to 16000 (128 kbit/s)
6 Up to 32000 (256 kbit/s)
7 Up to 64000 (512 kbit/s)
8 Up to 128000 (1024 kbit/s)
9 Up to 256000 (2048 kbit/s)
<mean>
A numeric parameter which specifies the mean throughput class:
0
network subscribed value
1 100 (~0.22 bit/s)
2 200 (~0.44 bit/s)
3 500 (~1.11 bit/s)
4 1000 (~2.2 bit/s)
5 2000 (~4.4 bit/s)
6 5000 (~11.1 bit/s)
7
10000 (~22 bit/s)
8
20000 (~44 bit/s)
9
50000 (~111 bit/s)
10 100000 (~0.22 kbit/s)
11 200000 (~0.44 kbit/s)
12 500000 (~1.11 kbit/s)
13 1000000 (~2.2 kbit/s)
14 2000000 (~4.4 kbit/s)
15 5000000 (~11.1 kbit/s)
16 10000000 (~22 kbit/s)
17 20000000 (~44 kbit/s)
18 50000000 (~111 kbit/s)
31 optimization
Examples
AT+CGSOCKQREQ?
SIM5320_ATC_V2.02
360
7/28/2014
+CGSOCKQREQ:
OK
AT+CGSOCKQREQ=?
+CGSOCKQREQ: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGSOCKQREQ: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGSOCKQREQ: "IPV6",(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
16.1.5
AT+CGSOCKEQREQ
Description
The test command returns values supported as a compound value.
The read command returns the current settings for each defined context for which a QOS was
explicitly specified.
The write command allows the TE to specify a Quality of Service Profile for the context identified
by the context identification parameter <cid> which is used when the MT sends an Activate PDP
Context Request message to the network.
A special form of the write command,AT+CGSOCKEQREQ=<cid> causes the requested profile for
context number <cid> to become undefined.
This command only affects the embedded socket related PDP context definition (refer to
AT+CGSOCKCONT).
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CGSOCKEQREQ=?
SIM5320_ATC_V2.02
Responses
+CGSOCKEQREQ: <PDP_type>,(list of supported <Traffic
class>s),(list of supported <Maximum bitrate UL>s),(list of
supported <Maxim um bitrate DL>s),(list of supported
<Guaranteed bitrate UL>s,(list of supported <Guaranteed bitrate
DL>s),(list of supported <Deliv ery order>s),(list of supported
<Maximum SDU size>s),(list of supported <SDU error
ratio>s),(list of supported <Residual bit error
Ratio>s),(list of supported <Delivery of erroneous SDUs>s),(list of
Supported <Transfer delay>s),(list of supported <Traffic handling
priority>s) [<CR><LF>
+CGSOCKEQREQ: <PDP_type>,(list of supported <Traffic
class>s),(list of supported <Maximum bitrate UL>s),(list of
supported <Maxim um bitrate DL>s),(list of supported
<Guaranteed bitrate UL>s,(list of supported <Guaranteed bitrate
DL>s),(list of supported <Deliv ery order>s),(list of supported
361
7/28/2014
Read Command
AT+CGSOCKEQREQ?
Responses
+CGSOCKEQREQ: [<cid>,<Traffic class>,<Maximum bitrate
UL>,<Ma ximum bitrate DL>,<Guaranteed bitrate
UL>,<Guaranteed bitrate DL>,<Delivery order>,<Maximum SDU
size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>][<CR><LF>
+CGSOCKEQREQ: <cid>,<Traffic class>,<Maximum bitrate
UL>,<Ma ximum bitrate DL>,<Guaranteed bitrate
UL>,<Guaranteed bitrate DL>,<Delivery order>,<Maximum SDU
size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>[]]
OK
Write Command
AT+CGSOCKEQREQ=<cid
>[,<Traffic class>[,<Maxim
um bitrate UL>[,<Maximu
m bitrate DL>[,<Guarantee
d bitrateUL>[,<Guaranteed
bitrate DL>[,<Delivery ord
er>[,<Maximum SDU size>
[,<SDU
error ratio>[,<Residual bit
error ratio>[,<Delivery of e
rroneous SDUs>[,<Transfer
delay>[,<Traffic handling p
riority>]]]]]]]]]]]]
Execution Command
Responses
OK
AT+CGSOCKEQREQ
OK
ERROR
Responses
Defined values
SIM5320_ATC_V2.02
362
7/28/2014
<cid>
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands. The range is from 1 to 16.
<Traffic class>
0 conversational
1 streaming
2 interactive
3 background
4 subscribed value
<Maximum bitrate UL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(up-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g.
AT+CGSOCKEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Maximum bitrate DL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(down-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g.
AT+CGSOCKEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate UL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(up-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGSOCKEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate DL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(down-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGSOCKEQREQ=,32,).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Delivery order>
This parameter indicates whether the UMTS bearer shall provide in-sequence SDU delivery or not.
0
no
1 yes
2
subscribed value
<Maximum SDU size>
This parameter indicates the maximum allowed SDU size in octets.
The range is from 0 to 1520. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<SDU error ratio>
SIM5320_ATC_V2.02
363
7/28/2014
This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU
error ratio is defined only for conforming traffic.As an example a target SDU error ratio of 5*10-3
would be specified as 5E3(e.g.AT+CGSOCKEQREQ=..,5E3,).
0E0 subscribed value
1E2
7E3
1E3
1E4
1E5
1E6
1E1
<Residual bit error ratio>
This parameter indicates the target value for the undetected bit error ratio in the delivered SDUs. If
no error detection is requested,Residual bit error ratio indicates the bit error ratio in the delivered
SDUs.As an example a target residual bit error ratio of 5*10-3 would be specified as 5E3(e.g.
AT+CGSOCKEQREQ=,5E3,..).
0E0 subscribed value
5E2
1E2
5E3
4E3
1E3
1E4
1E5
1E6
6E8
<Delivery of erroneous SDUs>
This parameter indicates whether SDUs detected as erroneous shall be delivered or not.
0 no
1 yes
2 no detect
3 subscribed value
<Transfer delay>
This parameter indicates the targeted time between request to transfer an SDU at one SAP to its
delivery at the other SAP in milliseconds.
The range is from 0 to 4000. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Traffic handling priority>
This parameter specifies the relative importance for handling of all SDUs belonging to the UMTS
Bearer compared to the SDUs of the other bearers.
The range is from 0 to 3. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<PDP_type>
SIM5320_ATC_V2.02
364
7/28/2014
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6(reserved)
Examples
AT+CGSOCKEQREQ?
+CGSOCKEQREQ:
OK
AT+CGSOCKEQREQ =?
+CGSOCKEQREQ: "IP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1"
,"1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E4"
,"1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGSOCKEQREQ: "PPP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1
","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E4
","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGSOCKEQREQ: "IPV6",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E
1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E
4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
OK
16.1.6
AT+CGSOCKQMIN
acceptable)
Description
This command allows the TE to specify a minimum acceptable profile which is checked by the MT
against the negotiated profile returned in the Activate PDP Context Accept message.A special form
of the set command,AT+CGSOCKQMIN=<cid> causes the minimum acceptable profile for context
number <cid> to become undefined.
This command only affects the embedded socket related PDP context definition (refer to
AT+CGSOCKCONT).
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CGSOCKQMIN=?
SIM5320_ATC_V2.02
Responses
+CGSOCKQMIN: <PDP_type>, (list of supported <precedence>s),
(list of supported <delay>s), (list of supported <reliability>s) , (list
of supported <peak>s), (list of supported <mean>s) [<CR><LF>
365
7/28/2014
Responses
+CGSOCKQMIN: [<cid>, <precedence >, <delay>, <reliability>,
<peak>, <mean>[<CR><LF>
+CGSOCKQMIN: <cid>, <precedence >, <delay>, <reliability.>,
<peak>, <mean>
[]]]
OK
ERROR
Write Command
AT+CGSOCKQMIN=
<cid>[,<precedence>
[,<delay>[,<reliability>
[,<peak> [,<mean>]]]]]
Responses
OK
Execution Command
AT+CGSOCKQMIN
Responses
OK
ERROR
Defined values
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command). The range is from 1 to 16.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6(reserved)
<precedence>
A numeric parameter which specifies the precedence class:
0 network subscribed value
1 high priority
2 normal priority
3 low priority
<delay>
A numeric parameter which specifies the delay class:
0 network subscribed value
1 delay class 1
2 delay class 2
SIM5320_ATC_V2.02
366
7/28/2014
3 delay class 3
4 delay class 4
<reliability>
A numeric parameter which specifies the reliability class:
0 network subscribed value
1 Non real-time traffic,error-sensitive application that cannot cope with data loss
2 Non real-time traffic,error-sensitive application that can cope with infrequent data loss
3 Non real-time traffic,error-sensitive application that can cope with data loss, GMM/SM,and SMS
4 Real-time traffic,error-sensitive application that can cope with data loss
5 Real-time traffic error non-sensitive application that can cope with data loss
<peak>
A numeric parameter which specifies the peak throughput class:
0 network subscribed value
1 Up to 1000 (8 kbit/s)
2 Up to 2000 (16 kbit/s)
3 Up to 4000 (32 kbit/s)
4 Up to 8000 (64 kbit/s)
5 Up to 16000 (128 kbit/s)
6 Up to 32000 (256 kbit/s)
7 Up to 64000 (512 kbit/s)
8 Up to 128000 (1024 kbit/s)
9 Up to 256000 (2048 kbit/s)
<mean>
A numeric parameter which specifies the mean throughput class:
0
network subscribed value
1 100 (~0.22 bit/s)
2 200 (~0.44 bit/s)
3 500 (~1.11 bit/s)
4 1000 (~2.2 bit/s)
5 2000 (~4.4 bit/s)
6 5000 (~11.1 bit/s)
7
10000 (~22 bit/s)
8
20000 (~44 bit/s)
9
50000 (~111 bit/s)
10 100000 (~0.22 kbit/s)
11 200000 (~0.44 kbit/s)
12 500000 (~1.11 kbit/s)
13 1000000 (~2.2 kbit/s)
14 2000000 (~4.4 kbit/s)
15 5000000 (~11.1 kbit/s)
16 10000000 (~22 kbit/s)
17 20000000 (~44 kbit/s)
SIM5320_ATC_V2.02
367
7/28/2014
18
31
Examples
AT+CGSOCKQMIN?
+CGSOCKQMIN:
OK
AT+CGSOCKQMIN=?
+CGSOCKQMIN: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGSOCKQMIN: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGSOCKQMIN: "IPV6",(0-3),(0-4),(0-5),(0-9),(0-18,31)
OK
16.1.7
AT+CGSOCKEQMIN
acceptable)
Description
The test command returns values supported as a compound value.
The read command returns the current settings for each defined context for which a QOS was
explicitly specified.
The write command allow the TE to specify a Quallity of Service Profile for the context identified
by the context identification parameter <cid> which is checked by the MT against the negotiated
profile returned in the Activate/Modify PDP Context Accept message.
A special form of the write command, AT+CGSOCKEQMIN=<cid> causes the requested for
context number <cid> to become undefined.
This command only affects the embedded socket related PDP context definition (refer to
AT+CGSOCKCONT).
SIM PIN
YES
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
368
7/28/2014
AT+CGSOCKEQMIN=?
Read Command
AT+CGSOCKEQMIN?
Responses
+CGSOCKEQMIN: [<cid>,<Traffic class>,<Maximum bitrate
UL>,<Ma ximum bitrate DL>,<Guaranteed bitrate
UL>,<Guaranteed bitrate DL>,<Delivery order>,<Maximum SDU
size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>][<CR><LF>
+CGSOCKEQMIN: <cid>,<Traffic class>,<Maximum bitrate
UL>,<Ma ximum bitrate DL>,<Guaranteed bitrate
UL>,<Guaranteed bitrate DL>,<Delivery order>,<Maximum SDU
size>,<SDU error ratio>,
<Residual bit error ratio>,<Delivery of erroneous SDUs>,<Transfer
Delay>,<Traffic handling priority>[]]
OK
Write Command
AT+CGSOCKEQMIN=<cid
>[,<Traffic class>[,<Maxim
um bitrate UL>[,<Maximu
m bitrate DL>[,<Guarantee
Responses
OK
SIM5320_ATC_V2.02
369
7/28/2014
d bitrateUL>[,<Guaranteed
bitrate DL>[,<Delivery ord
er>[,<Maximum SDU size>
[,<SDU
error ratio>[,<Residual bit
error ratio>[,<Delivery of e
rroneous SDUs>[,<Transfer
delay>[,<Traffic handling p
riority>]]]]]]]]]]]]
ERROR
Execution Command
Responses
AT+CGSOCKEQMIN
OK
Defined values
<cid>
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands. The range is from 1 to 16.
<Traffic class>
0 conversational
1 streaming
2 interactive
3 background
4 subscribed value
<Maximum bitrate UL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(up-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g.
AT+CGSOCKEQMIN=,32,). (refer TS 24.008 [8] subclause 10.5.6.5).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Maximum bitrate DL>
This parameter indicates the maximum number of kbits/s delivered to UMTS(down-link traffic)at a
SAP.As an example a bitrate of 32kbit/s would be specified as 32(e.g.
AT+CGSOCKEQMIN=,32,). (refer TS 24.008 [8] subclause 10.5.6.5).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate UL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(up-link traffic)at a
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGSOCKEQMIN=,32,). (refer TS 24.008 [8] subclause 10.5.6.5).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Guaranteed bitrate DL>
This parameter indicates the guaranteed number of kbit/s delivered to UMTS(down-link traffic)at a
SIM5320_ATC_V2.02
370
7/28/2014
SAP(provided that there is data to deliver).As an example a bitrate of 32kbit/s would be specified as
32(e.g.AT+CGSOCKEQMIN=,32,). (refer to TS 24.008 [8] subclause 10.5.6.5).
The range is from 0 to 8460. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Delivery order>
This parameter indicates whether the UMTS bearer shall provide in-sequence SDU delivery or not.
0 no
1 yes
2 subscribed value
<Maximum SDU size>
This parameter indicates the maximum allowed SDU size inoctets. (refer to TS 24.008 [8]
subclause 10.5.6.5).
The range is from 0 to 1520. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<SDU error ratio>
This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU
error ratio is defined only for conforming traffic.As an example a target SDU error ratio of 5*10-3
would be specified as 5E3(e.g.AT+CGSOCKEQMIN=..,5E3,).
0E0 subscribed value
1E2
7E3
1E3
1E4
1E5
1E6
1E1
<Residual bit error ratio>
This parameter indicates the target value for the undetected bit error ratio in the delivered SDUs. If
no error detection is requested,Residual bit error ratio indicates the bit error ratio in the delivered
SDUs.As an example a target residual bit error ratio of 5*10-3 would be specified as 5E3(e.g.
AT+ CGSOCKEQMIN =,5E3,..).
0E0 subscribed value
5E2
1E2
5E3
4E3
1E3
1E4
1E5
1E6
6E8
<Delivery of erroneous SDUs>
This parameter indicates whether SDUs detected as erroneous shall be delivered or not.
SIM5320_ATC_V2.02
371
7/28/2014
0 no
1 yes
2 no detect
3 subscribed value
<Transfer delay>
This parameter indicates the targeted time between request to transfer an SDU at one SAP to its
delivery at the other SAP,in milliseconds. (refer TS 24.008 [8] subclause 10.5.6.5).
The range is from 0 to 4000. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<Traffic handling priority>
This parameter specifies the relative importance for handling of all SDUs belonging to the UMTS
Bearer compared to the SDUs of the other bearers.
The range is from 0 to 3. The default value is 0. If the parameter is set to '0' the subscribed value
will be requested.
<PDP_type>
(Packet Data Protocol type) a string parameter which specifies the type of packet data protocol.
IP
Internet Protocol
PPP Point to Point Protocol
IPV6 Internet Protocol Version 6(reserved)
Examples
AT+CGSOCKEQMIN?
+ CGSOCKEQMIN:
OK
AT+CGSOCKEQMIN =?
+CGSOCKEQMIN: "IP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1"
,"1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E4"
,"1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGSOCKEQMIN: "PPP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1
","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E4
","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
+CGSOCKEQMIN: "IPV6",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E
1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3","1E
4","1E5","1E6","6E8"),(0-3),(0,100-4000),(0-3)
OK
16.1.8
Description
This command is used to enable or disable duplicate PDPs activation with the same APN.
SIM PIN
References
SIM5320_ATC_V2.02
372
7/28/2014
NO
Vendor
Syntax
Test Command
AT+CENDUPPDP=?
Responses
+CENDUPPDP: (list of supported <DUP_PDP_Enable>s)
OK
Read Command
AT+CENDUPPDP?
Responses
+CENDUPPDP:<DUP_PDP_Enable>
OK
Write Command
AT+CENDUPPDP=
<DUP_PDP_Enable>
Responses
OK
ERROR
Defined values
<DUP_PDP_Enable>
a numeric parameter which sets whether enable duplicate PDPs activation with the same APN.
0 disable
1 enable
Examples
AT+CENDUPPDP=?
+CENDUPPDP: (0,1)
OK
AT+CENDUPPDP=1
OK
16.1.9
Description
This command is used to set DNS query parameters. The timeout value for performing DNS query
is <net_open_time> + 3000ms + 1000ms*<dns_query_retry_counter>. Here <net_open_time> is
the time for opening PS network. <dns_query_retry_counter> is the retry counter for sending DNS
query using UDP packet.
SIM PIN
NO
References
Vendor
SIM5320_ATC_V2.02
373
7/28/2014
Syntax
Test Command
AT+CIPDNSSET=?
Responses
OK
Read Command
AT+CIPDNSSET?
Responses
+CIPDNSSET:
<max_query_retries>
<max_net_retries>,
<net_timeout>,
OK
Write Command
AT+CIPDNSSET=[<ma
x_net_retries>][,
[<net_timeout>][,
[<max_query_retries>]]]
Responses
OK
ERROR
Defined values
<max_net_retries>
Maxmimum retry times for opening PS network to perform DNS query. The range is from 0 to 3.
Default value is 3.
<net_timeout>
Timeout value for each opening PS network operation when performing DNS query. The range is
from 3000ms to 120000ms. Default value is 30000ms.
<max_query_retries>
Maximum retry times for performing DNS query using UDP packet. The range is from 0 to 7.
Default value is 7.
Examples
AT+CIPDNSSET?
+CIPDNSSET: 1,30000,3
OK
AT+CIPDNSSET=1,30000,1
OK
16.1.10 AT+CDNSGIP
Description
This command is used to query the IP address of given domain name.
SIM PIN
References
SIM5320_ATC_V2.02
374
7/28/2014
YES
Vendor
Syntax
Test Command
AT+CDNSGIP=?
Responses
OK
Write Command
AT+CDNSGIP=<domain
name>
Responses
If successful,return:
+CDNSGIP: 1,<domain name>,<IP address>
OK
If fail,return:
+CDNSGIP: 0,<dns error code>
ERROR
ERROR
Defined values
<domain name>
A string parameter (string should be included in quotation marks) which indicates the do
ma-in name.
<IP address>
A string parameter (string should be included in quotation marks) which indicates the IP
address corresponding to the domain name.
<dns error code>
A numeric parameter which indicates the error code.
10 DNS GENERAL ERROR
Examples
AT+CDNSGIP=?
OK
AT+CDNSGIP=www.google.com
+CDNSGIP: 1,"www.google.com","203.208.39.99"
OK
16.1.11 AT+CDNSGHNAME
Description
This command is used to query the domain name of given IP address.
SIM PIN
YES
References
Vendor
SIM5320_ATC_V2.02
375
7/28/2014
Syntax
Test Command
AT+CDNSGHNAME=?
Responses
OK
Write Command
AT+CDNSGHNAME=<IP
address>
Responses
If successful,return:
+CDNSGHNAME: <index>,<domain name>,<IP address>
OK
If fail,return:
+CDNSGHNAME: 0,<dns error code>
ERROR
ERROR
Defined values
<domain name>
A string parameter (string should be included in quotation marks) which indicates the do
ma-in name.
<IP address>
A string parameter (string should be included in quotation marks) which indicates the IP
address corresponding to the domain name.
<dns error code>
A numeric parameter which indicates the error code.
10 DNS GENERAL ERROR
<index>
A numeric parameter which indicates DNS result index. This value is always 1 if performing
successfully. Currently only the first record returned from the DNS server will be reported.
Examples
AT+CDNSGHNAME=?
OK
AT+CDNSGHNAME= 58.32.231.148
+CDNSGHNAME: 1,"mail.sim.com","58.32.231.148"
OK
16.1.12 AT+CPING
Description
This command is used to ping destination address.
SIM PIN
References
SIM5320_ATC_V2.02
376
7/28/2014
YES
Vendor
Syntax
Test Command
AT+CPING=?
Responses
+CPING:IP
address,
(list
of
<dest_addr_type>s),
(1-100),
(1000-10000),(10000-100000), (16-255)
OK
Write Command
AT+CPING=<dest_addr>,<dest_ad
dr_type>
[,<num_pings>[,<data_packet_size
>[,<interval_time>[,<wait_time>
[,<TTL>]]]]]
Responses
OK
supported
(4-188),
If pings result_type = 1
+CPING:
<result_type>,<resolved_ip_addr>,<data_packet_size>,<rtt>,
<TTL>
If pings result_type = 2
+CPING: <result_type>
If pings result_type = 3
+CPING:
<result_type>,<num_pkts_sent>,<num_pkts_recvd>,<num_p
kts_lost>,<min_rtt>,<max_rtt>,<avg_rtt>
ERROR
Defined values
<dest_addr>
The destination is to be pinged; it can be an IP address or a domain name.
<dest_addr_type>
Integer type. Address family type of the destination address
1 IPv4.
2 IPv6(reserved)
<num_pings>
Integer type. The num_pings specifies the number of times the ping request (1-100) is to be sent.
The default value is 4.
<data_packet_size>
Integer type. Data byte size of the ping packet (4-188). The default value is 64 bytes.
<interval_time>
Integer type. Interval between each ping. Value is specified in milliseconds (1000ms-10000ms). The
default value is 2000ms.
<wait_time>
SIM5320_ATC_V2.02
377
7/28/2014
Integer type. Wait time for ping response. An ping response received after the timeout shall not be
processed. Value specified in milliseconds (10000ms-100000ms). The default value is 10000ms.
<TTL>
Integer type. TTL(Time-To-Live) value for the IP packet over which the ping(ICMP ECHO
Request message) is sent (16-255), the default value is 255.
<result_type>
1 Ping success
2 Ping time out
3 Ping result
<num_pkts_sent>
Indicates the number of ping requests that were sent out.
<num_pkts_recvd>
Indicates the number of ping responses that were received.
<num_pkts_lost>
Indicates the number of ping requests for which no response was received.
<min_rtt>
Indicates the minimum Round Trip Time(RTT).
<max_rtt>
Indicates the maximum RTT.
<avg_rtt>
Indicates the average RTT.
<resolved_ip_addr>
Indicates the resolved ip address.
< rtt>
Round Trip Time.
Examples
AT+CPING=?
+CPING:IP address,(1,2), (1-100), (4-188),(1000-10000),(10000-100000), (16-255)
OK
AT+CPING="www.baidu.com",1,4,64,1000,10000,255
OK
+CPING: 1,119.75.217.56,64,410,255
+CPING: 1,119.75.217.56,64,347,255
+CPING: 1,119.75.217.56,64,346,255
+CPING: 1,119.75.217.56,64,444,255
+CPING: 3,4,4,0,346,444,386
SIM5320_ATC_V2.02
378
7/28/2014
16.1.13 AT+CPINGSTOP
Description
This command is used to stop an ongoing ping session.
SIM PIN
YES
References
Vendor
Syntax
Write Command
AT+CPINGSTOP
Responses
+CPING:
<result_type>,<num_pkts_sent>,<num_pkts_recvd>,<num_p
kts_lost>,<min_rtt>,<max_rtt>,<avg_rtt>
OK
OK
ERROR
Test Command
AT+CPINGSTOP=?
Responses
OK
Defined values
<result_type>
1 Ping success
2 Ping time out
3 Ping result
<num_pkts_sent>
Indicates the number of ping requests that were sent out.
<num_pkts_recvd>
Indicates the number of ping responses that were received.
<num_pkts_lost>
Indicates the number of ping requests for which no response was received.
<resolved_ip_addr>
Indicates the resolved ip address.
<min_rtt>
Indicates the minimum Round Trip Time (RTT).
<max_rtt>
Indicates the maximum RTT.
<avg_rtt>
Indicates the average RTT.
Examples
SIM5320_ATC_V2.02
379
7/28/2014
AT+CPINGSTOP
OK
16.1.14 AT+CTCPFIN
Description
This command is used to configure whether the module should wait for TCP_FIN in
TCP_FINWAIT2 state.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTCPFIN=?
Responses
+CTCPFIN: (list of supported <TCP_FIN_Enable>s),(list of
supported <DelayTm>s)
OK
Read Command
AT+CTCPFIN?
Responses
+CTCPFIN:<TCP_FIN_Enable>,<DelayTm>
OK
Write Command
AT+CTCPFIN=
<TCP_FIN_Enable>,
<DelayTm>
Responses
OK
ERROR
Defined values
< TCP_FIN_Enable >
a numeric parameter which sets whether waiting for TCP_FIN inTCP_FINWAIT2 state.
0 not waiting
1 waiting
<DelayTm>
a numeric parameter which is number of seconds to delay before closing the PS network. This
parameter only affects the AT+NETCLOSE command when using single TCP/UDP mode. The
range is 0 to 10.
Examples
AT+CTCPFIN=?
+CTCPFIN: (0,1),(0-10)
SIM5320_ATC_V2.02
380
7/28/2014
OK
AT+CTCPFIN=1,2
OK
16.1.15 AT+CTCPKA
Description
This command is used to set TCP heartbeat parameters..
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTCPKA=?
Responses
+CTCPKA: (list of supported <TCP_KA_Enable>s),(list of
supported
<KeepIdleTm>s)
,(list
of
supported
<KeepAliveMaxTry>s)
OK
Read Command
AT+CTCPKA?
Responses
+CTCPKA:<TCP_KA_Enable>,<KeepIdleTm>,<KeepAliveMaxT
ry>
OK
Write Command
AT+CTCPKA=
<TCP_KA_Enable>,<KeepI
dleTm>,<KeepAliveMaxTry
>
Responses
OK
ERROR
Defined values
< TCP_KA_Enable >
a numeric parameter which sets whether enable TCP heartbeat function or not.
0 disable
1 enable
<KeepIdleTm>
a numeric parameter which is number of minutes to delay after last time of sending TCP data. The
range is 1 to 120.
<KeepAliveMaxTry>
Maximum times for sending Keep-Alive checking. The range is 1 to 10.
Examples
SIM5320_ATC_V2.02
381
7/28/2014
AT+CTCPKA=?
+CTCPKA: (0,1),(1-120) ,(1-10)
OK
AT+CTCPKA=1,3,3
OK
16.1.16 AT+CTEUTP
Description
This command is used to enable or disable unknown incoming TCP packet echo.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CTEUTP=?
Responses
+CTEUTP: (list of supported <Echo_Unknown_TCP_Enable>s)
OK
Read Command
AT+CTEUTP?
Responses
+CTEUTP:<Echo_Unknown_TCP_Enable>
OK
Write Command
AT+CTEUTP =
<Echo_Unknown_TCP_Ena
ble>
Responses
OK
ERROR
Defined values
<Echo_Unknown_TCP_Enable>
a numeric parameter which sets whether enable or disable unknown incoming TCP packet echo
option.
0 disable
1 enable
Examples
AT+CTEUTP=?
+CTEUTP: (0,1)
OK
AT+CTEUTP=1
SIM5320_ATC_V2.02
382
7/28/2014
OK
16.1.17 AT+CUPURE
Description
This command is used to enable or disable UDP port unreachable echo.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CUPURE=?
Responses
+CUPURE:
(list
of
<UDP_PORT_UNREACHABLE_Enable>s)
supported
OK
Read Command
AT+CUPURE?
Responses
+CUPURE:< UDP_PORT_UNREACHABLE_Enable>
OK
Write Command
AT+CUPURE=
<UDP_PORT_UNREACHA
BLE_Enable>
Responses
OK
ERROR
Defined values
<UDP_PORT_UNREACHABLE_Enable>
a numeric parameter which sets whether enable or disable UDP port unreachable ICMP echo
option.
0 disable
1 enable
Examples
AT+CUPURE=?
+CUPURE: (0,1)
OK
AT+CUPURE=1
OK
SIM5320_ATC_V2.02
383
7/28/2014
16.1.18 AT+CINICMPALLOW
Description
This command is used to filter the incoming ICMP packets that are not allowed.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CINICMPALLOW=?
Responses
+ CINICMPALLOW: (list of supported <mode>s)
OK
Read Command
AT+CINICMPALLOW?
Responses
+CINICMPALLOW: <mode>
OK
Write Command
AT+CINICMPALLOW=<m
ode>
Responses
OK
ERROR
Defined values
<mode>
64bit number, the value is 1 << <pos> , then or by bit.
<pos>
Flag value from 0 to 63.
Value:
0
ICMP ECHO REPLY
3
ICMP DESTINATION UNREACH
4
ICMP SOURCE QUENCH
5
ICMP REDIRECT
8
ICMP ECHO REQUEST
9
MIP AGENT ADVERTISEMENT
10
MIP AGENT SOLICITATION
11
TIME-TO-ALIVE EXCEEDED
12
PARAMETER PROBLEM
13
ICMP TIMESTAMP
14
ICMP TIME REPLY
15
INFORMATION REQUEST
16
INFORMATION REPLY
17
ADDRESS MASK REQUEST
SIM5320_ATC_V2.02
384
7/28/2014
18
37
38
Examples
AT+CINICMPALLOW=0xFFFFFFFFFFFFFEFF
OK
AT+CINICMPALLOW?
+CINICMPALLOW: 0xFFFFFFFFFFFFFEFF
OK
16.2
TCP/UDP
16.2.1
Description
This command is used to configure parameters of socket. For the write command, the parameter
part cannot be empty.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPCCFG=?
Responses
+CIPCCFG: (list of supported <NmRetry>s),(list of supported
<DelayTm>s),(list of supported <Ack>s),(list of supported
<errMode>s),(list of supported <HeaderType>s), (list of supported
<AsyncMode>s), (list of supported <TimeoutVal>s)
OK
Read Command
AT+CIPCCFG?
Responses
+CIPCCFG:<NmRetry>,<DelayTm>,<Ack>,<errMode>,<HeaderType>,<AsyncMode>,<TimeoutVal>
OK
Write Command
AT+CIPCCFG=
[<NmRetry>][,[<DelayTm>]
[,[<Ack>][,[<errMode>][,]<
HeaderType>][,[[<AsyncMo
de>][,[<TimeoutVal>]]]]]]]]
Responses
OK
SIM5320_ATC_V2.02
ERROR
385
7/28/2014
Execution Command
AT+CIPCCFG
Responses
Set default value:
OK
Defined values
<NmRetry>
a numeric parameter which is number of retransmission to be made for an IP packet.The default
value is 10.
<DelayTm>
a numeric parameter which is number of milliseconds to delay to output data of Receiving.The
default value is 0.
<Ack>
a numeric parameter which sets whether reporting a string Send ok when sending some data as a
tcp connection.
0 not reporting
1 reporting
NOTE: This parameter is only used to be compatible with old TCP/IP command set.
<errMode>
a numeric parameter which sets mode of reporting error result code.
0 error result code with numeric values
1 error result code with string values
< HeaderType >
a numeric parameter that select which data header of receiving data, it only takes effect in
multi-client mode.
0 add data header, the format is +IPD<data length>
1 add data header, the format is +RECEIVE,<link num>,<data length>
< AsyncMode >
a numeric parameter which sets mode of executing command AT+NETOPEN, AT+NETCLOSE,
AT+CIPOPEN, AT+CIPCLOSE in multi-client mode.
0 synchronous command executing
1 asynchronous command executing, ok/error return first, then report +IP OK or +IP
ERROR.
NOTE: This parameter is only used to be compatible with old TCP/IP command set.
< TimeoutVal >
a numeric parameter that set the minimum retransmission timeout value for TCP connection. The
unit is millisecond. The range is 500-120000.
Examples
AT+CIPCCFG=?
+CIPCCFG: (0-10),(0-1000),(0-1),(0-1),(0-1) ,(0-1) ,(500-120000)
SIM5320_ATC_V2.02
386
7/28/2014
OK
AT+CIPCCFG=3,500,1,1,1,0,500
OK
16.2.2
Description
This command is used to set timeout value for AT+NETOPEN/AT+CIPOPEN/AT+CIPSEND.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPTIMEOUT=?
Responses
OK
Read Command
AT+CIPTIMEOUT?
Responses
+CIPTIMEOUT:
<cipsend_timeout>
<netopen_timeout>,
<cipopen_timeout>,
OK
Write Command
AT+CIPTIMEOUT=[<n
etopen_timeout>][,
[<cipopen_timeout>][,
[<cipsend_timeout>]]]
Responses
OK
ERROR
Defined values
<netopen_timeout>
Timeout value for AT+NETOPEN, default value is 120000 milliseconds.The range of this value is
from 3000ms to 120000ms.
<cipopen_timeout>
Timeout value for AT+CIPOPEN, default value is 120000 milliseconds. The range of this value is
from 3000ms to 120000ms.
<cipsend_timeout>
Timeout value for AT+CIPSEND, default value is 120000 milliseconds. The range of this value is
from 3000ms to 120000ms.
Examples
AT+CIPTIMEOUT?
SIM5320_ATC_V2.02
387
7/28/2014
+CIPTIMEOUT: 30000,20000,40000
OK
AT+CIPTIMEOUT=30000,20000,40000
OK
16.2.3
AT+CIPSENDMODE
Description
This command is used to sending wait peer TCP ACK mode or sending without waiting peer TCP
ACK mode. The default mode is sending without waiting peer TCP ACK mode.
NOTE: Currently SIMCom 3G modules support both new TCP/IP command set and old TCP/IP
command set, the new TCP/IP command set support multiple TCP connections, and backward
compatible with the old command set. When the AT+NETOPEN command called with
parameters(like AT+NETOPEN=TCP) according to the old command set, the sending mode
configured by this command will be ignore, and the TCP data sending will wait for TCP ACK
always.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPSENDMODE=?
Responses
+CIPSENDMODE: (list of supported <mode>s)
OK
Read Command
AT+CIPSENDMODE?
Responses
+CIPSENDMODE: <mode>
OK
Write Command
AT+CIPSENDMODE=<
mode>
Responses
OK
ERROR
Defined values
<mode>
0
1
Examples
AT+CIPSENDMODE?
+CIPSENDMODE: 1
SIM5320_ATC_V2.02
388
7/28/2014
OK
AT+CIPSENDMODE=1
OK
AT+CIPSENDMODE=?
+CIPSENDMODE: (0,1)
OK
16.2.4
AT+CIPHEAD
Description
This command is used to add an IP head when receiving data.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPHEAD=?
Responses
+CIPHEAD: (list of supported<mode>s)
OK
Read Command
AT+CIPHEAD?
Responses
+CIPHEAD: <mode>
OK
Write Command
AT+CIPHEAD=<mode>
Responses
OK
Execution Command
ERROR
Responses
AT+CIPHEAD
Defined values
<mode>
a numeric parameter which indicates whether adding an IP header to received data or not
0 not add IP header
1 add IP header, the format is +IPD(data length)
Examples
AT+CIPHEAD=?
+CIPHEAD: (0-1)
OK
AT+CIPHEAD=0
SIM5320_ATC_V2.02
389
7/28/2014
OK
16.2.5
Description
This command is used to set whether display IP address and port of sender when receiving data.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPSRIP=?
Responses
+CIPSRIP: (list of supported <mode>s)
OK
Read Command
AT+CIPSRIP?
Responses
+CIPSRIP: <mode>
OK
Write Command
AT+CIPSRIP=<mode>
Responses
OK
Execution Command
AT+CIPSRIP
ERROR
Responses
Set default value:
OK
Defined values
<mode>
a numeric parameter which indicates whether show the prompt of where the data received or not
before received data.
0
do not show the prompt
1 show the prompt,the format is as follows:
RECV FROM:<IP ADDRESS>:<PORT>
Examples
AT+CIPSRIP=?
+CIPSRIP: (0-1)
OK
AT+CIPSRIP=1
OK
SIM5320_ATC_V2.02
390
7/28/2014
16.2.6
AT+CIPMODE
Description
This command is used to select transparent mode (data mode) or non-transparent mode (command
mode ).The default mode is non-transparent mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPMODE=?
Responses
+CIPMODE: (list of supported <mode>s)
OK
Read Command
AT+CIPMODE?
Responses
+CIPMODE: <mode>
OK
Write Command
AT+CIPMODE=<mode>
Responses
OK
ERROR
Execution Command
AT+CIPMODE
Responses
Set default value<mode>=0:
OK
Defined values
<mode>
0
1
Examples
AT+CIPMODE?
+CIPMODE: 1
OK
AT+CIPMODE=1
OK
AT+CIPMODE=?
+CIPMODE: (0-1)
OK
AT+CIPMODE
OK
SIM5320_ATC_V2.02
391
7/28/2014
16.2.7
AT+NETOPEN
Open socket
Description
This command opens packet network,
NOTE: The test command and the write command of AT+NETOPEN is reserved for being
compatible with old TCP/IP command set, and the old TCP/IP command set is not recommended to
be used any longer.
SIM PIN
YES
References
Vendor
Syntax
Read Command
AT+NETOPEN?
Responses
+NETOPEN:<net_state>, <mode>
OK
ERROR
+CME ERROR: <err>
Execution Command
AT+NETOPEN
Responses
OK
+NETOPEN: <err>
+NETOPEN: <err>
OK
+NETOPEN: <err>
ERROR
ERROR
Defined values
<net_state>
a numeric parameter that indicates the state of PDP context activation:
0 network close (deactivated)
1 network open(activated)
<mode>
a numeric parameter that module is used which mode.At present, it supports three mode,such as
single-client, tcp-server and multi-client.if <mode> is 1,then <sock_type> and <port> are ignored.
0
single-client or tcp-server, this is only used to be compatible with old TCP command set
1
multi-client
<err >
The result of operation, 0 is success, other value is failure.
Examples
SIM5320_ATC_V2.02
392
7/28/2014
AT+NETOPEN
OK
+NETOPEN: 0
AT+NETOPEN?
+NETOPEN: 1, 1
OK
16.2.8
AT+NETDORM
Description
This command is used to set or query the network dormancy state.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+NETDORM=?
Responses
+NETDORM: (list of supported<op>s)
OK
Read Command
AT+NETDORM?
Responses
+NETDORM: <dss_state>[,<dormancy_state>]
OK
Write Command
Responses
AT+NETDORM=<op>
OK
ERROR
Defined values
<op>
a numeric parameter which indicates network dormancy operation
0 Let the network leave dormancy state
1 Let the network enter dormancy state
<dss_state>
Reserved value for some old products. Not used now.
<dormancy_state>
a numeric parameter which indicates network dormancy state. Usually 0x1 or 0x4.
0x0 Invalid state
0x1 link down state
0x2 link coming up state
0x4 link up state
0x8 link going down state
SIM5320_ATC_V2.02
393
7/28/2014
0x10
0x20
0x40
Examples
AT+NETDORM=?
+NETDORM: (0-1)
OK
AT+NETDORM=1
OK
16.2.9
AT+NETCLOSE
Close socket
Description
This command closes network. Before calling this command, all opened sockets must be closed
first.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+NETCLOSE=?
Responses
OK
Execution Command
AT+NETCLOSE
Responses
OK
+NETCLOSE: <err>
+NETCLOSE: <err>
OK
+NETCLOSE: <err>
ERROR
ERROR
Defined values
<err>
The result of operation, 0 is success, other value is failure.
Examples
AT+NETCLOSE
OK
SIM5320_ATC_V2.02
394
7/28/2014
+NETCLOSE: 0
16.2.10 AT+IPADDR
Description
This command inquires the IP address of current active socket PDP.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+IPADDR=?
Execution Command
AT+IPADDR
Responses
OK
Responses
+IPADDR: < ip_address>
OK
+IP ERROR:<err_info>
ERROR
ERROR
Defined values
<ip_address>
A string parameter that identifies the IP address of current active socket PDP.
<err_info>
A string parameter that displays the cause of occurring error.
Examples
AT+IPADDR
+IPADDR: 10.71.155.118
OK
16.2.11 AT+SERVERSTART
Description
This command starts up TCP server, and the server can receive the request of TCP client. After the
command executes successfully, an unsolicited result code is returned when a client tries to connect
with module and module accepts request. The unsolicited result code is +CLIENT: < link_num
>,<server_index>,<client_IP>:<port>.
SIM PIN
References
SIM5320_ATC_V2.02
395
7/28/2014
YES
Vendor
Syntax
Test Command
AT+SERVERSTART=?
Responses
OK
+SERVERSTART: (list of supported <port>), (list of supported <
server_index >)
OK
ERROR
Read Command
AT+SERVERSTART?
Responses
[+SERVERSTART: <server_index>,< port >
]
OK
+CIPERROR: <err>
ERROR
Write Command
Responses
AT+SERVERSTART=<port
>,<server_index>[,<backlog
>]
OK
+CIPERROR: <err>
ERROR
Defined values
<server_index>
The TCP server index.
<backlog>
The maximum connections can be queued in listen queue. The range is from 1 to 3. Default
is 3.
<err>
The result of operation, 0 is success, other value is failure.
Examples
AT+SERVERSTART?
+SERVERSTART: 0, 1000
+SERVERSTART: 2, 2000
OK
SIM5320_ATC_V2.02
396
7/28/2014
16.2.12 AT+SERVERSTOP
Description
This command stops TCP server. Before stopping a TCP server, all sockets with <server_index>
equals to the closing TCP server index must be closed first.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SERVERSTOP =?
Responses
OK
ERROR
Execution Command
AT+SERVERSTOP=<server
_index>
Responses
+SERVERSTOP: <server_index>,<err>
OK
OK
+SERVERSTOP: <server_index>,<err>
+SERVERSTOP: <server_index>,<err>
ERROR
ERROR
Defined values
<server_index>
The TCP server index.
<err>
The result of operation, 0 is success, other value is failure.
Examples
AT+SERVERSTOP=?
OK
AT+SERVERSTOP=0
+SERVERSTOP: 0
OK
SIM5320_ATC_V2.02
397
7/28/2014
16.2.13 AT+CIPOPEN
Description
This command is used to establish a connection with TCP server and UDP server, The sum of
all of connections is 10
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CIPOPEN=?
Responses
+CIPOPEN: (list of supported <link_num>s), (list of supported
<type>s)
OK
ERROR
Read Command
AT+CIPOPEN?
Responses
+CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>,<index>]
+CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>,<index>]
[]
OK
ERROR
Write Command
AT+CIPOPEN=
<link_num>,TCP,<serve
rIP>,<serverPort>[,<localP
ort>]
Responses
OK
+CIPOPEN: <link_num>,<err>
Open connection successfully in transparent mode:
CONNECT<text>
Open connection failed in transparent mode:
CONNECT FAIL
+CIPOPEN: <link_num>,<err>
ERROR
ERROR
AT+CIPOPEN=
<link_num>,UDP,,,<loc
alPort>
+CIPOPEN: <link_num>,<err>
OK(if udp open)
+CIPOPEN: <link_num>,<err>
ERROR
ERROR
SIM5320_ATC_V2.02
398
7/28/2014
Defined values
<link_num>
a numeric parameter that identifies a connection. The range of permitted values is 0 to 9. If
AT+CIPMODE=1 is set, the <link_num> is restricted to be only 0.
<type>
a string parameter that identifies the type of transmission protocol.
TCP Transfer Control Protocol
UDP User Datagram Protocol
<serverIP>
A string parameter that identifies the IP address of server.The IP address format consists of 4
octets,separated by decimal point:AAA.BBB.CCC.DDD. Also the domain name is supported
here. If the domain name is input here, the timeout value for the AT+CIPOPEN shall be decided by
AT+CIPTIMEOUT and AT+CIPDNSSET.
<serverPort>
a numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to
65535.
NOTE: When open port as TCP, the port must be the opened TCP port;
When open port as UDP, the port may be any port.
But, for Qualcomm, connecting the port 0 is as an invalid operation.
<localPort>
a numeric parameter that identifies the port of local socket, the range of permitted values is 0 to
65535.
<index>
a numeric parameter that identifies the server index that the client linked when as a TCP server.
-1 Not as a TCP server
0-3 TCP server index
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
The result of operation, 0 is success, other value is failure.
Examples
AT+CIPOPEN=0,TCP,116.228.221.51,100
OK
+CIPOPEN: 0,0
AT+CIPOPEN=1,UDP,,,8080
+CIPOPEN: 0,0
OK
AT+CIPOPEN=?
+CIPOPEN: (0-9), (TCP, UDP)
OK
AT+CIPOPEN?
SIM5320_ATC_V2.02
399
7/28/2014
16.2.14 AT+CIPSEND
Description
This command is used to send data to remote side. The <length> field can be empty, when it is
empty, Each <Ctrl+Z> character present in the data should be coded as <ETX><Ctrl+Z>. Each
<ESC> character present in the data should be coded as <ETX><ESC>. Each <ETX> character will
be coded as <ETX><ETX>. Single <Ctrl+Z> means end of the input data. Single <ESC> is used to
cancel the sending.
<ETX> is 0x03, and <Ctrl+Z> is 0x1A, <ESC> is 0x1B.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CIPSEND=?
Responses
+CIPSEND: (list of supported <link_num>s), (list of supported <
length >s)
OK
+CIPERROR: <err>
ERROR
ERROR
Read Command
AT+CIPSEND?
Responses
OK
ERROR
Write Command
AT+CIPSEND=<link_num>,
[<length>[,<psh_val>]]<CR
>data for send
SIM5320_ATC_V2.02
Responses
OK
+CIPSEND: <link_num>,<reqSendLength>, <cnfSendLength>
+CIPERROR: <err>
400
7/28/2014
ERROR
ERROR
Defined values
<link_num>
a numeric parameter that identifies a connection. The range of permitted values is 0 to 9.
<length>
a numeric parameter which indicates the length of sending data, it must be between1 and 1500.
<serverIP>
A string parameter that identifies the IP address of server.The IP address format consists of 4
octets,separated by decimal point:AAA.BBB.CCC.DDD.
<serverPort>
a numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to
65535.
NOTE: When open port as TCP, the port must be the opened TCP port;
When open port as UDP, the port may be any port.
But, for Qualcomm, connecting the port 0 is as an invalid operation.
<reqSendLength>
a numeric parameter that requested number of data bytes to be transmitted.
<cnfSendLength>
a numeric parameter that confirmed number of data bytes to be transmitted.
-1
the connection is disconnected.
0
own send buffer or other sides congestion window are full.
Note: If the <cnfSendLength> is not equal to the <reqSendLength>, the socket then cannot be used
SIM5320_ATC_V2.02
401
7/28/2014
further.
<psh_val>
The psh value in TCP header.
<err_info>
A string parameter that displays the cause of occurring error.
Examples
AT+CIPSEND=0,1
>S
OK
+CIPSEND: 0, 1, 1
AT+CIPSEND=1,1,116.236.221.75,6775
>S
OK
+CIPSEND: 1, 1, 1
AT+CIPSEND=2,
>Hello<Ctrl+Z>
OK
+CIPSEND: 2,5,5
AT+CIPSEND=3,,116.236.221.75,6775
>Hello World<Ctrl+Z>
OK
+CIPSEND: 2,11,11
AT+CIPSEND=2,
>Hello<ESC>
ERROR
AT+CIPSEND=?
+CIPSEND: (0-9), (1-1500)
OK
16.2.15 AT+CIPRXGET
Description
This command is used to get the network data manually.
SIM PIN
YES
References
Vendor
SIM5320_ATC_V2.02
402
7/28/2014
Syntax
Test Command
AT+CIPRXGET=?
Responses
1. If single-client:
+CIPRXGET: (0-4), (1-1500)
OK
2. If multi-client:
+CIPRXGET: (0-4),(0-9),(1-1500)
OK
ERROR
Read Command
AT+CIPRXGET?
Responses
<mode>
OK
Execution Command
1. If single-client
(AT+CIPRXGET=0):
AT+CIPRXGET=<mode>[,
<len>]
2. If multi-client
(AT+CIPRXGET=1):
AT+CIPRXGET=<mode>,<
cid>[,<len>]
Responses
1. If <mode> = 0 or 1:
OK
2. If <mode> = 2 or 3:
a. If single-client:
+CIPRXGET: <mode>,<read_len>,<rest_len>
<data>
OK
b. If multi-client:
+CIPRXGET: <mode>,<cid>,<read_len>,<rest_len>
<data>
OK
3. If<mode> = 4:
a. If single-client:
+CIPRXGET: 4,<rest_len>
OK
b. If multi-client:
+CIPRXGET: 4,<cid>,<rest_len>
OK
If ERROR occurred
+IP ERROR: <error message>
ERROR
SIM5320_ATC_V2.02
403
7/28/2014
Defined values
<mode>
0 set the way to get the network data automatically
1 set the way to get the network data manually
2 read data, the max read length is 1500
3 read data in HEX form, the max read length is 750
4 get the rest data length
<cid>
A numeric parameter that identifies a connection. The range of permitted values is 0 to 9.
<len>
The data length to be read.
Not required, the default value is 1500 when <mode>=2, and 750 when <mode>=3.
<read_len>
The length of the data that have read.
<rest_len>
The data length which not read in the buffer.
< data >
The read data.
<error message>
The list of all error message:
Invalid parameter
Operation not supported
No data
NOTE:
1. When <mode> is set to 1 and the 2-4 mode will take effect.
2. If AT+CIPRXGET=1, it will report +CIPRXGET: 1(single client) or
+CIPRXGET: 1,<cid>(multi client) when received data and the buffer is empty.
Examples
AT+CIPRXGET=?
+CIPRXGET: (0-4),(1-1500)
OK
AT+CIPRXGET?
+CIPRXGET: 1
OK
AT+CIPRXGET=1
OK
AT+CIPRXGET=2,100
+CIPRXGET: 2,100,1300
01234567890123456789012345678901234567890123456789012345678901234567890123456789
SIM5320_ATC_V2.02
404
7/28/2014
01234567890123456789
OK
AT+CIPRXGET=3,100
+CIPRXGET: 3,100,1200
30313233343536373839303132333435363738393031323334353637383930313233343536373839
30313233343536373839303132333435363738393031323334353637383930313233343536373839
3031323334353637383930313233343536373839
OK
AT+CIPRXGET=4
+CIPRXGET: 4,1200
OK
AT+CIPRXGET=2,0,100
+CIPRXGET: 2,0,100,1300
01234567890123456789012345678901234567890123456789012345678901234567890123456789
01234567890123456789
OK
AT+CIPRXGET=3,0,100
+CIPRXGET: 3,0,100,1200
30313233343536373839303132333435363738393031323334353637383930313233343536373839
30313233343536373839303132333435363738393031323334353637383930313233343536373839
3031323334353637383930313233343536373839
OK
AT+CIPRXGET=4,0
+CIPRXGET: 4,0,1200
OK
16.2.16 AT+CIPCLOSE
Description
This command is used to close TCP or UDP socket.
SIM PIN
YES
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
405
7/28/2014
AT+CIPCLOSE=?
Read Command
AT+CIPCLOSE?
Responses
+CIPCLOSE:<link0_state>,<link1_state>,<link2_state>,
<link3_state>,<link4_state>,<link5_state>,<link6_state>,
<link7_state>,<link8_state>,<link9_state>
OK
+CIPCLOSE: <link_num>,<err>
ERROR
ERROR
Write Command
AT+CIPCLOSE=
<link_num>
Responses
OK
+CIPCLOSE: <link_num>,<err>
+CIPCLOSE: <link_num>,<err>
OK
+CIPCLOSE: <link_num>,<err>
ERROR
ERROR
Defined values
<link_num>
a numeric parameter that identifies a connection. The range of permitted values is 0 to 9.
<linkx_state>
a numeric parameter that identifies state of <link_num>. the range of permitted values is 0 to 1.
0 disconnected
1
connected
<err_info>
A string parameter that displays the cause of occurring error.
Examples
AT+CIPCLOSE?
+CIPCLOSE: 1, 0, 0, 0, 0, 0, 0, 0, 0, 0
OK
AT+CIPCLOSE=?
+CIPCLOSE: (0-9)
OK
AT+CIPCLOSE=0
OK
+CIPCLOSE: 0,0
SIM5320_ATC_V2.02
406
7/28/2014
16.2.17 AT+CIPSTAT
Description
This command is used to inquire the total size of data sent or received for a socket in multiple
socket modes (Only valid for client TCP socket mode).
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CIPSTAT=?
Responses
+CIPSTAT: (list of supported <link_num>s)
OK
Write Command
AT+CIPSTAT=<link_num>
Responses
+CIPSTAT: <sent_size>, <recv_size>
OK
+IP ERROR: <err_info>
ERROR
Defined values
< link_num>
a numeric parameter that identifies a connection. The range of permitted values is 0 to 9.
<sent_size>
Total size of sent data.
<recv_size>
Total size of received data.
<err_info>
A string parameter that displays the cause of occurring error.
Examples
AT+CIPSTAT=0
+CIPSTAT: 10, 20
OK
AT+CIPSTAT=?
+CIPSTAT: (0-9)
OK
16.2.18 AT+CIPENPSH
Description
SIM5320_ATC_V2.02
407
7/28/2014
This command is used to set the PSH flag which accomplishes two things:
1. The sending application informs TCP that data should be sent immediately.
2. The PSH flag in the TCP header informs the receiving host that the data should
be pushed up to the receiving application immediately
SIM PIN References
NO
Vendor
Syntax
Test Command
AT+CIPENPSH=?
Responses
+CIPENPSH: (0,1)
OK
Read Command
AT+CIPENPSH?
Responses
+CIPENPSH: <PSH>
OK
Write Command
AT+CIPENPSH=<PSH>
Responses
OK
ERROR
Defined values
<PSH>
The value of PSH flag. The valid value is 0 or 1.
Examples
AT+CIPENPSH=?
+CIPENPSH: (0,1)
OK
AT+CIPENPSH?
+CIPENPSH: 0
OK
AT+CIPENPSH=1
OK
SIM5320_ATC_V2.02
NETWORK
Description
CLOSED
408
7/28/2014
UNEXPECTEDLY
+CLIENT:
<
link_num
>,<server_index>,<client_IP>:<port>
operation succeeded
Network failure
Network not opened
3
4
5
6
7
8
9
10
11
255
Wrong parameter
Operation not supported
Failed to create socket
Failed to bind socket
TCP server is already listening
Busy
Sockets opened
Timeout
DNS parse failed for AT+CIPOPEN
Unknown error
16.3
FTP
16.3.1
Description
SIM5320_ATC_V2.02
409
7/28/2014
References
Vendor
Syntax
Test Command
AT+CFTPPORT=?
Read Command
AT+CFTPPORT?
Write Command
AT+CFTPPORT=<port>
Responses
+CFTPPORT: (list of supported <port>s)
OK
Responses
+CFTPPORT: <port>
OK
Responses
OK
+CME ERROR
Defined values
<port>
The FTP server port, from 1 to 65535, and default value is 21.
Examples
AT+CFTPPORT=21
OK
AT+CFTPPORT?
+CFTPPORT:21
OK
AT+CFTPPORT=?
+CFTPPORT: (1-65535)
OK
16.3.2
AT+CFTPMODE
Description
This command is used to set FTP passive/proactive mode. Default is passive mode.
SIM PIN
YES
References
Vendor
Syntax
SIM5320_ATC_V2.02
410
7/28/2014
Test Command
AT+CFTPMODE=?
Read Command
AT+CFTPMODE?
Write Command
AT+CFTPMODE=<mode>
Responses
+CFTPMODE: (list of supported <mode>s)
OK
Responses
+CFTPMODE: <mode>
OK
Responses
OK
+CME ERROR
Defined values
<mode>
The FTP access mode:
0 proactive mode.
1 passive mode.
Examples
AT+CFTPMODE=1
OK
AT+CFTPMODE?
+CFTPMODE: 1
OK
AT+CFTPMODE=?
+CFTPMODE: (0,1)
OK
16.3.3
AT+CFTPTYPE
Description
This command is used to set FTP type. Default is binary type.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPTYPE=?
Read Command
SIM5320_ATC_V2.02
Responses
+CFTPTYPE: (list of supported <type>s)
OK
Responses
411
7/28/2014
AT+CFTPTYPE?
Write Command
AT+CFTPTYPE=<type>
+CFTPTYPE: <type>
OK
Responses
OK
+CME ERROR
Defined values
<type>
The FTP type:
I binary type.
A ASCII type.
Examples
AT+CFTPTYPE=A
OK
AT+CFTPTYPE?
+CFTPTYPE: A
OK
AT+CFTPTYPE=?
+CFTPTYPE: (A,I)
OK
16.3.4
Description
This command is used to set FTP server domain name or IP address.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSERV=?
Read Command
AT+CFTPSERV?
Write Command
AT+CFTPSERV=
SIM5320_ATC_V2.02
Responses
+CFTPSERV: ADDRESS
OK
Responses
+CFTPSERV: <address>
OK
Responses
OK
412
7/28/2014
<address>
+CME ERROR
Defined values
<address>
The FTP server domain name or IP address. The maximum length is 100.
Examples
AT+CFTPSERV=www.mydomain.com
OK
AT+CFTPSERV?
+CFTPSERV: www.mydomain.com
OK
AT+CFTPSERV=?
+CFTPSERV: ADDRESS
OK
AT+CFTPSERV=10.0.0.127
OK
16.3.5
AT+CFTPUN
Description
This command is used to set user name for FTP server access.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPUN=?
Read Command
AT+CFTPUN?
Write Command
AT+CFTPUN=<name>
Responses
+CFTPUN: NAME
OK
Responses
+CFTPUN: <name>
OK
Responses
OK
+CME ERROR
Defined values
<name>
The user name for FTP server access. The maximum length is 30.
SIM5320_ATC_V2.02
413
7/28/2014
Examples
AT+CFTPUN=myname
OK
AT+CFTPUN=anonymous
OK
AT+CFTPUN?
+CFTPUN: myname
OK
AT+CFTPUN=?
+CFTPUN: NAME
OK
16.3.6
Description
This command is used to set user password for FTP server access.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPPW=?
Read Command
AT+CFTPPW?
Write Command
AT+CFTPPW=<password>
Responses
+CFTPPW: PASSWORD
OK
Responses
+CFTPPW: <password>
OK
Responses
OK
+CME ERROR
Defined values
<password>
The user password for FTP server access. The maximum length is 40.
Examples
AT+CFTPPW=mypass
OK
AT+CFTPPW?
+CFTPPW: mypass
SIM5320_ATC_V2.02
414
7/28/2014
OK
AT+CFTPPW=?
+CFTPPW: mypass
OK
16.3.7
AT+CFTPGETFILE
Description
This command is used to download a file from FTP server to module EFS.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPGETFILE=?
Write Command
AT+CFTPGETFILE=
<filepath>,<dir>[,<rest_siz
e>]
Responses
+CFTPGETFILE: [{non-ascii}]FILEPATH, (list of supported
<dir>s) [, (list of supported <rest_size>s)]
OK
Responses
OK
+CFTPGETFILE: 0
+CME ERROR
OK
+CFTPGETFILE: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain /, this command transfers file from the
current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter
should contain a prefix of {non-ascii}.
<dir>
The directory to save the downloaded file:
0 current directory [refer to AT+FSCD]
<rest_size>
The value for FTP REST command which is used for broken transfer when transferring failed last
time. The range is from 0 to 2147483647.
<err>
The error code of FTP operation.
Examples
SIM5320_ATC_V2.02
415
7/28/2014
AT+CFTPGETFILE=/pub/mydir/test1.txt,0
OK
+CFTPGETFILE: 0
AT+CFTPGETFILE= test2.txt,0
OK
+CFTPGETFILE: 0
AT+CFTPGETFILE={non-ascii} B2E2CAD42E747874,0
OK
+CFTPGETFILE: 0
16.3.8
AT+CFTPPUTFILE
Description
This command is used to upload a file from the module EFS to FTP server.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPPUTFILE=?
Write Command
AT+CFTPPUTFILE=<filep
ath>,<dir>[,<rest_size>]
Responses
+CFTPPUTFILE: [{non-ascii}] FILEPATH, (list of supported
<dir>s)[, (list of supported <rest_size>s)]
OK
Responses
OK
+CFTPPUTFILE: 0
+CME ERROR
OK
+CFTPPUTFILE: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain /, this command transfers file to the
current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter
should contain a prefix of {non-ascii}.
<dir>
The directory that contains the file to be uploaded:
0 current directory [refer to AT+FSCD]
SIM5320_ATC_V2.02
416
7/28/2014
<rest_size>
The value for FTP REST command which is used for broken transfer when transferring failed last
time. The range is from 0 to 2147483647.
<err>
The error code of FTP operation.
Examples
AT+CFTPPUTFILE=/pub/mydir/test1.txt,0, 10
OK
+CFTPPUTFILE: 0
AT+CFTPPUTFILE= test2.txt,0
OK
+CFTPPUTFILE: 0
AT+CFTPPUTFILE={non-ascii} B2E2CAD42E747874,0
OK
+CFTPPUTFILE: 0
16.3.9
Description
This command is used to get a file from FTP server and output it to serial port. This command
may have a lot of DATA transferred to DTE using serial port, The AT+CATR command is
recommended to be used.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPGET=?
Write Command
AT+CFTPGET=<filepath>
[,<rest_size>]
SIM5320_ATC_V2.02
Responses
+CFTPGET: [{non-ascii}] FILEPATH [, (list of supported
<rest_size>s)]
OK
Responses
OK
+CFTPGET: DATA,<len>
417
7/28/2014
+CFTPGET: 0
If the file size is 0:
OK
+CFTPGET: 0
OK
[+CFTPGET: DATA, <len>
]
+CFTPGET: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain / this command transfer file from the
current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter
should contain a prefix of {non-ascii}.
<rest_size>
The value for FTP REST command which is used for broken transfer when transferring failed last
time. The range is from 0 to 2147483647.
<len>
The length of FTP data contained in this packet.
<err>
The error code of FTP operation.
Examples
AT+CFTPGET=/pub/mydir/test1.txt, 10
OK
+CFTPGET: DATA, 1020,
+CFTPGET: 0
AT+CFTPGET={non-ascii}/2F74657374646972/B2E2CAD42E747874
OK
+CFTPGET: DATA, 1020,
+CFTPGET: 0
AT+CFTPGET=?
SIM5320_ATC_V2.02
418
7/28/2014
References
Vendor
Syntax
Test Command
AT+CFTPPUT=?
Execution Command
AT+CFTPPUT=<filepath>
[,<rest_size>]
Responses
+CFTPPUT: [{non-ascii}] FILEPATH [, (list of supported
<rest_size>s)]
OK
Responses
+CFTPPUT: BEGIN
OK
+CME ERROR
[+CFTPPUT: BEGIN]
+CFTPPUT: <err_code>
ERROR
Defined values
<filepath>
The remote file path. When the file path doesnt contain /, this command transfers file to the
current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter
should contain a prefix of {non-ascii}.
<rest_size>
The value for FTP REST command which is used for broken transfer when transferring failed last
time. The range is from 0 to 2147483647.
<err_code>
Refer to Unsolicited FTP Codes.
Examples
SIM5320_ATC_V2.02
419
7/28/2014
AT+CFTPPUT=/pub/mydir/test1.txt, 20
+CFTPPUT: BEGIN
..<Ctrl+Z>
OK
AT+CFTPPUT={non-ascii}/2F74657374646972/B2E2CAD42E747874
+CFTPPUT: BEGIN
..<Ctrl+Z>
OK
AT+CFTPPUT=?
+CFTPPUT: [{non-ascii}]FILEPATH [,(0-2147483647)]
OK
References
Vendor
Syntax
Test Command
AT+CFTPLIST=?
Responses
+CFTPLIST: [{non-ascii}] FILEPATH
Write Command
OK
Responses
AT+CFTPLIST=<dir>
OK
[+CFTPLIST: DATA,<len>
]
+CFTPLIST:<err>
+CME ERROR
Defined values
<dir>
The directory to be listed. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
<len>
The length of data reported
<err>
The result code of the listing
SIM5320_ATC_V2.02
420
7/28/2014
Examples
AT+CFTPLIST=/testd
OK
+CFTPLIST: DATA,193
drw-rw-rw1 user
group
drw-rw-rw1 user
group
-rw-rw-rw1 user
group
0 Sep 1 18:01 .
0 Sep 1 18:01 ..
2017 Sep 1 17:24 19800106_000128.jpg
+CFTPLIST: 0
16.3.12 AT+CFTPMKD
Description
This command is used to create a new directory on the FTP server. The maximum length of the
full path name is 256.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CFTPMKD=?
Write Command
AT+CFTPMKD=<dir>
Responses
+CFTPMKD: [{non-ascii}]DIR
OK
Responses
OK
+CFTPMKD:<err>
ERROR
Defined values
<dir>
The directory to be created. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
<err>
The result code of the command
Examples
AT+CFTPMKD=/testdir
OK
AT+CFTPMKD={non-ascii}74657374646972
SIM5320_ATC_V2.02
421
7/28/2014
OK
16.3.13 AT+CFTPRMD
Description
This command is used to delete a directory on FTP server
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPRMD=?
Write Command
AT+CFTPRMD=<dir>
Responses
+CFTPRMD: [{non-ascii}]DIR
OK
Responses
OK
+CFTPRMD:<err>
ERROR
Defined values
<dir>
The directory to be removed. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
<err>
The result code of the command
Examples
AT+CFTPRMD=/testdir
OK
AT+CFTPRMD={non-ascii}74657374646972
OK
16.3.14 AT+CFTPDELE
Description
This command is used to delete a file on FTP server
SIM PIN
YES
References
Vendor
SIM5320_ATC_V2.02
422
7/28/2014
Syntax
Test Command
AT+CFTPDELE=?
Write Command
AT+CFTPDELE=<filenam
e>
Responses
+CFTPDELE: [{non-ascii}]FILENAME
OK
Responses
OK
+CFTPDELE:<err>
ERROR
Defined values
<filename>
The name of the file to be deleted. If the file name contains non-ASCII characters, the <filename>
parameter should contain a prefix of {non-ascii}.
<err>
The result code of the command
Examples
AT+CFTPDELE=test
OK
AT+CFTPDELE={non-ascii}74657374
OK
Description
Unknown error for FTP
FTP task is busy
Failed to resolve server address
204
205
206
207
208
209
210
211
212
213
214
FTP timeout
Failed to read file
Failed to write file
Not allowed in current state
Failed to login
Failed to logout
Failed to transfer data
FTP command rejected by server
Memory error
Invalid parameter
Network error
SIM5320_ATC_V2.02
423
7/28/2014
215
216
217
218
219
16.4
FTPS
These AT Command of FTPS related need the AT+CATR command to be set with the used port.
AT+CATR=0 may cause some problem.
16.4.1
Description
This command is used to acquire FTPS protocol stack.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CFTPSSTART
OK
+CFTPSSTART: <err>
+CFTPSSTART: <err>
OK
ERROR
Defined values
<err>
The result code of the acquiring FTP/FTPS stack. 0 is success. Other values are failure.
Examples
AT+CFTPSSTART
OK
+CFTPSSTART: 0
16.4.2
Description
SIM5320_ATC_V2.02
424
7/28/2014
This command is used to stop FTPS protocol stack. Currently only explicit FTPS mode is
supported.
SIM PIN References
YES
Vendor
Syntax
Execute Command
Responses
AT+CFTPSSTOP
OK
+CFTPSSTOP: <err>
+CFTPSSTOP: <err>
OK
ERROR
Defined values
<err>
The result code of the stopping FTP/FTPS stack. 0 is success. Other values are failure.
Examples
AT+CFTPSSTOP
OK
+CFTPSSTOP: 0
16.4.3
AT+CFTPSLOGIN
Description
This command is used to login the FTPS server. Each time, AT+CFTPSSTART command must
be executed before executing AT+CFTPSLOGIN command.
SIM PIN References
YES
Vendor
Syntax
Write Command
Responses
AT+CFTPSLOGIN=<host>
,<port>,<username>, <p
assword>[<server_type>]
OK
+CFTPSLOGIN: <err>
+CFTPSLOGIN: <err>
OK
ERROR
SIM5320_ATC_V2.02
425
7/28/2014
Defined values
<host>
The host address, maximum length is 256
<port>
The host listening port for SSL, the range is from 1 to 65535
<username>
The user name, maximum length is 256
<password>
The user password, maximum length is 256
<server_type>
The type of server:
0 FTP server.
1 Explicit FTPS server with AUTH SSL.
2 Explicit FTPS server with AUTH TLS.
3 Implicit FTPS server.
<err>
The result code of the FTP/FTPS login. 0 is success. Other values are failure.
Examples
AT+CFTPSLOGIN=www.myftpsserver.com,990, myname, mypassword,3
OK
+CFTPSLOGIN: 0
16.4.4
Description
This command is used to logout the FTPS server.
Syntax
Execute Command
Responses
AT+CFTPSLOGOUT
OK
+CFTPSLOGOUT: <err>
+CFTPSLOGOUT: <err>
OK
ERROR
Defined values
<err>
The result code of FTP/FTPS logout. 0 is success. Other values are failure.
SIM5320_ATC_V2.02
426
7/28/2014
Examples
AT+CFTPSLOGOUT
OK
+CFTPSLOGOUT: 0
16.4.5
AT+CFTPSMKD
Description
This command is used to create a new directory on the FTPS server. The maximum length of
the full path name is 256.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CFTPSMKD=?
Write Command
AT+CFTPSMKD=<dir>
Responses
+CFTPSMKD: DIR
OK
Responses
OK
+CFTPSMKD: <err>
ERROR
ERROR
Defined values
<dir>
The directory to be created
Examples
AT+CFTPSMKD=testdir
OK
AT+CFTPSMKD={non-ascii}74657374646972
OK
16.4.6
AT+CFTPSRMD
Description
This command is used to delete a directory on FTPS server
SIM PIN
References
SIM5320_ATC_V2.02
427
7/28/2014
YES
Vendor
Syntax
Test Command
AT+CFTPSRMD=?
Write Command
AT+CFTPSRMD=<dir>
Responses
+CFTPSRMD: DIR
OK
Responses
OK
+CFTPSRMD: <err>
ERROR
ERROR
Defined values
<dir>
The directory to be removed. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
Examples
AT+CFTPSRMD=testdir
OK
AT+CFTPSRMD={non-ascii}74657374646972
OK
16.4.7
AT+CFTPSDELE
Description
This command is used to delete a file on FTPS server
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSDELE=?
Write Command
AT+CFTPSDELE=<filena
me>
SIM5320_ATC_V2.02
Responses
+CFTPSDELE: FILENAME
OK
Responses
OK
+CFTPSDELE: <err>
ERROR
428
7/28/2014
ERROR
Defined values
<filename>
The name of the file to be deleted. If the file name contains non-ASCII characters, the <filename>
parameter should contain a prefix of {non-ascii}.
Examples
AT+CFTPSDELE=test
OK
AT+CFTPDELE={non-ascii}74657374
OK
16.4.8
AT+CFTPSCWD
Description
This command is used to change the current directory on FTPS server
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSCWD=?
Write Command
AT+CFTPSCWD=<dir>
Responses
+CFTPSCWD: DIR
OK
Responses
OK
+CFTPSCWD: <err>
ERROR
ERROR
Defined values
<dir>
The directory to be changed. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
Examples
AT+CFTPSCWD=testdir
OK
SIM5320_ATC_V2.02
429
7/28/2014
AT+CFTPSCWD={non-ascii}74657374646972
OK
16.4.9
AT+CFTPSPWD
Description
This command is used to get the current directory on FTPS server.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CFTPSPWD
+CFTPSPWD: <dir>
OK
+CFTPSPWD: <err>
ERROR
ERROR
Defined values
<dir>
The current directory on FTPS server.
Examples
AT+CFTPSPWD
+CFTPSPWD: /testdir
OK
16.4.10 AT+CFTPSTYPE
Description
This command is used to set the transfer type on FTPS server
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSTYPE=?
SIM5320_ATC_V2.02
Responses
+CFTPSTYPE: (A,I)
430
7/28/2014
Read Command
AT+CFTPSTYPE?
Write Command
AT+CFTPSTYPE=<type>
OK
Responses
+CFTPSTYPE: <type>
OK
Responses
OK
+CFTPSTYPE: <err>
ERROR
ERROR
Defined values
<type>
The type of transferring:
A ASCII.
I Binary.
Examples
AT+CFTPSTYPE=A
OK
References
Vendor
Syntax
Write Command
AT+CFTPSLIST=<dir>[,<
using_cache>]
Responses
If the <using_cache> is 0 (default):
OK
+CFTPSLIST: DATA,<len>
+CFTPSLIST:<err>
If the <using_cache> is 1:
OK
SIM5320_ATC_V2.02
431
7/28/2014
OK
......
Execute Command
AT+CFTPSLIST
+CFTPSLIST: <err>
ERROR
Responses
OK
+CFTPSLIST: DATA,<len>
+CFTPSLIST:<err>
OK
+CFTPSLIST:<err>
+CFTPSLIST:<err>
ERROR
ERROR
Defined values
<dir>
The directory to be listed. If the directory contains non-ASCII characters, the <dir> parameter
should contain a prefix of {non-ascii}.
<len>
The length of data reported
<err>
The result code of the listing
<using_cache>
0 Do not use cache
1 Use cache(Data will be output using AT+CFTPSCACHERD command)
Examples
AT+CFTPSLIST=/testd
SIM5320_ATC_V2.02
432
7/28/2014
OK
+CFTPSLIST: DATA,193
drw-rw-rw1 user
group
drw-rw-rw1 user
group
-rw-rw-rw1 user
group
0 Sep 1 18:01 .
0 Sep 1 18:01 ..
2017 Sep 1 17:24 19800106_000128.jpg
+CFTPSLIST: 0
AT+CFTPSLIST
OK
+CFTPSLIST: DATA,193
drw-rw-rw1 user
group
drw-rw-rw1 user
group
-rw-rw-rw1 user
group
0 Sep 1 18:01 .
0 Sep 1 18:01 ..
2017 Sep 1 17:24 19800106_000128.jpg
+CFTPSLIST: 0
16.4.12 AT+CFTPSGETFILE
Description
This command is used to download a file from FTPS server to module EFS.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSGETFILE=?
Write Command
AT+CFTPGETFILE=
<filepath>,<dir>[,<rest_siz
e>]
Responses
OK
Responses
OK
+CFTPSGETFILE: 0
+CFTPSGETFILE: <err>
ERROR
ERROR
OK
+CFTPSGETFILE: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain /, this command transfers file from the
current remote FTPS directory. If the file path contains non-ASCII characters, the file path
parameter should contain a prefix of {non-ascii}.
SIM5320_ATC_V2.02
433
7/28/2014
<dir>
The directory to save the downloaded file, refer to AT+FSCD.
<rest_size>
The rest size of the file.
<err>
The error code of FTPS operation.
Examples
AT+CFTPSGETFILE=/pub/mydir/test1.txt,1
OK
+CFTPSGETFILE: 0
AT+CFTPSGETFILE= test2.txt,2
OK
+CFTPSGETFILE: 0
AT+CFTPSGETFILE={non-ascii} B2E2CAD42E747874,2
OK
+CFTPSGETFILE: 0
AT+CFTSPGETFILE=?
OK
References
Vendor
Syntax
Test Command
AT+CFTPSPUTFILE=?
Write Command
AT+CFTPSPUTFILE=
<filepath>,<dir>[,<rest_siz
e>]
Responses
OK
Responses
OK
+CFTPSPUTFILE: 0
+CFTPSPUTFILE: <err>
ERROR
ERROR
OK
SIM5320_ATC_V2.02
434
7/28/2014
+CFTPSPUTFILE: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain /, this command transfers file to the
current remote FTPS directory. If the file path contains non-ASCII characters, the file path
parameter should contain a prefix of {non-ascii}.
<dir>
The directory that contains the file to be uploaded, refer to AT+FSCD.
<rest_size>
The rest size of the file.
<err>
The error code of FTPS operation.
Examples
AT+CFTPSPUTFILE=/pub/mydir/test1.txt,1
OK
AT+CFTPSPUTFILE= test2.txt,1
OK
+CFTPSPUTFILE: 0
AT+CFTPSPUTFILE={non-ascii} B2E2CAD42E747874,1
OK
+CFTPSPUTFILE: 0
AT+CFTPSPUTFILE=?
OK
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
435
7/28/2014
AT+CFTPSGET=?
Write Command
AT+CFTPSGET=
<filepath>[,<rest_size>[,<
using_cache>]]
OK
Responses
If the <using_cache> is 0 (default):
OK
+CFTPSGET: DATA,<len>
+CFTPSGET: 0
If the <using_cache> is 1:
OK
+CFTPS: RECV EVENT
AT+CFTPSCACHERD?
+CFTPSCACHERD: 102400
OK
//output cached data now:
AT+CFTPSCACHERD
+CFTPSGET: DATA,<len>
OK
......
+CFTPSGET: 0
+CFTPSGET: <err>
ERROR
ERROR
+CFTPSGET: DATA, <len>
+CFTPSGET: <err>
Defined values
<filepath>
The remote file path. When the file path doesnt contain / this command transfer file from the
SIM5320_ATC_V2.02
436
7/28/2014
current remote FTPS directory. If the file path contains non-ASCII characters, the file path
parameter should contain a prefix of {non-ascii}.
<rest_size>
The rest size of the file.
<len>
The length of FTPS data contained in this packet.
<err>
The error code of FTPS operation.
<using_cache>
0 Do not use cache
1 Use cache(Data will be output using AT+CFTPSCACHERD command)
Examples
AT+CFTPSGET=/pub/mydir/test1.txt
OK
+CFTPSGET: DATA, 1020,
+CFTPSGET: 0
AT+CFTPSGET={non-ascii}/2F74657374646972/B2E2CAD42E747874
OK
+CFTPSGET: DATA, 1020,
+CFTPSGET: 0
AT+CFTPSGET=?
OK
Vendor
Syntax
SIM5320_ATC_V2.02
437
7/28/2014
Test Command
AT+CFTPSPUT=?
Read Command
AT+CFTPSPUT?
Write Command
AT+CFTPSPUT=[<filepath
>,]<len>[,<rest_size>]
Execute Command
AT+CFTPSPUT
Responses
OK
Responses
+CFTPSPUT: <unsent_len>
OK
Responses
>
OK
+CFTPSPUT: <result>
ERROR
ERROR
Responses
OK
+CFTPSPUT: <result>
ERROR
Defined values
<filepath>
The path of the file on FTPS server.
<unsent_len>
The length of the data in the sending buffer which is waiting to be sent.
<len>
The length of the data to send, the maximum length is 1024.
<rest_size>
The rest size of the file.
<result>
The final result of the sending.
Examples
AT+CFTPSPUT=t1.txt,10
>testcontent
OK
AT+CFTPSPUT
OK
+CFTPSSPUT: 0
AT+CFTPSPUT?
+CFTPSPUT: 88
OK
SIM5320_ATC_V2.02
438
7/28/2014
16.4.16 AT+CFTPSSIZE
Description
This command is used to get the size of file on FTPS server
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CFTPSSIZE=?
Write Command
AT+CFTPSSIZE=<filenam
e>
Responses
OK
Responses
OK
+CFTPSSIZE: <err>[,<fsize>]
ERROR
Defined values
<filename>
The name of the file to be deleted. If the file name contains non-ASCII characters, the <filename>
parameter should contain a prefix of {non-ascii}.
<err>
The result of get file size. O is successful. Only when successful, the second parameter of URC
+CFTPSSIZE is provided. When failure, Only +CFTPSSIZE: <err> is reported.
<fsize>
The size of the file in byte.
Examples
AT+CFTPSSIZE=test.txt
+CFTPSSIZE: 0, 1024
OK
AT+CFTPSSIZE={non-ascii}74657374
+CFTPSSIZE: 0, 1024
OK
16.4.17 AT+CFTPSCACHERD
Description
SIM5320_ATC_V2.02
439
7/28/2014
SIM PIN
YES
References
Vendor
Syntax
Read Command
AT+CFTPSCACHERD?
Execute Command
AT+CFTPSCACHERD
Responses
+CFTPSCACHERD: <len>
OK
Responses
If cache data is AT+CFTPSGET:
+CFTPSGET: DATA,<out_len><CR><LF>
OK
If the cache data is AT+CFTPSLIST:
+CFTPSLIST: DATA,<out_len><CR><LF>
OK
ERROR
Defined values
<len>
The bytes of data cached in FTPS module.
<out_len>
The bytes of data to output. The maximum value is 1024 for each AT+CFTPSCACHERD calling.
Examples
AT+CFTPSCACHERD?
+CFTPSCACHERD: 102400
OK
AT+CFTPSCACHERD
+CFTPSGET: DATA, 1024
OK
SIM5320_ATC_V2.02
440
7/28/2014
16.4.18 AT+CFTPSSTATE
Description
This command is used to get the state of FTPS stack.
SIM PIN
NO
References
Vendor
Syntax
Execute Command
AT+CFTPSSTATE
Responses
+CFTPSTATE: <state>,<operation>
OK
ERROR
Defined values
<state>
0 None
1 Accquired FTPS stack
2 Opening network
3 Closing network
4 Opened network
5 Logging in
6 Login
7 Operating
8 Logging out
<operation>
0 None
1 Login
2 Logout
3 List
4 Cwd
5 Pwd
6 Mkd
7 Rmd
8 Dele
9 Type
10 Get
11 Put
12 Size
Examples
SIM5320_ATC_V2.02
441
7/28/2014
AT+CFTPSSTATE
+CFTPSSTATE: 0,0
OK
16.4.19 AT+CFTPSTO
Description
This command is used to set timeout value for FTPS receive timeout parameter.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CFTPSTO=?
Responses
+CFTPSTO: (10-120)
OK
Read Command
AT+CFTPSTO?
Responses
+CFTPSTO: <recv_timeout>
OK
Write Command
AT+CFTPSTO=<recv_ti
meout>
Responses
OK
ERROR
Defined values
<recv_timeout>
Timeout value for FTPS receiving operation, default value is 120 seconds. The range is from 10
seconds to 120 seconds.
Examples
AT+CFTPSTO?
+CFTPSTO: 120
OK
AT+CFTPSTO=10
OK
SIM5320_ATC_V2.02
442
7/28/2014
This command is used to abort and stop FTPS protocol stack. This command can only be used
in FTPS logged-in state.
SIM PIN References
YES
Vendor
Syntax
Execute Command
Responses
AT+CFTPSABORT
OK
+CFTPSABORT: <err>
+CFTPSABORT: <err>
OK
ERROR
Defined values
<err>
The result code of the aborting FTP/FTPS stack. 0 is success. Other values are failure.
Examples
AT+CFTPSABORT
OK
+CFTPSABORT: 0
References
Vendor
Syntax
Test Command
AT+CFTPSSINGLEIP=?
Read Command
AT+CFTPSSINGLEIP?
Write Command
AT+CFTPSSINGLEIP=<sin
SIM5320_ATC_V2.02
Responses
+CFTPSSINGLEIP: (0,1)
OK
Responses
+ CFTPSSINGLEIP: <singleip>
OK
Responses
OK
443
7/28/2014
gleip>
ERROR
Defined values
<singleip>
The FTPS data socket IP address type:
0 decided by PORT response from FTPS server
1 the same as the control socket.
Examples
AT+CFTPSSINGLEIP=1
OK
AT+CFTPSSINGLEIP?
+CFTPSSINGLEIP:1
OK
AT+CFTPSSINGLEIP=?
+CFTPSSINGLEIP: (0,1)
OK
Description
PEER
3
4
5
6
7
8
9
10
FTPS busy
FTPS server closed connection
Timeout
FTPS transfer failed
FTPS memory error
Invalid parameter
Operation rejected by FTPS server
Network error
SIM5320_ATC_V2.02
444
7/28/2014
16.5
HTTPS
16.5.1
Description
This command is used to acquire HTTPS protocol stack.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CHTTPSSTART
OK
ERROR
Examples
AT+CHTTPSSTART
OK
16.5.2
Description
This command is used to stop HTTPS protocol stack.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CHTTPSSTOP
OK
ERROR
Examples
AT+CHTTPSSTOP
OK
SIM5320_ATC_V2.02
445
7/28/2014
16.5.3
AT+CHTTPSOPSE
Description
This command is used to open a new HTTPS session. Every time, AT+CHTTPSSTART
command must be executed before executing AT+CHTTPSOPSE command.
SIM PIN References
YES
Vendor
Syntax
Write Command
Responses
AT+CHTTPSOPSE=<host
>,<port>[,<server_type>]
OK
ERROR
Defined values
<host>
The host address
<port>
The host listening port for SSL
<server_type>
The type of server:
1 HTTP server.
2 HTTPS server with SSL3.0/TLS1.0 supported.
Examples
AT+CHTTPSOPSE=www.mywebsite.com,443
OK
16.5.4
AT+CHTTPSCLSE
Description
This command is used to close the opened HTTPS session.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CHTTPSCLSE
OK
SIM5320_ATC_V2.02
446
7/28/2014
ERROR
Examples
AT+CHTTPSCLSE
OK
16.5.5
AT+CHTTPSSEND
Description
This command is used to send HTTPS request. The AT+CHTTPSSEND=<len> is used to
download the data to be sent. The AT+CHTTPSSEND is used to wait the result of sending.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CHTTPSSEND=?
Read Command
AT+CHTTPSSEND?
Write Command
AT+ CHTTPSSEND =<len>
Execute Command
AT+CHTTPSSEND
Responses
+CHTTPSSEND: (1-4096)
OK
Responses
+CHTTPSSEND: <unsent_len>
OK
Responses
>
OK
ERROR
Responses
OK
+CHTTPSSEND: <result>
ERROR
Defined values
<unsent_len>
The length of the data in the sending buffer which is waiting to be sent.
<len>
The length of the data to send
<result>
The final result of the sending.
0 ok
1 unknown error
SIM5320_ATC_V2.02
447
7/28/2014
2
3
4
5
6
7
8
busy
server closed
timeout
transfer failed
memory error
invalid parameter
network error
Examples
AT+CHTTPSSEND=88
>GET / HTTP/1.1
Host: www.mywebsite.com
User-Agent: MY WEB AGENT
Content-Length: 0
OK
AT+CHTTPSSEND
OK
+CHTTPSSEND: 0
AT+CHTTPSSEND?
+CHTTPSSEND: 88
OK
16.5.6
Description
This command is used to receive HTTPS response after sending HTTPS request.
SIM PIN
YES
References
Vendor
Syntax
Read Command
AT+CHTTPSRECV?
Write Command
AT+CHTTPSRECV=<max_
recv_len>
SIM5320_ATC_V2.02
Responses
+CHTTPSRECV:
OK
Responses
LEN, <cache_len>
OK
+CHTTPSRECV: DATA,<len>
+CHTTPSRECV: DATA,<len>
448
7/28/2014
+CHTTPSRECV:<result>
+CHTTPSRECV:<result>
ERROR
ERROR
Defined values
<len>
The length of the data received.
<max_recv_len>
Maximum bytes of data to receive in the current AT+CHTTPSRECV calling. Minimum is 1.
<cache_len>
The cache length.
<result>
The final result of the receiving.
0 ok
1 unknown error
2 busy
3 server closed
4 timeout
5 transfer failed
6 memory error
7 invalid parameter
8 network error
Examples
AT+CHTTPSRECV=249
OK
+CHTTPSRECV: DATA,249
HTTP/1.1 200 OK
Content-Type: text/html
Content-Language: zh-CN
Content-Length: 57
Date: Tue, 31 Mar 2009 01:56:05 GMT
Connection: Close
Proxy-Connection: Close
<html>
<header>test</header>
<body>
Test body
</body>
SIM5320_ATC_V2.02
449
7/28/2014
+CHTTPSRECV: 0
16.5.7
AT+CHTTPSSTATE
Description
This command is used to get the state of HTTPS stack.
SIM PIN
NO
References
Vendor
Syntax
Execute Command
AT+CHTTPSSTATE
Responses
+CHTTPSSTATE: <state>
OK
ERROR
Defined values
<state>
0
1
2
3
4
5
6
7
None
Accquired HTTPS
Opening network
Closing network
Opened network
Closing session
Opening session
Opened session.
Examples
AT+CHTTPSSTATE
+CHTTPSSTATE: 0
OK
16.5.8
Code
Description
+CHTTPSNOTIFY:
CLOSED
SIM5320_ATC_V2.02
PEER
450
7/28/2014
16.5.9
0
1
2
Operation succeeded
Unknown error
Busy
3
4
5
6
7
8
Server closed
Operation timeout
Transfer failed
Memory error
Invalid parameter
Network error
16.6
HTP
These AT Commands of HTP related are used to synchronize system time with HTTP server.
16.6.1
Description
This command is used to add or delete HTP server information. There are maximum 16 HTP
servers.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CHTPSERV=?
Read Command
AT+CHTPSERV?
Responses
+CHTPSERV:"ADD","HOST",(1-65535),
(0-1)[,"PROXY",(1-65535)]
+CHTPSERV: "DEL",(0-15)
OK
Responses
+CHTPSERV:<index>"<host>",<port>,<http_version>
[,"<proxy>",<proxy_port>]
+CHTPSERV:<index>"<host>",<port>[,"<proxy>",< proxy_port>]
OK
OK
Write Command
SIM5320_ATC_V2.02
Responses
451
7/28/2014
AT+CHTPSERV=
"<cmd>","<host_or_idx>"[,<
port>,<http_version>
[,"<proxy>",<proxy_port>]]
OK
ERROR
Defined values
<cmd>
This command to operate the HTP server list.
ADD: add a HTP server item to the list
DEL: delete a HTP server item from the list
<host_or_idx>
If the <cmd> is ADD, this field is the same as <host>, needs quotation marks; If the <cmd> is
DEL, this field is the index of the HTP server item to be deleted from the list, does not need
quotation marks.
<host>
The HTP server address.
<port>
The HTP server port.
<http_version>
The HTTP version of the HTP server:
0- HTTP 1.0
1- HTTP 1.1
<proxy>
The proxy address
<proxy_port>
The port of the proxy
<index>
The HTP server index.
Examples
AT+CHTPSERV=ADD,www.google.com,80,1
OK
16.6.2
AT+CHTPUPDATE
Description
This command is used to updating date time using HTP protocol.
SIM PIN
YES
References
Vendor
SIM5320_ATC_V2.02
452
7/28/2014
Syntax
Test Command
AT+CHTPUPDATE=?
Read Command
AT+CHTPUPDATE?
Responses
OK
Response
+CHTPUPDATE:<status>
OK
Execute Command
AT+CHTPUPDATE
Responses
OK
+CHTPUPDATE: <err>
ERROR
Defined values
<status>
The status of HTP module:
Updating: HTP module is synchronizing date time
NULL: HTP module is idle now
<err>
The result of the HTP updating
Examples
AT+CHTPUPDATE
OK
+CHTPUPDATE: 0
16.6.3
Code of <err>
0
1
2
Description
Operation succeeded
Unknown error
Wrong parameter
3
4
SIM5320_ATC_V2.02
453
7/28/2014
16.7
SMTP
16.7.1
Description
This synchronous command is used to set SMTP servers address and servers port number. SMTP
client will initiate TCP session with the specified server to send an e-mail. If the process of sending
an e-mail is ongoing, the command will return ERROR directly.
Read command returns current SMTP server address and port number.
Execution command will clear SMTP server address and set the port number as default value.
NOTE: After an e-mail is sent successfully or unsuccessfully, SMTP server address and port
number wont be cleared.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPSRV=?
Read Command
AT+SMTPSRV?
Write Command
AT+SMTPSRV=<server>
[, <port>]
Execution Command
AT+SMTPSRV
Responses
+SMTPSRV: (list of supported <port>s)
OK
Responses
+SMTPSRV: <server>, <port>
OK
Responses
OK
Responses
OK
Defined values
<server>
SMTP server address, non empty string with double quotes, mandatory and ASCII text string up to
127 characters.
<port>
Port number of SMTP server in decimal format, from 1 to 65535, and default port is 25 for SMTP.
Examples
AT+SMTPSRV="smtp.server.com",25
OK
AT+SMTPSRV?
SIM5320_ATC_V2.02
454
7/28/2014
+SMTPSRV: "smtp.server.com", 25
OK
AT+SMTPSRV
OK
AT+SMTPSRV?
+SMTPSRV: "", 25
OK
16.7.2
AT+SMTPAUTH
Description
This synchronous command is used to control SMTP authentication during connection with SMTP
server. If SMTP server requires authentication while logging in the server, TE must set the
authentication control flag and provide user name and password correctly before sending an e-mail.
If the process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current SMTP server authentication control flag, if the flag is 0, both <user>
and <pwd> are empty strings.
Execution Command cancels SMTP server authentication and clear user name and password.
NOTE: After an e-mail is sent successfully or unsuccessfully, server authentication wont be
cleared.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPAUTH=?
Responses
+SMTPAUTH: (list of supported <flag>s)
OK
Read Command
AT+SMTPAUTH?
Responses
+SMTPAUTH: <flag>, <user>, <pwd>
OK
Write Command
AT+SMTPAUTH=
<flag>[, <user>, <pwd>]
Responses
OK
Execution Command
AT+SMTPAUTH
Responses
OK
Defined values
<flag>
SMTP server authentication control flag, integer type.
SIM5320_ATC_V2.02
455
7/28/2014
Examples
AT+SMTPAUTH?
+SMTPAUTH: 0, ,
OK
AT+SMTPAUTH=1,username,password
OK
AT+SMTPAUTH?
+SMTPAUTH: 1, username, password
OK
AT+SMTPAUTH
OK
AT+SMTPAUTH?
+SMTPAUTH: 0, ,
OK
16.7.3
AT+SMTPFROM
Description
This synchronous command is used to set senders address and name, which are used to construct
e-mail header. The senders address must be correct if the SMTP server requries, and if the process
of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current senders address and name.
Execution command will clear senders address and name.
NOTE: After an e-mail is sent successfully or unsuccessfully, sender address and name wont be
cleared.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPFROM=?
SIM5320_ATC_V2.02
Responses
OK
456
7/28/2014
Read Command
AT+SMTPFROM?
Write Command
AT+SMTPFROM=
<saddr>[, <sname>]
Execution Command
AT+SMTPFROM
Responses
+SMTPFROM: <saddr>, <sname>
OK
Responses
OK
Responses
OK
Defined values
<saddr>
E-mail sender address (MAIL FROM), non empty string with double quotes, mandatory and ASCII
text up to 127 characters. <saddr> will be present in the header of the e-mail sent by SMTP client in
the field: From: .
<sname>
E-mail sender name, string with double quotes, and alphanumeric ASCII text up to 63 characters.
<sname> will be present in the header of the e-mail sent by SMTP client in the field: From: .
Examples
AT+SMTPFROM="[email protected]","sendername"
OK
AT+SMTPFROM?
+SMTPFROM: "[email protected]", "sendername"
OK
AT+SMTPFROM
OK
AT+SMTPFROM?
+SMTPFROM: "", ""
OK
16.7.4
Description
This synchronous command is used to set recipient address/name and kind (TO/CC/BCC). If only
the parameter of kind is present, the command will clear all recipients of this kind, and if only
parameters of kind and index are present, the command will clear the specified recipient. If the
process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current recipient address/name and kind list.
Execution command will clear all recipient information.
NOTE: After an e-mail is sent successfully, all recipients will be cleared, if unsuccessfully, they
wont be cleared.
SIM5320_ATC_V2.02
457
7/28/2014
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPRCPT=?
Responses
+SMTPRCPT: (list of supported <kind>s), (list of supported
<index>s)
OK
Read Command
AT+SMTPRCPT?
Responses
[+SMTPRCPT: <kind>, <index>, <raddr>, <rname>
[<CR><LF>]]
OK
OK
Write Command
AT+SMTPRCPT=<kind>[,
<index>[,<raddr>[,<rname>]
]]
Responses
OK
Execution Command
AT+SMTPRCPT
Responses
OK
Defined values
<kind>
Recipient kind, the kinds of TO and CC are used to construct e-mail header in the field: To: or
Cc: .
0 TO, normal recipient.
1 CC, Carbon Copy recipient.
2 BCC, Blind Carbon Copy recipient.
<index>
Index of the kind of recipient, decimal format, and from 0 to 4.
<raddr>
Recipient address, non empty string with double quotes, and up to 127 characters.
<rname>
Recipient name, string type with double quotes, and up to 63 characters.
Examples
AT+SMTPRCPT=0, 0, [email protected], rcptname_to
OK
AT+SMTPRCPT?
+SMTPRCPT: 0, 0, [email protected], rcptname_to
SIM5320_ATC_V2.02
458
7/28/2014
OK
AT+SMTPRCPT=1, 0, [email protected], rcptname_cc
OK
AT+SMTPRCPT?
+SMTPRCPT: 0, 0, [email protected], rcptname_to
+SMTPRCPT: 1, 0, [email protected], rcptname_cc
OK
16.7.5
AT+SMTPSUB
E-mail subject
Description
This synchronous command is used to set the subject of e-mail, which is used to construct e-mail
header. If the process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current e-mail subject.
Execution command will clear the subject.
NOTE: After an e-mail is sent successfully, the subject will be cleared, if unsuccessfully, it wont
be cleared.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPSUB=?
Responses
OK
Read Command
AT+SMTPSUB?
Responses
+SMTPSUB: <subject>
OK
Write Command
AT+SMTPSUB=<subject>
Responses
OK
Execution Command
AT+SMTPSUB
Responses
OK
Defined values
<subject>
E-mail subject, string with double quotes, and ASCII text up to 511 characters. <subject> will be
present in the header of the e-mail sent by SMTP client in the field: Subject: . For write
command, if the subject contains non-ASCII characters, this parameter should contain a prefix of
{non-ascii}.
SIM5320_ATC_V2.02
459
7/28/2014
Examples
AT+SMTPSUB?
+SMTPSUB:
OK
AT+SMTPSUB=THIS IS A TEST MAIL
OK
AT+SMTPSUB={non-ascii}E6B58BE8AF95E982AEE4BBB6
OK
AT+SMTPSUB?
+SMTPSUB: THIS IS A TEST MAIL
OK
16.7.6
Description
This command is used to set e-mail body, which will be sent to SMTP server with text format.
Read command returns current e-mail body. If the process of sending an e-mail is ongoing, the
command will return ERROR directly.
Execute command will switch the serial port from command mode to data mode, so TE can enter
more ASCII text as e-mail body (up to 5120), and CTRL-Z (ESC) is used to finish (cancel) the
input operation and switch the serial port back to command mode.
NOTE: After an e-mail is sent successfully, the body will be cleared, if unsuccessfully, it wont be
cleared. When execute command AT+SMTPBODY, and display >>, the prevenient body will be
cleared.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPBODY=?
Responses
OK
Read Command
AT+SMTPBODY?
Responses
+SMTPBODY: <body>
OK
Write Command
AT+SMTPBODY=<body>
Responses
OK
Execution Command
AT+SMTPBODY
Responses
>>
Defined values
SIM5320_ATC_V2.02
460
7/28/2014
<body>
E-mail body, string with double quotes, and printable ASCII text up to 511 or 5120 characters.
NOTE: In data mode, BACKSPACE can be used to cancel an ASCII character.
Examples
AT+SMTPBODY=THIS IS A TEST MAIL FROM SIMCOM MODULE
OK
AT+SMTPBODY?
+SMTPBODY: THIS IS A TEST MAIL FROM SIMCOM MODULE
OK
AT+SMTPBODY
>> This is a test mail.<CTRL-Z>
OK
AT+SMTPBODY?
+SMTPBODY: This is a test mail.
OK
AT+SMTPBODY
>> This is a test mail.<ESC>
OK
AT+SMTPBODY?
+SMTPBODY:
OK
16.7.7
AT+SMTPBCH
Description
This synchronous command is used to set the body character set of e-mail. If the process sending an
e-mail is ongoing, the command will return ERROR directly.
Read command returns current e-mail body character set.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPBCH=?
Responses
+SMTPBCH: CHARSET
OK
Read Command
AT+SMTPBCH?
Responses
+SMTPBCH: <charset>
OK
SIM5320_ATC_V2.02
461
7/28/2014
Write Command
AT+SMTPBCH=<charset>
Responses
OK
ERROR
Execution Command
AT+SMTPBCH
Responses
OK
ERROR
Defined values
<charset>
E-mail body character, string with double quotes. By default, it is utf-8. The maximum length is
19 bytes.
Examples
AT+SMTPBCH=?
+SMTPBCH: CHARSET
OK
AT+SMTPBCH=gb2312
OK
AT+SMTPBCH?
+SMTPBCH: gb2312
OK
16.7.8
AT+SMTPFILE
Select attachment
Description
The synchronous command is used to select file as e-mail attachment. If the process sending an
e-mail is ongoing, the command will return ERROR directly.
Read command returns current all selected attachments with full path.
Execute command will clear all attachments.
NOTE: After an e-mail is sent successfully, attachment will be cleared, if unsuccessfully, it wont
be cleared. The same file cant be selected twice.
AT+SMTPFILE=<index> is used to delete the relevant attachments.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPFILE=?
SIM5320_ATC_V2.02
Responses
+SMTPFILE: (list of supported <index>s)
OK
462
7/28/2014
Read Command
AT+SMTPFILE?
Responses
[+SMTPFILE: <index>, <filename>, <filesize>
[<CR><LF>]]
OK
Write Command
AT+SMTPFILE=
<index>[, <filename>]
Responses
OK
Execution Command
AT+SMTPFILE
Responses
OK
[+SMTP: OVERSIZE]
ERROR
Defined values
<index>
Index for attachments, from 1 to 10. According to the sequence of <index>, SMTP client will
encode and send all attachments.
<filename>
String type with double quotes, the name of a file which is under current directory (refer to file
system commands). SMTP client doesnt allow two attachments with the same file name. For write
command, if the file name contains non-ASCII characters, this parameter should contain a prefix of
{non-ascii}.
<filesize>
File size in decimal format. The total size of all attachments cant exceed 10MB.
Examples
AT+SMTPFILE=1,file1.txt
OK
AT+SMTPFILE=1,{non-ascii}E6B58BE8AF95E99984E4BBB62E6A7067
OK
AT+SMTPFILE?
+SMTPFILE: 1, C:/file1.txt
OK
AT+SMTPFILE=2,file2.txt
OK
AT+SMTPFILE?
+SMTPFILE: 1, C:/file1.txt
+SMTPFILE: 2, C:/file2.txt
OK
SIM5320_ATC_V2.02
463
7/28/2014
16.7.9
AT+SMTPSEND
Description
This asynchronous command is used to initiate TCP session with SMTP server and send an e-mail
after all mandatory parameters have been set correctly. After SMTP client has connected with
specified SMTP server and SMTP client receives an indication that indicates SMTP server is
working well, the command will return +SMTP: OK, but it doesnt indicate that the e-mail is
already sent successfully.
After the e-mail is sent and the session is closed, an Unsolicited Result Code (URC) will be
returned to TE, +SMTP: SUCCESS indicates the e-mail is sent successfully, and other URCs
indicate a failed result and the session is closed.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+SMTPSEND=?
Responses
OK
Read Command
AT+SMTPSEND?
Responses
+SMTPSEND: <ongoing>
OK
Execution Command
AT+SMTPSEND
Responses
OK
+SMTP: OK
+SMTP: <code>
+SMTP: OK
+SMTP: <code>
OK
+SMTP: <code>
ERROR
Defined values
<ongoing>
Whether or not an e-mail is sent in process. If the process of sending an e-mail is ongoing, SMTP
client cant send the e-mail again.
0 Not ongoing.
1 Ongoing.
<code>
SIM5320_ATC_V2.02
464
7/28/2014
SUCCESS
ONGOING
PARAM ERROR
NETWORK ERROR
SERVER ERROR
AUTH REQUIRED
AUTH ERROR
USER CANCEL
Examples
AT+SMTPSEND?
+SMTPSEND: 0
OK
AT+SMTPSEND
+SMTP: OK
OK
+SMTP: SUCCESS
References
Vendor
Syntax
Test Command
AT+SMTPSTOP=?
Responses
OK
Execution Command
AT+SMTPSTOP
Responses
OK
ERROR
Examples
SIM5320_ATC_V2.02
465
7/28/2014
AT+SMTPSEND?
+SMTPSEND: 1
OK
AT+SMTPSTOP
OK
16.8
SMTPS
This chapter supports SMTP / SMTPS two kinds server. The old SMTP only supports SMTP server,
and the old SMTP AT commands are for compatibility with previous customers. New customers are
recommended to use the commands in this chapter.
16.8.1
Description
This command is used to set SMTP server address and servers port number. SMTP client will
initiate TCP session with the specified server to send an e-mail. If the process of sending an e-mail
is ongoing, the command will return ERROR directly.
Read command returns current SMTP server address and port number.
Execution command will clear SMTP server address and set the port number as default value.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSSRV=?
Read Command
AT+CSMTPSSRV?
Write Command
AT+CSMTPSSRV=<server>
, <port>[, <server_type>]
Execution Command
AT+CSMTPSSRV
Responses
OK
Responses
+CSMTPSSRV: <server>,<port>,<server_type>
OK
Responses
OK
ERROR
Responses
OK
ERROR
Defined values
<server>
SMTP server address, non empty string with double quotes, mandatory and ASCII text string up to
SIM5320_ATC_V2.02
466
7/28/2014
127 characters.
<port>
Port number of SMTP server in decimal format, from 1 to 65535, and default port is 25 for SMTP.
<server_type>
The type of server:
1 SMTP server.
2 SMTPS server with SSL3.0/TLS1.0 supported
Examples
AT+CSMTPSSRV="smtp.server.com",425
OK
AT+CSMTPSSRV?
+CSMTPSSRV: "smtp.server.com",425,2
OK
AT+SMTPSRV
OK
AT+SMTPSRV?
+SMTPSRV: "",25,2
OK
16.8.2
AT+CSMTPSAUTH
Description
This synchronous command is used to control SMTP authentication during connection with SMTP
server. If SMTP server requires authentication while logging in the server, TE must set the
authentication control flag and provide user name and password correctly before sending an e-mail.
If the process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current SMTP server authentication control flag, if the flag is 0, both <user>
and <pwd> are empty strings.
Execution Command clears user name and password.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSAUTH=?
Responses
+CSMTPSAUTH: (list of supported <flag>s)
OK
Read Command
AT+CSMTPSAUTH?
Responses
+CSMTPSAUTH: <flag>, <user>, <pwd>
OK
SIM5320_ATC_V2.02
467
7/28/2014
Write Command
AT+CSMTPSAUTH=
<flag>[, <user>, <pwd>]
Responses
OK
ERROR
Execution Command
AT+CSMTPSAUTH
Responses
OK
ERROR
Defined values
<flag>
SMTP server authentication control flag, integer type.
0 SMTP server doesnt require authentication, factory value.
1 SMTP server requires authentication.
<user>
User name to be used for SMTP authentication, non empty string with double quotes and up to 127
characters.
<pwd>
Password to be used for SMTP authentication, string with double quotes and up to 127 characters.
NOTE: If <flag> is 0, <user> and <pwd> must be omitted (i.e. only <flag> is present).
Examples
AT+CSMTPSAUTH?
+CSMTPSAUTH: 0, ,
OK
AT+CSMTPSAUTH=1,username,password
OK
AT+CSMTPSAUTH?
+CSMTPSAUTH: 1, username, password
OK
AT+CSMTPSAUTH
OK
AT+CSMTPSAUTH?
+CSMTPSAUTH: 0, ,
OK
16.8.3
AT+CSMTPSFROM
Description
This synchronous command is used to set senders address and name, which are used to construct
e-mail header. The senders address must be correct if the SMTP server requries, and if the process
of sending an e-mail is ongoing, the command will return ERROR directly.
SIM5320_ATC_V2.02
468
7/28/2014
References
Vendor
Syntax
Test Command
AT+CSMTPSFROM=?
Read Command
AT+CSMTPSFROM?
Write Command
AT+CSMTPSFROM=
<saddr>[, <sname>]
Execution Command
AT+CSMTPSFROM
Responses
OK
Responses
+CSMTPSFROM: <saddr>, <sname>
OK
Responses
OK
ERROR
Responses
OK
ERROR
Defined values
<saddr>
E-mail sender address (MAIL FROM), non empty string with double quotes, mandatory and ASCII
text up to 127 characters. <saddr> will be present in the header of the e-mail sent by SMTP client in
the field: From: .
<sname>
E-mail sender name, string with double quotes, and alphanumeric ASCII text up to 63 characters.
<sname> will be present in the header of the e-mail sent by SMTP client in the field: From: .
Examples
AT+CSMTPSFROM="[email protected]","sendername"
OK
AT+CSMTPSFROM?
+CSMTPSFROM: "[email protected]", "sendername"
OK
AT+CSMTPSFROM
OK
AT+CSMTPSFROM?
+CSMTPSFROM: "", ""
OK
SIM5320_ATC_V2.02
469
7/28/2014
16.8.4
Description
This synchronous command is used to set recipient address/name and kind (TO/CC/BCC). If only
the parameter of kind is present, the command will clear all recipients of this kind, and if only
parameters of kind and index are present, the command will clear the specified recipient. If the
process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current recipient address/name and kind list.
Execution command will clear all recipient information.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSRCPT=?
Responses
+CSMTPSRCPT: (list of supported <kind>s), (list of supported
<index>s)
OK
Read Command
AT+CSMTPSRCPT?
Responses
[+CSMTPSRCPT: <kind>, <index>, <raddr>, <rname>
[<CR><LF>]]
OK
OK
ERROR
Write Command
AT+CSMTPSRCPT=
<kind>[, <index>
[,<raddr>[,<rname>]]]
Responses
OK
Execution Command
AT+CSMTPSRCPT
Responses
OK
ERROR
ERROR
Defined values
<kind>
Recipient kind, the kinds of TO and CC are used to construct e-mail header in the field: To: or
Cc: .
0 TO, normal recipient.
1 CC, Carbon Copy recipient.
2 BCC, Blind Carbon Copy recipient.
<index>
SIM5320_ATC_V2.02
470
7/28/2014
Examples
AT+CSMTPSRCPT=0, 0, [email protected], rcptname_to
OK
AT+CSMTPSRCPT?
+CSMTPSRCPT: 0, 0, [email protected], rcptname_to
OK
AT+CSMTPSRCPT=1, 0, [email protected], rcptname_cc
OK
AT+CSMTSPRCPT?
+CSMTPSRCPT: 0, 0, [email protected], rcptname_to
+CSMTPSRCPT: 1, 0, [email protected], rcptname_cc
OK
16.8.5
AT+CSMTPSSUB
E-mail subject
Description
This synchronous command is used to set the subject of e-mail, which is used to construct e-mail
header. If the process of sending an e-mail is ongoing, the command will return ERROR directly.
Read command returns current e-mail subject.
Execution command will clear the subject.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSSUB=?
Responses
OK
Read Command
AT+CSMTPSSUB?
Responses
+CSMTPSSUB: <subject_len>,<subject_character><CR><LF>
[<subject>]
OK
Write Command
AT+CSMTPSSUB=<subject
_len>[,<subject_character>]
Responses
>
OK
ERROR
SIM5320_ATC_V2.02
471
7/28/2014
Execution Command
AT+CSMTPSSUB
Responses
OK
ERROR
Defined values
<subject>
E-mail subject, string with double quotes, and ASCII text up to 511 characters. <subject> will be
present in the header of the e-mail sent by SMTPS client in the field: Subject: . For write
command, it can input any binary data.
<subject_len>
The length of subject content
<subject_character>
The character set of subject. Default is utf-8.
Examples
AT+CSMTPSSUB?
+CSMTPSSUB: 0,utf-8
OK
AT+CSMTPSSUB=19, utf-8
> THIS IS A TEST MAIL
OK
AT+CSMTPSSUB?
+CSMTPSSUB: 19, utf-8
THIS IS A TEST MAIL
OK
16.8.6
Description
This command is used to set e-mail body, which will be sent to SMTP server with text format.
Read command returns current e-mail body. If the process of sending an e-mail is ongoing, the
command will return ERROR directly. Execution command clears email body.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSBODY=?
Responses
OK
Read Command
Responses
SIM5320_ATC_V2.02
472
7/28/2014
AT+CSMTPSBODY?
+CSMTPSBODY: <body_len><CR><LF>
[<body>]
OK
Write Command
AT+CSMTPSBODY=<body
_len>
Responses
>
OK
Execution Command
AT+CSMTPSBODY
Responses
OK
Defined values
<body>
E-mail body, up to 5120 characters.
<body_len>
The length of email body.
Examples
AT+CSMTPSBODY=38
> THIS IS A TEST MAIL FROM SIMCOM MODULE
OK
AT+CSMTPSBODY?
+CSMTPSBODY: 38
THIS IS A TEST MAIL FROM SIMCOM MODULE
OK
16.8.7
AT+CSMTPSBCH
Description
This synchronous command is used to set the body character set of e-mail. If the process of sending
an e-mail is ongoing, the command will return ERROR directly.
Read command returns current e-mail body character set.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSBCH=?
Responses
OK
Read Command
AT+CSMTPSBCH?
Responses
+CSMTPSBCH: <charset>
SIM5320_ATC_V2.02
473
7/28/2014
OK
Write Command
AT+CSMTPSBCH=<charset
>
Responses
OK
ERROR
Execution Command
AT+CSMTPSBCH
Responses
OK
ERROR
Defined values
<charset>
E-mail body character, string with double quotes. By default, it is utf-8. The maximum length is
19 bytes.
Examples
AT+CSMTPSBCH=?
OK
AT+CSMTPSBCH=gb2312
OK
AT+CSMTPSBCH?
+CSMTPSBCH: gb2312
OK
16.8.8
AT+CSMTPSFILE
Select attachment
Description
The synchronous command is used to select file as e-mail attachment. If the process of sending an
e-mail is ongoing, the command will return ERROR directly.
Read command returns current all selected attachments with full path.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSFILE=?
Responses
+CSMTPSFILE: (list of supported <index>s)
OK
Read Command
AT+CSMTPSFILE?
Responses
[+CSMTPSFILE: <index>, <filename>, <filesize>
[<CR><LF>]]
OK
SIM5320_ATC_V2.02
474
7/28/2014
Write Command
AT+CSMTPSFILE=
<index>[, <filename>]
Responses
OK
Execution Command
AT+CSMTPSFILE
Responses
OK
[+CSMTPS: <err>]
ERROR
Defined values
<index>
Index for attachments, from 1 to 10. According to the sequence of <index>, SMTP client will
encode and send all attachments.
<filename>
String type with double quotes, the name of a file which is under current directory (refer to file
system commands). SMTP client doesnt allow two attachments with the same file name. For write
command, if the file name contains non-ASCII characters, this parameter should contain a prefix of
{non-ascii}.
<filesize>
File size in decimal format. The total size of all attachments cant exceed 10MB.
<err>
The error information.
Examples
AT+CSMTPSFILE=1,file1.txt
OK
AT+CSMTPSFILE=1,{non-ascii}E6B58BE8AF95E99984E4BBB62E6A7067
OK
AT+CSMTPSFILE?
+CSMTPSFILE: 1, C:/file1.txt
OK
AT+CSMTPSFILE=2,file2.txt
OK
AT+CSMTPSFILE?
+CSMTPSFILE: 1, C:/file1.txt
+CSMTPSFILE: 2, C:/file2.txt
OK
16.8.9
AT+CSMTPSSEND
Description
This asynchronous command is used to initiate TCP/SSL session with SMTP server and send an
SIM5320_ATC_V2.02
475
7/28/2014
References
Vendor
Syntax
Test Command
AT+CSMTPSSEND=?
Responses
OK
Execution Command
AT+CSMTPSSEND
Responses
OK
+CSMTPSSEND: <err>
ERROR
+CSMTPSSEND: <err>
ERROR
Defined values
<err>
The error information. 0 indicates success. Other values indicate failure.
Examples
AT+CSMTPSSEND
OK
+CSMTPSSEND: 0
16.8.10
Description
The synchronous command is used to force to stop sending e-mail and close the TCP/SSL session
while sending an e-mail is ongoing. Otherwise, the command will return ERROR directly.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSSTOP=?
Responses
OK
Execution Command
AT+CSMTPSSTOP
Responses
OK
SIM5320_ATC_V2.02
476
7/28/2014
ERROR
Examples
AT+CSMTPSSTOP
OK
16.8.11
AT+CSMTPSCLEAN
Description
The synchronous command is used to clean mail content and setting.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSMTPSCLEAN=?
Responses
OK
Execution Command
AT+CSMTPSCLEAN
Responses
OK
ERROR
Examples
AT+CSMTPSCLEAN
OK
3
4
5
6
7
8
Duplicate file
Time out
Transfer failed
Memory error
Invalid parameter
Network error
SIM5320_ATC_V2.02
477
7/28/2014
9
10
11
12
255
16.9
The common channel related AT commands needs the AT+CATR to be set to the used port.
AT+CATR=0 may cause some problem.
16.9.1
Description
This command is used to acquire common channel service.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CCHSTART
OK
+CCHSTART: <err>
+CCHSTART: <err>
OK
ERROR
Defined values
<err>
The result code of the acquiring common channel service. 0 is success. Other values are failure.
Examples
AT+CCHSTART
OK
+CCHSTART: 0
SIM5320_ATC_V2.02
478
7/28/2014
16.9.2
Description
This command is used to stop common channel service.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+CCHSTOP
OK
+CCHSTOP: <err>
+CCHSTOP: <err>
OK
ERROR
Defined values
<err>
The result code of the stoping common channel service. 0 is success. Other values are failure.
Examples
AT+CCHSTOP
OK
+CCHSTOP: 0
16.9.3
AT+CCHOPEN
Open a channel
Description
This command is used to connect peer using common channel service.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CCHOPEN=?
Write Command
SIM5320_ATC_V2.02
Responses
+CCHOPEN: (0,1), ADDRESS, list of <port>s [,list of
<channel_type>s [,list of <bind_port>s]]
OK
Responses
479
7/28/2014
AT+CCHOPEN=<session_i
d>, <host>,<port>[<chann
el_type>,[<bind_port>]]
OK
+CCHOPEN: <session_id>,<err>
+CCHOPEN: <session_id>,<err>
OK
Open channel successfully in transparent mode:
CONNECT<text>
Open channel failed in transparent mode:
CONNECT FAIL
ERROR
Defined values
<session_id>
The session index to operate. Its from 0 to 1. In transparent mode, only 0 is valid.
<host>
The host address, maximum length is 256
<port>
The peer port for channel, the range is from 1 to 65535
<channel_type>
The type of channel:
0 UDP.
1 TCP client.
2 SSLv3.0/TLSv1.0 client.
<bind_port>
The local port for channel, the range is from 1 to 65535
<text>
CONNECT result code string; the string formats please refer ATX/AT\V/AT&E command.
<err>
The result code of the opening common channel. 0 is success. Other values are failure.
Examples
AT+CCHOPEN=0, www.myserver.com,443,2
OK
+CCHOPEN: 0 0
AT+CCHOPEN=0, www.myserver.com,443,1
OK
+CCHOPEN: 0,0
16.9.4
AT+CCHCLOSE
Close a channel
Description
This command is used to disconnect from peer.
SIM5320_ATC_V2.02
480
7/28/2014
SIM PIN
YES
References
Vendor
Syntax
Write Command
Responses
AT+CCHCLOSE=<session_
id>
OK
+CCHCLOSE: <session_id>,<err>
+CCHCLOSE: <session_id>,<err>
OK
ERROR
Defined values
<session_id>
The session index to operate. Its from 0 to 1.
<err>
The result code of the closing common channel. 0 is success. Other values are failure.
Examples
AT+CCHCLOSE=0
OK
+CCHCLOSE: 0,0
16.9.5
AT+CCHSEND
Description
This command is used to send data to peer. If the first parameter of AT+CCHSET is set to 1,
the +CCHSEND: <session_id>, <err> will be reported after AT+CCHSEND is finished.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CCHSEND=?
Read Command
AT+CCHSEND?
Write Command
SIM5320_ATC_V2.02
Responses
+CCHSEND: (0,1),(1-2048)
OK
Responses
+CCHSEND: 0,<unsent_len_0>,1,<unsent_len_1>
OK
Responses
481
7/28/2014
AT+ CCHSEND
=<session_id>,<len>
>
OK
ERROR
Defined values
<session_id>
The session index to operate. Its from 0 to 1.
<len>
The length of data to send. Its range is from 1 to 2048.
<unsent_len_0>
The data of channel session 0 cached in DS layer which is waiting to be sent.
<unsent_len_1>
The data of channel session 1 cached in DS layer which is waiting to be sent.
Examples
AT+CCHSEND=0, 125
>GET / HTTP/1.1
Host: www.google.com.hk
User-Agent: MAUI htp User Agent
Proxy-Connection: keep-alive
Content-Length: 0
OK
16.9.6
Description
This command is used to receive data from the channel.
SIM PIN
YES
References
Vendor
Syntax
Read Command
AT+CCHRECV?
Write Command
AT+CCHRECV=<session_i
d>[,<max_recv_len>]
SIM5320_ATC_V2.02
Responses
+CCHRECV: LEN,<cache_len_0>,1,<cache_len_1>
OK
Responses
OK
[+CCHRECV: DATA, <session_id>,<len>
482
7/28/2014
Defined values
<session_id>
The session index to operate. Its from 0 to 1.
<max_recv_len>
Maximum bytes of data to receive in the current AT+CCHRECV calling. 0 means maximum 2048
bytes.
<cache_len_0>
The length of RX data cached for session 0.
<cache_len_1>
The length of RX data cached for session 1.
<result>
The final result of the receiving.
0 ok
1 unknown error
2 busy
3 server closed
4 timeout
5 transfer failed
6 memory error
7 invalid parameter
8 network error
<len>
The length of data followed.
Examples
AT+CCHRECV=1
OK
+CCHRECV: DATA,1,249
HTTP/1.1 200 OK
Content-Type: text/html
Content-Language: zh-CN
Content-Length: 57
Date: Tue, 31 Mar 2009 01:56:05 GMT
Connection: Close
Proxy-Connection: Close
<html>
SIM5320_ATC_V2.02
483
7/28/2014
<header>test</header>
<body>
Test body
</body>
+CCHRECV:1, 0
16.9.7
Description
This command is set the parameter of common channel service. It must be called before
AT+CCHSTART.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CCHSET=?
Read Command
AT+CCHSET?
Write Command
AT+ CCHSET
=<report_send_result>[,<rec
v_mode>]
Responses
+CCHSET: (0,1),(0,1)
OK
Responses
+CCHSET: <report_send_result>,<recv_mode>
OK
Responses
OK
ERROR
Defined values
<report_send_result>
Whether to report result of CCHSEND:
0 No.
1 Yes.
<recv_mode>
The receiving mode:
0 Output the data to MCU whenever received data.
1 Module caches the received data and notify MCU with +CCHEVENT: <session_id>,
RECV EVENT. MCU can use AT+CCHRECV to receive the cached data(manual receiving mode).
Examples
SIM5320_ATC_V2.02
484
7/28/2014
AT+CCHSET=1,1
OK
16.9.8
AT+CCHADDR
Description
This command is used to get the IPv4 address after calling AT+CCHSTART.
SIM PIN
YES
References
Vendor
Syntax
Execute Command
Responses
AT+ CCHADDR
Defined values
<ip_address>
A string parameter that identifies the IPv4 address of the common channel service when connecting
to Packet network.
Examples
AT+CCHADDR
+CCHADDR: 10.71.155.118
OK
16.9.9
AT+CCHMODE
Description
This command is set the mode of common channel service. This AT command must be called
before calling AT+CCHSTART.
SIM PIN References
YES
Vendor
Syntax
Test Command
AT+CCHMODE=?
SIM5320_ATC_V2.02
Responses
+CCHMODE: (0,1)
485
7/28/2014
Read Command
AT+CCHMODE?
Write Command
AT+ CCHMODE =<mode>
OK
Responses
+CCHMODE: <mode>
OK
Responses
OK
ERROR
Defined values
<mode>
The mode of common channel service:
0 Normal.
1 Transparent mode.
Examples
AT+CCHMODE=1
OK
16.9.10 AT+CCHSTATE
Description
This command is used to get the state of common channel.
SIM PIN
NO
References
Vendor
Syntax
Execute Command
AT+CCHSTATE
Responses
+CCHSTATE: <network_state>,<session0_state>,<session1_state>
OK
ERROR
Defined values
<network_state>
0 None
1 Accquired stack
2 Opening network
3 Closing network
4 Opened network
SIM5320_ATC_V2.02
486
7/28/2014
Examples
AT+CCHSTATE
+CCHSTATE: 0,0,0
OK
Description
RECV
+CCH_PEER_CLOSED:
<session_id>
Operation succeeded
Alerting state(reserved)
Unknown error
3
4
5
6
7
8
9
Busy
Peer closed
Operation timeout
Transfer failed
Memory error
Invalid parameter
Network error
SIM5320_ATC_V2.02
487
7/28/2014
AT+CCERTDOWN
Description
This command is used to transfer a certificate or key file to the module.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCERTDOWN=?
Write Command
Responses
OK
Responses
AT+CCERTDOWN=<filen
ame>,<len>
>
OK
>
ERROR
ERROR
Defined values
<filename>
The name of the certificate/key file. The file name must have type like .der or .pem, and
the .pem file cannot be protected using password.
<len>
The length of the file data to send.
Examples
AT+CCERTDOWN=client_key.der,611
>file content...
OK
16.10.2
Description
This command is used to list certificate/key files which has already been downloaded to the
module.
SIM5320_ATC_V2.02
488
7/28/2014
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCERTLIST=?
Responses
OK
Execution Command
AT+CCERTLIST
Responses
[
<list of files> with +CCERTLIST: header
<CR><LF>]
OK
Defined values
<list of files>
The certificate/key files which has been downloaded to the module.
Examples
AT+CCERTLIST=?
OK
AT+CCERTLIST
+CCERTLIST: "ca_cert.der"
+CCERTLIST: "client_cert.der"
+CCERTLIST: "client_key.der"
+CCERTLIST: "server_cert.pem"
+CCERTLIST: "server_key.pem"
OK
16.10.3
AT+CCERTDELE
Description
This command is used to delete a certificate/key file in the module.
SIM PIN
NO
References
Vendor
SIM5320_ATC_V2.02
489
7/28/2014
Syntax
Test Command
Responses
AT+CCERTDELE=?
OK
Write Command
AT+CCERTDELE=<filena
me>
Responses
OK
ERROR
Defined values
<filename>
String with or with double quotes, file name which is relative and already existing.
Examples
AT+CCERTDELE=server_key.pem
OK
16.10.4
Description
This command is used to set the CA used in following SSL operation. The command only can be
used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART, and before any SSL open
operation.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSSLCA=?
Responses
OK
Read Command
Response
AT+CSSLCA?
Write Command
AT+CSSLCA=<chain_ind
ex>,<filename>
SIM5320_ATC_V2.02
Responses
OK
ERROR
490
7/28/2014
Defined values
<chain_index>
The index of CA in the chain. The range is from 0 to 3.
<filename>
The name of the CA file.
Examples
AT+CSSLCA=0, rootca.der
OK
AT+CSSLCA=1,intermediate.der
OK
16.10.5
Description
This command is used to set the certificate file used in following SSL operation. The command
only can be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART, and before any
SSL open operation.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSSLCERT=?
Responses
OK
Read Command
Response
AT+CSSLCERT?
+CSSLCERT: <filename>,<ca_chain_index>
OK
ERROR
Write Command
AT+CSSLCERT=<filenam
e>,<ca_chain_index>
Responses
OK
ERROR
Defined values
<ca_chain_index>
The index of CA file in the chain. The range is from 0 to 3. The <filename> certificate file has been
signed using this CA file.
<filename>
SIM5320_ATC_V2.02
491
7/28/2014
Examples
AT+CSSLCERT=mycert.der,0
OK
16.10.6
Description
This command is used to set the key file used in following SSL operation. The command only can
be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART, and before any SSL open
operation.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSSLKEY=?
Responses
OK
Read Command
Response
AT+CSSLKEY?
+CSSLKEY: <filename>,<sll_key_type>
OK
ERROR
Write Command
AT+CSSLKEY=<filename
>[,<sll_key_type>]
Responses
OK
ERROR
Defined values
<filename>
The name of the key file.
<sll_key_type>
0 - SSL_KEY_TYPE_RSA
1 - SSL_KEY_TYPE_DSA
Examples
AT+CSSLKEY=myKEY.der,0
OK
SIM5320_ATC_V2.02
492
7/28/2014
16.10.7
AT+CSSLLOADCK
Load certificate/key
Description
This command is used to load the certificate/key files which has been set using
AT+CSSLCA/AT+CSSLCERT/AT+CSSLKEY. The command only can be used after
AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART, and before any SSL open operation.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSSLLOADCK=?
Responses
OK
Execution Command
AT+CSSLLOADCK
Responses
OK
ERROR
Examples
AT+CSSLLOADCK=?
OK
AT+CSSLLOADCK
OK
SIM5320_ATC_V2.02
493
7/28/2014
AT+CGPS
Description
This command is used to start or stop GPS session.
NOTE:
1. Output of NMEA sentences is automatic; no control via AT commands is provided. You
can configure NMEA or UART port for output by using AT+CGPSSWITCH. At present the
module only supports standalone mode. If executing AT+CGPS=1, the GPS session will
choose cold or hot start automatically.
2. UE-based and UE-assisted mode depend on URL (AT+CGPSURL) and certificate
(AT+CGPSSSL). When UE-based mode fails, it will switch standalone mode.
3. UE-assisted mode is singly fixed. Standalone and UE-based mode is consecutively
fixed.
4. After the GPS closed, it should to wait about 2s~30s for start again. ReasonIf the
signal conditions are right (strong enough signals to allow ephemeris demodulation) or
ephemeris demodulation is on going, sometimes MGP will stay on longer in order to
demodulate more ephemeris. This will help the engine provide faster TTFF and
possibly better yield later (up to 2 hours), because it has the benefit of more ephemeris
available.
SIM PIN References
NO
Vendor
Syntax
Test Command
AT+CGPS=?
Responses
+CGPS: (list of supported <on/off>s),( list of supported <mode>s)
OK
Read Command
AT+CGPS?
Responses
+CGPS: <on/off>,<mode>
OK
Write Command
AT+CGPS=<on/off>
[,<mode>]
Responses
OK
If UE-assisted mode, when fixed will report indication:
+CAGPSINFO:<lat>,<lon>,<alt>,<date>,<time>
ERROR
Defined values
<on/off>
0 stop GPS session
1 start GPS session
<mode>
Ignore - standalone mode
1 standalone mode
2 UE-based mode
3 UE-assisted mode
<lat>
Latitude of current position. Unit is in 10^8 degree
<log>
Longitude of current position. Unit is in 10^8 degree
<alt>
MSL Altitude. Unit is meters.
<date>
UTC Date. Output format is ddmmyyyy
<time>
UTC Time. Output format is hhmmss.s
Examples
AT+CGPS?
OK
AT+CGPS=1,1
OK
17.2
AT+CGPSINFO
Description
This command is used to get current position information.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSINFO=?
Responses
+CCGPSINFO: (scope of <time>)
OK
Read Command
AT+CGPSINFO?
Responses
+CCGPSINFO: <time>
OK
Write Command
Responses
SIM5320_ATC_V2.02
495
7/28/2014
AT+CGPSINFO=<time>
OK
+CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC
time>],[<alt>],[<speed>],[<course>]
AmpI/AmpQ: <AmpI>/<AmpQ>
OK (if <time>=0)
Execution Command
AT+CGPSINFO
Responses
+CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC
time>],[<alt>],[<speed>],[<course>]
AmpI/AmpQ: <AmpI>/<AmpQ>
OK
Defined values
<lat>
Latitude of current position. Output format is ddmm.mmmmmm
<N/S>
N/S Indicator, N=north or S=south
<log>
Longitude of current position. Output format is dddmm.mmmmmm
<E/W>
E/W Indicator, E=east or W=west
<date>
Date. Output format is ddmmyy
<UTC time>
UTC Time. Output format is hhmmss.s
<alt>
MSL Altitude. Unit is meters.
<speed>
Speed Over Ground. Unit is knots.
<AmpI>
The value of AmpI.
<AmpQ>
The value of AmpQ.
<course>
Course. Degrees.
<time>
The range is 0-255, unit is second, after set <time> will report the GPS information every the
seconds.
Examples
AT+CGPSINFO=?
SIM5320_ATC_V2.02
496
7/28/2014
+CGPSINFO: (0-255)
OK
AT+CGPSINFO?
+CGPSINFO: 0
OK
AT+CGPSINFO
+CGPSINFO:3113.343286,N,12121.234064,E,250311,072809.3,44.1,0.0,0
AmpI/AmpQ: 420/421
OK
17.3
AT+CGPSCOLD
Description
This command is used to cold start GPS session.
NOTE: Before using this command,it must use AT+CGPS=0 to stop GPS session.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSCOLD=?
Execution Command
AT+CGPSCOLD
Responses
OK
Responses
OK
Examples
AT+CGPSCOLD=?
OK
AT+CGPSCOLD
OK
17.4
Description
This command is used to hot start GPS session
NOTE: Before using this command, AT+CGPS=0 must be used to stop GPS session.
SIM PIN
NO
References
Vendor
Syntax
SIM5320_ATC_V2.02
497
7/28/2014
Test Command
AT+CGPSHOT=?
Execution Command
AT+CGPSHOT
Responses
OK
Responses
OK
Examples
AT+CGPSHOT=?
OK
AT+CGPSHOT
OK
17.5
AT+CGPSSWITCH
Description
This command is used to choose the output port for NMEA sentence.
NOTE: Support NMEA output over the UART or NMEA port. You can choose only one port for
the NMEA sentence. If choosing UART port, Baud rate of host must be set 115200 bit/s,
and cant input AT commands through UART port, and the NMEA port is disabled
absolutely. If choosing NMEA port for NMEA sentence, the UART port function is
integrated.It takes effect after restarting.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSSWITCH=?
Read Command
AT+CGPSSWITCH?
Write Command
AT+CGPSSWITCH=<port>
Responses
+CGPSSWITCH: (list of supported <port>s)
OK
Responses
+CGPSSWITCH: <port>
OK
Responses
OK
ERROR
Defined values
<port>
1
2
NMEA ports
UART port
SIM5320_ATC_V2.02
498
7/28/2014
Examples
AT+CGPSSWITCH=?
+CGPSSWITCH:(1,2)
OK
AT+CGPSSWITCH=1
OK
17.6
Description
This command is used to set AGPS default server URL. It will take effect only after restarting.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSURL=?
Responses
OK
Read Command
AT+CGPSURL?
Responses
+CGPSURL:<URL>
OK
Responses
OK
Write Command
AT+CGPSURL=<URL>
ERROR
Defined values
<URL>
AGPS default server URL. It needs double quotation marks.
Examples
AT+CGPSURL=123.123.123.123:8888
OK
AT+CGPSURL?
+CGPSURL: 123.123.123.123:8888
OK
17.7
Description
SIM5320_ATC_V2.02
499
7/28/2014
This command is used to select transport security, used certificate or not. The certificate gets from
local carrier. If the AGPS server doesnt need certificate, execute AT+CGPSSSL=0.
SIM PIN
References
NO
Vendor
Syntax
Test Command
AT+CGPSSSL=?
Responses
+CGPSSSL: (list of supported <SSL>s)
OK
Read Command
AT+CGPSSSL?
Responses
+CGPSSSL=<SSL>
OK
Write Command
Responses
AT+CGPSSSL=<SSL>
OK
ERROR
Defined values
<SSL>
0
1
Examples
AT+CGPSSSL=0
OK
17.8
AT+CGPSAUTO
Description
This command is used to start GPS automaticly when module powers on, GPS is closed defaultly.
NOTE: If GPS start automatically, its operation mode is standalone mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSAUTO=?
Responses
SIM5320_ATC_V2.02
500
7/28/2014
Read Command
AT+CGPSAUTO?
Write Command
AT+CGPSAUTO=<auto>
Responses
+CGPSAUTO:<auto>
OK
Responses
OK
ERROR
Defined values
<auto>
0
1
Non-automatic
automatic
Examples
AT+CGPSAUTO=1
OK
17.9
Description
This command is used to configure NMEA output sentences which are generated by the gpsOne
engine when position data is available.
NOTE: If bit 2 GPGSV doesnt configure, GPGSV sentence also doesnt output on AT/modem port
even set AT+CGPSFTM=1.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSNMEA=?
Responses
+CGPSNMEA: (scope of <nmea>)
OK
Read Command
AT+CGPSNMEA?
Responses
+CGPSNMEA: <nmea>
OK
Write Command
AT+CGPSNMEA=<nmea>
Responses
OK
If GPS engine is running:
ERROR
SIM5320_ATC_V2.02
501
7/28/2014
Defined values
<nmea>
Range 0 to 31
Each bit enables an NMEA sentence output as follows:
Bit 0 GPGGA (global positioning system fix data)
Bit 1 GPRMC (recommended minimum specific GPS/TRANSIT data)
Bit 2 GPGSV (GPS satellites in view)
Bit 3 GPGSA (GPS DOP and active satellites)
Bit 4 GPVTG (track made good and ground speed)
Set the desired NMEA sentence bit(s). If multiple NMEA sentence formats are desired, OR the
desired bits together.
Examples
AT+CGPSNMEA31
OK
17.10 AT+CGPSMD
Description
This command specifies if the Mobile-Originated (MO) GPS session should use the control plane
session or user plane session.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSMD=?
Responses
+CGPSMD: (scope of <method>)
OK
Read Command
AT+CGPSMD?
Responses
+CGPSMD: <method>
OK
Write Command
AT+CGPSMD=<method>
Responses
OK
If GPS engine is running:
ERROR
Defined values
<method>
SIM5320_ATC_V2.02
502
7/28/2014
0 Control plane
1 User plane
Examples
AT+CGPSMD1
OK
17.11 AT+CGPSFTM
Description
This command is used to start GPS test mode.
NOTE:
1. If test mode starts, the URC will report on AT port, Modem port and UART port.
2. If testing on actual signal, <SV> should be ignored, and GPS must be started by AT+CGPS,
AT+CGPSCOLD or AT+CGPSHOT.
3. If testing on GPS signal simulate equipment, <SV> must be choiced, and GPS will start
automatically.
4. URC sentence will report every 1 second.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSFTM=?
Responses
OK
Read Command
AT+CGPSFTM?
Responses
+CGPSFTM: <on/off>
OK
Responses
OK
Write Command
AT+CGPSFTM=<on/off>
ERROR
Defined values
<on/off>
0
Close test mode
1 Start test mode
<CNo>
Satellite CNo value. Floating value.
URC format
$GPGSV[,<SV>,<CNo>][...]
SIM5320_ATC_V2.02
503
7/28/2014
Examples
AT+CGPSFTM=1
OK
$GPGSV,3,44.5,13,45.6,32,35.3,19,39.1,23,42.5,21,38.8
$GPGSV,3,44.9,13,45.5,32,35.5,19,39.8,23,42.9,21,38.7
References
Vendor
Syntax
Test Command
AT+CGPSDEL=?
Responses
OK
Execution Command
AT+CGPSDEL
Responses
OK
ERROR
Examples
AT+CGPSDEL=?
OK
AT+CGPSDEL
OK
References
Vendor
Syntax
SIM5320_ATC_V2.02
504
7/28/2014
Test Command
AT+CGPSNOTIFY=?
Responses
+CGPSNOTIFY: (list of supported <resp>s)
OK
Write Command
AT+CGPSNOTIFY=<resp>
Responses
OK
ERROR
Defined values
<resp>
0
1
2
Examples
AT+CGPSNOTIFY=?
+CGPSNOTIFY: (0-2)
OK
AT+CGPSNOTIFY=0
OK
Description
This command is used to enable/disable the GPS XTRA function.
NOTE: The function will take effect after restarting the module. XTRA function must download
the assistant file from network by HTTP, so the APN must be set by AT+CGSOCKCONT
command.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSXE=?
Responses
+CGPSXE: (list of supported <on/off>s)
OK
Read Command
AT+CGPSXE?
Responses
+CGPSXE: <on/off>
OK
SIM5320_ATC_V2.02
505
7/28/2014
Write Command
AT+CGPSXE=<on/off>
Responses
OK
ERROR
Defined values
<on/off>
0
1
Examples
AT+CGPSXE=?
+CGPSXE: (0,1)
OK
AT+CGPSXE=0
OK
17.15 AT+CGPSXD
Description
This command is used to download the GPS XTRA assistant file from network through http
protocol. Module will download the latest assistant file form server and write the file into module.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSXD=?
Responses
+CGPSXD: (list of supported <server>s)
OK
Read Command
AT+CGPSXD?
Responses
+CGPSXD: <server>
OK
Write Command
AT+CGPSXD=<server>
Responses
OK
+CGPSXD: <resp>
+CGPSXD: <resp>
ERROR
Defined values
SIM5320_ATC_V2.02
506
7/28/2014
<server>
0 XTRA primary server (precedence)
1 XTRA secondary server
2 XTRA tertiary server
<resp>
refer to Unsolicited XTRA download Codes
Examples
AT+CGPSXD=?
+CGPSXD: (0-2)
OK
AT+CGPSXD=0
OK
+CGPSXD: 0
17.16 AT+CGPSXDAUTO
Description
This command is used to control download assistant file automatically or not when GPS start.
XTRA function must enable for using this command. If assistant file doesnt exist or check error,
the module will download and inject the assistant file automatically.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSXDAUTO=?
Responses
+CGPSXDAUTO: (list of supported <on/off>s)
OK
Read Command
AT+CGPSXDAUTO?
Responses
+CGPSXDAUTO: <on/off>
OK
Write Command
AT+CGPSXDAUTO=<on/o
ff>
Responses
OK
ERROR
Defined values
<on/off>
0 disable download automatically
1 enable download automatically
SIM5320_ATC_V2.02
507
7/28/2014
NOTE: Some URCs will report when downloading, its same as AT+CGPSXD command.
Examples
AT+CGPSXDAUTO=?
+CGPSXDAUTO: (0,1)
OK
AT+CGPSXDAUTO=0
OK
References
Vendor
Syntax
Test Command
AT+CGPSINFOCFG=?
Responses
+CGPSINFOCFG: (scope of <time>),(scope of <config>)
OK
Read Command
AT+CGPSINFOCFG?
Responses
+CGPSINFOCFG: <time>, <config>
OK
Write Command
AT+CGPSINFOCFG=<time
>[,<config>]
Responses
OK
(NMEA-0183 Sentence)
OK (if <time>=0)
Defined values
<time>
The range is 0-255, unit is second, after set <time> will report the GPS NMEA sentence every the
seconds.
If <time>=0, module stop reporting the NMEA sentence.
<config>
SIM5320_ATC_V2.02
508
7/28/2014
Examples
AT+CGPSINFOCFG=?
+CGPSINFO: (0-255),(0-31)
OK
AT+CGPSINFOCFG=10,31
OK
$GPGSV,4,1,16,04,53,057,44,02,55,334,44,10,61,023,44,05,45,253,43*7D
$GPGSV,4,2,16,25,10,300,40,17,25,147,40,12,22,271,38,13,28,053,38*77
$GPGSV,4,3,16,26,09,187,35,23,06,036,34,24,,,,27,,,*7A
$GPGSV,4,4,16,09,,,,31,,,,30,,,,29,,,*7D
$GPGGA,051147.0,3113.320991,N,12121.248076,E,1,10,0.8,47.5,M,0,M,,*45
$GPVTG,NaN,T,,M,0.0,N,0.0,K,A*42
$GPRMC,051147.0,A,3113.320991,N,12121.248076,E,0.0,0.0,211211,,,A*66
$GPGSA,A,3,02,04,05,10,12,13,17,23,25,26,,,1.4,0.8,1.2*3B
17.18 AT+CGPSPMD
Description
This command is used to configure the positioning modes support.
NOTE: Need to restart the module after setting the mode.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSPMD=?
Responses
+CGPSPMD: (scope of <mode>)
OK
Read Command
AT+CGPSPMD?
Responses
+CGPSPMD: <mode>
OK
Write Command
Responses
SIM5320_ATC_V2.02
509
7/28/2014
AT+CGPSPMD=<mode>
OK
ERROR
Defined values
<mode>
Range 1 to 127, default is 127(In the SIM5320J, the default value is 121.)
Each bit enables a supported positioning mode as follows:
Bit 0 Standalone
Bit 1 UP MS-based
Bit 2 UP MS-assisted
Bit 3 CP MS-based (2G)
Bit 4 CP MS-assisted (2G)
Bit 5 CP UE-based (3G)
Bit 6 CP UE-assisted (3G)
Set the desired mode sentence bit(s). If multiple modes are desired, OR the desired bits together.
Example, support standalone, UP MS-based and UP MS-assisted, set Binary value 0000 0111, is 7.
Examples
AT+CGPSPMD=127
OK
17.19 AT+CGPSMSB
Description
This command is used to configure AGPS based mode switching to standalone mode automatically
or not.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSMSB=?
Responses
+CGPSMSB: (scope of <mode>)
OK
Read Command
AT+CGPSMSB?
Responses
+CGPSMSB: <mode>
OK
Write Command
AT+CGPSMSB=<mode>
Responses
OK
SIM5320_ATC_V2.02
510
7/28/2014
ERROR
Defined values
<mode>
0
1
Examples
AT+CGPSMSB=0
OK
17.20 AT+CGPSHOR
Description
The command is used to configure the positioning desired accuracy threshold in meters.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CGPSHOR=?
Responses
+CGPSHOR: (scope of <acc>), (scope of < acc_f >)
OK
Read Command
AT+CGPSHOR?
Responses
+CGPSHOR: <acc>,<acc_f>
OK
Write Command
AT+CGPSHOR=<acc>[,<ac
c_f>]
Responses
OK
ERROR
Defined values
<acc>
Range 0 to 1800000
Default value is 50
<acc_f>
Reserved
Examples
SIM5320_ATC_V2.02
511
7/28/2014
AT+CGPSHOR=50
OK
Description
Assistant file download successfully
Assistant file doesnt exist
Assistant file check error
230
231
232
233
234
235
236
237
HTTP timeout
Failed to transfer data
Memory error
Invalid parameter
Network error
Description
This command is used to start or stop the assist location. When start, it will connect Google server
and post request, then receive response. When stop, it will stop the location and release the
resource.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CASSISTLOC=?
Responses
+CASSISTLOC: (0-2),(1-16),(language),(1-24*60*60)
OK
ERROR
Execution Command
AT+CASSISTLOC=<autoru
n>[,<cid>[,<language>[,<
time_between_fix>]] ]
SIM5320_ATC_V2.02
Responses
1. If autorun = 0:
OK
+CASSISTLOC: <return code>
2. If autorun = 1:
512
7/28/2014
b. If cassistlocformat = 1:
+CASSISTLOC:
<latitude>,<longitude>,<altitude>,<accuracy>,<altitude_accuracy>
,<date>,<GMT time>
c. If cassistlocformat = 2:
+CASSISTLOC: <latitude>,<longitude>,<date>,<GMT time>
If ERROR occurred
SIM5320_ATC_V2.02
513
7/28/2014
OK
+CASSISTLOC: <return code>
Defined values
< autorun >
0 stop location
1 start location, only once
2 start cycle location
< cid >
network parameters, refer to AT+CGSOCKCONT.
Not required, the default value is 1.
< language >
accept language. Refer to Google standard: en_GB, zh_CN and so on.
Not required, the default value is en_GB
< time_between_fix >
Time interval of fix(second)range: 1 second 24 hours.
Not required, the default value is 1 second.
< charset >
charset for URC(not include the Date and Time). ASCII, UTF-8 and so on.
< latitude >
Latitude of current position in degrees.
< longitude >
Longitude of current position in degrees.
< altitude >
Altitude of the fix. Unit is meters (not required).
< accuracy >
The horizontal accuracy of the fix, in meters at a 95% confidence level. This is required unless the
request specified a valid location object, i.e. a request for a reverse-genocide of a known
position(not required)
< altitude_accuracy >
The accuracy of the altitude, in meters(not required)
< street_num >
The building's street number(not required)
< street >
Street name(not required)
SIM5320_ATC_V2.02
514
7/28/2014
SIM5320_ATC_V2.02
515
7/28/2014
can refer the Set DNS maximum timeout value in TCPIP Application Note for WCDMA
Solution.
Examples
AT+CASSISTLOC=?
+ CASSISTLOC: (0-2) , (1-16),(language),(1-24*60*60)
OK
AT+CASSISTLOC=1,2,"zh_CN"
OK
+CASSISTLOC:UTF-8,33312E32323137363537,3132312E33353532343739,,3734322E30,,,E58D
8FE5928CE8B7AF,,E4B88AE6B5B7E5B882,,E4B88AE6B5B7E5B882,E4B8ADE59BBD,434E, ,15
0612,093747
+CASSISTLOC: 0
AT+CASSISTLOC=2,1,"en_GB",2
OK
+CASSISTLOC:,,,,,,,,,,,,,,,
+CASSISTLOC:UTF-8,33312E32323136363439,3132312E33353532353934,,3734322E30,,,58696
56865205264,,5368616E67686169,,5368616E67686169,4368696E61,434E, ,150612,093747
+CASSISTLOC:UTF-8,33312E32323136363439,3132312E33353532353934,,3734322E30,,,58696
56865205264,,5368616E67686169,,5368616E67686169,4368696E61,434E, ,150612,093747
AT+CASSISTLOC=0
OK
+CASSISTLOC: 0
AT+CASSISTLOC=0
+CASSISTLOC: 6
ERROR
References
Vendor
Syntax
Test Command
SIM5320_ATC_V2.02
Responses
516
7/28/2014
AT+CASSISTLOCFORMA
T=?
+CASSISTLOCFORMAT: (0-2)
Read Command
AT+CASSISTLOCFORMA
T?
Responses
+CASSISTLOCFORMAT: <mode>
OK
Write Command
AT+CASSISTLOCFORMA
T=<mode>
Responses
OK
OK
ERROR
Defined values
<mode>
0 report detail address
1 not report detail address
2 only report latitude, longitude, data and time
Examples
AT+CASSISTLOCFORMAT=?
+CASSISTLOCFORMAT: (0-2)
OK
AT+CASSISTLOCFORMAT?
+ CASSISTLOCFORMAT: 0
OK
AT+ CASSISTLOCFORMAT=1
OK
NOTE:
1. When AT+CASSISTLOCFORMAT=0, the report location information is as follow:
+CASSISTLOC:UTF-8,33312E32323136363439,3132312E33353532353934,,3734322E30,,,58696
56865205264,,5368616E67686169,,5368616E67686169,4368696E61,434E, ,150612,093747
2.When AT+CASSISTLOCFORMAT=1, the report location information is as follow:
+CASSISTLOC:31.2224168,121.353584,,1029.0,,050912,064437
3. When AT+CASSISTLOCFORMAT=1, and if the charset returned by the server is not
supported, the report location information is the same as AT+CASSISTLOCFORMAT=0.
4. When AT+CASSISTLOCFORMAT =2, the report location information is as follow:
+CASSISTLOC: 31.222163,121.353461,291112,060037
5. When AT+CASSISTLOCFORMAT=0 or 1, it will access http://www.google.com/loc/json to
request the location information; But when AT+ CASSISTLOCFORMAT=2, it will access
SIM5320_ATC_V2.02
517
7/28/2014
17.22.3 AT+CASSISTLOCTRYTIMES
Description
This command is used to set the max number to try connection when the http connects if failed.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CASSISTLOCTRYTIM
ES=?
Responses
+CASSISTLOCTRYTIMES: (2-10),(5-60*60)
OK
Read Command
AT+CASSISTLOCTRYTIM
ES?
Execution Command
AT+CASSISTLOCTRYTIM
ES=<num>[, <time>]
Responses
+CASSISTLOCTRYTIMES: <num>,<time>
OK
Responses
OK
ERROR
Defined values
< num >
the number to retry when error occurred
< time >
The time between tries. The unit is second, range is 5 - 60*60.
Examples
AT+CASSISTLOCTRYTIMES=?
+CASSISTLOCTRYTIMES: (2-10),(5-60*60)
OK
AT+CASSISTLOCTRYTIMES?
+CASSISTLOCTRYTIMES: 3,5
OK
AT+CASSISTLOCTRYTIMES=3,10
OK
SIM5320_ATC_V2.02
518
7/28/2014
References
Vendor
Syntax
Test Command
AT+CASSISTLOCMODE=
?
Responses
+CASSISTLOCMODE: (0, 1)
Read Command
AT+CASSISTLOCMODE?
Responses
+CASSISTLOCMODE: <mode>
OK
Write Command
AT+CASSISTLOCMODE=
<mode>
Responses
OK
OK
ERROR
Defined values
<mode>
0 using single cell
1 using more cell
NOTE:
When AT+CASSISTLOCFORMAT=2, the AT+CASSISTLOCMODE only support <mode>=0.
Examples
AT+CASSISTLOCMODE=?
+CASSISTLOCMODE: (0,1)
OK
AT+CASSISTLOCMODE?
+CASSISTLOCMODE: 1
OK
AT+CASSISTLOCMODE=1
OK
SIM5320_ATC_V2.02
519
7/28/2014
Description
This command is used to play a wav audio file. It can play wav file during a call or not.
NOTE Wav file format require mono channel, 8kHz sampling frequency, 16bit sampling size,
128kbps.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCMXPLAYWAV=?
Responses
+CCMXPLAYWAV: (list of supported <play_path>s),(list of
supported <repeat>s)
OK
Write Command
AT+CCMXPLAYWAV=
<file_name>,<play_path>[,<
repeat>]
Responses
+WAVSTATE: wav play
OK
Report URC automatically after playing end
+WAVSTATE: wav play stop
ERROR
Defined values
<file_name>
The name of wav audio file.
<play_path>
1 remote path
2 local path
<repeat>
This parameter is reserved.
Examples
AT+CCMXPLAYWAV=test.wav,2
+WAVSTATE: wav play
SIM5320_ATC_V2.02
520
7/28/2014
OK
18.2
Description
This command is used to stop playing wav audio file. Execute this command during wav audio
playing.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCMXSTOPWAV=?
Responses
OK
Execution Command
AT+CCMXSTOPWAV
Responses
[+WAVSTATE: wav play stop]
OK
Examples
AT+CCMXSTOPWAV
+WAVSTATE: wav play stop
OK
18.3
AT+CCMXWAVSTATE
Description
This command is used to get wav play state.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CCMXWAVSTATE=?
Responses
OK
Read Command
AT+CCMXWAVSTATE?
Responses
+CCMXWAVSTATE: <state>
OK
ERROR
SIM5320_ATC_V2.02
521
7/28/2014
Defined values
<state>
0
1
Examples
AT+CCMXWAVSTATE?
+CCMXWAVSTATE: 0
OK
Description
This command is used to start running a LUA script file. The script file must exist in c:\ in the
module EFS. This command shouldnt be used by sio LIB in LUA script files.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSCRIPTSTART=?
Responses
Write Command
AT+CSCRIPTSTART="<fil
ename>"[,"<reportluaerror>"
]
Responses
OK
+CSCRIPT: 0
ERROR
OK
+CSCRIPT: <err>
Defined values
<filename>
The script file name.
SIM5320_ATC_V2.02
522
7/28/2014
<reportluaerror>
Whether report the LUA compiling error or running error to TE.
0 Not report.
1 Report.
2 Report, and the script run with debug function supporting.
<err>
The error code of running script.
Examples
AT+CSCRIPTSTART=mytest.lua
OK
+CSCRIPT: 0
AT+CSCRIPTSTART=?
+CSCRIPTSTART: "FILENAME"[,(0-2)]
OK
19.2
Description
This command is used to stop the current running LUA script. This command shouldnt be used by
sio LIB in LUA script files.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSCRIPTSTOP=?
Responses
OK
Read Command
Responses
AT+CSCRIPTSTOP?
Execute Command
AT+CSCRIPTSTOP
Responses
OK
ERROR
Defined values
<filename>
SIM5320_ATC_V2.02
523
7/28/2014
Examples
AT+CSCRIPTSTOP?
+CSCRIPTSTOP: mytest.lua
OK
AT+CSCRIPTSTOP=?
OK
AT+CSCRIPTSTOP
OK
19.3
Description
This command is used to compile a LUA script file. The script file must exist in c:\ in the module
EFS. This command shouldnt be used by sio LIB in LUA script files. If the AT+CSCRIPTPASS is
set, the compiled file will be encrypted.
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+CSCRIPTCL=?
Responses
+CSCRIPTCL: <filename>,<out_filename>
OK
Write Command
AT+CSCRIPTCL="<filenam
e>"[,"<out_filename>"]
Responses
OK
+CSCRIPT: 0
ERROR
OK
+CSCRIPT: <err>
Defined values
<filename>
The script file name.
<out_filename>
The output script file name. If this parameter is empty, the default <out_filename> will be the file
name of <filename> with the file extension changed to .out.
<err>
The error code of running script.
SIM5320_ATC_V2.02
524
7/28/2014
Examples
AT+CSCRIPTCL=mytest.lua
OK
+CSCRIPT: 0
AT+CSCRIPTCL=?
+CSCRIPTCL: FILENAME,OUT_FILENAME
OK
19.4
AT+CSCRIPTPASS
Description
This command is used to set the password which will be used for AT+CSCRIPTCL encryption.
SIM PIN
NO
References
Vendor
Syntax
Write Command
AT+CSCRIPTPASS="<old_
password>","<new_passwor
d>"
Responses
OK
ERROR
Defined values
<old_password>
The old password. The original password for AT+CSCRIPTCL is empty.
<new_password>
The new password.
Examples
AT+CSCRIPTPASS=,12345678
OK
AT+CSCRIPTPASS=12345678,123456
OK
19.5
AT+CSCRIPTCMD
Description
This command is used to send data to the running LUA script
SIM PIN
References
SIM5320_ATC_V2.02
525
7/28/2014
NO
Vendor
Syntax
Test Command
AT+CSCRIPTCMD=?
Responses
+CSCRIPTCMD: CMD1[,CMD2]
OK
Execute Command
AT+CSCRIPTCMD=<cmd1
>[,<cmd2>]
Responses
OK
ERROR
Defined values
<cmd1>
An integer value to be sent as the second parameter of EVENT 31 to running LUA script.
<cmd2>
An integer value to be sent as the third parameter of EVENT 31 to running LUA script.
Examples
AT+CSCRIPTCMD=?
+CSCRIPTCMD: CMD1[,CMD2]
OK
AT+CSCRIPTCMD=23,98
OK
19.6
AT+PRINTDIR
Description
This command is used to set the value of LUA printdir function
SIM PIN
NO
References
Vendor
Syntax
Test Command
AT+PRINTDIR=?
Responses
+PRINTDIR: (0,1)
OK
Read Command
AT+PRINTDIR?
Responses
+PRINTDIR: <mode>
OK
Write Command
Responses
SIM5320_ATC_V2.02
526
7/28/2014
AT+PRINTDIR=<mode>
OK
ERROR
Defined values
<mode>
The value of printdir:
0 print function is disabled.
1 print function is enabled.
Examples
AT+PRINTDIR=0
OK
AT+PRINTDIR?
+PRINTDIR:0
OK
AT+PRINTDIR=?
+PRINTDIR:(0-1)
OK
19.7
AT+CSCRIPTAUTO
Description
This command is used to enable or disable LUA scripts run automatically.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CSCRIPTAUTO=?
Read Command
AT+CSCRIPTAUTO?
Write Command
AT+CSCRIPTAUTO=<state
>,[<max_left_times>]
Responses
OK
Responses
+CSCRIPTAUTO: <state>,<left_times>
OK
Responses
OK
ERROR
Defined values
<state>
SIM5320_ATC_V2.02
527
7/28/2014
Examples
AT+CSCRIPTAUTO=1
OK
AT+CSCRIPTAUTO?
+CSCRIPTAUTO: 1,UNLIMITED
OK
AT+CSCRIPTAUTO=?
OK
19.8
AT+CPWRONCHK
Description
This command is used to enable or disable module powering on check function. By default, the
function is enabled. Each time of powering on, the module starts a check timer of two minutes, if
the timer is expired, it will regard the module works correctly. If the module is reset or powered off
or it crashes before two minutes, the timer cannot expire, then this time of powering on shall be
regards abnormal. If the module continuously works incorrectly(each time it cannot work for over
two minutes) for twenty times, it will stop the LUA and EBDAT autorun feature.
SIM PIN
YES
References
Vendor
Syntax
Test Command
AT+CPWRONCHK=?
Read Command
AT+CPWRONCHK?
AT+CPWRONCHK=<state
Responses
OK
Responses
+CPWRONCHK:
<state>,<check_interval>,<thr_times>,<current_failure_times>
OK
Responses
OK
>[,<check_interval>[,<th
ERROR
Write Command
SIM5320_ATC_V2.02
528
7/28/2014
r_times>]]
Defined values
<state>
Enable or disable the checking function:
0 disalbe checking.
1 enable checking.
<check_interval>
The checking timer checking interval(minutes).
<thr_times>
The threshold times that the module will be regards as it cannot power on correctly.
<current_failure_times>
The times that the module cannot startup correctly.
Examples
AT+CPWRONCHK=1
OK
AT+CPWRONCHK?
+CPWRONCHK: 1,2,20,1
OK
AT+CPWRONCHK=?
OK
19.9
SIM5320_ATC_V2.02
Description
Success
No resource
Failed to open the script file
Failed to run the script file
Failed to compile the script file
Virtual machine is busy
529
7/28/2014
20 AT Commands Samples
20.1
SMS commands
Comments
Set SMS system into text mode, as opposed to
PDU mode.
AT+CPMS="SM","SM","SM"
+CPMS: 0,40,0,40,0,40
OK
AT+CNMI=2,1
OK
AT+CMGS=+861358888xxxx
>This is a test <Ctrl+Z>
+CMGS:34
OK
+CMTI:SM,1
AT+CMGR=1
+CMGR: REC UNREAD,
+86135888xxxx, ,08/01/30,
20:40:31+00
This is a test
OK
AT+CMGR=1
+CMGR: REC READ,
+861358888xxxx,,08/01/30 ,
20:40:31+00
This is a test
OK
AT+CMGS=+861358888xxxx
>Test again<Ctrl+Z>
+CMGS:35
OK
+CMTI:SM,2
AT+CMGL=ALL
+CMGL: 1, REC READ, +861358888xxxx, ,
08/01/30,20:40:31+00
This is a test
SIM5320_ATC_V2.02
530
7/28/2014
AT+CMGL=ALL
+CMGL: 2,REC READ,+861358888xxxx,
08/01/30,20:45:12+00
Test again
OK
20.2
The Module supports to transmit files from the Module to PC host and from PC host to the Module
over Xmodem protocol. During the process of transmission, it can not emit any AT commands to do other
things.
20.2.1
SIM5320_ATC_V2.02
531
7/28/2014
Figure 17-2
SIM5320_ATC_V2.02
532
7/28/2014
Figure 17-3
Figure 17-4
SIM5320_ATC_V2.02
533
7/28/2014
In Receive Filename dialog box, input file name in Filename text box. And then click OK
button to start transmitting file. [Figure 17-5]
Figure 17-7
SIM5320_ATC_V2.02
Cancel transmission
534
7/28/2014
After transmission successfully, the receiving dialog box is closed and it can emit AT commands in
HyperTerminal. [Figure 17-8]
Figure 17-8
20.2.2
Transmission successfully
SIM5320_ATC_V2.02
535
7/28/2014
Figure 17-9
. Set storage place directly with parameter <dir_type> of AT+CTXFILE is not 0 and not omitted;
this method is a shortcut method for limited directories.
Step2. Open Send File dialog box
After set file name and storage place successfully, use Transfer>Send File menu to open Send
File dialog box in HyperTerminal. [Figure 17-10]
Figure 17-10
SIM5320_ATC_V2.02
536
7/28/2014
In Send File dialog box, select the file to be transmitted in text box, and select the transmitting
protocol in combo box. Then click Send button to start transmission. [Figure 17-11]
NOTE: The transmitting protocol must be Xmodem protocol.
Figure 17-11
SIM5320_ATC_V2.02
537
7/28/2014
Figure 17-12
20.3
MMS commands
Comments
Set the MMS center URL without http://
AT+CMMSPROTO=1,10.0.0.172,80
OK
AT+CMMSSENDCFG=6,3,0,0,2,4
OK
Send MMS
Comments
AT+CGSOCKCONT=1,IP,cmwap
OK
AT+CMMSEDIT=1
OK
AT+CMMSDOWN=TITLE,10
>Test title
OK
AT+CMMSDOWN=FILE,3, 1.jpg
OK
AT+CMMSDOWN=TEXT,120,t1.txt
>My test content.(file content, 120 bytes)
OK
SIM5320_ATC_V2.02
538
7/28/2014
OK
Save the MMS to mail box of index 1.
AT+CMMSSAVE=1
+CMMSSAVE: 1
OK
Send
the
MMS
recipient 13318882322
AT+CMMSSEND=13318882322
OK
including
new
+CMMSSEND:0
Receive MMS
Description
+WAP_PUSH_MMS:
"15001844675","RROpJGJVyjeA","http://211.136
.112.84/RROpJGJVyjeA"
,"09/03/17,17:14:41+32",0,13338
AT+CGSOCKCONT=1,IP,cmwap
OK
AT+CMMSEDIT=0
OK
AT+CMMSRECV="http://211.136.112.84/RROpJ
GJVyjeA"
OK
+CMMSRECV:0
AT+CMMSSAVE=0
+CMMSSAVE: 0
OK
SIM5320_ATC_V2.02
539
7/28/2014
21 Appendixes
21.1
Description
OK
CONNECT
Link established
RING
Ring detected
NO CARRIER
ERROR
NO DIALTONE
BUSY
NO ANSWER
21.2
Number
CS internal cause
0
21
25
27
29
34
35
36
38
29
45
46
47
48
100
101
102
103
104
105
106
SIM5320_ATC_V2.02
Response string
Phone is offline
No service available
Network release, no reason given
Received incoming call
Client ended call
UIM not present
Access attempt already in progress
Access failure, unknown source
Concur service not supported by network
No response received from network
GPS call ended for user call
SMS call ended for user call
Data call ended for emergency call
Rejected during redirect or handoff
Lower-layer ended call
Call origination request failed
Client rejected incoming call
Client rejected setup indication
Network ended call
No funds available
No service available
540
7/28/2014
108
109
301
302
303
304
305
CS network cause
1
3
6
8
16
17
18
19
21
22
26
27
28
29
30
31
34
38
41
42
43
44
47
49
50
55
57
58
63
65
68
69
70
79
Unassigned/unallocated number
No route to destination
Channel unacceptable
Operator determined barring
Normal call clearing
User busy
No user responding
User alerting, no answer
Call rejected
Number changed
Non selected user clearing
Destination out of order
Invalid/incomplete number
Facility rejected
Response to Status Enquiry
Normal, unspecified
No circuit/channel available
Network out of order
Temporary failure
Switching equipment congestion
Access information discarded
Requested circuit/channel not available
Resources unavailable, unspecified
Quality of service unavailable
Requested facility not subscribed
Incoming calls barred within the CUG
Bearer capability not authorized
Bearer capability not available
Service/option not available
Bearer service not implemented
ACM >= ACMmax
Requested facility not implemented
Only RDI bearer is available
Service/option not implemented
SIM5320_ATC_V2.02
541
7/28/2014
81
87
88
91
95
96
97
98
99
100
101
102
111
117
CS network reject
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
20
21
22
23
32
33
34
38
40
95
96
SIM5320_ATC_V2.02
542
7/28/2014
97
98
99
101
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
PS network cause
25
SIM5320_ATC_V2.02
543
7/28/2014
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
81
95
96
97
98
99
100
101
111
21.3
Insufficient resources
Missing or unknown APN
Unknown PDP address or PDP type
User Aauthentication failed
Activation rejected by GGSN
Activation rejected, unspecified
Service option not supported
Requested service option not subscribed
Service option temporarily out of order
NSAPI already used (not sent)
Regular deactivation
QoS not accepted
Network failure
Reactivation required
Feature not supported
Semantic error in the TFT operation
Syntactical error in the TFT operation
Unknown PDP context
PDP context without TFT already activated
Semantic errors in packet filter
Syntactical errors in packet filter
Invalid transaction identifier
Semantically incorrect message
Invalid mandatory information
Message non-existent/not implemented
Message type not compatible with state
IE non-existent/not implemented
Conditional IE error
Message not compatible with state
Protocol error, unspecified
Description
This result code is similar to the regular ERROR result code. The format of <err> can be either
numeric or verbose string, by setting AT+CMEE command.
SIM PIN
NO
References
3GPP TS 27.007
Syntax
SIM5320_ATC_V2.02
544
7/28/2014
Defined values
<err>
Values (numeric format followed by verbose format):
0
phone failure
1
no connection to phone
2
phone adaptor link reserved
3
operation not allowed
4
operation not supported
5
PH-SIM PIN required
6
PH-FSIM PIN required
7
PH-FSIM PUK required
10
SIM not inserted
11
SIM PIN required
12
SIM PUK required
13
SIM failure
14
SIM busy
15
SIM wrong
16
incorrect password
17
SIM PIN2 required
18
SIM PUK2 required
20
memory full
21
invalid index
22
not found
23
memory failure
24
text string too long
25
invalid characters in text string
26
dial string too long
27
invalid characters in dial string
30
no network service
31
network timeout
32
network not allowed - emergency calls only
40
network personalization PIN required
41
network personalization PUK required
42
network subset personalization PIN required
43
network subset personalization PUK required
44
service provider personalization PIN required
45
service provider personalization PUK required
46
corporate personalization PIN required
47
corporate personalization PUK required
100
Unknown
SIM5320_ATC_V2.02
545
7/28/2014
103
Illegal MESSAGE
106
Illegal ME
107
GPRS services not allowed
111
PLMN not allowed
112
Location area not allowed
113
Roaming not allowed in this location area
132
service option not supported
133
requested service option not subscribed
134
service option temporarily out of order
148
unspecified GPRS error
149
PDP authentication failure
150
invalid mobile class
257
network rejected request
258
retry operation
259
invalid deflected to number
260
deflected to own number
261
unknown subscriber
262
service not available
263
unknown class specified
264
unknown network message
273
minimum TFTS per PDP address violated
274
TFT precedence index not unique
275
invalid parameter combination
CME ERROR codes of MMS:
170
Unknown error for mms
171
MMS task is busy now
172
The mms data is over size
173
The operation is overtime
174
There is no mms receiver
175
The storage for address is full
176
Not find the address
177
Invalid parameter
178
Failed to read mss
179
There is not a mms push message
180
Memory error
181
Invalid file format
182
The mms storage is full
183
The box is empty
184
Failed to save mms
185
Its busy editing mms now
186
Its not allowed to edit now
187
No content in the buffer
188
Failed to receive mms
SIM5320_ATC_V2.02
546
7/28/2014
189
Invalid mms pdu
190
Network error
191
Failed to read file
192
None
CME ERROR codes of FTP:
201
Unknown error for FTP
202
FTP task is busy
203
Failed to resolve server address
204
FTP timeout
205
Failed to read file
206
Failed to write file
207
Its not allowed in current state
208
Failed to login
209
Failed to logout
210
Failed to transfer data
211
FTP command rejected by server
212
Memory error
213
Invalid parameter
214
Network error
Examples
AT+CPIN="1234","1234"
+CME ERROR: incorrect password
21.4
Description
Final result code +CMS ERROR: <err> indicates an error related to mobile equipment or network.
The operation is similar to ERROR result code. None of the following commands in the same
command line is executed. Neither ERROR nor OK result code shall be returned. ERROR is
returned normally when error is related to syntax or invalid parameters. The format of <err> can be
either numeric or verbose. This is set with command AT+CMEE.
SIM PIN
---
References
3GPP TS 27.005
Syntax
+CMS ERROR: <err>
Defined values
<err>
SIM5320_ATC_V2.02
547
7/28/2014
300
301
302
303
304
305
310
311
312
313
314
315
316
317
318
320
321
322
330
331
332
340
341
342
500
ME failure
SMS service of ME reserved
Operation not allowed
Operation not supported
Invalid PDU mode parameter
Invalid text mode parameter
SIM not inserted
SIM PIN required
PH-SIM PIN required
SIM failure
SIM busy
SIM wrong
SIM PUK required
SIM PIN2 required
SIM PUK2 required
Memory failure
Invalid memory index
Memory full
SMSC address unknown
no network service
Network timeout
NO +CNMA ACK EXPECTED
Buffer overflow
SMS size more than expected
unknown error
Examples
AT+CMGS=02112345678
+CMS ERROR: 304
SIM5320_ATC_V2.02
548
7/28/2014
Contact us
Shanghai SIMCom Wireless Solutions Ltd.
Add: Building A, SIM Technology Building, No.633, Jinzhong Road, Changning District
200335
Tel: +86 21 3252 3300
Fax: +86 21 3252 3301
URL: http:/www.sim.com/wm/
SIM5320_ATC_V2.02
549
7/28/2014