SlideShare a Scribd company logo
SIM5218_Serial_AT
Command Manual_V1.21
SIM5218 Serial AT Command Manual

Document Title:

SIM5218 AT Command Manual

Version:

1.21

Date:

2011-01-13

Status:

Release

Document ID:

SIM5218_Serial_AT Command_V1.21

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 customer’s possession.
Furthermore, system validation of this product designed by SIMCom within a larger electronic system
remains the responsibility of the customer or the customer’s 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.

Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2011

SIM5218_Serial _AT Command Manual_V1.21

1

1/13/2011
SIM5218 Serial AT Command Manual

Version History
Version

Chapter

V1.00

New Version

V1.01

17.1
17.2
17.3
17.4
17.5

AT+CGPS
AT+CGPSINFO
AT+CGPSCOLD
AT+CGPSHOT
AT+CGPSSWITCH

Add this command
Add this command
Add this command
Add this command
Add this command

V1.02

9.3
9.9
9.14

AT+CLCK
AT+CCFC
AT+CSSN

Modify the description of <fac>
Modify the description of <type>
Modify descriptions of <code1> and <code2>

V1.03

12.17 AT+CMICAMP1

Add this command

V1.04

4.27 AT+CSDVC
5.7
AT+VPLOOP
5.8 AT+VPSM
9.24 AT+CTZU
9.25 AT+CTZR

Add the parameter <save>
Add this command
Add this command
Modify the description of <onoff>
Modify the description of <onoff> and Add the description
of URC(+CTZV)
Add this command
Add this command
Add this command
Add this command
Modify the description of <time>
Modify the command
Modify the command
Modify the description of command
Modify the description of <loca>
Add this command
Add this command
Add this command

9.26
9.27
9.28
9.29
10.12
14.1
14.8
14.9
14.10
19.17
19.18
19.19

AT+CCINFO
AT+CSCHN
AT+CSRP
AT+CRUS
AT+CCLK
AT+FSCD
AT+FSMEM
AT+FSFMT
AT+FSLOCA
AT+CIPOPEN
AT+CIPSEND
AT+CIPCLOSE

Comments

V1.05

10.13 AT+CRFEN
12.18 AT+CVLVL
12.19 AT+SIDET

Add this command
Add this command
Add this command

V1.06

12.20 AT+CRIRS

Add this command

V1.07

12.21 AT+CSUART

Add this command

V1.08

4.11
4.12
5.8
9.9
9.11

Modify the description of this command
Modify the description of this command
Modify the description of this command
<classX> not support short message service
Add execution command format

ATH
AT+CHUP
AT+VPSM
AT+CCFC
AT+CHLD

SIM5218_Serial _AT Command Manual_V1.21

2

1/13/2011
SIM5218 Serial AT Command Manual

9.22
9.23
11.4
17.1
17.2
17.6
17.7
17.8

AT+CPSI
AT+CNSMOD
AT+CSIMSEL
AT+CGPS
AT+CGPSINFO
AT+CGPSURL
AT+CGPSSSL
AT+CGPSAUTO
AT&D

Modify the command
Support HSDPA/HSUPA
Add this command
Modify the command
Modify the command
Add this command
Add this command
Add this command
Not support this command and delete

V1.09

4.27
4.29
7.10
10.14
10.15
12.22
12.23
17.1
17.7
20.1
20.2
20.3

AT+CSDVC
AT+CPCM
AT+CCAMTP
AT+CRESET
AT+SIMEI
AT+CDCDMD
AT+CDCDVL
AT+CGPS
AT+CGPSSSL
AT+STIN
AT+STGI
AT+STGR

Modify the description of this command
Add this command
Modify the description of this command
Add this command
Add this command
Add this command
Add this command
Modify the command
Modify the description of this command
Add this command
Add this command
Add this command

V1.10

4.18
4.30
4.31
4.32
9.18
10.16
10.17
13.6

AT+VTS
AT+CPCMFMT
AT+CPCMREG
AT+VTD
AT+CNMP
AT+CSIMLOCK
AT+DSWITCH
AT+CEMNLIST

Modify the command
Add this command
Add this command
Add this command
Modify the command
Add this command
Add this command
Add this command

V1.11

5.9
10.7
10.15
12.24
15.1

AT+VPQLTY
AT+AUTOCSQ
AT+SIMEI
AT+CCGSWT
AT+CTXFILE

Add this command
Add the parameter <mode>
Modify the description of <imei>
Add this command
Add the parameter <protocol>

V1.12

3.1
3.8
3.11
4.6
4.8
4.9
4.11
5.6

ATI
AT+GCAP
AT+CFGRI
ATD<str>
+++
ATO
ATH
AT+VPRECORD

Add the description of <ES>
Add the description of <ES>
Add this command
Modify the description of <str>
Modify the description of this command
Modify the description of this command
Modify the description of this command
Modify the command

SIM5218_Serial _AT Command Manual_V1.21

3

1/13/2011
SIM5218 Serial AT Command Manual

5.9
6.10
6.11
6.13
6.14
6.15
6.18
6.20
7.16
9.1
9.2
9.22
9.29
9.30
9.31
10.1
10.4
11.5
11.6
12.7
12.16
12.25
13.5
16.4
16.5
16.8
18.1
18.2
18.4
18.12
19.1
19.6
19.8
19.17
19.20

AT+VPQLTY
AT+CMGL
AT+CMGR
AT+CMSS
AT+CMGW
AT+CMGD
AT+CMGMT
AT+CMGWO
AT+CCAMMD
AT+CREG
AT+COPS
AT+CPSI
AT+CRUS
AT+CPLMNWLIST
AT+CPASSMGR
+CME ERROR
AT+CFUN
AT+SPIC
AT+CSPN
AT+CVALARM
AT+CADC
AT+CBC
AT+CPBW
AT+IFC
AT&C
AT&D
AT+CGDCONT
AT+CGQREQ
AT+CGQMIN
AT+CGREG
AT+CGSOCKCONT
AT+TCPCONNECT
AT+UDPSEND
AT+CIPOPEN
AT+CDNSGIP

Modify the command
Modify the description of <index>
Modify the description of <index>
Modify the description of <index>
Modify the description of <index>
Modify the description of <index>
Modify the description of <index>
Modify the description of <index>
Add this command
Modify the command
Modify the description of <mode>
Modify the command
Modify the command
Add the command
Add the command
Modify the description of <err>
Modify the description of this command
Add the command
Add the command
Modify the command
Modify the command
Add the command
Modify the description of <number>
Modify the command
Modify the command
Add this command
Modify the description of this command
Modify the description of this command
Modify the description of this command
Modify the command
Modify the description of this command
Modify the description of <server_IP>
Modify the description of <IP_address>
Modify the description of <serverIP>
Add this command

V1.13

14.8

AT+FSMEM

Modify the command

V1.14

4.1
4.33
5.3
9.5
9.15
9.30

AT+CSTA
AT+CSSN
AT+VPEND
AT+CLIP
AT+CLCC
AT+CPLMNWLIST

Modify the command
Add this command
Modify the description of this command
Modify this command
Modify this command
Remove this command

SIM5218_Serial _AT Command Manual_V1.21

4

1/13/2011
SIM5218 Serial AT Command Manual

9.31
10.18
10.19
10.20
13.2
13.5
18.1
19.2
V1.15

AT+CPASSMGR
AT+CNVW
AT+CNVR
AT+CDELTA
AT+CPBS
AT+CPBW
AT+CGDCONT
AT+CGSOCKCONT

6.23 AT+CMGSEX
6.24 AT+CMGENREF
7.17 AT+CCAMCHL
9.7 AT+COLP
9.15 AT+CLCC
9.30 AT+CPLMNWLIST
9.31 AT+CPASSMGR
9.32 AT+CNSVSQ
9.33 AT+CNSVS
9.34 AT+CNSVN
9.35 AT+CNSVUS
9.36 AT+CNSVUN
10.20 AT+CDELTA
19.22 AT+CIPMODE
21 Internet Service Command
21.1.1 AT+SMTPSRV
21.1.2 AT+SMTPAUTH
21.1.3 AT+SMTPFROM
21.1.4 AT+SMTPRCPT
21.1.5 AT+SMTPSUB
21.1.6 AT+SMTPBODY
21.1.7 AT+SMTPFILE
21.1.8 AT+SMTPSEND
21.1.9 AT+SMTPSTOP
21.2.1 AT+POP3SRV
21.2.2 AT+POP3IN
21.2.3 AT+POP3NUM
21.2.4 AT+POP3LIST
21.2.5 AT+POP3HDR
21.2.6 AT+POP3GET
21.2.7 AT+POP3DEL
21.2.8 AT+POP3OUT
21.2.9 AT+POP3STOP
21.2.10 AT+POP3READ

SIM5218_Serial _AT Command Manual_V1.21

Remove this command
Add this command
Add this command
Add this command
Modify this command
Modify this command
Modify the description of this command
Modify the description of this command
Add the command
Add the command
Add the command
Modify the description of this command
Modify the defined value of <type>
Add the command
Add the command
Add this command
Add this command
Add this command
Add this command
Add this command
Modify the defined value of <delta_package>
Add this command
Add internet service command into this document
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command

5

1/13/2011
SIM5218 Serial AT Command Manual

21.3.1 AT+CFTPPORT
21.3.2 AT+CFTPMODE
21.3.3 AT+CFTPTYPE
21.3.4 AT+CFTPSERV
21.3.5 AT+CFTPUN
21.3.6 AT+CFTPPW
21.3.7 AT+CFTPGETFILE
21.3.8 AT+CFTPPUTFILE
21.3.9 AT+CFTPGET
21.3.10 AT+CFTPPUT
21.4.1 AT+CHTTPACT
21.5.1 AT+CHTTPSSTART
21.5.2 AT+CHTTPSSTOP
21.5.3 AT+CHTTPSOPSE
21.5.4 AT+CHTTPSCLSE
21.5.5 AT+CHTTPSSEND
21.5.6 AT+CHTTPSRECV
21.6.1 AT+CFTPSSTART
21.6.2 AT+CFTPSSTOP
21.6.3 AT+CFTPSLOGIN
21.6.4 AT+CFTPSLOGOUT
21.6.5 AT+CFTPSMKD
21.6.6 AT+CFTPSRMD
21.6.7 AT+CFTPSDEL
21.6.8 AT+CFTPSCWD
21.6.9 AT+CFTPSPWD
21.6.10 AT+CFTPSTYPE
21.6.11 AT+CFTPSLIST
21.6.12 AT+CFTPSGETFILE
21.6.13 AT+CFTPSPUTFILE
21.6.14 AT+CFTPSGET
21.6.15 AT+CFTPSPUT
21.6.16 AT+CFTPSSINGLEIP
22 MMS command
22.1 AT+CMMSCURL
22.2 AT+CMMSPROTO
22.3 AT+CMMSSENDCFG
22.4 AT+CMMSEDIT
22.5 AT+CMMSDOWN
22.6 AT+CMMSDELFILE
22.7 AT+CMMSSEND
22.8 AT+CMMSRECP
22.9 AT+CMMSCC

SIM5218_Serial _AT Command Manual_V1.21

Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add MMS command into this document
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command

6

1/13/2011
SIM5218 Serial AT Command Manual

22.10 AT+CMMSBCC
22.11 AT+CMMSDELRECP
22.12 AT+CMMSDELCC
22.13 AT+CMMSDELBCC
22.14 AT+CMMSRECV
22.15 AT+CMMSVIEW
22.16 AT+CMMSREAD
22.17 AT+CMMSSNATCH
22.18 AT+CMMSSAVE
22.19 AT+CMMSDELETE
22.20 AT+CMMSSYSSET
22.21 AT+CMMSINCLEN
23 CSCRIPT Command
23.1 AT+CSCRIPTSTART
23.2 AT+CSCRIPTSTOP
23.3 AT+CSCRIPTCL
23.4 AT+CSCRIPTPASS
23.5 AT+CSCRIPTCMD

Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add this command
Add CSCRIPT command into this document
Add this command
Add this command
Add this command
Add this command
Add this command

V1.16

8.9 AT+CECM
8.10 AT+CNSM
12.26 AT+CDTRISRMD
12.27 AT+CDTRISRS

Add this command
Add this command
Add this command
Add this command

V1.17

3.1 ATI
3.4 AT+CGMR
4.12 AT+CHUP
6.23 AT+CMGSEX
8.9 AT+CECM
9.2 AT+COPS
10.20 AT+CDELTA
12.21 AT+CSUART
12.26 AT+CDTRISRMD
16.9 AT&S
19.16 AT+CIPCCFG
21.6.5 AT+CFTPSMKD
21.6.11 AT+CFTPSLIST
21.6.12 AT+CFTPSGETFILE
21.6.13 AT+CFTPSPUTFILE
21.6.14 AT+CFTPSGET
21.6.15 AT+CFTPSPUT
21.6.17 FTPS codes
22.18 AT+CMMSSAVE
22.21 AT+CMMSINCLEN

Modify the examples of this command
Modify the examples of this command
Modify description of this command
Modify the note description of this command
Modify the defined values of this command
Modify description of this command
Modify example and note of this command
Modify the syntax of this command.
Modify the syntax of this command.
Add this command
Add the fifth parameter<HeaderType> of this command
Modify description of this command
Modify description of this command
Modify description of this command
Modify the syntax of this command
Modify description of this command
Modify the example of this command
Add description of FTPS codes
Modify the syntax of this command
Modify description of this command

SIM5218_Serial _AT Command Manual_V1.21

7

1/13/2011
SIM5218 Serial AT Command Manual

V1.18

21.6.7 AT+CFTPSDELE
9.30 AT+CPLMNWLIST
9.31 AT+CPASSMGR
21.6 FTPS AT commands
21.6.4 AT+CFTPSLOGOUT
21.5 AT+CMMSDOWN
21.20 AT+CMMSSYSSET

Modify AT+CFTPSDEL to AT+CFTPSDELE
Add SIM PIN and references for this command
Add SIM PIN and references for this command
Add description for FTPS related AT commands
Add SIM PIN and references for this command
Modify the description of this command
Modify the description of this command

V1.19

21.3.11 AT+CFTPLIST
22.20 AT+CMMSSYSSET
9.26 AT+CCINFO
17.2 AT+CGPSINFO

Add this command
Modify the description of this command
Modify the description of this command
Modify the description of this command

V1.20

8.9 AT+CECM
8.10 AT+CNSM
8.11 AT+CECSET
9.30 AT+CPLMNWLIST
9.31 AT+CPASSMGR
19.3 AT+CSOCKAUTH
19.19 AT+CIPCLOSE
21.7.1 AT+CHTPSERV
21.7.2 AT+CHTPUPDATE
22.14 AT+CMMSRECV
23.4 AT+CSCRIPTPASS
16.10 AT&F

Modify description of this command
Modify description of this command
Add this command
Modify the description of this command
Modify the description of this command
Modify the description of this command
Modify the description of this command
Add this command
Add this command
Modify the description of this command
Modify the description of this command
Add this command

V1.21

5.4 AT+VPDTMF
7.16 AT+CCAMMD
8.1 AT+CQCPREC
8.4 AT+CQCPSTOP
8.5 AT+CCMXPLAY
8.6 AT+CCMXPAUSE
8.7 AT+CCMXRESUME
8.8 AT+CCMXSTOP
9.4 AT+CPWD
9.13 AT+CAOC
9.22 AT+CPSI
9.26 AT+CCINFO
9.32 AT+CNSVSQ
9.33 AT+CNSVS
9.34 AT+CNSVN
12.18 AT+CVLVL
15.1 AT+CTXFILE
15.2 AT+CRXFILE

Modify the description of this command
Modify the description of this command
Modify the responses description of this command
Modify the responses description of this command
Modify the responses and description of this command
Modify the responses description of this command
Modify the responses description of this command
Modify the responses description of this command
Modify the defined values<fac> of this command
Modify the responses of write command
Modify the defined values of this command
Modify the defined values of this command
Modify the responses of execution command
Modify the responses of execution command
Modify the responses of execution command
Modify the responses of write command
Modify the responses of test command
Modify the responses of test command

SIM5218_Serial _AT Command Manual_V1.21

8

1/13/2011
SIM5218 Serial AT Command Manual

Contents
1

Introduction ........................................................................................................................................... 19
1.1
Scope............................................................................................................................................. 19
1.2
References ..................................................................................................................................... 19
1.3
Terms and abbreviations................................................................................................................ 19
1.4
Definitions and conventions.......................................................................................................... 20
2 AT Interface Synopsis ........................................................................................................................... 22
2.1
Interface settings ........................................................................................................................... 22
2.2
AT command syntax...................................................................................................................... 22
2.3
Information responses ................................................................................................................... 23
3
General Commands ............................................................................................................................... 24
3.1
ATI Display product identification information ......................................................................... 24
3.2
AT+CGMI Request manufacturer identification ........................................................................ 25
3.3
AT+CGMM Request model identification ................................................................................. 25
3.4
AT+CGMR Request revision identification ............................................................................... 26
3.5
AT+CGSN Request product serial number identification .......................................................... 27
3.6
AT+CSCS Select TE character set ............................................................................................. 27
3.7
AT+CIMI Request international mobile subscriber identity ...................................................... 28
3.8
AT+GCAP Request overall capabilities ..................................................................................... 29
3.9
AT+CATR Configure URC destination interface....................................................................... 30
3.10 A/ Repeat last command ............................................................................................................ 31
3.11 AT+CFGRI Indicate RI when using URC.................................................................................. 31
4
Call Control Commands and Methods .................................................................................................. 33
4.1
AT+CSTA Select type of address ............................................................................................... 33
4.2
AT+CMOD Call mode ............................................................................................................... 34
4.3
ATD Dial command ................................................................................................................... 35
4.4
ATD><mem><n> Originate call from specified memory.......................................................... 36
4.5
ATD><n> Originate call from active memory (1) ..................................................................... 36
4.6
ATD><str> Originate call from active memory (2) ................................................................... 37
4.7
ATA Call answer......................................................................................................................... 38
4.8
+++ Switch from data mode to command mode ........................................................................ 39
4.9
ATO Switch from command mode to data mode ....................................................................... 39
4.10 AT+CVHU Voice hang up control ............................................................................................. 40
4.11 ATH Disconnect existing call..................................................................................................... 41
4.12 AT+CHUP Hang up call............................................................................................................. 41
4.13 AT+CBST Select bearer service type ......................................................................................... 42
4.14 AT+CRLP Radio link protocol................................................................................................... 44
4.15 AT+CR Service reporting control............................................................................................... 45
4.16 AT+CEER Extended error report ............................................................................................... 46
4.17 AT+CRC Cellular result codes................................................................................................... 47
4.18 AT+VTS DTMF and tone generation......................................................................................... 48
4.19 AT+CLVL Loudspeaker volume level ....................................................................................... 49

SIM5218_Serial _AT Command Manual_V1.21

9

1/13/2011
SIM5218 Serial AT Command Manual

4.20 AT+VMUTE Speaker mute control ........................................................................................... 50
4.21 AT+CMIC Microphone volume control..................................................................................... 51
4.22 AT+CMUT Microphone mute control........................................................................................ 52
4.23 AT+AUTOANSWER Automatic answer quickly...................................................................... 53
4.24 ATS0 Automatic answer............................................................................................................. 53
4.25 AT+CALM Alert sound mode.................................................................................................... 54
4.26 AT+CRSL Ringer sound level.................................................................................................... 55
4.27 AT+CSDVC Switch voice channel device................................................................................. 56
4.28 AT+CPTONE Play tone ............................................................................................................. 57
4.29 AT+CPCM External PCM codec mode configuration ............................................................... 58
4.30 AT+CPCMFMT Change the PCM format ................................................................................. 59
4.31 AT+CPCMREG Control PCM data transfer by diagnostics port ............................................... 60
4.32 AT+VTD Tone duration ............................................................................................................. 61
4.33 AT+CSSN Supplementary service notifications ........................................................................ 62
5
Video Call Related Commands ............................................................................................................. 65
5.1
AT+VPMAKE Originate video call ........................................................................................... 65
5.2
AT+VPANSWER Answer video call ......................................................................................... 65
5.3
AT+VPEND Cancel video call................................................................................................... 66
5.4
AT+VPDTMF Send DTMF tone during video call.................................................................... 67
5.5
AT+VPSOURCE Select video TX source.................................................................................. 67
5.6
AT+VPRECORD Record video during video call ..................................................................... 68
5.7
AT+VPLOOP Loopback far-end video frame during video call................................................ 69
5.8
AT+VPSM Switch video call to CSD mode .............................................................................. 70
5.9
AT+VPQLTY Setting video quality ........................................................................................... 71
6
SMS Related Commands ...................................................................................................................... 73
6.1
+CMS ERROR Message service failure result code.................................................................. 73
6.2
AT+CSMS Select message service............................................................................................. 74
6.3
AT+CPMS Preferred message storage ....................................................................................... 75
6.4
AT+CMGF Select SMS message format.................................................................................... 76
6.5
AT+CSCA SMS service centre address...................................................................................... 77
6.6
AT+CSCB Select cell broadcast message indication ................................................................. 78
6.7
AT+CSDH Show text mode parameters..................................................................................... 79
6.8
AT+CNMA New message acknowledgement to ME/TA........................................................... 80
6.9
AT+CNMI New message indications to TE............................................................................... 82
6.10 AT+CMGL List SMS messages from preferred store ................................................................ 84
6.11 AT+CMGR Read message ......................................................................................................... 88
6.12 AT+CMGS Send message.......................................................................................................... 92
6.13 AT+CMSS Send message from storage ..................................................................................... 93
6.14 AT+CMGW Write message to memory ..................................................................................... 94
6.15 AT+CMGD Delete message....................................................................................................... 95
6.16 AT+CSMP Set text mode parameters......................................................................................... 96
6.17 AT+CMGRO Read message only .............................................................................................. 97
6.18 AT+CMGMT Change message status ........................................................................................ 99

SIM5218_Serial _AT Command Manual_V1.21

10

1/13/2011
SIM5218 Serial AT Command Manual

6.19 AT+CMVP Set message valid period......................................................................................... 99
6.20 AT+CMGRD Read and delete message ................................................................................... 100
6.21 AT+CMGSO Send message quickly ........................................................................................ 102
6.22 AT+CMGWO Write message to memory quickly ................................................................... 103
6.23 AT+CMGSEX Send message................................................................................................... 104
6.24 AT+CMGENREF Generate a new message reference............................................................. 105
7
Camera Related Commands ................................................................................................................ 107
7.1
AT+CCAMS Start camera........................................................................................................ 107
7.2
AT+CCAME Stop camera........................................................................................................ 107
7.3
AT+CCAMSETD Set camera dimension................................................................................. 108
7.4
AT+CCAMSETF Set camera FPS ........................................................................................... 109
7.5
AT+CCAMSETR Set camera rotation ..................................................................................... 109
7.6
AT+CCAMSETN Set camera night shot mode........................................................................ 110
7.7
AT+CCAMSETWB Set camera white balance........................................................................ 111
7.8
AT+CCAMSETB Set camera brightness ................................................................................. 112
7.9
AT+CCAMSETZ Set camera zoom ......................................................................................... 112
7.10 AT+CCAMTP Take picture...................................................................................................... 113
7.11 AT+CCAMEP Save picture...................................................................................................... 114
7.12 AT+CCAMRS Start video record............................................................................................. 115
7.13 AT+CCAMRP Pause video record........................................................................................... 116
7.14 AT+CCAMRR Resume video record....................................................................................... 117
7.15 AT+CCAMRE Stop video record............................................................................................. 117
7.16 AT+CCAMMD Switch the AK8856 mode .............................................................................. 118
7.17 AT+CCAMCHL Select the input channel of AK8856 ............................................................. 119
8
Audio Application Commands ............................................................................................................ 120
8.1
AT+CQCPREC Start recording sound clips............................................................................. 120
8.2
AT+CQCPPAUSE Pause sound record .................................................................................... 121
8.3
AT+CQCPRESUME Resume sound record............................................................................. 121
8.4
AT+CQCPSTOP Stop sound record......................................................................................... 121
8.5
AT+CCMXPLAY Play audio file............................................................................................. 122
8.6
AT+CCMXPAUSE Pause playing audio file ........................................................................... 123
8.7
AT+CCMXRESUME Resume playing audio file.................................................................... 123
8.8
AT+CCMXSTOP Stop playing audio file ................................................................................ 124
8.9
AT+CECM Enable/Disable Echo Canceller............................................................................. 124
8.10 AT+CNSM Enable/Disable Noise Suppression ....................................................................... 125
8.11 AT+CECSET Adjust the effect for the given echo cancellation mode..................................... 126
9
Network Service Related Commands.................................................................................................. 128
9.1
AT+CREG Network registration .............................................................................................. 128
9.2
AT+COPS Operator selection .................................................................................................. 129
9.3
AT+CLCK Facility lock ........................................................................................................... 131
9.4
AT+CPWD Change password .................................................................................................. 133
9.5
AT+CLIP Calling line identification presentation.................................................................... 134
9.6
AT+CLIR Calling line identification restriction....................................................................... 135

SIM5218_Serial _AT Command Manual_V1.21

11

1/13/2011
SIM5218 Serial AT Command Manual

9.7
AT+COLP Connected line identification presentation ............................................................. 137
9.8
AT+CCUG Closed user group.................................................................................................. 138
9.9
AT+CCFC Call forwarding number and conditions................................................................. 139
9.10 AT+CCWA Call waiting........................................................................................................... 141
9.11 AT+CHLD Call related supplementary services ...................................................................... 143
9.12 AT+CUSD Unstructured supplementary service data.............................................................. 144
9.13 AT+CAOC Advice of charge ................................................................................................... 145
9.14 AT+CSSN Supplementary service notifications ...................................................................... 146
9.15 AT+CLCC List current calls .................................................................................................... 148
9.16 AT+CPOL Preferred operator list............................................................................................. 150
9.17 AT+COPN Read operator names ............................................................................................. 151
9.18 AT+CNMP Preferred mode selection....................................................................................... 152
9.19 AT+CNBP Preferred band selection......................................................................................... 153
9.20 AT+CNAOP Acquisitions order preference ............................................................................. 154
9.21 AT+CNSDP Preferred service domain selection...................................................................... 155
9.22 AT+CPSI Inquiring UE system information ............................................................................ 155
9.23 AT+CNSMOD Show network system mode............................................................................ 157
9.24 AT+CTZU Automatic time and time zone update ................................................................... 159
9.25 AT+CTZR Time and time zone reporting ................................................................................ 160
9.26 AT+CCINFO Show cell system information ........................................................................... 161
9.27 AT+CSCHN Show cell channel information ........................................................................... 163
9.28 AT+CSRP Show serving cell radio parameter ......................................................................... 164
9.29 AT+CRUS Show cell set system information .......................................................................... 165
9.30 AT+CPLMNWLIST Manages PLMNs allowed by customer..................................................... 167
9.31 AT+CPASSMGR Manage password........................................................................................... 167
9.32 AT+CNSVSQ Network band scan quickly .............................................................................. 168
9.33 AT+CNSVS Network full band scan in string format.............................................................. 170
9.34 AT+CNSVN Network full band scan in numeric format ......................................................... 173
9.35 AT+CNSVUS Network band scan by channels in string ......................................................... 175
9.36 AT+CNSVUN Network band scan by channels in numeric..................................................... 177
10
Mobile Equipment Control and Status Commands ......................................................................... 180
10.1 +CME ERROR Mobile Equipment error result code............................................................... 180
10.2 AT+CMEE Report mobile equipment error ............................................................................. 183
10.3 AT+CPAS Phone activity status ............................................................................................... 184
10.4 AT+CFUN Set phone functionality.......................................................................................... 185
10.5 AT+CPIN Enter PIN ................................................................................................................ 186
10.6 AT+CSQ Signal quality............................................................................................................ 187
10.7 AT+AUTOCSQ Set CSQ report............................................................................................... 188
10.8 AT+CACM Accumulated call meter........................................................................................ 189
10.9 AT+CAMM Accumulated call meter maximum...................................................................... 190
10.10 AT+CPUC Price per unit and currency table ........................................................................... 191
10.11 AT+CPOF Control phone to power down ................................................................................ 192
10.12 AT+CCLK Real time clock ...................................................................................................... 192

SIM5218_Serial _AT Command Manual_V1.21

12

1/13/2011
SIM5218 Serial AT Command Manual

10.13 AT+CRFEN RF check at initialization..................................................................................... 193
10.14 AT+CRESET Reset ME ........................................................................................................... 194
10.15 AT+SIMEI Set module IMEI ................................................................................................... 195
10.16 AT+CSIMLOCK Request and change password ..................................................................... 196
10.17 AT+DSWITCH Change diagnostics port mode ....................................................................... 198
10.18 AT+CNVW Write NV item...................................................................................................... 198
10.19 AT+CNVR Read NV item........................................................................................................ 200
10.20 AT+CDELTA Write delta package to FOTA partition.............................................................. 202
11 SIMCard Related Commands.............................................................................................................. 204
11.1 AT+CICCID Read ICCID in SIM card .................................................................................... 204
11.2 AT+CSIM Generic SIM access ................................................................................................ 204
11.3 AT+CRSM Restricted SIM access ........................................................................................... 205
11.4 AT+CSIMSEL Switch between two SIM card......................................................................... 207
11.5 AT+SPIC Times remain to input SIM PIN/PUK...................................................................... 208
11.6 AT+CSPN Get service provider name from SIM..................................................................... 208
12
Hardware Related Commands......................................................................................................... 210
12.1 AT+CTXGAIN Set TX gain..................................................................................................... 210
12.2 AT+CRXGAIN Set RX gain .................................................................................................... 210
12.3 AT+CTXVOL Set TX volume ................................................................................................. 211
12.4 AT+CRXVOL Set RX volume................................................................................................. 212
12.5 AT+CTXFTR Set TX filter ...................................................................................................... 212
12.6 AT+CRXFTR Set RX filter...................................................................................................... 213
12.7 AT+CVALARM Low voltage Alarm ....................................................................................... 214
12.8 AT+CRIIC Read values from register of IIC device ................................................................ 215
12.9 AT+CWIIC Write values to register of IIC device................................................................... 216
12.10 AT+CVAUXS Set state of the pin named VREG_AUX1 ........................................................ 216
12.11 AT+ CVAUXV Set voltage value of the pin named VREG_AUX1......................................... 217
12.12 AT+CGPIO Set Trigger mode of interrupt GPIO..................................................................... 218
12.13 AT+CGDRT Set the direction of specified GPIO .................................................................... 219
12.14 AT+CGSETV Set the value of specified GPIO........................................................................ 220
12.15 AT+CGGETV Get the value of specified GPIO ...................................................................... 220
12.16 AT+CADC Read ADC value.................................................................................................... 221
12.17 AT+CMICAMP1 Set value of micamp1 .................................................................................. 222
12.18 AT+CVLVL Set value of sound level....................................................................................... 223
12.19 AT+SIDET Digital attenuation of sidetone .............................................................................. 224
12.20 AT+CRIRS Reset RI pin of serial port..................................................................................... 225
12.21 AT+CSUART Switch UART line mode................................................................................... 226
12.22 AT+CDCDMD Set DCD pin mode.......................................................................................... 226
12.23 AT+CDCDVL Set DCD pin high-low in GPIO mode ............................................................. 227
12.24 AT+CCGSWT Switch between camera interface and GPIO ................................................... 228
12.25 AT+CBC Battery charge .......................................................................................................... 229
12.26 AT+CDTRISRMD Configure the trigger condition for DTR’s interrupt................................. 230
12.27 AT+CDTRISRS Enable/disable the pin of DTR’s awakening function................................... 231

SIM5218_Serial _AT Command Manual_V1.21

13

1/13/2011
SIM5218 Serial AT Command Manual

13
Phonebook Related Commands....................................................................................................... 233
13.1 AT+CNUM Subscriber number ............................................................................................... 233
13.2 AT+CPBS Select phonebook memory storage......................................................................... 233
13.3 AT+CPBR Read phonebook entries ......................................................................................... 235
13.4 AT+CPBF Find phonebook entries .......................................................................................... 236
13.5 AT+CPBW Write phonebook entry.......................................................................................... 238
13.6 AT+CEMNLIST Set the list of emergency number ................................................................. 239
14
File System Related Commands...................................................................................................... 241
14.1 AT+FSCD Select directory as current directory....................................................................... 241
14.2 AT+FSMKDIR Make new directory in current directory ........................................................ 242
14.3 AT+FSRMDIR Delete directory in current directory............................................................... 243
14.4 AT+FSLS List directories/files in current directory................................................................. 244
14.5 AT+FSDEL Delete file in current directory ............................................................................. 246
14.6 AT+FSRENAME Rename file in current directory ................................................................. 246
14.7 AT+FSATTRI Request file attributes ....................................................................................... 247
14.8 AT+FSMEM Check the size of available memory................................................................... 248
14.9 AT+FSFMT Format the storage card ....................................................................................... 249
14.10 AT+FSLOCA Select storage place ........................................................................................... 250
15
File Transmission Related Commands ............................................................................................ 252
15.1 AT+CTXFILE Select file transmitted to PC host..................................................................... 252
15.2 AT+CRXFILE Set name of file received from PC host ........................................................... 253
16
V24-V25 Commands....................................................................................................................... 255
16.1 AT+IPR Set local baud rate temporarily .................................................................................. 255
16.2 AT+IPREX Set local baud rate permanently............................................................................ 256
16.3 AT+ICF Set control character framing ..................................................................................... 257
16.4 AT+IFC Set local data flow control ......................................................................................... 258
16.5 AT&C Set DCD function mode................................................................................................ 259
16.6 ATE Enable command echo ..................................................................................................... 259
16.7 AT&V Display current configuration....................................................................................... 260
16.8 AT&D Set DTR function mode................................................................................................ 261
16.9 AT&S Set DSR function mode................................................................................................. 261
16.10 AT&F Set all current parameters to manufacturer defaults...................................................... 262
17
GPS Related Commands ................................................................................................................. 265
17.1 AT+CGPS Start/stop GPS session............................................................................................ 265
17.2 AT+CGPSINFO Get GPS fixed position information.............................................................. 266
17.3 AT+CGPSCOLD Cold start GPS ............................................................................................. 267
17.4 AT+CGPSHOT Hot start GPS ................................................................................................. 268
17.5 AT+CGPSSWITCH Configure output port for NMEA sentence............................................. 268
17.6 AT+CGPSURL Set AGPS default server URL ........................................................................ 269
17.7 AT+CGPSSSL Set AGPS transport security ............................................................................ 270
17.8 AT+CGPSAUTO Start GPS automatic .................................................................................... 270
18
Commands for Packet Domain........................................................................................................ 272
18.1 AT+CGDCONT Define PDP context....................................................................................... 272

SIM5218_Serial _AT Command Manual_V1.21

14

1/13/2011
SIM5218 Serial AT Command Manual

18.2 AT+CGQREQ Quality of service profile (requested) .............................................................. 273
18.3 AT+CGEQREQ 3G quality of service profile (requested)....................................................... 276
18.4 AT+CGQMIN Quality of service profile (minimum acceptable) ............................................ 280
18.5 AT+CGEQMIN 3G quality of service profile (minimum acceptable) ..................................... 283
18.6 AT+CGATT Packet domain attach or detach ........................................................................... 287
18.7 AT+CGACT PDP context activate or deactivate...................................................................... 287
18.8 AT+CGDATA Enter data state ................................................................................................. 288
18.9 AT+CGPADDR Show PDP address......................................................................................... 289
18.10 AT+CGCLASS GPRS mobile station class ............................................................................. 291
18.11 AT+CGEREP GPRS event reporting ....................................................................................... 292
18.12 AT+CGREG GPRS network registration status ....................................................................... 293
18.13 AT+CGSMS Select service for MO SMS messages ................................................................ 295
18.14 AT+CGAUTH Set type of authentication for PDP-IP connections of GPRS .......................... 296
19
TCP/IP Related Commands............................................................................................................. 298
19.1 AT+CGSOCKCONT Define socket PDP context.................................................................... 298
19.2 AT+CSOCKSETPN Set active PDP context’s profile number ................................................ 299
19.3 AT+CSOCKAUTH Set type of authentication for PDP-IP conne-ctions of socket ................. 300
19.4 AT+IPADDR Inquire socket PDP address ............................................................................... 302
19.5 AT+NETOPEN Open socket.................................................................................................... 303
19.6 AT+TCPCONNECT Establish TCP connection ...................................................................... 304
19.7 AT+TCPWRITE Send TCP data .............................................................................................. 305
19.8 AT+UDPSEND Send UDP data............................................................................................... 306
19.9 AT+SERVERSTART Startup TCP server ................................................................................ 307
19.10 AT+LISTCLIENT List all of clients’ information ................................................................... 308
19.11 AT+CLOSECLIENT Disconnect specified client.................................................................... 309
19.12 AT+ACTCLIENT Activate specified client............................................................................. 310
19.13 AT+NETCLOSE Close socket ................................................................................................. 311
19.14 AT+CIPHEAD Add an IP head when receiving data............................................................... 312
19.15 AT+CIPSRIP Set whether display IP address and port of sender when receiving data............ 312
19.16 AT+CIPCCFG Configure parameters of socket ....................................................................... 313
19.17 AT+CIPOPEN Establish connection in multi-client mode....................................................... 315
19.18 AT+CIPSEND Send data in multi-client mode ........................................................................ 317
19.19 AT+CIPCLOSE Close connection in Multi-client mode ......................................................... 318
19.20 AT+CDNSGIP Query the IP address of given domain name ................................................... 319
19.21 AT+CIPMODE Select TCPIP application mode...................................................................... 320
19.22 Information elements related to TCP/IP...................................................................................... 321
20
SIM Application Toolkit (SAT) Commands.................................................................................... 323
20.1 AT+STIN SAT Indication......................................................................................................... 323
20.2 AT+STGI Get SAT information ............................................................................................... 324
20.3 AT+STGR SAT respond........................................................................................................... 327
21
Internet Service Command.............................................................................................................. 329
21.1 Simple mail transfer protocol service.......................................................................................... 329
21.1.1
AT+SMTPSRV SMTP server address and port number................................................... 329

SIM5218_Serial _AT Command Manual_V1.21

15

1/13/2011
SIM5218 Serial AT Command Manual

21.1.2
AT+SMTPAUTH SMTP server authentication ................................................................ 330
21.1.3
AT+SMTPFROM Sender address and name.................................................................... 331
21.1.4
AT+SMTPRCPT Recipient address and name (TO/CC/BCC)......................................... 332
21.1.5
AT+SMTPSUB E-mail subject......................................................................................... 334
21.1.6
AT+SMTPBODY E-mail body ........................................................................................ 334
21.1.7
AT+SMTPFILE Select attachment................................................................................... 336
21.1.8
AT+SMTPSEND Initiate session and send e-mail ........................................................... 337
21.1.9
AT+SMTPSTOP Force to stop sending e-mail................................................................. 338
21.2 Post Office Protocol 3 Service .................................................................................................... 339
21.2.1
AT+POP3SRV POP3 server and account ......................................................................... 339
21.2.2
AT+POP3IN Log in POP3 server..................................................................................... 340
21.2.3
AT+POP3NUM Get e-mail number and total size ........................................................... 341
21.2.4
AT+POP3LIST List e-mail ID and size............................................................................ 342
21.2.5
AT+POP3HDR Get e-mail header.................................................................................... 344
21.2.6
AT+POP3GET Get an e-mail from POP3 server ............................................................. 345
21.2.7
AT+POP3DEL Mark an e-mail to delete from POP3 server ............................................ 346
21.2.8
AT+POP3OUT Log out POP3 server............................................................................... 347
21.2.9
AT+POP3STOP Force to stop receiving e-mail/close the session.................................... 348
21.2.10 AT+POP3READ Read an e-mail from file system .......................................................... 348
21.3 File Transfer Protocol Service..................................................................................................... 349
21.3.1
AT+CFTPPORT Set FTP server port ............................................................................... 349
21.3.2
AT+CFTPMODE Set FTP mode...................................................................................... 350
21.3.3
AT+CFTPTYPE Set FTP type.......................................................................................... 351
21.3.4
AT+CFTPSERV Set FTP server domain name or IP address........................................... 352
21.3.5
AT+CFTPUN Set user name for FTP access.................................................................... 352
21.3.6
AT+CFTPPW Set user password for FTP access ............................................................. 353
21.3.7
AT+CFTPGETFILE Get a file from FTP server to EFS .................................................. 354
21.3.8 AT+CFTPPUTFILE Put a file in module EFS to FTP server........................................... 355
21.3.9
AT+CFTPGET Get a file from FTP server and output it from SIO ................................. 357
21.3.10 AT+CFTPPUT Put a file to FTP server............................................................................ 358
21.3.11 AT+CFTPLIST List the items in the directory on FTP server.......................................... 359
21.3.12 Unsolicited FTP Codes (Summary of CME ERROR Codes).............................................. 360
21.4 Hyper Text Transfer Protocol Service ......................................................................................... 360
21.4.1
AT+CHTTPACT Launch a HTTP operation .................................................................... 360
21.4.2
Unsolicited HTTP codes (summary of CME ERROR codes) ............................................. 363
21.5 Secure Hyper Text Transfer Protocol Service ............................................................................. 363
21.5.1
AT+CHTTPSSTART Acquire HTTPS protocol stack...................................................... 363
21.5.2
AT+CHTTPSSTOP Release HTTPS protocol stack ........................................................ 364
21.5.3
AT+CHTTPSOPSE Open HTTPS session ....................................................................... 364
21.5.4
AT+CHTTPSCLSE Close HTTPS session ...................................................................... 365
21.5.5
AT+CHTTPSSEND Send HTTPS request ....................................................................... 365
21.5.6 AT+CHTTPSRECV Receive HTTPS response................................................................ 366
21.5.7
Unsolicited HTTPS Codes .................................................................................................. 367

SIM5218_Serial _AT Command Manual_V1.21

16

1/13/2011
SIM5218 Serial AT Command Manual

21.6 Secure File Transfer Protocol Service ......................................................................................... 368
21.6.1
AT+CFTPSSTART Acquire FTPS protocol stack............................................................ 368
21.6.2
AT+CFTPSSTOP Stop FTPS protocol stack.................................................................... 368
21.6.3
AT+CFTPSLOGIN Login the FTPS server ..................................................................... 369
21.6.4
AT+CFTPSLOGOUT Logout the FTPS server................................................................ 369
21.6.5
AT+CFTPSMKD Create a new directory on FTPS server............................................... 370
21.6.6
AT+CFTPSRMD Delete a directory on FTPS server....................................................... 370
21.6.7
AT+CFTPSDELE Delete a file on FTPS server............................................................... 371
21.6.8
AT+CFTPSCWD Change the current directory on FTPS server ..................................... 372
21.6.9
AT+CFTPSPWD Get the current directory on FTPS server ............................................ 372
21.6.10 AT+CFTPSTYPE Set the transfer type on FTPS server .................................................. 373
21.6.11 AT+CFTPSLIST List the items in the directory on FTPS server ..................................... 374
21.6.12 AT+CFTPSGETFILE Get a file from FTPS server to EFS.............................................. 375
21.6.13 AT+CFTPSPUTFILE Put a file in module EFS to FTPS server ...................................... 376
21.6.14 AT+CFTPSGET Get a file from FTPS server to serial port............................................. 377
21.6.15 AT+CFTPSPUT Put a file to FTPS server ....................................................................... 379
21.6.16 AT+CFTPSSINGLEIP Set FTPS data socket address type.............................................. 380
21.6.17 Unsolicited FTPS Codes ..................................................................................................... 381
21.7 HTTP Time Synchronization Service.......................................................................................... 381
21.7.1
AT+CHTPSERV Set HTP server info .............................................................................. 381
21.7.2
AT+CHTPUPDATE Updating date time using HTP protocol.......................................... 383
21.7.3
Unsolicited HTP Codes ....................................................................................................... 383
22
MMS Commands ............................................................................................................................ 384
22.1 AT+CMMSCURL Set the URL of MMS center ...................................................................... 384
22.2 AT+CMMSPROTO Set the protocol parameters and MMS proxy.......................................... 384
22.3 AT+CMMSSENDCFG Set the parameters for sending MMS................................................. 385
22.4 AT+CMMSEDIT Enter or exit edit mode ................................................................................ 387
22.5 AT+CMMSDOWN Download the file data or title from UART ............................................. 388
22.6 AT+CMMSDELFILE Delete a file within the editing MMS body.......................................... 390
22.7 AT+CMMSSEND Start MMS sending .................................................................................... 391
22.8 AT+CMMSRECP Add recipients............................................................................................. 392
22.9 AT+CMMSCC Add copy-to recipients.................................................................................... 393
22.10 AT+CMMSBCC Add secret recipients .................................................................................... 394
22.11 AT+CMMSDELRECP Delete recipients ................................................................................. 395
22.12 AT+CMMSDELCC Delete copy-to recipients......................................................................... 396
22.13 AT+CMMSDELBCC Delete secret recipients......................................................................... 396
22.14 AT+CMMSRECV Receive MMS ............................................................................................ 397
22.15 AT+CMMSVIEW View information of MMS in box or memory ........................................... 398
22.16 AT+CMMSREAD read the given file in MMS currently in memory ...................................... 400
22.17 AT+CMMSSNATCH snatch the given file in MMS................................................................ 401
22.18 AT+CMMSSAVE Save the MMS to a mail box ...................................................................... 402
22.19 AT+CMMSDELETE Delete MMS in the mail box ................................................................. 403
22.20 AT+CMMSSYSSET Configure MMS transferring parameters ............................................... 405

SIM5218_Serial _AT Command Manual_V1.21

17

1/13/2011
SIM5218 Serial AT Command Manual

22.21 AT+CMMSINCLEN Increase the length of audio/video attachment header........................... 406
22.22 Supported Unsolicited Result Codes in MMS ............................................................................ 407
22.22.1 Indication of Sending/Receiving MMS............................................................................... 407
22.22.2 Summary of CME ERROR Codes for MMS ...................................................................... 408
23
CSCRIPT Commands...................................................................................................................... 409
23.1 AT+CSCRIPTSTART Start running a LUA script file............................................................. 409
23.2 AT+CSCRIPTSTOP Stop the current running LUA script. ..................................................... 410
23.3 AT+CSCRIPTCL Compile a LUA script file. .......................................................................... 410
23.4 AT+CSCRIPTPASS Set the password for +CSCRIPTCL. ...................................................... 411
23.5 AT+CSCRIPTCMD Send data to the running LUA script....................................................... 412
23.6 Unsolicited CSCRIPT codes ....................................................................................................... 413
24
AT Commands Samples .................................................................................................................. 414
24.1 SMS commands .......................................................................................................................... 414
24.2 TCP/IP commands....................................................................................................................... 415
24.2.1
TCP server ........................................................................................................................... 415
24.2.2
TCP client............................................................................................................................ 415
24.2.3
UDP..................................................................................................................................... 416
24.2.4
Multi client .......................................................................................................................... 416
24.3 Audio commands ........................................................................................................................ 417
24.3.1
Sound record ....................................................................................................................... 417
24.3.2
Play audio file...................................................................................................................... 418
24.4 Camera commands ...................................................................................................................... 419
24.4.1
Take picture ......................................................................................................................... 419
24.4.2
Record video ....................................................................................................................... 419
24.5 Video call commands .................................................................................................................. 420
24.5.1
Unsolicited indications of video call ................................................................................... 420
24.5.2
Call flows – video call origination ...................................................................................... 421
24.5.3
Call flows – video call termination ..................................................................................... 421
24.6 File transmission flow ................................................................................................................. 422
24.6.1
File transmission to PC host................................................................................................ 422
24.6.2
File received from PC host.................................................................................................. 426
24.7 MMS commands ......................................................................................................................... 429
Contact us.................................................................................................................................................... 431

SIM5218_Serial _AT Command Manual_V1.21

18

1/13/2011
1
1.1

Introduction
Scope
The present document describes the AT Command Set for the SIMCom Module:
SIM5218

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

Terms and abbreviations
For the purposes of the present document, the following abbreviations apply:
AT
ATtention; the two-character abbreviation is used to start a command line to be sent
from TE/DTE to TA/DCE
CSD
Circuit Switched Data
DCE
Data Communication Equipment; Data Circuit terminating Equipment
DCS
Digital Cellular Network
DTE
Data Terminal Equipment
DTMF
Dual Tone Multi–Frequency
EDGE
Enhanced Data GSM Environment
EGPRS
Enhanced General Packet Radio Service
GPIO
General–Purpose Input/Output
SIM5218 Serial AT Command Manual

GPRS
General Packet Radio Service
GSM
Global System for Mobile communications
HSDPA
High Speed Downlink Packet Access
HSUPA
High Speed Uplink Packet Access
I2C
Inter–Integrated Circuit
IMEI
International Mobile station Equipment Identity
IMSI
International Mobile Subscriber Identity
ME
Mobile Equipment
MO
Mobile–Originated
MS
Mobile Station
MT
Mobile–Terminated; 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
SMS–SC
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.4

Definitions and conventions

1. For the purposes of the present document, the following syntactical definitions apply:
<CR>

Carriage return character.

<LF>

Linefeed character.

<…>

Name enclosed in angle brackets is a syntactical element. Brackets themselves do not
appear in the command line.

[…]

Optional subparameter of AT command or an optional part of TA information response

SIM5218_Serial _AT Command Manual_V1.21

20

1/13/2011
SIM5218 Serial AT Command Manual

is enclosed in square brackets. Brackets themselves do not appear in the command line.
If subparameter is not given, its value equals to its previous value or the recommended
default value.
Underlined defined subparameter value is the recommended default setting or factory
setting.

underline

2. Document conventions:
♦
♦
♦
♦

Display the examples of AT commands with Italic format.
Not display blank-line between command line and responses or inside the responses.
Generally, the characters <CR> and <LF> are intentionally omitted throughout this document.
If command response is ERROR, not list the ERROR response inside command syntax.

NOTE AT commands and responses in figures may be not following above conventions.
3. Special marks for commands or parameters:
SIM PIN

–

Is the command PIN protected?
YES – AT command can be used only when SIM PIN is READY.
NO

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

– 3GPP Technical Specification 127 007.

V.25ter

–

ITU–T Recommendation V.25ter.

Vendor

–

The command is supported by SIMCom.

SIM5218_Serial _AT Command Manual_V1.21

21

1/13/2011
SIM5218 Serial AT Command Manual

2
2.1

AT Interface Synopsis
Interface settings

Between Customer Application and the Module, standardized RS–232 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 S–register 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

Syntax

Comments

Test Command

AT+<NAME>=?

Test the existence of the command; give some
information about the command subparameters.

SIM5218_Serial _AT Command Manual_V1.21

22

1/13/2011
SIM5218 Serial AT Command Manual

Read Command

AT+<NAME>?

Check the current values of subparameters.

Write Command

AT+<NAME>=<…>

Set user-definable subparameter values.

Execution Command

AT+<NAME>

Read non-variable subparameters determined by
internal processes.

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.

SIM5218_Serial _AT Command Manual_V1.21

23

1/13/2011
SIM5218 Serial AT Command Manual

3

General Commands

3.1

ATI

Display product identification information

Description
The command requests the product information, which consists of manufacturer identification,
model identification, revision identification, QCN type, International Mobile station Equipment
Identity (IMEI) and overall capabilities of the product.
SIM PIN
NO

References
V.25ter

Syntax
Execution Command
ATI

Responses
Manufacturer: <manufacturer>
Model: <model>
Revision: <revision>
QCN: [<qcn_type>]
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.
<qcn_type>
The identification of QCN. QCN is used to save non-volatile values for software.
<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.

SIM5218_Serial _AT Command Manual_V1.21

24

1/13/2011
SIM5218 Serial AT Command Manual

Examples
ATI
Manufacturer: SIMCOM INCORPORATED
Model: SIMCOM_SIM5218
Revision: 240150B18SIM5218A
SIM5218A_240150_101028_V1.30
QCN:
IMEI: 351602000330570
+GCAP: +CGSM,+FCLASS,+DS
OK

3.2

AT+CGMI

Request manufacturer identification

Description
The command requests 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
OK

3.3

AT+CGMM

Request model identification

Description

SIM5218_Serial _AT Command Manual_V1.21

25

1/13/2011
SIM5218 Serial AT Command Manual

The command 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_SIM5218
OK

3.4

AT+CGMR

Request revision identification

Description
The command requests product firmware revision identification text, which is intended to permit
the user of the Module to identify the version, revision level, date, and other pertinent information.
SIM PIN
NO

References
3GPP TS 27.007

Syntax
Test Command
AT+CGMR=?

Responses
OK

Execution Command
AT+CGMR

Responses
<revision>
OK

Defined values

SIM5218_Serial _AT Command Manual_V1.21

26

1/13/2011
SIM5218 Serial AT Command Manual

<revision>
The revision identification of firmware.

Examples
AT+CGMR
+CGMR: 240150B18SIM5218A
OK

3.5

AT+CGSN

Request product serial number identification

Description
The 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

3.6

AT+CSCS

Select TE character set

Description

SIM5218_Serial _AT Command Manual_V1.21

27

1/13/2011
SIM5218 Serial AT Command Manual

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>

Character set, the definition as following:
“IRA”
International reference alphabet.
“GSM” GSM default alphabet; this setting causes easily software flow control (XON
/XOFF) problems.
“UCS2” 16-bit universal multiple-octet coded character set; UCS2 character strings are
converted to hexadecimal numbers from 0000 to FFFF.

Examples
AT+CSCS=”IRA”
OK
AT+CSCS?
+CSCS:”IRA”
OK

3.7

AT+CIMI

Request international mobile subscriber identity

SIM5218_Serial _AT Command Manual_V1.21

28

1/13/2011
SIM5218 Serial AT Command Manual

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.8

AT+GCAP Request overall capabilities

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
AT+GCAP

Responses
+GCAP: (list of <name>s)
OK

Defined values

SIM5218_Serial _AT Command Manual_V1.21

29

1/13/2011
SIM5218 Serial AT Command Manual

<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

3.9

AT+CATR

Configure URC destination interface

Description
The command is used to configure the interface which will be used to output URCs.
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
1
2
3
<save>
0
1

– all ports
– use UART port to output URCs
– use MODEM port to output URCs
– use ATCOM port to output URCs
–
–

set temporarily
set permanently

SIM5218_Serial _AT Command Manual_V1.21

30

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CATR=1,0
OK
AT+CATR?
+CATR: 1
OK

3.10 A/

Repeat last command

Description
The 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.
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.11 AT+CFGRI

Indicate RI when using URC

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

31

1/13/2011
SIM5218 Serial AT Command Manual

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
OK
AT+CFGRI
OK

SIM5218_Serial _AT Command Manual_V1.21

32

1/13/2011
SIM5218 Serial AT Command Manual

4

Call Control Commands and Methods

4.1

AT+CSTA Select type of address

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
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

SIM5218_Serial _AT Command Manual_V1.21

33

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CSTA=145
OK

4.2

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
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

SIM5218_Serial _AT Command Manual_V1.21

34

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CMOD=0
OK

4.3

ATD

Dial command

Description
The dial command lists characters that may be used in a dialling string for making a call or
controlling supplementary services.
SIM PIN
YES

References
V25.ter

Syntax
Execution Commands
ATD<n>[<mgsm>][;]

Responses
OK
VOICE CALL: BEGIN
Originate a call unsuccessfully:
NO CARRIER

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.

Examples
ATD10086;
OK
VOICE CALL:BEGIN

SIM5218_Serial _AT Command Manual_V1.21

35

1/13/2011
SIM5218 Serial AT Command Manual

4.4

ATD><mem><n>

Originate call from specified memory

Description
Originate a call using specified memory and index number.
SIM PIN
YES

References
V.25ter

Syntax
Execution Commands
ATD><mem><n>[;]

Responses
OK
VOICE CALL: BEGIN
Originate a call unsuccessfully:
NO CARRIER

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.

Examples
ATD>SM3;
OK
VOICE CALL: BEGIN

4.5

ATD><n>

Originate call from active memory (1)

SIM5218_Serial _AT Command Manual_V1.21

36

1/13/2011
SIM5218 Serial AT Command Manual

Description
Originate a call to specified number.
SIM PIN
YES

References
V.25ter

Syntax
Execution Commands
ATD><n>[;]

Responses
OK
VOICE CALL: BEGIN
Originate a call unsuccessfully:
NO CARRIER

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
calls.

Examples
ATD>2;
OK
VOICE CALL: BEGIN

4.6

ATD><str>

Originate call from active memory (2)

Description
Originate a call to specified number.
SIM PIN
YES

References
V.25ter

Syntax
Execution Commands
ATD><str>[;]

Responses
OK
VOICE CALL: BEGIN
Originate a call unsuccessfully:

SIM5218_Serial _AT Command Manual_V1.21

37

1/13/2011
SIM5218 Serial AT Command Manual

NO CARRIER

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.
<;>
The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax
calls.

Examples
ATD>”Kobe”;
OK
VOICE CALL: BEGIN

4.7

ATA Call answer

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

38

1/13/2011
SIM5218 Serial AT Command Manual

4.8

+++

Switch from data mode to command mode

Description
The 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
can’t exceed 900 milliseconds.
SIM PIN
YES

References
V.25ter

Syntax
Execution Command
+++

Responses
OK

Examples
+++
OK

4.9

ATO

Switch from command mode to data mode

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
If connection is not successfully resumed or there is not a
connected CSD call:
NO CARRIER

SIM5218_Serial _AT Command Manual_V1.21

39

1/13/2011
SIM5218 Serial AT Command Manual

Examples
ATO
CONNECT

4.10 AT+CVHU

Voice hang up control

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 –

“Drop DTR” ignored but OK response given. ATH disconnects.
“Drop DTR” and ATH ignored but OK response given.

Examples
AT+CVHU=0
OK
AT+CVHU?
+CVHU: 0
OK

SIM5218_Serial _AT Command Manual_V1.21

40

1/13/2011
SIM5218 Serial AT Command Manual

4.11 ATH

Disconnect existing call

Description
The command is used to disconnect existing voice 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.
The command is also used to disconnect CSD or PS data call, and in this case it doesn’t 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

4.12 AT+CHUP Hang up call
Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

41

1/13/2011
SIM5218 Serial AT Command Manual

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

4.13 AT+CBST Select bearer service type
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
YES

References
3GPP TS 27.007

Syntax
Test Command
AT+CBST=?

Read 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

SIM5218_Serial _AT Command Manual_V1.21

42

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CBST=
<speed>[,<name>[,<ce>]]
Execution Command
AT+CBST

Responses
OK
ERROR
Responses
Set default value:
OK

Defined values
<speed>
0

–

autobauding(automatic selection of the speed; this setting is possible in case of 3.1
kHz modem and non-transparent service)
9600 bps (V.32)
9600 bps (V.34)
14400 bps(V.34)
28800 bps(V.34)
33600 bps(V.34)
9600 bps(V.120)
14400 bps(V.120)
28800 bps(V.120)
56000 bps(V.120)
9600 bps(V.110)
14400 bps(V.110)
28800 bps(V.110 or X.31 flag stuffing)
38400 bps(V.110 or X.31 flag stuffing)
56000 bps(V.110 or X.31 flag stuffing)
64000 bps(X.31 flag stuffing)
64000 bps(bit transparent)
64000 bps(multimedia)

7
–
12
–
14 –
16 –
17 –
39
–
43
–
48
–
51
–
71 –
75 –
80
–
81
–
83
–
84
–
116 –
134 –
<name>
0 – Asynchronous modem
1 – Synchronous modem
4 – data circuit asynchronous (RDI)
<ce>
0 – transparent
1 – non-transparent
NOTE If <speed> is set to 116 or 134, it is necessary that <name> is equal to 1 and <ce> is equal
to 0.

Examples
AT+CBST=0,0,1
OK

SIM5218_Serial _AT Command Manual_V1.21

43

1/13/2011
SIM5218 Serial AT Command Manual

AT+CBST?
+CBST:0,0,1
OK

4.14 AT+CRLP Radio link protocol
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?

[...]]
OK
Responses
+CRLP: <iws>, <mws>, <T1>, <N2> [,<ver1> [, <T4>]][<CR>
<LF>
+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

SIM5218_Serial _AT Command Manual_V1.21

44

1/13/2011
SIM5218 Serial AT Command Manual

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

4.15 AT+CR

Service reporting control

Description
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

Responses

SIM5218_Serial _AT Command Manual_V1.21

45

1/13/2011
SIM5218 Serial AT Command Manual

AT+CR?

+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

4.16 AT+CEER

Extended error report

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

SIM5218_Serial _AT Command Manual_V1.21

46

1/13/2011
SIM5218 Serial AT Command Manual

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
OK

4.17 AT+CRC

Cellular result codes

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:

SIM5218_Serial _AT Command Manual_V1.21

47

1/13/2011
SIM5218 Serial AT Command Manual

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
GPRS
GPRS network request for PDP context activation

Examples
AT+CRC=1
OK
AT+CRC?
+CRC: 1
OK

4.18 AT+VTS

DTMF and tone generation

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

48

1/13/2011
SIM5218 Serial AT Command Manual

Test Command

Responses

AT+VTS=?

+VTS: (list of supported<dtmf>s)
OK

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>
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

4.19 AT+CLVL Loudspeaker volume level
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

SIM5218_Serial _AT Command Manual_V1.21

49

1/13/2011
SIM5218 Serial AT Command Manual

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 4, 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
OK

4.20 AT+VMUTE

Speaker mute control

Description
The 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 can’t 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

Responses

SIM5218_Serial _AT Command Manual_V1.21

50

1/13/2011
SIM5218 Serial AT Command Manual

AT+VMUTE?

+VMUTE: <mode>
OK

Write Command
AT+VMUTE=<mode>

Responses
OK
ERROR

Defined values
<mode>
0 –
1 –

mute off
mute on

Examples
AT+VMUTE=1
OK
AT+VMUTE?
+VMUTE:1
OK

4.21 AT+CMIC

Microphone volume control

Description
The command is used to control the microphone gain level. When the Module restarts, the gain
level will resume as default values. The setting will be saved to nonvolatile memory after write
command is executed.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CMIC=?

Responses
+CMIC: (list of supported <gainLevel>s)
OK

Read Command
AT+CMIC?

Responses
+CMIC: <gainLevel>
OK

Write Command
AT+CMIC=<gainLevel>

Responses
OK
ERROR

SIM5218_Serial _AT Command Manual_V1.21

51

1/13/2011
SIM5218 Serial AT Command Manual

Defined values
<gainlevel>
Range from 0 to 15, and 0 is the lowest gain level.
When the audio output of device is handset, 7 is default value; when headset, 7 is default value;
when speaker, 4 is default value.

Examples
AT+CMIC=5
OK
AT+CMIC?
+CMIC:5
OK

4.22 AT+CMUT Microphone mute control
Description
The 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 can’t 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

SIM5218_Serial _AT Command Manual_V1.21

52

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMUT=1
OK
AT+CMUT?
+CMUT: 1
OK

4.23 AT+AUTOANSWER

Automatic answer quickly

Description
The command causes the Module to enable and disable automatic answer. If enabled, the Module
will answer automatically after the Module receives a call from network and 3 seconds lapse.
NOTE 1 .The command is effective on voice call and video call.
2 .The setting will be effective after restart.
SIM PIN

References

YES

Vendor

Syntax
Read Command
AT+AUTOANSWER?

Responses
+AUTOANSWER: <arg>
OK

Write Command
AT+AUTOANSWER=
<arg>

Responses
OK

Defined values
<arg>
0
1

–
–

disable auto answer
enable auto answer

Examples
AT+AUTOANSWER=1
OK
AT+AUTOANSWER?
+AUTOANSWER: 1
OK

4.24 ATS0

Automatic answer

Description

SIM5218_Serial _AT Command Manual_V1.21

53

1/13/2011
SIM5218 Serial AT Command Manual

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
YES

References
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)
001–255 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.
3.For voice call and video call, AT+AUTOANSWER is prior to ATS0.

Examples
ATS0?
000
OK
ATS0=003
OK

4.25 AT+CALM

Alert sound mode

Description
The 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
NO

References
3GPP TS 27.007

SIM5218_Serial _AT Command Manual_V1.21

54

1/13/2011
SIM5218 Serial AT Command Manual

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

4.26 AT+CRSL Ringer sound level
Description
The 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.
SIM PIN
NO

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

Responses

SIM5218_Serial _AT Command Manual_V1.21

55

1/13/2011
SIM5218 Serial AT Command Manual

AT+CRSL=<level>

OK

Defined values
<level>
Integer type value which represents the incoming call ringer sound level. The range is from 0 to 4,
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

4.27 AT+CSDVC

Switch voice channel device

Description
The 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), except microphone level (refer to AT+CMIC).
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)
OK

Read Command
AT+CSDVC?

Responses
+CSDVC: <dev>
OK

Write Command
AT+CSDVC=
<dev>[,<save>]

Responses
OK

Defined values

SIM5218_Serial _AT Command Manual_V1.21

56

1/13/2011
SIM5218 Serial AT Command Manual

<dev>
1 –
2 –
3 –
4 –
<save>
0 –
1 –
NOTE

handset
headset
speaker phone
PCM interface
temporary voice device setting, after reboot it will be resumed.
permanent voice device setting.
If subparameter <save> is omitted, voice device setting is temporary.

Examples
AT+CSDVC=2
OK
AT+CSDVC?
+CSDVC:2
OK
AT+CSDVC=1,1
OK

4.28 AT+CPTONE

Play tone

Description
The 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

Defined values
<tone>
0 –
1 –
2 –

Stop the sound tone
DTMF tone for 1 key, duration 100ms
DTMF tone for 2 key, duration 100ms

SIM5218_Serial _AT Command Manual_V1.21

57

1/13/2011
SIM5218 Serial AT Command Manual

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–

DTMF tone for 3 key, duration 100ms
DTMF tone for 4 key, duration 100ms
DTMF tone for 5 key, duration 100ms
DTMF tone for 6 key, duration 100ms
DTMF tone for 7 key, duration 100ms
DTMF tone for 8 key, duration 100ms
DTMF tone for 9 key, duration 100ms
DTMF tone for 0 key, duration 100ms
DTMF tone for A key, duration 100ms
DTMF tone for B key, duration 100ms
DTMF tone for C key, duration 100ms
DTMF tone for D key, duration 100ms
DTMF tone for # key, duration 100ms
DTMF tone for * key, duration 100ms
Subscriber busy sound, duration always
Congestion sound, duration always
Error information sound, duration 1330*3ms
Number unobtainable sound, duration 1330*3ms
Authentication failure sound, duration 1330*3ms
Radio path acknowledgement sound, duration 700*1ms
Radio path not available sound, duration 400*4ms
CEPT call waiting sound, duration 4000*2ms
CEPT ringing sound, duration always
CEPT dial tone, duration always

Examples
AT+CPTONE= ?
+CPTONE:(0-26)
OK
AT+CPTONE=17
OK

4.29 AT+CPCM

External PCM codec mode configuration

Description
The command will 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
NO

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

58

1/13/2011
SIM5218 Serial AT Command Manual

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

–
–

disable PCM, switch to common GPIOs.
enable PCM, switch to PCM function.

– Auxiliary master PCM, 128K clock and 8K synchronize clock.
– Primary master PCM, 2M clock and 8K synchronize clock...
– Primary slave PCM, clock provided by external codec.

Examples
AT+CPCM=1
OK
AT+CPCM=?
+CPCM : (0-1),(0-2)
OK
AT+CPCM?
+CPCM : 1,1
OK

4.30 AT+CPCMFMT Change the PCM format
Description
The command allows to change the current PCM format, there are 3 formats currently supported:
linear, u-law, a-law
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CPCMFMT=?

Responses
+CPCMFMT: (list of supported <format>s)

SIM5218_Serial _AT Command Manual_V1.21

59

1/13/2011
SIM5218 Serial AT Command Manual

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

4.31 AT+CPCMREG Control PCM data transfer by diagnostics port
Description
The command is used to control PCM data transfer by diagnostics port.First you should set diagnostics port as data mode by AT+DSWITCH.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CPCMREG=?

Responses
+CPCMREG: (list of supported <n>s)
OK

Read Command
AT+CPCMREG?

Responses
+CPCMREG: <n>

SIM5218_Serial _AT Command Manual_V1.21

60

1/13/2011
SIM5218 Serial AT Command Manual

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
AT+CPCMREG=1
OK

4.32 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>

SIM5218_Serial _AT Command Manual_V1.21

61

1/13/2011
SIM5218 Serial AT Command Manual

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.
1…255 Tone duration of every single tone in 1/10 seconds.

Examples
AT+VTD=?
+VTD: (0-255)
OK
AT+VTD?
+VTD: 0
OK
AT+VTD=5
OK

4.33 AT+CSSN

Supplementary service notifications

Description
The write command enables or disables the presentation of URCs for supplementary services.When
<n>=1 and a supplementary service notification is received after a mobile originated call setup,the
result code “+CSSI: <code1>” is sent to TE before any other MO call setup result codes.When
<m>=1 and a supplementary service notification is received during a mobile terminated call setup
or during a call,unsolicited result code “+CSSU: <code2>” is sent to TE.
The read command displays the current supplementary service notification settings.
The test command displays the list of supported CSSN values.
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
ERROR

Read Command
AT+CSSN?

Responses
+CSSN: <n>,<m>
OK
ERROR

SIM5218_Serial _AT Command Manual_V1.21

62

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CSSN =<n>[,<m>]

Responses
OK
ERROR
+CME ERROR: <err>

Defined values
<n>
a numeric parameter which indicates whether to show “+CSSI: <code1>” result code pres
entation status after a mobile originated call setup
0 – disable
1 – enable
<m>
A numeric parameter which indicates whether to show the “+CSSU: <code2>” result code
presentation status during a mobile terminated call setup or during a call,or when a forward check
supplementary service notification is received.
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
4 – this is CUG call
5 – outgoing calls are barred
6 – incoming calls are barred
7 – CLIR suppression rejected
<code2>
0 – this is a forwarded call
1 – this is a CUG call
2 – call has been put on hold (during a voice call)
3 – call has been retrieved (during a voice call)
4 – multiparty call entered (during a voice call)
5 – call on hold has been released (this is not a SS notification)(during a voice call)
6 – forward check SS message received (can be received whenever)
7 – call is being connected (alerting) with the remote party in alerting state in explicit call
Transfer operation (during a voice call)
8 – call has been connected with the other remote party in explicit call transfer operation
(also number and subaddress parameters may be present) (during a voice call or MT
call setup)

Examples

SIM5218_Serial _AT Command Manual_V1.21

63

1/13/2011
SIM5218 Serial AT Command Manual

AT+CSSN=?
+CSSN: (0-1),(0-1)
OK
AT+CSSN?
+CSSN: 1,1
OK
AT+CSSN=1,1
OK

SIM5218_Serial _AT Command Manual_V1.21

64

1/13/2011
SIM5218 Serial AT Command Manual

5

Video Call Related Commands

5.1

AT+VPMAKE

Originate video call

Description
The command is used to originate a video call. Before issue the command, user can select video call
TX source by AT+VPSOURCE, and select whether record video after video call is connected or not
by AT+VPRECORD.
SIM PIN
YES

References
Vendor

Syntax
Write Command
AT+VPMAKE=<num>

Responses
If connecting:
VPACCEPT
OK
VPRINGBACK
VPSETUP
VPCONNECTED
If not connecting:
VPACCEPT
OK
VPEND

Defined values
<num>
Dialing number.

Examples
AT+VPMAKE=123456789
VPACCEPT
OK
VPRINGBACK
VPSETUP
VPCONNECTED

5.2

AT+VPANSWER

Answer video call

SIM5218_Serial _AT Command Manual_V1.21

65

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command is used to answer an incoming video call. If there is no incoming video call, OK
response is given only.
SIM PIN
YES

References
Vendor

Syntax
Execution Command
AT+VPANSWER

Responses
VPINCOM is reported:
OK
VPSETUP
VPCONNECTED
No incoming video call:
OK

Examples
AT+VPANSWER
OK
VPSETUP
VPCONNECTED

5.3

AT+VPEND

Cancel video call

Description
The command is used to end a video call. If recording video is on going, the command will stop
recording and end video call. In addition, the command can be used to reject an incoming video
call.
SIM PIN
YES

References
Vendor

Syntax
Execution Command
AT+VPEND

Responses
Video call is connected:
OK
VPEND[: <seconds>]
Video call is not connected:
OK

SIM5218_Serial _AT Command Manual_V1.21

66

1/13/2011
SIM5218 Serial AT Command Manual

Defined values
<seconds>
The duration of video call, from VPCONNECTED to VPEND and the unit is in second.

Examples
AT+VPEND
OK
VPEND

5.4

AT+VPDTMF Send DTMF tone during video call

Description
The command is used to send DTMF tone during a connected video call, and it is sent as an H.245
user-input indication (basic string) to the other side.
NOTE The maximal length of DTMF string is 127.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPDTMF=?

Responses
+VPDTMF:(list of supported <vpdtmf>s)
OK

Write Command
AT+VPDTMF=<vpdtmf>

Responses
OK

Defined values
<vpdtmf>
DTMF string consisted of ( 0–9, *, #).

Examples
AT+VPDTMF=”12345”
OK
AT+VPDTMF=”*”
OK

5.5

AT+VPSOURCE

Select video TX source

Description

SIM5218_Serial _AT Command Manual_V1.21

67

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to select video TX source which provides video frames to transmit to remote
party. If select video TX source before video call is connected, the Module will get video frames
from specified TX source when video call is connected.
The command is only effective on current or next video call.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPSOURCE=?

Responses
OK

Write Command
AT+VPSOURCE=
<src>[, <fname>]

Responses
OK

Defined values
<src>
The Module supports three TX sources – CAMERA, STATIC IMAGE, and FILE SOURCE. In
spite of which TX source is used, the size of video frames must be 176* 144(pixel).
1 – Capture video from camera. (default value)
2 – Send a static image, support JPEG and BMP format.
3 – Send video frames from file, support MP4 and 3GP format.
<fname>
Image or video file which is existed in current directory [refer to AT+FSCD], and it includes
extension name.
NOTE
1. If <src>=1, <fname> must be ignored, otherwise <fname> must be specified.
2. If the TX source is CAMERA, please make sure the camera is OK, otherwise, video call may not
be connected successfully.

Examples
AT+VPSOURCE=1
OK
AT+VPSOURCE=2, “image_0.jpg”
OK
AT+VPSOURCE=3, “video_0.mp4”
OK

5.6

AT+VPRECORD

Record video during video call

Description

SIM5218_Serial _AT Command Manual_V1.21

68

1/13/2011
SIM5218 Serial AT Command Manual

Both far-end and near-end video can be recorded in MP4 format during a video call. File name will
be generated automatically based on system time of the Module, and the format is YYYYMMDD_
HHMMSS_f.mp4 and YYYYMMDD_HHMMSS_n.mp4.
YYYYMMDD_HHMMSS_f.mp4 denotes that video recorded is from other side.
YYYYMMDD_HH MMSS_n.mp4 denotes that video recorded is transmitted to remote party.
The storage location of files refers to AT+FSLOCA (<side>=1/2/3).
NOTE The maximal number of video frames that can be recorded is 9000 frames which
corresponds to 10 minutes if FPS is 15. If maximal number is reached, “VP MP4 REACH TIME”
will be reported. If memory for recording video is not enough, “VP MP4 NO MEMORY” will be
reported..
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPRECORD=?

Responses
+VPRECORD:(list of supported <side>s)
OK

Write Command
AT+VPRECORD=<side>

Responses
OK

Defined values
<side>
0
1
2
3
4
5

– not record video.
– only record far-end video.
– only record near-end video.
– record both far-end and near-end.
– record far-end video and send data to host by diag port.
– record near-end video and send data to host by diag port.

Examples
AT+VPRECORD=1
OK
AT+VPRECORD=0
OK

5.7

AT+VPLOOP Loopback far-end video frame during video call

Description
The command is used to loopback video frame from far-end during a connected video call

SIM5218_Serial _AT Command Manual_V1.21

69

1/13/2011
SIM5218 Serial AT Command Manual

SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPLOOP=?
Read Command
AT+VPLOOP?
Write Command
AT+VPLOOP=<num>

Responses
+VPLOOP: (list of supported <num>s)
OK
Responses
+VPLOOP: <num>
OK
Responses
[+VPLOOP: <num>]
OK
No connected video call:
ERROR

Defined values
<num>
Integer type value indicating that it will loopback a video frame after receiving <num> video
frames from remote party.
255
– Not loopback far-end video frame.
1~254 – Interval of video frame; if <num> is too small, it will release video frame from
far-end before previous video frame is looped back.

Examples
AT+VPLOOP=?
+VPLOOP: (1-255)
OK
AT+VPLOOP?
+VPLOOP: 255
OK

5.8

AT+VPSM

Switch video call to CSD mode

Description
The command is used to switch video call to CSD mode. In CSD mode, it will report RING, but not
VPINCOM when remote party originated a video call, and then use command ATA to answer the
incoming call. After call is connected, data stream from network is flowed over the interface, and
command +++ is used to switch from Data Mode to Command Mode, however, the data flow is not

SIM5218_Serial _AT Command Manual_V1.21

70

1/13/2011
SIM5218 Serial AT Command Manual

cancelled and command ATO is forbidden. In CSD mode, command +VPMAKE can’t originate a
video call.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPSM=?
Read Command
AT+VPSM?

Write Command
AT+VPSM=<mode>

Responses
+VPSM: (list of supported <mode>s)
OK
Responses
+VPSM: <mode>
OK
Responses
+VPSM: <mode>
OK
The state of video call is not idle:
ERROR

Defined values
<mode>
Integer type value indicating video call mode or CSD mode.
0 – Normal mode of video call application.
1 – CSD mode.

Examples
AT+VPSM=?
+VPSM: (0,1)
OK
AT+VPSM=0
+VPSM: 0
OK
AT+VPSM?
+VPSM: 0
OK

5.9

AT+VPQLTY Setting video quality

Description
The command is used to setting video quality during video call.

SIM5218_Serial _AT Command Manual_V1.21

71

1/13/2011
SIM5218 Serial AT Command Manual

NOTE The write command must be setting before making a video call. After restart the module,
<fps> will be setting the default value.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+VPQLTY=?

Responses
+VPQLTY: (list of supported <fps>s)
OK

Read Command
AT+VPQLTY?

Responses
+VPQLTY: <fps>
OK
ERROR

Write Command
AT+VPQLTY=<fps>

Responses
OK
ERROR

Defined values
<fps>
5-15 5fps is lower fps; 15fps is higher fps.

Examples
AT+VPQLTY?
+VPQLTY: 15
OK
AT+VPQLTY=?
+VPQLTY: (5-15)
OK
AT+VPQLTY=5
OK

SIM5218_Serial _AT Command Manual_V1.21

72

1/13/2011
SIM5218 Serial AT Command Manual

6

SMS Related Commands

6.1

+CMS ERROR

Message service failure result code

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>
300
301
302
303
304
305
310
311
312
313
314
315
316
317
318
320
321
322
330
331
332

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

SIM5218_Serial _AT Command Manual_V1.21

73

1/13/2011
SIM5218 Serial AT Command Manual

340 NO +CNMA ACK EXPECTED
500 unknown error

Examples
AT+CMGS=02112345678
+CMS ERROR: 304

6.2

AT+CSMS

Select message service

Description
The 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.

SIM5218_Serial _AT Command Manual_V1.21

74

1/13/2011
SIM5218 Serial AT Command Manual

1 – type supported.
<bm>
Broadcast type messages:
0 – type not supported.
1 – type supported.

Examples
AT+CSMS=0
+CSMS:1,1,1
OK
AT+CSMS?
+CSMS:0,1,1,1
OK
AT+CSMS=?
+CSMS:(0-1)
OK

6.3

AT+CPMS

Preferred message storage

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

75

1/13/2011
SIM5218 Serial AT Command Manual

ERROR
+CMS ERROR: <err>

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

6.4

AT+CMGF Select SMS message format

Description

SIM5218_Serial _AT Command Manual_V1.21

76

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to specify the input and output format of the short messages.
SIM PIN
YES

References
3GPP TS 27.005

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

6.5

AT+CSCA SMS service centre address

Description
The command is used to update the SMSC address, through which mobile originated SMS are
transmitted.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

77

1/13/2011
SIM5218 Serial AT Command Manual

YES

3GPP TS 27.005

Syntax
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

6.6

AT+CSCB

Select cell broadcast message indication

Description
The test command returns the supported <operation>s as a compound value.
The read command displays the accepted message types.
Depending on the <operation> parameter, the write command adds or deletes the message types
accepted.
SIM PIN
YES

References
3GPP TS 27.005

Syntax

SIM5218_Serial _AT Command Manual_V1.21

78

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+CSCB=?

Responses
+CSCB: (list of supported <mode>s)
OK
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

6.7

AT+CSDH

Show text mode parameters

Description
The command is used to control whether detailed header information is shown in text mode result
codes.
SIM PIN
YES

References
3GPP TS 27.005

SIM5218_Serial _AT Command Manual_V1.21

79

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Test Command
AT+CSDH=?

Responses
+CSDH: (list of supported <show>s)
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

6.8

AT+CNMA New message acknowledgement to ME/TA

Description
The command confirms 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;

SIM5218_Serial _AT Command Manual_V1.21

80

1/13/2011
SIM5218 Serial AT Command Manual

<+CDS> for <ds>=1.

SIM PIN
YES

References
3GPP TS 27.005

Syntax
Test Command
AT+CNMA=?

Responses
+CNMA: (list of supported <n>s)
OK

Write Command
AT+CNMA=<n>

Responses
if text mode(AT+CMGF=1):
OK
if PDU mode (AT+CMGF=0):
+CNMA: (list of supported <n>s)
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 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

SIM5218_Serial _AT Command Manual_V1.21

81

1/13/2011
SIM5218 Serial AT Command Manual

AT+CNMA
+CMS ERROR:340
(the second time return error, it needs ACK only once)

6.9

AT+CNMI

New message indications to TE

Description
The 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
–

1

–

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.

SIM5218_Serial _AT Command Manual_V1.21

82

1/13/2011
SIM5218 Serial AT Command Manual

2

–

Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line
data mode) and flush them to the TE after reservation. Otherwise forward them
directly to the TE.

<mt>
The rules for storing received SMS depend on its data coding scheme, preferred memory storage
(AT+CPMS) setting and this value:
0
–
No SMS-DELIVER indications are routed to the TE.
1 –
If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed
to the TE using unsolicited result code: +CMTI: <mem3>,<index>.
2 –
SMS-DELIVERs (except class 2 messages and messages in the message waiting
indication group (store message)) are routed directly to the TE using unsolicited
result code:
+CMT:[<alpha>],<length><CR><LF><pdu> (PDU mode enabled); or
+CMT:<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]
<CR> <LF><data>
(text mode enabled, about parameters in italics, refer command Show Text Mode
Parameters AT+CSDH).
3 –
Class 3 SMS-DELIVERs are routed directly to TE using unsolicited result codes
defined in <mt>=2. Messages of other data coding schemes result in indication as
defined in <mt>=1.
<bm>
The rules for storing received CBMs depend on its data coding scheme, the setting of Select CBM
Types (AT+CSCB) and this value:
0 – No CBM indications are routed to the TE.
2 – New CBMs are routed directly to the TE using unsolicited result code:
+CBM: <length><CR><LF><pdu> (PDU mode enabled); or
+CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (text mode enabled)
<ds>
0 – No SMS-STATUS-REPORTs are routed to the TE.
1 – SMS-STATUS-REPORTs are routed to the TE using unsolicited result code:
+CDS: <length><CR><LF><pdu> (PDU mode enabled); or
+CDS: <fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (text mode enabled)
2 – If SMS-STATUS-REPORT is stored into ME/TA, indication of the memory location is
routed to the TE using unsolicited result code: +CDSI: <mem3>,<index>.
<bfr>
0 – TA buffer of unsolicited result codes defined within this command is flushed to the TE
when <mode> 1 to 3 is entered (OK response shall be given before flushing the codes).
1 – TA buffer of unsolicited result codes defined within this command is cleared when
<mode> 1 to 3 is entered.

Examples
AT+CNMI?

SIM5218_Serial _AT Command Manual_V1.21

83

1/13/2011
SIM5218 Serial AT Command Manual

+CNMI: 0,0,0,0,0
OK
AT+CNMI=?
+CNMI: (0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)
OK
AT+CNMI=2,1 (unsolicited result codes after received messages.)
OK

6.10 AT+CMGL List SMS messages from preferred store
Description
The command returns 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>,<length>] <CR><LF><data>[<CR><LF>
+CMGL:<index>,<stat>,<da>/<oa>,[<alpha>],[<scts>][,<tooa>/<t
oda>,<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

SIM5218_Serial _AT Command Manual_V1.21

84

1/13/2011
SIM5218 Serial AT Command Manual

If text mode (AT+CMGF=1), command successful and CBM
storage:
+CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data>[<CR><LF>
+CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages>
<CR><LF><data>[...]]
OK
If PDU mode (AT+CMGF=0) and Command successful:
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[<C
R><LF>
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>
[…]]
OK
+CMS ERROR: <err>

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>

SIM5218_Serial _AT Command Manual_V1.21

85

1/13/2011
SIM5218 Serial AT Command Manual

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).
<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 number. (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 number. (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 number.
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 number.
<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

SIM5218_Serial _AT Command Manual_V1.21

86

1/13/2011
SIM5218 Serial AT Command Manual

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
0…255
<ct>
Command Type
GSM 03.40 TP-Command-Type in integer format
0…255
<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 number. (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

SIM5218_Serial _AT Command Manual_V1.21

87

1/13/2011
SIM5218 Serial AT Command Manual

OK

6.11 AT+CMGR

Read message

Description
The command returns 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:

SIM5218_Serial _AT Command Manual_V1.21

88

1/13/2011
SIM5218 Serial AT Command Manual

+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
0…255
<dcs>
Depending on the command or result code: SMS Data Coding Scheme (default 0), or Cell
Broadcast Data Coding Scheme in integer format.

SIM5218_Serial _AT Command Manual_V1.21

89

1/13/2011
SIM5218 Serial AT Command Manual

<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 number. (e.g. character
2 –

3 –

4 –

Π (GSM 7 bit default alphabet 23) is presented as 17 (IRA 49 and 55)).
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 number. (e.g. octet with integer value 42 is presented to TE
as two characters 2A (IRA 50 and 65)).
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 number.
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 number.

<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).
<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.

SIM5218_Serial _AT Command Manual_V1.21

90

1/13/2011
SIM5218 Serial AT Command Manual

<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
0…255
<ct>
Command Type
GSM 03.40 TP-Command-Type in integer format
0…255
<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 number. (e.g. octet with integer value
42 is presented to TE as two characters 2A (IRA 50 and 65)).

Examples
AT+CMGR=1

SIM5218_Serial _AT Command Manual_V1.21

91

1/13/2011
SIM5218 Serial AT Command Manual

+CMGR: "STO UNSENT","+10011",,145,17,0,0,167,"+8613800100500",145,4
Hello World
OK

6.12 AT+CMGS

Send message

Description
The 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).
<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>

SIM5218_Serial _AT Command Manual_V1.21

92

1/13/2011
SIM5218 Serial AT Command Manual

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

6.13 AT+CMSS

Send message from storage

Description
The 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>
Message Reference

SIM5218_Serial _AT Command Manual_V1.21

93

1/13/2011
SIM5218 Serial AT Command Manual

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).
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

6.14 AT+CMGW Write message to memory
Description
The 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>
OK
ERROR

+CMS ERROR: <err>

Defined values

SIM5218_Serial _AT Command Manual_V1.21

94

1/13/2011
SIM5218 Serial AT Command Manual

<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).
<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

6.15 AT+CMGD

Delete message

Description
The command is used to delete message from preferred message storage <mem1> location
<index>.

SIM5218_Serial _AT Command Manual_V1.21

95

1/13/2011
SIM5218 Serial AT Command Manual

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

6.16 AT+CSMP Set text mode parameters
Description
The 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

References

SIM5218_Serial _AT Command Manual_V1.21

96

1/13/2011
SIM5218 Serial AT Command Manual

YES

3GPP TS 27.005

Syntax
Test Command
AT+CSMP=?

Responses
OK

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

6.17 AT+CMGRO

Read message only

Description
The command returns message with location value <index> from message storage <mem1> to the
TE, but the message’s status don’t change.
SIM PIN
YES

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

97

1/13/2011
SIM5218 Serial AT Command Manual

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>

Defined values
Refer to command AT+CMGR.

Examples

SIM5218_Serial _AT Command Manual_V1.21

98

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMGRO=6
+CMGRO:"REC READ","+8613917787249",,"06/07/10,12:09:38+32",145,4,0,0,"+86138002105
00",145,4
abcd
OK

6.18 AT+CMGMT Change message status
Description
The command is used to change the message status. If the status is unread, it will be changed read.
Other statuses don’t 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

6.19 AT+CMVP Set message valid period
Description
This command is used to set valid period for sending short message.
SIM PIN
YES

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

99

1/13/2011
SIM5218 Serial AT Command Manual

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

6.20 AT+CMGRD

Read and delete message

Description
The command is used to read message, and delete the message at the same time. It integrate
AT+CMGR and AT+CMGD, but it doesn’t change the message status.
SIM PIN
YES

References
Vendor

Syntax
Test Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

100

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMGRD=?

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
Refer to command AT+CMGR.

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

SIM5218_Serial _AT Command Manual_V1.21

101

1/13/2011
SIM5218 Serial AT Command Manual

OK

6.21 AT+CMGSO

Send message quickly

Description
The command is used to send message from a TE to the network (SMS-SUBMIT). But it’s 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

+CMS ERROR: <err>

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
<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).
<text>
Content of message.

SIM5218_Serial _AT Command Manual_V1.21

102

1/13/2011
SIM5218 Serial AT Command Manual

<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

6.22 AT+CMGWO

Write message to memory quickly

Description
The command stores message (either SMS-DELIVER or SMS-SUBMIT) to memory storage
<mem2>. But it’s 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>
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.
<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

SIM5218_Serial _AT Command Manual_V1.21

103

1/13/2011
SIM5218 Serial AT Command Manual

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).
<text>
Content of message.
<pducontent>
Content of message.

Examples
AT+CMGWO="13012832788","ABCD"
+CMGWO: 1
OK

6.23 AT+CMGSEX

Send message

Description
The 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>
If PDU mode(AT+CMGF=
0):
AT+CMGSEX=<length><C
R>
PDU is entered
<CTRL-Z/ESC>

Responses
If text mode (AT+CMGF=1) and sending successfully:
+CMGSEX: <mr>
OK
If PDU mode(AT+CMGF=0) and sending successfully:
+CMGSEX: <mr>
OK
If sending fails:
ERROR
If sending fails:
+CMS ERROR: <err>

SIM5218_Serial _AT Command Manual_V1.21

104

1/13/2011
SIM5218 Serial AT Command Manual

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).
<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. It’s 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

6.24 AT+CMGENREF Generate a new message reference
Description
The command is used to generate a new message reference which can be used by AT+CMGSEX.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

105

1/13/2011
SIM5218 Serial AT Command Manual

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

SIM5218_Serial _AT Command Manual_V1.21

106

1/13/2011
7

Camera Related Commands

7.1

AT+CCAMS

Start camera

Description
The command is used to start camera. Make sure the sensor is existent and connect well. Camera
must be started before taking picture or recording video.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCAMS

Responses
OK
If have no sensor:
CAMERA NO SENSOR
ERROR
If camera has started:
CAMERA INVALID STATE
ERROR

Examples
AT+CCAMS
OK

7.2

AT+CCAME

Stop camera

Description
The command is used to stop camera.
If AT+CCAMTP has executed to take a picture and the picture is not saved by AT+CCAMEP, the
picture will not be saved after AT+CCAME execution.
If AT+CCAMRS has executed to record video and that is not ended by AT+CCAMRE, the video
file will be stopped recording and saved after AT+CCAME execution.
SIM PIN
NO

Syntax

References
Vendor
SIM5218 Serial AT Command Manual

Execution Command
AT+CCAME

Responses
OK
If camera has stopped:
CAMERA NOT START
ERROR

Examples
AT+CCAME
OK

7.3

AT+CCAMSETD

Set camera dimension

Description
The command is used to set dimension of camera.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CCAMSETD=
<width>,<height>

Responses
OK
If camera in a wrong state:
CAMERA INVALID S TATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<width> * <height>
Image mode STAMP
QQVGA
QCIF
QVGA
CIF
VGA
XGA
4VGA
SXGA

80 * 48
160 * 120
176 * 144
320 * 240
352 * 288
640 * 480
1024 * 768
1280 * 960
1280 * 1024

SIM5218_Serial _AT Command Manual_V1.21

108

1/13/2011
SIM5218 Serial AT Command Manual

UXGA
STAMP
QCIF
QVGA

Video mode

1600 * 1200
80 * 48
176 * 144
320 * 240

Examples
AT+CCAMSETD=320,240
OK

7.4

AT+CCAMSETF Set camera FPS

Description
The command is used to set FPS (frame per second). It is acting when recording video.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CCAMSETF=<fps>

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<fps>
0
1
2

– 7.5 fps
– 10 fps
– 15 fps

Examples
AT+CCAMSETF=1
OK

7.5

AT+CCAMSETR

Set camera rotation

SIM5218_Serial _AT Command Manual_V1.21

109

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command is used to set the rotation degree of camera.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CCAMSETR=
<rotation_degree>

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<rotation_degree>
0
– not rotate .
90 – rotate 90 degrees clockwise.
180 – rotate 180 degrees clockwise.
270 – rotate 270 degrees clockwise.

Examples
AT+CCAMSETR=90
OK

7.6

AT+CCAMSETN

Set camera night shot mode

Description
The command is used to set night shot mode of camera.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CCAMSETN=
<nightsoht>

Responses
OK
If camera in a wrong state:

SIM5218_Serial _AT Command Manual_V1.21

110

1/13/2011
SIM5218 Serial AT Command Manual

CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<nightsoht>
0 – off
1 – on

Examples
AT+CCAMSETN=1
OK

7.7

AT+CCAMSETWB

Set camera white balance

Description
The command is used to set white balance.
SIM PIN

References

NO

Vendor

Syntax
Write Command
AT+CCAMSETWB=<wb>

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<wb>
1
4
5
6

–
–
–
–

auto
fluorescent
daylight
cloudy daylight

SIM5218_Serial _AT Command Manual_V1.21

111

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CCAMSETWB=1
OK

7.8

AT+CCAMSETB

Set camera brightness

Description
The command is used to set brightness.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CCAMSETB=
<brightness>

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<brightness>
Range is 0-6 (0 is the lowest, 6 is the highest).

Examples
AT+CCAMSETB=1
OK

7.9

AT+CCAMSETZ

Set camera zoom

Description
The command is used to set zoom in/out.
SIM PIN
NO

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

112

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+CCAMSETZ=?

Responses
+CCAMSETZ:(<zmin>-<zmax>),(<zcurrent>)
OK

Write Command
AT+CCAMSETZ=<zoom>

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<zoom>
Range is 0-91 (0 is the lowest, 91 is the highest).
<zmin>
The minimum of zoom for current dimension.
<zmax>
The maximum of zoom for current dimension.
<zcurrent>
The current zoom value.
NOTE
1.
2.

Before set the zoom for camera, please check response of command (AT+CCAMSETZ=?).
Current value will be set <zmax> instead of your set if <zoom> out of current range limits.
<zmax> is different to each image dimension.

Examples
AT+CCAMSETZ=?
+CCAMSETZ:(0-30)(0)
OK
AT+CCAMSETZ=15
OK

7.10 AT+CCAMTP Take picture
Description

SIM5218_Serial _AT Command Manual_V1.21

113

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to take a picture after camera is started and setting parameters if need.
NOTE AT+CCAMTP is used to take a picture, but not save; and AT+CCAMEP is used to save the
picture after AT+CCAMTP execution. If AT+CCAMTP is executed more times continuously,
AT+CCAMEP will save the picture which is taken by the last AT+CCAMTP.
NOTE If GPS is running and fixed already, the GPS information (include latitude, longitude, altitude
and Date-Time) will store in JPEG EXIF tab when taking picture.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCAMTP

Responses
OK
If storage space is full:
CAMERA NO MEMORY
ERROR
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Examples
AT+CCAMTP
OK

7.11 AT+CCAMEP Save picture
Description
The command is used to save a picture taken by last AT+CCAMTP in JPEG format. File name is
generated automatically based on system time [refer AT+CCLK], and the storage location of picture
refers to AT+FSLOCA.
SIM PIN
NO

References
Vendor

Syntax
Execution Command

AT+CCAMEP

Responses
<path_name>

SIM5218_Serial _AT Command Manual_V1.21

114

1/13/2011
SIM5218 Serial AT Command Manual

OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<path_name>
If saved in ME:
“C:/Picture/YYYYMMDD_HHMMSS.jpg”
If saved in SD card:
“D:/Picture/YYYYMMDD_HHMMSS. jpg”.

Examples
AT+CCAMEP
C:/Picture/20080420_120303.jpg
OK

7.12 AT+CCAMRS

Start video record

Description
The command is used to start video recording and save the video file by MP4 format. The name of
video file will be generated automatically based on system time [refer AT+CCLK], and the storage
location of video file refers to AT+FSLOCA.
Note If storage space isn’t enough during recording, the module will stop recording video and
save the media file. Before AT+CCAMRS execution, please make sure the current dimension is
supported for recording video.
SIM PIN
NO

References
Vendor

Syntax
Execution Command

AT+CCAMRS

Responses
<path_name>
OK
If storage space is full:
CAMERA NO MEMORY

SIM5218_Serial _AT Command Manual_V1.21

115

1/13/2011
SIM5218 Serial AT Command Manual

ERROR
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera has a wrong dimension:
CAMERA INVALID DIMENSION FORMAT
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Defined values
<path_name>
If saved in ME:
“C:/Video/YYYYMMDD_HHMMSS.mp4”
If saved in SD card:
“D:/Video/YYYYMMDD_HHMMSS. mp4”.

Examples
AT+CCAMRS
C:/Video/20080420_123003.mp4
OK

7.13 AT+CCAMRP Pause video record
Description
The execution command pause record during recording video by camera.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCAMRP

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START

SIM5218_Serial _AT Command Manual_V1.21

116

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Examples
AT+CCAMRP
OK

7.14 AT+CCAMRR

Resume video record

Description
The command is used to resume video record, and it executes after record pause by AT+CCAMRP.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCAMRR

Responses
OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Examples
AT+CCAMRR
OK

7.15 AT+CCAMRE

Stop video record

Description
The command is used to stop video record, and it is corresponding to AT+CCAMRS.
SIM PIN
NO

References
Vendor

Syntax
Execution Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

117

1/13/2011
SIM5218 Serial AT Command Manual

AT+CCAMRE

OK
If camera in a wrong state:
CAMERA INVALID STATE
ERROR
If camera not starting:
CAMERA NOT START
ERROR

Examples
AT+CCAMRE
OK

7.16 AT+CCAMMD

Switch the AK8856 mode

Description
This command is used to switch the chip AK8856’s working mode between PAL and NTSC, if
you have an analog sensor of PAL or NTSC connected to AK8856 then you can use this command
to set ak8856 working under the appropriate mode.
This command is savable which means the system will recover to the latest mode if the module
restarted.
Default mode is PAL.
SIM PIN
No

References
Vendor

Syntax
Test Command
AT+CCAMMD=?

Responses
+ CCAMMD: (0-1)
OK

Read Command
AT+ CCAMMD?

Responses
+ CCAMMD: (current mode)
OK

Write Command

Responses
OK

AT+CCAMMD
=<mode>
Defined values
< mode >
0 PAL
1 NTSC

SIM5218_Serial _AT Command Manual_V1.21

118

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CCAMMD=1
OK
AT+CCAMMD=0
OK

7.17 AT+CCAMCHL Select the input channel of AK8856
Description
This command is used to select the valid input channel of AK8856, since AK8856 supports 2
input channels, so one must select the right channel first.
This command is savable and the default channel is 1.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CCAMCHL=?

Responses
+CCAMCHL: (1-2)
OK

Read Command
AT+CCAMCHL?

Responses
+ CCAMCHL: <channel>
OK

Write Command
AT+ CCAMCHL =<
channel >

Responses
OK
ERROR

Defined values
< channel >:
1 : channel 1
2 : channel 2

Examples
AT+CCAMCHL=1
OK
AT+ CCAMCHL?
+CCAMCHL: 1
OK

SIM5218_Serial _AT Command Manual_V1.21

119

1/13/2011
SIM5218 Serial AT Command Manual

8

Audio Application Commands

8.1

AT+CQCPREC

Start recording sound clips

Description
The command is used to start recording sound clip. The name of audio file will be generated
automatically based on system time [refer AT+CCLK], and the storage location of audio file refers
to AT+FSLOCA.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CQCPREC=
<source>,<format>

Responses
<path_name>
+AUDIOSTATE: audio record
OK

Defined values
<source>
0 – local path
1 – remote path
<format>
Format of the audio file:
amr – AMR format
qcp – QCP format
<path_name>
If saved in ME:
“C:/Audio/YYYYMMDD_HHMMSS.amr”
If saved in SD card:
“D:/Audio/YYYYMMDD_HHMMSS.amr”.
NOTE During GSM call is only applicable to QCP file.

Examples
AT+CQCPREC= 0,amr
C:/Audio/20080520_120303.amr
OK

SIM5218_Serial _AT Command Manual_V1.21

120

1/13/2011
SIM5218 Serial AT Command Manual

AT+CQCPREC= 1,qcp
C:/Audio/20080520_120506.qcp
OK

8.2

AT+CQCPPAUSE

Pause sound record

Description
The execution command pause record sound.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CQCPPAUSE

Responses
OK

Examples
AT+CQCPPAUSE
OK

8.3

AT+CQCPRESUME

Resume sound record

Description
The command is used to resume sound record.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CQCPRESUME

Responses
OK

Examples
AT+CQCPRESUME
OK

8.4

AT+CQCPSTOP Stop sound record

SIM5218_Serial _AT Command Manual_V1.21

121

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command is used to stop sound record. Execute the command during recording sound.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CQCPSTOP

Responses
+AUDIOSTATE: audio record stop
OK

Examples
AT+CQCPSTOP
OK

8.5

AT+CCMXPLAY Play audio file

Description
The command is used to play an audio file.

SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CCMXPLAY=?

Responses
CCMXPLAY: (0-3),(0-255)
OK

Write Command
AT+CCMXPLAY=
<file_name>[,<play_path>]

Responses
+AUDIOSTATE: audio play
OK

Defined values
<file_name>
The name of audio file.
<play_path>

SIM5218_Serial _AT Command Manual_V1.21

122

1/13/2011
SIM5218 Serial AT Command Manual

0 – local path (If <play_path> is omitted, default value is used.)
1 – local path during call
2 – remote path during call
3 – both path during call
NOTE <play_path>=1, 2 or 3 must be used during call. GSM call is only applicable to QCP file,
and UMTS call is only applicable to AMR file.

Examples
AT+FSCD=Audio
+FSCD: C:/Audio/
OK
AT+FSCD?
+FSCD: C:/Audio/
OK
AT+CCMXPLAY=”20080520_120303.amr”,0
OK

8.6

AT+CCMXPAUSE

Pause playing audio file

Description
The command is used to pause playing audio file.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCMXPAUSE

Responses
+AUDIOSTATE: audio play pause
OK

Examples
AT+CCMXPAUSE
OK

8.7

AT+CCMXRESUME

Resume playing audio file

Description
The command is used to resume playing audio file.

SIM5218_Serial _AT Command Manual_V1.21

123

1/13/2011
SIM5218 Serial AT Command Manual

SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCMXRESUME

Responses
+AUDIOSTATE: audio play
OK

Examples
AT+CCMXRESUME
OK

8.8

AT+CCMXSTOP Stop playing audio file

Description
The command is used to stop playing audio file. Execute this command during audio playing.
SIM PIN
NO

References
Vendor

Syntax
Execution Command
AT+CCMXSTOP

Responses
+AUDIOSTATE: audio play stop
OK

Examples
AT+CCMXSTOP
OK

8.9

AT+CECM

Enable/Disable Echo Canceller

Description
This command is used to select the echo cancellation mode. Each audio channel has it’s own
default echo cancellation mode. For example:
Handset: at+cecm=1(default open)
Headset: at+cecm=2(default open)

SIM5218_Serial _AT Command Manual_V1.21

124

1/13/2011
SIM5218 Serial AT Command Manual

Speaker: at+cecm=4(default open)
PCM:

at+cecm=5(default open)

SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CECM=?

Responses
+CECM: (0-8)
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 for dynamic adjustion
7 : EC mode for dynamic adjustion
8 : EC mode for dynamic adjustion

Examples
AT+CECM=0
OK
AT+ CECM =1
OK
Note: User should use this AT command together with other related audio AT commands like “CSDVC ”,
“CPCM” and so on.

8.10 AT+CNSM Enable/Disable Noise Suppression

SIM5218_Serial _AT Command Manual_V1.21

125

1/13/2011
SIM5218 Serial AT Command Manual

Description
This command is used to enable/disable noise suppression. The default value is enable.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CNSM=?

Responses
+CNSM: (0-1)
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

Examples
AT+CNSM=0
OK
AT+ CNSM =1
OK
Note: User should use this AT command together with other related audio AT commands like “CSDVC ”,
“CPCM” and so on.

8.11 AT+CECSET Adjust the effect for the given echo cancellation 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 +ECM command.
This is a savable command.
SIM PIN
NO

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

126

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Test Command
AT+CECSET=?

Responses
+CECSET: (0-31), (0-65535)
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 +CECM for more details
< index >:
0 – 31, EC has 32 parameters, this is the index of the selected parameter.
< value >:
0 – 65535, EC parameter value.

Examples
AT+CSDVC=1
OK
AT+ CECM =6
OK
AT+ CECSET=0,65530
OK
AT+ CECSET=1,1000
OK
NOTE:
1. Currently only three EC mode’s parameters can be adjusted, they are 6, 7 and 8 you can use +ECM to
select one of these modes.
2. You have to use +ECM to select the right EC mode first in order to change the parameters.

SIM5218_Serial _AT Command Manual_V1.21

127

1/13/2011
SIM5218 Serial AT Command Manual

9

Network Service Related Commands

9.1

AT+CREG Network registration

Description
Write command controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1
and there is a change in the ME network registration status.
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.
SIM PIN
YES

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

– disable network registration unsolicited result code
– enable network registration unsolicited result code +CREG: <stat>
– there is a change in the ME network registration status or a change of the network cell:
+CREG: <stat>[,<lac>,<ci>]

<stat>
0 – not registered, ME is not currently searching a new operator to register to

SIM5218_Serial _AT Command Manual_V1.21

128

1/13/2011
SIM5218 Serial AT Command Manual

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>
Two byte cell ID in hexadecimal format.

Examples
AT+CREG?
+CREG: 0,1
OK

9.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
NO

References
3GPP TS 27.007

Syntax
Test Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

129

1/13/2011
SIM5218 Serial AT Command Manual

AT+COPS=?

+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
1 – available
2 – current
3 – forbidden
<AcT>
Access technology selected

SIM5218_Serial _AT Command Manual_V1.21

130

1/13/2011
SIM5218 Serial AT Command Manual

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),(0,1,2)
OK

9.3

AT+CLCK

Facility lock

Description
The 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>
[...]]
OK
+CME ERROR: <err>

Defined values

SIM5218_Serial _AT Command Manual_V1.21

131

1/13/2011
SIM5218 Serial AT Command Manual

<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.
<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
64 – dedicated packet access
128 – dedicated PAD access
255 – The value 255 covers all classes

Examples
AT+CLCK="SC",2
+CLCK: 0
OK

SIM5218_Serial _AT Command Manual_V1.21

132

1/13/2011
SIM5218 Serial AT Command Manual

9.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 (only for <mode>=0)
"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
"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>

SIM5218_Serial _AT Command Manual_V1.21

133

1/13/2011
SIM5218 Serial AT Command Manual

Integer type, max length of password.

Examples
AT+CPWD=?
+CPWD: ("AB",4),("SC",8),("P2",8)
OK

9.5

AT+CLIP Calling line identification presentation

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

134

1/13/2011
SIM5218 Serial AT Command Manual

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>
String type phone number of calling address 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 phone
book.
<CLI validity>
0 – CLI valid
1 – CLI has been withheld by the originator
2 – CLI is not available due to interworking problems or limitations of originating
network

Examples
AT+CLIP=1
OK
RING (with incoming call)
+CLIP: "02152063113",128,,,"gongsi",0

9.6

AT+CLIR

Calling line identification restriction

Description

SIM5218_Serial _AT Command Manual_V1.21

135

1/13/2011
SIM5218 Serial AT Command Manual

The 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
AT+CLIR =?

Responses
+CLIR: (list of supported <n>s)
OK

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

– presentation indicator is used according to the subscription of the CLIR service
– CLIR invocation
– CLIR suppression

0
1
2
3
4

– CLIR not provisioned
– CLIR provisioned in permanent mode
– unknown (e.g. no network, etc.)
– CLIR temporary mode presentation restricted
– CLIR temporary mode presentation allowed

<m>

Examples

SIM5218_Serial _AT Command Manual_V1.21

136

1/13/2011
SIM5218 Serial AT Command Manual

AT+CLIR=?
+CLIR:(0-2)
OK

9.7

AT+COLP Connected line identification presentation

Description
The 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.
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>

SIM5218_Serial _AT Command Manual_V1.21

137

1/13/2011
SIM5218 Serial AT Command Manual

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
AT+COLP?
+COLP: 1,0
OK
ATD10086;
VOICE CALL: BEGIN
+COLP: "10086",129,,,
OK

9.8

AT+CCUG Closed user group

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

138

1/13/2011
SIM5218 Serial AT Command Manual

+CME ERROR: <err>
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

9.9

AT+CCFC

Call forwarding number and conditions

Description
The 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

Responses
When <mode>=2 and command successful:
+CCFC: <status>,<class1>[,<number>,<type>

SIM5218_Serial _AT Command Manual_V1.21

139

1/13/2011
SIM5218 Serial AT Command Manual

me> ]]]]]]

[,<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>.
<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>

SIM5218_Serial _AT Command Manual_V1.21

140

1/13/2011
SIM5218 Serial AT Command Manual

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

9.10 AT+CCWA Call waiting
Description
The 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>,[<alpha>][,<CLI validity>] 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

SIM5218_Serial _AT Command Manual_V1.21

141

1/13/2011
SIM5218 Serial AT Command Manual

+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>
When <mode> parameter is not given, network is not interrogated:
0 – disable
1 – enable
2 – query status
<class>
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)
7
– voice,data and fax(1+2+4)
8
– short message service
16
– data circuit sync
32
– data circuit async
64 – dedicated packet access
128 – dedicated PAD access
<status>
0 – not active
1 – active
<number>
String type phone number of calling address in format specified by <type>.
<type>
Type of address octet in integer format;
128 – Restricted number type includes unknown type and format
145 – International number type
129 – Otherwise
<alpha>
Optional 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.
<CLI validity>
0 – CLI valid

SIM5218_Serial _AT Command Manual_V1.21

142

1/13/2011
SIM5218 Serial AT Command Manual

1
2

– CLI has been withheld by the originator.
– CLI is not available due to interworking problems or limitations of originating
network.

Examples
AT+CCWA=?
+CCWA:(0-1)
OK
AT+CCWA?
+CCWA: 0
OK

9.11 AT+CHLD

Call related supplementary services

Description
The command allows the control of 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.
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

SIM5218_Serial _AT Command Manual_V1.21

143

1/13/2011
SIM5218 Serial AT Command Manual

<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

9.12 AT+CUSD

Unstructured supplementary service data

Description
The 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
AT+CUSD?

Responses
+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):

SIM5218_Serial _AT Command Manual_V1.21

144

1/13/2011
SIM5218 Serial AT Command Manual

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

9.13 AT+CAOC

Advice of charge

Description
The 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.
The 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

SIM5218_Serial _AT Command Manual_V1.21

145

1/13/2011
SIM5218 Serial AT Command Manual

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
(if <mode>=0)
+CAOC: <ccm>
OK
(if <mode>=1 or 2)
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.

Examples
AT+CAOC=0
+CAOC: "000000"
OK

9.14 AT+CSSN

Supplementary service notifications

SIM5218_Serial _AT Command Manual_V1.21

146

1/13/2011
SIM5218 Serial AT Command Manual

Description
The 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:
0 – disable
1 – 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

SIM5218_Serial _AT Command Manual_V1.21

147

1/13/2011
SIM5218 Serial AT Command Manual

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

9.15 AT+CLCC

List current calls

Description
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
OK

Read Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

148

1/13/2011
SIM5218 Serial AT Command Manual

AT+CLCC

+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
<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 cal:
0 – active
1 – held
2 – dialing (MO call)
3 – alerting (MO call)
4 – incoming (MT call)
5 – waiting (MT call)
<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>

SIM5218_Serial _AT Command Manual_V1.21

149

1/13/2011
SIM5218 Serial AT Command Manual

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
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

9.16 AT+CPOL Preferred operator list
Description
The command is used to edit the SIM preferred list of networks.
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>[<CR><LF>
+CPOL: <index2>,<format>,<oper2>
[...]]
OK

Write Command
AT+CPOL=<index>
[,<form-at>[,<oper>]]

Responses
OK
ERROR
+CME ERROR: <err>

Defined values
<index>

SIM5218_Serial _AT Command Manual_V1.21

150

1/13/2011
SIM5218 Serial AT Command Manual

Integer type, the order number of operator in the SIM preferred operator list.
<format>
0 – long format alphanumeric <oper>
1 – short format alphanumeric <oper>
2 – numeric <oper>
<operX>
String type.

Examples
AT+CPOL?
+CPOL: 1,2,"46001"
OK
AT+CPOL=?
+CPOL: (1-10),(0-2)
OK

9.17 AT+COPN

Read operator names

Description
Execute command returns 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>

SIM5218_Serial _AT Command Manual_V1.21

151

1/13/2011
SIM5218 Serial AT Command Manual

String type, operator in long alphanumeric format (see AT+COPS).

Examples
AT+COPN
+COPN: "46000","China Mobile Com"
+COPN: "46001"," China Unicom"
……
OK

9.18 AT+CNMP Preferred mode selection
Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

152

1/13/2011
SIM5218 Serial AT Command Manual

OK

9.19 AT+CNBP Preferred band selection
Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

153

1/13/2011
SIM5218 Serial AT Command Manual

49
50

WCDMA_VIII_900
WCDMA_IX_1700

Examples
AT+CNBP=0x000700000FFF0380
OK
AT+CNBP?
+CNBP: 0xFFFFFFFF3FFFFFFF
OK

9.20 AT+CNAOP Acquisitions order preference
Description
Write command resets 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?

SIM5218_Serial _AT Command Manual_V1.21

154

1/13/2011
SIM5218 Serial AT Command Manual

+CNAOP: 2
OK

9.21 AT+CNSDP Preferred service domain selection
Description
Write command resets 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

9.22 AT+CPSI

Inquiring UE system information

Description

SIM5218_Serial _AT Command Manual_V1.21

155

1/13/2011
SIM5218 Serial AT Command Manual

The command returns the UE system information.
SIM PIN
NO

References
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>,<Location
ID>,<Cell ID>,<Absolute RF Ch Num>, <RX Level>,

Area

<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>,<RX Level>
OK
ERROR
Write Command
AT+CPSI=<time>

Responses
OK
ERROR

Defined values
<time>
The range is 0-255, unit is second, after set <time> will report the system information every the
seconds.
<System Mode>
System mode, values: “NO SERVICE”, “GSM” or “WCDMA”.
<Operation Mode>
UE operation mode, values: “Online”, “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>

SIM5218_Serial _AT Command Manual_V1.21

156

1/13/2011
SIM5218 Serial AT Command Manual

Service-cell ID.
<Absolute RF Ch Num>
AFRCN for service-cell.
<Track LO Adjust>
Track LO Adjust
<C1>
Coefficient for base station selection
<C2>
Coefficient for Cell re-selection
<Frequency Band>
Frequency Band of active set
<PSC>
Primary synchronization code of active set.
<Freq>
Downlink frequency of active set.
<SSC>
Secondary synchronization code of active set
<EC/IO>
Ec/Io value
<RSCP>
Received Signal Code Power
<Qual>
Quality value for base station selection
<RX Level>
RX level value for base station selection
<Location Area ID>
Mobile Country Code- Mobile Network Code (PLMN code) and Location Area Code (hexadecimal
digits)

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
OK
AT+CPSI=?
+CPSI: (0-255)
OK

9.23 AT+CNSMOD

Show network system mode

SIM5218_Serial _AT Command Manual_V1.21

157

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command returns the current network system mode.
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
1
<state>
0
1
2
3
4
5
6
7

– disable auto report the network system mode information
– auto report the network system mode information, command: +CNSMOD:<stat>
– no service
– GSM
– GPRS
– EGPRS (EDGE)
– WCDMA
– HSDPA only
– HSUPA only
– HSPA (HSDPA and HSUPA)

Examples
AT+CNSMOD?
+CNSMOD: 0,2
OK

SIM5218_Serial _AT Command Manual_V1.21

158

1/13/2011
SIM5218 Serial AT Command Manual

9.24 AT+CTZU

Automatic time and time zone update

Description
The command is used to enable and 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 doesn’t 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
OK

SIM5218_Serial _AT Command Manual_V1.21

159

1/13/2011
SIM5218 Serial AT Command Manual

9.25 AT+CTZR

Time and time zone reporting

Description
The command is used to enable and 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 doesn’t equal to local time zone, and
if the informations from network don’t include date and time, time zone will be only 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)
+CTZV: 32,08/12/09,17:00:00,1 (Report time, time zone and daylight saving time)
For more detailed informations about time and time zone, please refer 3GPP TS 24.008.

SIM5218_Serial _AT Command Manual_V1.21

160

1/13/2011
SIM5218 Serial AT Command Manual

<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

9.26 AT+CCINFO

Show cell system information

Description
The command is used to inquire serving cell and neighbour cell system information in GSM.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CCINFO=?

Responses
OK

Execution Command
AT+CCINFO

Responses
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>
+CCINFO:[<NCELLn>],ARFCN:<arfcn>,MCC:<mcc>,MNC:<m
nc>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,C1:<c1>,C2
:<c2>
[…]
When ME in dedicated mode:
+CCINFO:[<SCELL>],ARFCN:<arfcn>,MCC:<mcc>,MNC:<mnc
>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,C1:<c1>,C2:<

SIM5218_Serial _AT Command Manual_V1.21

161

1/13/2011
SIM5218 Serial AT Command Manual

c2>TA:<TA>
+CCINFO:[<NCELLn>],ARFCN:<arfcn>,BSIC:<bsic>,RXLev:<r
xlev>
[…]

Defined values
<SCELL>
indicate serving cell

<NCELLn>
available neighbour cell index
<arfcn>
assigned radio channel
<mcc>
mobile country code
<mnc>
mobile network code
<lac>
localization area code
<id>
cell identifier
<bsic>
base station identification code
<rxlev>
received signal strength in dBm
<TA>
timing advance
<C1>
Coefficient for base station selection
<C2>
Coefficient for Cell re-selection

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
+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

SIM5218_Serial _AT Command Manual_V1.21

162

1/13/2011
SIM5218 Serial AT Command Manual

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,TA:0
+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

9.27 AT+CSCHN

Show cell channel information

Description
The 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>

SIM5218_Serial _AT Command Manual_V1.21

163

1/13/2011
SIM5218 Serial AT Command Manual

HSN
<maio>
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

9.28 AT+CSRP Show serving cell radio parameter
Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

164

1/13/2011
SIM5218 Serial AT Command Manual

<rxlevsub>
received sub signal strength in dBm
<rxqualfull>
full quality of reception
<rxqualsub>
sub quality of reception
<pwrc>
PWRC
<dtx>
DTX
<rlt>
radio link timeout

Examples
AT+CSRP
+CSRP:ARFCN:11,RXLevFull:-88dbm,RXLevSub:-89dbm,RXQualFull:7,RXQualSub:7,PWRC:1,
DTX:0,RLT:32
OK

9.29 AT+CRUS

Show cell set system information

Description
The execution command returns 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

SIM5218_Serial _AT Command Manual_V1.21

165

1/13/2011
SIM5218 Serial AT Command Manual

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,

SIM5218_Serial _AT Command Manual_V1.21

166

1/13/2011
SIM5218 Serial AT Command Manual

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

9.30 AT+CPLMNWLIST Manages PLMNs allowed by customer
Description
The command is used to manage the PLMN list allowed by customer. After setting the plmnwlist,
the module needs to be restart.
SIM PIN
NO

References
Vendor

Syntax
Read Command
AT+CPLMNWLIST?

Responses
+CPLMNWLIST: <plmnwlist>
OK

Write Command
AT+CPLMNWLIST=<plmn
wlist>

Responses
OK
ERROR

Defined values
<plmnwlist>
The list of PLMN separated by semicolon. The maximum count of the items in the list is 10.
Empty list represents no filter. If the CPASSMGR has set password for this command, the password
must be verified before operating this command.

Examples
AT+CPLMNWLIST= “46000;46001”
OK
AT+CPLMNWLIST=””
OK
AT+CPLMNWLIST?
+CPLMNWLIST: “46000;46001”
OK

9.31 AT+CPASSMGR Manage password
Description

SIM5218_Serial _AT Command Manual_V1.21

167

1/13/2011
SIM5218 Serial AT Command Manual

The 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
<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

9.32 AT+CNSVSQ

Network band scan quickly

Description
The 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 given in the format of string.
SIM PIN
NO

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

168

1/13/2011
SIM5218 Serial AT Command Manual

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
+CNSVSQ: NOT IN GSM (if in Wideband CDMA (WCDMA)
mode)
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.

Examples
AT+CNSVSQ

SIM5218_Serial _AT Command Manual_V1.21

169

1/13/2011
SIM5218 Serial AT Command Manual

Network survey started…
For BCCH-Carrier:
arfcn: 16,bsic: 45,dBm: -75
……
For non BCCH-Carrier:
arfcn: 89,dBm: -82
arfcn: 1011,dBm: -86
……
Network survey end
OK

9.33 AT+CNSVS

Network full band scan in string format

Description
The 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 given in the format of string.
SIM PIN
NO

References
Vendor

Syntax
Read Command
AT+CNSVS?
Write Command
AT+CNSVS=<s>,<e>

AT+CNSVS=<arfcn_index>

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>]
[…]
Network survey end
OK
If BCCH-Carrier:

SIM5218_Serial _AT Command Manual_V1.21

170

1/13/2011
SIM5218 Serial AT Command Manual

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
+CNSVS: NOT IN GSM (if in Wideband CDMA (WCDMA)
mode)
OK

Defined values
<count>
the count of arfcn.
<s>
starting channel.
<e>

SIM5218_Serial _AT Command Manual_V1.21

171

1/13/2011
SIM5218 Serial AT Command Manual

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.
<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 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+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

SIM5218_Serial _AT Command Manual_V1.21

172

1/13/2011
SIM5218 Serial AT Command Manual

12 14 19 20 21 22 23 24 25 27 28 36 516 525 528 552 556 564 568 572 584 600
……
For non BCCH-Carrier:
arfcn: 694,dBm: -94
……
Network survey end
OK

9.34 AT+CNSVN

Network full band scan in numeric format

Description
The 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 given in the format of string.
SIM PIN
NO

References
Vendor

Syntax
Read Command
AT+CNSVN?
Write Command
AT+CNSVN=<s>,<e>

AT+CNSVN=<arfcn_index>

Responses
+CNSVN: <count>
OK
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
available]>]
[…]
For non BCCH-Carrier:
[<arfcn_value>,<dBm_value>]
[…]
Network survey end
OK
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

SIM5218_Serial _AT Command Manual_V1.21

173

1/13/2011
SIM5218 Serial AT Command Manual

available]>
OKIf non BCCH-Carrier:
<arfcn_value>,<dBm_value>
OK
+CNSVN: NOT IN GSM
OK
+CNSVN: arfcn index invalid
OK
Execution Command
AT+CNSVN

ERROR
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
available]>]
[…]
For non BCCH-Carrier:
[<arfcn_value>,<dBm_value>]
[…]
Network survey end
OK

+CNSVN: NOT IN GSM

(if in Wideband CDMA (WCDMA)

mode)
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.

SIM5218_Serial _AT Command Manual_V1.21

174

1/13/2011
SIM5218 Serial AT Command Manual

<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 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…
For BCCH-Carrier:
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
……
For non BCCH-Carrier:
694, -94
……
Network survey end
OK

9.35 AT+CNSVUS

Network band scan by channels in string

SIM5218_Serial _AT Command Manual_V1.21

175

1/13/2011
SIM5218 Serial AT Command Manual

Description
The 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
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>

SIM5218_Serial _AT Command Manual_V1.21

176

1/13/2011
SIM5218 Serial AT Command Manual

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 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

9.36 AT+CNSVUN

Network band scan by channels in numeric

Description
The command is used to performing a quick survey of user defined channels. It scans the given
channels. The result is given in numeric format.
SIM PIN
NO

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

177

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Write Command
AT+CNSVUN=<ch1>,[<ch2
>,[…[<ch10>]]]

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
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:
- CELL_SUITABLE indicates the C0 is a suitable cell.
- CELL_LOW_PRIORITY indicates the cell is low priority based on the system information
received.

SIM5218_Serial _AT Command Manual_V1.21

178

1/13/2011
SIM5218 Serial AT Command Manual

- 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 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+CNSVUN=16,20,86,96,109
Network survey started...
For BCCH-Carrier:
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
For non BCCH-Carrier:
86, -97
Network survey end
OK

SIM5218_Serial _AT Command Manual_V1.21

179

1/13/2011
SIM5218 Serial AT Command Manual

10 Mobile Equipment Control and Status Commands
10.1 +CME ERROR Mobile Equipment error result code
Description
The operation of +CME ERROR:<err> result code is similar to the regular ERROR result code: if
+CME ERROR: <err> is the result code for any of the commands in a command line, none of the
following commands in the same command line is executed (neither ERROR nor OK result code
shall be returned as a result of a completed command line execution). The format of <err> can be
either numeric or verbose. This is set with command AT+CMEE.
SIM PIN
NO

References
3GPP TS 27.007

Syntax
+CME ERROR: <err>

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

SIM5218_Serial _AT Command Manual_V1.21

180

1/13/2011
SIM5218 Serial AT Command Manual

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
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

SIM5218_Serial _AT Command Manual_V1.21

181

1/13/2011
SIM5218 Serial AT Command Manual

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
It’s busy editing mms now
186
It’s not allowed to edit now
187
No content in the buffer
188
Failed to receive mms
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
It’s 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
“CME ERROR” codes of HTTP:
220
Unknown error fot HTTP
221
HTTP task is busy
222
Failed to resolve server address
223
HTTP timeout
224
Failed to transfer data
225
Memory error

SIM5218_Serial _AT Command Manual_V1.21

182

1/13/2011
SIM5218 Serial AT Command Manual

226
227

Invalid parameter
Network error

Examples
AT+CPIN="1234","1234"
+CME ERROR: incorrect password

10.2 AT+CMEE Report mobile equipment error
Description
The command controls the format of the error result codes that indicates errors related to Sim5218
Functionality.Format can be selected between plain “ERROR” output,error numbers or verbose
“+CME ERROR: <err>” and “+CMS ERROR: <err>” messages.
SIM PIN

References

NO

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 –

Disable result code,i.e. only “ERROR” will be displayed.
Enable error result code with numeric values.
Enable error result code with string values.

Examples
AT+CMEE?

SIM5218_Serial _AT Command Manual_V1.21

183

1/13/2011
SIM5218 Serial AT Command Manual

+CMEE: 2
OK
AT+CPIN="1234","1234"
+CME ERROR: incorrect password
AT+CMEE=0
OK
AT+CPIN="1234","1234"
ERROR
AT+CMEE=1
OK
AT+CPIN="1234","1234"
+CME ERROR: 16

10.3 AT+CPAS Phone activity status
Description
Execution command returns the activity status <pas> of the ME. It can be used to interrogate the
ME before requesting action from the phone.
SIM PIN

References

NO

3GPP TS 27.007

Syntax
Test Command
AT+CPAS=?

Responses
+CPAS: (list of supported <pas>s)
OK

Execution Command

Responses
+CPAS: <pas>
OK

AT+CPAS

Defined values
<pas>
0 –
3 –
4 –

ready (ME allows commands from TA/TE)
ringing (ME is ready for commands from TA/TE, but the ringer is active)
call in progress (ME is ready for commands from TA/TE, but a call is in progress)

Examples
RING (with incoming call)
AT+CPAS
+CPAS: 3

SIM5218_Serial _AT Command Manual_V1.21

184

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CPAS=?
+CPAS: (0,3,4)
OK

10.4 AT+CFUN Set phone functionality
Description
The command selects 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.
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
4
5

– minimum functionality
– full functionality, online mode
– disable phone both transmit and receive RF circuits
– Factory Test Mode

SIM5218_Serial _AT Command Manual_V1.21

185

1/13/2011
SIM5218 Serial AT Command Manual

6 – Reset
7 – Offline Mode
<rst>
0 – do not reset the ME before setting it to <fun> power level
1 – reset the ME before setting it to <fun> power level. This value only takes effect when
<fun> equals 1.

Examples
AT+CFUN?
+CFUN: 1
OK
AT+CFUN=0
OK

10.5 AT+CPIN Enter PIN
Description
The command sends to 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
b 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>]

Responses
OK
ERROR
+CME ERROR: <err>

SIM5218_Serial _AT Command Manual_V1.21

186

1/13/2011
SIM5218 Serial AT Command Manual

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

10.6 AT+CSQ Signal quality
Description
Execution command returns 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

SIM5218_Serial _AT Command Manual_V1.21

187

1/13/2011
SIM5218 Serial AT Command Manual

<rssi>
0
1
2...30
31
99
<ber>
(in percent)
0 –
1 –
2 –
3 –
4 –
5 –
6 –
7 –
99 –

–
–
–
–
–

-113 dBm or less
-111 dBm
-109... -53 dBm
-51 dBm or greater
not known or not detectable

<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

10.7

AT+AUTOCSQ

Set CSQ report

Description
The command causes the module to disable and enable auto report CSQ information, if we enable
auto report, the module reports CSQ information every five seconds or only after <rssi> changing,
the format of 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

Responses

SIM5218_Serial _AT Command Manual_V1.21

188

1/13/2011
SIM5218 Serial AT Command Manual

AT+AUTOCSQ=<auto>[,<
mode>]

OK
ERROR

Defined values
<aoto>
0 – disable auto report
1 – enable auto report
<mode>
0 – CSQ auto report every five seconds
1 – CSQ auto report only after <rssi> changing
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
AT+AUTOCSQ=1,1
OK
+CSQ: 23,0 (when <rssi> changing)

10.8 AT+CACM Accumulated call meter
Description
The command resets 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

SIM5218_Serial _AT Command Manual_V1.21

189

1/13/2011
SIM5218 Serial AT Command Manual

+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

10.9 AT+CAMM Accumulated call meter maximum
Description
The command sets 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

Responses

SIM5218_Serial _AT Command Manual_V1.21

190

1/13/2011
SIM5218 Serial AT Command Manual

AT+CAMM=
<acmmax>[,<passwd>]

OK
ERROR
+CME ERROR: <err>
Responses
OK

Execution Command
AT+CAMM

+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

10.10

AT+CPUC

Price per unit and currency table

Description
The command sets 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

SIM5218_Serial _AT Command Manual_V1.21

191

1/13/2011
SIM5218 Serial AT Command Manual

+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

10.11 AT+CPOF Control phone to power down
Description
The command controls the phone to power off.
SIM PIN
YES

References
Vendor

Syntax
Execution Command
AT+CPOF

Responses
OK

Examples
AT+CPOF
OK

10.12

AT+CCLK

Real time clock

Description
The command is used to manage Real Time Clock of the module.
SIM PIN
NO

References
3GPP TS 27.007

SIM5218_Serial _AT Command Manual_V1.21

192

1/13/2011
SIM5218 Serial AT Command Manual

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:ss±zz”, 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

10.13

AT+CRFEN

RF check at initialization

Description
The command will enable or disable RF check at the initialization, you can disable the RF
control status check at the initialization if do not want to check the RF pin status. This status will be
saved the check function on reboot.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

193

1/13/2011
SIM5218 Serial AT Command Manual

NO

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 check at initialization
1 – enable RF check at initialization

Examples
AT+CRFEN=1
OK
AT+CRFEN?
+CRFEN: 1
OK
AT+CRFEN=?
+CRFEN : (0-1)
OK

10.14

AT+CRESET Reset ME

Description
The command is used to reset ME.

SIM PIN
NO

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

194

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+CRESET=?

Responses
OK

Execute Command
AT+CRESET

Responses
OK

Examples
AT+CRESET=?
OK
AT+CRESET
OK

10.15

AT+SIMEI

Set module IMEI

Description
The command is used to set module 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?

SIM5218_Serial _AT Command Manual_V1.21

195

1/13/2011
SIM5218 Serial AT Command Manual

+SIMEI: 357396012183170
OK
AT+SIMEI=?
OK

10.16

AT+CSIMLOCK

Request and change password

Description
The command allows to request a password and define a new password for a password protected
<facility> lock function.Each password is a string of digits, the length is 8.The read command
returns status of <facility> lock.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CSIMLOCK=?

Responses
+CSIMLOCK: (list of supported <facility>s)
OK

Read Command
AT+CSIMLOCK?

Responses
+CSIMLOCK: <PN_status>,<PU_status>,<PP_status>,<PC_status
>,<PF_status>
OK

Write Command
AT+CSIMLOCK= <facility>
[,<old password>,<new pas
sword>]

Responses
+CSIMLOCK: <old password>
OK
+CME ERROR: <err>

Defined values
<facility>
“PN”
Network Personalisation
“PU”
Network subset Personalisation
“PP”
Service Provider Personalisation
“PC”
Corporate Personalisation
“PF”
Lock Phone to the very First SIM card
<old password>
Password specified for the facility. The length of password is 8.
<new password>
New password for the facility.The length of password is 8.
<PN_status>

SIM5218_Serial _AT Command Manual_V1.21

196

1/13/2011
SIM5218 Serial AT Command Manual

Status of
0

“PN” lock
inactive

1
2
5
<PU_status>
Status of
0

autolock
active
disable

1
2
5
<PP_status>
State of
0

“PU” lock
inactive
autolock
active
disable
“PP” lock
inactive

1
autolock
2
active
5
disable
<PC_status>
State of “PC” lock
0
inactive
1
2
5
<PF_status>
State of
0
1
2
5

autolock
active
disable
“PF” lock
inactive
autolock
active
disable

Examples
AT+CSIMLOCK=?
+CSIMLOCK: ("PN","PU","PP","PC","PF")
OK
AT+CSIMLOCK?
+CSIMLOCK: 0,0,0,0,0
OK
AT+CSIMLOCK=”PN”
+CSIMLOCK: 87654321
OK
AT+CSIMLOCK=”PN”,”87654321”,”12345678”
OK

SIM5218_Serial _AT Command Manual_V1.21

197

1/13/2011
SIM5218 Serial AT Command Manual

10.17 AT+DSWITCH

Change diagnostics port mode

Description
The command is used to change diagnostics port mode.The default mode of diagnostics port is
debug mode.you can switch it from debug mode to data mode or from data mode to debug mode.In
data mode,you can send and receive PCM data.
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

10.18

AT+CNVW Write NV item

Description

SIM5218_Serial _AT Command Manual_V1.21

198

1/13/2011
SIM5218 Serial AT Command Manual

The AT+CNVW write command can be used to write <item> to NV(nonvolatile memory).If <item>
is given as the only parameter,the write command may get <item> information.
The test command returns the range of <item> and the maximum length of the <item_data> field.
NOTE Before writing <item> to NV,you should get <item> information by AT+CNVW=<item>
and confirm these parameters.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CNVW=?

Responses
+CNVW: (0-<max_item>),<max_data_len>
OK

Write Command
AT+CNVW=<item>[,<index
>,<item_data>]

Responses
If <item> is given as the only parameter:
+CNVW: <item>,<presence>,<array_size>,<item_size>
OK
If successful,return:
+CNVW: 1
OK
If fail,return:
+CNVW: 0,<err_code>
OK

Defined values
<max_item>
Maximum number of item supported by module.
<max_data_len>
Maximum length of <item_data>.
<item>
Item number in NV(nonvolatile memory).These items store some configuration of RF,Audio,etc.
<index>
Index of array.Some items is stored by array.When operating these items,you must specify the
index.To other items(not stored by array),the index is 0.
<item_data>
Data(string type) that written to <item>.<item_data> is in hexadecimal format.The length of
<item_data> is not more than <item_size>*2.
<presence>
Presence of item.
0
not present
1
present

SIM5218_Serial _AT Command Manual_V1.21

199

1/13/2011
SIM5218 Serial AT Command Manual

<array_size>
Size of array.If <item> is stored by array,the value of <index> must be less than <array_size>.
<item_size>
Size of item.The value is given in octets.Because the format of <item_data> is hexadecimal,the
length of <item_data> should be equal to <item_size>*2.
<err_code>
The error codes.These error codes are followed:
-1
Error parameters
0
Not present
1
Busy(Request is queued)
2
Bad(unrecognizable) command
3
The NVM is full
4
Command failed,reason other than NVM was full
5
Not active
6
Bad parameter in command block
7
Parameter is write-protected and thus read only.
8
Item not valid for target
9
Free memory exhausted
10
Address is not a valid allocation.

Examples
AT+CNVW=?
+CNVW: (0-7157),256
OK
AT+CNVW=110
+CNVW: 110,1,0,1
OK
AT+CNVW=110,0,"00"
+CNVW: 1
OK

10.19

AT+CNVR

Read NV item

Description
The AT+CNVR write command can be used to get <item> data from NV(nonvolatile memory).If
<item> is given as the only parameter,the write command may get <item> information.
The test command returns the range of <item> and the maximum length of the <item_data> field.
NOTE Before reading <item> from NV,you should get <item> information by AT+CNVR=<item>
and confirm these parameters.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

200

1/13/2011
SIM5218 Serial AT Command Manual

NO

Vendor

Syntax
Test Command
AT+CNVR=?

Responses
+CNVR: (0-<max_item>),<max_data_len>
OK

Write Command
AT+CNVR=<item>[,<index
>]

Responses
If <item> is given as the only parameter:
+CNVR: <item>,<presence>,<array_size>,<item_size>
OK
If successful,return:
+CNVR: 1,<item_data>
OK
If fail,return:
+CNVR: 0,<err_code>
OK

Defined values
<max_item>
Maximum number of item supported by module.
<max_data_len>
Maximum length of <item_data>.
<item>
Item number in NV(nonvolatile memory).These items store some configuration of RF,Audio,etc.
<index>
Index of array.Some items is stored by array.When operating these items,you must specify the
index.To other items(not stored by array),the index is 0.
<item_data>
Data(string type) that written to <item>.<item_data> is in hexadecimal format.The length of
<item_data> is not more than <item_size>*2.
<presence>
Presence of item.
0
not present
1
present
<array_size>
Size of array.If <item> is stored by array,the value of <index> must be less than <array_size>.
<item_size>
Size of item.The value is given in octets.Because the format of <item_data> is hexadecimal,the
length of <item_data> should be equal to <item_size>*2.
<err_code>

SIM5218_Serial _AT Command Manual_V1.21

201

1/13/2011
SIM5218 Serial AT Command Manual

The error codes.These error codes are followed:
-1
Error parameters
0
Not present
1
Busy(Request is queued)
2
Bad(unrecognizable) command
3
The NVM is full
4
Command failed,reason other than NVM was full
5
Not active
6
Bad parameter in command block
7
Parameter is write-protected and thus read only.
8
Item not valid for target
9
Free memory exhausted
10
Address is not a valid allocation.

Examples
AT+CNVR=?
+CNVR: (0-7157),256
OK
AT+CNVR=110
+CNVR: 110,1,0,1
OK
AT+CNVR=110,0
+CNVR: 1,"00"
OK

10.20

AT+CDELTA Write delta package to FOTA partition

Description
The AT+CDELTA command can be used to write delta package to FOTA partition.After writing
successfully,it will set the flag of updating.When module resets and checks the flag,then it starts to
update firmware.The delta package is saved as a file in file system.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CDELTA=?

Responses
OK

Write Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

202

1/13/2011
SIM5218 Serial AT Command Manual

AT+CDELTA=<delta_packa
ge>

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 exist
1
Error occurs when reading delta package
2
Error occurs when writing delta package to FOTA partition
3
Set the flag of updating unsuccessfully

Examples
AT+CDELTA=?
OK
AT+CDELTA=”delta_1_2.mld”
+CDELTA: 1
OK
NOTE: delta package can be resided in the module or T Flash card, This command will lookup the package
under current directory. BTW you can use +FSCD to change current directory

SIM5218_Serial _AT Command Manual_V1.21

203

1/13/2011
SIM5218 Serial AT Command Manual

11 SIMCard Related Commands
11.1 AT+CICCID Read ICCID in SIM card
Description
The command is used to Read the ICCID in SIM card
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CICCID=?

Responses
OK

Execution Command
AT+CICCID

Responses
+ICCID:<ICCID>
OK
ERROR
+CME ERROR: <err>

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

11.2 AT+CSIM

Generic SIM access

Description

SIM5218_Serial _AT Command Manual_V1.21

204

1/13/2011
SIM5218 Serial AT Command Manual

The command allows 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 SIM–ME interface please refer 3GPP TS 11.11.
NOTE The 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 the characters that are sent to TE in <command> or <response>
<command>
Command passed on by the MT to the SIM.
<response>
Response to the command passed on by the SIM to the MT.

Examples
AT+CSIM=?
OK

11.3 AT+CRSM

Restricted SIM access

Description

SIM5218_Serial _AT Command Manual_V1.21

205

1/13/2011
SIM5218 Serial AT Command Manual

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
219 – SET DATA
<fileID>
Identifier for an elementary data file on SIM, if used by <command>.
<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>

SIM5218_Serial _AT Command Manual_V1.21

206

1/13/2011
SIM5218 Serial AT Command Manual

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

11.4 AT+CSIMSEL Switch between two SIM card
Description
The command is used to select external or embedded SIM card.
NOTE 1. Embedded SIM card supported by customization. Customer should provide information
written into USIM chipset.
2. The command is disabled if the embedded SIM card isn’t exist, i.e. standard hardware
version.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CSIMSEL=?

Responses
OK

Read Command
AT+CSIMSEL?

Responses
+CSIMSEL: <simcard>
OK

Write Command
AT+CSIMSEL=<simcard>

Responses
OK

Defined values
<simcard>
1
– external SIM card
2 – embedded SIM card

Examples
AT+CSIMSEL=1
OK

SIM5218_Serial _AT Command Manual_V1.21

207

1/13/2011
SIM5218 Serial AT Command Manual

11.5 AT+SPIC

Times remain to input SIM PIN/PUK

Description
The 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

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

11.6 AT+CSPN

Get service provider name from SIM

Description
This command is used to get service provider name from SIM card.
SIM PIN
YES

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

208

1/13/2011
SIM5218 Serial AT Command Manual

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
<display mode>
0 – don’t display PLMN.Already registered on PLMN.
1 – display PLMN

Examples
AT+CSPN=?
OK
AT+CSPN?
+CSPN: “CMCC”,0
OK

SIM5218_Serial _AT Command Manual_V1.21

209

1/13/2011
SIM5218 Serial AT Command Manual

12 Hardware Related Commands
12.1 AT+CTXGAIN

Set TX gain

Description
The 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>

Responses
+CTXGAIN: (list of supported <tx_gain>s)
OK
Responses
+CTXGAIN: <tx_gain>
OK
Responses
OK

Defined values
<tx_gain>
TX gain level which is from 0 to 65535.

Examples
AT+CTXGAIN=1234
OK

12.2 AT+CRXGAIN

Set RX gain

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

210

1/13/2011
SIM5218 Serial AT Command Manual

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

12.3 AT+CTXVOL Set TX volume
Description
The 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>

SIM5218_Serial _AT Command Manual_V1.21

211

1/13/2011
SIM5218 Serial AT Command Manual

TX volume level which is from 0 to 65535.

Examples
AT+CTXVOL=1234
OK

12.4 AT+CRXVOL Set RX volume
Description
The 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
AT+CRXVOL?

Responses
+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

12.5 AT+CTXFTR

Set TX filter

Description
The command is used to set audio path parameter – TX filter, and refer to related hardware
design document to get more information.

SIM5218_Serial _AT Command Manual_V1.21

212

1/13/2011
SIM5218 Serial AT Command Manual

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_X>
TX filter level which is from 0 to 65535. (N is from 0 to 7)

Examples
AT+CTXFTR=1111,2222,3333,4444,5555,6666,7777
OK

12.6 AT+CRXFTR

Set RX filter

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

213

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CRXFTR=
<rx_ftr_1>,<…>,<rx_ftr_7>

Responses
OK

Defined values
<rx_ftr_X>
RX filter level which is from 0 to 65535. (N is from 0 to 7)

Examples
AT+CRXFTR=1111,2222,3333,4444,5555,6666,7777
OK

12.7 AT+CVALARM Low voltage Alarm
Description
The command is used to open or close the low voltage alarm function.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CVALARM=?

Responses
+CVALARM: (list of supported <enable>s), (list of supported
<voltage>s)
OK

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>, every 20 seconds will report a string: “warning! Voltage
is low:<voltage value>”.

<voltage>
Between 2800mV and 4300mV. Default value is 3450.

SIM5218_Serial _AT Command Manual_V1.21

214

1/13/2011
SIM5218 Serial AT Command Manual

NOTE

the 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.8 AT+CRIIC Read values from register of IIC device
Description
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>

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.

Examples

SIM5218_Serial _AT Command Manual_V1.21

215

1/13/2011
SIM5218 Serial AT Command Manual

AT+CRIIC=0x0F, 0x0F, 2
+CRIIC: 0xFFFF
OK

12.9 AT+CWIIC Write values to register of IIC device
Description
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>

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.

Examples
AT+CWIIC=0x0F, 0x0F, 0x1234, 2
+CWIIC: 0x1234
OK

12.10

AT+CVAUXS

Set state of the pin named VREG_AUX1

Description
The command is used to set state of the pin which is named VREG_AUX1.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

216

1/13/2011
SIM5218 Serial AT Command Manual

NO

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 –

the pin is closed.
the pin is opend(namely, open the pin)

Examples
AT+CVAUXS=1
OK
AT+CVAUXS?
+CVAUXS: 1
OK

12.11

AT+ CVAUXV Set voltage value of the pin named VREG_AUX1

Description
The command is used to set the voltage value of the pin which is named VREG_AUX1.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CVAUXV=?

Responses
+CVAUXV: (list of supported <voltage>s)
OK

Read Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

217

1/13/2011
SIM5218 Serial AT Command Manual

AT+CVAUXV?

+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.12

AT+CGPIO

Set Trigger mode of interrupt GPIO

Description
Set GPIO interrupt trigger mode(GPIO0 is used for interrupt).
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

SIM5218_Serial _AT Command Manual_V1.21

218

1/13/2011
SIM5218 Serial AT Command Manual

1
<save>
0
1
NOTE

–

trigger when high level

– not save the setting
– save the setting
If the parameter of <save> is omitted, it will save the setting.

Examples
AT+ CGPIO =1,1,0
OK

12.13

AT+CGDRT Set the direction of specified GPIO

Description
The command is used to set the specified GPIO to in or out state. If setting the specified GPIO to in
state, then it can not set the value of the GPIO to high or low.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CGDRT=<gpio_num>,
<gpio_io>[,<save>]

Responses
OK
ERROR

Defined values
<gpio_num>
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

SIM5218_Serial _AT Command Manual_V1.21

219

1/13/2011
SIM5218 Serial AT Command Manual

12.14

AT+CGSETV Set the value of specified GPIO

Description
The command is used to set the value of the specified GPIO to high or low.
SIM PIN
NO

References
Vendor

Syntax
Write Command
AT+CGSETV=<gpio_num>,
<gpio_hl>[,<save>]

Responses
OK
ERROR

Defined values
<gpio_num>
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

12.15

AT+CGGETV Get the value of specified GPIO

Description
The command is used to get the value (high or low) of the specified GPIO.
SIM PIN
NO

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

220

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CGGETV=<gpio_num>

Responses
+CGGETV: <gpio_hl>
OK
ERROR

Defined values
<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.16 AT+CADC

Read ADC value

Description
Read the ADC value from modem. We support 3 type of ADC, 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

Responses

SIM5218_Serial _AT Command Manual_V1.21

221

1/13/2011
SIM5218 Serial AT Command Manual

AT+CADC

Same as AT+CADC= 0:
+CADC: <value>
OK

Defined values
<adc>
ADC type:

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

12.17

AT+CMICAMP1

Set value of micamp1

Description
The command is used to set audio path parameter – micamp1; this is different with AT+CMIC.
With this command you can change the first stage of MIC amplify value based on your design
separately and refer to related hardware design document to get 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=

Responses
OK

SIM5218_Serial _AT Command Manual_V1.21

222

1/13/2011
SIM5218 Serial AT Command Manual

<amp_val>

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

12.18

AT+CVLVL Set value of sound level

Description
The command is used to set audio path parameter – RX volume; this command is different
from CRXVOL, command CRXVOL will modify the values of all sound levels offset we
provided together. With this command you can change the value of each sound level based on
your design separately and refer to related hardware design document to get more information.
SIM PIN References
NO

Vendor

Syntax
Test Command
AT+CVLVL=?

Responses
+CVLVL: (list of supported <lvl>s),(list of supported <lvl_value>s)
OK

Read Command
AT+CVLVL?

Responses
+CVLVL: <lvl_value1>,<lvl_value2>,<lvl_value3>,<lvl_value4>
OK

Write Command
AT+CVLVL= <lvl>,
<lvl_value>

Responses
+CVLVL: <lvl_value>
OK

SIM5218_Serial _AT Command Manual_V1.21

223

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Defined values
<lvl>
sound level number which is from 1 to 4.
<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.

Examples
AT+CVLVL=1,-2000
+CVLVL: -2000
OK
AT+CVLVL?
+CVLVL: -2000,-200,500,1000
OK
AT+ CVLVL=?
+CVLVL: (1-4),(-5000~5000)
OK

12.19

AT+SIDET Digital attenuation of sidetone

Description
The command is used to set digital attenuation of sidetone. For more detailed information, please
refer to relevant HD document.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+SIDET=?

Responses
+SIDET: (list of supported <st>s)
OK

SIM5218_Serial _AT Command Manual_V1.21

224

1/13/2011
SIM5218 Serial AT Command Manual

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:2034, HEADSET:1024, SPEAKER PHONE: 0.

Examples
AT+CSDVC=1
OK
AT+SIDET?
+SIDET: 2304
OK

12.20

AT+CRIRS

Reset RI pin of serial port

Description
The command is used to reset RI pin of serial port(UART device).After the command
executed,When a voice(csd ,video) call or a SMS is coming or URC is reported,RI pin is 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

SIM5218_Serial _AT Command Manual_V1.21

225

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CRIRS
OK

12.21

AT+CSUART Switch UART line mode

Description
The command is used to switch UART line mode between three and seven lines mode.
SIM PIN

References

NO

Vendor

Syntax
Test Command
AT+CSUART=?

Responses
+CSUART: (list of supported <mode>s), (list of supported
<save>s)
OK

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
– don’t save the setting
– save the setting

Examples
AT+CSUART=1
OK

12.22

AT+CDCDMD

Set DCD pin mode

Description

SIM5218_Serial _AT Command Manual_V1.21

226

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to set DCD pin to DCD mode or GPIO mode.
NOTE DCD mode is invalid currently.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CDCDMD=?

Responses
+CDCDMD: (list of supported <mode>s)
OK

Read Command
AT+CDCDMD?

Responses
+CDCDMD:<mode>
OK

Write Command

Responses

AT+CDCDMD=<mode>

OK
ERROR

Defined values
<mode>
0
– DCD mode
1
– GPIO mode

Examples
AT+CDCDMD=0
OK

12.23

AT+CDCDVL Set DCD pin high-low in GPIO mode

Description
The command is used to set DCD pin high-low in GPIO mode.
NOTE The command will disable when DCD pin is DCD mode.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CDCDVL=?

Responses
+CDCDVL: (list of supported <value>s)
OK

SIM5218_Serial _AT Command Manual_V1.21

227

1/13/2011
SIM5218 Serial AT Command Manual

Read Command
AT+CDCDVL?

Responses
+CDCDVL:<value>
OK

Write Command

Responses

AT+CDCDVL=<value>

OK
ERROR

Defined values
<value>
0 – set DCD pin low in GPIO mode
1 – set DCD pin high in GPIO mode

Examples
AT+CDCDVL=0
OK

12.24

AT+CCGSWT Switch between camera interface and GPIO

Description
This command is used to switch the function between camera interface and general GPIO, if your
project has no camera subsystem existed then you can use this AT command to use camera interface
as general GPIO, there are total 14 pins of this type.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CCGSWT=?

Responses
+CCGSWT: (list of supported <mode>s)
OK

Read Command
AT+CCGSWT?

Responses
+CCGSWT: <mode>
OK

Write Command

Responses
OK

AT+CCGSWT=<mode>

ERROR

Defined values

SIM5218_Serial _AT Command Manual_V1.21

228

1/13/2011
SIM5218 Serial AT Command Manual

< mode >
0 – gpio mode
1 – camera mode
NOTE if you config such pins to general gpio mode then you can use GPIO AT command to
config these GPIOs, like direction, value.
CAMERA INTERFACE
<—————>
GENERAL GPIO NUMBER
HSYNC
GPIO6
VSYNC
GPIO7
PCLK
GPIO8
STDBY
GPIO9
DATA0
GPIO10
DATA1
GPIO11
DATA2
GPIO12
DATA3
GPIO13
DATA4
GPIO14
DATA5
GPIO15
DATA6
GPIO16
DATA7
GPIO17
DATA8
GPIO18
DATA9
GPIO19

Examples
AT+CCGSWT=?
+CCGSWT: (0-1)
OK
AT+CCGSWT?
+CCGSWT: 1
OK
AT+CCGSWT=1
OK

12.25

AT+CBC

Battery charge

Description
The command is used to query the voltage of power supply.
NOTE The SIM5218 does not allow the detection of battery use,so <bcs> and <bcl> may be
ignored.They are only compatible with other products like SIM5215,etc.The user can get the
voltage of power supply by <vol>.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

229

1/13/2011
SIM5218 Serial AT Command Manual

NO

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
<bcs>
0

Battery powered

<bcl>
0…100 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.26

AT+CDTRISRMD

Configure the trigger condition for DTR’s

interrupt.
Description
This command is used to set the appropriate trigger condition for DTR’s interrupt, which will
finally waking up the module.
This command is only valid while the UART is under NULL modem mode.
The interrupt is low level triggered by default.
SIM PIN
No

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

230

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Test Command
AT+CDTRISRMD=?

Responses
+ CDTRISRMD: (0-1), (0-1)
OK

Read Command
AT+CDTRISRMD?

Responses
+ CDTRISRMD: <detect>,<polarity>
OK

Write Command
AT+CDTRISRMD
=<detect>,<polarity>

Responses
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.27

AT+CDTRISRS

Enable/disable the pin of DTR’s awakening

function
Description
This command is used to enable or disable the function of waking up the module by means of
UART’s DTR pin which to trigger an interrupt
This command will only take effect while the UART is working under NULL modem mode.
The function is disabled by default.
SIM PIN
No

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

231

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+CDTRISRS=?

Responses
+ CDTRISRS: (0-1)
OK

Read Command
AT+CDTRISRS?

Responses
+ CDTRISRS: <switch>
OK

Write Command
AT+CDTRISRS =<switch>

Responses
OK

Defined values
<switch>
0 disable such function
1
enable such function

Examples
AT+CDTRISRS=1
OK
AT+CDTRISRS=0
OK

SIM5218_Serial _AT Command Manual_V1.21

232

1/13/2011
SIM5218 Serial AT Command Manual

13 Phonebook Related Commands
13.1 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
Test Command
AT+CNUM=?

Responses
OK

Execution Command

Responses
[+CNUM: <alpha>,<number>,<type>[<CR><LF>
+CNUM: <alpha>, <number>,<type> [...]]]
OK

AT+CNUM

+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

13.2 AT+CPBS

Select phonebook memory storage

Description

SIM5218_Serial _AT Command Manual_V1.21

233

1/13/2011
SIM5218 Serial AT Command Manual

The 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

Set default value “SM”:
OK

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"
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

SIM5218_Serial _AT Command Manual_V1.21

234

1/13/2011
SIM5218 Serial AT Command Manual

"ON"

MSISDN list
Capacity: depending on SIM card
Last number dialed phonebook
Capacity: depending on SIM card
AT+CPBW command is not applicable to this storage.
Emergency numbers
Capacity: max. 50 entries
AT+CPBW command is not applicable to this storage.

"LD"

"EN"

<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")
OK
AT+CPBS=”SM”
OK
AT+CPBS?
+CPBS: "SM",1,200
OK

13.3 AT+CPBR Read phonebook entries
Description
The 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.
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=

Responses
[+CPBR: <index1>,<number>,<type>,<text>[<CR><LF>

SIM5218_Serial _AT Command Manual_V1.21

235

1/13/2011
SIM5218 Serial AT Command Manual

<index1>[,<index2>]

+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
AT+CPBS?
+CPBS: "SM",2,200
OK
AT+CPBR=1,10
+CPBR: 1,"1234567890",129,"James"
+CPBR: 2,"0987654321",129,"Kevin"
OK

13.4 AT+CPBF Find phonebook entries
Description

SIM5218_Serial _AT Command Manual_V1.21

236

1/13/2011
SIM5218 Serial AT Command Manual

The command finds the record in phonebook(from the current phonebook memory storage selected
with AT+CPBS) which alphanumeric field has substring <findtext>.
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>
+CBPF: <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>
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 "

SIM5218_Serial _AT Command Manual_V1.21

237

1/13/2011
SIM5218 Serial AT Command Manual

OK

13.5 AT+CPBW Write phonebook entry
Description
The 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.
<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, If <number> contains a leading “+” <type> = 145
(international) is used.Supported value are:
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
<text>
String type field of maximum length <tlength>; character set as specified by command Select TE

SIM5218_Serial _AT Command Manual_V1.21

238

1/13/2011
SIM5218 Serial AT Command Manual

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 isn’t ‘+’) and <text> as NULL.

Examples
AT+CPBW=3,"88888888",129,"John"
OK
AT+CPBW=,”6666666”,129,”mary”
OK
AT+CPBW=1
OK

13.6 AT+CEMNLIST Set the list of emergency number
Description
The command allows to define emergency numbers list according to customers’ requirement
.Note that only no sim card is inserted or sim card is locked, these emergency numbers take effect.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CEMNLIST=?

Responses
+CEMNLIST: (list of supported <mode>s), <nlength>,<total>
OK

Read Command
AT+CEMNLIST?

Responses
+CEMNLIST: <mode>,<emergency numbers>
OK

Write Command
AT+CEMNLIST=<mode>[,
<emergency numbers>]

Responses
OK

Defined values
<mode>
0

disable

SIM5218_Serial _AT Command Manual_V1.21

239

1/13/2011
SIM5218 Serial AT Command Manual

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

SIM5218_Serial _AT Command Manual_V1.21

240

1/13/2011
SIM5218 Serial AT Command Manual

14 File System Related Commands
The file system is used to store files in a hierarchical (tree) structure, and there are some definitions and
conventions to use the Module.
Local storage space is mapped to “C:”, and storage space of present storage card is mapped to “D:”. In
both “C:” and “D:” directories, module creates four directories named “Picture”, “Audio”, “Video” and
“VideoCall” automatically; “Picture” is used to store static image when taking picture by camera, “Audio”
is used to store audio file, “Video” is used to store video file when recording by camera, and “VideoCall” is
used to store media file which is recorded during a video call.
NOTE

General rules for naming (both directories and files):

1

The length of actual fully qualified names of directories and files can not exceed 245. For
example: the length of “C:/Picture/first_image.jpg” don’t exceed 245.

2

Directory and file names can not include the following characters:
 : * ?

“ <

> |

3

Between directory name and file/directory name, use character “/” as list separator, so it can not
appear in directory name or file name.

4

The first character of names must be a letter or a numeral or underline, and the last character can
not be period “.” and oblique “/”.

5

Case sensitive in “C:”, but not case sensitive in “D:” if storage card is present.

14.1 AT+FSCD

Select directory as current directory

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

241

1/13/2011
SIM5218 Serial AT Command Manual

Defined values
<path>
String without double quotes, directory for selection.
NOTE If <path> is “..”, it will go back to previous level of directory. If current directory is D:/ or
in D:/ and SD card is removed and unmounted, it will set current directory C:/ automatically after a
moment.
<curr_path>
String without double quotes, current directory.

Examples
AT+FSCD=C:
+FSCD: C:/
OK
AT+FSCD=Picture
+FSCD: C:/Picture/
OK
AT+FSCD=C:/Video
+FSCD: C:/Video/
OK
AT+FSCD?
+FSCD: C:/Video/
OK
AT+FSCD=..
+FSCD: C:/
OK

14.2 AT+FSMKDIR

Make new directory in current directory

Description
The command is used to create a new directory in current directory. It is only permitted to create
new directory in storage card.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+FSMKDIR=?

Responses
OK

Write Command
AT+FSMKDIR=<dir>

Responses
OK

SIM5218_Serial _AT Command Manual_V1.21

242

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Defined values
<dir>
String without double quotes, directory name which is not already existing in current directory.

Examples
AT+FSMKDIR= SIMTech
OK
AT+FSCD?
+FSCD: D:/
OK
AT+FSLS
+FSLS: SUBDIRECTORIES:
Audio
Picture
Video
VideoCall
SIMTech
OK

14.3 AT+FSRMDIR

Delete directory in current directory

Description
The command is used to delete existing directory in current directory. It is only permitted to delete
existing directory in storage card.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+FSRMDIR=?

Responses
OK

Write Command
AT+FSRMDIR=<dir>

Responses
OK
ERROR

Defined values

SIM5218_Serial _AT Command Manual_V1.21

243

1/13/2011
SIM5218 Serial AT Command Manual

<dir>
string without double quotes, directory name which is relative and already existing.

Examples
AT+FSRMDIR=SIMTech
OK
AT+FSCD?
+FSCD: D:/
OK
AT+FSLS
+FSLS: SUBDIRECTORIES:
Audio
Picture
Video
VideoCall
OK

14.4 AT+FSLS

List directories/files in current directory

Description
The 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>]

SIM5218_Serial _AT Command Manual_V1.21

244

1/13/2011
SIM5218 Serial AT Command Manual

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>
Integer type, the number of files in current directory.
<type>
0 – list both subdirectories and files
1 – list subdirectories only
2 – list files only

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

SIM5218_Serial _AT Command Manual_V1.21

245

1/13/2011
SIM5218 Serial AT Command Manual

14.5 AT+FSDEL Delete file in current directory
Description
The 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
ERROR

Defined values
<filename>
String without double quotes, file name which is relative and already existing.

Examples
AT+FSDEL=image_0.jpg
OK

14.6 AT+FSRENAME

Rename file in current directory

Description
The 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=

Responses
OK

SIM5218_Serial _AT Command Manual_V1.21

246

1/13/2011
SIM5218 Serial AT Command Manual

<old_name>,<new_name>

ERROR

Defined values
<old_name>
String without double quotes, file name which is existed in current directory.
<new_name>
New name of specified file, string without double quotes.

Examples
AT+FSRENAME=image_0.jpg, image_1.jpg
OK

14.7 AT+FSATTRI

Request file attributes

Description
The command is used to request the attributes of file which is existing 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 without double quotes, file name which is in current directory.
<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

SIM5218_Serial _AT Command Manual_V1.21

247

1/13/2011
SIM5218 Serial AT Command Manual

+FSATTRI: 8604, 2008/04/28 10:24:46 Tue
OK

14.8 AT+FSMEM

Check the size of available memory

Description
The command is used to check the size of available memory. The response will list total size and
used size of local storage space and SD card if present and mounted.
If SD card exist, the write command can set a limit value. The URC will report automatically
when SD card space less than <limit>. After receiving the URC, you can delete the old or useless
files for saving the space.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+FSMEM=?

Responses
If SD card exist:
+FSMEM: (list of supported <limit>s),(list of supported <timer>s)
OK
If SD card doesn’t exist:
OK

Read Command
AT+FSMEM?

Responses
If SD card exist:
+FSMEM: <limit>,<timer>
OK
If SD card doesn’t exist:
ERROR

Write Command
AT+FSMEM=<limit>,<time
r>

Responses
If SD card exist:
OK
If SD card space less than <limit>, report URC automatically:
+FSMEM: C:(<total>, <used>), D:(<total>,<used>)
If SD card doesn’t exist:
ERROR

Execution Command
AT+FSMEM

Responses
If SD card exist:
+FSMEM: C:(<total>, <used>), D:(<total>,<used>)
OK

SIM5218_Serial _AT Command Manual_V1.21

248

1/13/2011
SIM5218 Serial AT Command Manual

If SD card doesn’t exist:
+FSMEM: C:(<total>, <used>)
OK

Defined values
<total>
The total size of local storage space or SD card.
<used>
The used size of local storage space or SD card.
<limit>
0 – Close memery check
<max> – The limit space of SD card. The max value refers to the SD card size
(It’s only available when SD card exist!)
<timer>
The range is 0-255, unit is second, after set <time> will report the URC when SD card’s available
space less than <limit> every the seconds. (It’s only available when SD card exist!)
NOTE
1.The unit of storage space size is in Byte.
2. The unit of <limit> space of SD card is in MB.

Examples
AT+FSMEM
+FSMEM: C:(11348480, 2201600), D:(255533056, 42754048)
OK
AT+FSMEM=?
+FSMEM: (0-243),(0-255)
OK
AT+FSMEM=10,5
OK
+FSMEM: C:(11348480, 2201600), D:(255533056, 245535421)

14.9 AT+FSFMT Format the storage card
Description
The command is used to format storage card which is plugged in. After formatting and remounting,
it will create four directories of “Picture”, “Video”, “VideoCall” and “Audio” automatically.
If current directory is in D:/ but not one of D:/Picture, D:/Video, D:/Audio and D:/VideoCall, it will
set current directory D:/ after formatting.
SIM PIN
NO

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

249

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Test Command
AT+FSFMT=?

Responses
OK

Execution Command
AT+FSFMT

Responses
OK

Examples
AT+FSFMT
OK

14.10

AT+FSLOCA Select storage place

Description
The command is used to set the storage place for media files. If the storage card is not present, it
can not set storage place as storage card. When the Module is power on, the value of <loca> is 0.
NOTE
1. Static image taken by camera is stored in “C:/Picture” or “D:/Picture” directory.
2. Video file recorded by camera is stored in “C:/Video” or “D:/Video” directory.
3. Media file recorded during a video call is stored in “C:/VideoCall” or “D:/Videocall”
directory.
4. Audio file recorded is stored in “C:/Audio” or “D:/Audio” directory.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+FSLOCA=?

Responses
+FSLOCA: (list of supported <loca>s)
OK

Read Command
AT+FSLOCA?

Responses
+FSLOCA: <loca>
OK

Write Command
AT+FSLOCA=<loca>

Responses
OK
ERROR

Defined values
<loca>
0 –

store media files to local storage space (namely “C:/”)

SIM5218_Serial _AT Command Manual_V1.21

250

1/13/2011
SIM5218 Serial AT Command Manual

1 – store media files to storage card (namely “D:/”)
NOTE If <loca>=1 and SD card is removed and unmounted, it will set <loca>=0 automatically
after a moment.

Examples
AT+FSLOCA=0
OK
AT+FSLOCA?
+FSLOCA: 0
OK

SIM5218_Serial _AT Command Manual_V1.21

251

1/13/2011
SIM5218 Serial AT Command Manual

15 File Transmission Related Commands
The module supports file transmission between the Module and PC host over Xmodem protocol, and
the transmission is bidirectional.

15.1 AT+CTXFILE

Select file transmitted to PC host

Description
The command is used to select a file which is transmitted from the module to PC host. After
selecting the file successfully, use HyperTerminal to get the file over Xmodem protocol [refer AT
Commands Samples: File transmission to PC host]. If available memory is not enough, file
transmission will fail.
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 is already existing.
<dir_type>
0 – file to be transmitted is in current directory; before AT+CTXFILE execution, it needs to
set current directory [refer AT+FSCD]
1 – file to be transmitted is in “C:/Picture” directory
2 – file to be transmitted is in “C:/Video” directory
3 – file to be transmitted is in “C:/VideoCall” directory
4 – file to be transmitted is in “D:/Picture” directory
5 – file to be transmitted is in “D:/Video” directory
6 – file to be transmitted is in “D:/VideoCall” directory
7 – file to be transmitted is in “C:/Audio” directory

SIM5218_Serial _AT Command Manual_V1.21

252

1/13/2011
SIM5218 Serial AT Command Manual

8 – file to be transmitted is in “D:/Audio” directory
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
whether existing or not.
<protocol>
0 – Xmodem
1 –
1K Xmodem

Examples
AT+CTXFILE=”image_0.jpg”, 1,1
OK
……
AT+FSCD=C:/Video
+FSCD: C:/Video/
OK
AT+FSLS
video_0.mp4
video_1.mp4
OK
AT+CTXFILE=”video_2.mp4”
OK
….

15.2 AT+CRXFILE

Set name of file received from PC host

Description
The command is used to set file name which is received from PC 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 PC 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

SIM5218_Serial _AT Command Manual_V1.21

253

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Defined values
<file_name>
String with double quotes, file name which is received from PC host.
<dir_type>
Specify storage location of file which is received from PC host. If this parameter is omitted, it will
save the file to current directory [refer AT+FSCD]
0 – save file received from PC host to current directory; before AT+CTXFILE execution, it
needs to set current directory [refer AT+FSCD]
1 – save file to “C:/Picture” directory
2 – save file to “C:/Video” directory
3 – save file to “C:/VideoCall” directory
4 – save file to “D:/Picture” directory
5 – save file to “D:/Video” directory
6 – save file to “D:/VideoCall” directory
7 – save file to “C:/Audio” directory
8 – save file to “D:/Audio” directory

Examples
AT+CRXFILE=”image_8.jpg”,1
OK
……
AT+FSCD=D:/Video
+FSCD: D:/Video/
OK
AT+CRXFILE=”video.mp4”
OK
….

SIM5218_Serial _AT Command Manual_V1.21

254

1/13/2011
SIM5218 Serial AT Command Manual

16 V24-V25 Commands
16.1 AT+IPR

Set local baud rate temporarily

Description
The command sets the baud rate of module’s serial interface temporarily, after reboot the baud rate
is set to default value.The default value is 115200.
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

SIM5218_Serial _AT Command Manual_V1.21

255

1/13/2011
SIM5218 Serial AT Command Manual

AT+IPR=115200
OK

16.2 AT+IPREX

Set local baud rate permanently

Description
The command sets the baud rate of module’s 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

SIM5218_Serial _AT Command Manual_V1.21

256

1/13/2011
SIM5218 Serial AT Command Manual

AT+IPREX=115200
OK

16.3 AT+ICF Set control character framing
Description
The command sets character framing which contain data bit, stop bit and parity bit.
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

SIM5218_Serial _AT Command Manual_V1.21

257

1/13/2011
SIM5218 Serial AT Command Manual

AT+ICF=?
+ICF: (3),(0-3)
OK
AT+ICF=3,3
OK

16.4 AT+IFC

Set local data flow control

Description
The command sets the flow control 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

Read Command
AT+IFC?

Responses
+IFC: <DCE>,<DTE>
OK

Write Command
AT+IFC=<DCE>[,<DTE>]

Responses
OK

Execution Command
AT+IFC

ERROR
Responses
Set default value:
OK

Defined values
<DCE>
0
2
<DTE>
0
2

– none (default)
– RTS hardware flow control
– none (default)
– CTS hardware flow control

Examples
AT+IFC?
+IFC: 0,0

SIM5218_Serial _AT Command Manual_V1.21

258

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+IFC=?
+IFC: (0,2),(0,2)
OK
AT+IFC=2,2
OK

16.5 AT&C

Set DCD function mode

Description
The command determines how the state of circuit 109 (DCD) relates to the detection of received
line signal from the distant end.
NOTE After executing AT+CSUART=1 and AT+CDCDMD=0,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

16.6 ATE

Enable command echo

Description
The command sets whether or not the TA echoes characters.
SIM PIN
NO

References
V.25ter

SIM5218_Serial _AT Command Manual_V1.21

259

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Execution Command
ATE[<value>]

Responses
OK
ERROR

Defined values
<value>
0 –
1 –

Echo mode off
Echo mode on

Examples
ATE1
OK

16.7 AT&V Display current configuration
Description
The 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;

……

SIM5218_Serial _AT Command Manual_V1.21

260

1/13/2011
SIM5218 Serial AT Command Manual

OK

16.8 AT&D

Set DTR function mode

Description
The command determines how the TA responds when circuit 108/2 (DTR) is changed from
the ON to 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

16.9 AT&S

Set DSR function mode

Description
The command determines how the state of DSR pin works.
SIM PIN
NO

References
V.25ter

Syntax
Execution Command
AT&S[<value>]

Responses
OK

SIM5218_Serial _AT Command Manual_V1.21

261

1/13/2011
SIM5218 Serial AT Command Manual

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

16.10

AT&F Set all current parameters to manufacturer defaults

Description
The command is used to set all current parameters to the manufacturer defined profile.
Notes
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.)
<value>=1 default value
AT&F1
VALUE
AT+AUTOANSWER

0

AT+CGSMS

1

AT+CATR

0

SIM5218_Serial _AT Command Manual_V1.21

262

1/13/2011
SIM5218 Serial AT Command Manual

AT+CSUART

0

AT+CPCM

0,0

AT+CPCMFMT

2

AT+CPCMSLOT

0

1
AT+CNBP ○

0x000200000CE8FFFF

AT+CNMP

2

AT+CNAOP

2

AT+CNSDP

2

AT+CTZU

0

AT+CRSL

2

AT+CALM

0

AT+CEMNLIST

0, ""

AT+CSIMSEL

1

AT+CVALARM

0,3450

AT+CRFEN

1

AT+CSDVC

1

2
AT+CLVL ○

2

2
AT+CVLVL ○

-1200,-200,350,1000

2
AT+CMICAMP1 ○

0

2
AT+CMIC ○

14

2
AT+SIDET ○

7000

2
AT+CTXGAIN ○

30000

2
AT+CRXGAIN ○

8000

2
AT+CTXVOL ○

30000

2
AT+CRXVOL ○

100

2
AT+CTXFTR ○

8, 65513, 20, 132, 64995, 1048, 15098

2
AT+CRXFTR ○

57, 65532, 427, 64827, 2591, 60638, 14802

AT+CVAUXS

1

AT+CVAUXV

57

AT+CCAMMD

0

AT+CDTRISRS

0

AT+CDTRISRMD

0,0

AT+CGDCONT

1,"IP","","0.0.0.0",0,0

AT+CGSOCKCONT

1,"IP","","0.0.0.0",0,0

AT+CPLMNWLIST

""

AT+CPASSMGR

NULL (disable all passwords )

AT+CGPSSSL

0

AT+CGPSURL

""

SIM5218_Serial _AT Command Manual_V1.21

263

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMMSSENDCFG

6,3,0,0,2,4

AT+CMMSCURL

""

AT+CMMSPROTO

1,"0.0.0.0",0

AT+CGPSAUTO

0

AT+CGPSSWITCH

1

1
○SIM8218C band default value is 0x000000000068FFF7. Others are 0x000200000CE8FFFF.
2
○ These audio parameters is discrepant in different Qualcomm platform version. In this
document the default values for 240150. The platform version can be found through ATI command.

Examples
AT&F
OK
AT&F1
OK (then reset the module manual)

SIM5218_Serial _AT Command Manual_V1.21

264

1/13/2011
SIM5218 Serial AT Command Manual

17 GPS Related Commands
17.1 AT+CGPS

Start/stop GPS session

Description
The 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
only support standalone mode. If executing AT+CGPS=1, the GPS session will choose cold
or hot start automatically.
2. UE-based and UE-assisted mode depends on URL (AT+CGPSURL) and certificate
(AT+CGPSSSL). When UE-based mode failing, it will switch standalone mode.
3. UE-assisted mode is single fix. Standalone and UE-based mode is consecutive fix.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CGPS=?

Responses
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

SIM5218_Serial _AT Command Manual_V1.21

265

1/13/2011
SIM5218 Serial AT Command Manual

<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
OK

17.2 AT+CGPSINFO

Get GPS fixed position information

Description
The command is used to get current position information.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CGPSINFO=?

Responses
+CCGPSINFO: (scope of <time>)
OK

Write Command
AT+CGPSINFO=<time>

Responses
+CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC
time>],[<alt>],[<speed>]
OK

Execution Command
AT+CGPSINFO

Responses
+CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC
time>],[<alt>],[<speed>]
OK

Defined values
<lat>
Latitude of current position. Output format is ddmm.mmmm
<N/S>
N/S Indicator, N=north or S=south
<log>

SIM5218_Serial _AT Command Manual_V1.21

266

1/13/2011
SIM5218 Serial AT Command Manual

Longitude of current position. Output format is dddmm.mmmm
<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.
<time>
The range is 0-255, unit is second, after set <time> will report the GPS information every the
seconds.

Examples
AT+CGPSINFO=?
OK
AT+CGPSINFO
+CGPSINFO: 3113.393766,N,12121.176625,E,061108,075358.0,19.5,0
OK

17.3 AT+CGPSCOLD

Cold start GPS

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

267

1/13/2011
SIM5218 Serial AT Command Manual

17.4 AT+CGPSHOT Hot start GPS
Description
The command is used to hot start GPS session
NOTE Before using this command, must use AT+CGPS=0 to stop GPS session.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CGPSHOT=?
Execution Command
AT+CGPSHOT

Responses
OK
Responses
OK

Examples
AT+CGPSHOT=?
OK
AT+CGPSHOT
OK

17.5 AT+CGPSSWITCH

Configure output port for NMEA sentence

Description
The 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 57600 bit/s, and
can’t 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 rebooting.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CGPSSWITCH=?
Read Command
AT+CGPSSWITCH?

Responses
+CGPSSWITCH: (list of supported <port>s)
OK
Responses
+CGPSSWITCH: <port>

SIM5218_Serial _AT Command Manual_V1.21

268

1/13/2011
SIM5218 Serial AT Command Manual

OK
Write Command
AT+CGPSSWITCH=<port>

Responses
OK
ERROR

Defined values
<port>
1 –
2 –

NMEA ports
UART port

Examples
AT+CGPSSWITCH=?
+CGPSSWITCH:(1,2)
OK
AT+CGPSSWITCH=1
OK

17.6 AT+CGPSURL Set AGPS default server URL
Description
The command is used to set AGPS default server URL.
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.

SIM5218_Serial _AT Command Manual_V1.21

269

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CGPSURL=”123.123.123.123:8888”
OK
AT+CGPSURL?
+CGPSURL:” 123.123.123.123:8888”
OK

17.7 AT+CGPSSSL Set AGPS transport security
Description
The command is used to select transport security, used certificate or not. The certificate gets from
local carrier. If the AGPS server doesn’t need certificate, execute AT+CGPSSSL=0.
SIM PIN

References

NO

Vendor

Syntax
Test Command
AT+CGPSSSL=?

Responses
OK

Read Command
AT+CGPSSSL?

Responses
+CGPSSSL=<SSL>
OK

Write Command

Responses

AT+CGPSSSL=<SSL>

OK
ERROR

Defined values
<SSL>
0
1

– don’t use certificate
– use certificate

Examples
AT+CGPSSSL=0
OK

17.8 AT+CGPSAUTO

Start GPS automatic

Description

SIM5218_Serial _AT Command Manual_V1.21

270

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to start GPS automatic when module power on, default GPS is closed.
NOTE If GPS start automatically, its operation mode is standalone mode.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CGPSAUTO=?

Responses
OK

Read Command
AT+CGPSAUTO?

Responses
+CGPSAUTO=<auto>
OK
Responses
OK

Write Command
AT+CGPSAUTO=<auto>

ERROR

Defined values
<auto>
0
1

– Non-automatic
– automatic

Examples
AT+CGPSAUTO=1
OK

SIM5218_Serial _AT Command Manual_V1.21

271

1/13/2011
SIM5218 Serial AT Command Manual

18 Commands for Packet Domain
18.1 AT+CGDCONT Define PDP context
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

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.

SIM5218_Serial _AT Command Manual_V1.21

272

1/13/2011
SIM5218 Serial AT Command Manual

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.
1…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
<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:
0 – off (default if value is omitted)
1 – on
2 – V.42bis
<h_comp>
A numeric parameter that controls PDP header compression:
0 – off (default if value is omitted)
1 – on
2 – RFC1144
3 – RFC2507
4 – RFC3095

Examples
AT+CGDCONT?
+CGDCONT: 1,"IP","","0.0.0.0",0,0
OK
AT+CGDCONT=?
+CGDCONT: (1-16),"IP",,,(0-1),(0-1)
+CGDCONT: (1-16),"PPP",,,(0-1),(0-1)
+CGDCONT: (1-16),"IPV6",,,(0-2),(0-3)
OK

18.2 AT+CGQREQ

Quality of service profile (requested)

Description

SIM5218_Serial _AT Command Manual_V1.21

273

1/13/2011
SIM5218 Serial AT Command Manual

The 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
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).
1…16

SIM5218_Serial _AT Command Manual_V1.21

274

1/13/2011
SIM5218 Serial AT Command Manual

<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
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)

SIM5218_Serial _AT Command Manual_V1.21

275

1/13/2011
SIM5218 Serial AT Command Manual

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
31

–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–

200 (~0.44 bit/s)
500 (~1.11 bit/s)
1000 (~2.2 bit/s)
2000 (~4.4 bit/s)
5000 (~11.1 bit/s)
10000 (~22 bit/s)
20000 (~44 bit/s)
50000 (~111 bit/s)
100000 (~0.22 kbit/s)
200000 (~0.44 kbit/s)
500000 (~1.11 kbit/s)
1000000 (~2.2 kbit/s)
2000000 (~4.4 kbit/s)
5000000 (~11.1 kbit/s)
10000000 (~22 kbit/s)
20000000 (~44 kbit/s)
50000000 (~111 kbit/s)
optimization

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)
OK

18.3 AT+CGEQREQ

3G quality of service profile (requested)

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

SIM5218_Serial _AT Command Manual_V1.21

276

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
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

+CME ERROR: <err>

Defined values

SIM5218_Serial _AT Command Manual_V1.21

277

1/13/2011
SIM5218 Serial AT Command Manual

<cid>
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands.
1…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,…).
0 – subscribed value
1…512
<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,…).
0 – subscribed value
1…16000
<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,…).
0 – subscribed value
1…512
<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,…).
0 – subscribed value
1…16000
<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.
0
– subscribed value
10…1520 (value needs to be divisible by 10 without remainder)
<SDU error ratio>
This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU

SIM5218_Serial _AT Command Manual_V1.21

278

1/13/2011
SIM5218 Serial AT Command Manual

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”,…).
“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+CGEQREQ=…,”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.
0
–
subscribed value
10…150
–
value needs to be divisible by 10 without remainder
200…950
–
value needs to be divisible by 50 without remainder
1000…4000 –
value needs to be divisible by 100 without remainder
<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.
0 – subscribed value
1 –

SIM5218_Serial _AT Command Manual_V1.21

279

1/13/2011
SIM5218 Serial AT Command Manual

2 –
3 –
<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+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)
OK

18.4 AT+CGQMIN

Quality of service profile (minimum acceptable)

Description
The 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

Responses

SIM5218_Serial _AT Command Manual_V1.21

280

1/13/2011
SIM5218 Serial AT Command Manual

AT+CGQMIN?

+CGQMIN: [<cid>, <precedence >, <delay>, <reliability>,
<peak>, <mean>[<CR><LF>
+CGQMIN: <cid>, <precedence >, <delay>, <reliability.>, <peak>,
<mean>
[…]]]
OK
ERROR

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).
1...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

SIM5218_Serial _AT Command Manual_V1.21

281

1/13/2011
SIM5218 Serial AT Command Manual

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+CGQMIN?

SIM5218_Serial _AT Command Manual_V1.21

282

1/13/2011
SIM5218 Serial AT Command Manual

+CGQMIN:
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)
OK

18.5 AT+CGEQMIN

3G quality of service profile (minimum accepta

ble)
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>

SIM5218_Serial _AT Command Manual_V1.21

283

1/13/2011
SIM5218 Serial AT Command Manual

+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>[…]]
OK
Write Command
AT+CGEQMIN=<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+CGEQMIN

OK

ERROR

+CME ERROR: <err>

Defined values
<cid>
Parameter specifies a particular PDP context definition.The parameter is also used in other PDP
context-related commands.
1…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,…).
0 – subscribed value
1…512
<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,…).

SIM5218_Serial _AT Command Manual_V1.21

284

1/13/2011
SIM5218 Serial AT Command Manual

0 – subscribed value
1…16000
<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,…).
0 – subscribed value
1…512
<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,…).
0 – subscribed value
1…16000
<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.
0 – subscribed value
10…1520 (value needs to be divisible by 10 without remainder)
<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+CGEQREQ=…,”5E3”,..).
“0E0” – subscribed value
“5E2”
“1E2”

SIM5218_Serial _AT Command Manual_V1.21

285

1/13/2011
SIM5218 Serial AT Command Manual

“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.
0
–
subscribed value
10…150
–
value needs to be divisible by 10 without remainder
200…950
–
value needs to be divisible by 50 without remainder
1000…4000 –
value needs to be divisible by 100 without remainder
<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.
0 – subscribed value
1 –
2 –
3 –
<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+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)
OK

SIM5218_Serial _AT Command Manual_V1.21

286

1/13/2011
SIM5218 Serial AT Command Manual

18.6 AT+CGATT Packet domain attach or detach
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
<state>
Indicates the state of Packet Domain attachment:
0 – detached
1 – attached

Examples
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=1
OK

18.7 AT+CGACT PDP context activate or deactivate
Description
The write command is used to activate or deactivate the specified PDP context (s).

SIM5218_Serial _AT Command Manual_V1.21

287

1/13/2011
SIM5218 Serial AT Command Manual

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
<cid>
A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT
command).
1…16

Examples
AT+CGACT?
+CGACT: 1,0
OK
AT+CGACT=?
+CGACT: (0,1)
OK
AT+CGACT=0,1
OK

18.8 AT+CGDATA Enter data state

SIM5218_Serial _AT Command Manual_V1.21

288

1/13/2011
SIM5218 Serial AT Command Manual

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>,[<cid
>]

Responses
CONNECT
NO CARRIER
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).
1…16

Examples
AT+CGDATA=?
+CGDATA: ("PPP")
OK
AT+CGDATA="PPP",1
CONNECT

18.9 AT+CGPADDR

Show PDP address

Description
The write command returns a list of PDP addresses for the specified context identifiers.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

289

1/13/2011
SIM5218 Serial AT Command Manual

YES

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

+CME ERROR: <err>
Responses
[+CGPADDR: <cid>,<PDP_addr>]
+CGPADDR: <cid>,<PDP_addr>[...]]]
OK
ERROR
+CME ERROR: <err>

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.
1…16
<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 =?
+CGPADDR: ( 1)
OK
AT+CGPADDR=1
+CGPADDR: 1,"0.0.0.0"
OK

SIM5218_Serial _AT Command Manual_V1.21

290

1/13/2011
SIM5218 Serial AT Command Manual

18.10

AT+CGCLASS

GPRS mobile station class

Description
The 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

+CME ERROR: <err>
Responses
Set default value:
OK
ERROR

Defined values
<class>
A string parameter which indicates the GPRS mobile class (in descending order of functionality)
A – class A (highest)

Examples
AT+CGCLASS=?
+CGCLASS: ("A")
OK
AT+CGCLASS?
+CGCLASS: "A"
OK

SIM5218_Serial _AT Command Manual_V1.21

291

1/13/2011
SIM5218 Serial AT Command Manual

18.11

AT+CGEREP GPRS event reporting

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.
2 – 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.
<bfr>
0 – MT buffer of unsolicited result codes defined within this command is cleared when
<mode> 1 or 2 is entered.

SIM5218_Serial _AT Command Manual_V1.21

292

1/13/2011
SIM5218 Serial AT Command Manual

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

18.12

AT+CGREG GPRS network registration status

Description

SIM5218_Serial _AT Command Manual_V1.21

293

1/13/2011
SIM5218 Serial AT Command Manual

The 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
YES

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

– disable network registration unsolicited result code
– enable network registration unsolicited result code +CGREG: <stat>
– there is a change in the ME network registration status or a change of the network cell:
+CGREG: <stat>[,<lac>,<ci>]

<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
4 – unknown
5 – registered, roaming
<lac>
Two byte location area code in hexadecimal format(e.g.”00C3” equals 193 in decimal).
<ci>
Two byte cell ID in hexadecimal format.

SIM5218_Serial _AT Command Manual_V1.21

294

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CGREG=?
+CGREG: (0-1)
OK
AT+CGREG?
+CGREG: 0,0
OK

18.13

AT+CGSMS

Select service for MO SMS messages

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)

SIM5218_Serial _AT Command Manual_V1.21

295

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CGSMS?
+CGSMS: 3
OK
AT+CGSMS=?
+CGSMS: (0-3)
OK

18.14

AT+CGAUTH

Set type of authentication for PDP-IP connections

of GPRS
Description
The 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>[,<au

Responses
OK

th_type>[,<passwd>[,<us ERROR
er>]]]
+CME ERROR: <err>
Execution Command
AT+CGAUTH

Responses
OK
ERROR

SIM5218_Serial _AT Command Manual_V1.21

296

1/13/2011
SIM5218 Serial AT Command Manual

+CME ERROR: <err>

Defined values
<cid>
Parameter specifies a particular PDP context definition. This is also used in other PDP
context-related commands.
1…16
<auth_type>
Indicates the types 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
<passwd>
Parameter specifies the password used for authentication. It is required for the authentication types
PAP and CHAP.
<user>
Parameter specifies the user name used for authentication. It is required for the authentication type
PAP.

Examples
AT+CGAUTH=?
+CGAUTH: (1-16),(0-2),
OK
AT+CGAUTH=1,1,”SIMCOM”,”123”
OK

SIM5218_Serial _AT Command Manual_V1.21

297

1/13/2011
SIM5218 Serial AT Command Manual

19 TCP/IP Related Commands
19.1 AT+CGSOCKCONT Define socket PDP context
Description
The 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

Defined values
<cid>
(PDP Context Identifier) a numeric parameter which specifies a particular PDP context definition.

SIM5218_Serial _AT Command Manual_V1.21

298

1/13/2011
SIM5218 Serial AT Command Manual

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.
1…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
<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
2 – V.42bis
<h_comp>
A numeric parameter that controls PDP header compression:
0 – off (default if value is omitted)
1 – on
2 – RFC1144
3 – RFC2507
4 – RFC3095

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-2),(0-3)
OK

19.2 AT+CSOCKSETPN

Set active PDP context’s profile number

Description

SIM5218_Serial _AT Command Manual_V1.21

299

1/13/2011
SIM5218 Serial AT Command Manual

The command sets default active PDP context’s 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.
1…16

Examples
AT+CSOCKSETPN=1
OK

19.3 AT+CSOCKAUTH

Set type of authentication for PDP-IP conne-

ctions of socket
Description
The command is used to set type of authentication for PDP-IP connections of socket.

SIM5218_Serial _AT Command Manual_V1.21

300

1/13/2011
SIM5218 Serial AT Command Manual

SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CSOCKAUTH=?

Responses
+CSOCKAUTH:(range of supported <cid>s),(list of supported
<auth _type> s),,
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>

Responses
OK

[,<auth_type>[,<passwd> ERROR
[,<user>]]]
+CME ERROR: <err>
Execution Command
AT+CSOCKAUTH

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.
1…16
<auth_type>
Indicates the types 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
<passwd>

SIM5218_Serial _AT Command Manual_V1.21

301

1/13/2011
SIM5218 Serial AT Command Manual

Parameter specifies the password used for authentication. It is required for the authentication types
PAP and CHAP.
<user>
Parameter specifies the user name used for authentication. It is required for the authentication type
PAP.

Examples
AT+CSOCKAUTH=?
+CSOCKAUTH: (1-16),(0-2), ,
OK
AT+CSOCKAUTH=1,1,”SIMCOM”,”123”
OK

19.4 AT+IPADDR

Inquire socket PDP address

Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

302

1/13/2011
SIM5218 Serial AT Command Manual

+IPADDR: 10.71.155.118
OK

19.5 AT+NETOPEN

Open socket

Description
The command opens socket, and it can also activate the socket PDP context at the same time.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+NETOPEN=?

Responses
+NETOPEN: (list of supported <sock_type>s), (range of supported
<port>s), (list of supported <mode>s)
OK
ERROR
+CME ERROR: <err>

Read Command
AT+NETOPEN?

Responses
+NETOPEN:<net_state>, <mode>
OK
ERROR
+CME ERROR: <err>

Write Command
AT+NETOPEN=
<sock_type>,<port>[,
<mode>]

Responses
Network opened
OK
+IP ERROR: <err_info>
ERROR
+CME ERROR: <err>

Defined values
<sock_type>
a string parameter that identifies the type of transmission protocol.
TCP – Transfer Control Protocol
UDP – User Datagram Protocol
<port>
A numeric parameter that identifies the port of socket, the range of permitted values is 0 to 65535.
<net_state>
a numeric parameter that indicates the state of PDP context activation:

SIM5218_Serial _AT Command Manual_V1.21

303

1/13/2011
SIM5218 Serial AT Command Manual

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
1
multi-client
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+NETOPEN=”TCP”,80
Network opened
OK
AT+NETOPEN=?
+NETOPEN: ("TCP", "UDP"), (0-65535), (0-1)
OK
AT+NETOPEN?
+NETOPEN: 1, 1
OK

19.6 AT+TCPCONNECT Establish TCP connection
Description
The command establishes TCP connection with TCP server.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+TCPCONNECT =?

Responses
OK
ERROR
+CME ERROR: <err>

Write Command
AT+TCPCONNECT=
<server_IP>, <port>

Responses
Connect ok
OK
+IP ERROR: <err_info>
ERROR
Connect fail

SIM5218_Serial _AT Command Manual_V1.21

304

1/13/2011
SIM5218 Serial AT Command Manual

ERROR
ERROR

Defined values
<server_IP>
A string parameter that identifies the IP address of TCP server.The IP address format consists of 4
octets,separated by decimal point:”AAA.BBB.CCC.DDD”.In the latest software version,it already
Supports DNS query,so it may be a string like “www.google.cn.”.
<port>
A numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to
65535.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+TCPCONNECT=”192.168.0.1”,80
OK
AT+TCPCONNECT=”192.168.0.1”,80
Connect fail
ERROR
AT+TCPCONNECT=”www.google.cn”,80
OK

19.7 AT+TCPWRITE

Send TCP data

Description
The command sends TCP data when the TCP connection is established.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+TCPWRITE=?

Responses
OK
ERROR
+CME ERROR: <err>

Write Command
AT+TCPWRITE=<length>
<CR>data for send

Responses
+TCPWRITE: <reqSendLength>, <cnfSendLength>
OK

SIM5218_Serial _AT Command Manual_V1.21

305

1/13/2011
SIM5218 Serial AT Command Manual

If sending successfully:
Send ok
+IP ERROR: <err_info>
ERROR
ERROR

Defined values
<length>
a numeric parameter which indicates the length of sending data, it must less than 1024.
<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 side’s congestion window are full.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+TCPWRITE=12
>ABCDEFGHIJKL
+TCPWRITE:12, 12
OK
Send ok

19.8 AT+UDPSEND

Send UDP data

Description
The command sends UDP data.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+UDPSEND =?

Responses
OK
ERROR

SIM5218_Serial _AT Command Manual_V1.21

306

1/13/2011
SIM5218 Serial AT Command Manual

+CME ERROR: <err>
Write Command
AT+UDPSEND=<length>,<
IP_address>,<port><CR>
data for send

Responses
+UDPSEND: <reqSendLength>, <cnfSendLength>
OK
+IP ERROR: <err_info>
ERROR
ERROR

Defined values
<length>
a numeric parameter which indicates the length of sending data, it must less than 1024
<IP_address>
A string parameter that identifies the IP address of receiver.The IP address format consists of 4
octets,separated by decimal point:”AAA.BBB.CCC.DDD”.In the latest software version,it already
Supports DNS query,so it may be a string like “www.google.cn.”.
<port>
A numeric parameter that identifies the port of receiver, the range of permitted values is 0 to 65535.
<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 side’s congestion window are full.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+UDPSEND=12,”192.168.0.1”,80
>ABCDEFGHIJKL
+UDPSEND: 12, 12
OK

19.9 AT+SERVERSTART Startup TCP server
Description
The 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:
<client_IP>:<port>.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

307

1/13/2011
SIM5218 Serial AT Command Manual

YES

Vendor

Syntax
Test Command
AT+SERVERSTART=?

Responses
OK
ERROR
+CME ERROR: <err>

Execution Command
AT+SERVERSTART

Responses
OK
+IP ERROR: <err_info>
ERROR

Defined values
<client_IP>
A string parameter that identifies the IP address of client.
<port>
A numeric parameter that identifies the port of client.

Examples
AT+SERVERSTART
OK

19.10

AT+LISTCLIENT List all of clients’ information

Description
The command lists all of clients’ information, and these clients have already been connected with
TCP server.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+LISTCLIENT=?

Responses
OK

Write Command
AT+LISTCLIENT

Responses
[+LISTCLIENT: <index1>, <IP_address>, <port>]
…
[+LISTCLIENT: <indexN>, <IP_address>, <port>]

SIM5218_Serial _AT Command Manual_V1.21

308

1/13/2011
SIM5218 Serial AT Command Manual

OK
+IP ERROR: <err_info>
ERROR
ERROR

Defined values
<indexX>
A numeric parameter that identifies the index of client, the max number of client is ten, and the
range of permitted values is 0 to 9.
<IP_address>
A string parameter that identifies the IP address of client.
<port>
A numeric parameter that identifies the port of client, the range of permitted values is 0 to 65535.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+LISTCLIENT
+LISTCLIENT: 0, 10.71.34.32 , 80
+LISTCLIENT: 1, 10.71.78.89, 1020
OK

19.11

AT+CLOSECLIENT Disconnect specified client

Description
The command disconnects the specified client.if the client disconnects connection, an unsolicited
result code is returned.The unsolicited result code is +IPCLOSE: <client_index>,
<close_reason>,<remote_IP>,<port>.

SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CLOSECLIENT=?

Responses
OK

Write Command
AT+CLOSECLIENT=

Responses
OK

SIM5218_Serial _AT Command Manual_V1.21

309

1/13/2011
SIM5218 Serial AT Command Manual

<client_index>

+IP ERROR: <err_info>
ERROR
ERROR

Defined values
<client_index>
A numeric parameter that identifies the client index which will be closed, The allocated index may
be read using command AT+LISTCLIENT.
<close_reason>
a numeric parameter that identifies reason that the connection closed.
1 remote side sends a request of closing first.
2 reset the connection because of timeout of sending data,or other reasons.
<remote_IP>
A string parameter that identifies the IP address of client.
<port>
A numeric parameter that identifies the port of client.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+CLOSECLIENT=0
OK

19.12

AT+ACTCLIENT Activate specified client

Description
The command activates the specified client, when the client is activated, the client is able to receive
data from TCP server or send data to the TCP server.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+ACTCLIENT=?

Responses
OK

Write Command
AT+ACTCLIENT=
<client_index>

Responses
OK
+IP ERROR: <err_info>
ERROR

SIM5218_Serial _AT Command Manual_V1.21

310

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Defined values
<client_index>
A numeric parameter that identifies the client index which will be closed. The allocated index may
be read using command AT+LISTCLIENT.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+ ACTCLIENT=0
OK

19.13

AT+NETCLOSE

Close socket

Description
The command closes socket, if the socket is opened for a server, then it will disconnect all of
clients’ connection that is connected with the server.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+NETCLOSE =?

Responses
OK

Execution Command
AT+NETCLOSE

Responses
OK
+IP ERROR: <err_info>
ERROR
ERROR

Defined values
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+NETCLOSE
Network closed

SIM5218_Serial _AT Command Manual_V1.21

311

1/13/2011
SIM5218 Serial AT Command Manual

OK

19.14

AT+CIPHEAD

Add an IP head when receiving data

Description
The 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

Set default value:
OK

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
OK

19.15

AT+CIPSRIP Set whether display IP address and port of sender

SIM5218_Serial _AT Command Manual_V1.21

312

1/13/2011
SIM5218 Serial AT Command Manual

when receiving data
Description
The 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

19.16

AT+CIPCCFG Configure parameters of socket

Description

SIM5218_Serial _AT Command Manual_V1.21

313

1/13/2011
SIM5218 Serial AT Command Manual

The command is used to configure parameters of socket.
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)
OK

Read Command
AT+CIPCCFG?

Responses
+CIPCCFG:<NmRetry>,<DelayTm>,<Ack>,<errMode>,<HeaderType>
OK

Write Command
AT+CIPCCFG=
<NmRetry>[,<DelayTm>[,<
Ack>[,<errMode>[,<Header
Type>]]]]
Execution Command
AT+CIPCCFG

Responses
OK
ERROR

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 3.
<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
<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

SIM5218_Serial _AT Command Manual_V1.21

314

1/13/2011
SIM5218 Serial AT Command Manual

< 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>”

Examples
AT+CIPCCFG=?
+CIPCCFG: (3-8),(0-1000),(0-1),(0-1),(0-1)
OK
AT+CIPCCFG=3,500,1,1,1
OK

19.17

AT+CIPOPEN

Establish connection in multi-client mode

Description
The command is used to establish a connection with TCP server and UDP server,The sum of
all of connections are 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
+CME ERROR: <err>

Read Command
AT+CIPOPEN?

Responses
+CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>]
+CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>]
[…]
OK
+IP ERROR: <err_info>
ERROR
+CME ERROR: <err>

Write Command
AT+CIPOPEN=
<link_num>,<type>,<serverI

Responses
OK
+IP ERROR: <err_info>

SIM5218_Serial _AT Command Manual_V1.21

315

1/13/2011
SIM5218 Serial AT Command Manual

P>,<serverPort>

ERROR
+CME ERROR: <err>

Defined values
<link_num>
a numeric parameter that identifies a connection. the range of permitted values is 0 to 9.
<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”.In the latest software version,it already
Supports DNS query,so it may be a string like “www.google.cn.”.
<serverPort>
a numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to
65535.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+CIPOPEN=0,"TCP","116.228.221.51",100
Connect ok
OK
AT+CIPOPEN=?
+CIPOPEN: (0-9), ("TCP", "UDP")
OK
AT+CIPOPEN?
+CIPOPEN: 0, "TCP", "116.228.221.51", 100
+CIPOPEN: 1
+CIPOPEN: 2
+CIPOPEN: 3
+CIPOPEN: 4
+CIPOPEN: 5
+CIPOPEN: 6
+CIPOPEN: 7
+CIPOPEN: 8
+CIPOPEN: 9
OK
AT+CIPOPEN=0,"TCP","www.google.cn",80
Connect ok

SIM5218_Serial _AT Command Manual_V1.21

316

1/13/2011
SIM5218 Serial AT Command Manual

OK

19.18

AT+CIPSEND

Send data in multi-client mode

Description
The command sends some data to remote host in mult-client mode.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CIPSEND =?

Responses
+CIPSEND: (list of supported <link_num>s), (list of supported <
length >s)
OK
+IP ERROR: <err_info>
ERROR
+CME ERROR: <err>

Read Command
AT+CIPSEND?

Responses
OK
+CME ERROR: <err>

Write Command
AT+CIPSEND=<link_num>,
<length><CR>data for send

Responses
+CIPSEND: <reqSendLength>, <cnfSendLength>
OK
If sending successfully:
Send ok
+IP ERROR: <err_info>
ERROR
+CME ERROR: <err>

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 less than 1024.
<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.

SIM5218_Serial _AT Command Manual_V1.21

317

1/13/2011
SIM5218 Serial AT Command Manual

-1
the connection is disconnected.
0
own send buffer or other side’s congestion window are full.
<err_info>
A string parameter that displays the cause of occurring error.

Examples
AT+CIPSEND=0,1
>S
+CIPSEND: 1, 1
OK
Send ok
AT+CIPSEND=?
+CIPSEND: (0-9), (1-1024)
OK

19.19

AT+CIPCLOSE

Close connection in Multi-client mode

Description
The command closes a specified connection in multi-client mode.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CIPCLOSE =?

Responses
+CIPCLOSE: (list of supported <link_num>s)
OK
+CME ERROR: <err>

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
+IP ERROR: <err_info>
ERROR
+CME ERROR: <err>

Write Command
AT+CIPCLOSE=
<link_num>

Responses
OK
+IP ERROR: <err_info>
ERROR

SIM5218_Serial _AT Command Manual_V1.21

318

1/13/2011
SIM5218 Serial AT Command Manual

+CME ERROR: <err>

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

19.20

AT+CDNSGIP Query the IP address of given domain name

Description
The command is used to query the IP address of given domain name.
SIM PIN
YES

References
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

SIM5218_Serial _AT Command Manual_V1.21

319

1/13/2011
SIM5218 Serial AT Command Manual

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

19.21

AT+CIPMODE

Select TCPIP application mode

Description
The command is used to select TCPIP application modes that includes two modes(normal mode
and transparent mode).The default mode is normal 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

SIM5218_Serial _AT Command Manual_V1.21

320

1/13/2011
SIM5218 Serial AT Command Manual

Execution Command
AT+CIPMODE

Responses
Set default value(<mode>=0):
OK

Defined values
<mode>
0 –
1 –

Normal mode
Transparent mode

Examples
AT+CIPMODE?
+CIPMODE: 1
OK
AT+CIPMODE=1
OK
AT+CIPMODE=?
+CIPMODE: (0-1)
OK
AT+CIPMODE
OK

19.22

Information elements related to TCP/IP

The following table lists information elements which may be returned.It should be noted that TCP/IP
socket problems may occur or result may be executed.
Information

Description

Network opened

Indicate that the write command
AT+NETOPEN has excuted successfully.

Network not opened

Indicate that you should execute AT+NETOPEN first.

Network is already opened

Indicate that the write command of AT+NETOPEN has already executed successfully.

Port overflow

Indicate that input port is out of range.

Create socket failed

Indicate that socket has not been created su
ccessfully.

Bind port failed

Indicate that input port is already in use.

Connect ok

Indicate that establishing a connection succe
ssfully.

Connection is already created

Indicate that a connection has been already
established.

SIM5218_Serial _AT Command Manual_V1.21

321

of

1/13/2011
SIM5218 Serial AT Command Manual

Connect fail

Indicate that establishing a connection unsuccessfully

No clients connected

Indicate that module as TCP server has no any
connection.

No active client

Indicate that you should execute AT+ACTCLIENT first and select a connection.

Client index overflow

Indicate that input client’s index is out of
range.

Connection disconnected

Indicate that the remote end has closed the
connection.

Socket closed

Indicate that socket is closed.

Network closed

Indicate that the write command
AT+NETCLOSE has excuted successfully.

Network is already closed

Indicate that network has been closed now.

SIM5218_Serial _AT Command Manual_V1.21

322

of

1/13/2011
SIM5218 Serial AT Command Manual

20 SIM Application Toolkit (SAT) Commands
20.1 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
NO

References
Vendor

Syntax
Test Command
AT+STIN=?

Responses
OK

Read Command
AT+STIN?

Responses
+STIN: <cmd_id>
OK

Unsolicited Result Codes
+STIN: <cmd_id>
Proactive Command notification
21 – display text
22
– get inkey
23
– get input
24
– select item
+STIN: 25
Notification that SIM Application has returned to main menu. If user does any action in 2 seconds,
application will return to main menu automatically.
VOICE CALL: BEGIN
Notification that SIM Application has originated a voice call.

Defined values
<cmd_id>
21 – display text
22
– get inkey

SIM5218_Serial _AT Command Manual_V1.21

323

1/13/2011
SIM5218 Serial AT Command Manual

23
24
25

– get input
– select item
– set up menu

Examples
AT+STIN?
+STIN: 24
OK

20.2 AT+STGI

Get SAT information

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
NO

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>

SIM5218_Serial _AT Command Manual_V1.21

324

1/13/2011
SIM5218 Serial AT Command Manual

+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

SIM5218_Serial _AT Command Manual_V1.21

325

1/13/2011
SIM5218 Serial AT Command Manual

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

SIM5218_Serial _AT Command Manual_V1.21

326

1/13/2011
SIM5218 Serial AT Command Manual

20.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
NO

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:
<data> ignore

SIM5218_Serial _AT Command Manual_V1.21

327

1/13/2011
SIM5218 Serial AT Command Manual

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

SIM5218_Serial _AT Command Manual_V1.21

328

1/13/2011
SIM5218 Serial AT Command Manual

21 Internet Service Command
21.1 Simple mail transfer protocol service
21.1.1

AT+SMTPSRV SMTP server address and port number

Description
The synchronous command is used to set SMTP server address and server’s 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 won’t 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
128 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

SIM5218_Serial _AT Command Manual_V1.21

329

1/13/2011
SIM5218 Serial AT Command Manual

AT+SMTPSRV?
+SMTPSRV: "smtp.server.com", 25
OK
AT+SMTPSRV
OK
AT+SMTPSRV?
+SMTPSRV: "", 25
OK

21.1.2

AT+SMTPAUTH

SMTP server authentication

Description
The 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 won’t 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.
0 – SMTP server doesn’t require authentication, factory value.

SIM5218_Serial _AT Command Manual_V1.21

330

1/13/2011
SIM5218 Serial AT Command Manual

1 – SMTP server requires authentication.
<user>
User name to be used for SMTP authentication, non empty string with double quotes and up to 128
characters.
<pwd>
Password to be used for SMTP authentication, string with double quotes and up to 128 characters.
NOTE If <flag> is 0, <user> and <pwd> must be omitted (i.e. only <flag> is present).

Examples
AT+SMTPAUTH?
+SMTPAUTH: 0, “”, “”
OK
AT+SMTPAUTH=1,”username”,”password”
OK
AT+SMTPAUTH?
+SMTPAUTH: 0, ”username”, ”password”
OK
AT+SMTPAUTH
OK
AT+SMTPAUTH?
+SMTPAUTH: 0, “”, “”
OK

21.1.3

AT+SMTPFROM

Sender address and name

Description
The synchronous command is used to set sender’s address and name, which are used to construct
e-mail header. The sender’s address must be correct, and if the process of sending an e-mail is
ongoing, the command will return “ERROR” directly.
Read command returns current sender’s address and name.
Execution command will clear sender’s address and name.
NOTE After an e-mail is sent successfully or unsuccessfully, sender address and name won’t be
cleared.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+SMTPFROM=?
Read Command
AT+SMTPFROM?

Responses
OK
Responses
+SMTPFROM: <saddr>, <sname>
OK

SIM5218_Serial _AT Command Manual_V1.21

331

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+SMTPFROM=
<saddr>[, <sname>]

Responses
OK

Execution Command
AT+SMTPFROM

Responses
OK

Defined values
<saddr>
E-mail sender address (MAIL FROM), non empty string with double quotes, mandatory and ASCII
text up to 128 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 64 characters.
<sname> will be present in the header of the e-mail sent by SMTP client in the field: “From: ”.

Examples
AT+SMTPFROM="senderaddress@server.com","sendername"
OK
AT+SMTPFROM?
+SMTPFROM: "senderaddress@server.com", "sendername"
OK
AT+SMTPFROM
OK
AT+SMTPFROM?
+SMTPFROM: "", ""
OK

21.1.4

AT+SMTPRCPT Recipient address and name (TO/CC/BCC)

Description
The 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
won’t be cleared.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

332

1/13/2011
SIM5218 Serial AT Command Manual

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

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 128 characters.
<rname>
Recipient name, string type with double quotes, and up to 64 characters.

Examples
AT+SMTPRCPT=0, 0, “rcptaddress_to@server.com”, “rcptname_to”
OK
AT+SMTPRCPT?
+SMTPRCPT: 0, 0, “rcptaddress_to@server.com”, “rcptname_to”
OK
AT+SMTPRCPT=1, 0, “rcptaddress_cc@server.com”, “rcptname_cc”
OK
AT+SMTPRCPT?
+SMTPRCPT: 0, 0, “rcptaddress_to@server.com”, “rcptname_to”
+SMTPRCPT: 1, 0, “rcptaddress_cc@server.com”, “rcptname_cc”

SIM5218_Serial _AT Command Manual_V1.21

333

1/13/2011
SIM5218 Serial AT Command Manual

OK

21.1.5

AT+SMTPSUB

E-mail subject

Description
The 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 won’t
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 512 characters. <subject> will be
present in the header of the e-mail sent by SMTP client in the field: “Subject: ”.

Examples
AT+SMTPSUB?
+SMTPSUB: “”
OK
AT+SMTPSUB=”THIS IS A TEST MAIL”
OK
AT+SMTPSUB?
+SMTPSUB: “THIS IS A TEST MAIL”
OK

21.1.6

AT+SMTPBODY E-mail body

SIM5218_Serial _AT Command Manual_V1.21

334

1/13/2011
SIM5218 Serial AT Command Manual

Description
The 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 won’t 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
<body>
E-mail body, string with double quotes, and printable ASCII text up to 512 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.”

SIM5218_Serial _AT Command Manual_V1.21

335

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+SMTPBODY
>> This is a test mail.<ESC>
OK
AT+SMTPBODY?
+SMTPBODY: “”
OK

21.1.7

AT+SMTPFILE

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.
Execute command will clear all attachments.
NOTE After an e-mail is sent successfully, attachment will be cleared, if unsuccessfully, it won’t
be cleared. The same file can’t be selected twice.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+SMTPFILE=?

Responses
+SMTPFILE: (list of supported <index>s)
OK

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

SIM5218_Serial _AT Command Manual_V1.21

336

1/13/2011
SIM5218 Serial AT Command Manual

system commands). SMTP client doesn’t allow two attachments with the same file name.
<filesize>
File size in decimal format. The total size of all attachments can’t exceed 10MB.

Examples
AT+SMTPFILE=1,”file1.txt”
OK
AT+SMTPFILE?
+SMTPFILE: 1, “D:/file1.txt”
OK
AT+SMTPFILE=2,”file2.txt”
OK
AT+SMTPFILE?
+SMTPFILE: 1, “D:/file1.txt”
+SMTPFILE: 2, “D:/file2.txt”
OK

21.1.8

AT+SMTPSEND

Initiate session and send e-mail

Description
The 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 doesn’t 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 an 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
+SMTP: OK
OK

SIM5218_Serial _AT Command Manual_V1.21

337

1/13/2011
SIM5218 Serial AT Command Manual

+SMTP: <code>
+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 can’t send the e-mail again.
0 – Not ongoing.
1 – Ongoing.
<code>
SUCCESS
SMTP client has sent the e-mail successfully.
ONGOING

The process of sending an e-mail is ongoing.

PARAM ERROR
NETWORK ERROR

Mandatory parameter isn’t set (SMTP server, or sender/recipient address)
Invalid SMTP server.
Network is bad for establishing session or sending data to SMTP server.
SMTP server released the session.
SMTP server rejects the operation with wrong response.
SMTP server doesn’t give SMTP client a response in time.
Authentication is required by SMTP server.
SMTP server rejects the session because of bad user name and password
combination.

SERVER ERROR

AUTH REQUIRED
AUTH ERROR

Examples
AT+SMTPSEND?
+SMTPSEND: 0
OK
AT+SMTPSEND
+SMTP: OK
OK
+SMTP: SUCCESS

21.1.9

AT+SMTPSTOP Force to stop sending e-mail

Description
The synchronous command is used to force to stop sending e-mail and close the TCP session while
sending an e-mail is ongoing. Otherwise, the command will return “ERROR” directly.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

338

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+SMTPSTOP=?

Responses
OK

Execution Command
AT+SMTPSTOP

Responses
OK
ERROR

Examples
AT+SMTPSEND?
+SMTPSEND: 1
OK
AT+SMTPSTOP
OK

21.2 Post Office Protocol 3 Service
21.2.1

AT+POP3SRV POP3 server and account

Description
The synchronous command is used to set all parameters to get and e-mail from POP3 server,
including server address, port number, user name and password. If POP3 client isn’t free, the
command will return “ERROR” directly.
Read command returns current all information about POP3 server and account.
Execution command will clear POP3 server address, user name and password, and set server’s port
number as default value.
NOTE After an e-mail is sent successfully or unsuccessfully, POP3 server and account information
won’t be cleared.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3SRV=?
Read Command
AT+POP3SRV?
Write Command
AT+POP3SRV=<server>,
<user>, <pwd>[, <port>]
Execution Command

Responses
+POP3SRV: (list of supported <port>s)
OK
Responses
+POP3SRV: <server>, <user>, <pwd>, <port>
OK
Responses
OK
Responses

SIM5218_Serial _AT Command Manual_V1.21

339

1/13/2011
SIM5218 Serial AT Command Manual

AT+POP3SRV

OK

Defined values
<server>
POP3 server address, non empty string with double quotes, mandatory and ASCII text string up to
128 characters.
<user>
User name to log in POP3 server, non empty string with double quotes, and up to 128 characters.
<pwd>
Password to log in POP3 server, non empty string with double quotes, and up to 128 characters.
<port>
Port number of POP3 server in decimal format, from 1 to 65535, and default port is 110 for POP3.

Examples
AT+POP3SRV=?
+POP3SRV: (1-65535)
OK
AT+POP3SRV?
+POP3SRV: “”, “”, “”, 110
OK
AT+POP3SRV=”pop3.server.com”, “user_name”, “password”, 110
OK
AT+POP3SRV?
+POP3SRV: “pop3.server.com”, “user_name”, “password”, 110
OK
AT+POP3SRV
OK
AT+POP3SRV?
+POP3SRV: “”, “”, “”, 110
OK

21.2.2

AT+POP3IN

Log in POP3 server

Description
The asynchronous command is used to log in POP3 server and establish a session after POP3 server
and account information are set rightly. If the POP3 client logs in POP3 server successfully, the
response “+POP3: SUCCESS” will be returned to TE; if no POP3 operation for a long time after
the session is ready, POP3 server may release the session.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

340

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+POP3IN=?
Read Command
AT+POP3IN?

Execute Command
AT+POP3IN

Responses
OK
Responses
+POP3IN: “<server>”
OK
+POP3IN: NULL
OK
Responses
+POP3: SUCCESS
OK
+POP3: <code>
ERROR

Defined values
<code>
NETWORK ERROR
SERVER ERROR

Invalid POP3 server or network is bad for establishing session or
sending data to POP3 server.
POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.
Invalid user name to log in POP3 server.
Invalid user name and password combination to log in POP3 server.

INVALID UN
INVALID UN/PWD
<server>
The address of the POP3 server currently logged in.

Examples
AT+POP3IN=?
OK
AT+POP3IN
+POP3: SUCCESS
OK

21.2.3

AT+POP3NUM

Get e-mail number and total size

Description
The asynchronous command is used to get e-mail number and total size on the specified POP3
server after the POP3 client logs in POP3 server successfully and no other POP3 operation is
ongoing.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

341

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+POP3NUM=?

Responses
OK

Execution Command
AT+POP3NUM

Responses
+POP3: <num>, <tsize>
OK
+POP3: <code>
ERROR

Defined values
<num>
The e-mail number on the POP3 server, decimal format.
<tsize>
The total size of all e-mail and the unit is in Byte.
<code>
NETWORK ERROR
Network is bad for sending data to POP3 server.
SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.

Examples
AT+POP3NUM=?
OK
AT+POP3NUM
+POP3: 1, 3057
OK
AT+POP3NUM
+POP3: ONGOING
OK

21.2.4

AT+POP3LIST List e-mail ID and size

Description
The asynchronous command is used to list e-mail number and total size, e-mail ID and each
e-mail’s size after the POP3 client logs in POP3 server successfully and no other POP3 operation is
ongoing. The e-mail ID may be used to do those operations: get e-mail header, get the whole e-mail,
and mark an e-mail to delete from POP3 server.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

342

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+POP3LIST=?

Responses
OK

Write Command
AT+POP3LIST=<msg_id>

Responses
+POP3: <msg_id>, <size>
OK
ERROR

Execution Command
AT+POP3LIST

Responses
+POP3: <num> <tsize>
[<msg_id> <size>
[<CR><LF>…]]
OK
+POP3: <code>
ERROR

Defined values
<num>
The e-mail number on the POP3 server, decimal format.
<tsize>
The total size of all e-mail and the unit is in Byte.
<msg_id>
The e-mail’s ID.
<size>
The size of e-mail <msg_id>, and the unit is in Byte.
<code>
NETWORK ERROR
Network is bad for sending data to POP3 server.
SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.
POP3 client gives wrong e-mail’s ID.

Examples
AT+POP3LIST=?
OK
AT+POP3LIST
+POP3: 1 3056
1 3056
OK
AT+POP3LIST=1
+POP3: 1, 3056
OK

SIM5218_Serial _AT Command Manual_V1.21

343

1/13/2011
SIM5218 Serial AT Command Manual

21.2.5

AT+POP3HDR

Get e-mail header

Description
The asynchronous command is used to retrieve e-mail’s sender address, date and sender address,
that are present in the mail’s header.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3HDR=?

Responses
OK

Write Command
AT+POP3HDR=<msg_id>

Responses
From: [<from>]
Date: [<date>]
Subject: [<sub>]
OK
+POP3: <code>
ERROR

Defined values
<msg_id>
The e-mail’s ID.
<from>
E-mail’s sender name and sender address from mail
<date>
E-mail’s date from mail header.
<sub>
E-mail’s subject from mail header.
<code>
NETWORK ERROR
Network is bad for sending data to POP3 server.
SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.
POP3 client gives wrong e-mail’s ID.

Examples
AT+POP3HDR=1
From: sendername<senderaddress@server.com>
Date: Mon, 17 Aug 2009 14:09:27 +0800
Subject: THIS IS A TEST MAIL

SIM5218_Serial _AT Command Manual_V1.21

344

1/13/2011
SIM5218 Serial AT Command Manual

OK

21.2.6

AT+POP3GET Get an e-mail from POP3 server

Description
The command is used to retrieve specified e-mail from the POP3 server. After retrieving an e-mail
successfully, POP3 client will create a directory and save the e-mail’s header and body into file
system as file “EmailXYZ.TXT”, and save each attachment as a file under the same directory.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3GET=?

Responses
OK

Write Command
AT+POP3GET=<msg_id>,[
<get_type>]

Responses
OK
+POP3: <code>
<mail_dir>, <mail_file>
+POP3: <code>
ERROR

Defined values
<msg_id>
The e-mail’s ID.
<mail_dir>
The directory for e-mail and attachment, string type without double quotes and the format is
“YYMMDDHHMMSS” which is generated according to module’s RTC.
According to the setting of command +FSLOCA (refer to file system commands), TE can select the
location (local file system or storage card) in which POP3 client saves e-mail file and attachment.
<mail_file>
The file to save e-mail’s header and body, string type without double quotes. Usually, this file name
is “EMAIL000.TXT”, and if e-mail includes an attachment whose name is the same as the e-mail
file, the number in the e-mail file name will be increase by 1, e.g. “EMAIL001.TXT”,
“EMAIL002.TXT”.
<code>
NETWORK ERROR
Network is bad for sending or receiving data to POP3 server.
SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.

SIM5218_Serial _AT Command Manual_V1.21

345

1/13/2011
SIM5218 Serial AT Command Manual

POP3 client gives wrong e-mail’s ID.
FILE SYSTEM ERROR

File system is bad for saving e-mail or attachment, storage space isn’t
enough, or storage card is pulled out. If POP3 client encounters this
error, POPE client will close the session with POP3 server.
POP3 client gets an e-mail from POP3 server successfully.
POP3 client gets an e-mail unsuccessfully.

SUCCESS
FAILURE
<get_type>
The type to save when getting message from POP3 server:
1 – Save parsed body file and attachments
2 – Save the whole message as a “.eml” file.
3 – Save the parsed body file, attachments and eml file.

Examples
AT+POP3GET=1
OK
+POP3: SUCCESS
C:/Email/090901120000/, EMAIL000.TXT
AT+POP3GET=1,2
OK
+POP3: SUCCESS
C:/Email/090901120000/, 090901120000.eml
AT+POP3GET=2
OK
+POP3: FAILURE

21.2.7

AT+POP3DEL Mark an e-mail to delete from POP3 server

Description
The asynchronous command is used to mark an e-mail to delete from POP3 server. The operation
only marks an e-mail on the server to delete it, and after POP3 client logs out POP3 server and
closes the session normally, the marked e-mail is deleted on the server. Otherwise, the e-mail isn’t
deleted.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3DEL=?

Responses
OK

Write Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

346

1/13/2011
SIM5218 Serial AT Command Manual

AT+POP3DEL=<msg_id>

+POP3: SUCCESS
OK
+POP3: <code>
ERROR

Defined values
<msg_id>
E-mail’s ID for mark to delete it on POP3 server.
<code>
NETWORK ERROR
Network is bad for sending data to POP3 server.
SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.
POP3 client gives wrong e-mail’s ID.

Examples
AT+POP3DEL=1
+POP3: SUCCESS
OK

21.2.8

AT+POP3OUT Log out POP3 server

Description
The command will log out the POP3 server and close the session, and if there are some e-mails
which are marked to delete, it also informs POP3 server to delete the marked e-mails.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3OUT=?

Responses
OK

Execution Command
AT+POP3OUT

Responses
+POP3: SUCCESS
OK
+POP3: <code>
ERROR

Defined values
<code>
NETWORK ERROR

Network is bad for sending data to POP3 server.

SIM5218_Serial _AT Command Manual_V1.21

347

1/13/2011
SIM5218 Serial AT Command Manual

SERVER ERROR

POP3 server released the session.
POP3 server rejects the operation with wrong response.
POP3 server doesn’t give POP3 client a response in time.
POP3 client gives wrong e-mail’s ID.

Examples
AT+POP3OUT
+POP3: SUCCESS
OK

21.2.9

AT+POP3STOP Force to stop receiving e-mail/close the session

Description
The synchronous command is used to force to close the session, and if the process of receiving
e-mail is ongoing, the command also stops the operation. Otherwise, the command will return
“ERROR” directly. If an e-mail has been marked to delete, POP3 server won’t delete the e-mail
after the session is closed.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+POP3STOP=?

Responses
OK

Execution Command
AT+POP3STOP

Responses
OK
ERROR

Examples
AT+POP3STOP
OK

21.2.10 AT+POP3READ

Read an e-mail from file system

Description
The command is used to read an e-mail from file system. If the process of receiving e-mail is
ongoing, the command can’t read an e-mail.
Execution command is used to read the e-mail which is received just now.
SIM PIN
YES

References
Vendor

Syntax Syntax

SIM5218_Serial _AT Command Manual_V1.21

348

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+POP3READ=?

Responses
OK

Write Command
AT+POP3READ=
<location>, <mail_file>

Responses
<e-mail>
OK
ERROR

Execution Command
AT+POP3READ

Responses
<e-mail>
OK
ERROR

Defined values
<location>
The location from which TE reads an e-mail.
0 – Local file system.
1 – Storage card.
<mail_file>
The e-mail’s file name, string type with double quotes and including a directory name and a text file
name separated by the list separator “/”, e.g. “090901103000/EMAIL000.TXT”.
<e-mail>
The content of e-mail, including e-mail header and body.

21.3 File Transfer Protocol Service
21.3.1

AT+CFTPPORT Set FTP server port

Description
The command is used to set FTP server port.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPPORT=?
Read Command
AT+CFTPPORT?
Write Command

Responses
+CFTPPORT: (list of supported <port>s)
OK
Responses
+CFTPPORT: <port>
OK
Responses

SIM5218_Serial _AT Command Manual_V1.21

349

1/13/2011
SIM5218 Serial AT Command Manual

AT+CFTPPORT=<port>

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

21.3.2

AT+CFTPMODE

Set FTP mode

Description
The command is used to set FTP passive/proactive mode. Default is proactive mode.
SIM PIN
YES

References
Vendor

Syntax
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.

SIM5218_Serial _AT Command Manual_V1.21

350

1/13/2011
SIM5218 Serial AT Command Manual

1 – passive mode.

Examples
AT+CFTPMODE=1
OK
AT+CFTPMODE?
+CFTPMODE: 1
OK
AT+CFTPMODE=?
+CFTPMODE: (0,1)
OK

21.3.3

AT+CFTPTYPE

Set FTP type

Description
The command is used to set FTP type. Default is binary type.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPTYPE=?
Read Command
AT+CFTPTYPE?
Write Command
AT+CFTPTYPE=<type>

Responses
+CFTPTYPE: (list of supported <type>s)
OK
Responses
+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?

SIM5218_Serial _AT Command Manual_V1.21

351

1/13/2011
SIM5218 Serial AT Command Manual

+CFTPTYPE: A
OK
AT+CFTPTYPE=?
+CFTPTYPE: (A,I)
OK

21.3.4

AT+CFTPSERV Set FTP server domain name or IP address

Description
The 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=
”<address>”

Responses
+CFTPSERV: “ADDRESS”
OK
Responses
+CFTPSERV: ”<address>”
OK
Responses
OK
+CME ERROR

Defined values
<address>
The FTP server domain name or IP address.

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

21.3.5

AT+CFTPUN

Set user name for FTP access

SIM5218_Serial _AT Command Manual_V1.21

352

1/13/2011
SIM5218 Serial AT Command Manual

Description
The 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.

Examples
AT+CFTPUN=”myname”
OK
AT+CFTPUN=”anonymous”
OK
AT+CFTPUN?
+CFTPUN: “myname”
OK
AT+CFTPUN=?
+CFTPUN: ”NAME”
OK

21.3.6

AT+CFTPPW Set user password for FTP access

Description
The command is used to set user password for FTP server access.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

353

1/13/2011
SIM5218 Serial AT Command Manual

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.

Examples
AT+CFTPPW=”mypass”
OK
AT+CFTPPW?
+CFTPPW: “mypass”
OK
AT+CFTPPW=?
+CFTPPW: ”mypass”
OK

21.3.7

AT+CFTPGETFILE

Get a file from FTP server to EFS

Description
The 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>

Responses
+CFTPGETFILE: [{non-ascii}]“FILEPATH”, (0-8)
OK
Responses
OK
+CFTPGETFILE: 0
+CME ERROR
OK

SIM5218_Serial _AT Command Manual_V1.21

354

1/13/2011
SIM5218 Serial AT Command Manual

+CFTPGETFILE: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t 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]
1 – “C:/Picture” directory
2 – “C:/Video” directory
3 – “C:/VideoCall” directory
4 – “D:/Picture” directory
5 – “D:/Video” directory
6 – “D:/VideoCall” directory
7 – “C:/Audio” directory
8 – “D:/Audio” directory
<err>
The error code of FTP operation.

Examples
AT+CFTPGETFILE=”/pub/mydir/test1.txt”,1
OK
…
+CFTPGETFILE: 0
AT+CFTPGETFILE=” test2.txt”,2
OK
…
+CFTPGETFILE: 0
AT+CFTPGETFILE={non-ascii}” B2E2CAD42E747874”,2
OK
…
+CFTPGETFILE: 0
AT+CFTPGETFILE=?
+CFTPGETFILE: [{non-ascii}]“FILEPATH”,(0-8)
OK

21.3.8

AT+CFTPPUTFILE

Put a file in module EFS to FTP server

Description
The command is used to upload a file in the module EFS to FTP server.

SIM5218_Serial _AT Command Manual_V1.21

355

1/13/2011
SIM5218 Serial AT Command Manual

SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPPUTFILE=?
Write Command
AT+CFTPPUTFILE=
“<filepath>”,<dir>

Responses
+CFTPPPUTFILE: [{non-ascii}] “FILEPATH”, (0-8)
OK
Responses
OK
+CFTPPUTFILE: 0
+CME ERROR
OK
+CFTPPUTFILE: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t 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]
1 – “C:/Picture” directory
2 – “C:/Video” directory
3 – “C:/VideoCall” directory
4 – “D:/Picture” directory
5 – “D:/Video” directory
6 – “D:/VideoCall” directory
7 – “C:/Audio” directory
8 – “D:/Audio” directory
<err>
The error code of FTP operation.

Examples
AT+CFTPPUTFILE=”/pub/mydir/test1.txt”,1
OK
AT+CFTPPUTFILE=” test2.txt”,1
OK
…
+CFTPPUTFILE: 0

SIM5218_Serial _AT Command Manual_V1.21

356

1/13/2011
SIM5218 Serial AT Command Manual

AT+CFTPPUTFILE={non-ascii}” B2E2CAD42E747874”,1
OK
…
+CFTPPUTFILE: 0
AT+CFTPPUTFILE=?
+CFTPPUTFILE: [{non-ascii}]“FILEPATH”,(0-8)
OK

21.3.9

AT+CFTPGET Get a file from FTP server and output it from SIO

Description
The 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>”

Responses
+CFTPGET: [{non-ascii}] “FILEPATH”
OK
Responses
OK
+CFTPGET: DATA,<len>
…
+CFTPGET: DATA, <len>
…
…
+CFTPGET: 0
+CME ERROR
+CFTPGET: DATA, <len>
…
+CFTPGET: DATA, <len>
…
…
+CFTPGET: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t contain ”/”, this command transfer file from the
current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter

SIM5218_Serial _AT Command Manual_V1.21

357

1/13/2011
SIM5218 Serial AT Command Manual

should contain a prefix of {non-ascii}.
<len>
The length of FTP data contained in this packet.
<err>
The error code of FTP operation.

Examples
AT+CFTPGET=”/pub/mydir/test1.txt”
OK
+CFTPGET: DATA, 1020,
…
+CFTPGET: DATA, 1058,
…
…
+CFTPGET: 0
AT+CFTPGET={non-ascii}”/2F74657374646972/B2E2CAD42E747874”
OK
+CFTPGET: DATA, 1020,
…
+CFTPGET: 0
AT+CFTPGET=?
+CFTPGET:[{non-ascii}] “FILEPATH”
OK

21.3.10 AT+CFTPPUT Put a file to FTP server
Description
The command is used to put a file to FTP server using the data got from serial port. Each <Ctrl+Z>
character present in the data flow of serial port when downloading FTP data will be coded as
<ETX><Ctrl+Z>. Each <ETX> character will be coded as <ETX><ETX>. Single <Ctrl+Z> means
end of the FTP data.
<ETX> is 0x03, and <Ctrl+Z> is 0x1A.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPPUT=?
Execution Command
AT+CFTPPUT=“<filepath>”

Responses
+CFTPPUT: [{non-ascii}] “FILEPATH”
OK
Responses
+CFTPPUT: BEGIN
OK

SIM5218_Serial _AT Command Manual_V1.21

358

1/13/2011
SIM5218 Serial AT Command Manual

+CME ERROR
+CFTPPUPT: BEGIN
+CME ERROR

Defined values
<filepath>
The remote file path. When the file path doesn’t 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}.

Examples
AT+CFTPPUT=”/pub/mydir/test1.txt”
+CFTPPUT: BEGIN
…..<Ctrl+Z>
OK
AT+CFTPPUT={non-ascii}”/2F74657374646972/B2E2CAD42E747874”
+CFTPPUT: BEGIN
…..<Ctrl+Z>
OK
AT+CFTPPUT=?
+CFTPPUT: [{non-ascii}]“FILEPATH”
OK

21.3.11 AT+CFTPLIST List the items in the directory on FTP server
Description
This command is used to list the items in the specified directory on FTP server
SIM PIN
YES

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>

SIM5218_Serial _AT Command Manual_V1.21

359

1/13/2011
SIM5218 Serial AT Command Manual

+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

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

21.3.12Unsolicited FTP Codes (Summary of CME ERROR Codes)
Code of <err>
201
202
203

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

21.4 Hyper Text Transfer Protocol Service
21.4.1

AT+CHTTPACT Launch a HTTP operation

SIM5218_Serial _AT Command Manual_V1.21

360

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command is used to launch a HTTP operation like GET or POST. Each <Ctrl+Z> character
presented in the data flow of serial port will be coded as <ETX><Ctrl+Z>. Each <ETX> character
will be coded as <ETX><ETX>. Single <Ctrl+Z> means end of the HTTP request data or end of
the HTTP responded data.
<ETX> is 0x03, and <Ctrl+Z> is 0x1A.
For this command there may be a lot of DATA which need to be transferred to DTE using serial
port, it is recommended that the AT+CATR will be used.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CHTTPACT=?
Write Command
AT+CHTTPACT=
“<address>”,<port>

Responses
+CHTTPACT: “ADDRESS”, (1-65535)
OK
Responses
+CHTTPACT: REQUEST
+CHTTPACT: DATA, <len>
…
+CHTTPACT: DATA, <len>
…
…
+CHTTPACT: 0
+CME ERROR
+CHTTPACT: REQUEST
+CME ERROR
+CHTTPACT: REQUEST
+CHTTPACT: <err>
+CHTTPACT: REQUEST
+CHTTPACT: DATA, <len>
…
+CHTTPACT: DATA, <len>
…
…
+CHTTPACT: <err>

Defined values
<address>
The HTTP server domain name or IP address.
<port>

SIM5218_Serial _AT Command Manual_V1.21

361

1/13/2011
SIM5218 Serial AT Command Manual

The HTTP server port.
<len>
The length of HTTP data in the packet.
<err>
The error code of HTTP operation.

Examples
AT+CHTTPACT=”www.mywebsite.com”,80
+CHTTPACT: REQUEST
GET http://www.mywebsite.com/index.html HTTP/1.1
Host: www.mywebsite.com
User-Agent: MY WEB AGENT
Content-Length: 0
<Ctrl+Z>
OK
+CHTTPACT: 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>
+CHTTPACT: 0
AT+CHTTPACT=”www.mywebsite.com”,80
+CHTTPACT: REQUEST
POST http://www.mywebsite.com/mydir/test.jsp HTTP/1.1
Host: www.mywebsite.com
User-Agent: MY WEB AGENT
Accept: */*
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Accept-Charset: utf-8, us-ascii
Pragma: no-cache
Content-Length: 29

SIM5218_Serial _AT Command Manual_V1.21

362

1/13/2011
SIM5218 Serial AT Command Manual

myparam1=test1&myparam2=test2<Ctrl+Z>
OK
+CHTTPACT: DATA, 234
HTTP/1.1 200 OK
Content-Type: text/html
Content-Language: zh-CN
Content-Length: 54
Date: Tue, 31 Mar 2009 01:56:05 GMT
Connection: Close
Proxy-Connection: Close
<html>
<header>result</header>
<body>
Result is OK
</body>
+CHTTPACT: 0
AT+CHTTPACT=?
+CHTTPACT: “ADDRESS”,(1-65535)
OK

21.4.2

Unsolicited HTTP codes (summary of CME ERROR codes)

Code of <err>
220
221
222

Description
Unknown error for HTTP
HTTP task is busy
Failed to resolve server address

223
224
225
226
227

HTTP timeout
Failed to transfer data
Memory error
Invalid parameter
Network error

21.5 Secure Hyper Text Transfer Protocol Service
21.5.1

AT+CHTTPSSTART Acquire HTTPS protocol stack

Description
This command is used to acquire HTTPS protocol stack.
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

363

1/13/2011
SIM5218 Serial AT Command Manual

Execute Command

Responses

AT+CHTTPSSTART

OK
ERROR

Examples
AT+CHTTPSSTART
OK

21.5.2

AT+CHTTPSSTOP Release HTTPS protocol stack

Description
This command is used to release HTTPS protocol stack.
SIM PIN
YES

References
Vendor

Syntax
Execute Command

Responses

AT+CHTTPSSTOP

OK
ERROR

Examples
AT+CHTTPSSTOP
OK

21.5.3

AT+CHTTPSOPSE

Open HTTPS session

Description
This command is used to open a new HTTPS session. Every time, the module must call
AT+CHTTPSSTART before calling AT+CHTTPSOPSE.
SIM PIN References
YES

Vendor

Syntax
Write Command

Responses

AT+CHTTPSOPSE=”<host
>”,<port>

OK
ERROR

Defined values
<host>

SIM5218_Serial _AT Command Manual_V1.21

364

1/13/2011
SIM5218 Serial AT Command Manual

The host address
<port>
The host listening port for SSL

Examples
AT+CHTTPSOPSE=”www.mywebsite.com”,443
OK

21.5.4

AT+CHTTPSCLSE

Close HTTPS session

Description
This command is used to close the opened HTTPS session.
SIM PIN
YES

References
Vendor

Syntax
Execute Command

Responses

AT+CHTTPSCLSE

OK
ERROR

Examples
AT+CHTTPSCLSE
OK

21.5.5

AT+CHTTPSSEND

Send HTTPS request

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

Responses
+CHTTPSSEND: (1-4096)
OK
Responses
+CHTTPSSEND: <unsent_len>
OK
Responses

SIM5218_Serial _AT Command Manual_V1.21

365

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMMSSEND=<len>

Execute Command
AT+CHTTPSSEND

>
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.

Examples
AT+CMMSSEND=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

21.5.6

AT+CHTTPSRECV Receive HTTPS response

Description
This command is used to receive HTTPS response after sending HTTPS request.
SIM PIN
YES

References
Vendor

Syntax
Write Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

366

1/13/2011
SIM5218 Serial AT Command Manual

AT+CHTTPSRECV=<recv_
len>

OK
+CHTTPSRECV: DATA,<len>
…
+CHTTPSRECV: DATA,<len>
…
+CHTTPSRECV:<result>
+CHTTPSRECV:<result>
ERROR
ERROR

Defined values
<recv_len>
The minimum length of the data to be received. The final length of the received data may be larger
than the requested length.
<len>
The length of the data received.
<result>
The final result of the receiving.

Examples
AT+CHTTPSRECV=1
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>
+CHTTPSRECV: 0

21.5.7

Unsolicited HTTPS Codes

Code of <err>

Description

SIM5218_Serial _AT Command Manual_V1.21

367

1/13/2011
SIM5218 Serial AT Command Manual

+CHTTPS: RECV EVENT

When the AT+CHTTPSRECV is not being called, and there is data
cached in the receiving buffer, this event will be reported.

21.6 Secure File Transfer Protocol Service
The FTPS related AT commands needs the AT+CATR to be set to the used port. AT+CATR=0 may
cause some problem.

21.6.1

AT+CFTPSSTART Acquire FTPS protocol stack

Description
This command is used to acquire FTPS protocol stack.
SIM PIN
YES

References
Vendor

Syntax
Execute Command

Responses

AT+CFTPSSTART

OK
ERROR

Examples
AT+CFTPSSTART
OK

21.6.2

AT+CFTPSSTOP Stop FTPS protocol stack

Description
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
ERROR

Examples
AT+CFTPSSTOP

SIM5218_Serial _AT Command Manual_V1.21

368

1/13/2011
SIM5218 Serial AT Command Manual

OK

21.6.3

AT+CFTPSLOGIN

Login the FTPS server

Description
This command is used to login the FTPS server. Each time, the module must call
AT+CFTPSSTART before calling AT+CFTPSLOGIN.
SIM PIN References
YES

Vendor

Syntax
Write Command

Responses

AT+CFTPSLOGIN=”<host>
”,<port>,”<username>”, ”<p
assword>”

OK
ERROR

Defined values
<host>
The host address
<port>
The host listening port for SSL
<username>
The user name
<password>
The password

Examples
AT+CFTPSLOGIN=”www.myftpsserver.com”,990, ”myname”, ”mypassword”
OK

21.6.4

AT+CFTPSLOGOUT Logout the FTPS server

Description
This command is used to logout the FTPS server.
SIM PIN
YES

References
Vendor

Syntax
Execute Command

Responses

AT+CFTPSLOGOUT

OK

SIM5218_Serial _AT Command Manual_V1.21

369

1/13/2011
SIM5218 Serial AT Command Manual

ERROR

Examples
AT+CFTPSLOGOUT
OK

21.6.5

AT+CFTPSMKD

Create a new directory on FTPS server

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
ERROR

Defined values
<dir>
The directory to be created

Examples
AT+CFTPSMKD=”testdir”
OK
AT+CFTPSMKD={non-ascii}”74657374646972”
OK

21.6.6

AT+CFTPSRMD

Delete a directory on FTPS server

Description
This command is used to delete a directory on FTPS server
SIM PIN
YES

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

370

1/13/2011
SIM5218 Serial AT Command Manual

Test Command
AT+CFTPSRMD=?
Write Command
AT+CFTPSRMD=”<dir>”

Responses
+CFTPSRMD: ”DIR”
OK
Responses
OK
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

21.6.7

AT+CFTPSDELE

Delete a file on FTPS server

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>”

Responses
+CFTPSDELE: ”FILENAME”
OK
Responses
OK
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

SIM5218_Serial _AT Command Manual_V1.21

371

1/13/2011
SIM5218 Serial AT Command Manual

AT+CFTPSDELE=”test”
OK
AT+CFTPDELE={non-ascii}”74657374”
OK

21.6.8

AT+CFTPSCWD

Change the current directory on FTPS server

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
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
AT+CFTPSCWD={non-ascii}”74657374646972”
OK

21.6.9

AT+CFTPSPWD

Get the current directory on FTPS server

Description
This command is used to get the current directory on FTPS server.
SIM PIN
YES

References
Vendor

Syntax
Execute Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

372

1/13/2011
SIM5218 Serial AT Command Manual

AT+CFTPSPWD

+CFTPSPWD: ”<dir>”
OK
ERROR

Defined values
<dir>
The current directory on FTPS server.

Examples
AT+CFTPSPWD
+CFTPSPWD: “/testdir”
OK

21.6.10 AT+CFTPSTYPE

Set the transfer type on FTPS server

Description
This command is used to set the transfer type on FTPS server
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPSTYPE=?
Read Command
AT+CFTPSTYPE?
Write Command
AT+CFTPSTYPE=<type>

Responses
+CFTPSTYPE: (A,I)
OK
Responses
+CFTPSTYPE: <type>
OK
Responses
OK
ERROR

Defined values
<type>
The type of transferring:
A – ASCII.
I – Binary.

Examples
AT+CFTPSTYPE=A

SIM5218_Serial _AT Command Manual_V1.21

373

1/13/2011
SIM5218 Serial AT Command Manual

OK

21.6.11 AT+CFTPSLIST List the items in the directory on FTPS server
Description
This command is used to list the items in the specified directory on FTPS server
SIM PIN
YES

References
Vendor

Syntax
Write Command
AT+CFTPSLIST=”<dir>”

Execute Command
AT+CFTPSLIST

Responses
OK
+CFTPSLIST: DATA,<len>
…
+CFTPSLIST:<err>
ERROR
Responses
OK
+CFTPSLIST: DATA,<len>
…
+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

Examples
AT+CFTPSLIST=”/testd”
OK
+CFTPSLIST: DATA,193
drw-rw-rw1 user
group
drw-rw-rw1 user
group

SIM5218_Serial _AT Command Manual_V1.21

0 Sep 1 18:01 .
0 Sep 1 18:01 ..

374

1/13/2011
SIM5218 Serial AT Command Manual

-rw-rw-rw-

1 user

group

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

21.6.12 AT+CFTPSGETFILE

Get a file from FTPS server to EFS

Description
The 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>

Responses
+CFTPSGETFILE: [{non-ascii}]“FILEPATH”, (0-8)
OK
Responses
OK
+CFTPSGETFILE: 0
+CFTPSGETFILE: <err>
ERROR
ERROR
OK
+CFTPSGETFILE: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t 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}.
<dir>
The directory to save the downloaded file:
0 – current directory [refer to AT+FSCD]
1 – “C:/Picture” directory

SIM5218_Serial _AT Command Manual_V1.21

375

1/13/2011
SIM5218 Serial AT Command Manual

2 – “C:/Video” directory
3 – “C:/VideoCall” directory
4 – “D:/Picture” directory
5 – “D:/Video” directory
6 – “D:/VideoCall” directory
7 – “C:/Audio” directory
8 – “D:/Audio” directory
<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=?
+CFTPSGETFILE: [{non-ascii}]“FILEPATH”,(0-8)
OK

21.6.13 AT+CFTPSPUTFILE

Put a file in module EFS to FTPS server

Description
The command is used to upload a file in the module EFS to FTPS server.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPSPUTFILE=?
Write Command
AT+CFTPSPUTFILE=
“<filepath>”,<dir>

Responses
+CFTPSPUTFILE: [{non-ascii}] “FILEPATH”, (0-8)
OK
Responses
OK
+CFTPSPUTFILE: 0

SIM5218_Serial _AT Command Manual_V1.21

376

1/13/2011
SIM5218 Serial AT Command Manual

+CFTPSPUTFILE: <err>
ERROR
ERROR
OK
+CFTPSPUTFILE: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t 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:
0 – current directory [refer to AT+FSCD]
1 – “C:/Picture” directory
2 – “C:/Video” directory
3 – “C:/VideoCall” directory
4 – “D:/Picture” directory
5 – “D:/Video” directory
6 – “D:/VideoCall” directory
7 – “C:/Audio” directory
8 – “D:/Audio” directory
<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=?
+CFTPSPUTFILE: [{non-ascii}]“FILEPATH”,(0-8)
OK

21.6.14 AT+CFTPSGET Get a file from FTPS server to serial port

SIM5218_Serial _AT Command Manual_V1.21

377

1/13/2011
SIM5218 Serial AT Command Manual

Description
The command is used to get a file from FTPS 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+CFTPSGET=?
Write Command
AT+CFTPSGET=
“<filepath>”

Responses
+CFTPSGET: [{non-ascii}] “FILEPATH”
OK
Responses
OK
+CFTPSGET: DATA,<len>
…
+CFTPSGET: DATA, <len>
…
…
+CFTPSGET: 0
+CFTPSGET: <err>
ERROR
ERROR
+CFTPSGET: DATA, <len>
…
+CFTPSGET: DATA, <len>
…
…
+CFTPSGET: <err>

Defined values
<filepath>
The remote file path. When the file path doesn’t contain ”/”, this command transfer 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}.
<len>
The length of FTPS data contained in this packet.
<err>
The error code of FTPS operation.

Examples

SIM5218_Serial _AT Command Manual_V1.21

378

1/13/2011
SIM5218 Serial AT Command Manual

AT+CFTPSGET=”/pub/mydir/test1.txt”
OK
+CFTPSGET: DATA, 1020,
…
+CFTPSGET: DATA, 1058,
…
…
+CFTPSGET: 0
AT+CFTPSGET={non-ascii}”/2F74657374646972/B2E2CAD42E747874”
OK
+CFTPSGET: DATA, 1020,
…
+CFTPSGET: 0
AT+CFTPSGET=?
+CFTPSGET:[{non-ascii}] “FILEPATH”
OK

21.6.15 AT+CFTPSPUT Put a file to FTPS server
Description
This command is used to put a file to FTPS server through serial port. The
AT+CFTPSPUT=<len> is used to download the data to be sent. The AT+CFTPSPUT is used to
wait the result of sending.
SIM PIN References
YES

Vendor

Syntax
Read Command
AT+CFTPSPUT?
Write Command
AT+CFTPSPUT=[“<filepath
>”,]<len>

Execute Command
AT+CFTPSPUT

Responses
+CFTPSPUT: <unsent_len>
OK
Responses
>
OK
+CFTPSPUT: <result>
ERROR
ERROR
Responses
OK
+CFTPSPUT: <result>
ERROR

Defined values

SIM5218_Serial _AT Command Manual_V1.21

379

1/13/2011
SIM5218 Serial AT Command Manual

<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
<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

21.6.16 AT+CFTPSSINGLEIP Set FTPS data socket address type
Description
The command is used to set FTPS server data socket IP address type
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CFTPSSINGLEIP=?
Read Command
AT+CFTPSSINGLEIP?
Write Command
AT+CFTPSSINGLEIP=<sin
gleip>

Responses
+CFTPSSINGLEIP: (0,1)
OK
Responses
+CFTPPORT: <singleip>
OK
Responses
OK
ERROR

Defined values
<singleip>
The FTPS data socket IP address type:

SIM5218_Serial _AT Command Manual_V1.21

380

1/13/2011
SIM5218 Serial AT Command Manual

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

21.6.17 Unsolicited FTPS Codes
Code of <err>
0
1
2

Description
FTPS operation succeeded
SSL verify alert
Unknown FTPS error

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

21.7 HTTP Time Synchronization Service
The HTP related AT commands are used to synchronize system time with HTP server.

21.7.1

AT+CHTPSERV Set HTP server info

Description
The command is used to add or delete HTP server information. There are maximum 16 HTP
servers.
SIM PIN
YES

References
Vendor

Syntax
Test Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

381

1/13/2011
SIM5218 Serial AT Command Manual

AT+CHTPSERV=?

Read Command
AT+CHTPSERV?

Write Command
AT+CHTPSERV=
"<cmd>","<host_or_idx>"[,<
port>,<http_version>
[,"<proxy>",<proxy_port>]]

+CHTPSERV:
"ADD","HOST",(1-65535),
(0-1)[,"PROXY",(1-65535)]
+CHTPSERV: "DEL",(0-15)
OK
Responses
+CHTPSERV:
"<host>",<port>,<http_version>
[,"<proxy>",<proxy_port>]
…
+CHTPSERV: "<host>",<port>[,"<proxy>",< proxy_port>]
OK
Responses
OK
ERROR

Defined values
<cmd>
The 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>; If the <cmd> is “DEL”, this field is the
index of the HTP server item to be deleted from the list.
<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

Examples
AT+CHTPSERV=”ADD”,”www.google.com”,80,1
OK

SIM5218_Serial _AT Command Manual_V1.21

382

1/13/2011
SIM5218 Serial AT Command Manual

21.7.2

AT+CHTPUPDATE

Updating date time using HTP protocol

Description
The command is used to updating date time using HTP protocol.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CHTPUPDATE=?
Read Command
AT+CHTPUPDATE?

Responses
OK
Response
+CHTPUPDATE:<status>

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

21.7.3

Unsolicited HTP Codes

Code of <err>
0
1
2

Description
Operation succeeded
Unknown error
Wrong parameter

3
4

Wrong date and time calculated
Network error

SIM5218_Serial _AT Command Manual_V1.21

383

1/13/2011
22 MMS Commands
22.1 AT+CMMSCURL Set the URL of MMS center
Description
The 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://”

Examples
AT+CMMSCURL=” mmsc.monternet.com”
OK
AT+CMMSCURL?
+CMMSCURL:” mmsc.monternet.com”
OK
AT+CMMSCURL=?
+CMMSCURL:”URL”
OK

22.2 AT+CMMSPROTO

Set the protocol parameters and MMS proxy
SIM5218 Serial AT Command Manual

Description
The 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
<port>
Port of MMS proxy

Examples
AT+CMMSPROTO=0,”10.0.0.172”,9201
OK
AT+CCMMSPROTO?
+CMMSPROTO: 0,”10.0.0.172”,9201
OK
AT+CMMSPROTO=?
+CMMSPROTO: (0,1),”(0-255).(0-255).(0-255).(0-255)”,(0-65535)
OK

22.3 AT+CMMSSENDCFG Set the parameters for sending MMS

SIM5218_Serial _AT Command Manual_V1.21

385

1/13/2011
SIM5218 Serial AT Command Manual

Description
The 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>
Whether need delivery report:
0 – No (default).
1 – Yes.
<readrep>
Whether need read report:

SIM5218_Serial _AT Command Manual_V1.21

386

1/13/2011
SIM5218 Serial AT Command Manual

0 – No (default).
1 – Yes.
<visible>
Whether to show the address of the sender:
0 – hide the address of the sender.
1 – Show the address of the sender even if it is a secret address.
2 – Not set (default).
<class>
The class of MMS:
0 – personal.
1 – advertisement.
2 – informational.
3 – auto.
4 – Not set (default).

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

22.4 AT+CMMSEDIT Enter or exit edit mode
Description
The command is used to enter or exit edit mode of mms.
SIM PIN
YES

References
Vendor

Syntax
Test Command
AT+CMMSEDIT=?

Responses
+CMMSEDIT: (0,1)
OK

Read Command
AT+CMMSEDIT?

Responses
+CMMSEDIT: <mode>
OK

Write Command

Responses

SIM5218_Serial _AT Command Manual_V1.21

387

1/13/2011
SIM5218 Serial AT Command Manual

AT+MMSEDIT=<mode>

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

22.5 AT+CMMSDOWN

Download the file data or title from UART

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 xFFxFE , xFExFF or xEFxBBxBF 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=?

Responses
+CMMSDOWN: “PIC”,(1-<max_pdu_size>),”NAME”
+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>),”NAME”
+CMMSDOWN: “FILE”,(0-8),”FILENAME”
+CMMSDOWN: “TITLE”,(1-40)

SIM5218_Serial _AT Command Manual_V1.21

388

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CMMSDOWN=<type>,
<size>[,<name>]
Or
AT+CMMSDOWN=<type>,
<dir>,<filepath>

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 need to download through AT interface.
<name>
The name of the file to download.
<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

4 –

“D:/Picture” directory

5 –

“D:/Video” directory

6 –

“D:/VideoCall” directory

7 –

“C:/Audio” directory

8 –

“D:/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
AT+CMMSDOWN=?
+CMMSDOWN: “PIC”,(1-102400),”NAME”

SIM5218_Serial _AT Command Manual_V1.21

389

1/13/2011
SIM5218 Serial AT Command Manual

+CMMSDOWN: “TEXT”,(1-102400),”NAME”
+CMMSDOWN: “AUDIO”,(1-102400),”NAME”
+CMMSDOWN: “VIDEO”,(1-102400),”NAME”
+CMMSDOWN: “FILE”,(0-8),”FILEPATH”
+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

22.6 AT+CMMSDELFILE

Delete a file within the editing MMS body

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

SIM5218_Serial _AT Command Manual_V1.21

390

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMMSDELFILE=?
OK

22.7 AT+CMMSSEND

Start MMS sending

Description
This command is used to send MMS.
SIM PIN
YES

It can only be performed in edit mode of MMS.

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
ERROR
+CME ERROR: <err>
Or
OK
+CMMSSEND :<err>

Defined values
<address>
Mobile phone number or email address

SIM5218_Serial _AT Command Manual_V1.21

391

1/13/2011
SIM5218 Serial AT Command Manual

Examples
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

22.8 AT+CMMSRECP Add recipients
Description
This command is used to add 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
+CMMSRECP: <addr>
OK
ERROR

+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address

SIM5218_Serial _AT Command Manual_V1.21

392

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CMMSRECP=?
+CMMSRECP: "ADDRESS"
OK
AT+CMMSRECP?
+CMMSRECP:"t1@test.com”;”15813862534”
OK
AT+CMMSRECP=”13818362596"
OK

22.9 AT+CMMSCC

Add copy-to recipients

Description
This command is used to add copy-to 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
+CMMSCC: <addr>
OK
ERROR

+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address

Examples

SIM5218_Serial _AT Command Manual_V1.21

393

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMMSCC=?
+CMMSCC: "ADDRESS"
OK
AT+CMMSCC?
+CMMSCC:"t1@test.com”;”15813862534”
OK
AT+CMMSCC=”13818362596"
OK

22.10

AT+CMMSBCC

Add secret recipients

Description
This command is used to add 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
+CMMSBCC: <addr>
OK
ERROR

+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address

Examples
AT+CMMSBCC=?
+CMMSBCC: "ADDRESS"

SIM5218_Serial _AT Command Manual_V1.21

394

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CMMSBCC?
+CMMSBCC:"t1@test.com”;”15813862534”
OK
AT+CMMSBCC=”13818362596"
OK

22.11

AT+CMMSDELRECP Delete recipients

Description
This command is used to delete recipients. The execute command is used to delete all recipients

SIM PIN
YES

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

Examples
AT+CMMSDELRECP=?
+CMMSDELRECP: "ADDRESS"
OK
AT+CMMSDELRECP
OK
AT+CMMSDELRECP=”13818362596"

SIM5218_Serial _AT Command Manual_V1.21

395

1/13/2011
SIM5218 Serial AT Command Manual

OK

22.12

AT+CMMSDELCC

Delete copy-to recipients

Description
This command is used to delete copy-to recipients.
copy recipients
SIM PIN
YES

The execution command is used to delete all

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 (模块重起,AT不通)
OK
ERROR

+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address

Examples
AT+CMMSDELCC=?
+CMMSDELCC: "ADDRESS"
OK
AT+CMMSDELCC
OK
AT+CMMSDELCC=”13818362596"
OK

22.13

AT+CMMSDELBCC

SIM5218_Serial _AT Command Manual_V1.21

Delete secret recipients

396

1/13/2011
SIM5218 Serial AT Command Manual

Description
This command is used to delete secret recipients.
secret recipients
SIM PIN
YES

The execution command is used to delete all

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 (模块死机,AT不通)
OK
ERROR

+CME ERROR: <err>
Defined values
<addr>
Mobile phone number or email address

Examples
AT+CMMSDELBCC=?
+CMMSDELRECP: "ADDRESS"
OK
AT+CMMSDELBCC
OK
AT+CMMSDELBCC=”13818362596"
OK

22.14

AT+CMMSRECV Receive MMS

Description
This command is used to receive MMS.
SIM PIN
YES

It can only perform in non-edit mode of MMS

References
Vendor

SIM5218_Serial _AT Command Manual_V1.21

397

1/13/2011
SIM5218 Serial AT Command Manual

Syntax
Test Command
AT+CMMSRECV=?
Write Command
AT+CMMSRECV=<locatio
n>

Responses
+CMMSRECV=”LOCATION”
OK
Responses
OK
+CMMSRECV=0
ERROR
+CME ERROR: <err>
Or
OK
+CME ERROR :<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
+CME ERROR: 190
AT+CMMSRECV=”http://211.136.112.84/MI76xou_anB”
+CME ERROR: 177

22.15

AT+CMMSVIEW View information of MMS in box or memory

Description
This command is used to view information of MMS in box or memory.
is formatted with UCS2 little endian character set.
SIM PIN
YES

The title part of the MMS

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

398

1/13/2011
SIM5218 Serial AT Command Manual

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 MMS mail box index
<mmstype>
The state of MMS:
0 – Received MMS.
1 – Sent MMS.
2 – Unsent MMS.
<sender>
The address of sender
<receipts>
The list of receipts separated by “;”
<ccs>
The list of copy receipts separated by “;”
<bccs>
The list of secret receipts separated by “;”
<time>
For received MMS, it is the time to receive the MMS. For other MMS, it is the time to create the
MMS.
<subject>
MMS title
<size>
MMS data size
<fileIndex>

SIM5218_Serial _AT Command Manual_V1.21

399

1/13/2011
SIM5218 Serial AT Command Manual

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
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

22.16

AT+CMMSREAD

read the given file in MMS currently in

SIM5218_Serial _AT Command Manual_V1.21

400

1/13/2011
SIM5218 Serial AT Command Manual

memory
Description
This command is used to read a given file in MMS currently in memory.
it will be converted to UCS2 little endian before final UART output.
SIM PIN
YES

When reading a text file,

References
Vendor

Syntax
Test Command
AT+CMMSREAD=?

Responses
OK

Write Command
AT+CMMSREAD=<index>

Responses
+CMMSREAD:<name>,<datSize>
File Content
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

Examples
AT+CMMSREAD=?
OK
AT+CMMSREAD=3
+CMMSREAD:"1.jpg",83794
…(File Content)
OK

22.17

AT+CMMSSNATCH

SIM5218_Serial _AT Command Manual_V1.21

snatch the given file in MMS

401

1/13/2011
SIM5218 Serial AT Command Manual

Description
This command is used to snatch the given file in MMS currently in memory, and save it to UE file
system. If the file of input 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]
1 – “C:/Picture” directory
2 – “C:/Video” directory
3 – “C:/VideoCall” directory
4 – “D:/Picture” directory
5 – “D:/Video” directory
6 – “D:/VideoCall” directory
7 – “C:/Audio” directory
8 – “D:/Audio” directory
<filename>
The name of the given file contained in the MMS body

Examples
AT+CMMSSNATCH=?
OK
AT+CMMSSNATCH=3,2,”mylocalfile.jpg”
OK

22.18

AT+CMMSSAVE

Save the MMS to a mail box

SIM5218_Serial _AT Command Manual_V1.21

402

1/13/2011
SIM5218 Serial AT Command Manual

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 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

22.19

AT+CMMSDELETE

SIM5218_Serial _AT Command Manual_V1.21

Delete MMS in the mail box

403

1/13/2011
SIM5218 Serial AT Command Manual

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
ERROR

+CME ERROR: <err>
Execute Command
AT+CMMSDELETE

Responses
OK
ERROR

+CME ERROR: <err>
Defined values
<index>
The index of mail box selected to save the MMS
<mmsNum>
The number of MMS saved in the mail box

Examples
AT+CMMSDELETE=?
+CMMSSAVE: (0-1)
OK
AT+CMMSDELETE
OK
AT+CMMSDELETE=1
OK

SIM5218_Serial _AT Command Manual_V1.21

404

1/13/2011
SIM5218 Serial AT Command Manual

22.20

AT+CMMSSYSSET Configure MMS transferring parameters

Description
This command is used to configure MMS transferring setting.

SIM PIN
YES

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>,<wap_send_buf_co
unt>
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-102400),(512-4096),(512-4096),(1-8)

SIM5218_Serial _AT Command Manual_V1.21

405

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CMMSSYSSET?
+CMMSSYSSET:102400,1460,1500,6
OK
AT+CMMSSYSSET=102400,1430,1500,8
OK
AT+CMMSSYSSET=102400
OK

22.21

AT+CMMSINCLEN

Increase

the

length

of

audio/video

attachment header
Description
The 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

SIM5218_Serial _AT Command Manual_V1.21

406

1/13/2011
SIM5218 Serial AT Command Manual

AT+CMMSINCLEN=0
OK
AT+CMMSINCLEN?
+CMMSINCLEN:0
OK
AT+CMMSINCLEN=?
+CMMSINCLEN:(0-1)
OK

22.22

Supported Unsolicited Result Codes in MMS

Description
This section lists all the unsolicited result code in MMS module.

22.22.1 Indication of Sending/Receiving MMS
MMS Sending
+CMMSSEND:<err>
MMS Notification
+WAP_PUSH_MMS:<send
er>,<transaction_id>,<lo
cation>,<timestamp>,<cl
ass>,<size>

Description
This indication means the result of sending MMS. If successful, it
reports +CMMSSEND:0, or else, it report +CMMSSEND:<err>
Description
This indication means there is a new MMS received in the MMS
center.

MMS Receiving

Description

+CMMSRECV:<err>

This indication means the result of receiving MMS. If
successful, it reports +CMMSRECV:0, or else, it report
+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

SIM5218_Serial _AT Command Manual_V1.21

407

1/13/2011
SIM5218 Serial AT Command Manual

0 – Expired
1 – Retrieved
2 – Rejected
3 – Deferred
4 – Unrecognized
<size>
The size of the received MMS

Examples
+WAP_PUSH_MMS
+WAP_PUSH_MMS: "15001844675","RROpJGJVyjeA","http://211.136.112.84/RROpJGJVyjeA"
,"09/03/17,17:14:41+32",0,13338

22.22.2 Summary of CME ERROR Codes for MMS
Code of <err>
201

Description
Unknown error for mms

171

MMS task is busy now

172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191

The mms data is over size
The operation is over time
There is no mms receiver
The storage for address is full
Not find the address
Invalid parameter
Failed to read mms
There is not a mms push message (reserved)
Memory error
Invalid file format
The mms storage is full
The box is empty
Failed to save mms
Busy editing mms now
Not allowed to edit now
No content in the buffer
Failed to receive mms
Invalid mms pdu
Network error
Failed to read file in UE

SIM5218_Serial _AT Command Manual_V1.21

408

1/13/2011
23 CSCRIPT Commands
23.1 AT+CSCRIPTSTART Start running a LUA script file.
Description
The command is used to start running a LUA script file. The script file must exist in c: in the
module EFS. This command shouldn’t be used by sio LIB in LUA script files.
SIM PIN
NO

References
Vendor

Syntax
Test Command
AT+CSCRIPTSTART=?

Responses
+CSCRIPTSTART:
OK

Write Command
AT+CSCRIPTSTART=”
<filename>”[ ,
<reportluaerror> ”]

Responses
OK
+CSCRIPT: 0
ERROR

”

”FILENAME”

OK
+CSCRIPT: <err>

Defined values
<filename>
The script file name.
<reportluaerror>
Whether report the LUA compiling error or running error to TE.
0 – Not report.
1 – Report.
<err>
The error code of running script.

Examples
AT+CSCRIPTSTART=”mytest.lua”
OK
+CSCRIPT: 0
AT+CSCRIPTSTART=?
OK
SIM5218 Serial AT Command Manual

23.2 AT+CSCRIPTSTOP Stop the current running LUA script.
Description
The command is used to stop the current running LUA script. This command shouldn’t 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?

+CSCRIPTSTOP: ” <filename>”
OK

Execute Command
AT+CSCRIPTSTOP

Responses
OK
ERROR

Defined values
<filename>
The script file name.

Examples
AT+CSCRIPTSTOP?
+CSCRIPTSTOP: ”mytest.lua”
OK
AT+CSCRIPTSTOP=?
OK
AT+CSCRIPTSTOP
OK

23.3 AT+CSCRIPTCL Compile a LUA script file.
Description
The command is used to compile a LUA script file. The script file must exist in c: in the module
EFS. This command shouldn’t be used by sio LIB in LUA script files. If the AT+CSCRIPTPASS is
set, the compiled file will be encrypted.
SIM PIN

References

SIM5218_Serial _AT Command Manual_V1.21

410

1/13/2011
SIM5218 Serial AT Command Manual

NO

Vendor

Syntax
Test Command
AT+CSCRIPTCL=?

Responses
+CSCRIPTCL:
OK

Write Command
AT+CSCRIPTCL=”
<filename>”[ ,
<out_filename> ”]

Responses
OK
+CSCRIPT: 0
ERROR

”

”FILENAME”, ”OUT_FILENAME”

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.

Examples
AT+CSCRIPTCL=”mytest.lua”
OK
+CSCRIPT: 0
AT+CSCRIPTCL=?
+CSCRIPTCL: “FILENAME”, “OUT_FILENAME”
OK

23.4 AT+CSCRIPTPASS

Set the password for +CSCRIPTCL.

Description
The command is used to set the password which will be used for AT+CSCRIPTCL encryption.

SIM PIN
NO

References
Vendor

Syntax

SIM5218_Serial _AT Command Manual_V1.21

411

1/13/2011
SIM5218 Serial AT Command Manual

Write Command
AT+CSCRIPTPASS=”
<old_password>” ,
<new_password> ”

”

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

23.5 AT+CSCRIPTCMD

Send data to the running LUA script.

Description
The command is used to send data to the running LUA script

SIM PIN
NO

References
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.

SIM5218_Serial _AT Command Manual_V1.21

412

1/13/2011
SIM5218 Serial AT Command Manual

Examples
AT+CSCRIPTCMD=?
+CSCRIPTCMD: CMD1[,CMD2]
OK
AT+CSCRIPTCMD=23,98
OK

23.6 Unsolicited CSCRIPT codes
Summary of +CSCRIPT Codes
Code of <err>
0

Description
Success

1

No resource

2
3
4
5

Failed to open the script file
Failed to run the script file
Failed to compile the script file
Virtual machine is busy

SIM5218_Serial _AT Command Manual_V1.21

413

1/13/2011
SIM5218 Serial AT Command Manual

24 AT Commands Samples
24.1 SMS commands
Commands and Responses
AT+CMGF=1
OK

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

Select memory storages.

AT+CNMI=2,1
OK

Set new message indications to TE.

AT+CMGS=“+861358888xxxx”
>This is a test <Ctrl+Z>
+CMGS:34
OK

Set new message indications to TE.

+CMTI:“SM”,1

Unsolicited notification of the SMS arriving.

AT+CMGR=1
+CMGR: “REC UNREAD”,
“+86135888xxxx”, ,“08/01/30,
20:40:31+00”
This is a test
OK

Read SMS message that has just arrived.
NOTE The number should be the same as

AT+CMGR=1
+CMGR: “REC READ”,
“+861358888xxxx”,,“08/01/30 ,
20:40:31+00”
This is a test
OK

Reading the message again changes the status
to “READ” from “UNREAD”.

AT+CMGS=“+861358888xxxx”
>Test again<Ctrl+Z>
+CMGS:35
OK

Send another SMS to myself.

+CMTI:“SM”,2

Unsolicited notification of the SMS arriving.

AT+CMGL=“ALL”
+CMGL: 1, “REC READ”, “+861358888xxxx”, ,
“08/01/30,20:40:31+00”
This is a test
+CMGL: 2, “REC UNREAD”,””, “+861358888xx
xx”, , “08/01/30,20:45:12+00”

Listing all SMS messages.

SIM5218_Serial _AT Command Manual_V1.21

that given in the +CMTI notification.

414

1/13/2011
SIM5218 Serial AT Command Manual

Test again
OK
AT+CMGD=1
OK

Delete an SMS message.

AT+CMGL=“ALL”
+CMGL: 2,“REC READ”,“+861358888xxxx”,
“08/01/30,20:45:12+00”
Test again
OK

List all SMS messages to show message has
been deleted.

24.2 TCP/IP commands
24.2.1

TCP server

Commands and Responses
AT+NETOPEN=”TCP”,80

Comments
Activate the specified socket’s PDP context
and Create a socket.

Network opened
OK
AT+SERVERSTART
OK

For Tcp Server,it starts a
Passive open for connections.

AT+LISTCLIENT

List all of clients’ information.

NO.0 client : 10.71.34.32 80
NO.1 client : 10.71.78.89 1020
OK

Activate the specified client.

AT+ACTCLIENT = 0

OK
AT+TCPWRITE=8
>ABCDEFGH
+TCPWRITE: 8, 8
OK

Send data to an active client.

Send ok
AT+CLOSECLIENT=0
OK

Close the specified client.

AT+NETCLOSE

Close all of clients and

Network closed

Deactivate the specified socket’s PDP context.

OK

24.2.2

TCP client

SIM5218_Serial _AT Command Manual_V1.21

415

1/13/2011
SIM5218 Serial AT Command Manual

Commands and Responses

Comments

AT+NETOPEN=”TCP”,80
Network opened
OK
AT+TCPCONNECT=”192.168.0.1”,80
OK
AT+TCPWRITE=8
>ABCDEFGH
+TCPWRITE: 8, 8

Activate the specified socket’s PDP context
and Create a socket.

Attempt to establish the TCP connection
with the specified Tcp server.
Send data to server.

OK
Send ok
AT+NETCLOSE

Disconnect the connection with server and
Deactivate the specified socket’s PDP context.

Network closed
OK

24.2.3

UDP

Commands and Responses

Comments

AT+NETOPEN=”UDP”,80
Network opened
OK
AT+UDPSEND=8,”192.168.0.1”,80
>ABCDEFGH
+UDPSEND: 8, 8
OK

Activate the specified socket’s PDP context
and Create a socket.

AT+NETCLOSE

Close the socket and Deactivate the specified
socket’s PDP context.

Send data.

Network closed
OK

24.2.4

Multi client

Commands and Responses

Comments

AT+NETOPEN=,,1
Network opened
OK
AT+CIPOPEN=0,”TCP”,”116.228.221.51”,
100
Connect ok
OK
AT+CIPOPEN=1,”UDP”,”116.228.221.51”

Activate the specified socket’s PDP context
and Select in multi-client mode

SIM5218_Serial _AT Command Manual_V1.21

416

Establish a connection with TCP Server

Establish a connection with UDP Server

1/13/2011
SIM5218 Serial AT Command Manual

,120
OK

AT+CIPSEND=0,7
>SimTech

Send data in the connection of number 0

+CIPSEND: 7, 7
OK
Send ok
AT+CIPSEND=1,7
>SimTech

Send data in the connection of number 1

+CIPSEND: 7, 7
OK
AT+CIPCLOSE=0
OK
AT+NETCLOSE
OK

Close the connection of number 0
Close all of connections and Deactivate
the specified socket’s PDP context.

24.3 Audio commands
24.3.1

Sound record

Commands and Responses

Comments

AT+CQCPREC=0,amr
C:/Audio/20080420_120303.amr
OK

Start recording sound clips

AT+CQCPPAUSE
OK

Pause sound recording

AT+CQCPRESUME
OK

Resume sound recording

AT+CQCPSTOP
OK

Stop sound recording

ATD1381234****;
OK
VOICE CALL: BEGIN

Make a GSM call

AT+CQCPREC=1,qcp
C:/Audio/20080420_120530.qcp
OK

Start recording form remote path during GSM
call
NOTE GSM call is only applicable to QCP file

AT+CQCPSTOP
OK

Stop sound recording

SIM5218_Serial _AT Command Manual_V1.21

417

1/13/2011
SIM5218 Serial AT Command Manual

AT+CHUP
VOICE CALL: END: 000117
OK

Hang up the current call.

ATD1500000****;
OK
VOICE CALL: BEGIN

Make a UMTS call

AT+CQCPREC=1,amr
C:/Audio/20080420_120555.amr
OK

Start recording form remote path during
UMTS call
NOTE UMTS call is applicable to AMR or
QCP file

AT+CQCPSTOP
OK

Stop sound recording

AT+CHUP
VOICE CALL: END: 000117
OK

Hang up the current call.

24.3.2

Play audio file

Commands and Responses

Comments

AT+CCMXPLAY=” 20080420_120303.amr”,0
OK

Play audio file

AT+CCMXPAUSE
OK

Pause playing

AT+CCMXRESUME
OK

Resume playing

AT+CCMXSTOP
OK

Stop playing

ATD1381234****;
OK
VOICE CALL: BEGIN

Make a GSM call

AT+CCMXPLAY=” 20080420_120407.qcp”,3
OK

Play audio file on both path
NOTE GSM call is only applicable to QCP file

AT+CHUP
VOICE CALL: END: 000100
OK

Hang up the current call.

ATD1500000****;
OK
VOICE CALL: BEGIN

Make a UMTS call

AT+CCMXPLAY=” 20080420_1202407.amr”,3
OK

Play audio file on both path
NOTE UMTS call is only applicable to AMR

SIM5218_Serial _AT Command Manual_V1.21

418

1/13/2011
SIM5218 Serial AT Command Manual

file
AT+CHUP
VOICE CALL: END: 000100
OK

Hang up the current call.

24.4 Camera commands
24.4.1

Take picture

Commands and Responses

Comments

AT+CCAMS
OK

Start camera

AT+CCAMSETD=320,240
OK

Set camera dimension

……
……

Set other parameters supported

AT+CCAMTP
OK

Take picture

AT+CCAMEP
C:/Picture/20080420_120303.jpg
OK

Save picture

AT+CCAME
OK

Stop camera

24.4.2

Record video

Commands and Responses

Comments

AT+CCAMS
OK

Start camera

AT+CCAMSETD=176,144
OK

Set camera dimension

AT+CCAMSETF=0
OK

Set FPS

……
……

Set other parameters supported

AT+CCAMRS
C:/Video/20080420_123003.mp4
OK

Start video record

AT+CCAMRP

Pause video record

SIM5218_Serial _AT Command Manual_V1.21

419

1/13/2011
SIM5218 Serial AT Command Manual

OK
AT+CCAMRR
OK

Resume video record

AT+CCAMRE
OK

Stop video record

AT+CCAME
OK

Stop the camera

24.5 Video call commands
24.5.1

Unsolicited indications of video call

Indications

Comments

VPINCOM <number>

Indicate an incoming video call and caller
information is sent.
<number> is caller’s phone number of remote
party, and this indication will be reported per
sis seconds, and reported until answered or
released. For automatic answering video call,
refer to AT+AUTOANSWER and ATS0.

VPACCEPT

Indicate that video call is in the process of
being set up.

VPRINGBACK

Indicate that remote party (other side) is
located and ringing.

VPSETUP

Indicate that video call is set up end-to-end.

VPCONNECTED

Indicate that video protocols are set up and
video call is connected.

VPEND[: <seconds>]

Indicate that video call has ended.
<seconds> is the duration of video call, from
VPCONNECTED to VPEND and the unit is
in second.

MISSED_VIDEO_CALL: <datatime>,<number>

Indicate that an incoming video call is missed.
<datatime> denotes when this indication is
reported, and the format is yy/MM/dd,hh/mm
/ss, where characters indicate year (two

last digits), month, day, hour, minutes,
seconds.
<number> is caller’s phone number.
+VPRXDTMF: <user_input>

SIM5218_Serial _AT Command Manual_V1.21

Indicate that a user input was received from
remote party.

420

1/13/2011
SIM5218 Serial AT Command Manual

<user_input> is DTMFs tone from remote
party, and consisted of (0-9, *, #).
NOTE DTMFs are sent as an H.245 User Input
Indication message (basic string).

24.5.2

Call flows – video call origination

Commands and Responses

Comments

AT+VPSOURCE=2,”pic.jpg”
OK

Set TX source

AT+VPRECORD=3
OK

Start recording video

AT+VPMAKE=”123456789”
VPACCEPT
OK
VPRINGBACK
VPSETUP
VPCONNECTED

Make video call

AT+VPRECORD=0
OK

Stop recording video

AT+VPSOURCE=1
OK

Switch TX source

AT+VPRECORD=1
OK

Start recording video

AT+VPRECORD=0
OK

Stop recording video

AT+VPEND
OK
VPEND

End video call

24.5.3

Call flows – video call termination

Commands and Responses

Comments

VPINCOM 987654321

Report incoming call

AT+VPSOURCE=2,”pic.jpg”
OK

Set TX source

AT+VPRECORD=3
OK

Start recording video

AT+VPANSWER
OK
VPSETUP

Answer video call

SIM5218_Serial _AT Command Manual_V1.21

421

1/13/2011
SIM5218 Serial AT Command Manual

VPCONNECTED
AT+VPRECORD=0
OK

Stop recording video

AT+VPSOURCE=3,”vp.mp4”
OK

Switch TX source

AT+VPRECORD=2
OK

Start recording video

AT+VPRECORD=0
OK

Stop recording video

AT+VPEND
OK
VPEND

End video call

24.6 File transmission flow
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.

24.6.1 File transmission to PC host
Step1. Select file for transmission to PC host
After HyperTerminal is OK for emitting AT commands, it must select a file by one of following
methods:
①. Select directory as current directory by AT+FSCD, and then select file with parameter <dir_type>
of AT+CTXFILE is 0 or omitted. [Figure 17-1]

SIM5218_Serial _AT Command Manual_V1.21

422

1/13/2011
SIM5218 Serial AT Command Manual

Figure 17-1 Select file for transmission
②. Select the file directly with subparameter <dir_type> of AT+CTXFILE is not 0 and not omitted;
this method is a shortcut method for limited directories. [Figure 17-2]

Figure 17-2

Select file directly for transmission

Step2. Open “Receive File” dialog box
After select transmitted file successfully, use “Transfer>Receive File…” menu to open “Receive File”
dialog box in HyperTerminal. [Figure 17-3]

SIM5218_Serial _AT Command Manual_V1.21

423

1/13/2011
SIM5218 Serial AT Command Manual

Figure 17-3

Open “Receive File” dialog box

Step3. Set storage place and receiving protocol
In “Receive File” dialog box, set the storage place in PC host where file transmitted is saved in text
box, and select receiving protocol in combo box.
Then click “Receive” button to open “Receive Filename” dialog box. [Figure 17-4]
NOTE The receiving protocol must be “Xmodem” protocol.

Figure 17-4

Storage place and receiving potocol

Step4. Set file name

SIM5218_Serial _AT Command Manual_V1.21

424

1/13/2011
SIM5218 Serial AT Command Manual

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-5 Set file name
Step5. Transmit the file
After start file transmission, it can’t emit any AT commands untill transmission stops. In “Xmodem
file receive” dialog box, it will display the process of transmission. [Figure 17-6]

Figure 17-6 Xmodem file receive
If cannel the transmission, HyperTerminal will prompt “Transfer cancelled by user”. [Figure 17-7]

Figure 17-7

SIM5218_Serial _AT Command Manual_V1.21

Cancel transmission

425

1/13/2011
SIM5218 Serial AT Command Manual

After transmission successfully, the receiving dialog box is closed and it can emit AT commands in
HyperTerminal. [Figure 17-8]

Figure 17-8

24.6.2

Transmission successfully

File received from PC host

Step1. Set file name and storage place
Firstly, it must set file name and storage place in file system of module by one of following methods:
①. Select directory as current directory by AT+FSCD, and then set file name and storage place as
current directory with parameter <dir_type> of AT+CRXFILE is 0 or omitted. [Figure 17-9]

SIM5218_Serial _AT Command Manual_V1.21

426

1/13/2011
SIM5218 Serial AT Command Manual

Figure 17-9

Set file name and storage place

②. 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

Open “Send File” dialog box

Step3. Select file and transmitting protocol
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.

SIM5218_Serial _AT Command Manual_V1.21

427

1/13/2011
SIM5218 Serial AT Command Manual

Figure 17-11

Select file and protocol

Step4. File transmission
After start file transmission, it can’t emit any AT commands utill transmission stops. In “Xmodem file
send” dialog box, it will display the process of transmission. [Figure 17-12]

Figure 17-12

The process of file transmission

If cannel the transmission, HyperTerminal will prompt “Transfer cancelled by user”.

SIM5218_Serial _AT Command Manual_V1.21

428

1/13/2011
SIM5218 Serial AT Command Manual

NOTE

There may be some characters reported which denote interactions between module and PC

host.

24.7 MMS commands
Set the parameters
AT+CMMSCURL=”mmsc.monternet.com”
OK

Comments
Set the MMS center URL without “http://”

AT+CMMSPROTO=1,”10.0.0.172”,80
OK

Use http protocol to send MMS and set the IP
address and port of MMS proxy to
“10.0.0.172” and 80

AT+CMMSSENDCFG=6,3,0,0,2,4
OK

Set the parameter of MMS to send. This is
unnecessary to set.

Send MMS

Comments

AT+CGSOCKCONT=1,”IP”,”cmwap”
OK

Set the PDP context profile.

AT+CMMSEDIT=1
OK

Set the edit mode to 1.

AT+CMMSDOWN=”TITLE”,10
>Test title
OK

Set the title of MMS to “Test title”.

AT+CMMSDOWN=”FILE”,3,” 1.jpg”
OK

Add the “1.jpg” in UE to the MMS body.
Add a text file named “t1.txt” with length of
120 bytes.

AT+CMMSDOWN=”TEXT”,120,”t1.txt”
>My test content….(file content, 120 bytes)
OK

Add a recipient of “13918181818”
AT+CMMSRECP=”13918181818”
OK
Add a recipient of T1@TEST.COM
AT+CMMSRECP=”T1@TEST.COM”
OK
Add a copy recipient of ”15013231222”
AT+CMMSCC=”15013231222”
OK
Save the MMS to mail box of index 1.
AT+CMMSSAVE=1
+CMMSSAVE: 1

SIM5218_Serial _AT Command Manual_V1.21

429

1/13/2011
SIM5218 Serial AT Command Manual

OK

Send
the
MMS
recipient ”13318882322”

AT+CMMSSEND=”13318882322”
OK

including

new

+CMMSSEND:0

After MMS is sent successfully, This
command indicates success of sending. If
failed, +CME ERROR:<err> will be reported.

Receive MMS

Description

+WAP_PUSH_MMS:
"15001844675","RROpJGJVyjeA","http://211.136
.112.84/RROpJGJVyjeA"
,"09/03/17,17:14:41+32",0,13338

Receiving a new MMS notification.

AT+CGSOCKCONT=1,”IP”,”cmwap”
OK

Set the PDP context profile.

AT+CMMSEDIT=0
OK

Set the mms edit mode to 0.

AT+CMMSRECV="http://211.136.112.84/RROpJ
GJVyjeA"
OK

Receive MMS using the location contained in
+WAP_PUSH_MMS indication.

+CMMSRECV:0

After MMS is received successfully, this
command indicates success of receiving. If
failed, +CME ERROR:<err> will be reported.

AT+CMMSSAVE=0
+CMMSSAVE: 0
OK

If receiving successfully, save it to mail box.

SIM5218_Serial _AT Command Manual_V1.21

430

1/13/2011
SIM5218 Serial AT Command Manual

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/

SIM5218_Serial _AT Command Manual_V1.21

431

1/13/2011

More Related Content

PDF
Mc cormick c max tier 3 (2008- ) - rs22 - 80 tractor service repair manual
PDF
New holland t8.410 smart trax™ cvt tier 2 tractor service repair manual insta...
PDF
New holland t8.435 cvt tier 2 tractor service repair manual instant download ...
PDF
New holland t8.435 smart trax™ cvt tier 2 tractor service repair manual insta...
PDF
New holland t8.320 cvt tier 2 tractor service repair manual [zgre05001 ]
DOCX
DGAC - Comunicado Accidente Aerocon
PDF
Group comunicaciones
PDF
Ayuda migracion
Mc cormick c max tier 3 (2008- ) - rs22 - 80 tractor service repair manual
New holland t8.410 smart trax™ cvt tier 2 tractor service repair manual insta...
New holland t8.435 cvt tier 2 tractor service repair manual instant download ...
New holland t8.435 smart trax™ cvt tier 2 tractor service repair manual insta...
New holland t8.320 cvt tier 2 tractor service repair manual [zgre05001 ]
DGAC - Comunicado Accidente Aerocon
Group comunicaciones
Ayuda migracion

Viewers also liked (20)

PDF
Plaquette taxe apprentissage ESN 2014
PPSX
1-la-cibourg-camping-jura-suisse
ODP
20110324 TU Delft ocw and standards voor noiv
PDF
Bondia Lleida 27092012
PDF
Folleto laicos dehonianos
PDF
How to turn #400 over #5000000 sylvac.pdf
PDF
Seleccionar la realitat
PPT
Puoti Claudio. FAD HT 2012. Come interpretare alterazioni lievi di laboratori...
PDF
Oportunidades en la industria alimentaria 2013
PDF
Energy Management Systems: Recommendations for decision makers
PPT
Diseño cualitativo mmg
PPTX
Bases de datos de la biblioteca itm
PDF
Gestion de proyectos web
ODP
Le WEB 2.0 en bibliothèque
PPTX
Présentation_PAD et flux 12-13 CHU Poitiers
PPT
Presentacion Contenidos Digitales Ceres
PDF
PPTX
Cosmogonia Massai
PPTX
Decalogo lisnely
Plaquette taxe apprentissage ESN 2014
1-la-cibourg-camping-jura-suisse
20110324 TU Delft ocw and standards voor noiv
Bondia Lleida 27092012
Folleto laicos dehonianos
How to turn #400 over #5000000 sylvac.pdf
Seleccionar la realitat
Puoti Claudio. FAD HT 2012. Come interpretare alterazioni lievi di laboratori...
Oportunidades en la industria alimentaria 2013
Energy Management Systems: Recommendations for decision makers
Diseño cualitativo mmg
Bases de datos de la biblioteca itm
Gestion de proyectos web
Le WEB 2.0 en bibliothèque
Présentation_PAD et flux 12-13 CHU Poitiers
Presentacion Contenidos Digitales Ceres
Cosmogonia Massai
Decalogo lisnely
Ad

Similar to Sim5218 at command_manual (20)

PDF
Doc sim900 at_command_manua
PDF
Sim300 datc
PDF
Sim800 series at command manual v1.09
PDF
Gsm developer guide gsm at commands - rev a
PPT
Ch09 system administration
PDF
Most usefull at commands
PDF
Quectel M10 AT commands Arduino Microcontroller
PDF
Faq for sign shine industrial serial gprs gsm modem ip modem dtu
PDF
3 g modem_tutorial
PDF
Comandos at modem_lucent_venus_crm
PDF
SBC6020 SAM9G20 based Single Board Computer
PDF
Project report on gsm based digital notice board
PDF
GSM GPRS sim900 a modem with aurdino compatible
PPTX
28. 8251 programmable communication interface
PPTX
Adtran 1200167L1
PDF
Thotcon 0x8 - Hardware Hacking on a Budget
PDF
53302372 config-gns3
PDF
Bill serial monitor_manual_en
PDF
Cellular technology with Embedded Linux - COSCUP 2016
Doc sim900 at_command_manua
Sim300 datc
Sim800 series at command manual v1.09
Gsm developer guide gsm at commands - rev a
Ch09 system administration
Most usefull at commands
Quectel M10 AT commands Arduino Microcontroller
Faq for sign shine industrial serial gprs gsm modem ip modem dtu
3 g modem_tutorial
Comandos at modem_lucent_venus_crm
SBC6020 SAM9G20 based Single Board Computer
Project report on gsm based digital notice board
GSM GPRS sim900 a modem with aurdino compatible
28. 8251 programmable communication interface
Adtran 1200167L1
Thotcon 0x8 - Hardware Hacking on a Budget
53302372 config-gns3
Bill serial monitor_manual_en
Cellular technology with Embedded Linux - COSCUP 2016
Ad

Recently uploaded (20)

PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
advance database management system book.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
20th Century Theater, Methods, History.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
International_Financial_Reporting_Standa.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
History, Philosophy and sociology of education (1).pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Weekly quiz Compilation Jan -July 25.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
My India Quiz Book_20210205121199924.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
B.Sc. DS Unit 2 Software Engineering.pptx
advance database management system book.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
TNA_Presentation-1-Final(SAVE)) (1).pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
20th Century Theater, Methods, History.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
International_Financial_Reporting_Standa.pdf

Sim5218 at command_manual

  • 2. SIM5218 Serial AT Command Manual Document Title: SIM5218 AT Command Manual Version: 1.21 Date: 2011-01-13 Status: Release Document ID: SIM5218_Serial_AT Command_V1.21 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 customer’s possession. Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer’s 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. Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2011 SIM5218_Serial _AT Command Manual_V1.21 1 1/13/2011
  • 3. SIM5218 Serial AT Command Manual Version History Version Chapter V1.00 New Version V1.01 17.1 17.2 17.3 17.4 17.5 AT+CGPS AT+CGPSINFO AT+CGPSCOLD AT+CGPSHOT AT+CGPSSWITCH Add this command Add this command Add this command Add this command Add this command V1.02 9.3 9.9 9.14 AT+CLCK AT+CCFC AT+CSSN Modify the description of <fac> Modify the description of <type> Modify descriptions of <code1> and <code2> V1.03 12.17 AT+CMICAMP1 Add this command V1.04 4.27 AT+CSDVC 5.7 AT+VPLOOP 5.8 AT+VPSM 9.24 AT+CTZU 9.25 AT+CTZR Add the parameter <save> Add this command Add this command Modify the description of <onoff> Modify the description of <onoff> and Add the description of URC(+CTZV) Add this command Add this command Add this command Add this command Modify the description of <time> Modify the command Modify the command Modify the description of command Modify the description of <loca> Add this command Add this command Add this command 9.26 9.27 9.28 9.29 10.12 14.1 14.8 14.9 14.10 19.17 19.18 19.19 AT+CCINFO AT+CSCHN AT+CSRP AT+CRUS AT+CCLK AT+FSCD AT+FSMEM AT+FSFMT AT+FSLOCA AT+CIPOPEN AT+CIPSEND AT+CIPCLOSE Comments V1.05 10.13 AT+CRFEN 12.18 AT+CVLVL 12.19 AT+SIDET Add this command Add this command Add this command V1.06 12.20 AT+CRIRS Add this command V1.07 12.21 AT+CSUART Add this command V1.08 4.11 4.12 5.8 9.9 9.11 Modify the description of this command Modify the description of this command Modify the description of this command <classX> not support short message service Add execution command format ATH AT+CHUP AT+VPSM AT+CCFC AT+CHLD SIM5218_Serial _AT Command Manual_V1.21 2 1/13/2011
  • 4. SIM5218 Serial AT Command Manual 9.22 9.23 11.4 17.1 17.2 17.6 17.7 17.8 AT+CPSI AT+CNSMOD AT+CSIMSEL AT+CGPS AT+CGPSINFO AT+CGPSURL AT+CGPSSSL AT+CGPSAUTO AT&D Modify the command Support HSDPA/HSUPA Add this command Modify the command Modify the command Add this command Add this command Add this command Not support this command and delete V1.09 4.27 4.29 7.10 10.14 10.15 12.22 12.23 17.1 17.7 20.1 20.2 20.3 AT+CSDVC AT+CPCM AT+CCAMTP AT+CRESET AT+SIMEI AT+CDCDMD AT+CDCDVL AT+CGPS AT+CGPSSSL AT+STIN AT+STGI AT+STGR Modify the description of this command Add this command Modify the description of this command Add this command Add this command Add this command Add this command Modify the command Modify the description of this command Add this command Add this command Add this command V1.10 4.18 4.30 4.31 4.32 9.18 10.16 10.17 13.6 AT+VTS AT+CPCMFMT AT+CPCMREG AT+VTD AT+CNMP AT+CSIMLOCK AT+DSWITCH AT+CEMNLIST Modify the command Add this command Add this command Add this command Modify the command Add this command Add this command Add this command V1.11 5.9 10.7 10.15 12.24 15.1 AT+VPQLTY AT+AUTOCSQ AT+SIMEI AT+CCGSWT AT+CTXFILE Add this command Add the parameter <mode> Modify the description of <imei> Add this command Add the parameter <protocol> V1.12 3.1 3.8 3.11 4.6 4.8 4.9 4.11 5.6 ATI AT+GCAP AT+CFGRI ATD<str> +++ ATO ATH AT+VPRECORD Add the description of <ES> Add the description of <ES> Add this command Modify the description of <str> Modify the description of this command Modify the description of this command Modify the description of this command Modify the command SIM5218_Serial _AT Command Manual_V1.21 3 1/13/2011
  • 5. SIM5218 Serial AT Command Manual 5.9 6.10 6.11 6.13 6.14 6.15 6.18 6.20 7.16 9.1 9.2 9.22 9.29 9.30 9.31 10.1 10.4 11.5 11.6 12.7 12.16 12.25 13.5 16.4 16.5 16.8 18.1 18.2 18.4 18.12 19.1 19.6 19.8 19.17 19.20 AT+VPQLTY AT+CMGL AT+CMGR AT+CMSS AT+CMGW AT+CMGD AT+CMGMT AT+CMGWO AT+CCAMMD AT+CREG AT+COPS AT+CPSI AT+CRUS AT+CPLMNWLIST AT+CPASSMGR +CME ERROR AT+CFUN AT+SPIC AT+CSPN AT+CVALARM AT+CADC AT+CBC AT+CPBW AT+IFC AT&C AT&D AT+CGDCONT AT+CGQREQ AT+CGQMIN AT+CGREG AT+CGSOCKCONT AT+TCPCONNECT AT+UDPSEND AT+CIPOPEN AT+CDNSGIP Modify the command Modify the description of <index> Modify the description of <index> Modify the description of <index> Modify the description of <index> Modify the description of <index> Modify the description of <index> Modify the description of <index> Add this command Modify the command Modify the description of <mode> Modify the command Modify the command Add the command Add the command Modify the description of <err> Modify the description of this command Add the command Add the command Modify the command Modify the command Add the command Modify the description of <number> Modify the command Modify the command Add this command Modify the description of this command Modify the description of this command Modify the description of this command Modify the command Modify the description of this command Modify the description of <server_IP> Modify the description of <IP_address> Modify the description of <serverIP> Add this command V1.13 14.8 AT+FSMEM Modify the command V1.14 4.1 4.33 5.3 9.5 9.15 9.30 AT+CSTA AT+CSSN AT+VPEND AT+CLIP AT+CLCC AT+CPLMNWLIST Modify the command Add this command Modify the description of this command Modify this command Modify this command Remove this command SIM5218_Serial _AT Command Manual_V1.21 4 1/13/2011
  • 6. SIM5218 Serial AT Command Manual 9.31 10.18 10.19 10.20 13.2 13.5 18.1 19.2 V1.15 AT+CPASSMGR AT+CNVW AT+CNVR AT+CDELTA AT+CPBS AT+CPBW AT+CGDCONT AT+CGSOCKCONT 6.23 AT+CMGSEX 6.24 AT+CMGENREF 7.17 AT+CCAMCHL 9.7 AT+COLP 9.15 AT+CLCC 9.30 AT+CPLMNWLIST 9.31 AT+CPASSMGR 9.32 AT+CNSVSQ 9.33 AT+CNSVS 9.34 AT+CNSVN 9.35 AT+CNSVUS 9.36 AT+CNSVUN 10.20 AT+CDELTA 19.22 AT+CIPMODE 21 Internet Service Command 21.1.1 AT+SMTPSRV 21.1.2 AT+SMTPAUTH 21.1.3 AT+SMTPFROM 21.1.4 AT+SMTPRCPT 21.1.5 AT+SMTPSUB 21.1.6 AT+SMTPBODY 21.1.7 AT+SMTPFILE 21.1.8 AT+SMTPSEND 21.1.9 AT+SMTPSTOP 21.2.1 AT+POP3SRV 21.2.2 AT+POP3IN 21.2.3 AT+POP3NUM 21.2.4 AT+POP3LIST 21.2.5 AT+POP3HDR 21.2.6 AT+POP3GET 21.2.7 AT+POP3DEL 21.2.8 AT+POP3OUT 21.2.9 AT+POP3STOP 21.2.10 AT+POP3READ SIM5218_Serial _AT Command Manual_V1.21 Remove this command Add this command Add this command Add this command Modify this command Modify this command Modify the description of this command Modify the description of this command Add the command Add the command Add the command Modify the description of this command Modify the defined value of <type> Add the command Add the command Add this command Add this command Add this command Add this command Add this command Modify the defined value of <delta_package> Add this command Add internet service command into this document Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command 5 1/13/2011
  • 7. SIM5218 Serial AT Command Manual 21.3.1 AT+CFTPPORT 21.3.2 AT+CFTPMODE 21.3.3 AT+CFTPTYPE 21.3.4 AT+CFTPSERV 21.3.5 AT+CFTPUN 21.3.6 AT+CFTPPW 21.3.7 AT+CFTPGETFILE 21.3.8 AT+CFTPPUTFILE 21.3.9 AT+CFTPGET 21.3.10 AT+CFTPPUT 21.4.1 AT+CHTTPACT 21.5.1 AT+CHTTPSSTART 21.5.2 AT+CHTTPSSTOP 21.5.3 AT+CHTTPSOPSE 21.5.4 AT+CHTTPSCLSE 21.5.5 AT+CHTTPSSEND 21.5.6 AT+CHTTPSRECV 21.6.1 AT+CFTPSSTART 21.6.2 AT+CFTPSSTOP 21.6.3 AT+CFTPSLOGIN 21.6.4 AT+CFTPSLOGOUT 21.6.5 AT+CFTPSMKD 21.6.6 AT+CFTPSRMD 21.6.7 AT+CFTPSDEL 21.6.8 AT+CFTPSCWD 21.6.9 AT+CFTPSPWD 21.6.10 AT+CFTPSTYPE 21.6.11 AT+CFTPSLIST 21.6.12 AT+CFTPSGETFILE 21.6.13 AT+CFTPSPUTFILE 21.6.14 AT+CFTPSGET 21.6.15 AT+CFTPSPUT 21.6.16 AT+CFTPSSINGLEIP 22 MMS command 22.1 AT+CMMSCURL 22.2 AT+CMMSPROTO 22.3 AT+CMMSSENDCFG 22.4 AT+CMMSEDIT 22.5 AT+CMMSDOWN 22.6 AT+CMMSDELFILE 22.7 AT+CMMSSEND 22.8 AT+CMMSRECP 22.9 AT+CMMSCC SIM5218_Serial _AT Command Manual_V1.21 Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add MMS command into this document Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command 6 1/13/2011
  • 8. SIM5218 Serial AT Command Manual 22.10 AT+CMMSBCC 22.11 AT+CMMSDELRECP 22.12 AT+CMMSDELCC 22.13 AT+CMMSDELBCC 22.14 AT+CMMSRECV 22.15 AT+CMMSVIEW 22.16 AT+CMMSREAD 22.17 AT+CMMSSNATCH 22.18 AT+CMMSSAVE 22.19 AT+CMMSDELETE 22.20 AT+CMMSSYSSET 22.21 AT+CMMSINCLEN 23 CSCRIPT Command 23.1 AT+CSCRIPTSTART 23.2 AT+CSCRIPTSTOP 23.3 AT+CSCRIPTCL 23.4 AT+CSCRIPTPASS 23.5 AT+CSCRIPTCMD Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add this command Add CSCRIPT command into this document Add this command Add this command Add this command Add this command Add this command V1.16 8.9 AT+CECM 8.10 AT+CNSM 12.26 AT+CDTRISRMD 12.27 AT+CDTRISRS Add this command Add this command Add this command Add this command V1.17 3.1 ATI 3.4 AT+CGMR 4.12 AT+CHUP 6.23 AT+CMGSEX 8.9 AT+CECM 9.2 AT+COPS 10.20 AT+CDELTA 12.21 AT+CSUART 12.26 AT+CDTRISRMD 16.9 AT&S 19.16 AT+CIPCCFG 21.6.5 AT+CFTPSMKD 21.6.11 AT+CFTPSLIST 21.6.12 AT+CFTPSGETFILE 21.6.13 AT+CFTPSPUTFILE 21.6.14 AT+CFTPSGET 21.6.15 AT+CFTPSPUT 21.6.17 FTPS codes 22.18 AT+CMMSSAVE 22.21 AT+CMMSINCLEN Modify the examples of this command Modify the examples of this command Modify description of this command Modify the note description of this command Modify the defined values of this command Modify description of this command Modify example and note of this command Modify the syntax of this command. Modify the syntax of this command. Add this command Add the fifth parameter<HeaderType> of this command Modify description of this command Modify description of this command Modify description of this command Modify the syntax of this command Modify description of this command Modify the example of this command Add description of FTPS codes Modify the syntax of this command Modify description of this command SIM5218_Serial _AT Command Manual_V1.21 7 1/13/2011
  • 9. SIM5218 Serial AT Command Manual V1.18 21.6.7 AT+CFTPSDELE 9.30 AT+CPLMNWLIST 9.31 AT+CPASSMGR 21.6 FTPS AT commands 21.6.4 AT+CFTPSLOGOUT 21.5 AT+CMMSDOWN 21.20 AT+CMMSSYSSET Modify AT+CFTPSDEL to AT+CFTPSDELE Add SIM PIN and references for this command Add SIM PIN and references for this command Add description for FTPS related AT commands Add SIM PIN and references for this command Modify the description of this command Modify the description of this command V1.19 21.3.11 AT+CFTPLIST 22.20 AT+CMMSSYSSET 9.26 AT+CCINFO 17.2 AT+CGPSINFO Add this command Modify the description of this command Modify the description of this command Modify the description of this command V1.20 8.9 AT+CECM 8.10 AT+CNSM 8.11 AT+CECSET 9.30 AT+CPLMNWLIST 9.31 AT+CPASSMGR 19.3 AT+CSOCKAUTH 19.19 AT+CIPCLOSE 21.7.1 AT+CHTPSERV 21.7.2 AT+CHTPUPDATE 22.14 AT+CMMSRECV 23.4 AT+CSCRIPTPASS 16.10 AT&F Modify description of this command Modify description of this command Add this command Modify the description of this command Modify the description of this command Modify the description of this command Modify the description of this command Add this command Add this command Modify the description of this command Modify the description of this command Add this command V1.21 5.4 AT+VPDTMF 7.16 AT+CCAMMD 8.1 AT+CQCPREC 8.4 AT+CQCPSTOP 8.5 AT+CCMXPLAY 8.6 AT+CCMXPAUSE 8.7 AT+CCMXRESUME 8.8 AT+CCMXSTOP 9.4 AT+CPWD 9.13 AT+CAOC 9.22 AT+CPSI 9.26 AT+CCINFO 9.32 AT+CNSVSQ 9.33 AT+CNSVS 9.34 AT+CNSVN 12.18 AT+CVLVL 15.1 AT+CTXFILE 15.2 AT+CRXFILE Modify the description of this command Modify the description of this command Modify the responses description of this command Modify the responses description of this command Modify the responses and description of this command Modify the responses description of this command Modify the responses description of this command Modify the responses description of this command Modify the defined values<fac> of this command Modify the responses of write command Modify the defined values of this command Modify the defined values of this command Modify the responses of execution command Modify the responses of execution command Modify the responses of execution command Modify the responses of write command Modify the responses of test command Modify the responses of test command SIM5218_Serial _AT Command Manual_V1.21 8 1/13/2011
  • 10. SIM5218 Serial AT Command Manual Contents 1 Introduction ........................................................................................................................................... 19 1.1 Scope............................................................................................................................................. 19 1.2 References ..................................................................................................................................... 19 1.3 Terms and abbreviations................................................................................................................ 19 1.4 Definitions and conventions.......................................................................................................... 20 2 AT Interface Synopsis ........................................................................................................................... 22 2.1 Interface settings ........................................................................................................................... 22 2.2 AT command syntax...................................................................................................................... 22 2.3 Information responses ................................................................................................................... 23 3 General Commands ............................................................................................................................... 24 3.1 ATI Display product identification information ......................................................................... 24 3.2 AT+CGMI Request manufacturer identification ........................................................................ 25 3.3 AT+CGMM Request model identification ................................................................................. 25 3.4 AT+CGMR Request revision identification ............................................................................... 26 3.5 AT+CGSN Request product serial number identification .......................................................... 27 3.6 AT+CSCS Select TE character set ............................................................................................. 27 3.7 AT+CIMI Request international mobile subscriber identity ...................................................... 28 3.8 AT+GCAP Request overall capabilities ..................................................................................... 29 3.9 AT+CATR Configure URC destination interface....................................................................... 30 3.10 A/ Repeat last command ............................................................................................................ 31 3.11 AT+CFGRI Indicate RI when using URC.................................................................................. 31 4 Call Control Commands and Methods .................................................................................................. 33 4.1 AT+CSTA Select type of address ............................................................................................... 33 4.2 AT+CMOD Call mode ............................................................................................................... 34 4.3 ATD Dial command ................................................................................................................... 35 4.4 ATD><mem><n> Originate call from specified memory.......................................................... 36 4.5 ATD><n> Originate call from active memory (1) ..................................................................... 36 4.6 ATD><str> Originate call from active memory (2) ................................................................... 37 4.7 ATA Call answer......................................................................................................................... 38 4.8 +++ Switch from data mode to command mode ........................................................................ 39 4.9 ATO Switch from command mode to data mode ....................................................................... 39 4.10 AT+CVHU Voice hang up control ............................................................................................. 40 4.11 ATH Disconnect existing call..................................................................................................... 41 4.12 AT+CHUP Hang up call............................................................................................................. 41 4.13 AT+CBST Select bearer service type ......................................................................................... 42 4.14 AT+CRLP Radio link protocol................................................................................................... 44 4.15 AT+CR Service reporting control............................................................................................... 45 4.16 AT+CEER Extended error report ............................................................................................... 46 4.17 AT+CRC Cellular result codes................................................................................................... 47 4.18 AT+VTS DTMF and tone generation......................................................................................... 48 4.19 AT+CLVL Loudspeaker volume level ....................................................................................... 49 SIM5218_Serial _AT Command Manual_V1.21 9 1/13/2011
  • 11. SIM5218 Serial AT Command Manual 4.20 AT+VMUTE Speaker mute control ........................................................................................... 50 4.21 AT+CMIC Microphone volume control..................................................................................... 51 4.22 AT+CMUT Microphone mute control........................................................................................ 52 4.23 AT+AUTOANSWER Automatic answer quickly...................................................................... 53 4.24 ATS0 Automatic answer............................................................................................................. 53 4.25 AT+CALM Alert sound mode.................................................................................................... 54 4.26 AT+CRSL Ringer sound level.................................................................................................... 55 4.27 AT+CSDVC Switch voice channel device................................................................................. 56 4.28 AT+CPTONE Play tone ............................................................................................................. 57 4.29 AT+CPCM External PCM codec mode configuration ............................................................... 58 4.30 AT+CPCMFMT Change the PCM format ................................................................................. 59 4.31 AT+CPCMREG Control PCM data transfer by diagnostics port ............................................... 60 4.32 AT+VTD Tone duration ............................................................................................................. 61 4.33 AT+CSSN Supplementary service notifications ........................................................................ 62 5 Video Call Related Commands ............................................................................................................. 65 5.1 AT+VPMAKE Originate video call ........................................................................................... 65 5.2 AT+VPANSWER Answer video call ......................................................................................... 65 5.3 AT+VPEND Cancel video call................................................................................................... 66 5.4 AT+VPDTMF Send DTMF tone during video call.................................................................... 67 5.5 AT+VPSOURCE Select video TX source.................................................................................. 67 5.6 AT+VPRECORD Record video during video call ..................................................................... 68 5.7 AT+VPLOOP Loopback far-end video frame during video call................................................ 69 5.8 AT+VPSM Switch video call to CSD mode .............................................................................. 70 5.9 AT+VPQLTY Setting video quality ........................................................................................... 71 6 SMS Related Commands ...................................................................................................................... 73 6.1 +CMS ERROR Message service failure result code.................................................................. 73 6.2 AT+CSMS Select message service............................................................................................. 74 6.3 AT+CPMS Preferred message storage ....................................................................................... 75 6.4 AT+CMGF Select SMS message format.................................................................................... 76 6.5 AT+CSCA SMS service centre address...................................................................................... 77 6.6 AT+CSCB Select cell broadcast message indication ................................................................. 78 6.7 AT+CSDH Show text mode parameters..................................................................................... 79 6.8 AT+CNMA New message acknowledgement to ME/TA........................................................... 80 6.9 AT+CNMI New message indications to TE............................................................................... 82 6.10 AT+CMGL List SMS messages from preferred store ................................................................ 84 6.11 AT+CMGR Read message ......................................................................................................... 88 6.12 AT+CMGS Send message.......................................................................................................... 92 6.13 AT+CMSS Send message from storage ..................................................................................... 93 6.14 AT+CMGW Write message to memory ..................................................................................... 94 6.15 AT+CMGD Delete message....................................................................................................... 95 6.16 AT+CSMP Set text mode parameters......................................................................................... 96 6.17 AT+CMGRO Read message only .............................................................................................. 97 6.18 AT+CMGMT Change message status ........................................................................................ 99 SIM5218_Serial _AT Command Manual_V1.21 10 1/13/2011
  • 12. SIM5218 Serial AT Command Manual 6.19 AT+CMVP Set message valid period......................................................................................... 99 6.20 AT+CMGRD Read and delete message ................................................................................... 100 6.21 AT+CMGSO Send message quickly ........................................................................................ 102 6.22 AT+CMGWO Write message to memory quickly ................................................................... 103 6.23 AT+CMGSEX Send message................................................................................................... 104 6.24 AT+CMGENREF Generate a new message reference............................................................. 105 7 Camera Related Commands ................................................................................................................ 107 7.1 AT+CCAMS Start camera........................................................................................................ 107 7.2 AT+CCAME Stop camera........................................................................................................ 107 7.3 AT+CCAMSETD Set camera dimension................................................................................. 108 7.4 AT+CCAMSETF Set camera FPS ........................................................................................... 109 7.5 AT+CCAMSETR Set camera rotation ..................................................................................... 109 7.6 AT+CCAMSETN Set camera night shot mode........................................................................ 110 7.7 AT+CCAMSETWB Set camera white balance........................................................................ 111 7.8 AT+CCAMSETB Set camera brightness ................................................................................. 112 7.9 AT+CCAMSETZ Set camera zoom ......................................................................................... 112 7.10 AT+CCAMTP Take picture...................................................................................................... 113 7.11 AT+CCAMEP Save picture...................................................................................................... 114 7.12 AT+CCAMRS Start video record............................................................................................. 115 7.13 AT+CCAMRP Pause video record........................................................................................... 116 7.14 AT+CCAMRR Resume video record....................................................................................... 117 7.15 AT+CCAMRE Stop video record............................................................................................. 117 7.16 AT+CCAMMD Switch the AK8856 mode .............................................................................. 118 7.17 AT+CCAMCHL Select the input channel of AK8856 ............................................................. 119 8 Audio Application Commands ............................................................................................................ 120 8.1 AT+CQCPREC Start recording sound clips............................................................................. 120 8.2 AT+CQCPPAUSE Pause sound record .................................................................................... 121 8.3 AT+CQCPRESUME Resume sound record............................................................................. 121 8.4 AT+CQCPSTOP Stop sound record......................................................................................... 121 8.5 AT+CCMXPLAY Play audio file............................................................................................. 122 8.6 AT+CCMXPAUSE Pause playing audio file ........................................................................... 123 8.7 AT+CCMXRESUME Resume playing audio file.................................................................... 123 8.8 AT+CCMXSTOP Stop playing audio file ................................................................................ 124 8.9 AT+CECM Enable/Disable Echo Canceller............................................................................. 124 8.10 AT+CNSM Enable/Disable Noise Suppression ....................................................................... 125 8.11 AT+CECSET Adjust the effect for the given echo cancellation mode..................................... 126 9 Network Service Related Commands.................................................................................................. 128 9.1 AT+CREG Network registration .............................................................................................. 128 9.2 AT+COPS Operator selection .................................................................................................. 129 9.3 AT+CLCK Facility lock ........................................................................................................... 131 9.4 AT+CPWD Change password .................................................................................................. 133 9.5 AT+CLIP Calling line identification presentation.................................................................... 134 9.6 AT+CLIR Calling line identification restriction....................................................................... 135 SIM5218_Serial _AT Command Manual_V1.21 11 1/13/2011
  • 13. SIM5218 Serial AT Command Manual 9.7 AT+COLP Connected line identification presentation ............................................................. 137 9.8 AT+CCUG Closed user group.................................................................................................. 138 9.9 AT+CCFC Call forwarding number and conditions................................................................. 139 9.10 AT+CCWA Call waiting........................................................................................................... 141 9.11 AT+CHLD Call related supplementary services ...................................................................... 143 9.12 AT+CUSD Unstructured supplementary service data.............................................................. 144 9.13 AT+CAOC Advice of charge ................................................................................................... 145 9.14 AT+CSSN Supplementary service notifications ...................................................................... 146 9.15 AT+CLCC List current calls .................................................................................................... 148 9.16 AT+CPOL Preferred operator list............................................................................................. 150 9.17 AT+COPN Read operator names ............................................................................................. 151 9.18 AT+CNMP Preferred mode selection....................................................................................... 152 9.19 AT+CNBP Preferred band selection......................................................................................... 153 9.20 AT+CNAOP Acquisitions order preference ............................................................................. 154 9.21 AT+CNSDP Preferred service domain selection...................................................................... 155 9.22 AT+CPSI Inquiring UE system information ............................................................................ 155 9.23 AT+CNSMOD Show network system mode............................................................................ 157 9.24 AT+CTZU Automatic time and time zone update ................................................................... 159 9.25 AT+CTZR Time and time zone reporting ................................................................................ 160 9.26 AT+CCINFO Show cell system information ........................................................................... 161 9.27 AT+CSCHN Show cell channel information ........................................................................... 163 9.28 AT+CSRP Show serving cell radio parameter ......................................................................... 164 9.29 AT+CRUS Show cell set system information .......................................................................... 165 9.30 AT+CPLMNWLIST Manages PLMNs allowed by customer..................................................... 167 9.31 AT+CPASSMGR Manage password........................................................................................... 167 9.32 AT+CNSVSQ Network band scan quickly .............................................................................. 168 9.33 AT+CNSVS Network full band scan in string format.............................................................. 170 9.34 AT+CNSVN Network full band scan in numeric format ......................................................... 173 9.35 AT+CNSVUS Network band scan by channels in string ......................................................... 175 9.36 AT+CNSVUN Network band scan by channels in numeric..................................................... 177 10 Mobile Equipment Control and Status Commands ......................................................................... 180 10.1 +CME ERROR Mobile Equipment error result code............................................................... 180 10.2 AT+CMEE Report mobile equipment error ............................................................................. 183 10.3 AT+CPAS Phone activity status ............................................................................................... 184 10.4 AT+CFUN Set phone functionality.......................................................................................... 185 10.5 AT+CPIN Enter PIN ................................................................................................................ 186 10.6 AT+CSQ Signal quality............................................................................................................ 187 10.7 AT+AUTOCSQ Set CSQ report............................................................................................... 188 10.8 AT+CACM Accumulated call meter........................................................................................ 189 10.9 AT+CAMM Accumulated call meter maximum...................................................................... 190 10.10 AT+CPUC Price per unit and currency table ........................................................................... 191 10.11 AT+CPOF Control phone to power down ................................................................................ 192 10.12 AT+CCLK Real time clock ...................................................................................................... 192 SIM5218_Serial _AT Command Manual_V1.21 12 1/13/2011
  • 14. SIM5218 Serial AT Command Manual 10.13 AT+CRFEN RF check at initialization..................................................................................... 193 10.14 AT+CRESET Reset ME ........................................................................................................... 194 10.15 AT+SIMEI Set module IMEI ................................................................................................... 195 10.16 AT+CSIMLOCK Request and change password ..................................................................... 196 10.17 AT+DSWITCH Change diagnostics port mode ....................................................................... 198 10.18 AT+CNVW Write NV item...................................................................................................... 198 10.19 AT+CNVR Read NV item........................................................................................................ 200 10.20 AT+CDELTA Write delta package to FOTA partition.............................................................. 202 11 SIMCard Related Commands.............................................................................................................. 204 11.1 AT+CICCID Read ICCID in SIM card .................................................................................... 204 11.2 AT+CSIM Generic SIM access ................................................................................................ 204 11.3 AT+CRSM Restricted SIM access ........................................................................................... 205 11.4 AT+CSIMSEL Switch between two SIM card......................................................................... 207 11.5 AT+SPIC Times remain to input SIM PIN/PUK...................................................................... 208 11.6 AT+CSPN Get service provider name from SIM..................................................................... 208 12 Hardware Related Commands......................................................................................................... 210 12.1 AT+CTXGAIN Set TX gain..................................................................................................... 210 12.2 AT+CRXGAIN Set RX gain .................................................................................................... 210 12.3 AT+CTXVOL Set TX volume ................................................................................................. 211 12.4 AT+CRXVOL Set RX volume................................................................................................. 212 12.5 AT+CTXFTR Set TX filter ...................................................................................................... 212 12.6 AT+CRXFTR Set RX filter...................................................................................................... 213 12.7 AT+CVALARM Low voltage Alarm ....................................................................................... 214 12.8 AT+CRIIC Read values from register of IIC device ................................................................ 215 12.9 AT+CWIIC Write values to register of IIC device................................................................... 216 12.10 AT+CVAUXS Set state of the pin named VREG_AUX1 ........................................................ 216 12.11 AT+ CVAUXV Set voltage value of the pin named VREG_AUX1......................................... 217 12.12 AT+CGPIO Set Trigger mode of interrupt GPIO..................................................................... 218 12.13 AT+CGDRT Set the direction of specified GPIO .................................................................... 219 12.14 AT+CGSETV Set the value of specified GPIO........................................................................ 220 12.15 AT+CGGETV Get the value of specified GPIO ...................................................................... 220 12.16 AT+CADC Read ADC value.................................................................................................... 221 12.17 AT+CMICAMP1 Set value of micamp1 .................................................................................. 222 12.18 AT+CVLVL Set value of sound level....................................................................................... 223 12.19 AT+SIDET Digital attenuation of sidetone .............................................................................. 224 12.20 AT+CRIRS Reset RI pin of serial port..................................................................................... 225 12.21 AT+CSUART Switch UART line mode................................................................................... 226 12.22 AT+CDCDMD Set DCD pin mode.......................................................................................... 226 12.23 AT+CDCDVL Set DCD pin high-low in GPIO mode ............................................................. 227 12.24 AT+CCGSWT Switch between camera interface and GPIO ................................................... 228 12.25 AT+CBC Battery charge .......................................................................................................... 229 12.26 AT+CDTRISRMD Configure the trigger condition for DTR’s interrupt................................. 230 12.27 AT+CDTRISRS Enable/disable the pin of DTR’s awakening function................................... 231 SIM5218_Serial _AT Command Manual_V1.21 13 1/13/2011
  • 15. SIM5218 Serial AT Command Manual 13 Phonebook Related Commands....................................................................................................... 233 13.1 AT+CNUM Subscriber number ............................................................................................... 233 13.2 AT+CPBS Select phonebook memory storage......................................................................... 233 13.3 AT+CPBR Read phonebook entries ......................................................................................... 235 13.4 AT+CPBF Find phonebook entries .......................................................................................... 236 13.5 AT+CPBW Write phonebook entry.......................................................................................... 238 13.6 AT+CEMNLIST Set the list of emergency number ................................................................. 239 14 File System Related Commands...................................................................................................... 241 14.1 AT+FSCD Select directory as current directory....................................................................... 241 14.2 AT+FSMKDIR Make new directory in current directory ........................................................ 242 14.3 AT+FSRMDIR Delete directory in current directory............................................................... 243 14.4 AT+FSLS List directories/files in current directory................................................................. 244 14.5 AT+FSDEL Delete file in current directory ............................................................................. 246 14.6 AT+FSRENAME Rename file in current directory ................................................................. 246 14.7 AT+FSATTRI Request file attributes ....................................................................................... 247 14.8 AT+FSMEM Check the size of available memory................................................................... 248 14.9 AT+FSFMT Format the storage card ....................................................................................... 249 14.10 AT+FSLOCA Select storage place ........................................................................................... 250 15 File Transmission Related Commands ............................................................................................ 252 15.1 AT+CTXFILE Select file transmitted to PC host..................................................................... 252 15.2 AT+CRXFILE Set name of file received from PC host ........................................................... 253 16 V24-V25 Commands....................................................................................................................... 255 16.1 AT+IPR Set local baud rate temporarily .................................................................................. 255 16.2 AT+IPREX Set local baud rate permanently............................................................................ 256 16.3 AT+ICF Set control character framing ..................................................................................... 257 16.4 AT+IFC Set local data flow control ......................................................................................... 258 16.5 AT&C Set DCD function mode................................................................................................ 259 16.6 ATE Enable command echo ..................................................................................................... 259 16.7 AT&V Display current configuration....................................................................................... 260 16.8 AT&D Set DTR function mode................................................................................................ 261 16.9 AT&S Set DSR function mode................................................................................................. 261 16.10 AT&F Set all current parameters to manufacturer defaults...................................................... 262 17 GPS Related Commands ................................................................................................................. 265 17.1 AT+CGPS Start/stop GPS session............................................................................................ 265 17.2 AT+CGPSINFO Get GPS fixed position information.............................................................. 266 17.3 AT+CGPSCOLD Cold start GPS ............................................................................................. 267 17.4 AT+CGPSHOT Hot start GPS ................................................................................................. 268 17.5 AT+CGPSSWITCH Configure output port for NMEA sentence............................................. 268 17.6 AT+CGPSURL Set AGPS default server URL ........................................................................ 269 17.7 AT+CGPSSSL Set AGPS transport security ............................................................................ 270 17.8 AT+CGPSAUTO Start GPS automatic .................................................................................... 270 18 Commands for Packet Domain........................................................................................................ 272 18.1 AT+CGDCONT Define PDP context....................................................................................... 272 SIM5218_Serial _AT Command Manual_V1.21 14 1/13/2011
  • 16. SIM5218 Serial AT Command Manual 18.2 AT+CGQREQ Quality of service profile (requested) .............................................................. 273 18.3 AT+CGEQREQ 3G quality of service profile (requested)....................................................... 276 18.4 AT+CGQMIN Quality of service profile (minimum acceptable) ............................................ 280 18.5 AT+CGEQMIN 3G quality of service profile (minimum acceptable) ..................................... 283 18.6 AT+CGATT Packet domain attach or detach ........................................................................... 287 18.7 AT+CGACT PDP context activate or deactivate...................................................................... 287 18.8 AT+CGDATA Enter data state ................................................................................................. 288 18.9 AT+CGPADDR Show PDP address......................................................................................... 289 18.10 AT+CGCLASS GPRS mobile station class ............................................................................. 291 18.11 AT+CGEREP GPRS event reporting ....................................................................................... 292 18.12 AT+CGREG GPRS network registration status ....................................................................... 293 18.13 AT+CGSMS Select service for MO SMS messages ................................................................ 295 18.14 AT+CGAUTH Set type of authentication for PDP-IP connections of GPRS .......................... 296 19 TCP/IP Related Commands............................................................................................................. 298 19.1 AT+CGSOCKCONT Define socket PDP context.................................................................... 298 19.2 AT+CSOCKSETPN Set active PDP context’s profile number ................................................ 299 19.3 AT+CSOCKAUTH Set type of authentication for PDP-IP conne-ctions of socket ................. 300 19.4 AT+IPADDR Inquire socket PDP address ............................................................................... 302 19.5 AT+NETOPEN Open socket.................................................................................................... 303 19.6 AT+TCPCONNECT Establish TCP connection ...................................................................... 304 19.7 AT+TCPWRITE Send TCP data .............................................................................................. 305 19.8 AT+UDPSEND Send UDP data............................................................................................... 306 19.9 AT+SERVERSTART Startup TCP server ................................................................................ 307 19.10 AT+LISTCLIENT List all of clients’ information ................................................................... 308 19.11 AT+CLOSECLIENT Disconnect specified client.................................................................... 309 19.12 AT+ACTCLIENT Activate specified client............................................................................. 310 19.13 AT+NETCLOSE Close socket ................................................................................................. 311 19.14 AT+CIPHEAD Add an IP head when receiving data............................................................... 312 19.15 AT+CIPSRIP Set whether display IP address and port of sender when receiving data............ 312 19.16 AT+CIPCCFG Configure parameters of socket ....................................................................... 313 19.17 AT+CIPOPEN Establish connection in multi-client mode....................................................... 315 19.18 AT+CIPSEND Send data in multi-client mode ........................................................................ 317 19.19 AT+CIPCLOSE Close connection in Multi-client mode ......................................................... 318 19.20 AT+CDNSGIP Query the IP address of given domain name ................................................... 319 19.21 AT+CIPMODE Select TCPIP application mode...................................................................... 320 19.22 Information elements related to TCP/IP...................................................................................... 321 20 SIM Application Toolkit (SAT) Commands.................................................................................... 323 20.1 AT+STIN SAT Indication......................................................................................................... 323 20.2 AT+STGI Get SAT information ............................................................................................... 324 20.3 AT+STGR SAT respond........................................................................................................... 327 21 Internet Service Command.............................................................................................................. 329 21.1 Simple mail transfer protocol service.......................................................................................... 329 21.1.1 AT+SMTPSRV SMTP server address and port number................................................... 329 SIM5218_Serial _AT Command Manual_V1.21 15 1/13/2011
  • 17. SIM5218 Serial AT Command Manual 21.1.2 AT+SMTPAUTH SMTP server authentication ................................................................ 330 21.1.3 AT+SMTPFROM Sender address and name.................................................................... 331 21.1.4 AT+SMTPRCPT Recipient address and name (TO/CC/BCC)......................................... 332 21.1.5 AT+SMTPSUB E-mail subject......................................................................................... 334 21.1.6 AT+SMTPBODY E-mail body ........................................................................................ 334 21.1.7 AT+SMTPFILE Select attachment................................................................................... 336 21.1.8 AT+SMTPSEND Initiate session and send e-mail ........................................................... 337 21.1.9 AT+SMTPSTOP Force to stop sending e-mail................................................................. 338 21.2 Post Office Protocol 3 Service .................................................................................................... 339 21.2.1 AT+POP3SRV POP3 server and account ......................................................................... 339 21.2.2 AT+POP3IN Log in POP3 server..................................................................................... 340 21.2.3 AT+POP3NUM Get e-mail number and total size ........................................................... 341 21.2.4 AT+POP3LIST List e-mail ID and size............................................................................ 342 21.2.5 AT+POP3HDR Get e-mail header.................................................................................... 344 21.2.6 AT+POP3GET Get an e-mail from POP3 server ............................................................. 345 21.2.7 AT+POP3DEL Mark an e-mail to delete from POP3 server ............................................ 346 21.2.8 AT+POP3OUT Log out POP3 server............................................................................... 347 21.2.9 AT+POP3STOP Force to stop receiving e-mail/close the session.................................... 348 21.2.10 AT+POP3READ Read an e-mail from file system .......................................................... 348 21.3 File Transfer Protocol Service..................................................................................................... 349 21.3.1 AT+CFTPPORT Set FTP server port ............................................................................... 349 21.3.2 AT+CFTPMODE Set FTP mode...................................................................................... 350 21.3.3 AT+CFTPTYPE Set FTP type.......................................................................................... 351 21.3.4 AT+CFTPSERV Set FTP server domain name or IP address........................................... 352 21.3.5 AT+CFTPUN Set user name for FTP access.................................................................... 352 21.3.6 AT+CFTPPW Set user password for FTP access ............................................................. 353 21.3.7 AT+CFTPGETFILE Get a file from FTP server to EFS .................................................. 354 21.3.8 AT+CFTPPUTFILE Put a file in module EFS to FTP server........................................... 355 21.3.9 AT+CFTPGET Get a file from FTP server and output it from SIO ................................. 357 21.3.10 AT+CFTPPUT Put a file to FTP server............................................................................ 358 21.3.11 AT+CFTPLIST List the items in the directory on FTP server.......................................... 359 21.3.12 Unsolicited FTP Codes (Summary of CME ERROR Codes).............................................. 360 21.4 Hyper Text Transfer Protocol Service ......................................................................................... 360 21.4.1 AT+CHTTPACT Launch a HTTP operation .................................................................... 360 21.4.2 Unsolicited HTTP codes (summary of CME ERROR codes) ............................................. 363 21.5 Secure Hyper Text Transfer Protocol Service ............................................................................. 363 21.5.1 AT+CHTTPSSTART Acquire HTTPS protocol stack...................................................... 363 21.5.2 AT+CHTTPSSTOP Release HTTPS protocol stack ........................................................ 364 21.5.3 AT+CHTTPSOPSE Open HTTPS session ....................................................................... 364 21.5.4 AT+CHTTPSCLSE Close HTTPS session ...................................................................... 365 21.5.5 AT+CHTTPSSEND Send HTTPS request ....................................................................... 365 21.5.6 AT+CHTTPSRECV Receive HTTPS response................................................................ 366 21.5.7 Unsolicited HTTPS Codes .................................................................................................. 367 SIM5218_Serial _AT Command Manual_V1.21 16 1/13/2011
  • 18. SIM5218 Serial AT Command Manual 21.6 Secure File Transfer Protocol Service ......................................................................................... 368 21.6.1 AT+CFTPSSTART Acquire FTPS protocol stack............................................................ 368 21.6.2 AT+CFTPSSTOP Stop FTPS protocol stack.................................................................... 368 21.6.3 AT+CFTPSLOGIN Login the FTPS server ..................................................................... 369 21.6.4 AT+CFTPSLOGOUT Logout the FTPS server................................................................ 369 21.6.5 AT+CFTPSMKD Create a new directory on FTPS server............................................... 370 21.6.6 AT+CFTPSRMD Delete a directory on FTPS server....................................................... 370 21.6.7 AT+CFTPSDELE Delete a file on FTPS server............................................................... 371 21.6.8 AT+CFTPSCWD Change the current directory on FTPS server ..................................... 372 21.6.9 AT+CFTPSPWD Get the current directory on FTPS server ............................................ 372 21.6.10 AT+CFTPSTYPE Set the transfer type on FTPS server .................................................. 373 21.6.11 AT+CFTPSLIST List the items in the directory on FTPS server ..................................... 374 21.6.12 AT+CFTPSGETFILE Get a file from FTPS server to EFS.............................................. 375 21.6.13 AT+CFTPSPUTFILE Put a file in module EFS to FTPS server ...................................... 376 21.6.14 AT+CFTPSGET Get a file from FTPS server to serial port............................................. 377 21.6.15 AT+CFTPSPUT Put a file to FTPS server ....................................................................... 379 21.6.16 AT+CFTPSSINGLEIP Set FTPS data socket address type.............................................. 380 21.6.17 Unsolicited FTPS Codes ..................................................................................................... 381 21.7 HTTP Time Synchronization Service.......................................................................................... 381 21.7.1 AT+CHTPSERV Set HTP server info .............................................................................. 381 21.7.2 AT+CHTPUPDATE Updating date time using HTP protocol.......................................... 383 21.7.3 Unsolicited HTP Codes ....................................................................................................... 383 22 MMS Commands ............................................................................................................................ 384 22.1 AT+CMMSCURL Set the URL of MMS center ...................................................................... 384 22.2 AT+CMMSPROTO Set the protocol parameters and MMS proxy.......................................... 384 22.3 AT+CMMSSENDCFG Set the parameters for sending MMS................................................. 385 22.4 AT+CMMSEDIT Enter or exit edit mode ................................................................................ 387 22.5 AT+CMMSDOWN Download the file data or title from UART ............................................. 388 22.6 AT+CMMSDELFILE Delete a file within the editing MMS body.......................................... 390 22.7 AT+CMMSSEND Start MMS sending .................................................................................... 391 22.8 AT+CMMSRECP Add recipients............................................................................................. 392 22.9 AT+CMMSCC Add copy-to recipients.................................................................................... 393 22.10 AT+CMMSBCC Add secret recipients .................................................................................... 394 22.11 AT+CMMSDELRECP Delete recipients ................................................................................. 395 22.12 AT+CMMSDELCC Delete copy-to recipients......................................................................... 396 22.13 AT+CMMSDELBCC Delete secret recipients......................................................................... 396 22.14 AT+CMMSRECV Receive MMS ............................................................................................ 397 22.15 AT+CMMSVIEW View information of MMS in box or memory ........................................... 398 22.16 AT+CMMSREAD read the given file in MMS currently in memory ...................................... 400 22.17 AT+CMMSSNATCH snatch the given file in MMS................................................................ 401 22.18 AT+CMMSSAVE Save the MMS to a mail box ...................................................................... 402 22.19 AT+CMMSDELETE Delete MMS in the mail box ................................................................. 403 22.20 AT+CMMSSYSSET Configure MMS transferring parameters ............................................... 405 SIM5218_Serial _AT Command Manual_V1.21 17 1/13/2011
  • 19. SIM5218 Serial AT Command Manual 22.21 AT+CMMSINCLEN Increase the length of audio/video attachment header........................... 406 22.22 Supported Unsolicited Result Codes in MMS ............................................................................ 407 22.22.1 Indication of Sending/Receiving MMS............................................................................... 407 22.22.2 Summary of CME ERROR Codes for MMS ...................................................................... 408 23 CSCRIPT Commands...................................................................................................................... 409 23.1 AT+CSCRIPTSTART Start running a LUA script file............................................................. 409 23.2 AT+CSCRIPTSTOP Stop the current running LUA script. ..................................................... 410 23.3 AT+CSCRIPTCL Compile a LUA script file. .......................................................................... 410 23.4 AT+CSCRIPTPASS Set the password for +CSCRIPTCL. ...................................................... 411 23.5 AT+CSCRIPTCMD Send data to the running LUA script....................................................... 412 23.6 Unsolicited CSCRIPT codes ....................................................................................................... 413 24 AT Commands Samples .................................................................................................................. 414 24.1 SMS commands .......................................................................................................................... 414 24.2 TCP/IP commands....................................................................................................................... 415 24.2.1 TCP server ........................................................................................................................... 415 24.2.2 TCP client............................................................................................................................ 415 24.2.3 UDP..................................................................................................................................... 416 24.2.4 Multi client .......................................................................................................................... 416 24.3 Audio commands ........................................................................................................................ 417 24.3.1 Sound record ....................................................................................................................... 417 24.3.2 Play audio file...................................................................................................................... 418 24.4 Camera commands ...................................................................................................................... 419 24.4.1 Take picture ......................................................................................................................... 419 24.4.2 Record video ....................................................................................................................... 419 24.5 Video call commands .................................................................................................................. 420 24.5.1 Unsolicited indications of video call ................................................................................... 420 24.5.2 Call flows – video call origination ...................................................................................... 421 24.5.3 Call flows – video call termination ..................................................................................... 421 24.6 File transmission flow ................................................................................................................. 422 24.6.1 File transmission to PC host................................................................................................ 422 24.6.2 File received from PC host.................................................................................................. 426 24.7 MMS commands ......................................................................................................................... 429 Contact us.................................................................................................................................................... 431 SIM5218_Serial _AT Command Manual_V1.21 18 1/13/2011
  • 20. 1 1.1 Introduction Scope The present document describes the AT Command Set for the SIMCom Module: SIM5218 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 Terms and abbreviations For the purposes of the present document, the following abbreviations apply: AT ATtention; the two-character abbreviation is used to start a command line to be sent from TE/DTE to TA/DCE CSD Circuit Switched Data DCE Data Communication Equipment; Data Circuit terminating Equipment DCS Digital Cellular Network DTE Data Terminal Equipment DTMF Dual Tone Multi–Frequency EDGE Enhanced Data GSM Environment EGPRS Enhanced General Packet Radio Service GPIO General–Purpose Input/Output
  • 21. SIM5218 Serial AT Command Manual GPRS General Packet Radio Service GSM Global System for Mobile communications HSDPA High Speed Downlink Packet Access HSUPA High Speed Uplink Packet Access I2C Inter–Integrated Circuit IMEI International Mobile station Equipment Identity IMSI International Mobile Subscriber Identity ME Mobile Equipment MO Mobile–Originated MS Mobile Station MT Mobile–Terminated; 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 SMS–SC 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.4 Definitions and conventions 1. For the purposes of the present document, the following syntactical definitions apply: <CR> Carriage return character. <LF> Linefeed character. <…> Name enclosed in angle brackets is a syntactical element. Brackets themselves do not appear in the command line. […] Optional subparameter of AT command or an optional part of TA information response SIM5218_Serial _AT Command Manual_V1.21 20 1/13/2011
  • 22. SIM5218 Serial AT Command Manual is enclosed in square brackets. Brackets themselves do not appear in the command line. If subparameter is not given, its value equals to its previous value or the recommended default value. Underlined defined subparameter value is the recommended default setting or factory setting. underline 2. Document conventions: ♦ ♦ ♦ ♦ Display the examples of AT commands with Italic format. Not display blank-line between command line and responses or inside the responses. Generally, the characters <CR> and <LF> are intentionally omitted throughout this document. If command response is ERROR, not list the ERROR response inside command syntax. NOTE AT commands and responses in figures may be not following above conventions. 3. Special marks for commands or parameters: SIM PIN – Is the command PIN protected? YES – AT command can be used only when SIM PIN is READY. NO 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 – 3GPP Technical Specification 127 007. V.25ter – ITU–T Recommendation V.25ter. Vendor – The command is supported by SIMCom. SIM5218_Serial _AT Command Manual_V1.21 21 1/13/2011
  • 23. SIM5218 Serial AT Command Manual 2 2.1 AT Interface Synopsis Interface settings Between Customer Application and the Module, standardized RS–232 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 S–register 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 Syntax Comments Test Command AT+<NAME>=? Test the existence of the command; give some information about the command subparameters. SIM5218_Serial _AT Command Manual_V1.21 22 1/13/2011
  • 24. SIM5218 Serial AT Command Manual Read Command AT+<NAME>? Check the current values of subparameters. Write Command AT+<NAME>=<…> Set user-definable subparameter values. Execution Command AT+<NAME> Read non-variable subparameters determined by internal processes. 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. SIM5218_Serial _AT Command Manual_V1.21 23 1/13/2011
  • 25. SIM5218 Serial AT Command Manual 3 General Commands 3.1 ATI Display product identification information Description The command requests the product information, which consists of manufacturer identification, model identification, revision identification, QCN type, International Mobile station Equipment Identity (IMEI) and overall capabilities of the product. SIM PIN NO References V.25ter Syntax Execution Command ATI Responses Manufacturer: <manufacturer> Model: <model> Revision: <revision> QCN: [<qcn_type>] 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. <qcn_type> The identification of QCN. QCN is used to save non-volatile values for software. <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. SIM5218_Serial _AT Command Manual_V1.21 24 1/13/2011
  • 26. SIM5218 Serial AT Command Manual Examples ATI Manufacturer: SIMCOM INCORPORATED Model: SIMCOM_SIM5218 Revision: 240150B18SIM5218A SIM5218A_240150_101028_V1.30 QCN: IMEI: 351602000330570 +GCAP: +CGSM,+FCLASS,+DS OK 3.2 AT+CGMI Request manufacturer identification Description The command requests 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 OK 3.3 AT+CGMM Request model identification Description SIM5218_Serial _AT Command Manual_V1.21 25 1/13/2011
  • 27. SIM5218 Serial AT Command Manual The command 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_SIM5218 OK 3.4 AT+CGMR Request revision identification Description The command requests product firmware revision identification text, which is intended to permit the user of the Module to identify the version, revision level, date, and other pertinent information. SIM PIN NO References 3GPP TS 27.007 Syntax Test Command AT+CGMR=? Responses OK Execution Command AT+CGMR Responses <revision> OK Defined values SIM5218_Serial _AT Command Manual_V1.21 26 1/13/2011
  • 28. SIM5218 Serial AT Command Manual <revision> The revision identification of firmware. Examples AT+CGMR +CGMR: 240150B18SIM5218A OK 3.5 AT+CGSN Request product serial number identification Description The 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 3.6 AT+CSCS Select TE character set Description SIM5218_Serial _AT Command Manual_V1.21 27 1/13/2011
  • 29. SIM5218 Serial AT Command Manual 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> Character set, the definition as following: “IRA” International reference alphabet. “GSM” GSM default alphabet; this setting causes easily software flow control (XON /XOFF) problems. “UCS2” 16-bit universal multiple-octet coded character set; UCS2 character strings are converted to hexadecimal numbers from 0000 to FFFF. Examples AT+CSCS=”IRA” OK AT+CSCS? +CSCS:”IRA” OK 3.7 AT+CIMI Request international mobile subscriber identity SIM5218_Serial _AT Command Manual_V1.21 28 1/13/2011
  • 30. SIM5218 Serial AT Command Manual 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.8 AT+GCAP Request overall capabilities 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 AT+GCAP Responses +GCAP: (list of <name>s) OK Defined values SIM5218_Serial _AT Command Manual_V1.21 29 1/13/2011
  • 31. SIM5218 Serial AT Command Manual <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 3.9 AT+CATR Configure URC destination interface Description The command is used to configure the interface which will be used to output URCs. 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 1 2 3 <save> 0 1 – all ports – use UART port to output URCs – use MODEM port to output URCs – use ATCOM port to output URCs – – set temporarily set permanently SIM5218_Serial _AT Command Manual_V1.21 30 1/13/2011
  • 32. SIM5218 Serial AT Command Manual Examples AT+CATR=1,0 OK AT+CATR? +CATR: 1 OK 3.10 A/ Repeat last command Description The 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. 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.11 AT+CFGRI Indicate RI when using URC Description The 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 SIM5218_Serial _AT Command Manual_V1.21 31 1/13/2011
  • 33. SIM5218 Serial AT Command Manual 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 OK AT+CFGRI OK SIM5218_Serial _AT Command Manual_V1.21 32 1/13/2011
  • 34. SIM5218 Serial AT Command Manual 4 Call Control Commands and Methods 4.1 AT+CSTA Select type of address 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 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 SIM5218_Serial _AT Command Manual_V1.21 33 1/13/2011
  • 35. SIM5218 Serial AT Command Manual OK AT+CSTA=145 OK 4.2 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 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 SIM5218_Serial _AT Command Manual_V1.21 34 1/13/2011
  • 36. SIM5218 Serial AT Command Manual OK AT+CMOD=0 OK 4.3 ATD Dial command Description The dial command lists characters that may be used in a dialling string for making a call or controlling supplementary services. SIM PIN YES References V25.ter Syntax Execution Commands ATD<n>[<mgsm>][;] Responses OK VOICE CALL: BEGIN Originate a call unsuccessfully: NO CARRIER 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. Examples ATD10086; OK VOICE CALL:BEGIN SIM5218_Serial _AT Command Manual_V1.21 35 1/13/2011
  • 37. SIM5218 Serial AT Command Manual 4.4 ATD><mem><n> Originate call from specified memory Description Originate a call using specified memory and index number. SIM PIN YES References V.25ter Syntax Execution Commands ATD><mem><n>[;] Responses OK VOICE CALL: BEGIN Originate a call unsuccessfully: NO CARRIER 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. Examples ATD>SM3; OK VOICE CALL: BEGIN 4.5 ATD><n> Originate call from active memory (1) SIM5218_Serial _AT Command Manual_V1.21 36 1/13/2011
  • 38. SIM5218 Serial AT Command Manual Description Originate a call to specified number. SIM PIN YES References V.25ter Syntax Execution Commands ATD><n>[;] Responses OK VOICE CALL: BEGIN Originate a call unsuccessfully: NO CARRIER 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 calls. Examples ATD>2; OK VOICE CALL: BEGIN 4.6 ATD><str> Originate call from active memory (2) Description Originate a call to specified number. SIM PIN YES References V.25ter Syntax Execution Commands ATD><str>[;] Responses OK VOICE CALL: BEGIN Originate a call unsuccessfully: SIM5218_Serial _AT Command Manual_V1.21 37 1/13/2011
  • 39. SIM5218 Serial AT Command Manual NO CARRIER 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. <;> The termination character ";" is mandatory to set up voice calls. It must not be used for data and fax calls. Examples ATD>”Kobe”; OK VOICE CALL: BEGIN 4.7 ATA Call answer Description The 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 SIM5218_Serial _AT Command Manual_V1.21 38 1/13/2011
  • 40. SIM5218 Serial AT Command Manual 4.8 +++ Switch from data mode to command mode Description The 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 can’t exceed 900 milliseconds. SIM PIN YES References V.25ter Syntax Execution Command +++ Responses OK Examples +++ OK 4.9 ATO Switch from command mode to data mode 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 If connection is not successfully resumed or there is not a connected CSD call: NO CARRIER SIM5218_Serial _AT Command Manual_V1.21 39 1/13/2011
  • 41. SIM5218 Serial AT Command Manual Examples ATO CONNECT 4.10 AT+CVHU Voice hang up control 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 – “Drop DTR” ignored but OK response given. ATH disconnects. “Drop DTR” and ATH ignored but OK response given. Examples AT+CVHU=0 OK AT+CVHU? +CVHU: 0 OK SIM5218_Serial _AT Command Manual_V1.21 40 1/13/2011
  • 42. SIM5218 Serial AT Command Manual 4.11 ATH Disconnect existing call Description The command is used to disconnect existing voice 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. The command is also used to disconnect CSD or PS data call, and in this case it doesn’t 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 4.12 AT+CHUP Hang up call Description The 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 SIM5218_Serial _AT Command Manual_V1.21 41 1/13/2011
  • 43. SIM5218 Serial AT Command Manual 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 4.13 AT+CBST Select bearer service type 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 YES References 3GPP TS 27.007 Syntax Test Command AT+CBST=? Read 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 SIM5218_Serial _AT Command Manual_V1.21 42 1/13/2011
  • 44. SIM5218 Serial AT Command Manual Write Command AT+CBST= <speed>[,<name>[,<ce>]] Execution Command AT+CBST Responses OK ERROR Responses Set default value: OK Defined values <speed> 0 – autobauding(automatic selection of the speed; this setting is possible in case of 3.1 kHz modem and non-transparent service) 9600 bps (V.32) 9600 bps (V.34) 14400 bps(V.34) 28800 bps(V.34) 33600 bps(V.34) 9600 bps(V.120) 14400 bps(V.120) 28800 bps(V.120) 56000 bps(V.120) 9600 bps(V.110) 14400 bps(V.110) 28800 bps(V.110 or X.31 flag stuffing) 38400 bps(V.110 or X.31 flag stuffing) 56000 bps(V.110 or X.31 flag stuffing) 64000 bps(X.31 flag stuffing) 64000 bps(bit transparent) 64000 bps(multimedia) 7 – 12 – 14 – 16 – 17 – 39 – 43 – 48 – 51 – 71 – 75 – 80 – 81 – 83 – 84 – 116 – 134 – <name> 0 – Asynchronous modem 1 – Synchronous modem 4 – data circuit asynchronous (RDI) <ce> 0 – transparent 1 – non-transparent NOTE If <speed> is set to 116 or 134, it is necessary that <name> is equal to 1 and <ce> is equal to 0. Examples AT+CBST=0,0,1 OK SIM5218_Serial _AT Command Manual_V1.21 43 1/13/2011
  • 45. SIM5218 Serial AT Command Manual AT+CBST? +CBST:0,0,1 OK 4.14 AT+CRLP Radio link protocol 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? [...]] OK Responses +CRLP: <iws>, <mws>, <T1>, <N2> [,<ver1> [, <T4>]][<CR> <LF> +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 SIM5218_Serial _AT Command Manual_V1.21 44 1/13/2011
  • 46. SIM5218 Serial AT Command Manual 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 4.15 AT+CR Service reporting control Description 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 Responses SIM5218_Serial _AT Command Manual_V1.21 45 1/13/2011
  • 47. SIM5218 Serial AT Command Manual AT+CR? +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 4.16 AT+CEER Extended error report 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 SIM5218_Serial _AT Command Manual_V1.21 46 1/13/2011
  • 48. SIM5218 Serial AT Command Manual 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 OK 4.17 AT+CRC Cellular result codes 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: SIM5218_Serial _AT Command Manual_V1.21 47 1/13/2011
  • 49. SIM5218 Serial AT Command Manual 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 GPRS GPRS network request for PDP context activation Examples AT+CRC=1 OK AT+CRC? +CRC: 1 OK 4.18 AT+VTS DTMF and tone generation Description The 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 SIM5218_Serial _AT Command Manual_V1.21 48 1/13/2011
  • 50. SIM5218 Serial AT Command Manual Test Command Responses AT+VTS=? +VTS: (list of supported<dtmf>s) OK 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> 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 4.19 AT+CLVL Loudspeaker volume level 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 SIM5218_Serial _AT Command Manual_V1.21 49 1/13/2011
  • 51. SIM5218 Serial AT Command Manual 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 4, 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 OK 4.20 AT+VMUTE Speaker mute control Description The 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 can’t 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 Responses SIM5218_Serial _AT Command Manual_V1.21 50 1/13/2011
  • 52. SIM5218 Serial AT Command Manual AT+VMUTE? +VMUTE: <mode> OK Write Command AT+VMUTE=<mode> Responses OK ERROR Defined values <mode> 0 – 1 – mute off mute on Examples AT+VMUTE=1 OK AT+VMUTE? +VMUTE:1 OK 4.21 AT+CMIC Microphone volume control Description The command is used to control the microphone gain level. When the Module restarts, the gain level will resume as default values. The setting will be saved to nonvolatile memory after write command is executed. SIM PIN NO References Vendor Syntax Test Command AT+CMIC=? Responses +CMIC: (list of supported <gainLevel>s) OK Read Command AT+CMIC? Responses +CMIC: <gainLevel> OK Write Command AT+CMIC=<gainLevel> Responses OK ERROR SIM5218_Serial _AT Command Manual_V1.21 51 1/13/2011
  • 53. SIM5218 Serial AT Command Manual Defined values <gainlevel> Range from 0 to 15, and 0 is the lowest gain level. When the audio output of device is handset, 7 is default value; when headset, 7 is default value; when speaker, 4 is default value. Examples AT+CMIC=5 OK AT+CMIC? +CMIC:5 OK 4.22 AT+CMUT Microphone mute control Description The 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 can’t 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 SIM5218_Serial _AT Command Manual_V1.21 52 1/13/2011
  • 54. SIM5218 Serial AT Command Manual AT+CMUT=1 OK AT+CMUT? +CMUT: 1 OK 4.23 AT+AUTOANSWER Automatic answer quickly Description The command causes the Module to enable and disable automatic answer. If enabled, the Module will answer automatically after the Module receives a call from network and 3 seconds lapse. NOTE 1 .The command is effective on voice call and video call. 2 .The setting will be effective after restart. SIM PIN References YES Vendor Syntax Read Command AT+AUTOANSWER? Responses +AUTOANSWER: <arg> OK Write Command AT+AUTOANSWER= <arg> Responses OK Defined values <arg> 0 1 – – disable auto answer enable auto answer Examples AT+AUTOANSWER=1 OK AT+AUTOANSWER? +AUTOANSWER: 1 OK 4.24 ATS0 Automatic answer Description SIM5218_Serial _AT Command Manual_V1.21 53 1/13/2011
  • 55. SIM5218 Serial AT Command Manual 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 YES References 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) 001–255 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. 3.For voice call and video call, AT+AUTOANSWER is prior to ATS0. Examples ATS0? 000 OK ATS0=003 OK 4.25 AT+CALM Alert sound mode Description The 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 NO References 3GPP TS 27.007 SIM5218_Serial _AT Command Manual_V1.21 54 1/13/2011
  • 56. SIM5218 Serial AT Command Manual 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 4.26 AT+CRSL Ringer sound level Description The 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. SIM PIN NO 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 Responses SIM5218_Serial _AT Command Manual_V1.21 55 1/13/2011
  • 57. SIM5218 Serial AT Command Manual AT+CRSL=<level> OK Defined values <level> Integer type value which represents the incoming call ringer sound level. The range is from 0 to 4, 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 4.27 AT+CSDVC Switch voice channel device Description The 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), except microphone level (refer to AT+CMIC). 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) OK Read Command AT+CSDVC? Responses +CSDVC: <dev> OK Write Command AT+CSDVC= <dev>[,<save>] Responses OK Defined values SIM5218_Serial _AT Command Manual_V1.21 56 1/13/2011
  • 58. SIM5218 Serial AT Command Manual <dev> 1 – 2 – 3 – 4 – <save> 0 – 1 – NOTE handset headset speaker phone PCM interface temporary voice device setting, after reboot it will be resumed. permanent voice device setting. If subparameter <save> is omitted, voice device setting is temporary. Examples AT+CSDVC=2 OK AT+CSDVC? +CSDVC:2 OK AT+CSDVC=1,1 OK 4.28 AT+CPTONE Play tone Description The 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 Defined values <tone> 0 – 1 – 2 – Stop the sound tone DTMF tone for 1 key, duration 100ms DTMF tone for 2 key, duration 100ms SIM5218_Serial _AT Command Manual_V1.21 57 1/13/2011
  • 59. SIM5218 Serial AT Command Manual 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 – – – – – – – – – – – – – – – – – – – – – – – – DTMF tone for 3 key, duration 100ms DTMF tone for 4 key, duration 100ms DTMF tone for 5 key, duration 100ms DTMF tone for 6 key, duration 100ms DTMF tone for 7 key, duration 100ms DTMF tone for 8 key, duration 100ms DTMF tone for 9 key, duration 100ms DTMF tone for 0 key, duration 100ms DTMF tone for A key, duration 100ms DTMF tone for B key, duration 100ms DTMF tone for C key, duration 100ms DTMF tone for D key, duration 100ms DTMF tone for # key, duration 100ms DTMF tone for * key, duration 100ms Subscriber busy sound, duration always Congestion sound, duration always Error information sound, duration 1330*3ms Number unobtainable sound, duration 1330*3ms Authentication failure sound, duration 1330*3ms Radio path acknowledgement sound, duration 700*1ms Radio path not available sound, duration 400*4ms CEPT call waiting sound, duration 4000*2ms CEPT ringing sound, duration always CEPT dial tone, duration always Examples AT+CPTONE= ? +CPTONE:(0-26) OK AT+CPTONE=17 OK 4.29 AT+CPCM External PCM codec mode configuration Description The command will 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 NO References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 58 1/13/2011
  • 60. SIM5218 Serial AT Command Manual 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 – – disable PCM, switch to common GPIOs. enable PCM, switch to PCM function. – Auxiliary master PCM, 128K clock and 8K synchronize clock. – Primary master PCM, 2M clock and 8K synchronize clock... – Primary slave PCM, clock provided by external codec. Examples AT+CPCM=1 OK AT+CPCM=? +CPCM : (0-1),(0-2) OK AT+CPCM? +CPCM : 1,1 OK 4.30 AT+CPCMFMT Change the PCM format Description The command allows to change the current PCM format, there are 3 formats currently supported: linear, u-law, a-law SIM PIN NO References Vendor Syntax Test Command AT+CPCMFMT=? Responses +CPCMFMT: (list of supported <format>s) SIM5218_Serial _AT Command Manual_V1.21 59 1/13/2011
  • 61. SIM5218 Serial AT Command Manual 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 4.31 AT+CPCMREG Control PCM data transfer by diagnostics port Description The command is used to control PCM data transfer by diagnostics port.First you should set diagnostics port as data mode by AT+DSWITCH. SIM PIN NO References Vendor Syntax Test Command AT+CPCMREG=? Responses +CPCMREG: (list of supported <n>s) OK Read Command AT+CPCMREG? Responses +CPCMREG: <n> SIM5218_Serial _AT Command Manual_V1.21 60 1/13/2011
  • 62. SIM5218 Serial AT Command Manual 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 AT+CPCMREG=1 OK 4.32 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> SIM5218_Serial _AT Command Manual_V1.21 61 1/13/2011
  • 63. SIM5218 Serial AT Command Manual 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. 1…255 Tone duration of every single tone in 1/10 seconds. Examples AT+VTD=? +VTD: (0-255) OK AT+VTD? +VTD: 0 OK AT+VTD=5 OK 4.33 AT+CSSN Supplementary service notifications Description The write command enables or disables the presentation of URCs for supplementary services.When <n>=1 and a supplementary service notification is received after a mobile originated call setup,the result code “+CSSI: <code1>” is sent to TE before any other MO call setup result codes.When <m>=1 and a supplementary service notification is received during a mobile terminated call setup or during a call,unsolicited result code “+CSSU: <code2>” is sent to TE. The read command displays the current supplementary service notification settings. The test command displays the list of supported CSSN values. 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 ERROR Read Command AT+CSSN? Responses +CSSN: <n>,<m> OK ERROR SIM5218_Serial _AT Command Manual_V1.21 62 1/13/2011
  • 64. SIM5218 Serial AT Command Manual Write Command AT+CSSN =<n>[,<m>] Responses OK ERROR +CME ERROR: <err> Defined values <n> a numeric parameter which indicates whether to show “+CSSI: <code1>” result code pres entation status after a mobile originated call setup 0 – disable 1 – enable <m> A numeric parameter which indicates whether to show the “+CSSU: <code2>” result code presentation status during a mobile terminated call setup or during a call,or when a forward check supplementary service notification is received. 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 4 – this is CUG call 5 – outgoing calls are barred 6 – incoming calls are barred 7 – CLIR suppression rejected <code2> 0 – this is a forwarded call 1 – this is a CUG call 2 – call has been put on hold (during a voice call) 3 – call has been retrieved (during a voice call) 4 – multiparty call entered (during a voice call) 5 – call on hold has been released (this is not a SS notification)(during a voice call) 6 – forward check SS message received (can be received whenever) 7 – call is being connected (alerting) with the remote party in alerting state in explicit call Transfer operation (during a voice call) 8 – call has been connected with the other remote party in explicit call transfer operation (also number and subaddress parameters may be present) (during a voice call or MT call setup) Examples SIM5218_Serial _AT Command Manual_V1.21 63 1/13/2011
  • 65. SIM5218 Serial AT Command Manual AT+CSSN=? +CSSN: (0-1),(0-1) OK AT+CSSN? +CSSN: 1,1 OK AT+CSSN=1,1 OK SIM5218_Serial _AT Command Manual_V1.21 64 1/13/2011
  • 66. SIM5218 Serial AT Command Manual 5 Video Call Related Commands 5.1 AT+VPMAKE Originate video call Description The command is used to originate a video call. Before issue the command, user can select video call TX source by AT+VPSOURCE, and select whether record video after video call is connected or not by AT+VPRECORD. SIM PIN YES References Vendor Syntax Write Command AT+VPMAKE=<num> Responses If connecting: VPACCEPT OK VPRINGBACK VPSETUP VPCONNECTED If not connecting: VPACCEPT OK VPEND Defined values <num> Dialing number. Examples AT+VPMAKE=123456789 VPACCEPT OK VPRINGBACK VPSETUP VPCONNECTED 5.2 AT+VPANSWER Answer video call SIM5218_Serial _AT Command Manual_V1.21 65 1/13/2011
  • 67. SIM5218 Serial AT Command Manual Description The command is used to answer an incoming video call. If there is no incoming video call, OK response is given only. SIM PIN YES References Vendor Syntax Execution Command AT+VPANSWER Responses VPINCOM is reported: OK VPSETUP VPCONNECTED No incoming video call: OK Examples AT+VPANSWER OK VPSETUP VPCONNECTED 5.3 AT+VPEND Cancel video call Description The command is used to end a video call. If recording video is on going, the command will stop recording and end video call. In addition, the command can be used to reject an incoming video call. SIM PIN YES References Vendor Syntax Execution Command AT+VPEND Responses Video call is connected: OK VPEND[: <seconds>] Video call is not connected: OK SIM5218_Serial _AT Command Manual_V1.21 66 1/13/2011
  • 68. SIM5218 Serial AT Command Manual Defined values <seconds> The duration of video call, from VPCONNECTED to VPEND and the unit is in second. Examples AT+VPEND OK VPEND 5.4 AT+VPDTMF Send DTMF tone during video call Description The command is used to send DTMF tone during a connected video call, and it is sent as an H.245 user-input indication (basic string) to the other side. NOTE The maximal length of DTMF string is 127. SIM PIN YES References Vendor Syntax Test Command AT+VPDTMF=? Responses +VPDTMF:(list of supported <vpdtmf>s) OK Write Command AT+VPDTMF=<vpdtmf> Responses OK Defined values <vpdtmf> DTMF string consisted of ( 0–9, *, #). Examples AT+VPDTMF=”12345” OK AT+VPDTMF=”*” OK 5.5 AT+VPSOURCE Select video TX source Description SIM5218_Serial _AT Command Manual_V1.21 67 1/13/2011
  • 69. SIM5218 Serial AT Command Manual The command is used to select video TX source which provides video frames to transmit to remote party. If select video TX source before video call is connected, the Module will get video frames from specified TX source when video call is connected. The command is only effective on current or next video call. SIM PIN YES References Vendor Syntax Test Command AT+VPSOURCE=? Responses OK Write Command AT+VPSOURCE= <src>[, <fname>] Responses OK Defined values <src> The Module supports three TX sources – CAMERA, STATIC IMAGE, and FILE SOURCE. In spite of which TX source is used, the size of video frames must be 176* 144(pixel). 1 – Capture video from camera. (default value) 2 – Send a static image, support JPEG and BMP format. 3 – Send video frames from file, support MP4 and 3GP format. <fname> Image or video file which is existed in current directory [refer to AT+FSCD], and it includes extension name. NOTE 1. If <src>=1, <fname> must be ignored, otherwise <fname> must be specified. 2. If the TX source is CAMERA, please make sure the camera is OK, otherwise, video call may not be connected successfully. Examples AT+VPSOURCE=1 OK AT+VPSOURCE=2, “image_0.jpg” OK AT+VPSOURCE=3, “video_0.mp4” OK 5.6 AT+VPRECORD Record video during video call Description SIM5218_Serial _AT Command Manual_V1.21 68 1/13/2011
  • 70. SIM5218 Serial AT Command Manual Both far-end and near-end video can be recorded in MP4 format during a video call. File name will be generated automatically based on system time of the Module, and the format is YYYYMMDD_ HHMMSS_f.mp4 and YYYYMMDD_HHMMSS_n.mp4. YYYYMMDD_HHMMSS_f.mp4 denotes that video recorded is from other side. YYYYMMDD_HH MMSS_n.mp4 denotes that video recorded is transmitted to remote party. The storage location of files refers to AT+FSLOCA (<side>=1/2/3). NOTE The maximal number of video frames that can be recorded is 9000 frames which corresponds to 10 minutes if FPS is 15. If maximal number is reached, “VP MP4 REACH TIME” will be reported. If memory for recording video is not enough, “VP MP4 NO MEMORY” will be reported.. SIM PIN YES References Vendor Syntax Test Command AT+VPRECORD=? Responses +VPRECORD:(list of supported <side>s) OK Write Command AT+VPRECORD=<side> Responses OK Defined values <side> 0 1 2 3 4 5 – not record video. – only record far-end video. – only record near-end video. – record both far-end and near-end. – record far-end video and send data to host by diag port. – record near-end video and send data to host by diag port. Examples AT+VPRECORD=1 OK AT+VPRECORD=0 OK 5.7 AT+VPLOOP Loopback far-end video frame during video call Description The command is used to loopback video frame from far-end during a connected video call SIM5218_Serial _AT Command Manual_V1.21 69 1/13/2011
  • 71. SIM5218 Serial AT Command Manual SIM PIN YES References Vendor Syntax Test Command AT+VPLOOP=? Read Command AT+VPLOOP? Write Command AT+VPLOOP=<num> Responses +VPLOOP: (list of supported <num>s) OK Responses +VPLOOP: <num> OK Responses [+VPLOOP: <num>] OK No connected video call: ERROR Defined values <num> Integer type value indicating that it will loopback a video frame after receiving <num> video frames from remote party. 255 – Not loopback far-end video frame. 1~254 – Interval of video frame; if <num> is too small, it will release video frame from far-end before previous video frame is looped back. Examples AT+VPLOOP=? +VPLOOP: (1-255) OK AT+VPLOOP? +VPLOOP: 255 OK 5.8 AT+VPSM Switch video call to CSD mode Description The command is used to switch video call to CSD mode. In CSD mode, it will report RING, but not VPINCOM when remote party originated a video call, and then use command ATA to answer the incoming call. After call is connected, data stream from network is flowed over the interface, and command +++ is used to switch from Data Mode to Command Mode, however, the data flow is not SIM5218_Serial _AT Command Manual_V1.21 70 1/13/2011
  • 72. SIM5218 Serial AT Command Manual cancelled and command ATO is forbidden. In CSD mode, command +VPMAKE can’t originate a video call. SIM PIN YES References Vendor Syntax Test Command AT+VPSM=? Read Command AT+VPSM? Write Command AT+VPSM=<mode> Responses +VPSM: (list of supported <mode>s) OK Responses +VPSM: <mode> OK Responses +VPSM: <mode> OK The state of video call is not idle: ERROR Defined values <mode> Integer type value indicating video call mode or CSD mode. 0 – Normal mode of video call application. 1 – CSD mode. Examples AT+VPSM=? +VPSM: (0,1) OK AT+VPSM=0 +VPSM: 0 OK AT+VPSM? +VPSM: 0 OK 5.9 AT+VPQLTY Setting video quality Description The command is used to setting video quality during video call. SIM5218_Serial _AT Command Manual_V1.21 71 1/13/2011
  • 73. SIM5218 Serial AT Command Manual NOTE The write command must be setting before making a video call. After restart the module, <fps> will be setting the default value. SIM PIN YES References Vendor Syntax Test Command AT+VPQLTY=? Responses +VPQLTY: (list of supported <fps>s) OK Read Command AT+VPQLTY? Responses +VPQLTY: <fps> OK ERROR Write Command AT+VPQLTY=<fps> Responses OK ERROR Defined values <fps> 5-15 5fps is lower fps; 15fps is higher fps. Examples AT+VPQLTY? +VPQLTY: 15 OK AT+VPQLTY=? +VPQLTY: (5-15) OK AT+VPQLTY=5 OK SIM5218_Serial _AT Command Manual_V1.21 72 1/13/2011
  • 74. SIM5218 Serial AT Command Manual 6 SMS Related Commands 6.1 +CMS ERROR Message service failure result code 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> 300 301 302 303 304 305 310 311 312 313 314 315 316 317 318 320 321 322 330 331 332 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 SIM5218_Serial _AT Command Manual_V1.21 73 1/13/2011
  • 75. SIM5218 Serial AT Command Manual 340 NO +CNMA ACK EXPECTED 500 unknown error Examples AT+CMGS=02112345678 +CMS ERROR: 304 6.2 AT+CSMS Select message service Description The 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. SIM5218_Serial _AT Command Manual_V1.21 74 1/13/2011
  • 76. SIM5218 Serial AT Command Manual 1 – type supported. <bm> Broadcast type messages: 0 – type not supported. 1 – type supported. Examples AT+CSMS=0 +CSMS:1,1,1 OK AT+CSMS? +CSMS:0,1,1,1 OK AT+CSMS=? +CSMS:(0-1) OK 6.3 AT+CPMS Preferred message storage Description The 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 SIM5218_Serial _AT Command Manual_V1.21 75 1/13/2011
  • 77. SIM5218 Serial AT Command Manual ERROR +CMS ERROR: <err> 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 6.4 AT+CMGF Select SMS message format Description SIM5218_Serial _AT Command Manual_V1.21 76 1/13/2011
  • 78. SIM5218 Serial AT Command Manual The command is used to specify the input and output format of the short messages. SIM PIN YES References 3GPP TS 27.005 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 6.5 AT+CSCA SMS service centre address Description The command is used to update the SMSC address, through which mobile originated SMS are transmitted. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 77 1/13/2011
  • 79. SIM5218 Serial AT Command Manual YES 3GPP TS 27.005 Syntax 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 6.6 AT+CSCB Select cell broadcast message indication Description The test command returns the supported <operation>s as a compound value. The read command displays the accepted message types. Depending on the <operation> parameter, the write command adds or deletes the message types accepted. SIM PIN YES References 3GPP TS 27.005 Syntax SIM5218_Serial _AT Command Manual_V1.21 78 1/13/2011
  • 80. SIM5218 Serial AT Command Manual Test Command AT+CSCB=? Responses +CSCB: (list of supported <mode>s) OK 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 6.7 AT+CSDH Show text mode parameters Description The command is used to control whether detailed header information is shown in text mode result codes. SIM PIN YES References 3GPP TS 27.005 SIM5218_Serial _AT Command Manual_V1.21 79 1/13/2011
  • 81. SIM5218 Serial AT Command Manual Syntax Test Command AT+CSDH=? Responses +CSDH: (list of supported <show>s) 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 6.8 AT+CNMA New message acknowledgement to ME/TA Description The command confirms 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; SIM5218_Serial _AT Command Manual_V1.21 80 1/13/2011
  • 82. SIM5218 Serial AT Command Manual <+CDS> for <ds>=1. SIM PIN YES References 3GPP TS 27.005 Syntax Test Command AT+CNMA=? Responses +CNMA: (list of supported <n>s) OK Write Command AT+CNMA=<n> Responses if text mode(AT+CMGF=1): OK if PDU mode (AT+CMGF=0): +CNMA: (list of supported <n>s) 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 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 SIM5218_Serial _AT Command Manual_V1.21 81 1/13/2011
  • 83. SIM5218 Serial AT Command Manual AT+CNMA +CMS ERROR:340 (the second time return error, it needs ACK only once) 6.9 AT+CNMI New message indications to TE Description The 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 – 1 – 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. SIM5218_Serial _AT Command Manual_V1.21 82 1/13/2011
  • 84. SIM5218 Serial AT Command Manual 2 – Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line data mode) and flush them to the TE after reservation. Otherwise forward them directly to the TE. <mt> The rules for storing received SMS depend on its data coding scheme, preferred memory storage (AT+CPMS) setting and this value: 0 – No SMS-DELIVER indications are routed to the TE. 1 – If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed to the TE using unsolicited result code: +CMTI: <mem3>,<index>. 2 – SMS-DELIVERs (except class 2 messages and messages in the message waiting indication group (store message)) are routed directly to the TE using unsolicited result code: +CMT:[<alpha>],<length><CR><LF><pdu> (PDU mode enabled); or +CMT:<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>] <CR> <LF><data> (text mode enabled, about parameters in italics, refer command Show Text Mode Parameters AT+CSDH). 3 – Class 3 SMS-DELIVERs are routed directly to TE using unsolicited result codes defined in <mt>=2. Messages of other data coding schemes result in indication as defined in <mt>=1. <bm> The rules for storing received CBMs depend on its data coding scheme, the setting of Select CBM Types (AT+CSCB) and this value: 0 – No CBM indications are routed to the TE. 2 – New CBMs are routed directly to the TE using unsolicited result code: +CBM: <length><CR><LF><pdu> (PDU mode enabled); or +CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (text mode enabled) <ds> 0 – No SMS-STATUS-REPORTs are routed to the TE. 1 – SMS-STATUS-REPORTs are routed to the TE using unsolicited result code: +CDS: <length><CR><LF><pdu> (PDU mode enabled); or +CDS: <fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st> (text mode enabled) 2 – If SMS-STATUS-REPORT is stored into ME/TA, indication of the memory location is routed to the TE using unsolicited result code: +CDSI: <mem3>,<index>. <bfr> 0 – TA buffer of unsolicited result codes defined within this command is flushed to the TE when <mode> 1 to 3 is entered (OK response shall be given before flushing the codes). 1 – TA buffer of unsolicited result codes defined within this command is cleared when <mode> 1 to 3 is entered. Examples AT+CNMI? SIM5218_Serial _AT Command Manual_V1.21 83 1/13/2011
  • 85. SIM5218 Serial AT Command Manual +CNMI: 0,0,0,0,0 OK AT+CNMI=? +CNMI: (0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1) OK AT+CNMI=2,1 (unsolicited result codes after received messages.) OK 6.10 AT+CMGL List SMS messages from preferred store Description The command returns 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>,<length>] <CR><LF><data>[<CR><LF> +CMGL:<index>,<stat>,<da>/<oa>,[<alpha>],[<scts>][,<tooa>/<t oda>,<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 SIM5218_Serial _AT Command Manual_V1.21 84 1/13/2011
  • 86. SIM5218 Serial AT Command Manual If text mode (AT+CMGF=1), command successful and CBM storage: +CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages> <CR><LF><data>[<CR><LF> +CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages> <CR><LF><data>[...]] OK If PDU mode (AT+CMGF=0) and Command successful: +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[<C R><LF> +CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu> […]] OK +CMS ERROR: <err> 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> SIM5218_Serial _AT Command Manual_V1.21 85 1/13/2011
  • 87. SIM5218 Serial AT Command Manual 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). <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 number. (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 number. (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 number. 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 number. <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 SIM5218_Serial _AT Command Manual_V1.21 86 1/13/2011
  • 88. SIM5218 Serial AT Command Manual 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 0…255 <ct> Command Type GSM 03.40 TP-Command-Type in integer format 0…255 <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 number. (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 SIM5218_Serial _AT Command Manual_V1.21 87 1/13/2011
  • 89. SIM5218 Serial AT Command Manual OK 6.11 AT+CMGR Read message Description The command returns 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: SIM5218_Serial _AT Command Manual_V1.21 88 1/13/2011
  • 90. SIM5218 Serial AT Command Manual +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 0…255 <dcs> Depending on the command or result code: SMS Data Coding Scheme (default 0), or Cell Broadcast Data Coding Scheme in integer format. SIM5218_Serial _AT Command Manual_V1.21 89 1/13/2011
  • 91. SIM5218 Serial AT Command Manual <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 number. (e.g. character 2 – 3 – 4 – Π (GSM 7 bit default alphabet 23) is presented as 17 (IRA 49 and 55)). 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 number. (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)). 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 number. 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 number. <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). <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. SIM5218_Serial _AT Command Manual_V1.21 90 1/13/2011
  • 92. SIM5218 Serial AT Command Manual <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 0…255 <ct> Command Type GSM 03.40 TP-Command-Type in integer format 0…255 <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 number. (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)). Examples AT+CMGR=1 SIM5218_Serial _AT Command Manual_V1.21 91 1/13/2011
  • 93. SIM5218 Serial AT Command Manual +CMGR: "STO UNSENT","+10011",,145,17,0,0,167,"+8613800100500",145,4 Hello World OK 6.12 AT+CMGS Send message Description The 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). <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> SIM5218_Serial _AT Command Manual_V1.21 92 1/13/2011
  • 94. SIM5218 Serial AT Command Manual 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 6.13 AT+CMSS Send message from storage Description The 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> Message Reference SIM5218_Serial _AT Command Manual_V1.21 93 1/13/2011
  • 95. SIM5218 Serial AT Command Manual 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). 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 6.14 AT+CMGW Write message to memory Description The 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> OK ERROR +CMS ERROR: <err> Defined values SIM5218_Serial _AT Command Manual_V1.21 94 1/13/2011
  • 96. SIM5218 Serial AT Command Manual <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). <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 6.15 AT+CMGD Delete message Description The command is used to delete message from preferred message storage <mem1> location <index>. SIM5218_Serial _AT Command Manual_V1.21 95 1/13/2011
  • 97. SIM5218 Serial AT Command Manual 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 6.16 AT+CSMP Set text mode parameters Description The 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 References SIM5218_Serial _AT Command Manual_V1.21 96 1/13/2011
  • 98. SIM5218 Serial AT Command Manual YES 3GPP TS 27.005 Syntax Test Command AT+CSMP=? Responses OK 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 6.17 AT+CMGRO Read message only Description The command returns message with location value <index> from message storage <mem1> to the TE, but the message’s status don’t change. SIM PIN YES References Vendor SIM5218_Serial _AT Command Manual_V1.21 97 1/13/2011
  • 99. SIM5218 Serial AT Command Manual 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> Defined values Refer to command AT+CMGR. Examples SIM5218_Serial _AT Command Manual_V1.21 98 1/13/2011
  • 100. SIM5218 Serial AT Command Manual AT+CMGRO=6 +CMGRO:"REC READ","+8613917787249",,"06/07/10,12:09:38+32",145,4,0,0,"+86138002105 00",145,4 abcd OK 6.18 AT+CMGMT Change message status Description The command is used to change the message status. If the status is unread, it will be changed read. Other statuses don’t 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 6.19 AT+CMVP Set message valid period Description This command is used to set valid period for sending short message. SIM PIN YES References Vendor SIM5218_Serial _AT Command Manual_V1.21 99 1/13/2011
  • 101. SIM5218 Serial AT Command Manual 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 6.20 AT+CMGRD Read and delete message Description The command is used to read message, and delete the message at the same time. It integrate AT+CMGR and AT+CMGD, but it doesn’t change the message status. SIM PIN YES References Vendor Syntax Test Command Responses SIM5218_Serial _AT Command Manual_V1.21 100 1/13/2011
  • 102. SIM5218 Serial AT Command Manual AT+CMGRD=? 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 Refer to command AT+CMGR. 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 SIM5218_Serial _AT Command Manual_V1.21 101 1/13/2011
  • 103. SIM5218 Serial AT Command Manual OK 6.21 AT+CMGSO Send message quickly Description The command is used to send message from a TE to the network (SMS-SUBMIT). But it’s 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 +CMS ERROR: <err> 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 <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). <text> Content of message. SIM5218_Serial _AT Command Manual_V1.21 102 1/13/2011
  • 104. SIM5218 Serial AT Command Manual <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 6.22 AT+CMGWO Write message to memory quickly Description The command stores message (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2>. But it’s 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> 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. <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 SIM5218_Serial _AT Command Manual_V1.21 103 1/13/2011
  • 105. SIM5218 Serial AT Command Manual 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). <text> Content of message. <pducontent> Content of message. Examples AT+CMGWO="13012832788","ABCD" +CMGWO: 1 OK 6.23 AT+CMGSEX Send message Description The 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> If PDU mode(AT+CMGF= 0): AT+CMGSEX=<length><C R> PDU is entered <CTRL-Z/ESC> Responses If text mode (AT+CMGF=1) and sending successfully: +CMGSEX: <mr> OK If PDU mode(AT+CMGF=0) and sending successfully: +CMGSEX: <mr> OK If sending fails: ERROR If sending fails: +CMS ERROR: <err> SIM5218_Serial _AT Command Manual_V1.21 104 1/13/2011
  • 106. SIM5218 Serial AT Command Manual 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). <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. It’s 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 6.24 AT+CMGENREF Generate a new message reference Description The command is used to generate a new message reference which can be used by AT+CMGSEX. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 105 1/13/2011
  • 107. SIM5218 Serial AT Command Manual 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 SIM5218_Serial _AT Command Manual_V1.21 106 1/13/2011
  • 108. 7 Camera Related Commands 7.1 AT+CCAMS Start camera Description The command is used to start camera. Make sure the sensor is existent and connect well. Camera must be started before taking picture or recording video. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMS Responses OK If have no sensor: CAMERA NO SENSOR ERROR If camera has started: CAMERA INVALID STATE ERROR Examples AT+CCAMS OK 7.2 AT+CCAME Stop camera Description The command is used to stop camera. If AT+CCAMTP has executed to take a picture and the picture is not saved by AT+CCAMEP, the picture will not be saved after AT+CCAME execution. If AT+CCAMRS has executed to record video and that is not ended by AT+CCAMRE, the video file will be stopped recording and saved after AT+CCAME execution. SIM PIN NO Syntax References Vendor
  • 109. SIM5218 Serial AT Command Manual Execution Command AT+CCAME Responses OK If camera has stopped: CAMERA NOT START ERROR Examples AT+CCAME OK 7.3 AT+CCAMSETD Set camera dimension Description The command is used to set dimension of camera. SIM PIN NO References Vendor Syntax Write Command AT+CCAMSETD= <width>,<height> Responses OK If camera in a wrong state: CAMERA INVALID S TATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <width> * <height> Image mode STAMP QQVGA QCIF QVGA CIF VGA XGA 4VGA SXGA 80 * 48 160 * 120 176 * 144 320 * 240 352 * 288 640 * 480 1024 * 768 1280 * 960 1280 * 1024 SIM5218_Serial _AT Command Manual_V1.21 108 1/13/2011
  • 110. SIM5218 Serial AT Command Manual UXGA STAMP QCIF QVGA Video mode 1600 * 1200 80 * 48 176 * 144 320 * 240 Examples AT+CCAMSETD=320,240 OK 7.4 AT+CCAMSETF Set camera FPS Description The command is used to set FPS (frame per second). It is acting when recording video. SIM PIN NO References Vendor Syntax Write Command AT+CCAMSETF=<fps> Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <fps> 0 1 2 – 7.5 fps – 10 fps – 15 fps Examples AT+CCAMSETF=1 OK 7.5 AT+CCAMSETR Set camera rotation SIM5218_Serial _AT Command Manual_V1.21 109 1/13/2011
  • 111. SIM5218 Serial AT Command Manual Description The command is used to set the rotation degree of camera. SIM PIN NO References Vendor Syntax Write Command AT+CCAMSETR= <rotation_degree> Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <rotation_degree> 0 – not rotate . 90 – rotate 90 degrees clockwise. 180 – rotate 180 degrees clockwise. 270 – rotate 270 degrees clockwise. Examples AT+CCAMSETR=90 OK 7.6 AT+CCAMSETN Set camera night shot mode Description The command is used to set night shot mode of camera. SIM PIN NO References Vendor Syntax Write Command AT+CCAMSETN= <nightsoht> Responses OK If camera in a wrong state: SIM5218_Serial _AT Command Manual_V1.21 110 1/13/2011
  • 112. SIM5218 Serial AT Command Manual CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <nightsoht> 0 – off 1 – on Examples AT+CCAMSETN=1 OK 7.7 AT+CCAMSETWB Set camera white balance Description The command is used to set white balance. SIM PIN References NO Vendor Syntax Write Command AT+CCAMSETWB=<wb> Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <wb> 1 4 5 6 – – – – auto fluorescent daylight cloudy daylight SIM5218_Serial _AT Command Manual_V1.21 111 1/13/2011
  • 113. SIM5218 Serial AT Command Manual Examples AT+CCAMSETWB=1 OK 7.8 AT+CCAMSETB Set camera brightness Description The command is used to set brightness. SIM PIN NO References Vendor Syntax Write Command AT+CCAMSETB= <brightness> Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <brightness> Range is 0-6 (0 is the lowest, 6 is the highest). Examples AT+CCAMSETB=1 OK 7.9 AT+CCAMSETZ Set camera zoom Description The command is used to set zoom in/out. SIM PIN NO References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 112 1/13/2011
  • 114. SIM5218 Serial AT Command Manual Test Command AT+CCAMSETZ=? Responses +CCAMSETZ:(<zmin>-<zmax>),(<zcurrent>) OK Write Command AT+CCAMSETZ=<zoom> Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <zoom> Range is 0-91 (0 is the lowest, 91 is the highest). <zmin> The minimum of zoom for current dimension. <zmax> The maximum of zoom for current dimension. <zcurrent> The current zoom value. NOTE 1. 2. Before set the zoom for camera, please check response of command (AT+CCAMSETZ=?). Current value will be set <zmax> instead of your set if <zoom> out of current range limits. <zmax> is different to each image dimension. Examples AT+CCAMSETZ=? +CCAMSETZ:(0-30)(0) OK AT+CCAMSETZ=15 OK 7.10 AT+CCAMTP Take picture Description SIM5218_Serial _AT Command Manual_V1.21 113 1/13/2011
  • 115. SIM5218 Serial AT Command Manual The command is used to take a picture after camera is started and setting parameters if need. NOTE AT+CCAMTP is used to take a picture, but not save; and AT+CCAMEP is used to save the picture after AT+CCAMTP execution. If AT+CCAMTP is executed more times continuously, AT+CCAMEP will save the picture which is taken by the last AT+CCAMTP. NOTE If GPS is running and fixed already, the GPS information (include latitude, longitude, altitude and Date-Time) will store in JPEG EXIF tab when taking picture. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMTP Responses OK If storage space is full: CAMERA NO MEMORY ERROR If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Examples AT+CCAMTP OK 7.11 AT+CCAMEP Save picture Description The command is used to save a picture taken by last AT+CCAMTP in JPEG format. File name is generated automatically based on system time [refer AT+CCLK], and the storage location of picture refers to AT+FSLOCA. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMEP Responses <path_name> SIM5218_Serial _AT Command Manual_V1.21 114 1/13/2011
  • 116. SIM5218 Serial AT Command Manual OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Defined values <path_name> If saved in ME: “C:/Picture/YYYYMMDD_HHMMSS.jpg” If saved in SD card: “D:/Picture/YYYYMMDD_HHMMSS. jpg”. Examples AT+CCAMEP C:/Picture/20080420_120303.jpg OK 7.12 AT+CCAMRS Start video record Description The command is used to start video recording and save the video file by MP4 format. The name of video file will be generated automatically based on system time [refer AT+CCLK], and the storage location of video file refers to AT+FSLOCA. Note If storage space isn’t enough during recording, the module will stop recording video and save the media file. Before AT+CCAMRS execution, please make sure the current dimension is supported for recording video. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMRS Responses <path_name> OK If storage space is full: CAMERA NO MEMORY SIM5218_Serial _AT Command Manual_V1.21 115 1/13/2011
  • 117. SIM5218 Serial AT Command Manual ERROR If camera in a wrong state: CAMERA INVALID STATE ERROR If camera has a wrong dimension: CAMERA INVALID DIMENSION FORMAT ERROR If camera not starting: CAMERA NOT START ERROR Defined values <path_name> If saved in ME: “C:/Video/YYYYMMDD_HHMMSS.mp4” If saved in SD card: “D:/Video/YYYYMMDD_HHMMSS. mp4”. Examples AT+CCAMRS C:/Video/20080420_123003.mp4 OK 7.13 AT+CCAMRP Pause video record Description The execution command pause record during recording video by camera. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMRP Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START SIM5218_Serial _AT Command Manual_V1.21 116 1/13/2011
  • 118. SIM5218 Serial AT Command Manual ERROR Examples AT+CCAMRP OK 7.14 AT+CCAMRR Resume video record Description The command is used to resume video record, and it executes after record pause by AT+CCAMRP. SIM PIN NO References Vendor Syntax Execution Command AT+CCAMRR Responses OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Examples AT+CCAMRR OK 7.15 AT+CCAMRE Stop video record Description The command is used to stop video record, and it is corresponding to AT+CCAMRS. SIM PIN NO References Vendor Syntax Execution Command Responses SIM5218_Serial _AT Command Manual_V1.21 117 1/13/2011
  • 119. SIM5218 Serial AT Command Manual AT+CCAMRE OK If camera in a wrong state: CAMERA INVALID STATE ERROR If camera not starting: CAMERA NOT START ERROR Examples AT+CCAMRE OK 7.16 AT+CCAMMD Switch the AK8856 mode Description This command is used to switch the chip AK8856’s working mode between PAL and NTSC, if you have an analog sensor of PAL or NTSC connected to AK8856 then you can use this command to set ak8856 working under the appropriate mode. This command is savable which means the system will recover to the latest mode if the module restarted. Default mode is PAL. SIM PIN No References Vendor Syntax Test Command AT+CCAMMD=? Responses + CCAMMD: (0-1) OK Read Command AT+ CCAMMD? Responses + CCAMMD: (current mode) OK Write Command Responses OK AT+CCAMMD =<mode> Defined values < mode > 0 PAL 1 NTSC SIM5218_Serial _AT Command Manual_V1.21 118 1/13/2011
  • 120. SIM5218 Serial AT Command Manual Examples AT+CCAMMD=1 OK AT+CCAMMD=0 OK 7.17 AT+CCAMCHL Select the input channel of AK8856 Description This command is used to select the valid input channel of AK8856, since AK8856 supports 2 input channels, so one must select the right channel first. This command is savable and the default channel is 1. SIM PIN NO References Vendor Syntax Test Command AT+CCAMCHL=? Responses +CCAMCHL: (1-2) OK Read Command AT+CCAMCHL? Responses + CCAMCHL: <channel> OK Write Command AT+ CCAMCHL =< channel > Responses OK ERROR Defined values < channel >: 1 : channel 1 2 : channel 2 Examples AT+CCAMCHL=1 OK AT+ CCAMCHL? +CCAMCHL: 1 OK SIM5218_Serial _AT Command Manual_V1.21 119 1/13/2011
  • 121. SIM5218 Serial AT Command Manual 8 Audio Application Commands 8.1 AT+CQCPREC Start recording sound clips Description The command is used to start recording sound clip. The name of audio file will be generated automatically based on system time [refer AT+CCLK], and the storage location of audio file refers to AT+FSLOCA. SIM PIN NO References Vendor Syntax Write Command AT+CQCPREC= <source>,<format> Responses <path_name> +AUDIOSTATE: audio record OK Defined values <source> 0 – local path 1 – remote path <format> Format of the audio file: amr – AMR format qcp – QCP format <path_name> If saved in ME: “C:/Audio/YYYYMMDD_HHMMSS.amr” If saved in SD card: “D:/Audio/YYYYMMDD_HHMMSS.amr”. NOTE During GSM call is only applicable to QCP file. Examples AT+CQCPREC= 0,amr C:/Audio/20080520_120303.amr OK SIM5218_Serial _AT Command Manual_V1.21 120 1/13/2011
  • 122. SIM5218 Serial AT Command Manual AT+CQCPREC= 1,qcp C:/Audio/20080520_120506.qcp OK 8.2 AT+CQCPPAUSE Pause sound record Description The execution command pause record sound. SIM PIN NO References Vendor Syntax Execution Command AT+CQCPPAUSE Responses OK Examples AT+CQCPPAUSE OK 8.3 AT+CQCPRESUME Resume sound record Description The command is used to resume sound record. SIM PIN NO References Vendor Syntax Execution Command AT+CQCPRESUME Responses OK Examples AT+CQCPRESUME OK 8.4 AT+CQCPSTOP Stop sound record SIM5218_Serial _AT Command Manual_V1.21 121 1/13/2011
  • 123. SIM5218 Serial AT Command Manual Description The command is used to stop sound record. Execute the command during recording sound. SIM PIN NO References Vendor Syntax Execution Command AT+CQCPSTOP Responses +AUDIOSTATE: audio record stop OK Examples AT+CQCPSTOP OK 8.5 AT+CCMXPLAY Play audio file Description The command is used to play an audio file. SIM PIN NO References Vendor Syntax Test Command AT+CCMXPLAY=? Responses CCMXPLAY: (0-3),(0-255) OK Write Command AT+CCMXPLAY= <file_name>[,<play_path>] Responses +AUDIOSTATE: audio play OK Defined values <file_name> The name of audio file. <play_path> SIM5218_Serial _AT Command Manual_V1.21 122 1/13/2011
  • 124. SIM5218 Serial AT Command Manual 0 – local path (If <play_path> is omitted, default value is used.) 1 – local path during call 2 – remote path during call 3 – both path during call NOTE <play_path>=1, 2 or 3 must be used during call. GSM call is only applicable to QCP file, and UMTS call is only applicable to AMR file. Examples AT+FSCD=Audio +FSCD: C:/Audio/ OK AT+FSCD? +FSCD: C:/Audio/ OK AT+CCMXPLAY=”20080520_120303.amr”,0 OK 8.6 AT+CCMXPAUSE Pause playing audio file Description The command is used to pause playing audio file. SIM PIN NO References Vendor Syntax Execution Command AT+CCMXPAUSE Responses +AUDIOSTATE: audio play pause OK Examples AT+CCMXPAUSE OK 8.7 AT+CCMXRESUME Resume playing audio file Description The command is used to resume playing audio file. SIM5218_Serial _AT Command Manual_V1.21 123 1/13/2011
  • 125. SIM5218 Serial AT Command Manual SIM PIN NO References Vendor Syntax Execution Command AT+CCMXRESUME Responses +AUDIOSTATE: audio play OK Examples AT+CCMXRESUME OK 8.8 AT+CCMXSTOP Stop playing audio file Description The command is used to stop playing audio file. Execute this command during audio playing. SIM PIN NO References Vendor Syntax Execution Command AT+CCMXSTOP Responses +AUDIOSTATE: audio play stop OK Examples AT+CCMXSTOP OK 8.9 AT+CECM Enable/Disable Echo Canceller Description This command is used to select the echo cancellation mode. Each audio channel has it’s own default echo cancellation mode. For example: Handset: at+cecm=1(default open) Headset: at+cecm=2(default open) SIM5218_Serial _AT Command Manual_V1.21 124 1/13/2011
  • 126. SIM5218 Serial AT Command Manual Speaker: at+cecm=4(default open) PCM: at+cecm=5(default open) SIM PIN NO References Vendor Syntax Test Command AT+CECM=? Responses +CECM: (0-8) 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 for dynamic adjustion 7 : EC mode for dynamic adjustion 8 : EC mode for dynamic adjustion Examples AT+CECM=0 OK AT+ CECM =1 OK Note: User should use this AT command together with other related audio AT commands like “CSDVC ”, “CPCM” and so on. 8.10 AT+CNSM Enable/Disable Noise Suppression SIM5218_Serial _AT Command Manual_V1.21 125 1/13/2011
  • 127. SIM5218 Serial AT Command Manual Description This command is used to enable/disable noise suppression. The default value is enable. SIM PIN NO References Vendor Syntax Test Command AT+CNSM=? Responses +CNSM: (0-1) 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 Examples AT+CNSM=0 OK AT+ CNSM =1 OK Note: User should use this AT command together with other related audio AT commands like “CSDVC ”, “CPCM” and so on. 8.11 AT+CECSET Adjust the effect for the given echo cancellation 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 +ECM command. This is a savable command. SIM PIN NO References Vendor SIM5218_Serial _AT Command Manual_V1.21 126 1/13/2011
  • 128. SIM5218 Serial AT Command Manual Syntax Test Command AT+CECSET=? Responses +CECSET: (0-31), (0-65535) 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 +CECM for more details < index >: 0 – 31, EC has 32 parameters, this is the index of the selected parameter. < value >: 0 – 65535, EC parameter value. Examples AT+CSDVC=1 OK AT+ CECM =6 OK AT+ CECSET=0,65530 OK AT+ CECSET=1,1000 OK NOTE: 1. Currently only three EC mode’s parameters can be adjusted, they are 6, 7 and 8 you can use +ECM to select one of these modes. 2. You have to use +ECM to select the right EC mode first in order to change the parameters. SIM5218_Serial _AT Command Manual_V1.21 127 1/13/2011
  • 129. SIM5218 Serial AT Command Manual 9 Network Service Related Commands 9.1 AT+CREG Network registration Description Write command controls the presentation of an unsolicited result code +CREG: <stat> when <n>=1 and there is a change in the ME network registration status. 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. SIM PIN YES 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 – disable network registration unsolicited result code – enable network registration unsolicited result code +CREG: <stat> – there is a change in the ME network registration status or a change of the network cell: +CREG: <stat>[,<lac>,<ci>] <stat> 0 – not registered, ME is not currently searching a new operator to register to SIM5218_Serial _AT Command Manual_V1.21 128 1/13/2011
  • 130. SIM5218 Serial AT Command Manual 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> Two byte cell ID in hexadecimal format. Examples AT+CREG? +CREG: 0,1 OK 9.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 NO References 3GPP TS 27.007 Syntax Test Command Responses SIM5218_Serial _AT Command Manual_V1.21 129 1/13/2011
  • 131. SIM5218 Serial AT Command Manual AT+COPS=? +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 1 – available 2 – current 3 – forbidden <AcT> Access technology selected SIM5218_Serial _AT Command Manual_V1.21 130 1/13/2011
  • 132. SIM5218 Serial AT Command Manual 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),(0,1,2) OK 9.3 AT+CLCK Facility lock Description The 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> [...]] OK +CME ERROR: <err> Defined values SIM5218_Serial _AT Command Manual_V1.21 131 1/13/2011
  • 133. SIM5218 Serial AT Command Manual <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. <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 64 – dedicated packet access 128 – dedicated PAD access 255 – The value 255 covers all classes Examples AT+CLCK="SC",2 +CLCK: 0 OK SIM5218_Serial _AT Command Manual_V1.21 132 1/13/2011
  • 134. SIM5218 Serial AT Command Manual 9.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 (only for <mode>=0) "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 "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> SIM5218_Serial _AT Command Manual_V1.21 133 1/13/2011
  • 135. SIM5218 Serial AT Command Manual Integer type, max length of password. Examples AT+CPWD=? +CPWD: ("AB",4),("SC",8),("P2",8) OK 9.5 AT+CLIP Calling line identification presentation Description The 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 SIM5218_Serial _AT Command Manual_V1.21 134 1/13/2011
  • 136. SIM5218 Serial AT Command Manual 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> String type phone number of calling address 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 phone book. <CLI validity> 0 – CLI valid 1 – CLI has been withheld by the originator 2 – CLI is not available due to interworking problems or limitations of originating network Examples AT+CLIP=1 OK RING (with incoming call) +CLIP: "02152063113",128,,,"gongsi",0 9.6 AT+CLIR Calling line identification restriction Description SIM5218_Serial _AT Command Manual_V1.21 135 1/13/2011
  • 137. SIM5218 Serial AT Command Manual The 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 AT+CLIR =? Responses +CLIR: (list of supported <n>s) OK 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 – presentation indicator is used according to the subscription of the CLIR service – CLIR invocation – CLIR suppression 0 1 2 3 4 – CLIR not provisioned – CLIR provisioned in permanent mode – unknown (e.g. no network, etc.) – CLIR temporary mode presentation restricted – CLIR temporary mode presentation allowed <m> Examples SIM5218_Serial _AT Command Manual_V1.21 136 1/13/2011
  • 138. SIM5218 Serial AT Command Manual AT+CLIR=? +CLIR:(0-2) OK 9.7 AT+COLP Connected line identification presentation Description The 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. 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> SIM5218_Serial _AT Command Manual_V1.21 137 1/13/2011
  • 139. SIM5218 Serial AT Command Manual 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 AT+COLP? +COLP: 1,0 OK ATD10086; VOICE CALL: BEGIN +COLP: "10086",129,,, OK 9.8 AT+CCUG Closed user group Description The 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 SIM5218_Serial _AT Command Manual_V1.21 138 1/13/2011
  • 140. SIM5218 Serial AT Command Manual +CME ERROR: <err> 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 9.9 AT+CCFC Call forwarding number and conditions Description The 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 Responses When <mode>=2 and command successful: +CCFC: <status>,<class1>[,<number>,<type> SIM5218_Serial _AT Command Manual_V1.21 139 1/13/2011
  • 141. SIM5218 Serial AT Command Manual me> ]]]]]] [,<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>. <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> SIM5218_Serial _AT Command Manual_V1.21 140 1/13/2011
  • 142. SIM5218 Serial AT Command Manual 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 9.10 AT+CCWA Call waiting Description The 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>,[<alpha>][,<CLI validity>] 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 SIM5218_Serial _AT Command Manual_V1.21 141 1/13/2011
  • 143. SIM5218 Serial AT Command Manual +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> When <mode> parameter is not given, network is not interrogated: 0 – disable 1 – enable 2 – query status <class> 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) 7 – voice,data and fax(1+2+4) 8 – short message service 16 – data circuit sync 32 – data circuit async 64 – dedicated packet access 128 – dedicated PAD access <status> 0 – not active 1 – active <number> String type phone number of calling address in format specified by <type>. <type> Type of address octet in integer format; 128 – Restricted number type includes unknown type and format 145 – International number type 129 – Otherwise <alpha> Optional 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. <CLI validity> 0 – CLI valid SIM5218_Serial _AT Command Manual_V1.21 142 1/13/2011
  • 144. SIM5218 Serial AT Command Manual 1 2 – CLI has been withheld by the originator. – CLI is not available due to interworking problems or limitations of originating network. Examples AT+CCWA=? +CCWA:(0-1) OK AT+CCWA? +CCWA: 0 OK 9.11 AT+CHLD Call related supplementary services Description The command allows the control of 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. 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 SIM5218_Serial _AT Command Manual_V1.21 143 1/13/2011
  • 145. SIM5218 Serial AT Command Manual <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 9.12 AT+CUSD Unstructured supplementary service data Description The 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 AT+CUSD? Responses +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): SIM5218_Serial _AT Command Manual_V1.21 144 1/13/2011
  • 146. SIM5218 Serial AT Command Manual 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 9.13 AT+CAOC Advice of charge Description The 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. The 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 SIM5218_Serial _AT Command Manual_V1.21 145 1/13/2011
  • 147. SIM5218 Serial AT Command Manual 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 (if <mode>=0) +CAOC: <ccm> OK (if <mode>=1 or 2) 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. Examples AT+CAOC=0 +CAOC: "000000" OK 9.14 AT+CSSN Supplementary service notifications SIM5218_Serial _AT Command Manual_V1.21 146 1/13/2011
  • 148. SIM5218 Serial AT Command Manual Description The 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: 0 – disable 1 – 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 SIM5218_Serial _AT Command Manual_V1.21 147 1/13/2011
  • 149. SIM5218 Serial AT Command Manual 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 9.15 AT+CLCC List current calls Description 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 OK Read Command Responses SIM5218_Serial _AT Command Manual_V1.21 148 1/13/2011
  • 150. SIM5218 Serial AT Command Manual AT+CLCC +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 <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 cal: 0 – active 1 – held 2 – dialing (MO call) 3 – alerting (MO call) 4 – incoming (MT call) 5 – waiting (MT call) <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> SIM5218_Serial _AT Command Manual_V1.21 149 1/13/2011
  • 151. SIM5218 Serial AT Command Manual 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 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 9.16 AT+CPOL Preferred operator list Description The command is used to edit the SIM preferred list of networks. 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>[<CR><LF> +CPOL: <index2>,<format>,<oper2> [...]] OK Write Command AT+CPOL=<index> [,<form-at>[,<oper>]] Responses OK ERROR +CME ERROR: <err> Defined values <index> SIM5218_Serial _AT Command Manual_V1.21 150 1/13/2011
  • 152. SIM5218 Serial AT Command Manual Integer type, the order number of operator in the SIM preferred operator list. <format> 0 – long format alphanumeric <oper> 1 – short format alphanumeric <oper> 2 – numeric <oper> <operX> String type. Examples AT+CPOL? +CPOL: 1,2,"46001" OK AT+CPOL=? +CPOL: (1-10),(0-2) OK 9.17 AT+COPN Read operator names Description Execute command returns 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> SIM5218_Serial _AT Command Manual_V1.21 151 1/13/2011
  • 153. SIM5218 Serial AT Command Manual String type, operator in long alphanumeric format (see AT+COPS). Examples AT+COPN +COPN: "46000","China Mobile Com" +COPN: "46001"," China Unicom" …… OK 9.18 AT+CNMP Preferred mode selection Description The 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 SIM5218_Serial _AT Command Manual_V1.21 152 1/13/2011
  • 154. SIM5218 Serial AT Command Manual OK 9.19 AT+CNBP Preferred band selection Description The 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 SIM5218_Serial _AT Command Manual_V1.21 153 1/13/2011
  • 155. SIM5218 Serial AT Command Manual 49 50 WCDMA_VIII_900 WCDMA_IX_1700 Examples AT+CNBP=0x000700000FFF0380 OK AT+CNBP? +CNBP: 0xFFFFFFFF3FFFFFFF OK 9.20 AT+CNAOP Acquisitions order preference Description Write command resets 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? SIM5218_Serial _AT Command Manual_V1.21 154 1/13/2011
  • 156. SIM5218 Serial AT Command Manual +CNAOP: 2 OK 9.21 AT+CNSDP Preferred service domain selection Description Write command resets 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 9.22 AT+CPSI Inquiring UE system information Description SIM5218_Serial _AT Command Manual_V1.21 155 1/13/2011
  • 157. SIM5218 Serial AT Command Manual The command returns the UE system information. SIM PIN NO References 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>,<Location ID>,<Cell ID>,<Absolute RF Ch Num>, <RX Level>, Area <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>,<RX Level> OK ERROR Write Command AT+CPSI=<time> Responses OK ERROR Defined values <time> The range is 0-255, unit is second, after set <time> will report the system information every the seconds. <System Mode> System mode, values: “NO SERVICE”, “GSM” or “WCDMA”. <Operation Mode> UE operation mode, values: “Online”, “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> SIM5218_Serial _AT Command Manual_V1.21 156 1/13/2011
  • 158. SIM5218 Serial AT Command Manual Service-cell ID. <Absolute RF Ch Num> AFRCN for service-cell. <Track LO Adjust> Track LO Adjust <C1> Coefficient for base station selection <C2> Coefficient for Cell re-selection <Frequency Band> Frequency Band of active set <PSC> Primary synchronization code of active set. <Freq> Downlink frequency of active set. <SSC> Secondary synchronization code of active set <EC/IO> Ec/Io value <RSCP> Received Signal Code Power <Qual> Quality value for base station selection <RX Level> RX level value for base station selection <Location Area ID> Mobile Country Code- Mobile Network Code (PLMN code) and Location Area Code (hexadecimal digits) 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 OK AT+CPSI=? +CPSI: (0-255) OK 9.23 AT+CNSMOD Show network system mode SIM5218_Serial _AT Command Manual_V1.21 157 1/13/2011
  • 159. SIM5218 Serial AT Command Manual Description The command returns the current network system mode. 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 1 <state> 0 1 2 3 4 5 6 7 – disable auto report the network system mode information – auto report the network system mode information, command: +CNSMOD:<stat> – no service – GSM – GPRS – EGPRS (EDGE) – WCDMA – HSDPA only – HSUPA only – HSPA (HSDPA and HSUPA) Examples AT+CNSMOD? +CNSMOD: 0,2 OK SIM5218_Serial _AT Command Manual_V1.21 158 1/13/2011
  • 160. SIM5218 Serial AT Command Manual 9.24 AT+CTZU Automatic time and time zone update Description The command is used to enable and 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 doesn’t 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 OK SIM5218_Serial _AT Command Manual_V1.21 159 1/13/2011
  • 161. SIM5218 Serial AT Command Manual 9.25 AT+CTZR Time and time zone reporting Description The command is used to enable and 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 doesn’t equal to local time zone, and if the informations from network don’t include date and time, time zone will be only 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) +CTZV: 32,08/12/09,17:00:00,1 (Report time, time zone and daylight saving time) For more detailed informations about time and time zone, please refer 3GPP TS 24.008. SIM5218_Serial _AT Command Manual_V1.21 160 1/13/2011
  • 162. SIM5218 Serial AT Command Manual <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 9.26 AT+CCINFO Show cell system information Description The command is used to inquire serving cell and neighbour cell system information in GSM. SIM PIN NO References Vendor Syntax Test Command AT+CCINFO=? Responses OK Execution Command AT+CCINFO Responses 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> +CCINFO:[<NCELLn>],ARFCN:<arfcn>,MCC:<mcc>,MNC:<m nc>,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,C1:<c1>,C2 :<c2> […] When ME in dedicated mode: +CCINFO:[<SCELL>],ARFCN:<arfcn>,MCC:<mcc>,MNC:<mnc >,LAC:<lac>,ID:<id>,BSIC:<bsic>,RXLev:<rxlev>,C1:<c1>,C2:< SIM5218_Serial _AT Command Manual_V1.21 161 1/13/2011
  • 163. SIM5218 Serial AT Command Manual c2>TA:<TA> +CCINFO:[<NCELLn>],ARFCN:<arfcn>,BSIC:<bsic>,RXLev:<r xlev> […] Defined values <SCELL> indicate serving cell <NCELLn> available neighbour cell index <arfcn> assigned radio channel <mcc> mobile country code <mnc> mobile network code <lac> localization area code <id> cell identifier <bsic> base station identification code <rxlev> received signal strength in dBm <TA> timing advance <C1> Coefficient for base station selection <C2> Coefficient for Cell re-selection 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 +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 SIM5218_Serial _AT Command Manual_V1.21 162 1/13/2011
  • 164. SIM5218 Serial AT Command Manual 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,TA:0 +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 9.27 AT+CSCHN Show cell channel information Description The 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> SIM5218_Serial _AT Command Manual_V1.21 163 1/13/2011
  • 165. SIM5218 Serial AT Command Manual HSN <maio> 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 9.28 AT+CSRP Show serving cell radio parameter Description The 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 SIM5218_Serial _AT Command Manual_V1.21 164 1/13/2011
  • 166. SIM5218 Serial AT Command Manual <rxlevsub> received sub signal strength in dBm <rxqualfull> full quality of reception <rxqualsub> sub quality of reception <pwrc> PWRC <dtx> DTX <rlt> radio link timeout Examples AT+CSRP +CSRP:ARFCN:11,RXLevFull:-88dbm,RXLevSub:-89dbm,RXQualFull:7,RXQualSub:7,PWRC:1, DTX:0,RLT:32 OK 9.29 AT+CRUS Show cell set system information Description The execution command returns 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 SIM5218_Serial _AT Command Manual_V1.21 165 1/13/2011
  • 167. SIM5218 Serial AT Command Manual 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, SIM5218_Serial _AT Command Manual_V1.21 166 1/13/2011
  • 168. SIM5218 Serial AT Command Manual 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 9.30 AT+CPLMNWLIST Manages PLMNs allowed by customer Description The command is used to manage the PLMN list allowed by customer. After setting the plmnwlist, the module needs to be restart. SIM PIN NO References Vendor Syntax Read Command AT+CPLMNWLIST? Responses +CPLMNWLIST: <plmnwlist> OK Write Command AT+CPLMNWLIST=<plmn wlist> Responses OK ERROR Defined values <plmnwlist> The list of PLMN separated by semicolon. The maximum count of the items in the list is 10. Empty list represents no filter. If the CPASSMGR has set password for this command, the password must be verified before operating this command. Examples AT+CPLMNWLIST= “46000;46001” OK AT+CPLMNWLIST=”” OK AT+CPLMNWLIST? +CPLMNWLIST: “46000;46001” OK 9.31 AT+CPASSMGR Manage password Description SIM5218_Serial _AT Command Manual_V1.21 167 1/13/2011
  • 169. SIM5218 Serial AT Command Manual The 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 <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 9.32 AT+CNSVSQ Network band scan quickly Description The 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 given in the format of string. SIM PIN NO References Vendor SIM5218_Serial _AT Command Manual_V1.21 168 1/13/2011
  • 170. SIM5218 Serial AT Command Manual 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 +CNSVSQ: NOT IN GSM (if in Wideband CDMA (WCDMA) mode) 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. Examples AT+CNSVSQ SIM5218_Serial _AT Command Manual_V1.21 169 1/13/2011
  • 171. SIM5218 Serial AT Command Manual Network survey started… For BCCH-Carrier: arfcn: 16,bsic: 45,dBm: -75 …… For non BCCH-Carrier: arfcn: 89,dBm: -82 arfcn: 1011,dBm: -86 …… Network survey end OK 9.33 AT+CNSVS Network full band scan in string format Description The 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 given in the format of string. SIM PIN NO References Vendor Syntax Read Command AT+CNSVS? Write Command AT+CNSVS=<s>,<e> AT+CNSVS=<arfcn_index> 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>] […] Network survey end OK If BCCH-Carrier: SIM5218_Serial _AT Command Manual_V1.21 170 1/13/2011
  • 172. SIM5218 Serial AT Command Manual 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 +CNSVS: NOT IN GSM (if in Wideband CDMA (WCDMA) mode) OK Defined values <count> the count of arfcn. <s> starting channel. <e> SIM5218_Serial _AT Command Manual_V1.21 171 1/13/2011
  • 173. SIM5218 Serial AT Command Manual 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. <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 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+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 SIM5218_Serial _AT Command Manual_V1.21 172 1/13/2011
  • 174. SIM5218 Serial AT Command Manual 12 14 19 20 21 22 23 24 25 27 28 36 516 525 528 552 556 564 568 572 584 600 …… For non BCCH-Carrier: arfcn: 694,dBm: -94 …… Network survey end OK 9.34 AT+CNSVN Network full band scan in numeric format Description The 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 given in the format of string. SIM PIN NO References Vendor Syntax Read Command AT+CNSVN? Write Command AT+CNSVN=<s>,<e> AT+CNSVN=<arfcn_index> Responses +CNSVN: <count> OK 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 available]>] […] For non BCCH-Carrier: [<arfcn_value>,<dBm_value>] […] Network survey end OK 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 SIM5218_Serial _AT Command Manual_V1.21 173 1/13/2011
  • 175. SIM5218 Serial AT Command Manual available]> OKIf non BCCH-Carrier: <arfcn_value>,<dBm_value> OK +CNSVN: NOT IN GSM OK +CNSVN: arfcn index invalid OK Execution Command AT+CNSVN ERROR 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 available]>] […] For non BCCH-Carrier: [<arfcn_value>,<dBm_value>] […] Network survey end OK +CNSVN: NOT IN GSM (if in Wideband CDMA (WCDMA) mode) 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. SIM5218_Serial _AT Command Manual_V1.21 174 1/13/2011
  • 176. SIM5218 Serial AT Command Manual <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 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… For BCCH-Carrier: 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 …… For non BCCH-Carrier: 694, -94 …… Network survey end OK 9.35 AT+CNSVUS Network band scan by channels in string SIM5218_Serial _AT Command Manual_V1.21 175 1/13/2011
  • 177. SIM5218 Serial AT Command Manual Description The 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 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> SIM5218_Serial _AT Command Manual_V1.21 176 1/13/2011
  • 178. SIM5218 Serial AT Command Manual 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 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 9.36 AT+CNSVUN Network band scan by channels in numeric Description The command is used to performing a quick survey of user defined channels. It scans the given channels. The result is given in numeric format. SIM PIN NO References Vendor SIM5218_Serial _AT Command Manual_V1.21 177 1/13/2011
  • 179. SIM5218 Serial AT Command Manual Syntax Write Command AT+CNSVUN=<ch1>,[<ch2 >,[…[<ch10>]]] 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 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: - CELL_SUITABLE indicates the C0 is a suitable cell. - CELL_LOW_PRIORITY indicates the cell is low priority based on the system information received. SIM5218_Serial _AT Command Manual_V1.21 178 1/13/2011
  • 180. SIM5218 Serial AT Command Manual - 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 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+CNSVUN=16,20,86,96,109 Network survey started... For BCCH-Carrier: 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 For non BCCH-Carrier: 86, -97 Network survey end OK SIM5218_Serial _AT Command Manual_V1.21 179 1/13/2011
  • 181. SIM5218 Serial AT Command Manual 10 Mobile Equipment Control and Status Commands 10.1 +CME ERROR Mobile Equipment error result code Description The operation of +CME ERROR:<err> result code is similar to the regular ERROR result code: if +CME ERROR: <err> is the result code for any of the commands in a command line, none of the following commands in the same command line is executed (neither ERROR nor OK result code shall be returned as a result of a completed command line execution). The format of <err> can be either numeric or verbose. This is set with command AT+CMEE. SIM PIN NO References 3GPP TS 27.007 Syntax +CME ERROR: <err> 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 SIM5218_Serial _AT Command Manual_V1.21 180 1/13/2011
  • 182. SIM5218 Serial AT Command Manual 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 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 SIM5218_Serial _AT Command Manual_V1.21 181 1/13/2011
  • 183. SIM5218 Serial AT Command Manual 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 It’s busy editing mms now 186 It’s not allowed to edit now 187 No content in the buffer 188 Failed to receive mms 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 It’s 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 “CME ERROR” codes of HTTP: 220 Unknown error fot HTTP 221 HTTP task is busy 222 Failed to resolve server address 223 HTTP timeout 224 Failed to transfer data 225 Memory error SIM5218_Serial _AT Command Manual_V1.21 182 1/13/2011
  • 184. SIM5218 Serial AT Command Manual 226 227 Invalid parameter Network error Examples AT+CPIN="1234","1234" +CME ERROR: incorrect password 10.2 AT+CMEE Report mobile equipment error Description The command controls the format of the error result codes that indicates errors related to Sim5218 Functionality.Format can be selected between plain “ERROR” output,error numbers or verbose “+CME ERROR: <err>” and “+CMS ERROR: <err>” messages. SIM PIN References NO 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 – Disable result code,i.e. only “ERROR” will be displayed. Enable error result code with numeric values. Enable error result code with string values. Examples AT+CMEE? SIM5218_Serial _AT Command Manual_V1.21 183 1/13/2011
  • 185. SIM5218 Serial AT Command Manual +CMEE: 2 OK AT+CPIN="1234","1234" +CME ERROR: incorrect password AT+CMEE=0 OK AT+CPIN="1234","1234" ERROR AT+CMEE=1 OK AT+CPIN="1234","1234" +CME ERROR: 16 10.3 AT+CPAS Phone activity status Description Execution command returns the activity status <pas> of the ME. It can be used to interrogate the ME before requesting action from the phone. SIM PIN References NO 3GPP TS 27.007 Syntax Test Command AT+CPAS=? Responses +CPAS: (list of supported <pas>s) OK Execution Command Responses +CPAS: <pas> OK AT+CPAS Defined values <pas> 0 – 3 – 4 – ready (ME allows commands from TA/TE) ringing (ME is ready for commands from TA/TE, but the ringer is active) call in progress (ME is ready for commands from TA/TE, but a call is in progress) Examples RING (with incoming call) AT+CPAS +CPAS: 3 SIM5218_Serial _AT Command Manual_V1.21 184 1/13/2011
  • 186. SIM5218 Serial AT Command Manual OK AT+CPAS=? +CPAS: (0,3,4) OK 10.4 AT+CFUN Set phone functionality Description The command selects 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. 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 4 5 – minimum functionality – full functionality, online mode – disable phone both transmit and receive RF circuits – Factory Test Mode SIM5218_Serial _AT Command Manual_V1.21 185 1/13/2011
  • 187. SIM5218 Serial AT Command Manual 6 – Reset 7 – Offline Mode <rst> 0 – do not reset the ME before setting it to <fun> power level 1 – reset the ME before setting it to <fun> power level. This value only takes effect when <fun> equals 1. Examples AT+CFUN? +CFUN: 1 OK AT+CFUN=0 OK 10.5 AT+CPIN Enter PIN Description The command sends to 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 b 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>] Responses OK ERROR +CME ERROR: <err> SIM5218_Serial _AT Command Manual_V1.21 186 1/13/2011
  • 188. SIM5218 Serial AT Command Manual 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 10.6 AT+CSQ Signal quality Description Execution command returns 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 SIM5218_Serial _AT Command Manual_V1.21 187 1/13/2011
  • 189. SIM5218 Serial AT Command Manual <rssi> 0 1 2...30 31 99 <ber> (in percent) 0 – 1 – 2 – 3 – 4 – 5 – 6 – 7 – 99 – – – – – – -113 dBm or less -111 dBm -109... -53 dBm -51 dBm or greater not known or not detectable <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 10.7 AT+AUTOCSQ Set CSQ report Description The command causes the module to disable and enable auto report CSQ information, if we enable auto report, the module reports CSQ information every five seconds or only after <rssi> changing, the format of 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 Responses SIM5218_Serial _AT Command Manual_V1.21 188 1/13/2011
  • 190. SIM5218 Serial AT Command Manual AT+AUTOCSQ=<auto>[,< mode>] OK ERROR Defined values <aoto> 0 – disable auto report 1 – enable auto report <mode> 0 – CSQ auto report every five seconds 1 – CSQ auto report only after <rssi> changing 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 AT+AUTOCSQ=1,1 OK +CSQ: 23,0 (when <rssi> changing) 10.8 AT+CACM Accumulated call meter Description The command resets 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 SIM5218_Serial _AT Command Manual_V1.21 189 1/13/2011
  • 191. SIM5218 Serial AT Command Manual +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 10.9 AT+CAMM Accumulated call meter maximum Description The command sets 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 Responses SIM5218_Serial _AT Command Manual_V1.21 190 1/13/2011
  • 192. SIM5218 Serial AT Command Manual AT+CAMM= <acmmax>[,<passwd>] OK ERROR +CME ERROR: <err> Responses OK Execution Command AT+CAMM +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 10.10 AT+CPUC Price per unit and currency table Description The command sets 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 SIM5218_Serial _AT Command Manual_V1.21 191 1/13/2011
  • 193. SIM5218 Serial AT Command Manual +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 10.11 AT+CPOF Control phone to power down Description The command controls the phone to power off. SIM PIN YES References Vendor Syntax Execution Command AT+CPOF Responses OK Examples AT+CPOF OK 10.12 AT+CCLK Real time clock Description The command is used to manage Real Time Clock of the module. SIM PIN NO References 3GPP TS 27.007 SIM5218_Serial _AT Command Manual_V1.21 192 1/13/2011
  • 194. SIM5218 Serial AT Command Manual 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:ss±zz”, 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 10.13 AT+CRFEN RF check at initialization Description The command will enable or disable RF check at the initialization, you can disable the RF control status check at the initialization if do not want to check the RF pin status. This status will be saved the check function on reboot. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 193 1/13/2011
  • 195. SIM5218 Serial AT Command Manual NO 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 check at initialization 1 – enable RF check at initialization Examples AT+CRFEN=1 OK AT+CRFEN? +CRFEN: 1 OK AT+CRFEN=? +CRFEN : (0-1) OK 10.14 AT+CRESET Reset ME Description The command is used to reset ME. SIM PIN NO References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 194 1/13/2011
  • 196. SIM5218 Serial AT Command Manual Test Command AT+CRESET=? Responses OK Execute Command AT+CRESET Responses OK Examples AT+CRESET=? OK AT+CRESET OK 10.15 AT+SIMEI Set module IMEI Description The command is used to set module 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? SIM5218_Serial _AT Command Manual_V1.21 195 1/13/2011
  • 197. SIM5218 Serial AT Command Manual +SIMEI: 357396012183170 OK AT+SIMEI=? OK 10.16 AT+CSIMLOCK Request and change password Description The command allows to request a password and define a new password for a password protected <facility> lock function.Each password is a string of digits, the length is 8.The read command returns status of <facility> lock. SIM PIN NO References Vendor Syntax Test Command AT+CSIMLOCK=? Responses +CSIMLOCK: (list of supported <facility>s) OK Read Command AT+CSIMLOCK? Responses +CSIMLOCK: <PN_status>,<PU_status>,<PP_status>,<PC_status >,<PF_status> OK Write Command AT+CSIMLOCK= <facility> [,<old password>,<new pas sword>] Responses +CSIMLOCK: <old password> OK +CME ERROR: <err> Defined values <facility> “PN” Network Personalisation “PU” Network subset Personalisation “PP” Service Provider Personalisation “PC” Corporate Personalisation “PF” Lock Phone to the very First SIM card <old password> Password specified for the facility. The length of password is 8. <new password> New password for the facility.The length of password is 8. <PN_status> SIM5218_Serial _AT Command Manual_V1.21 196 1/13/2011
  • 198. SIM5218 Serial AT Command Manual Status of 0 “PN” lock inactive 1 2 5 <PU_status> Status of 0 autolock active disable 1 2 5 <PP_status> State of 0 “PU” lock inactive autolock active disable “PP” lock inactive 1 autolock 2 active 5 disable <PC_status> State of “PC” lock 0 inactive 1 2 5 <PF_status> State of 0 1 2 5 autolock active disable “PF” lock inactive autolock active disable Examples AT+CSIMLOCK=? +CSIMLOCK: ("PN","PU","PP","PC","PF") OK AT+CSIMLOCK? +CSIMLOCK: 0,0,0,0,0 OK AT+CSIMLOCK=”PN” +CSIMLOCK: 87654321 OK AT+CSIMLOCK=”PN”,”87654321”,”12345678” OK SIM5218_Serial _AT Command Manual_V1.21 197 1/13/2011
  • 199. SIM5218 Serial AT Command Manual 10.17 AT+DSWITCH Change diagnostics port mode Description The command is used to change diagnostics port mode.The default mode of diagnostics port is debug mode.you can switch it from debug mode to data mode or from data mode to debug mode.In data mode,you can send and receive PCM data. 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 10.18 AT+CNVW Write NV item Description SIM5218_Serial _AT Command Manual_V1.21 198 1/13/2011
  • 200. SIM5218 Serial AT Command Manual The AT+CNVW write command can be used to write <item> to NV(nonvolatile memory).If <item> is given as the only parameter,the write command may get <item> information. The test command returns the range of <item> and the maximum length of the <item_data> field. NOTE Before writing <item> to NV,you should get <item> information by AT+CNVW=<item> and confirm these parameters. SIM PIN NO References Vendor Syntax Test Command AT+CNVW=? Responses +CNVW: (0-<max_item>),<max_data_len> OK Write Command AT+CNVW=<item>[,<index >,<item_data>] Responses If <item> is given as the only parameter: +CNVW: <item>,<presence>,<array_size>,<item_size> OK If successful,return: +CNVW: 1 OK If fail,return: +CNVW: 0,<err_code> OK Defined values <max_item> Maximum number of item supported by module. <max_data_len> Maximum length of <item_data>. <item> Item number in NV(nonvolatile memory).These items store some configuration of RF,Audio,etc. <index> Index of array.Some items is stored by array.When operating these items,you must specify the index.To other items(not stored by array),the index is 0. <item_data> Data(string type) that written to <item>.<item_data> is in hexadecimal format.The length of <item_data> is not more than <item_size>*2. <presence> Presence of item. 0 not present 1 present SIM5218_Serial _AT Command Manual_V1.21 199 1/13/2011
  • 201. SIM5218 Serial AT Command Manual <array_size> Size of array.If <item> is stored by array,the value of <index> must be less than <array_size>. <item_size> Size of item.The value is given in octets.Because the format of <item_data> is hexadecimal,the length of <item_data> should be equal to <item_size>*2. <err_code> The error codes.These error codes are followed: -1 Error parameters 0 Not present 1 Busy(Request is queued) 2 Bad(unrecognizable) command 3 The NVM is full 4 Command failed,reason other than NVM was full 5 Not active 6 Bad parameter in command block 7 Parameter is write-protected and thus read only. 8 Item not valid for target 9 Free memory exhausted 10 Address is not a valid allocation. Examples AT+CNVW=? +CNVW: (0-7157),256 OK AT+CNVW=110 +CNVW: 110,1,0,1 OK AT+CNVW=110,0,"00" +CNVW: 1 OK 10.19 AT+CNVR Read NV item Description The AT+CNVR write command can be used to get <item> data from NV(nonvolatile memory).If <item> is given as the only parameter,the write command may get <item> information. The test command returns the range of <item> and the maximum length of the <item_data> field. NOTE Before reading <item> from NV,you should get <item> information by AT+CNVR=<item> and confirm these parameters. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 200 1/13/2011
  • 202. SIM5218 Serial AT Command Manual NO Vendor Syntax Test Command AT+CNVR=? Responses +CNVR: (0-<max_item>),<max_data_len> OK Write Command AT+CNVR=<item>[,<index >] Responses If <item> is given as the only parameter: +CNVR: <item>,<presence>,<array_size>,<item_size> OK If successful,return: +CNVR: 1,<item_data> OK If fail,return: +CNVR: 0,<err_code> OK Defined values <max_item> Maximum number of item supported by module. <max_data_len> Maximum length of <item_data>. <item> Item number in NV(nonvolatile memory).These items store some configuration of RF,Audio,etc. <index> Index of array.Some items is stored by array.When operating these items,you must specify the index.To other items(not stored by array),the index is 0. <item_data> Data(string type) that written to <item>.<item_data> is in hexadecimal format.The length of <item_data> is not more than <item_size>*2. <presence> Presence of item. 0 not present 1 present <array_size> Size of array.If <item> is stored by array,the value of <index> must be less than <array_size>. <item_size> Size of item.The value is given in octets.Because the format of <item_data> is hexadecimal,the length of <item_data> should be equal to <item_size>*2. <err_code> SIM5218_Serial _AT Command Manual_V1.21 201 1/13/2011
  • 203. SIM5218 Serial AT Command Manual The error codes.These error codes are followed: -1 Error parameters 0 Not present 1 Busy(Request is queued) 2 Bad(unrecognizable) command 3 The NVM is full 4 Command failed,reason other than NVM was full 5 Not active 6 Bad parameter in command block 7 Parameter is write-protected and thus read only. 8 Item not valid for target 9 Free memory exhausted 10 Address is not a valid allocation. Examples AT+CNVR=? +CNVR: (0-7157),256 OK AT+CNVR=110 +CNVR: 110,1,0,1 OK AT+CNVR=110,0 +CNVR: 1,"00" OK 10.20 AT+CDELTA Write delta package to FOTA partition Description The AT+CDELTA command can be used to write delta package to FOTA partition.After writing successfully,it will set the flag of updating.When module resets and checks the flag,then it starts to update firmware.The delta package is saved as a file in file system. SIM PIN NO References Vendor Syntax Test Command AT+CDELTA=? Responses OK Write Command Responses SIM5218_Serial _AT Command Manual_V1.21 202 1/13/2011
  • 204. SIM5218 Serial AT Command Manual AT+CDELTA=<delta_packa ge> 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 exist 1 Error occurs when reading delta package 2 Error occurs when writing delta package to FOTA partition 3 Set the flag of updating unsuccessfully Examples AT+CDELTA=? OK AT+CDELTA=”delta_1_2.mld” +CDELTA: 1 OK NOTE: delta package can be resided in the module or T Flash card, This command will lookup the package under current directory. BTW you can use +FSCD to change current directory SIM5218_Serial _AT Command Manual_V1.21 203 1/13/2011
  • 205. SIM5218 Serial AT Command Manual 11 SIMCard Related Commands 11.1 AT+CICCID Read ICCID in SIM card Description The command is used to Read the ICCID in SIM card SIM PIN YES References Vendor Syntax Test Command AT+CICCID=? Responses OK Execution Command AT+CICCID Responses +ICCID:<ICCID> OK ERROR +CME ERROR: <err> 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 11.2 AT+CSIM Generic SIM access Description SIM5218_Serial _AT Command Manual_V1.21 204 1/13/2011
  • 206. SIM5218 Serial AT Command Manual The command allows 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 SIM–ME interface please refer 3GPP TS 11.11. NOTE The 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 the characters that are sent to TE in <command> or <response> <command> Command passed on by the MT to the SIM. <response> Response to the command passed on by the SIM to the MT. Examples AT+CSIM=? OK 11.3 AT+CRSM Restricted SIM access Description SIM5218_Serial _AT Command Manual_V1.21 205 1/13/2011
  • 207. SIM5218 Serial AT Command Manual 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 219 – SET DATA <fileID> Identifier for an elementary data file on SIM, if used by <command>. <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> SIM5218_Serial _AT Command Manual_V1.21 206 1/13/2011
  • 208. SIM5218 Serial AT Command Manual 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 11.4 AT+CSIMSEL Switch between two SIM card Description The command is used to select external or embedded SIM card. NOTE 1. Embedded SIM card supported by customization. Customer should provide information written into USIM chipset. 2. The command is disabled if the embedded SIM card isn’t exist, i.e. standard hardware version. SIM PIN NO References Vendor Syntax Test Command AT+CSIMSEL=? Responses OK Read Command AT+CSIMSEL? Responses +CSIMSEL: <simcard> OK Write Command AT+CSIMSEL=<simcard> Responses OK Defined values <simcard> 1 – external SIM card 2 – embedded SIM card Examples AT+CSIMSEL=1 OK SIM5218_Serial _AT Command Manual_V1.21 207 1/13/2011
  • 209. SIM5218 Serial AT Command Manual 11.5 AT+SPIC Times remain to input SIM PIN/PUK Description The 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 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 11.6 AT+CSPN Get service provider name from SIM Description This command is used to get service provider name from SIM card. SIM PIN YES References Vendor SIM5218_Serial _AT Command Manual_V1.21 208 1/13/2011
  • 210. SIM5218 Serial AT Command Manual 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 <display mode> 0 – don’t display PLMN.Already registered on PLMN. 1 – display PLMN Examples AT+CSPN=? OK AT+CSPN? +CSPN: “CMCC”,0 OK SIM5218_Serial _AT Command Manual_V1.21 209 1/13/2011
  • 211. SIM5218 Serial AT Command Manual 12 Hardware Related Commands 12.1 AT+CTXGAIN Set TX gain Description The 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> Responses +CTXGAIN: (list of supported <tx_gain>s) OK Responses +CTXGAIN: <tx_gain> OK Responses OK Defined values <tx_gain> TX gain level which is from 0 to 65535. Examples AT+CTXGAIN=1234 OK 12.2 AT+CRXGAIN Set RX gain Description The 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 SIM5218_Serial _AT Command Manual_V1.21 210 1/13/2011
  • 212. SIM5218 Serial AT Command Manual 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 12.3 AT+CTXVOL Set TX volume Description The 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> SIM5218_Serial _AT Command Manual_V1.21 211 1/13/2011
  • 213. SIM5218 Serial AT Command Manual TX volume level which is from 0 to 65535. Examples AT+CTXVOL=1234 OK 12.4 AT+CRXVOL Set RX volume Description The 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 AT+CRXVOL? Responses +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 12.5 AT+CTXFTR Set TX filter Description The command is used to set audio path parameter – TX filter, and refer to related hardware design document to get more information. SIM5218_Serial _AT Command Manual_V1.21 212 1/13/2011
  • 214. SIM5218 Serial AT Command Manual 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_X> TX filter level which is from 0 to 65535. (N is from 0 to 7) Examples AT+CTXFTR=1111,2222,3333,4444,5555,6666,7777 OK 12.6 AT+CRXFTR Set RX filter Description The 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 SIM5218_Serial _AT Command Manual_V1.21 213 1/13/2011
  • 215. SIM5218 Serial AT Command Manual Write Command AT+CRXFTR= <rx_ftr_1>,<…>,<rx_ftr_7> Responses OK Defined values <rx_ftr_X> RX filter level which is from 0 to 65535. (N is from 0 to 7) Examples AT+CRXFTR=1111,2222,3333,4444,5555,6666,7777 OK 12.7 AT+CVALARM Low voltage Alarm Description The command is used to open or close the low voltage alarm function. SIM PIN NO References Vendor Syntax Test Command AT+CVALARM=? Responses +CVALARM: (list of supported <enable>s), (list of supported <voltage>s) OK 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>, every 20 seconds will report a string: “warning! Voltage is low:<voltage value>”. <voltage> Between 2800mV and 4300mV. Default value is 3450. SIM5218_Serial _AT Command Manual_V1.21 214 1/13/2011
  • 216. SIM5218 Serial AT Command Manual NOTE the 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.8 AT+CRIIC Read values from register of IIC device Description 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> 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. Examples SIM5218_Serial _AT Command Manual_V1.21 215 1/13/2011
  • 217. SIM5218 Serial AT Command Manual AT+CRIIC=0x0F, 0x0F, 2 +CRIIC: 0xFFFF OK 12.9 AT+CWIIC Write values to register of IIC device Description 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> 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. Examples AT+CWIIC=0x0F, 0x0F, 0x1234, 2 +CWIIC: 0x1234 OK 12.10 AT+CVAUXS Set state of the pin named VREG_AUX1 Description The command is used to set state of the pin which is named VREG_AUX1. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 216 1/13/2011
  • 218. SIM5218 Serial AT Command Manual NO 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 – the pin is closed. the pin is opend(namely, open the pin) Examples AT+CVAUXS=1 OK AT+CVAUXS? +CVAUXS: 1 OK 12.11 AT+ CVAUXV Set voltage value of the pin named VREG_AUX1 Description The command is used to set the voltage value of the pin which is named VREG_AUX1. SIM PIN NO References Vendor Syntax Test Command AT+CVAUXV=? Responses +CVAUXV: (list of supported <voltage>s) OK Read Command Responses SIM5218_Serial _AT Command Manual_V1.21 217 1/13/2011
  • 219. SIM5218 Serial AT Command Manual AT+CVAUXV? +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.12 AT+CGPIO Set Trigger mode of interrupt GPIO Description Set GPIO interrupt trigger mode(GPIO0 is used for interrupt). 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 SIM5218_Serial _AT Command Manual_V1.21 218 1/13/2011
  • 220. SIM5218 Serial AT Command Manual 1 <save> 0 1 NOTE – trigger when high level – not save the setting – save the setting If the parameter of <save> is omitted, it will save the setting. Examples AT+ CGPIO =1,1,0 OK 12.13 AT+CGDRT Set the direction of specified GPIO Description The command is used to set the specified GPIO to in or out state. If setting the specified GPIO to in state, then it can not set the value of the GPIO to high or low. SIM PIN NO References Vendor Syntax Write Command AT+CGDRT=<gpio_num>, <gpio_io>[,<save>] Responses OK ERROR Defined values <gpio_num> 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 SIM5218_Serial _AT Command Manual_V1.21 219 1/13/2011
  • 221. SIM5218 Serial AT Command Manual 12.14 AT+CGSETV Set the value of specified GPIO Description The command is used to set the value of the specified GPIO to high or low. SIM PIN NO References Vendor Syntax Write Command AT+CGSETV=<gpio_num>, <gpio_hl>[,<save>] Responses OK ERROR Defined values <gpio_num> 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 12.15 AT+CGGETV Get the value of specified GPIO Description The command is used to get the value (high or low) of the specified GPIO. SIM PIN NO References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 220 1/13/2011
  • 222. SIM5218 Serial AT Command Manual Write Command AT+CGGETV=<gpio_num> Responses +CGGETV: <gpio_hl> OK ERROR Defined values <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.16 AT+CADC Read ADC value Description Read the ADC value from modem. We support 3 type of ADC, 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 Responses SIM5218_Serial _AT Command Manual_V1.21 221 1/13/2011
  • 223. SIM5218 Serial AT Command Manual AT+CADC Same as AT+CADC= 0: +CADC: <value> OK Defined values <adc> ADC type: 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 12.17 AT+CMICAMP1 Set value of micamp1 Description The command is used to set audio path parameter – micamp1; this is different with AT+CMIC. With this command you can change the first stage of MIC amplify value based on your design separately and refer to related hardware design document to get 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= Responses OK SIM5218_Serial _AT Command Manual_V1.21 222 1/13/2011
  • 224. SIM5218 Serial AT Command Manual <amp_val> 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 12.18 AT+CVLVL Set value of sound level Description The command is used to set audio path parameter – RX volume; this command is different from CRXVOL, command CRXVOL will modify the values of all sound levels offset we provided together. With this command you can change the value of each sound level based on your design separately and refer to related hardware design document to get more information. SIM PIN References NO Vendor Syntax Test Command AT+CVLVL=? Responses +CVLVL: (list of supported <lvl>s),(list of supported <lvl_value>s) OK Read Command AT+CVLVL? Responses +CVLVL: <lvl_value1>,<lvl_value2>,<lvl_value3>,<lvl_value4> OK Write Command AT+CVLVL= <lvl>, <lvl_value> Responses +CVLVL: <lvl_value> OK SIM5218_Serial _AT Command Manual_V1.21 223 1/13/2011
  • 225. SIM5218 Serial AT Command Manual ERROR Defined values <lvl> sound level number which is from 1 to 4. <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. Examples AT+CVLVL=1,-2000 +CVLVL: -2000 OK AT+CVLVL? +CVLVL: -2000,-200,500,1000 OK AT+ CVLVL=? +CVLVL: (1-4),(-5000~5000) OK 12.19 AT+SIDET Digital attenuation of sidetone Description The command is used to set digital attenuation of sidetone. For more detailed information, please refer to relevant HD document. SIM PIN NO References Vendor Syntax Test Command AT+SIDET=? Responses +SIDET: (list of supported <st>s) OK SIM5218_Serial _AT Command Manual_V1.21 224 1/13/2011
  • 226. SIM5218 Serial AT Command Manual 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:2034, HEADSET:1024, SPEAKER PHONE: 0. Examples AT+CSDVC=1 OK AT+SIDET? +SIDET: 2304 OK 12.20 AT+CRIRS Reset RI pin of serial port Description The command is used to reset RI pin of serial port(UART device).After the command executed,When a voice(csd ,video) call or a SMS is coming or URC is reported,RI pin is 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 SIM5218_Serial _AT Command Manual_V1.21 225 1/13/2011
  • 227. SIM5218 Serial AT Command Manual Examples AT+CRIRS OK 12.21 AT+CSUART Switch UART line mode Description The command is used to switch UART line mode between three and seven lines mode. SIM PIN References NO Vendor Syntax Test Command AT+CSUART=? Responses +CSUART: (list of supported <mode>s), (list of supported <save>s) OK 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 – don’t save the setting – save the setting Examples AT+CSUART=1 OK 12.22 AT+CDCDMD Set DCD pin mode Description SIM5218_Serial _AT Command Manual_V1.21 226 1/13/2011
  • 228. SIM5218 Serial AT Command Manual The command is used to set DCD pin to DCD mode or GPIO mode. NOTE DCD mode is invalid currently. SIM PIN NO References Vendor Syntax Test Command AT+CDCDMD=? Responses +CDCDMD: (list of supported <mode>s) OK Read Command AT+CDCDMD? Responses +CDCDMD:<mode> OK Write Command Responses AT+CDCDMD=<mode> OK ERROR Defined values <mode> 0 – DCD mode 1 – GPIO mode Examples AT+CDCDMD=0 OK 12.23 AT+CDCDVL Set DCD pin high-low in GPIO mode Description The command is used to set DCD pin high-low in GPIO mode. NOTE The command will disable when DCD pin is DCD mode. SIM PIN NO References Vendor Syntax Test Command AT+CDCDVL=? Responses +CDCDVL: (list of supported <value>s) OK SIM5218_Serial _AT Command Manual_V1.21 227 1/13/2011
  • 229. SIM5218 Serial AT Command Manual Read Command AT+CDCDVL? Responses +CDCDVL:<value> OK Write Command Responses AT+CDCDVL=<value> OK ERROR Defined values <value> 0 – set DCD pin low in GPIO mode 1 – set DCD pin high in GPIO mode Examples AT+CDCDVL=0 OK 12.24 AT+CCGSWT Switch between camera interface and GPIO Description This command is used to switch the function between camera interface and general GPIO, if your project has no camera subsystem existed then you can use this AT command to use camera interface as general GPIO, there are total 14 pins of this type. SIM PIN NO References Vendor Syntax Test Command AT+CCGSWT=? Responses +CCGSWT: (list of supported <mode>s) OK Read Command AT+CCGSWT? Responses +CCGSWT: <mode> OK Write Command Responses OK AT+CCGSWT=<mode> ERROR Defined values SIM5218_Serial _AT Command Manual_V1.21 228 1/13/2011
  • 230. SIM5218 Serial AT Command Manual < mode > 0 – gpio mode 1 – camera mode NOTE if you config such pins to general gpio mode then you can use GPIO AT command to config these GPIOs, like direction, value. CAMERA INTERFACE <—————> GENERAL GPIO NUMBER HSYNC GPIO6 VSYNC GPIO7 PCLK GPIO8 STDBY GPIO9 DATA0 GPIO10 DATA1 GPIO11 DATA2 GPIO12 DATA3 GPIO13 DATA4 GPIO14 DATA5 GPIO15 DATA6 GPIO16 DATA7 GPIO17 DATA8 GPIO18 DATA9 GPIO19 Examples AT+CCGSWT=? +CCGSWT: (0-1) OK AT+CCGSWT? +CCGSWT: 1 OK AT+CCGSWT=1 OK 12.25 AT+CBC Battery charge Description The command is used to query the voltage of power supply. NOTE The SIM5218 does not allow the detection of battery use,so <bcs> and <bcl> may be ignored.They are only compatible with other products like SIM5215,etc.The user can get the voltage of power supply by <vol>. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 229 1/13/2011
  • 231. SIM5218 Serial AT Command Manual NO 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 <bcs> 0 Battery powered <bcl> 0…100 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.26 AT+CDTRISRMD Configure the trigger condition for DTR’s interrupt. Description This command is used to set the appropriate trigger condition for DTR’s interrupt, which will finally waking up the module. This command is only valid while the UART is under NULL modem mode. The interrupt is low level triggered by default. SIM PIN No References Vendor SIM5218_Serial _AT Command Manual_V1.21 230 1/13/2011
  • 232. SIM5218 Serial AT Command Manual Syntax Test Command AT+CDTRISRMD=? Responses + CDTRISRMD: (0-1), (0-1) OK Read Command AT+CDTRISRMD? Responses + CDTRISRMD: <detect>,<polarity> OK Write Command AT+CDTRISRMD =<detect>,<polarity> Responses 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.27 AT+CDTRISRS Enable/disable the pin of DTR’s awakening function Description This command is used to enable or disable the function of waking up the module by means of UART’s DTR pin which to trigger an interrupt This command will only take effect while the UART is working under NULL modem mode. The function is disabled by default. SIM PIN No References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 231 1/13/2011
  • 233. SIM5218 Serial AT Command Manual Test Command AT+CDTRISRS=? Responses + CDTRISRS: (0-1) OK Read Command AT+CDTRISRS? Responses + CDTRISRS: <switch> OK Write Command AT+CDTRISRS =<switch> Responses OK Defined values <switch> 0 disable such function 1 enable such function Examples AT+CDTRISRS=1 OK AT+CDTRISRS=0 OK SIM5218_Serial _AT Command Manual_V1.21 232 1/13/2011
  • 234. SIM5218 Serial AT Command Manual 13 Phonebook Related Commands 13.1 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 Test Command AT+CNUM=? Responses OK Execution Command Responses [+CNUM: <alpha>,<number>,<type>[<CR><LF> +CNUM: <alpha>, <number>,<type> [...]]] OK AT+CNUM +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 13.2 AT+CPBS Select phonebook memory storage Description SIM5218_Serial _AT Command Manual_V1.21 233 1/13/2011
  • 235. SIM5218 Serial AT Command Manual The 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 Set default value “SM”: OK 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" 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 SIM5218_Serial _AT Command Manual_V1.21 234 1/13/2011
  • 236. SIM5218 Serial AT Command Manual "ON" MSISDN list Capacity: depending on SIM card Last number dialed phonebook Capacity: depending on SIM card AT+CPBW command is not applicable to this storage. Emergency numbers Capacity: max. 50 entries AT+CPBW command is not applicable to this storage. "LD" "EN" <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") OK AT+CPBS=”SM” OK AT+CPBS? +CPBS: "SM",1,200 OK 13.3 AT+CPBR Read phonebook entries Description The 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. 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= Responses [+CPBR: <index1>,<number>,<type>,<text>[<CR><LF> SIM5218_Serial _AT Command Manual_V1.21 235 1/13/2011
  • 237. SIM5218 Serial AT Command Manual <index1>[,<index2>] +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 AT+CPBS? +CPBS: "SM",2,200 OK AT+CPBR=1,10 +CPBR: 1,"1234567890",129,"James" +CPBR: 2,"0987654321",129,"Kevin" OK 13.4 AT+CPBF Find phonebook entries Description SIM5218_Serial _AT Command Manual_V1.21 236 1/13/2011
  • 238. SIM5218 Serial AT Command Manual The command finds the record in phonebook(from the current phonebook memory storage selected with AT+CPBS) which alphanumeric field has substring <findtext>. 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> +CBPF: <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> 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 " SIM5218_Serial _AT Command Manual_V1.21 237 1/13/2011
  • 239. SIM5218 Serial AT Command Manual OK 13.5 AT+CPBW Write phonebook entry Description The 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. <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, If <number> contains a leading “+” <type> = 145 (international) is used.Supported value are: 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 <text> String type field of maximum length <tlength>; character set as specified by command Select TE SIM5218_Serial _AT Command Manual_V1.21 238 1/13/2011
  • 240. SIM5218 Serial AT Command Manual 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 isn’t ‘+’) and <text> as NULL. Examples AT+CPBW=3,"88888888",129,"John" OK AT+CPBW=,”6666666”,129,”mary” OK AT+CPBW=1 OK 13.6 AT+CEMNLIST Set the list of emergency number Description The command allows to define emergency numbers list according to customers’ requirement .Note that only no sim card is inserted or sim card is locked, these emergency numbers take effect. SIM PIN NO References Vendor Syntax Test Command AT+CEMNLIST=? Responses +CEMNLIST: (list of supported <mode>s), <nlength>,<total> OK Read Command AT+CEMNLIST? Responses +CEMNLIST: <mode>,<emergency numbers> OK Write Command AT+CEMNLIST=<mode>[, <emergency numbers>] Responses OK Defined values <mode> 0 disable SIM5218_Serial _AT Command Manual_V1.21 239 1/13/2011
  • 241. SIM5218 Serial AT Command Manual 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 SIM5218_Serial _AT Command Manual_V1.21 240 1/13/2011
  • 242. SIM5218 Serial AT Command Manual 14 File System Related Commands The file system is used to store files in a hierarchical (tree) structure, and there are some definitions and conventions to use the Module. Local storage space is mapped to “C:”, and storage space of present storage card is mapped to “D:”. In both “C:” and “D:” directories, module creates four directories named “Picture”, “Audio”, “Video” and “VideoCall” automatically; “Picture” is used to store static image when taking picture by camera, “Audio” is used to store audio file, “Video” is used to store video file when recording by camera, and “VideoCall” is used to store media file which is recorded during a video call. NOTE General rules for naming (both directories and files): 1 The length of actual fully qualified names of directories and files can not exceed 245. For example: the length of “C:/Picture/first_image.jpg” don’t exceed 245. 2 Directory and file names can not include the following characters: : * ? “ < > | 3 Between directory name and file/directory name, use character “/” as list separator, so it can not appear in directory name or file name. 4 The first character of names must be a letter or a numeral or underline, and the last character can not be period “.” and oblique “/”. 5 Case sensitive in “C:”, but not case sensitive in “D:” if storage card is present. 14.1 AT+FSCD Select directory as current directory Description The 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 SIM5218_Serial _AT Command Manual_V1.21 241 1/13/2011
  • 243. SIM5218 Serial AT Command Manual Defined values <path> String without double quotes, directory for selection. NOTE If <path> is “..”, it will go back to previous level of directory. If current directory is D:/ or in D:/ and SD card is removed and unmounted, it will set current directory C:/ automatically after a moment. <curr_path> String without double quotes, current directory. Examples AT+FSCD=C: +FSCD: C:/ OK AT+FSCD=Picture +FSCD: C:/Picture/ OK AT+FSCD=C:/Video +FSCD: C:/Video/ OK AT+FSCD? +FSCD: C:/Video/ OK AT+FSCD=.. +FSCD: C:/ OK 14.2 AT+FSMKDIR Make new directory in current directory Description The command is used to create a new directory in current directory. It is only permitted to create new directory in storage card. SIM PIN NO References Vendor Syntax Test Command AT+FSMKDIR=? Responses OK Write Command AT+FSMKDIR=<dir> Responses OK SIM5218_Serial _AT Command Manual_V1.21 242 1/13/2011
  • 244. SIM5218 Serial AT Command Manual ERROR Defined values <dir> String without double quotes, directory name which is not already existing in current directory. Examples AT+FSMKDIR= SIMTech OK AT+FSCD? +FSCD: D:/ OK AT+FSLS +FSLS: SUBDIRECTORIES: Audio Picture Video VideoCall SIMTech OK 14.3 AT+FSRMDIR Delete directory in current directory Description The command is used to delete existing directory in current directory. It is only permitted to delete existing directory in storage card. SIM PIN NO References Vendor Syntax Test Command AT+FSRMDIR=? Responses OK Write Command AT+FSRMDIR=<dir> Responses OK ERROR Defined values SIM5218_Serial _AT Command Manual_V1.21 243 1/13/2011
  • 245. SIM5218 Serial AT Command Manual <dir> string without double quotes, directory name which is relative and already existing. Examples AT+FSRMDIR=SIMTech OK AT+FSCD? +FSCD: D:/ OK AT+FSLS +FSLS: SUBDIRECTORIES: Audio Picture Video VideoCall OK 14.4 AT+FSLS List directories/files in current directory Description The 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>] SIM5218_Serial _AT Command Manual_V1.21 244 1/13/2011
  • 246. SIM5218 Serial AT Command Manual 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> Integer type, the number of files in current directory. <type> 0 – list both subdirectories and files 1 – list subdirectories only 2 – list files only 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 SIM5218_Serial _AT Command Manual_V1.21 245 1/13/2011
  • 247. SIM5218 Serial AT Command Manual 14.5 AT+FSDEL Delete file in current directory Description The 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 ERROR Defined values <filename> String without double quotes, file name which is relative and already existing. Examples AT+FSDEL=image_0.jpg OK 14.6 AT+FSRENAME Rename file in current directory Description The 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= Responses OK SIM5218_Serial _AT Command Manual_V1.21 246 1/13/2011
  • 248. SIM5218 Serial AT Command Manual <old_name>,<new_name> ERROR Defined values <old_name> String without double quotes, file name which is existed in current directory. <new_name> New name of specified file, string without double quotes. Examples AT+FSRENAME=image_0.jpg, image_1.jpg OK 14.7 AT+FSATTRI Request file attributes Description The command is used to request the attributes of file which is existing 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 without double quotes, file name which is in current directory. <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 SIM5218_Serial _AT Command Manual_V1.21 247 1/13/2011
  • 249. SIM5218 Serial AT Command Manual +FSATTRI: 8604, 2008/04/28 10:24:46 Tue OK 14.8 AT+FSMEM Check the size of available memory Description The command is used to check the size of available memory. The response will list total size and used size of local storage space and SD card if present and mounted. If SD card exist, the write command can set a limit value. The URC will report automatically when SD card space less than <limit>. After receiving the URC, you can delete the old or useless files for saving the space. SIM PIN NO References Vendor Syntax Test Command AT+FSMEM=? Responses If SD card exist: +FSMEM: (list of supported <limit>s),(list of supported <timer>s) OK If SD card doesn’t exist: OK Read Command AT+FSMEM? Responses If SD card exist: +FSMEM: <limit>,<timer> OK If SD card doesn’t exist: ERROR Write Command AT+FSMEM=<limit>,<time r> Responses If SD card exist: OK If SD card space less than <limit>, report URC automatically: +FSMEM: C:(<total>, <used>), D:(<total>,<used>) If SD card doesn’t exist: ERROR Execution Command AT+FSMEM Responses If SD card exist: +FSMEM: C:(<total>, <used>), D:(<total>,<used>) OK SIM5218_Serial _AT Command Manual_V1.21 248 1/13/2011
  • 250. SIM5218 Serial AT Command Manual If SD card doesn’t exist: +FSMEM: C:(<total>, <used>) OK Defined values <total> The total size of local storage space or SD card. <used> The used size of local storage space or SD card. <limit> 0 – Close memery check <max> – The limit space of SD card. The max value refers to the SD card size (It’s only available when SD card exist!) <timer> The range is 0-255, unit is second, after set <time> will report the URC when SD card’s available space less than <limit> every the seconds. (It’s only available when SD card exist!) NOTE 1.The unit of storage space size is in Byte. 2. The unit of <limit> space of SD card is in MB. Examples AT+FSMEM +FSMEM: C:(11348480, 2201600), D:(255533056, 42754048) OK AT+FSMEM=? +FSMEM: (0-243),(0-255) OK AT+FSMEM=10,5 OK +FSMEM: C:(11348480, 2201600), D:(255533056, 245535421) 14.9 AT+FSFMT Format the storage card Description The command is used to format storage card which is plugged in. After formatting and remounting, it will create four directories of “Picture”, “Video”, “VideoCall” and “Audio” automatically. If current directory is in D:/ but not one of D:/Picture, D:/Video, D:/Audio and D:/VideoCall, it will set current directory D:/ after formatting. SIM PIN NO References Vendor SIM5218_Serial _AT Command Manual_V1.21 249 1/13/2011
  • 251. SIM5218 Serial AT Command Manual Syntax Test Command AT+FSFMT=? Responses OK Execution Command AT+FSFMT Responses OK Examples AT+FSFMT OK 14.10 AT+FSLOCA Select storage place Description The command is used to set the storage place for media files. If the storage card is not present, it can not set storage place as storage card. When the Module is power on, the value of <loca> is 0. NOTE 1. Static image taken by camera is stored in “C:/Picture” or “D:/Picture” directory. 2. Video file recorded by camera is stored in “C:/Video” or “D:/Video” directory. 3. Media file recorded during a video call is stored in “C:/VideoCall” or “D:/Videocall” directory. 4. Audio file recorded is stored in “C:/Audio” or “D:/Audio” directory. SIM PIN NO References Vendor Syntax Test Command AT+FSLOCA=? Responses +FSLOCA: (list of supported <loca>s) OK Read Command AT+FSLOCA? Responses +FSLOCA: <loca> OK Write Command AT+FSLOCA=<loca> Responses OK ERROR Defined values <loca> 0 – store media files to local storage space (namely “C:/”) SIM5218_Serial _AT Command Manual_V1.21 250 1/13/2011
  • 252. SIM5218 Serial AT Command Manual 1 – store media files to storage card (namely “D:/”) NOTE If <loca>=1 and SD card is removed and unmounted, it will set <loca>=0 automatically after a moment. Examples AT+FSLOCA=0 OK AT+FSLOCA? +FSLOCA: 0 OK SIM5218_Serial _AT Command Manual_V1.21 251 1/13/2011
  • 253. SIM5218 Serial AT Command Manual 15 File Transmission Related Commands The module supports file transmission between the Module and PC host over Xmodem protocol, and the transmission is bidirectional. 15.1 AT+CTXFILE Select file transmitted to PC host Description The command is used to select a file which is transmitted from the module to PC host. After selecting the file successfully, use HyperTerminal to get the file over Xmodem protocol [refer AT Commands Samples: File transmission to PC host]. If available memory is not enough, file transmission will fail. 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 is already existing. <dir_type> 0 – file to be transmitted is in current directory; before AT+CTXFILE execution, it needs to set current directory [refer AT+FSCD] 1 – file to be transmitted is in “C:/Picture” directory 2 – file to be transmitted is in “C:/Video” directory 3 – file to be transmitted is in “C:/VideoCall” directory 4 – file to be transmitted is in “D:/Picture” directory 5 – file to be transmitted is in “D:/Video” directory 6 – file to be transmitted is in “D:/VideoCall” directory 7 – file to be transmitted is in “C:/Audio” directory SIM5218_Serial _AT Command Manual_V1.21 252 1/13/2011
  • 254. SIM5218 Serial AT Command Manual 8 – file to be transmitted is in “D:/Audio” directory 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 whether existing or not. <protocol> 0 – Xmodem 1 – 1K Xmodem Examples AT+CTXFILE=”image_0.jpg”, 1,1 OK …… AT+FSCD=C:/Video +FSCD: C:/Video/ OK AT+FSLS video_0.mp4 video_1.mp4 OK AT+CTXFILE=”video_2.mp4” OK …. 15.2 AT+CRXFILE Set name of file received from PC host Description The command is used to set file name which is received from PC 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 PC 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 SIM5218_Serial _AT Command Manual_V1.21 253 1/13/2011
  • 255. SIM5218 Serial AT Command Manual ERROR Defined values <file_name> String with double quotes, file name which is received from PC host. <dir_type> Specify storage location of file which is received from PC host. If this parameter is omitted, it will save the file to current directory [refer AT+FSCD] 0 – save file received from PC host to current directory; before AT+CTXFILE execution, it needs to set current directory [refer AT+FSCD] 1 – save file to “C:/Picture” directory 2 – save file to “C:/Video” directory 3 – save file to “C:/VideoCall” directory 4 – save file to “D:/Picture” directory 5 – save file to “D:/Video” directory 6 – save file to “D:/VideoCall” directory 7 – save file to “C:/Audio” directory 8 – save file to “D:/Audio” directory Examples AT+CRXFILE=”image_8.jpg”,1 OK …… AT+FSCD=D:/Video +FSCD: D:/Video/ OK AT+CRXFILE=”video.mp4” OK …. SIM5218_Serial _AT Command Manual_V1.21 254 1/13/2011
  • 256. SIM5218 Serial AT Command Manual 16 V24-V25 Commands 16.1 AT+IPR Set local baud rate temporarily Description The command sets the baud rate of module’s serial interface temporarily, after reboot the baud rate is set to default value.The default value is 115200. 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 SIM5218_Serial _AT Command Manual_V1.21 255 1/13/2011
  • 257. SIM5218 Serial AT Command Manual AT+IPR=115200 OK 16.2 AT+IPREX Set local baud rate permanently Description The command sets the baud rate of module’s 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 SIM5218_Serial _AT Command Manual_V1.21 256 1/13/2011
  • 258. SIM5218 Serial AT Command Manual AT+IPREX=115200 OK 16.3 AT+ICF Set control character framing Description The command sets character framing which contain data bit, stop bit and parity bit. 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 SIM5218_Serial _AT Command Manual_V1.21 257 1/13/2011
  • 259. SIM5218 Serial AT Command Manual AT+ICF=? +ICF: (3),(0-3) OK AT+ICF=3,3 OK 16.4 AT+IFC Set local data flow control Description The command sets the flow control 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 Read Command AT+IFC? Responses +IFC: <DCE>,<DTE> OK Write Command AT+IFC=<DCE>[,<DTE>] Responses OK Execution Command AT+IFC ERROR Responses Set default value: OK Defined values <DCE> 0 2 <DTE> 0 2 – none (default) – RTS hardware flow control – none (default) – CTS hardware flow control Examples AT+IFC? +IFC: 0,0 SIM5218_Serial _AT Command Manual_V1.21 258 1/13/2011
  • 260. SIM5218 Serial AT Command Manual OK AT+IFC=? +IFC: (0,2),(0,2) OK AT+IFC=2,2 OK 16.5 AT&C Set DCD function mode Description The command determines how the state of circuit 109 (DCD) relates to the detection of received line signal from the distant end. NOTE After executing AT+CSUART=1 and AT+CDCDMD=0,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 16.6 ATE Enable command echo Description The command sets whether or not the TA echoes characters. SIM PIN NO References V.25ter SIM5218_Serial _AT Command Manual_V1.21 259 1/13/2011
  • 261. SIM5218 Serial AT Command Manual Syntax Execution Command ATE[<value>] Responses OK ERROR Defined values <value> 0 – 1 – Echo mode off Echo mode on Examples ATE1 OK 16.7 AT&V Display current configuration Description The 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; …… SIM5218_Serial _AT Command Manual_V1.21 260 1/13/2011
  • 262. SIM5218 Serial AT Command Manual OK 16.8 AT&D Set DTR function mode Description The command determines how the TA responds when circuit 108/2 (DTR) is changed from the ON to 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 16.9 AT&S Set DSR function mode Description The command determines how the state of DSR pin works. SIM PIN NO References V.25ter Syntax Execution Command AT&S[<value>] Responses OK SIM5218_Serial _AT Command Manual_V1.21 261 1/13/2011
  • 263. SIM5218 Serial AT Command Manual 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 16.10 AT&F Set all current parameters to manufacturer defaults Description The command is used to set all current parameters to the manufacturer defined profile. Notes 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.) <value>=1 default value AT&F1 VALUE AT+AUTOANSWER 0 AT+CGSMS 1 AT+CATR 0 SIM5218_Serial _AT Command Manual_V1.21 262 1/13/2011
  • 264. SIM5218 Serial AT Command Manual AT+CSUART 0 AT+CPCM 0,0 AT+CPCMFMT 2 AT+CPCMSLOT 0 1 AT+CNBP ○ 0x000200000CE8FFFF AT+CNMP 2 AT+CNAOP 2 AT+CNSDP 2 AT+CTZU 0 AT+CRSL 2 AT+CALM 0 AT+CEMNLIST 0, "" AT+CSIMSEL 1 AT+CVALARM 0,3450 AT+CRFEN 1 AT+CSDVC 1 2 AT+CLVL ○ 2 2 AT+CVLVL ○ -1200,-200,350,1000 2 AT+CMICAMP1 ○ 0 2 AT+CMIC ○ 14 2 AT+SIDET ○ 7000 2 AT+CTXGAIN ○ 30000 2 AT+CRXGAIN ○ 8000 2 AT+CTXVOL ○ 30000 2 AT+CRXVOL ○ 100 2 AT+CTXFTR ○ 8, 65513, 20, 132, 64995, 1048, 15098 2 AT+CRXFTR ○ 57, 65532, 427, 64827, 2591, 60638, 14802 AT+CVAUXS 1 AT+CVAUXV 57 AT+CCAMMD 0 AT+CDTRISRS 0 AT+CDTRISRMD 0,0 AT+CGDCONT 1,"IP","","0.0.0.0",0,0 AT+CGSOCKCONT 1,"IP","","0.0.0.0",0,0 AT+CPLMNWLIST "" AT+CPASSMGR NULL (disable all passwords ) AT+CGPSSSL 0 AT+CGPSURL "" SIM5218_Serial _AT Command Manual_V1.21 263 1/13/2011
  • 265. SIM5218 Serial AT Command Manual AT+CMMSSENDCFG 6,3,0,0,2,4 AT+CMMSCURL "" AT+CMMSPROTO 1,"0.0.0.0",0 AT+CGPSAUTO 0 AT+CGPSSWITCH 1 1 ○SIM8218C band default value is 0x000000000068FFF7. Others are 0x000200000CE8FFFF. 2 ○ These audio parameters is discrepant in different Qualcomm platform version. In this document the default values for 240150. The platform version can be found through ATI command. Examples AT&F OK AT&F1 OK (then reset the module manual) SIM5218_Serial _AT Command Manual_V1.21 264 1/13/2011
  • 266. SIM5218 Serial AT Command Manual 17 GPS Related Commands 17.1 AT+CGPS Start/stop GPS session Description The 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 only support standalone mode. If executing AT+CGPS=1, the GPS session will choose cold or hot start automatically. 2. UE-based and UE-assisted mode depends on URL (AT+CGPSURL) and certificate (AT+CGPSSSL). When UE-based mode failing, it will switch standalone mode. 3. UE-assisted mode is single fix. Standalone and UE-based mode is consecutive fix. SIM PIN NO References Vendor Syntax Test Command AT+CGPS=? Responses 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 SIM5218_Serial _AT Command Manual_V1.21 265 1/13/2011
  • 267. SIM5218 Serial AT Command Manual <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 OK 17.2 AT+CGPSINFO Get GPS fixed position information Description The command is used to get current position information. SIM PIN NO References Vendor Syntax Test Command AT+CGPSINFO=? Responses +CCGPSINFO: (scope of <time>) OK Write Command AT+CGPSINFO=<time> Responses +CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC time>],[<alt>],[<speed>] OK Execution Command AT+CGPSINFO Responses +CGPSINFO: [<lat>],[<N/S>],[<log>],[<E/W>],[<date>],[<UTC time>],[<alt>],[<speed>] OK Defined values <lat> Latitude of current position. Output format is ddmm.mmmm <N/S> N/S Indicator, N=north or S=south <log> SIM5218_Serial _AT Command Manual_V1.21 266 1/13/2011
  • 268. SIM5218 Serial AT Command Manual Longitude of current position. Output format is dddmm.mmmm <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. <time> The range is 0-255, unit is second, after set <time> will report the GPS information every the seconds. Examples AT+CGPSINFO=? OK AT+CGPSINFO +CGPSINFO: 3113.393766,N,12121.176625,E,061108,075358.0,19.5,0 OK 17.3 AT+CGPSCOLD Cold start GPS Description The 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 SIM5218_Serial _AT Command Manual_V1.21 267 1/13/2011
  • 269. SIM5218 Serial AT Command Manual 17.4 AT+CGPSHOT Hot start GPS Description The command is used to hot start GPS session NOTE Before using this command, must use AT+CGPS=0 to stop GPS session. SIM PIN NO References Vendor Syntax Test Command AT+CGPSHOT=? Execution Command AT+CGPSHOT Responses OK Responses OK Examples AT+CGPSHOT=? OK AT+CGPSHOT OK 17.5 AT+CGPSSWITCH Configure output port for NMEA sentence Description The 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 57600 bit/s, and can’t 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 rebooting. SIM PIN NO References Vendor Syntax Test Command AT+CGPSSWITCH=? Read Command AT+CGPSSWITCH? Responses +CGPSSWITCH: (list of supported <port>s) OK Responses +CGPSSWITCH: <port> SIM5218_Serial _AT Command Manual_V1.21 268 1/13/2011
  • 270. SIM5218 Serial AT Command Manual OK Write Command AT+CGPSSWITCH=<port> Responses OK ERROR Defined values <port> 1 – 2 – NMEA ports UART port Examples AT+CGPSSWITCH=? +CGPSSWITCH:(1,2) OK AT+CGPSSWITCH=1 OK 17.6 AT+CGPSURL Set AGPS default server URL Description The command is used to set AGPS default server URL. 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. SIM5218_Serial _AT Command Manual_V1.21 269 1/13/2011
  • 271. SIM5218 Serial AT Command Manual Examples AT+CGPSURL=”123.123.123.123:8888” OK AT+CGPSURL? +CGPSURL:” 123.123.123.123:8888” OK 17.7 AT+CGPSSSL Set AGPS transport security Description The command is used to select transport security, used certificate or not. The certificate gets from local carrier. If the AGPS server doesn’t need certificate, execute AT+CGPSSSL=0. SIM PIN References NO Vendor Syntax Test Command AT+CGPSSSL=? Responses OK Read Command AT+CGPSSSL? Responses +CGPSSSL=<SSL> OK Write Command Responses AT+CGPSSSL=<SSL> OK ERROR Defined values <SSL> 0 1 – don’t use certificate – use certificate Examples AT+CGPSSSL=0 OK 17.8 AT+CGPSAUTO Start GPS automatic Description SIM5218_Serial _AT Command Manual_V1.21 270 1/13/2011
  • 272. SIM5218 Serial AT Command Manual The command is used to start GPS automatic when module power on, default GPS is closed. NOTE If GPS start automatically, its operation mode is standalone mode. SIM PIN NO References Vendor Syntax Test Command AT+CGPSAUTO=? Responses OK Read Command AT+CGPSAUTO? Responses +CGPSAUTO=<auto> OK Responses OK Write Command AT+CGPSAUTO=<auto> ERROR Defined values <auto> 0 1 – Non-automatic – automatic Examples AT+CGPSAUTO=1 OK SIM5218_Serial _AT Command Manual_V1.21 271 1/13/2011
  • 273. SIM5218 Serial AT Command Manual 18 Commands for Packet Domain 18.1 AT+CGDCONT Define PDP context 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 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. SIM5218_Serial _AT Command Manual_V1.21 272 1/13/2011
  • 274. SIM5218 Serial AT Command Manual 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. 1…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 <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: 0 – off (default if value is omitted) 1 – on 2 – V.42bis <h_comp> A numeric parameter that controls PDP header compression: 0 – off (default if value is omitted) 1 – on 2 – RFC1144 3 – RFC2507 4 – RFC3095 Examples AT+CGDCONT? +CGDCONT: 1,"IP","","0.0.0.0",0,0 OK AT+CGDCONT=? +CGDCONT: (1-16),"IP",,,(0-1),(0-1) +CGDCONT: (1-16),"PPP",,,(0-1),(0-1) +CGDCONT: (1-16),"IPV6",,,(0-2),(0-3) OK 18.2 AT+CGQREQ Quality of service profile (requested) Description SIM5218_Serial _AT Command Manual_V1.21 273 1/13/2011
  • 275. SIM5218 Serial AT Command Manual The 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 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). 1…16 SIM5218_Serial _AT Command Manual_V1.21 274 1/13/2011
  • 276. SIM5218 Serial AT Command Manual <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 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) SIM5218_Serial _AT Command Manual_V1.21 275 1/13/2011
  • 277. SIM5218 Serial AT Command Manual 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 31 – – – – – – – – – – – – – – – – – – 200 (~0.44 bit/s) 500 (~1.11 bit/s) 1000 (~2.2 bit/s) 2000 (~4.4 bit/s) 5000 (~11.1 bit/s) 10000 (~22 bit/s) 20000 (~44 bit/s) 50000 (~111 bit/s) 100000 (~0.22 kbit/s) 200000 (~0.44 kbit/s) 500000 (~1.11 kbit/s) 1000000 (~2.2 kbit/s) 2000000 (~4.4 kbit/s) 5000000 (~11.1 kbit/s) 10000000 (~22 kbit/s) 20000000 (~44 kbit/s) 50000000 (~111 kbit/s) optimization 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) OK 18.3 AT+CGEQREQ 3G quality of service profile (requested) 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 SIM5218_Serial _AT Command Manual_V1.21 276 1/13/2011
  • 278. SIM5218 Serial AT Command Manual Syntax 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 +CME ERROR: <err> Defined values SIM5218_Serial _AT Command Manual_V1.21 277 1/13/2011
  • 279. SIM5218 Serial AT Command Manual <cid> Parameter specifies a particular PDP context definition.The parameter is also used in other PDP context-related commands. 1…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,…). 0 – subscribed value 1…512 <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,…). 0 – subscribed value 1…16000 <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,…). 0 – subscribed value 1…512 <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,…). 0 – subscribed value 1…16000 <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. 0 – subscribed value 10…1520 (value needs to be divisible by 10 without remainder) <SDU error ratio> This parameter indicates the target value for the fraction of SDUs lost or detected as erroneous.SDU SIM5218_Serial _AT Command Manual_V1.21 278 1/13/2011
  • 280. SIM5218 Serial AT Command Manual 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”,…). “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+CGEQREQ=…,”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. 0 – subscribed value 10…150 – value needs to be divisible by 10 without remainder 200…950 – value needs to be divisible by 50 without remainder 1000…4000 – value needs to be divisible by 100 without remainder <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. 0 – subscribed value 1 – SIM5218_Serial _AT Command Manual_V1.21 279 1/13/2011
  • 281. SIM5218 Serial AT Command Manual 2 – 3 – <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+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) OK 18.4 AT+CGQMIN Quality of service profile (minimum acceptable) Description The 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 Responses SIM5218_Serial _AT Command Manual_V1.21 280 1/13/2011
  • 282. SIM5218 Serial AT Command Manual AT+CGQMIN? +CGQMIN: [<cid>, <precedence >, <delay>, <reliability>, <peak>, <mean>[<CR><LF> +CGQMIN: <cid>, <precedence >, <delay>, <reliability.>, <peak>, <mean> […]]] OK ERROR 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). 1...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 SIM5218_Serial _AT Command Manual_V1.21 281 1/13/2011
  • 283. SIM5218 Serial AT Command Manual 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+CGQMIN? SIM5218_Serial _AT Command Manual_V1.21 282 1/13/2011
  • 284. SIM5218 Serial AT Command Manual +CGQMIN: 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) OK 18.5 AT+CGEQMIN 3G quality of service profile (minimum accepta ble) 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> SIM5218_Serial _AT Command Manual_V1.21 283 1/13/2011
  • 285. SIM5218 Serial AT Command Manual +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>[…]] OK Write Command AT+CGEQMIN=<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+CGEQMIN OK ERROR +CME ERROR: <err> Defined values <cid> Parameter specifies a particular PDP context definition.The parameter is also used in other PDP context-related commands. 1…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,…). 0 – subscribed value 1…512 <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,…). SIM5218_Serial _AT Command Manual_V1.21 284 1/13/2011
  • 286. SIM5218 Serial AT Command Manual 0 – subscribed value 1…16000 <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,…). 0 – subscribed value 1…512 <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,…). 0 – subscribed value 1…16000 <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. 0 – subscribed value 10…1520 (value needs to be divisible by 10 without remainder) <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+CGEQREQ=…,”5E3”,..). “0E0” – subscribed value “5E2” “1E2” SIM5218_Serial _AT Command Manual_V1.21 285 1/13/2011
  • 287. SIM5218 Serial AT Command Manual “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. 0 – subscribed value 10…150 – value needs to be divisible by 10 without remainder 200…950 – value needs to be divisible by 50 without remainder 1000…4000 – value needs to be divisible by 100 without remainder <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. 0 – subscribed value 1 – 2 – 3 – <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+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) OK SIM5218_Serial _AT Command Manual_V1.21 286 1/13/2011
  • 288. SIM5218 Serial AT Command Manual 18.6 AT+CGATT Packet domain attach or detach 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 <state> Indicates the state of Packet Domain attachment: 0 – detached 1 – attached Examples AT+CGATT? +CGATT: 0 OK AT+CGATT=1 OK 18.7 AT+CGACT PDP context activate or deactivate Description The write command is used to activate or deactivate the specified PDP context (s). SIM5218_Serial _AT Command Manual_V1.21 287 1/13/2011
  • 289. SIM5218 Serial AT Command Manual 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 <cid> A numeric parameter which specifies a particular PDP context definition (see AT+CGDCONT command). 1…16 Examples AT+CGACT? +CGACT: 1,0 OK AT+CGACT=? +CGACT: (0,1) OK AT+CGACT=0,1 OK 18.8 AT+CGDATA Enter data state SIM5218_Serial _AT Command Manual_V1.21 288 1/13/2011
  • 290. SIM5218 Serial AT Command Manual 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>,[<cid >] Responses CONNECT NO CARRIER 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). 1…16 Examples AT+CGDATA=? +CGDATA: ("PPP") OK AT+CGDATA="PPP",1 CONNECT 18.9 AT+CGPADDR Show PDP address Description The write command returns a list of PDP addresses for the specified context identifiers. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 289 1/13/2011
  • 291. SIM5218 Serial AT Command Manual YES 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 +CME ERROR: <err> Responses [+CGPADDR: <cid>,<PDP_addr>] +CGPADDR: <cid>,<PDP_addr>[...]]] OK ERROR +CME ERROR: <err> 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. 1…16 <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 =? +CGPADDR: ( 1) OK AT+CGPADDR=1 +CGPADDR: 1,"0.0.0.0" OK SIM5218_Serial _AT Command Manual_V1.21 290 1/13/2011
  • 292. SIM5218 Serial AT Command Manual 18.10 AT+CGCLASS GPRS mobile station class Description The 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 +CME ERROR: <err> Responses Set default value: OK ERROR Defined values <class> A string parameter which indicates the GPRS mobile class (in descending order of functionality) A – class A (highest) Examples AT+CGCLASS=? +CGCLASS: ("A") OK AT+CGCLASS? +CGCLASS: "A" OK SIM5218_Serial _AT Command Manual_V1.21 291 1/13/2011
  • 293. SIM5218 Serial AT Command Manual 18.11 AT+CGEREP GPRS event reporting 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. 2 – 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. <bfr> 0 – MT buffer of unsolicited result codes defined within this command is cleared when <mode> 1 or 2 is entered. SIM5218_Serial _AT Command Manual_V1.21 292 1/13/2011
  • 294. SIM5218 Serial AT Command Manual 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 18.12 AT+CGREG GPRS network registration status Description SIM5218_Serial _AT Command Manual_V1.21 293 1/13/2011
  • 295. SIM5218 Serial AT Command Manual The 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 YES 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 – disable network registration unsolicited result code – enable network registration unsolicited result code +CGREG: <stat> – there is a change in the ME network registration status or a change of the network cell: +CGREG: <stat>[,<lac>,<ci>] <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 4 – unknown 5 – registered, roaming <lac> Two byte location area code in hexadecimal format(e.g.”00C3” equals 193 in decimal). <ci> Two byte cell ID in hexadecimal format. SIM5218_Serial _AT Command Manual_V1.21 294 1/13/2011
  • 296. SIM5218 Serial AT Command Manual Examples AT+CGREG=? +CGREG: (0-1) OK AT+CGREG? +CGREG: 0,0 OK 18.13 AT+CGSMS Select service for MO SMS messages 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) SIM5218_Serial _AT Command Manual_V1.21 295 1/13/2011
  • 297. SIM5218 Serial AT Command Manual Examples AT+CGSMS? +CGSMS: 3 OK AT+CGSMS=? +CGSMS: (0-3) OK 18.14 AT+CGAUTH Set type of authentication for PDP-IP connections of GPRS Description The 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>[,<au Responses OK th_type>[,<passwd>[,<us ERROR er>]]] +CME ERROR: <err> Execution Command AT+CGAUTH Responses OK ERROR SIM5218_Serial _AT Command Manual_V1.21 296 1/13/2011
  • 298. SIM5218 Serial AT Command Manual +CME ERROR: <err> Defined values <cid> Parameter specifies a particular PDP context definition. This is also used in other PDP context-related commands. 1…16 <auth_type> Indicates the types 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 <passwd> Parameter specifies the password used for authentication. It is required for the authentication types PAP and CHAP. <user> Parameter specifies the user name used for authentication. It is required for the authentication type PAP. Examples AT+CGAUTH=? +CGAUTH: (1-16),(0-2), OK AT+CGAUTH=1,1,”SIMCOM”,”123” OK SIM5218_Serial _AT Command Manual_V1.21 297 1/13/2011
  • 299. SIM5218 Serial AT Command Manual 19 TCP/IP Related Commands 19.1 AT+CGSOCKCONT Define socket PDP context Description The 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 Defined values <cid> (PDP Context Identifier) a numeric parameter which specifies a particular PDP context definition. SIM5218_Serial _AT Command Manual_V1.21 298 1/13/2011
  • 300. SIM5218 Serial AT Command Manual 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. 1…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 <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 2 – V.42bis <h_comp> A numeric parameter that controls PDP header compression: 0 – off (default if value is omitted) 1 – on 2 – RFC1144 3 – RFC2507 4 – RFC3095 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-2),(0-3) OK 19.2 AT+CSOCKSETPN Set active PDP context’s profile number Description SIM5218_Serial _AT Command Manual_V1.21 299 1/13/2011
  • 301. SIM5218 Serial AT Command Manual The command sets default active PDP context’s 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. 1…16 Examples AT+CSOCKSETPN=1 OK 19.3 AT+CSOCKAUTH Set type of authentication for PDP-IP conne- ctions of socket Description The command is used to set type of authentication for PDP-IP connections of socket. SIM5218_Serial _AT Command Manual_V1.21 300 1/13/2011
  • 302. SIM5218 Serial AT Command Manual SIM PIN YES References Vendor Syntax Test Command AT+CSOCKAUTH=? Responses +CSOCKAUTH:(range of supported <cid>s),(list of supported <auth _type> s),, 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> Responses OK [,<auth_type>[,<passwd> ERROR [,<user>]]] +CME ERROR: <err> Execution Command AT+CSOCKAUTH 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. 1…16 <auth_type> Indicates the types 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 <passwd> SIM5218_Serial _AT Command Manual_V1.21 301 1/13/2011
  • 303. SIM5218 Serial AT Command Manual Parameter specifies the password used for authentication. It is required for the authentication types PAP and CHAP. <user> Parameter specifies the user name used for authentication. It is required for the authentication type PAP. Examples AT+CSOCKAUTH=? +CSOCKAUTH: (1-16),(0-2), , OK AT+CSOCKAUTH=1,1,”SIMCOM”,”123” OK 19.4 AT+IPADDR Inquire socket PDP address Description The 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 SIM5218_Serial _AT Command Manual_V1.21 302 1/13/2011
  • 304. SIM5218 Serial AT Command Manual +IPADDR: 10.71.155.118 OK 19.5 AT+NETOPEN Open socket Description The command opens socket, and it can also activate the socket PDP context at the same time. SIM PIN YES References Vendor Syntax Test Command AT+NETOPEN=? Responses +NETOPEN: (list of supported <sock_type>s), (range of supported <port>s), (list of supported <mode>s) OK ERROR +CME ERROR: <err> Read Command AT+NETOPEN? Responses +NETOPEN:<net_state>, <mode> OK ERROR +CME ERROR: <err> Write Command AT+NETOPEN= <sock_type>,<port>[, <mode>] Responses Network opened OK +IP ERROR: <err_info> ERROR +CME ERROR: <err> Defined values <sock_type> a string parameter that identifies the type of transmission protocol. TCP – Transfer Control Protocol UDP – User Datagram Protocol <port> A numeric parameter that identifies the port of socket, the range of permitted values is 0 to 65535. <net_state> a numeric parameter that indicates the state of PDP context activation: SIM5218_Serial _AT Command Manual_V1.21 303 1/13/2011
  • 305. SIM5218 Serial AT Command Manual 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 1 multi-client <err_info> A string parameter that displays the cause of occurring error. Examples AT+NETOPEN=”TCP”,80 Network opened OK AT+NETOPEN=? +NETOPEN: ("TCP", "UDP"), (0-65535), (0-1) OK AT+NETOPEN? +NETOPEN: 1, 1 OK 19.6 AT+TCPCONNECT Establish TCP connection Description The command establishes TCP connection with TCP server. SIM PIN YES References Vendor Syntax Test Command AT+TCPCONNECT =? Responses OK ERROR +CME ERROR: <err> Write Command AT+TCPCONNECT= <server_IP>, <port> Responses Connect ok OK +IP ERROR: <err_info> ERROR Connect fail SIM5218_Serial _AT Command Manual_V1.21 304 1/13/2011
  • 306. SIM5218 Serial AT Command Manual ERROR ERROR Defined values <server_IP> A string parameter that identifies the IP address of TCP server.The IP address format consists of 4 octets,separated by decimal point:”AAA.BBB.CCC.DDD”.In the latest software version,it already Supports DNS query,so it may be a string like “www.google.cn.”. <port> A numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to 65535. <err_info> A string parameter that displays the cause of occurring error. Examples AT+TCPCONNECT=”192.168.0.1”,80 OK AT+TCPCONNECT=”192.168.0.1”,80 Connect fail ERROR AT+TCPCONNECT=”www.google.cn”,80 OK 19.7 AT+TCPWRITE Send TCP data Description The command sends TCP data when the TCP connection is established. SIM PIN YES References Vendor Syntax Test Command AT+TCPWRITE=? Responses OK ERROR +CME ERROR: <err> Write Command AT+TCPWRITE=<length> <CR>data for send Responses +TCPWRITE: <reqSendLength>, <cnfSendLength> OK SIM5218_Serial _AT Command Manual_V1.21 305 1/13/2011
  • 307. SIM5218 Serial AT Command Manual If sending successfully: Send ok +IP ERROR: <err_info> ERROR ERROR Defined values <length> a numeric parameter which indicates the length of sending data, it must less than 1024. <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 side’s congestion window are full. <err_info> A string parameter that displays the cause of occurring error. Examples AT+TCPWRITE=12 >ABCDEFGHIJKL +TCPWRITE:12, 12 OK Send ok 19.8 AT+UDPSEND Send UDP data Description The command sends UDP data. SIM PIN YES References Vendor Syntax Test Command AT+UDPSEND =? Responses OK ERROR SIM5218_Serial _AT Command Manual_V1.21 306 1/13/2011
  • 308. SIM5218 Serial AT Command Manual +CME ERROR: <err> Write Command AT+UDPSEND=<length>,< IP_address>,<port><CR> data for send Responses +UDPSEND: <reqSendLength>, <cnfSendLength> OK +IP ERROR: <err_info> ERROR ERROR Defined values <length> a numeric parameter which indicates the length of sending data, it must less than 1024 <IP_address> A string parameter that identifies the IP address of receiver.The IP address format consists of 4 octets,separated by decimal point:”AAA.BBB.CCC.DDD”.In the latest software version,it already Supports DNS query,so it may be a string like “www.google.cn.”. <port> A numeric parameter that identifies the port of receiver, the range of permitted values is 0 to 65535. <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 side’s congestion window are full. <err_info> A string parameter that displays the cause of occurring error. Examples AT+UDPSEND=12,”192.168.0.1”,80 >ABCDEFGHIJKL +UDPSEND: 12, 12 OK 19.9 AT+SERVERSTART Startup TCP server Description The 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: <client_IP>:<port>. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 307 1/13/2011
  • 309. SIM5218 Serial AT Command Manual YES Vendor Syntax Test Command AT+SERVERSTART=? Responses OK ERROR +CME ERROR: <err> Execution Command AT+SERVERSTART Responses OK +IP ERROR: <err_info> ERROR Defined values <client_IP> A string parameter that identifies the IP address of client. <port> A numeric parameter that identifies the port of client. Examples AT+SERVERSTART OK 19.10 AT+LISTCLIENT List all of clients’ information Description The command lists all of clients’ information, and these clients have already been connected with TCP server. SIM PIN YES References Vendor Syntax Test Command AT+LISTCLIENT=? Responses OK Write Command AT+LISTCLIENT Responses [+LISTCLIENT: <index1>, <IP_address>, <port>] … [+LISTCLIENT: <indexN>, <IP_address>, <port>] SIM5218_Serial _AT Command Manual_V1.21 308 1/13/2011
  • 310. SIM5218 Serial AT Command Manual OK +IP ERROR: <err_info> ERROR ERROR Defined values <indexX> A numeric parameter that identifies the index of client, the max number of client is ten, and the range of permitted values is 0 to 9. <IP_address> A string parameter that identifies the IP address of client. <port> A numeric parameter that identifies the port of client, the range of permitted values is 0 to 65535. <err_info> A string parameter that displays the cause of occurring error. Examples AT+LISTCLIENT +LISTCLIENT: 0, 10.71.34.32 , 80 +LISTCLIENT: 1, 10.71.78.89, 1020 OK 19.11 AT+CLOSECLIENT Disconnect specified client Description The command disconnects the specified client.if the client disconnects connection, an unsolicited result code is returned.The unsolicited result code is +IPCLOSE: <client_index>, <close_reason>,<remote_IP>,<port>. SIM PIN YES References Vendor Syntax Test Command AT+CLOSECLIENT=? Responses OK Write Command AT+CLOSECLIENT= Responses OK SIM5218_Serial _AT Command Manual_V1.21 309 1/13/2011
  • 311. SIM5218 Serial AT Command Manual <client_index> +IP ERROR: <err_info> ERROR ERROR Defined values <client_index> A numeric parameter that identifies the client index which will be closed, The allocated index may be read using command AT+LISTCLIENT. <close_reason> a numeric parameter that identifies reason that the connection closed. 1 remote side sends a request of closing first. 2 reset the connection because of timeout of sending data,or other reasons. <remote_IP> A string parameter that identifies the IP address of client. <port> A numeric parameter that identifies the port of client. <err_info> A string parameter that displays the cause of occurring error. Examples AT+CLOSECLIENT=0 OK 19.12 AT+ACTCLIENT Activate specified client Description The command activates the specified client, when the client is activated, the client is able to receive data from TCP server or send data to the TCP server. SIM PIN YES References Vendor Syntax Test Command AT+ACTCLIENT=? Responses OK Write Command AT+ACTCLIENT= <client_index> Responses OK +IP ERROR: <err_info> ERROR SIM5218_Serial _AT Command Manual_V1.21 310 1/13/2011
  • 312. SIM5218 Serial AT Command Manual ERROR Defined values <client_index> A numeric parameter that identifies the client index which will be closed. The allocated index may be read using command AT+LISTCLIENT. <err_info> A string parameter that displays the cause of occurring error. Examples AT+ ACTCLIENT=0 OK 19.13 AT+NETCLOSE Close socket Description The command closes socket, if the socket is opened for a server, then it will disconnect all of clients’ connection that is connected with the server. SIM PIN YES References Vendor Syntax Test Command AT+NETCLOSE =? Responses OK Execution Command AT+NETCLOSE Responses OK +IP ERROR: <err_info> ERROR ERROR Defined values <err_info> A string parameter that displays the cause of occurring error. Examples AT+NETCLOSE Network closed SIM5218_Serial _AT Command Manual_V1.21 311 1/13/2011
  • 313. SIM5218 Serial AT Command Manual OK 19.14 AT+CIPHEAD Add an IP head when receiving data Description The 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 Set default value: OK 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 OK 19.15 AT+CIPSRIP Set whether display IP address and port of sender SIM5218_Serial _AT Command Manual_V1.21 312 1/13/2011
  • 314. SIM5218 Serial AT Command Manual when receiving data Description The 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 19.16 AT+CIPCCFG Configure parameters of socket Description SIM5218_Serial _AT Command Manual_V1.21 313 1/13/2011
  • 315. SIM5218 Serial AT Command Manual The command is used to configure parameters of socket. 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) OK Read Command AT+CIPCCFG? Responses +CIPCCFG:<NmRetry>,<DelayTm>,<Ack>,<errMode>,<HeaderType> OK Write Command AT+CIPCCFG= <NmRetry>[,<DelayTm>[,< Ack>[,<errMode>[,<Header Type>]]]] Execution Command AT+CIPCCFG Responses OK ERROR 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 3. <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 <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 SIM5218_Serial _AT Command Manual_V1.21 314 1/13/2011
  • 316. SIM5218 Serial AT Command Manual < 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>” Examples AT+CIPCCFG=? +CIPCCFG: (3-8),(0-1000),(0-1),(0-1),(0-1) OK AT+CIPCCFG=3,500,1,1,1 OK 19.17 AT+CIPOPEN Establish connection in multi-client mode Description The command is used to establish a connection with TCP server and UDP server,The sum of all of connections are 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 +CME ERROR: <err> Read Command AT+CIPOPEN? Responses +CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>] +CIPOPEN: <link_num> [,<type>,<serverIP>,<serverPort>] […] OK +IP ERROR: <err_info> ERROR +CME ERROR: <err> Write Command AT+CIPOPEN= <link_num>,<type>,<serverI Responses OK +IP ERROR: <err_info> SIM5218_Serial _AT Command Manual_V1.21 315 1/13/2011
  • 317. SIM5218 Serial AT Command Manual P>,<serverPort> ERROR +CME ERROR: <err> Defined values <link_num> a numeric parameter that identifies a connection. the range of permitted values is 0 to 9. <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”.In the latest software version,it already Supports DNS query,so it may be a string like “www.google.cn.”. <serverPort> a numeric parameter that identifies the port of TCP server, the range of permitted values is 0 to 65535. <err_info> A string parameter that displays the cause of occurring error. Examples AT+CIPOPEN=0,"TCP","116.228.221.51",100 Connect ok OK AT+CIPOPEN=? +CIPOPEN: (0-9), ("TCP", "UDP") OK AT+CIPOPEN? +CIPOPEN: 0, "TCP", "116.228.221.51", 100 +CIPOPEN: 1 +CIPOPEN: 2 +CIPOPEN: 3 +CIPOPEN: 4 +CIPOPEN: 5 +CIPOPEN: 6 +CIPOPEN: 7 +CIPOPEN: 8 +CIPOPEN: 9 OK AT+CIPOPEN=0,"TCP","www.google.cn",80 Connect ok SIM5218_Serial _AT Command Manual_V1.21 316 1/13/2011
  • 318. SIM5218 Serial AT Command Manual OK 19.18 AT+CIPSEND Send data in multi-client mode Description The command sends some data to remote host in mult-client mode. SIM PIN YES References Vendor Syntax Test Command AT+CIPSEND =? Responses +CIPSEND: (list of supported <link_num>s), (list of supported < length >s) OK +IP ERROR: <err_info> ERROR +CME ERROR: <err> Read Command AT+CIPSEND? Responses OK +CME ERROR: <err> Write Command AT+CIPSEND=<link_num>, <length><CR>data for send Responses +CIPSEND: <reqSendLength>, <cnfSendLength> OK If sending successfully: Send ok +IP ERROR: <err_info> ERROR +CME ERROR: <err> 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 less than 1024. <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. SIM5218_Serial _AT Command Manual_V1.21 317 1/13/2011
  • 319. SIM5218 Serial AT Command Manual -1 the connection is disconnected. 0 own send buffer or other side’s congestion window are full. <err_info> A string parameter that displays the cause of occurring error. Examples AT+CIPSEND=0,1 >S +CIPSEND: 1, 1 OK Send ok AT+CIPSEND=? +CIPSEND: (0-9), (1-1024) OK 19.19 AT+CIPCLOSE Close connection in Multi-client mode Description The command closes a specified connection in multi-client mode. SIM PIN YES References Vendor Syntax Test Command AT+CIPCLOSE =? Responses +CIPCLOSE: (list of supported <link_num>s) OK +CME ERROR: <err> 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 +IP ERROR: <err_info> ERROR +CME ERROR: <err> Write Command AT+CIPCLOSE= <link_num> Responses OK +IP ERROR: <err_info> ERROR SIM5218_Serial _AT Command Manual_V1.21 318 1/13/2011
  • 320. SIM5218 Serial AT Command Manual +CME ERROR: <err> 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 19.20 AT+CDNSGIP Query the IP address of given domain name Description The command is used to query the IP address of given domain name. SIM PIN YES References 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 SIM5218_Serial _AT Command Manual_V1.21 319 1/13/2011
  • 321. SIM5218 Serial AT Command Manual 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 19.21 AT+CIPMODE Select TCPIP application mode Description The command is used to select TCPIP application modes that includes two modes(normal mode and transparent mode).The default mode is normal 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 SIM5218_Serial _AT Command Manual_V1.21 320 1/13/2011
  • 322. SIM5218 Serial AT Command Manual Execution Command AT+CIPMODE Responses Set default value(<mode>=0): OK Defined values <mode> 0 – 1 – Normal mode Transparent mode Examples AT+CIPMODE? +CIPMODE: 1 OK AT+CIPMODE=1 OK AT+CIPMODE=? +CIPMODE: (0-1) OK AT+CIPMODE OK 19.22 Information elements related to TCP/IP The following table lists information elements which may be returned.It should be noted that TCP/IP socket problems may occur or result may be executed. Information Description Network opened Indicate that the write command AT+NETOPEN has excuted successfully. Network not opened Indicate that you should execute AT+NETOPEN first. Network is already opened Indicate that the write command of AT+NETOPEN has already executed successfully. Port overflow Indicate that input port is out of range. Create socket failed Indicate that socket has not been created su ccessfully. Bind port failed Indicate that input port is already in use. Connect ok Indicate that establishing a connection succe ssfully. Connection is already created Indicate that a connection has been already established. SIM5218_Serial _AT Command Manual_V1.21 321 of 1/13/2011
  • 323. SIM5218 Serial AT Command Manual Connect fail Indicate that establishing a connection unsuccessfully No clients connected Indicate that module as TCP server has no any connection. No active client Indicate that you should execute AT+ACTCLIENT first and select a connection. Client index overflow Indicate that input client’s index is out of range. Connection disconnected Indicate that the remote end has closed the connection. Socket closed Indicate that socket is closed. Network closed Indicate that the write command AT+NETCLOSE has excuted successfully. Network is already closed Indicate that network has been closed now. SIM5218_Serial _AT Command Manual_V1.21 322 of 1/13/2011
  • 324. SIM5218 Serial AT Command Manual 20 SIM Application Toolkit (SAT) Commands 20.1 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 NO References Vendor Syntax Test Command AT+STIN=? Responses OK Read Command AT+STIN? Responses +STIN: <cmd_id> OK Unsolicited Result Codes +STIN: <cmd_id> Proactive Command notification 21 – display text 22 – get inkey 23 – get input 24 – select item +STIN: 25 Notification that SIM Application has returned to main menu. If user does any action in 2 seconds, application will return to main menu automatically. VOICE CALL: BEGIN Notification that SIM Application has originated a voice call. Defined values <cmd_id> 21 – display text 22 – get inkey SIM5218_Serial _AT Command Manual_V1.21 323 1/13/2011
  • 325. SIM5218 Serial AT Command Manual 23 24 25 – get input – select item – set up menu Examples AT+STIN? +STIN: 24 OK 20.2 AT+STGI Get SAT information 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 NO 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> SIM5218_Serial _AT Command Manual_V1.21 324 1/13/2011
  • 326. SIM5218 Serial AT Command Manual +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 SIM5218_Serial _AT Command Manual_V1.21 325 1/13/2011
  • 327. SIM5218 Serial AT Command Manual 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 SIM5218_Serial _AT Command Manual_V1.21 326 1/13/2011
  • 328. SIM5218 Serial AT Command Manual 20.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 NO 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: <data> ignore SIM5218_Serial _AT Command Manual_V1.21 327 1/13/2011
  • 329. SIM5218 Serial AT Command Manual 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 SIM5218_Serial _AT Command Manual_V1.21 328 1/13/2011
  • 330. SIM5218 Serial AT Command Manual 21 Internet Service Command 21.1 Simple mail transfer protocol service 21.1.1 AT+SMTPSRV SMTP server address and port number Description The synchronous command is used to set SMTP server address and server’s 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 won’t 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 128 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 SIM5218_Serial _AT Command Manual_V1.21 329 1/13/2011
  • 331. SIM5218 Serial AT Command Manual AT+SMTPSRV? +SMTPSRV: "smtp.server.com", 25 OK AT+SMTPSRV OK AT+SMTPSRV? +SMTPSRV: "", 25 OK 21.1.2 AT+SMTPAUTH SMTP server authentication Description The 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 won’t 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. 0 – SMTP server doesn’t require authentication, factory value. SIM5218_Serial _AT Command Manual_V1.21 330 1/13/2011
  • 332. SIM5218 Serial AT Command Manual 1 – SMTP server requires authentication. <user> User name to be used for SMTP authentication, non empty string with double quotes and up to 128 characters. <pwd> Password to be used for SMTP authentication, string with double quotes and up to 128 characters. NOTE If <flag> is 0, <user> and <pwd> must be omitted (i.e. only <flag> is present). Examples AT+SMTPAUTH? +SMTPAUTH: 0, “”, “” OK AT+SMTPAUTH=1,”username”,”password” OK AT+SMTPAUTH? +SMTPAUTH: 0, ”username”, ”password” OK AT+SMTPAUTH OK AT+SMTPAUTH? +SMTPAUTH: 0, “”, “” OK 21.1.3 AT+SMTPFROM Sender address and name Description The synchronous command is used to set sender’s address and name, which are used to construct e-mail header. The sender’s address must be correct, and if the process of sending an e-mail is ongoing, the command will return “ERROR” directly. Read command returns current sender’s address and name. Execution command will clear sender’s address and name. NOTE After an e-mail is sent successfully or unsuccessfully, sender address and name won’t be cleared. SIM PIN YES References Vendor Syntax Test Command AT+SMTPFROM=? Read Command AT+SMTPFROM? Responses OK Responses +SMTPFROM: <saddr>, <sname> OK SIM5218_Serial _AT Command Manual_V1.21 331 1/13/2011
  • 333. SIM5218 Serial AT Command Manual Write Command AT+SMTPFROM= <saddr>[, <sname>] Responses OK Execution Command AT+SMTPFROM Responses OK Defined values <saddr> E-mail sender address (MAIL FROM), non empty string with double quotes, mandatory and ASCII text up to 128 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 64 characters. <sname> will be present in the header of the e-mail sent by SMTP client in the field: “From: ”. Examples AT+SMTPFROM="senderaddress@server.com","sendername" OK AT+SMTPFROM? +SMTPFROM: "senderaddress@server.com", "sendername" OK AT+SMTPFROM OK AT+SMTPFROM? +SMTPFROM: "", "" OK 21.1.4 AT+SMTPRCPT Recipient address and name (TO/CC/BCC) Description The 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 won’t be cleared. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 332 1/13/2011
  • 334. SIM5218 Serial AT Command Manual 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 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 128 characters. <rname> Recipient name, string type with double quotes, and up to 64 characters. Examples AT+SMTPRCPT=0, 0, “rcptaddress_to@server.com”, “rcptname_to” OK AT+SMTPRCPT? +SMTPRCPT: 0, 0, “rcptaddress_to@server.com”, “rcptname_to” OK AT+SMTPRCPT=1, 0, “rcptaddress_cc@server.com”, “rcptname_cc” OK AT+SMTPRCPT? +SMTPRCPT: 0, 0, “rcptaddress_to@server.com”, “rcptname_to” +SMTPRCPT: 1, 0, “rcptaddress_cc@server.com”, “rcptname_cc” SIM5218_Serial _AT Command Manual_V1.21 333 1/13/2011
  • 335. SIM5218 Serial AT Command Manual OK 21.1.5 AT+SMTPSUB E-mail subject Description The 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 won’t 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 512 characters. <subject> will be present in the header of the e-mail sent by SMTP client in the field: “Subject: ”. Examples AT+SMTPSUB? +SMTPSUB: “” OK AT+SMTPSUB=”THIS IS A TEST MAIL” OK AT+SMTPSUB? +SMTPSUB: “THIS IS A TEST MAIL” OK 21.1.6 AT+SMTPBODY E-mail body SIM5218_Serial _AT Command Manual_V1.21 334 1/13/2011
  • 336. SIM5218 Serial AT Command Manual Description The 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 won’t 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 <body> E-mail body, string with double quotes, and printable ASCII text up to 512 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.” SIM5218_Serial _AT Command Manual_V1.21 335 1/13/2011
  • 337. SIM5218 Serial AT Command Manual OK AT+SMTPBODY >> This is a test mail.<ESC> OK AT+SMTPBODY? +SMTPBODY: “” OK 21.1.7 AT+SMTPFILE 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. Execute command will clear all attachments. NOTE After an e-mail is sent successfully, attachment will be cleared, if unsuccessfully, it won’t be cleared. The same file can’t be selected twice. SIM PIN YES References Vendor Syntax Test Command AT+SMTPFILE=? Responses +SMTPFILE: (list of supported <index>s) OK 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 SIM5218_Serial _AT Command Manual_V1.21 336 1/13/2011
  • 338. SIM5218 Serial AT Command Manual system commands). SMTP client doesn’t allow two attachments with the same file name. <filesize> File size in decimal format. The total size of all attachments can’t exceed 10MB. Examples AT+SMTPFILE=1,”file1.txt” OK AT+SMTPFILE? +SMTPFILE: 1, “D:/file1.txt” OK AT+SMTPFILE=2,”file2.txt” OK AT+SMTPFILE? +SMTPFILE: 1, “D:/file1.txt” +SMTPFILE: 2, “D:/file2.txt” OK 21.1.8 AT+SMTPSEND Initiate session and send e-mail Description The 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 doesn’t 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 an 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 +SMTP: OK OK SIM5218_Serial _AT Command Manual_V1.21 337 1/13/2011
  • 339. SIM5218 Serial AT Command Manual +SMTP: <code> +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 can’t send the e-mail again. 0 – Not ongoing. 1 – Ongoing. <code> SUCCESS SMTP client has sent the e-mail successfully. ONGOING The process of sending an e-mail is ongoing. PARAM ERROR NETWORK ERROR Mandatory parameter isn’t set (SMTP server, or sender/recipient address) Invalid SMTP server. Network is bad for establishing session or sending data to SMTP server. SMTP server released the session. SMTP server rejects the operation with wrong response. SMTP server doesn’t give SMTP client a response in time. Authentication is required by SMTP server. SMTP server rejects the session because of bad user name and password combination. SERVER ERROR AUTH REQUIRED AUTH ERROR Examples AT+SMTPSEND? +SMTPSEND: 0 OK AT+SMTPSEND +SMTP: OK OK +SMTP: SUCCESS 21.1.9 AT+SMTPSTOP Force to stop sending e-mail Description The synchronous command is used to force to stop sending e-mail and close the TCP session while sending an e-mail is ongoing. Otherwise, the command will return “ERROR” directly. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 338 1/13/2011
  • 340. SIM5218 Serial AT Command Manual Test Command AT+SMTPSTOP=? Responses OK Execution Command AT+SMTPSTOP Responses OK ERROR Examples AT+SMTPSEND? +SMTPSEND: 1 OK AT+SMTPSTOP OK 21.2 Post Office Protocol 3 Service 21.2.1 AT+POP3SRV POP3 server and account Description The synchronous command is used to set all parameters to get and e-mail from POP3 server, including server address, port number, user name and password. If POP3 client isn’t free, the command will return “ERROR” directly. Read command returns current all information about POP3 server and account. Execution command will clear POP3 server address, user name and password, and set server’s port number as default value. NOTE After an e-mail is sent successfully or unsuccessfully, POP3 server and account information won’t be cleared. SIM PIN YES References Vendor Syntax Test Command AT+POP3SRV=? Read Command AT+POP3SRV? Write Command AT+POP3SRV=<server>, <user>, <pwd>[, <port>] Execution Command Responses +POP3SRV: (list of supported <port>s) OK Responses +POP3SRV: <server>, <user>, <pwd>, <port> OK Responses OK Responses SIM5218_Serial _AT Command Manual_V1.21 339 1/13/2011
  • 341. SIM5218 Serial AT Command Manual AT+POP3SRV OK Defined values <server> POP3 server address, non empty string with double quotes, mandatory and ASCII text string up to 128 characters. <user> User name to log in POP3 server, non empty string with double quotes, and up to 128 characters. <pwd> Password to log in POP3 server, non empty string with double quotes, and up to 128 characters. <port> Port number of POP3 server in decimal format, from 1 to 65535, and default port is 110 for POP3. Examples AT+POP3SRV=? +POP3SRV: (1-65535) OK AT+POP3SRV? +POP3SRV: “”, “”, “”, 110 OK AT+POP3SRV=”pop3.server.com”, “user_name”, “password”, 110 OK AT+POP3SRV? +POP3SRV: “pop3.server.com”, “user_name”, “password”, 110 OK AT+POP3SRV OK AT+POP3SRV? +POP3SRV: “”, “”, “”, 110 OK 21.2.2 AT+POP3IN Log in POP3 server Description The asynchronous command is used to log in POP3 server and establish a session after POP3 server and account information are set rightly. If the POP3 client logs in POP3 server successfully, the response “+POP3: SUCCESS” will be returned to TE; if no POP3 operation for a long time after the session is ready, POP3 server may release the session. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 340 1/13/2011
  • 342. SIM5218 Serial AT Command Manual Test Command AT+POP3IN=? Read Command AT+POP3IN? Execute Command AT+POP3IN Responses OK Responses +POP3IN: “<server>” OK +POP3IN: NULL OK Responses +POP3: SUCCESS OK +POP3: <code> ERROR Defined values <code> NETWORK ERROR SERVER ERROR Invalid POP3 server or network is bad for establishing session or sending data to POP3 server. POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. Invalid user name to log in POP3 server. Invalid user name and password combination to log in POP3 server. INVALID UN INVALID UN/PWD <server> The address of the POP3 server currently logged in. Examples AT+POP3IN=? OK AT+POP3IN +POP3: SUCCESS OK 21.2.3 AT+POP3NUM Get e-mail number and total size Description The asynchronous command is used to get e-mail number and total size on the specified POP3 server after the POP3 client logs in POP3 server successfully and no other POP3 operation is ongoing. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 341 1/13/2011
  • 343. SIM5218 Serial AT Command Manual Test Command AT+POP3NUM=? Responses OK Execution Command AT+POP3NUM Responses +POP3: <num>, <tsize> OK +POP3: <code> ERROR Defined values <num> The e-mail number on the POP3 server, decimal format. <tsize> The total size of all e-mail and the unit is in Byte. <code> NETWORK ERROR Network is bad for sending data to POP3 server. SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. Examples AT+POP3NUM=? OK AT+POP3NUM +POP3: 1, 3057 OK AT+POP3NUM +POP3: ONGOING OK 21.2.4 AT+POP3LIST List e-mail ID and size Description The asynchronous command is used to list e-mail number and total size, e-mail ID and each e-mail’s size after the POP3 client logs in POP3 server successfully and no other POP3 operation is ongoing. The e-mail ID may be used to do those operations: get e-mail header, get the whole e-mail, and mark an e-mail to delete from POP3 server. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 342 1/13/2011
  • 344. SIM5218 Serial AT Command Manual Test Command AT+POP3LIST=? Responses OK Write Command AT+POP3LIST=<msg_id> Responses +POP3: <msg_id>, <size> OK ERROR Execution Command AT+POP3LIST Responses +POP3: <num> <tsize> [<msg_id> <size> [<CR><LF>…]] OK +POP3: <code> ERROR Defined values <num> The e-mail number on the POP3 server, decimal format. <tsize> The total size of all e-mail and the unit is in Byte. <msg_id> The e-mail’s ID. <size> The size of e-mail <msg_id>, and the unit is in Byte. <code> NETWORK ERROR Network is bad for sending data to POP3 server. SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. POP3 client gives wrong e-mail’s ID. Examples AT+POP3LIST=? OK AT+POP3LIST +POP3: 1 3056 1 3056 OK AT+POP3LIST=1 +POP3: 1, 3056 OK SIM5218_Serial _AT Command Manual_V1.21 343 1/13/2011
  • 345. SIM5218 Serial AT Command Manual 21.2.5 AT+POP3HDR Get e-mail header Description The asynchronous command is used to retrieve e-mail’s sender address, date and sender address, that are present in the mail’s header. SIM PIN YES References Vendor Syntax Test Command AT+POP3HDR=? Responses OK Write Command AT+POP3HDR=<msg_id> Responses From: [<from>] Date: [<date>] Subject: [<sub>] OK +POP3: <code> ERROR Defined values <msg_id> The e-mail’s ID. <from> E-mail’s sender name and sender address from mail <date> E-mail’s date from mail header. <sub> E-mail’s subject from mail header. <code> NETWORK ERROR Network is bad for sending data to POP3 server. SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. POP3 client gives wrong e-mail’s ID. Examples AT+POP3HDR=1 From: sendername<senderaddress@server.com> Date: Mon, 17 Aug 2009 14:09:27 +0800 Subject: THIS IS A TEST MAIL SIM5218_Serial _AT Command Manual_V1.21 344 1/13/2011
  • 346. SIM5218 Serial AT Command Manual OK 21.2.6 AT+POP3GET Get an e-mail from POP3 server Description The command is used to retrieve specified e-mail from the POP3 server. After retrieving an e-mail successfully, POP3 client will create a directory and save the e-mail’s header and body into file system as file “EmailXYZ.TXT”, and save each attachment as a file under the same directory. SIM PIN YES References Vendor Syntax Test Command AT+POP3GET=? Responses OK Write Command AT+POP3GET=<msg_id>,[ <get_type>] Responses OK +POP3: <code> <mail_dir>, <mail_file> +POP3: <code> ERROR Defined values <msg_id> The e-mail’s ID. <mail_dir> The directory for e-mail and attachment, string type without double quotes and the format is “YYMMDDHHMMSS” which is generated according to module’s RTC. According to the setting of command +FSLOCA (refer to file system commands), TE can select the location (local file system or storage card) in which POP3 client saves e-mail file and attachment. <mail_file> The file to save e-mail’s header and body, string type without double quotes. Usually, this file name is “EMAIL000.TXT”, and if e-mail includes an attachment whose name is the same as the e-mail file, the number in the e-mail file name will be increase by 1, e.g. “EMAIL001.TXT”, “EMAIL002.TXT”. <code> NETWORK ERROR Network is bad for sending or receiving data to POP3 server. SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. SIM5218_Serial _AT Command Manual_V1.21 345 1/13/2011
  • 347. SIM5218 Serial AT Command Manual POP3 client gives wrong e-mail’s ID. FILE SYSTEM ERROR File system is bad for saving e-mail or attachment, storage space isn’t enough, or storage card is pulled out. If POP3 client encounters this error, POPE client will close the session with POP3 server. POP3 client gets an e-mail from POP3 server successfully. POP3 client gets an e-mail unsuccessfully. SUCCESS FAILURE <get_type> The type to save when getting message from POP3 server: 1 – Save parsed body file and attachments 2 – Save the whole message as a “.eml” file. 3 – Save the parsed body file, attachments and eml file. Examples AT+POP3GET=1 OK +POP3: SUCCESS C:/Email/090901120000/, EMAIL000.TXT AT+POP3GET=1,2 OK +POP3: SUCCESS C:/Email/090901120000/, 090901120000.eml AT+POP3GET=2 OK +POP3: FAILURE 21.2.7 AT+POP3DEL Mark an e-mail to delete from POP3 server Description The asynchronous command is used to mark an e-mail to delete from POP3 server. The operation only marks an e-mail on the server to delete it, and after POP3 client logs out POP3 server and closes the session normally, the marked e-mail is deleted on the server. Otherwise, the e-mail isn’t deleted. SIM PIN YES References Vendor Syntax Test Command AT+POP3DEL=? Responses OK Write Command Responses SIM5218_Serial _AT Command Manual_V1.21 346 1/13/2011
  • 348. SIM5218 Serial AT Command Manual AT+POP3DEL=<msg_id> +POP3: SUCCESS OK +POP3: <code> ERROR Defined values <msg_id> E-mail’s ID for mark to delete it on POP3 server. <code> NETWORK ERROR Network is bad for sending data to POP3 server. SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. POP3 client gives wrong e-mail’s ID. Examples AT+POP3DEL=1 +POP3: SUCCESS OK 21.2.8 AT+POP3OUT Log out POP3 server Description The command will log out the POP3 server and close the session, and if there are some e-mails which are marked to delete, it also informs POP3 server to delete the marked e-mails. SIM PIN YES References Vendor Syntax Test Command AT+POP3OUT=? Responses OK Execution Command AT+POP3OUT Responses +POP3: SUCCESS OK +POP3: <code> ERROR Defined values <code> NETWORK ERROR Network is bad for sending data to POP3 server. SIM5218_Serial _AT Command Manual_V1.21 347 1/13/2011
  • 349. SIM5218 Serial AT Command Manual SERVER ERROR POP3 server released the session. POP3 server rejects the operation with wrong response. POP3 server doesn’t give POP3 client a response in time. POP3 client gives wrong e-mail’s ID. Examples AT+POP3OUT +POP3: SUCCESS OK 21.2.9 AT+POP3STOP Force to stop receiving e-mail/close the session Description The synchronous command is used to force to close the session, and if the process of receiving e-mail is ongoing, the command also stops the operation. Otherwise, the command will return “ERROR” directly. If an e-mail has been marked to delete, POP3 server won’t delete the e-mail after the session is closed. SIM PIN YES References Vendor Syntax Test Command AT+POP3STOP=? Responses OK Execution Command AT+POP3STOP Responses OK ERROR Examples AT+POP3STOP OK 21.2.10 AT+POP3READ Read an e-mail from file system Description The command is used to read an e-mail from file system. If the process of receiving e-mail is ongoing, the command can’t read an e-mail. Execution command is used to read the e-mail which is received just now. SIM PIN YES References Vendor Syntax Syntax SIM5218_Serial _AT Command Manual_V1.21 348 1/13/2011
  • 350. SIM5218 Serial AT Command Manual Test Command AT+POP3READ=? Responses OK Write Command AT+POP3READ= <location>, <mail_file> Responses <e-mail> OK ERROR Execution Command AT+POP3READ Responses <e-mail> OK ERROR Defined values <location> The location from which TE reads an e-mail. 0 – Local file system. 1 – Storage card. <mail_file> The e-mail’s file name, string type with double quotes and including a directory name and a text file name separated by the list separator “/”, e.g. “090901103000/EMAIL000.TXT”. <e-mail> The content of e-mail, including e-mail header and body. 21.3 File Transfer Protocol Service 21.3.1 AT+CFTPPORT Set FTP server port Description The command is used to set FTP server port. SIM PIN YES References Vendor Syntax Test Command AT+CFTPPORT=? Read Command AT+CFTPPORT? Write Command Responses +CFTPPORT: (list of supported <port>s) OK Responses +CFTPPORT: <port> OK Responses SIM5218_Serial _AT Command Manual_V1.21 349 1/13/2011
  • 351. SIM5218 Serial AT Command Manual AT+CFTPPORT=<port> 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 21.3.2 AT+CFTPMODE Set FTP mode Description The command is used to set FTP passive/proactive mode. Default is proactive mode. SIM PIN YES References Vendor Syntax 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. SIM5218_Serial _AT Command Manual_V1.21 350 1/13/2011
  • 352. SIM5218 Serial AT Command Manual 1 – passive mode. Examples AT+CFTPMODE=1 OK AT+CFTPMODE? +CFTPMODE: 1 OK AT+CFTPMODE=? +CFTPMODE: (0,1) OK 21.3.3 AT+CFTPTYPE Set FTP type Description The command is used to set FTP type. Default is binary type. SIM PIN YES References Vendor Syntax Test Command AT+CFTPTYPE=? Read Command AT+CFTPTYPE? Write Command AT+CFTPTYPE=<type> Responses +CFTPTYPE: (list of supported <type>s) OK Responses +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? SIM5218_Serial _AT Command Manual_V1.21 351 1/13/2011
  • 353. SIM5218 Serial AT Command Manual +CFTPTYPE: A OK AT+CFTPTYPE=? +CFTPTYPE: (A,I) OK 21.3.4 AT+CFTPSERV Set FTP server domain name or IP address Description The 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= ”<address>” Responses +CFTPSERV: “ADDRESS” OK Responses +CFTPSERV: ”<address>” OK Responses OK +CME ERROR Defined values <address> The FTP server domain name or IP address. 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 21.3.5 AT+CFTPUN Set user name for FTP access SIM5218_Serial _AT Command Manual_V1.21 352 1/13/2011
  • 354. SIM5218 Serial AT Command Manual Description The 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. Examples AT+CFTPUN=”myname” OK AT+CFTPUN=”anonymous” OK AT+CFTPUN? +CFTPUN: “myname” OK AT+CFTPUN=? +CFTPUN: ”NAME” OK 21.3.6 AT+CFTPPW Set user password for FTP access Description The command is used to set user password for FTP server access. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 353 1/13/2011
  • 355. SIM5218 Serial AT Command Manual 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. Examples AT+CFTPPW=”mypass” OK AT+CFTPPW? +CFTPPW: “mypass” OK AT+CFTPPW=? +CFTPPW: ”mypass” OK 21.3.7 AT+CFTPGETFILE Get a file from FTP server to EFS Description The 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> Responses +CFTPGETFILE: [{non-ascii}]“FILEPATH”, (0-8) OK Responses OK +CFTPGETFILE: 0 +CME ERROR OK SIM5218_Serial _AT Command Manual_V1.21 354 1/13/2011
  • 356. SIM5218 Serial AT Command Manual +CFTPGETFILE: <err> Defined values <filepath> The remote file path. When the file path doesn’t 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] 1 – “C:/Picture” directory 2 – “C:/Video” directory 3 – “C:/VideoCall” directory 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/Audio” directory <err> The error code of FTP operation. Examples AT+CFTPGETFILE=”/pub/mydir/test1.txt”,1 OK … +CFTPGETFILE: 0 AT+CFTPGETFILE=” test2.txt”,2 OK … +CFTPGETFILE: 0 AT+CFTPGETFILE={non-ascii}” B2E2CAD42E747874”,2 OK … +CFTPGETFILE: 0 AT+CFTPGETFILE=? +CFTPGETFILE: [{non-ascii}]“FILEPATH”,(0-8) OK 21.3.8 AT+CFTPPUTFILE Put a file in module EFS to FTP server Description The command is used to upload a file in the module EFS to FTP server. SIM5218_Serial _AT Command Manual_V1.21 355 1/13/2011
  • 357. SIM5218 Serial AT Command Manual SIM PIN YES References Vendor Syntax Test Command AT+CFTPPUTFILE=? Write Command AT+CFTPPUTFILE= “<filepath>”,<dir> Responses +CFTPPPUTFILE: [{non-ascii}] “FILEPATH”, (0-8) OK Responses OK +CFTPPUTFILE: 0 +CME ERROR OK +CFTPPUTFILE: <err> Defined values <filepath> The remote file path. When the file path doesn’t 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] 1 – “C:/Picture” directory 2 – “C:/Video” directory 3 – “C:/VideoCall” directory 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/Audio” directory <err> The error code of FTP operation. Examples AT+CFTPPUTFILE=”/pub/mydir/test1.txt”,1 OK AT+CFTPPUTFILE=” test2.txt”,1 OK … +CFTPPUTFILE: 0 SIM5218_Serial _AT Command Manual_V1.21 356 1/13/2011
  • 358. SIM5218 Serial AT Command Manual AT+CFTPPUTFILE={non-ascii}” B2E2CAD42E747874”,1 OK … +CFTPPUTFILE: 0 AT+CFTPPUTFILE=? +CFTPPUTFILE: [{non-ascii}]“FILEPATH”,(0-8) OK 21.3.9 AT+CFTPGET Get a file from FTP server and output it from SIO Description The 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>” Responses +CFTPGET: [{non-ascii}] “FILEPATH” OK Responses OK +CFTPGET: DATA,<len> … +CFTPGET: DATA, <len> … … +CFTPGET: 0 +CME ERROR +CFTPGET: DATA, <len> … +CFTPGET: DATA, <len> … … +CFTPGET: <err> Defined values <filepath> The remote file path. When the file path doesn’t contain ”/”, this command transfer file from the current remote FTP directory. If the file path contains non-ASCII characters, the file path parameter SIM5218_Serial _AT Command Manual_V1.21 357 1/13/2011
  • 359. SIM5218 Serial AT Command Manual should contain a prefix of {non-ascii}. <len> The length of FTP data contained in this packet. <err> The error code of FTP operation. Examples AT+CFTPGET=”/pub/mydir/test1.txt” OK +CFTPGET: DATA, 1020, … +CFTPGET: DATA, 1058, … … +CFTPGET: 0 AT+CFTPGET={non-ascii}”/2F74657374646972/B2E2CAD42E747874” OK +CFTPGET: DATA, 1020, … +CFTPGET: 0 AT+CFTPGET=? +CFTPGET:[{non-ascii}] “FILEPATH” OK 21.3.10 AT+CFTPPUT Put a file to FTP server Description The command is used to put a file to FTP server using the data got from serial port. Each <Ctrl+Z> character present in the data flow of serial port when downloading FTP data will be coded as <ETX><Ctrl+Z>. Each <ETX> character will be coded as <ETX><ETX>. Single <Ctrl+Z> means end of the FTP data. <ETX> is 0x03, and <Ctrl+Z> is 0x1A. SIM PIN YES References Vendor Syntax Test Command AT+CFTPPUT=? Execution Command AT+CFTPPUT=“<filepath>” Responses +CFTPPUT: [{non-ascii}] “FILEPATH” OK Responses +CFTPPUT: BEGIN OK SIM5218_Serial _AT Command Manual_V1.21 358 1/13/2011
  • 360. SIM5218 Serial AT Command Manual +CME ERROR +CFTPPUPT: BEGIN +CME ERROR Defined values <filepath> The remote file path. When the file path doesn’t 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}. Examples AT+CFTPPUT=”/pub/mydir/test1.txt” +CFTPPUT: BEGIN …..<Ctrl+Z> OK AT+CFTPPUT={non-ascii}”/2F74657374646972/B2E2CAD42E747874” +CFTPPUT: BEGIN …..<Ctrl+Z> OK AT+CFTPPUT=? +CFTPPUT: [{non-ascii}]“FILEPATH” OK 21.3.11 AT+CFTPLIST List the items in the directory on FTP server Description This command is used to list the items in the specified directory on FTP server SIM PIN YES 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> SIM5218_Serial _AT Command Manual_V1.21 359 1/13/2011
  • 361. SIM5218 Serial AT Command Manual +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 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 21.3.12Unsolicited FTP Codes (Summary of CME ERROR Codes) Code of <err> 201 202 203 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 21.4 Hyper Text Transfer Protocol Service 21.4.1 AT+CHTTPACT Launch a HTTP operation SIM5218_Serial _AT Command Manual_V1.21 360 1/13/2011
  • 362. SIM5218 Serial AT Command Manual Description The command is used to launch a HTTP operation like GET or POST. Each <Ctrl+Z> character presented in the data flow of serial port will be coded as <ETX><Ctrl+Z>. Each <ETX> character will be coded as <ETX><ETX>. Single <Ctrl+Z> means end of the HTTP request data or end of the HTTP responded data. <ETX> is 0x03, and <Ctrl+Z> is 0x1A. For this command there may be a lot of DATA which need to be transferred to DTE using serial port, it is recommended that the AT+CATR will be used. SIM PIN YES References Vendor Syntax Test Command AT+CHTTPACT=? Write Command AT+CHTTPACT= “<address>”,<port> Responses +CHTTPACT: “ADDRESS”, (1-65535) OK Responses +CHTTPACT: REQUEST +CHTTPACT: DATA, <len> … +CHTTPACT: DATA, <len> … … +CHTTPACT: 0 +CME ERROR +CHTTPACT: REQUEST +CME ERROR +CHTTPACT: REQUEST +CHTTPACT: <err> +CHTTPACT: REQUEST +CHTTPACT: DATA, <len> … +CHTTPACT: DATA, <len> … … +CHTTPACT: <err> Defined values <address> The HTTP server domain name or IP address. <port> SIM5218_Serial _AT Command Manual_V1.21 361 1/13/2011
  • 363. SIM5218 Serial AT Command Manual The HTTP server port. <len> The length of HTTP data in the packet. <err> The error code of HTTP operation. Examples AT+CHTTPACT=”www.mywebsite.com”,80 +CHTTPACT: REQUEST GET http://www.mywebsite.com/index.html HTTP/1.1 Host: www.mywebsite.com User-Agent: MY WEB AGENT Content-Length: 0 <Ctrl+Z> OK +CHTTPACT: 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> +CHTTPACT: 0 AT+CHTTPACT=”www.mywebsite.com”,80 +CHTTPACT: REQUEST POST http://www.mywebsite.com/mydir/test.jsp HTTP/1.1 Host: www.mywebsite.com User-Agent: MY WEB AGENT Accept: */* Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache Accept-Charset: utf-8, us-ascii Pragma: no-cache Content-Length: 29 SIM5218_Serial _AT Command Manual_V1.21 362 1/13/2011
  • 364. SIM5218 Serial AT Command Manual myparam1=test1&myparam2=test2<Ctrl+Z> OK +CHTTPACT: DATA, 234 HTTP/1.1 200 OK Content-Type: text/html Content-Language: zh-CN Content-Length: 54 Date: Tue, 31 Mar 2009 01:56:05 GMT Connection: Close Proxy-Connection: Close <html> <header>result</header> <body> Result is OK </body> +CHTTPACT: 0 AT+CHTTPACT=? +CHTTPACT: “ADDRESS”,(1-65535) OK 21.4.2 Unsolicited HTTP codes (summary of CME ERROR codes) Code of <err> 220 221 222 Description Unknown error for HTTP HTTP task is busy Failed to resolve server address 223 224 225 226 227 HTTP timeout Failed to transfer data Memory error Invalid parameter Network error 21.5 Secure Hyper Text Transfer Protocol Service 21.5.1 AT+CHTTPSSTART Acquire HTTPS protocol stack Description This command is used to acquire HTTPS protocol stack. SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 363 1/13/2011
  • 365. SIM5218 Serial AT Command Manual Execute Command Responses AT+CHTTPSSTART OK ERROR Examples AT+CHTTPSSTART OK 21.5.2 AT+CHTTPSSTOP Release HTTPS protocol stack Description This command is used to release HTTPS protocol stack. SIM PIN YES References Vendor Syntax Execute Command Responses AT+CHTTPSSTOP OK ERROR Examples AT+CHTTPSSTOP OK 21.5.3 AT+CHTTPSOPSE Open HTTPS session Description This command is used to open a new HTTPS session. Every time, the module must call AT+CHTTPSSTART before calling AT+CHTTPSOPSE. SIM PIN References YES Vendor Syntax Write Command Responses AT+CHTTPSOPSE=”<host >”,<port> OK ERROR Defined values <host> SIM5218_Serial _AT Command Manual_V1.21 364 1/13/2011
  • 366. SIM5218 Serial AT Command Manual The host address <port> The host listening port for SSL Examples AT+CHTTPSOPSE=”www.mywebsite.com”,443 OK 21.5.4 AT+CHTTPSCLSE Close HTTPS session Description This command is used to close the opened HTTPS session. SIM PIN YES References Vendor Syntax Execute Command Responses AT+CHTTPSCLSE OK ERROR Examples AT+CHTTPSCLSE OK 21.5.5 AT+CHTTPSSEND Send HTTPS request 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 Responses +CHTTPSSEND: (1-4096) OK Responses +CHTTPSSEND: <unsent_len> OK Responses SIM5218_Serial _AT Command Manual_V1.21 365 1/13/2011
  • 367. SIM5218 Serial AT Command Manual AT+CMMSSEND=<len> Execute Command AT+CHTTPSSEND > 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. Examples AT+CMMSSEND=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 21.5.6 AT+CHTTPSRECV Receive HTTPS response Description This command is used to receive HTTPS response after sending HTTPS request. SIM PIN YES References Vendor Syntax Write Command Responses SIM5218_Serial _AT Command Manual_V1.21 366 1/13/2011
  • 368. SIM5218 Serial AT Command Manual AT+CHTTPSRECV=<recv_ len> OK +CHTTPSRECV: DATA,<len> … +CHTTPSRECV: DATA,<len> … +CHTTPSRECV:<result> +CHTTPSRECV:<result> ERROR ERROR Defined values <recv_len> The minimum length of the data to be received. The final length of the received data may be larger than the requested length. <len> The length of the data received. <result> The final result of the receiving. Examples AT+CHTTPSRECV=1 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> +CHTTPSRECV: 0 21.5.7 Unsolicited HTTPS Codes Code of <err> Description SIM5218_Serial _AT Command Manual_V1.21 367 1/13/2011
  • 369. SIM5218 Serial AT Command Manual +CHTTPS: RECV EVENT When the AT+CHTTPSRECV is not being called, and there is data cached in the receiving buffer, this event will be reported. 21.6 Secure File Transfer Protocol Service The FTPS related AT commands needs the AT+CATR to be set to the used port. AT+CATR=0 may cause some problem. 21.6.1 AT+CFTPSSTART Acquire FTPS protocol stack Description This command is used to acquire FTPS protocol stack. SIM PIN YES References Vendor Syntax Execute Command Responses AT+CFTPSSTART OK ERROR Examples AT+CFTPSSTART OK 21.6.2 AT+CFTPSSTOP Stop FTPS protocol stack Description 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 ERROR Examples AT+CFTPSSTOP SIM5218_Serial _AT Command Manual_V1.21 368 1/13/2011
  • 370. SIM5218 Serial AT Command Manual OK 21.6.3 AT+CFTPSLOGIN Login the FTPS server Description This command is used to login the FTPS server. Each time, the module must call AT+CFTPSSTART before calling AT+CFTPSLOGIN. SIM PIN References YES Vendor Syntax Write Command Responses AT+CFTPSLOGIN=”<host> ”,<port>,”<username>”, ”<p assword>” OK ERROR Defined values <host> The host address <port> The host listening port for SSL <username> The user name <password> The password Examples AT+CFTPSLOGIN=”www.myftpsserver.com”,990, ”myname”, ”mypassword” OK 21.6.4 AT+CFTPSLOGOUT Logout the FTPS server Description This command is used to logout the FTPS server. SIM PIN YES References Vendor Syntax Execute Command Responses AT+CFTPSLOGOUT OK SIM5218_Serial _AT Command Manual_V1.21 369 1/13/2011
  • 371. SIM5218 Serial AT Command Manual ERROR Examples AT+CFTPSLOGOUT OK 21.6.5 AT+CFTPSMKD Create a new directory on FTPS server 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 ERROR Defined values <dir> The directory to be created Examples AT+CFTPSMKD=”testdir” OK AT+CFTPSMKD={non-ascii}”74657374646972” OK 21.6.6 AT+CFTPSRMD Delete a directory on FTPS server Description This command is used to delete a directory on FTPS server SIM PIN YES References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 370 1/13/2011
  • 372. SIM5218 Serial AT Command Manual Test Command AT+CFTPSRMD=? Write Command AT+CFTPSRMD=”<dir>” Responses +CFTPSRMD: ”DIR” OK Responses OK 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 21.6.7 AT+CFTPSDELE Delete a file on FTPS server 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>” Responses +CFTPSDELE: ”FILENAME” OK Responses OK 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 SIM5218_Serial _AT Command Manual_V1.21 371 1/13/2011
  • 373. SIM5218 Serial AT Command Manual AT+CFTPSDELE=”test” OK AT+CFTPDELE={non-ascii}”74657374” OK 21.6.8 AT+CFTPSCWD Change the current directory on FTPS server 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 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 AT+CFTPSCWD={non-ascii}”74657374646972” OK 21.6.9 AT+CFTPSPWD Get the current directory on FTPS server Description This command is used to get the current directory on FTPS server. SIM PIN YES References Vendor Syntax Execute Command Responses SIM5218_Serial _AT Command Manual_V1.21 372 1/13/2011
  • 374. SIM5218 Serial AT Command Manual AT+CFTPSPWD +CFTPSPWD: ”<dir>” OK ERROR Defined values <dir> The current directory on FTPS server. Examples AT+CFTPSPWD +CFTPSPWD: “/testdir” OK 21.6.10 AT+CFTPSTYPE Set the transfer type on FTPS server Description This command is used to set the transfer type on FTPS server SIM PIN YES References Vendor Syntax Test Command AT+CFTPSTYPE=? Read Command AT+CFTPSTYPE? Write Command AT+CFTPSTYPE=<type> Responses +CFTPSTYPE: (A,I) OK Responses +CFTPSTYPE: <type> OK Responses OK ERROR Defined values <type> The type of transferring: A – ASCII. I – Binary. Examples AT+CFTPSTYPE=A SIM5218_Serial _AT Command Manual_V1.21 373 1/13/2011
  • 375. SIM5218 Serial AT Command Manual OK 21.6.11 AT+CFTPSLIST List the items in the directory on FTPS server Description This command is used to list the items in the specified directory on FTPS server SIM PIN YES References Vendor Syntax Write Command AT+CFTPSLIST=”<dir>” Execute Command AT+CFTPSLIST Responses OK +CFTPSLIST: DATA,<len> … +CFTPSLIST:<err> ERROR Responses OK +CFTPSLIST: DATA,<len> … +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 Examples AT+CFTPSLIST=”/testd” OK +CFTPSLIST: DATA,193 drw-rw-rw1 user group drw-rw-rw1 user group SIM5218_Serial _AT Command Manual_V1.21 0 Sep 1 18:01 . 0 Sep 1 18:01 .. 374 1/13/2011
  • 376. SIM5218 Serial AT Command Manual -rw-rw-rw- 1 user group 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 21.6.12 AT+CFTPSGETFILE Get a file from FTPS server to EFS Description The 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> Responses +CFTPSGETFILE: [{non-ascii}]“FILEPATH”, (0-8) OK Responses OK +CFTPSGETFILE: 0 +CFTPSGETFILE: <err> ERROR ERROR OK +CFTPSGETFILE: <err> Defined values <filepath> The remote file path. When the file path doesn’t 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}. <dir> The directory to save the downloaded file: 0 – current directory [refer to AT+FSCD] 1 – “C:/Picture” directory SIM5218_Serial _AT Command Manual_V1.21 375 1/13/2011
  • 377. SIM5218 Serial AT Command Manual 2 – “C:/Video” directory 3 – “C:/VideoCall” directory 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/Audio” directory <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=? +CFTPSGETFILE: [{non-ascii}]“FILEPATH”,(0-8) OK 21.6.13 AT+CFTPSPUTFILE Put a file in module EFS to FTPS server Description The command is used to upload a file in the module EFS to FTPS server. SIM PIN YES References Vendor Syntax Test Command AT+CFTPSPUTFILE=? Write Command AT+CFTPSPUTFILE= “<filepath>”,<dir> Responses +CFTPSPUTFILE: [{non-ascii}] “FILEPATH”, (0-8) OK Responses OK +CFTPSPUTFILE: 0 SIM5218_Serial _AT Command Manual_V1.21 376 1/13/2011
  • 378. SIM5218 Serial AT Command Manual +CFTPSPUTFILE: <err> ERROR ERROR OK +CFTPSPUTFILE: <err> Defined values <filepath> The remote file path. When the file path doesn’t 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: 0 – current directory [refer to AT+FSCD] 1 – “C:/Picture” directory 2 – “C:/Video” directory 3 – “C:/VideoCall” directory 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/Audio” directory <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=? +CFTPSPUTFILE: [{non-ascii}]“FILEPATH”,(0-8) OK 21.6.14 AT+CFTPSGET Get a file from FTPS server to serial port SIM5218_Serial _AT Command Manual_V1.21 377 1/13/2011
  • 379. SIM5218 Serial AT Command Manual Description The command is used to get a file from FTPS 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+CFTPSGET=? Write Command AT+CFTPSGET= “<filepath>” Responses +CFTPSGET: [{non-ascii}] “FILEPATH” OK Responses OK +CFTPSGET: DATA,<len> … +CFTPSGET: DATA, <len> … … +CFTPSGET: 0 +CFTPSGET: <err> ERROR ERROR +CFTPSGET: DATA, <len> … +CFTPSGET: DATA, <len> … … +CFTPSGET: <err> Defined values <filepath> The remote file path. When the file path doesn’t contain ”/”, this command transfer 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}. <len> The length of FTPS data contained in this packet. <err> The error code of FTPS operation. Examples SIM5218_Serial _AT Command Manual_V1.21 378 1/13/2011
  • 380. SIM5218 Serial AT Command Manual AT+CFTPSGET=”/pub/mydir/test1.txt” OK +CFTPSGET: DATA, 1020, … +CFTPSGET: DATA, 1058, … … +CFTPSGET: 0 AT+CFTPSGET={non-ascii}”/2F74657374646972/B2E2CAD42E747874” OK +CFTPSGET: DATA, 1020, … +CFTPSGET: 0 AT+CFTPSGET=? +CFTPSGET:[{non-ascii}] “FILEPATH” OK 21.6.15 AT+CFTPSPUT Put a file to FTPS server Description This command is used to put a file to FTPS server through serial port. The AT+CFTPSPUT=<len> is used to download the data to be sent. The AT+CFTPSPUT is used to wait the result of sending. SIM PIN References YES Vendor Syntax Read Command AT+CFTPSPUT? Write Command AT+CFTPSPUT=[“<filepath >”,]<len> Execute Command AT+CFTPSPUT Responses +CFTPSPUT: <unsent_len> OK Responses > OK +CFTPSPUT: <result> ERROR ERROR Responses OK +CFTPSPUT: <result> ERROR Defined values SIM5218_Serial _AT Command Manual_V1.21 379 1/13/2011
  • 381. SIM5218 Serial AT Command Manual <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 <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 21.6.16 AT+CFTPSSINGLEIP Set FTPS data socket address type Description The command is used to set FTPS server data socket IP address type SIM PIN YES References Vendor Syntax Test Command AT+CFTPSSINGLEIP=? Read Command AT+CFTPSSINGLEIP? Write Command AT+CFTPSSINGLEIP=<sin gleip> Responses +CFTPSSINGLEIP: (0,1) OK Responses +CFTPPORT: <singleip> OK Responses OK ERROR Defined values <singleip> The FTPS data socket IP address type: SIM5218_Serial _AT Command Manual_V1.21 380 1/13/2011
  • 382. SIM5218 Serial AT Command Manual 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 21.6.17 Unsolicited FTPS Codes Code of <err> 0 1 2 Description FTPS operation succeeded SSL verify alert Unknown FTPS error 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 21.7 HTTP Time Synchronization Service The HTP related AT commands are used to synchronize system time with HTP server. 21.7.1 AT+CHTPSERV Set HTP server info Description The command is used to add or delete HTP server information. There are maximum 16 HTP servers. SIM PIN YES References Vendor Syntax Test Command Responses SIM5218_Serial _AT Command Manual_V1.21 381 1/13/2011
  • 383. SIM5218 Serial AT Command Manual AT+CHTPSERV=? Read Command AT+CHTPSERV? Write Command AT+CHTPSERV= "<cmd>","<host_or_idx>"[,< port>,<http_version> [,"<proxy>",<proxy_port>]] +CHTPSERV: "ADD","HOST",(1-65535), (0-1)[,"PROXY",(1-65535)] +CHTPSERV: "DEL",(0-15) OK Responses +CHTPSERV: "<host>",<port>,<http_version> [,"<proxy>",<proxy_port>] … +CHTPSERV: "<host>",<port>[,"<proxy>",< proxy_port>] OK Responses OK ERROR Defined values <cmd> The 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>; If the <cmd> is “DEL”, this field is the index of the HTP server item to be deleted from the list. <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 Examples AT+CHTPSERV=”ADD”,”www.google.com”,80,1 OK SIM5218_Serial _AT Command Manual_V1.21 382 1/13/2011
  • 384. SIM5218 Serial AT Command Manual 21.7.2 AT+CHTPUPDATE Updating date time using HTP protocol Description The command is used to updating date time using HTP protocol. SIM PIN YES References Vendor Syntax Test Command AT+CHTPUPDATE=? Read Command AT+CHTPUPDATE? Responses OK Response +CHTPUPDATE:<status> 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 21.7.3 Unsolicited HTP Codes Code of <err> 0 1 2 Description Operation succeeded Unknown error Wrong parameter 3 4 Wrong date and time calculated Network error SIM5218_Serial _AT Command Manual_V1.21 383 1/13/2011
  • 385. 22 MMS Commands 22.1 AT+CMMSCURL Set the URL of MMS center Description The 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://” Examples AT+CMMSCURL=” mmsc.monternet.com” OK AT+CMMSCURL? +CMMSCURL:” mmsc.monternet.com” OK AT+CMMSCURL=? +CMMSCURL:”URL” OK 22.2 AT+CMMSPROTO Set the protocol parameters and MMS proxy
  • 386. SIM5218 Serial AT Command Manual Description The 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 <port> Port of MMS proxy Examples AT+CMMSPROTO=0,”10.0.0.172”,9201 OK AT+CCMMSPROTO? +CMMSPROTO: 0,”10.0.0.172”,9201 OK AT+CMMSPROTO=? +CMMSPROTO: (0,1),”(0-255).(0-255).(0-255).(0-255)”,(0-65535) OK 22.3 AT+CMMSSENDCFG Set the parameters for sending MMS SIM5218_Serial _AT Command Manual_V1.21 385 1/13/2011
  • 387. SIM5218 Serial AT Command Manual Description The 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> Whether need delivery report: 0 – No (default). 1 – Yes. <readrep> Whether need read report: SIM5218_Serial _AT Command Manual_V1.21 386 1/13/2011
  • 388. SIM5218 Serial AT Command Manual 0 – No (default). 1 – Yes. <visible> Whether to show the address of the sender: 0 – hide the address of the sender. 1 – Show the address of the sender even if it is a secret address. 2 – Not set (default). <class> The class of MMS: 0 – personal. 1 – advertisement. 2 – informational. 3 – auto. 4 – Not set (default). 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 22.4 AT+CMMSEDIT Enter or exit edit mode Description The command is used to enter or exit edit mode of mms. SIM PIN YES References Vendor Syntax Test Command AT+CMMSEDIT=? Responses +CMMSEDIT: (0,1) OK Read Command AT+CMMSEDIT? Responses +CMMSEDIT: <mode> OK Write Command Responses SIM5218_Serial _AT Command Manual_V1.21 387 1/13/2011
  • 389. SIM5218 Serial AT Command Manual AT+MMSEDIT=<mode> 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 22.5 AT+CMMSDOWN Download the file data or title from UART 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 xFFxFE , xFExFF or xEFxBBxBF 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=? Responses +CMMSDOWN: “PIC”,(1-<max_pdu_size>),”NAME” +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>),”NAME” +CMMSDOWN: “FILE”,(0-8),”FILENAME” +CMMSDOWN: “TITLE”,(1-40) SIM5218_Serial _AT Command Manual_V1.21 388 1/13/2011
  • 390. SIM5218 Serial AT Command Manual Write Command AT+CMMSDOWN=<type>, <size>[,<name>] Or AT+CMMSDOWN=<type>, <dir>,<filepath> 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 need to download through AT interface. <name> The name of the file to download. <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 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/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 AT+CMMSDOWN=? +CMMSDOWN: “PIC”,(1-102400),”NAME” SIM5218_Serial _AT Command Manual_V1.21 389 1/13/2011
  • 391. SIM5218 Serial AT Command Manual +CMMSDOWN: “TEXT”,(1-102400),”NAME” +CMMSDOWN: “AUDIO”,(1-102400),”NAME” +CMMSDOWN: “VIDEO”,(1-102400),”NAME” +CMMSDOWN: “FILE”,(0-8),”FILEPATH” +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 22.6 AT+CMMSDELFILE Delete a file within the editing MMS body 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 SIM5218_Serial _AT Command Manual_V1.21 390 1/13/2011
  • 392. SIM5218 Serial AT Command Manual AT+CMMSDELFILE=? OK 22.7 AT+CMMSSEND Start MMS sending Description This command is used to send MMS. SIM PIN YES It can only be performed in edit mode of MMS. 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 ERROR +CME ERROR: <err> Or OK +CMMSSEND :<err> Defined values <address> Mobile phone number or email address SIM5218_Serial _AT Command Manual_V1.21 391 1/13/2011
  • 393. SIM5218 Serial AT Command Manual Examples 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 22.8 AT+CMMSRECP Add recipients Description This command is used to add 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 +CMMSRECP: <addr> OK ERROR +CME ERROR: <err> Defined values <addr> Mobile phone number or email address SIM5218_Serial _AT Command Manual_V1.21 392 1/13/2011
  • 394. SIM5218 Serial AT Command Manual Examples AT+CMMSRECP=? +CMMSRECP: "ADDRESS" OK AT+CMMSRECP? +CMMSRECP:"t1@test.com”;”15813862534” OK AT+CMMSRECP=”13818362596" OK 22.9 AT+CMMSCC Add copy-to recipients Description This command is used to add copy-to 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 +CMMSCC: <addr> OK ERROR +CME ERROR: <err> Defined values <addr> Mobile phone number or email address Examples SIM5218_Serial _AT Command Manual_V1.21 393 1/13/2011
  • 395. SIM5218 Serial AT Command Manual AT+CMMSCC=? +CMMSCC: "ADDRESS" OK AT+CMMSCC? +CMMSCC:"t1@test.com”;”15813862534” OK AT+CMMSCC=”13818362596" OK 22.10 AT+CMMSBCC Add secret recipients Description This command is used to add 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 +CMMSBCC: <addr> OK ERROR +CME ERROR: <err> Defined values <addr> Mobile phone number or email address Examples AT+CMMSBCC=? +CMMSBCC: "ADDRESS" SIM5218_Serial _AT Command Manual_V1.21 394 1/13/2011
  • 396. SIM5218 Serial AT Command Manual OK AT+CMMSBCC? +CMMSBCC:"t1@test.com”;”15813862534” OK AT+CMMSBCC=”13818362596" OK 22.11 AT+CMMSDELRECP Delete recipients Description This command is used to delete recipients. The execute command is used to delete all recipients SIM PIN YES 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 Examples AT+CMMSDELRECP=? +CMMSDELRECP: "ADDRESS" OK AT+CMMSDELRECP OK AT+CMMSDELRECP=”13818362596" SIM5218_Serial _AT Command Manual_V1.21 395 1/13/2011
  • 397. SIM5218 Serial AT Command Manual OK 22.12 AT+CMMSDELCC Delete copy-to recipients Description This command is used to delete copy-to recipients. copy recipients SIM PIN YES The execution command is used to delete all 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 (模块重起,AT不通) OK ERROR +CME ERROR: <err> Defined values <addr> Mobile phone number or email address Examples AT+CMMSDELCC=? +CMMSDELCC: "ADDRESS" OK AT+CMMSDELCC OK AT+CMMSDELCC=”13818362596" OK 22.13 AT+CMMSDELBCC SIM5218_Serial _AT Command Manual_V1.21 Delete secret recipients 396 1/13/2011
  • 398. SIM5218 Serial AT Command Manual Description This command is used to delete secret recipients. secret recipients SIM PIN YES The execution command is used to delete all 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 (模块死机,AT不通) OK ERROR +CME ERROR: <err> Defined values <addr> Mobile phone number or email address Examples AT+CMMSDELBCC=? +CMMSDELRECP: "ADDRESS" OK AT+CMMSDELBCC OK AT+CMMSDELBCC=”13818362596" OK 22.14 AT+CMMSRECV Receive MMS Description This command is used to receive MMS. SIM PIN YES It can only perform in non-edit mode of MMS References Vendor SIM5218_Serial _AT Command Manual_V1.21 397 1/13/2011
  • 399. SIM5218 Serial AT Command Manual Syntax Test Command AT+CMMSRECV=? Write Command AT+CMMSRECV=<locatio n> Responses +CMMSRECV=”LOCATION” OK Responses OK +CMMSRECV=0 ERROR +CME ERROR: <err> Or OK +CME ERROR :<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 +CME ERROR: 190 AT+CMMSRECV=”http://211.136.112.84/MI76xou_anB” +CME ERROR: 177 22.15 AT+CMMSVIEW View information of MMS in box or memory Description This command is used to view information of MMS in box or memory. is formatted with UCS2 little endian character set. SIM PIN YES The title part of the MMS References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 398 1/13/2011
  • 400. SIM5218 Serial AT Command Manual 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 MMS mail box index <mmstype> The state of MMS: 0 – Received MMS. 1 – Sent MMS. 2 – Unsent MMS. <sender> The address of sender <receipts> The list of receipts separated by “;” <ccs> The list of copy receipts separated by “;” <bccs> The list of secret receipts separated by “;” <time> For received MMS, it is the time to receive the MMS. For other MMS, it is the time to create the MMS. <subject> MMS title <size> MMS data size <fileIndex> SIM5218_Serial _AT Command Manual_V1.21 399 1/13/2011
  • 401. SIM5218 Serial AT Command Manual 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 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 22.16 AT+CMMSREAD read the given file in MMS currently in SIM5218_Serial _AT Command Manual_V1.21 400 1/13/2011
  • 402. SIM5218 Serial AT Command Manual memory Description This command is used to read a given file in MMS currently in memory. it will be converted to UCS2 little endian before final UART output. SIM PIN YES When reading a text file, References Vendor Syntax Test Command AT+CMMSREAD=? Responses OK Write Command AT+CMMSREAD=<index> Responses +CMMSREAD:<name>,<datSize> File Content 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 Examples AT+CMMSREAD=? OK AT+CMMSREAD=3 +CMMSREAD:"1.jpg",83794 …(File Content) OK 22.17 AT+CMMSSNATCH SIM5218_Serial _AT Command Manual_V1.21 snatch the given file in MMS 401 1/13/2011
  • 403. SIM5218 Serial AT Command Manual Description This command is used to snatch the given file in MMS currently in memory, and save it to UE file system. If the file of input 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] 1 – “C:/Picture” directory 2 – “C:/Video” directory 3 – “C:/VideoCall” directory 4 – “D:/Picture” directory 5 – “D:/Video” directory 6 – “D:/VideoCall” directory 7 – “C:/Audio” directory 8 – “D:/Audio” directory <filename> The name of the given file contained in the MMS body Examples AT+CMMSSNATCH=? OK AT+CMMSSNATCH=3,2,”mylocalfile.jpg” OK 22.18 AT+CMMSSAVE Save the MMS to a mail box SIM5218_Serial _AT Command Manual_V1.21 402 1/13/2011
  • 404. SIM5218 Serial AT Command Manual 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 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 22.19 AT+CMMSDELETE SIM5218_Serial _AT Command Manual_V1.21 Delete MMS in the mail box 403 1/13/2011
  • 405. SIM5218 Serial AT Command Manual 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 ERROR +CME ERROR: <err> Execute Command AT+CMMSDELETE Responses OK ERROR +CME ERROR: <err> Defined values <index> The index of mail box selected to save the MMS <mmsNum> The number of MMS saved in the mail box Examples AT+CMMSDELETE=? +CMMSSAVE: (0-1) OK AT+CMMSDELETE OK AT+CMMSDELETE=1 OK SIM5218_Serial _AT Command Manual_V1.21 404 1/13/2011
  • 406. SIM5218 Serial AT Command Manual 22.20 AT+CMMSSYSSET Configure MMS transferring parameters Description This command is used to configure MMS transferring setting. SIM PIN YES 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>,<wap_send_buf_co unt> 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-102400),(512-4096),(512-4096),(1-8) SIM5218_Serial _AT Command Manual_V1.21 405 1/13/2011
  • 407. SIM5218 Serial AT Command Manual OK AT+CMMSSYSSET? +CMMSSYSSET:102400,1460,1500,6 OK AT+CMMSSYSSET=102400,1430,1500,8 OK AT+CMMSSYSSET=102400 OK 22.21 AT+CMMSINCLEN Increase the length of audio/video attachment header Description The 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 SIM5218_Serial _AT Command Manual_V1.21 406 1/13/2011
  • 408. SIM5218 Serial AT Command Manual AT+CMMSINCLEN=0 OK AT+CMMSINCLEN? +CMMSINCLEN:0 OK AT+CMMSINCLEN=? +CMMSINCLEN:(0-1) OK 22.22 Supported Unsolicited Result Codes in MMS Description This section lists all the unsolicited result code in MMS module. 22.22.1 Indication of Sending/Receiving MMS MMS Sending +CMMSSEND:<err> MMS Notification +WAP_PUSH_MMS:<send er>,<transaction_id>,<lo cation>,<timestamp>,<cl ass>,<size> Description This indication means the result of sending MMS. If successful, it reports +CMMSSEND:0, or else, it report +CMMSSEND:<err> Description This indication means there is a new MMS received in the MMS center. MMS Receiving Description +CMMSRECV:<err> This indication means the result of receiving MMS. If successful, it reports +CMMSRECV:0, or else, it report +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 SIM5218_Serial _AT Command Manual_V1.21 407 1/13/2011
  • 409. SIM5218 Serial AT Command Manual 0 – Expired 1 – Retrieved 2 – Rejected 3 – Deferred 4 – Unrecognized <size> The size of the received MMS Examples +WAP_PUSH_MMS +WAP_PUSH_MMS: "15001844675","RROpJGJVyjeA","http://211.136.112.84/RROpJGJVyjeA" ,"09/03/17,17:14:41+32",0,13338 22.22.2 Summary of CME ERROR Codes for MMS Code of <err> 201 Description Unknown error for mms 171 MMS task is busy now 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 The mms data is over size The operation is over time There is no mms receiver The storage for address is full Not find the address Invalid parameter Failed to read mms There is not a mms push message (reserved) Memory error Invalid file format The mms storage is full The box is empty Failed to save mms Busy editing mms now Not allowed to edit now No content in the buffer Failed to receive mms Invalid mms pdu Network error Failed to read file in UE SIM5218_Serial _AT Command Manual_V1.21 408 1/13/2011
  • 410. 23 CSCRIPT Commands 23.1 AT+CSCRIPTSTART Start running a LUA script file. Description The command is used to start running a LUA script file. The script file must exist in c: in the module EFS. This command shouldn’t be used by sio LIB in LUA script files. SIM PIN NO References Vendor Syntax Test Command AT+CSCRIPTSTART=? Responses +CSCRIPTSTART: OK Write Command AT+CSCRIPTSTART=” <filename>”[ , <reportluaerror> ”] Responses OK +CSCRIPT: 0 ERROR ” ”FILENAME” OK +CSCRIPT: <err> Defined values <filename> The script file name. <reportluaerror> Whether report the LUA compiling error or running error to TE. 0 – Not report. 1 – Report. <err> The error code of running script. Examples AT+CSCRIPTSTART=”mytest.lua” OK +CSCRIPT: 0 AT+CSCRIPTSTART=? OK
  • 411. SIM5218 Serial AT Command Manual 23.2 AT+CSCRIPTSTOP Stop the current running LUA script. Description The command is used to stop the current running LUA script. This command shouldn’t 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? +CSCRIPTSTOP: ” <filename>” OK Execute Command AT+CSCRIPTSTOP Responses OK ERROR Defined values <filename> The script file name. Examples AT+CSCRIPTSTOP? +CSCRIPTSTOP: ”mytest.lua” OK AT+CSCRIPTSTOP=? OK AT+CSCRIPTSTOP OK 23.3 AT+CSCRIPTCL Compile a LUA script file. Description The command is used to compile a LUA script file. The script file must exist in c: in the module EFS. This command shouldn’t be used by sio LIB in LUA script files. If the AT+CSCRIPTPASS is set, the compiled file will be encrypted. SIM PIN References SIM5218_Serial _AT Command Manual_V1.21 410 1/13/2011
  • 412. SIM5218 Serial AT Command Manual NO Vendor Syntax Test Command AT+CSCRIPTCL=? Responses +CSCRIPTCL: OK Write Command AT+CSCRIPTCL=” <filename>”[ , <out_filename> ”] Responses OK +CSCRIPT: 0 ERROR ” ”FILENAME”, ”OUT_FILENAME” 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. Examples AT+CSCRIPTCL=”mytest.lua” OK +CSCRIPT: 0 AT+CSCRIPTCL=? +CSCRIPTCL: “FILENAME”, “OUT_FILENAME” OK 23.4 AT+CSCRIPTPASS Set the password for +CSCRIPTCL. Description The command is used to set the password which will be used for AT+CSCRIPTCL encryption. SIM PIN NO References Vendor Syntax SIM5218_Serial _AT Command Manual_V1.21 411 1/13/2011
  • 413. SIM5218 Serial AT Command Manual Write Command AT+CSCRIPTPASS=” <old_password>” , <new_password> ” ” 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 23.5 AT+CSCRIPTCMD Send data to the running LUA script. Description The command is used to send data to the running LUA script SIM PIN NO References 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. SIM5218_Serial _AT Command Manual_V1.21 412 1/13/2011
  • 414. SIM5218 Serial AT Command Manual Examples AT+CSCRIPTCMD=? +CSCRIPTCMD: CMD1[,CMD2] OK AT+CSCRIPTCMD=23,98 OK 23.6 Unsolicited CSCRIPT codes Summary of +CSCRIPT Codes Code of <err> 0 Description Success 1 No resource 2 3 4 5 Failed to open the script file Failed to run the script file Failed to compile the script file Virtual machine is busy SIM5218_Serial _AT Command Manual_V1.21 413 1/13/2011
  • 415. SIM5218 Serial AT Command Manual 24 AT Commands Samples 24.1 SMS commands Commands and Responses AT+CMGF=1 OK 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 Select memory storages. AT+CNMI=2,1 OK Set new message indications to TE. AT+CMGS=“+861358888xxxx” >This is a test <Ctrl+Z> +CMGS:34 OK Set new message indications to TE. +CMTI:“SM”,1 Unsolicited notification of the SMS arriving. AT+CMGR=1 +CMGR: “REC UNREAD”, “+86135888xxxx”, ,“08/01/30, 20:40:31+00” This is a test OK Read SMS message that has just arrived. NOTE The number should be the same as AT+CMGR=1 +CMGR: “REC READ”, “+861358888xxxx”,,“08/01/30 , 20:40:31+00” This is a test OK Reading the message again changes the status to “READ” from “UNREAD”. AT+CMGS=“+861358888xxxx” >Test again<Ctrl+Z> +CMGS:35 OK Send another SMS to myself. +CMTI:“SM”,2 Unsolicited notification of the SMS arriving. AT+CMGL=“ALL” +CMGL: 1, “REC READ”, “+861358888xxxx”, , “08/01/30,20:40:31+00” This is a test +CMGL: 2, “REC UNREAD”,””, “+861358888xx xx”, , “08/01/30,20:45:12+00” Listing all SMS messages. SIM5218_Serial _AT Command Manual_V1.21 that given in the +CMTI notification. 414 1/13/2011
  • 416. SIM5218 Serial AT Command Manual Test again OK AT+CMGD=1 OK Delete an SMS message. AT+CMGL=“ALL” +CMGL: 2,“REC READ”,“+861358888xxxx”, “08/01/30,20:45:12+00” Test again OK List all SMS messages to show message has been deleted. 24.2 TCP/IP commands 24.2.1 TCP server Commands and Responses AT+NETOPEN=”TCP”,80 Comments Activate the specified socket’s PDP context and Create a socket. Network opened OK AT+SERVERSTART OK For Tcp Server,it starts a Passive open for connections. AT+LISTCLIENT List all of clients’ information. NO.0 client : 10.71.34.32 80 NO.1 client : 10.71.78.89 1020 OK Activate the specified client. AT+ACTCLIENT = 0 OK AT+TCPWRITE=8 >ABCDEFGH +TCPWRITE: 8, 8 OK Send data to an active client. Send ok AT+CLOSECLIENT=0 OK Close the specified client. AT+NETCLOSE Close all of clients and Network closed Deactivate the specified socket’s PDP context. OK 24.2.2 TCP client SIM5218_Serial _AT Command Manual_V1.21 415 1/13/2011
  • 417. SIM5218 Serial AT Command Manual Commands and Responses Comments AT+NETOPEN=”TCP”,80 Network opened OK AT+TCPCONNECT=”192.168.0.1”,80 OK AT+TCPWRITE=8 >ABCDEFGH +TCPWRITE: 8, 8 Activate the specified socket’s PDP context and Create a socket. Attempt to establish the TCP connection with the specified Tcp server. Send data to server. OK Send ok AT+NETCLOSE Disconnect the connection with server and Deactivate the specified socket’s PDP context. Network closed OK 24.2.3 UDP Commands and Responses Comments AT+NETOPEN=”UDP”,80 Network opened OK AT+UDPSEND=8,”192.168.0.1”,80 >ABCDEFGH +UDPSEND: 8, 8 OK Activate the specified socket’s PDP context and Create a socket. AT+NETCLOSE Close the socket and Deactivate the specified socket’s PDP context. Send data. Network closed OK 24.2.4 Multi client Commands and Responses Comments AT+NETOPEN=,,1 Network opened OK AT+CIPOPEN=0,”TCP”,”116.228.221.51”, 100 Connect ok OK AT+CIPOPEN=1,”UDP”,”116.228.221.51” Activate the specified socket’s PDP context and Select in multi-client mode SIM5218_Serial _AT Command Manual_V1.21 416 Establish a connection with TCP Server Establish a connection with UDP Server 1/13/2011
  • 418. SIM5218 Serial AT Command Manual ,120 OK AT+CIPSEND=0,7 >SimTech Send data in the connection of number 0 +CIPSEND: 7, 7 OK Send ok AT+CIPSEND=1,7 >SimTech Send data in the connection of number 1 +CIPSEND: 7, 7 OK AT+CIPCLOSE=0 OK AT+NETCLOSE OK Close the connection of number 0 Close all of connections and Deactivate the specified socket’s PDP context. 24.3 Audio commands 24.3.1 Sound record Commands and Responses Comments AT+CQCPREC=0,amr C:/Audio/20080420_120303.amr OK Start recording sound clips AT+CQCPPAUSE OK Pause sound recording AT+CQCPRESUME OK Resume sound recording AT+CQCPSTOP OK Stop sound recording ATD1381234****; OK VOICE CALL: BEGIN Make a GSM call AT+CQCPREC=1,qcp C:/Audio/20080420_120530.qcp OK Start recording form remote path during GSM call NOTE GSM call is only applicable to QCP file AT+CQCPSTOP OK Stop sound recording SIM5218_Serial _AT Command Manual_V1.21 417 1/13/2011
  • 419. SIM5218 Serial AT Command Manual AT+CHUP VOICE CALL: END: 000117 OK Hang up the current call. ATD1500000****; OK VOICE CALL: BEGIN Make a UMTS call AT+CQCPREC=1,amr C:/Audio/20080420_120555.amr OK Start recording form remote path during UMTS call NOTE UMTS call is applicable to AMR or QCP file AT+CQCPSTOP OK Stop sound recording AT+CHUP VOICE CALL: END: 000117 OK Hang up the current call. 24.3.2 Play audio file Commands and Responses Comments AT+CCMXPLAY=” 20080420_120303.amr”,0 OK Play audio file AT+CCMXPAUSE OK Pause playing AT+CCMXRESUME OK Resume playing AT+CCMXSTOP OK Stop playing ATD1381234****; OK VOICE CALL: BEGIN Make a GSM call AT+CCMXPLAY=” 20080420_120407.qcp”,3 OK Play audio file on both path NOTE GSM call is only applicable to QCP file AT+CHUP VOICE CALL: END: 000100 OK Hang up the current call. ATD1500000****; OK VOICE CALL: BEGIN Make a UMTS call AT+CCMXPLAY=” 20080420_1202407.amr”,3 OK Play audio file on both path NOTE UMTS call is only applicable to AMR SIM5218_Serial _AT Command Manual_V1.21 418 1/13/2011
  • 420. SIM5218 Serial AT Command Manual file AT+CHUP VOICE CALL: END: 000100 OK Hang up the current call. 24.4 Camera commands 24.4.1 Take picture Commands and Responses Comments AT+CCAMS OK Start camera AT+CCAMSETD=320,240 OK Set camera dimension …… …… Set other parameters supported AT+CCAMTP OK Take picture AT+CCAMEP C:/Picture/20080420_120303.jpg OK Save picture AT+CCAME OK Stop camera 24.4.2 Record video Commands and Responses Comments AT+CCAMS OK Start camera AT+CCAMSETD=176,144 OK Set camera dimension AT+CCAMSETF=0 OK Set FPS …… …… Set other parameters supported AT+CCAMRS C:/Video/20080420_123003.mp4 OK Start video record AT+CCAMRP Pause video record SIM5218_Serial _AT Command Manual_V1.21 419 1/13/2011
  • 421. SIM5218 Serial AT Command Manual OK AT+CCAMRR OK Resume video record AT+CCAMRE OK Stop video record AT+CCAME OK Stop the camera 24.5 Video call commands 24.5.1 Unsolicited indications of video call Indications Comments VPINCOM <number> Indicate an incoming video call and caller information is sent. <number> is caller’s phone number of remote party, and this indication will be reported per sis seconds, and reported until answered or released. For automatic answering video call, refer to AT+AUTOANSWER and ATS0. VPACCEPT Indicate that video call is in the process of being set up. VPRINGBACK Indicate that remote party (other side) is located and ringing. VPSETUP Indicate that video call is set up end-to-end. VPCONNECTED Indicate that video protocols are set up and video call is connected. VPEND[: <seconds>] Indicate that video call has ended. <seconds> is the duration of video call, from VPCONNECTED to VPEND and the unit is in second. MISSED_VIDEO_CALL: <datatime>,<number> Indicate that an incoming video call is missed. <datatime> denotes when this indication is reported, and the format is yy/MM/dd,hh/mm /ss, where characters indicate year (two last digits), month, day, hour, minutes, seconds. <number> is caller’s phone number. +VPRXDTMF: <user_input> SIM5218_Serial _AT Command Manual_V1.21 Indicate that a user input was received from remote party. 420 1/13/2011
  • 422. SIM5218 Serial AT Command Manual <user_input> is DTMFs tone from remote party, and consisted of (0-9, *, #). NOTE DTMFs are sent as an H.245 User Input Indication message (basic string). 24.5.2 Call flows – video call origination Commands and Responses Comments AT+VPSOURCE=2,”pic.jpg” OK Set TX source AT+VPRECORD=3 OK Start recording video AT+VPMAKE=”123456789” VPACCEPT OK VPRINGBACK VPSETUP VPCONNECTED Make video call AT+VPRECORD=0 OK Stop recording video AT+VPSOURCE=1 OK Switch TX source AT+VPRECORD=1 OK Start recording video AT+VPRECORD=0 OK Stop recording video AT+VPEND OK VPEND End video call 24.5.3 Call flows – video call termination Commands and Responses Comments VPINCOM 987654321 Report incoming call AT+VPSOURCE=2,”pic.jpg” OK Set TX source AT+VPRECORD=3 OK Start recording video AT+VPANSWER OK VPSETUP Answer video call SIM5218_Serial _AT Command Manual_V1.21 421 1/13/2011
  • 423. SIM5218 Serial AT Command Manual VPCONNECTED AT+VPRECORD=0 OK Stop recording video AT+VPSOURCE=3,”vp.mp4” OK Switch TX source AT+VPRECORD=2 OK Start recording video AT+VPRECORD=0 OK Stop recording video AT+VPEND OK VPEND End video call 24.6 File transmission flow 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. 24.6.1 File transmission to PC host Step1. Select file for transmission to PC host After HyperTerminal is OK for emitting AT commands, it must select a file by one of following methods: ①. Select directory as current directory by AT+FSCD, and then select file with parameter <dir_type> of AT+CTXFILE is 0 or omitted. [Figure 17-1] SIM5218_Serial _AT Command Manual_V1.21 422 1/13/2011
  • 424. SIM5218 Serial AT Command Manual Figure 17-1 Select file for transmission ②. Select the file directly with subparameter <dir_type> of AT+CTXFILE is not 0 and not omitted; this method is a shortcut method for limited directories. [Figure 17-2] Figure 17-2 Select file directly for transmission Step2. Open “Receive File” dialog box After select transmitted file successfully, use “Transfer>Receive File…” menu to open “Receive File” dialog box in HyperTerminal. [Figure 17-3] SIM5218_Serial _AT Command Manual_V1.21 423 1/13/2011
  • 425. SIM5218 Serial AT Command Manual Figure 17-3 Open “Receive File” dialog box Step3. Set storage place and receiving protocol In “Receive File” dialog box, set the storage place in PC host where file transmitted is saved in text box, and select receiving protocol in combo box. Then click “Receive” button to open “Receive Filename” dialog box. [Figure 17-4] NOTE The receiving protocol must be “Xmodem” protocol. Figure 17-4 Storage place and receiving potocol Step4. Set file name SIM5218_Serial _AT Command Manual_V1.21 424 1/13/2011
  • 426. SIM5218 Serial AT Command Manual 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-5 Set file name Step5. Transmit the file After start file transmission, it can’t emit any AT commands untill transmission stops. In “Xmodem file receive” dialog box, it will display the process of transmission. [Figure 17-6] Figure 17-6 Xmodem file receive If cannel the transmission, HyperTerminal will prompt “Transfer cancelled by user”. [Figure 17-7] Figure 17-7 SIM5218_Serial _AT Command Manual_V1.21 Cancel transmission 425 1/13/2011
  • 427. SIM5218 Serial AT Command Manual After transmission successfully, the receiving dialog box is closed and it can emit AT commands in HyperTerminal. [Figure 17-8] Figure 17-8 24.6.2 Transmission successfully File received from PC host Step1. Set file name and storage place Firstly, it must set file name and storage place in file system of module by one of following methods: ①. Select directory as current directory by AT+FSCD, and then set file name and storage place as current directory with parameter <dir_type> of AT+CRXFILE is 0 or omitted. [Figure 17-9] SIM5218_Serial _AT Command Manual_V1.21 426 1/13/2011
  • 428. SIM5218 Serial AT Command Manual Figure 17-9 Set file name and storage place ②. 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 Open “Send File” dialog box Step3. Select file and transmitting protocol 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. SIM5218_Serial _AT Command Manual_V1.21 427 1/13/2011
  • 429. SIM5218 Serial AT Command Manual Figure 17-11 Select file and protocol Step4. File transmission After start file transmission, it can’t emit any AT commands utill transmission stops. In “Xmodem file send” dialog box, it will display the process of transmission. [Figure 17-12] Figure 17-12 The process of file transmission If cannel the transmission, HyperTerminal will prompt “Transfer cancelled by user”. SIM5218_Serial _AT Command Manual_V1.21 428 1/13/2011
  • 430. SIM5218 Serial AT Command Manual NOTE There may be some characters reported which denote interactions between module and PC host. 24.7 MMS commands Set the parameters AT+CMMSCURL=”mmsc.monternet.com” OK Comments Set the MMS center URL without “http://” AT+CMMSPROTO=1,”10.0.0.172”,80 OK Use http protocol to send MMS and set the IP address and port of MMS proxy to “10.0.0.172” and 80 AT+CMMSSENDCFG=6,3,0,0,2,4 OK Set the parameter of MMS to send. This is unnecessary to set. Send MMS Comments AT+CGSOCKCONT=1,”IP”,”cmwap” OK Set the PDP context profile. AT+CMMSEDIT=1 OK Set the edit mode to 1. AT+CMMSDOWN=”TITLE”,10 >Test title OK Set the title of MMS to “Test title”. AT+CMMSDOWN=”FILE”,3,” 1.jpg” OK Add the “1.jpg” in UE to the MMS body. Add a text file named “t1.txt” with length of 120 bytes. AT+CMMSDOWN=”TEXT”,120,”t1.txt” >My test content….(file content, 120 bytes) OK Add a recipient of “13918181818” AT+CMMSRECP=”13918181818” OK Add a recipient of T1@TEST.COM AT+CMMSRECP=”T1@TEST.COM” OK Add a copy recipient of ”15013231222” AT+CMMSCC=”15013231222” OK Save the MMS to mail box of index 1. AT+CMMSSAVE=1 +CMMSSAVE: 1 SIM5218_Serial _AT Command Manual_V1.21 429 1/13/2011
  • 431. SIM5218 Serial AT Command Manual OK Send the MMS recipient ”13318882322” AT+CMMSSEND=”13318882322” OK including new +CMMSSEND:0 After MMS is sent successfully, This command indicates success of sending. If failed, +CME ERROR:<err> will be reported. Receive MMS Description +WAP_PUSH_MMS: "15001844675","RROpJGJVyjeA","http://211.136 .112.84/RROpJGJVyjeA" ,"09/03/17,17:14:41+32",0,13338 Receiving a new MMS notification. AT+CGSOCKCONT=1,”IP”,”cmwap” OK Set the PDP context profile. AT+CMMSEDIT=0 OK Set the mms edit mode to 0. AT+CMMSRECV="http://211.136.112.84/RROpJ GJVyjeA" OK Receive MMS using the location contained in +WAP_PUSH_MMS indication. +CMMSRECV:0 After MMS is received successfully, this command indicates success of receiving. If failed, +CME ERROR:<err> will be reported. AT+CMMSSAVE=0 +CMMSSAVE: 0 OK If receiving successfully, save it to mail box. SIM5218_Serial _AT Command Manual_V1.21 430 1/13/2011
  • 432. SIM5218 Serial AT Command Manual 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/ SIM5218_Serial _AT Command Manual_V1.21 431 1/13/2011