sc6531 AT Command User Guide

更新时间:2023-04-10 22:31:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

AT Command User Guide

Issue 02 (2010-10-31) Spreadtrum Communications Inc. i

AT Command User Guide

Version: 2.0.0

DocCode: SW-BASE-UG-0006

Date: Oct 31, 2011

a9d0fa89de80d4d8d05a4f0e

A T Command User Guide

Important Notice

Copyright Notice

Copyright ? 2011, Spreadtrum Communications, Inc. All rights reserved.

Trademarks

Spreadtrum Communications, Inc. and Spreadtrum Communications, Inc.'s products are

exclusively owned by Spreadtrum Communications, Inc. References to other companies and

their products use trademarks owned by the respective companies and are for reference

purpose only.

Warranty Disclaimer

Spreadtrum Communications, Inc. makes no representations or warranties, either expressed or

implied, by or with respect to anything in this document, and shall not be liable for any

implied warranties of merchantability or fitness for a particular purpose or for any indirect,

special or consequential damages.

Confidentiality

The information contained herein (including any attachments) is confidential. The recipient

hereby acknowledges the confidentiality of this document, and except for specific purposes,

this document shall not be disclosed to any third party.

ii Spreadtrum Communications Inc. Issue 01 (2010-10-31)

AT Command User Guide

About This Document

Purpose

The AT Command User Guide describes the AT commands supported by Spreadtrum. Using

these commands, users can control and manage various GSM services such as call, SMS, and

supplementary services. They can control ME related functions such as reading IMEI and

operating the phone book as well.

Intended Audience

This document is intended for the engineers that use the AT command.

Organization

This document consists of eleven chapters and is organized as follows.

Issue 02 (2010-10-31) Spreadtrum Communications Inc. iii

A T Command User Guide

Contents

1 Introduction................................................................................................................................. 1-1

1.1 Overview ....................................................................................................................................................... 1-1

1.2 Related Documents ....................................................................................................................................... 1-1

1.3 Serial Port Configuration .............................................................................................................................. 1-1

1.4 Commands .................................................................................................................................................... 1-2

1.5 Information Response and Final Result Code ............................................................................................... 1-3

1.6 Power-On Procedure ................................................................................................................................... 1-13

1.7 MS Command Procedures ........................................................................................................................... 1-14

1.7.1 MO Call ............................................................................................................................................. 1-14

1.7.2 MT Call .............................................................................................................................................. 1-14

1.7.3 GPRS CONNECT .............................................................................................................................. 1-15

1.8 Mixed Mode Protocol.................................................................................................................................. 1-16

1.8.1 Overview ............................................................................................................................................ 1-16

1.8.2 AT Command Packet .......................................................................................................................... 1-16

1.8.3 Data Packet ........................................................................................................................................ 1-17

2 Common Control Commands ................................................................................................ 2-19

2.1 AT ................................................................................................................................................................ 2-19

2.2 ATZ.............................................................................................................................................................. 2-19

2.3 ATE.............................................................................................................................................................. 2-20

2.4 ATS0 ............................................................................................................................................................ 2-20

2.5 ATQ ............................................................................................................................................................. 2-21

2.6 ATV ............................................................................................................................................................. 2-22

2.7 AT&W ......................................................................................................................................................... 2-22

2.8 AT+CMEE ................................................................................................................................................... 2-24

2.9 AT+CFUN ................................................................................................................................................... 2-25

2.10 AT+CCLK ................................................................................................................................................. 2-26

2.11 AT+IPR ...................................................................................................................................................... 2-27

2.12 AT+CGSN ................................................................................................................................................. 2-28

2.13 AT+CGMM ............................................................................................................................................... 2-29

2.14 AT+CGMR ................................................................................................................................................ 2-30

2.15 AT+CGMI ................................................................................................................................................. 2-31

2.16 AT+CPAS .................................................................................................................................................. 2-32 iv Spreadtrum Communications Inc. Issue 01 (2010-10-31)

AT Command User Guide

2.17 AT+CCID .................................................................................................................................................. 2-33

2.18 AT+CIMI ................................................................................................................................................... 2-34

2.19 AT+CBC .................................................................................................................................................... 2-35

2.20 AT+CPOF .................................................................................................................................................. 2-36

2.21 AT+CSCS .................................................................................................................................................. 2-37

2.22 AT+SAC .................................................................................................................................................... 2-38

2.23 AT+STONE ............................................................................................................................................... 2-39

2.24 AT+SDTMF .............................................................................................................................................. 2-40

2.25 AT+SBCM ................................................................................................................................................. 2-41

2.26 +SBCI........................................................................................................................................................ 2-42

2.27 AT+CMUX ................................................................................................................................................ 2-43

2.28 AT+CRSM ................................................................................................................................................. 2-45

2.29 AT+CIEV .................................................................................................................................................. 2-46 Network Service Commands ...................................................................................................... 2-2

2.30 AT+COPS .................................................................................................................................................... 2-2

2.31 AT+CSQ ...................................................................................................................................................... 2-4

2.32 AT+CCED ................................................................................................................................................... 2-5

2.33 AT+CREG ................................................................................................................................................... 2-7

2.34 AT+SCREG ................................................................................................................................................. 2-9

3 Call Control Commands ......................................................................................................... 3-10

3.1 ATD ............................................................................................................................................................. 3-10

3.2 ATA ............................................................................................................................................................. 3-11

3.3 ATH ............................................................................................................................................................. 3-11

3.4 AT+VTD...................................................................................................................................................... 3-12

3.5 AT+VTS ...................................................................................................................................................... 3-13

3.6 AT+VGR ..................................................................................................................................................... 3-14

3.7 AT+CMUT .................................................................................................................................................. 3-15

3.8 AT+ECHO ................................................................................................................................................... 3-16

3.9 AT+CICB .................................................................................................................................................... 3-17

3.10 AT+CRMP ................................................................................................................................................. 3-18

3.11 AT+CIND .................................................................................................................................................. 3-19

4 Supplementary Service Commands ..................................................................................... 4-21

4.1 AT+CCFC .................................................................................................................................................... 4-21

4.2 AT+CCWA .................................................................................................................................................. 4-23

4.3 AT+CHLD ................................................................................................................................................... 4-24

4.4 AT+CLIP ..................................................................................................................................................... 4-25

4.5 AT+CLIR ..................................................................................................................................................... 4-26

4.6 AT+COLP .................................................................................................................................................... 4-27

4.7 AT+COLR ................................................................................................................................................... 4-28

4.8 AT+CLCK ................................................................................................................................................... 4-28

4.9 AT+CPWD .................................................................................................................................................. 4-28 Issue 02 (2010-10-31) Spreadtrum Communications Inc. v

A T Command User Guide

4.10 AT+CACM ................................................................................................................................................ 4-29

4.11 AT+CAMM ............................................................................................................................................... 4-30

4.12 AT+CPUC ................................................................................................................................................. 4-30

4.13 AT+CLCC ................................................................................................................................................. 4-31

4.14 AT+CUSD ................................................................................................................................................. 4-32

4.15 AT+CSSN .................................................................................................................................................. 4-33

5 Security Control Commands .................................................................................................. 5-35

5.1 AT+CPIN ..................................................................................................................................................... 5-35

5.2 AT+CPWD .................................................................................................................................................. 5-37

5.3 AT+CLCK ................................................................................................................................................... 5-39

5.4 AT+XX ........................................................................................................................................................ 5-41

6 SMS Commands ....................................................................................................................... 6-42

6.1 AT+CSMS ................................................................................................................................................... 6-42

6.2 AT+CSAS .................................................................................................................................................... 6-43

6.3 AT+CRES .................................................................................................................................................... 6-43

6.4 AT+CSDH ................................................................................................................................................... 6-44

6.5 AT+CPMS ................................................................................................................................................... 6-45

6.6 AT+CSCA ................................................................................................................................................... 6-46

6.7 AT+CMGF .................................................................................................................................................. 6-47

6.8 AT+CMGL .................................................................................................................................................. 6-48

6.9 AT+CMGR .................................................................................................................................................. 6-50

6.10 AT+CMGS ................................................................................................................................................ 6-52

6.11 AT+CSMP ................................................................................................................................................. 6-54

6.12 AT+CMGW ............................................................................................................................................... 6-56

6.13 AT+CMSS ................................................................................................................................................. 6-57

6.14 AT+CMGD ................................................................................................................................................ 6-58

6.15 AT+CSCB .................................................................................................................................................. 6-59

6.16 AT+CNMI ................................................................................................................................................. 6-60

6.17 +CMTI ...................................................................................................................................................... 6-61

6.18 +CMT ........................................................................................................................................................ 6-61

6.19 +CBM........................................................................................................................................................ 6-62

6.20 AT+SMSC ................................................................................................................................................. 6-62

6.21 AT+SUSS .................................................................................................................................................. 6-64

6.22 AT+SCMGS .............................................................................................................................................. 6-64

6.23 AT+SCMGW ............................................................................................................................................. 6-65

7 Phonebook Commands ........................................................................................................... 7-67

7.1 AT+CPBS .................................................................................................................................................... 7-67

7.2 AT+CPBR .................................................................................................................................................... 7-68

7.3 AT+CPBF .................................................................................................................................................... 7-69

7.4 AT+CPBW .................................................................................................................................................. 7-70

7.5 AT+CPBP .................................................................................................................................................... 7-71 vi Spreadtrum Communications Inc. Issue 01 (2010-10-31)

AT Command User Guide

7.6 AT+CPBN ................................................................................................................................................... 7-72

7.7 AT+CNUM .................................................................................................................................................. 7-74

7.8 AT+SDCP .................................................................................................................................................... 7-75

7.9 AT+CSVM .................................................................................................................................................. 7-76

8 STK Commands........................................................................................................................ 8-77

8.1 Overview ..................................................................................................................................................... 8-77

8.2 Interactions Between STK and STK Applications ...................................................................................... 8-78

8.3 STK Commands .......................................................................................................................................... 8-79

8.3.1 AT+STSF ........................................................................................................................................... 8-79

8.3.2 AT+STIN ............................................................................................................................................ 8-80

8.3.3 AT+STGI ............................................................................................................................................ 8-81

8.3.4 AT+STGR .......................................................................................................................................... 8-85

8.4 STK Transparent Mode ............................................................................................................................... 8-87

8.4.1 AT+PSSTKE ...................................................................................................................................... 8-89

8.4.2 AT+PSSTKR ...................................................................................................................................... 8-89

8.4.3 AT+PSSTKI ....................................................................................................................................... 8-90

8.4.4 AT+PSSTKSMS ................................................................................................................................. 8-90

8.4.5 AT+STKREFRESH ............................................................................................................................ 8-92

9 GPRS Commands ..................................................................................................................... 9-94

9.1 AT+CGDCONT........................................................................................................................................... 9-94

9.2 AT+CGQREQ ............................................................................................................................................. 9-96

9.3 AT+CGQMIN .............................................................................................................................................. 9-99

9.4 AT+CGPCO .............................................................................................................................................. 9-101

9.5 AT+CGA TT ............................................................................................................................................... 9-103

9.6 AT+CGACT .............................................................................................................................................. 9-104

9.7 AT+CGPADDR ......................................................................................................................................... 9-105

9.8 AT+CGDATA ............................................................................................................................................ 9-106

9.9 AT+CGAUTO ........................................................................................................................................... 9-107

9.10 AT+CGANS ............................................................................................................................................ 9-108

9.11 AT+CGCLASS ........................................................................................................................................ 9-109

9.12 AT+CGEREP........................................................................................................................................... 9-110

9.13 AT+CGREG ............................................................................................................................................ 9-111

9.14 AT+CGSMS ............................................................................................................................................ 9-112

9.15 AT+CRC .................................................................................................................................................. 9-113

9.16 AT+CR .................................................................................................................................................... 9-114

9.17 AT+CEER ................................................................................................................................................ 9-115

9.18 Extension of ATD .................................................................................................................................... 9-115

9.19 AT+SSST ................................................................................................................................................. 9-116

9.20 AT+SATT ................................................................................................................................................ 9-117

9.21 AT+SAUTOATT ..................................................................................................................................... 9-118

9.22 AT+SGPRSDATA ................................................................................................................................... 9-119 Issue 02 (2010-10-31) Spreadtrum Communications Inc. vii

A T Command User Guide

9.23 AT+CGEQREQ ....................................................................................................................................... 9-120

9.24 AT+CGEQMIN ....................................................................................................................................... 9-122

10 Special Commands ............................................................................................................ 10-124

10.1 AT+SMUX ............................................................................................................................................ 10-124

10.2 AT+S32K ............................................................................................................................................... 10-125

10.3 AT+SIND .............................................................................................................................................. 10-126

10.4 AT+SBAND .......................................................................................................................................... 10-128

10.5 AT+SSAM ............................................................................................................................................. 10-129

10.6 AT+SSAP .............................................................................................................................................. 10-130

10.7 AT+SPEAKER ...................................................................................................................................... 10-132

10.8 AT+SSEA .............................................................................................................................................. 10-133

10.9 AT+SDMUT .......................................................................................................................................... 10-135

10.10 AT+SRWD .......................................................................................................................................... 10-136

10.11 AT+SMGF ........................................................................................................................................... 10-137

10.12 AT+SMGD .......................................................................................................................................... 10-139

10.13 AT+SSMP ............................................................................................................................................ 10-140

10.14 AT+SSGF ............................................................................................................................................ 10-140

10.15 AT+SSGS ............................................................................................................................................ 10-142

10.16 AT+SNVM .......................................................................................................................................... 10-143

10.17 AT+SPLO ............................................................................................................................................ 10-145

10.18 AT+SCINF .......................................................................................................................................... 10-146

10.19 AT+SSYS ............................................................................................................................................ 10-147

10.20 AT+SPEQPARA .................................................................................................................................. 10-148

10.21 AT+SADM .......................................................................................................................................... 10-150

10.22 AT+SIME ............................................................................................................................................ 10-153

10.23 AT+SCMUX ........................................................................................................................................ 10-154

10.24 AT+PSORGMOD ................................................................................................................................ 10-154 viii Spreadtrum Communications Inc. Issue 01 (2010-10-31)

AT Command User Guide

Figures

Figure 1-1 Serial port configuration ................................................................................................................... 1-2 Figure 1-2 AT command line structure ............................................................................................................... 1-3 Figure 1-3 Return results .................................................................................................................................... 1-4 Figure 1-4 MO Call command procedure ......................................................................................................... 1-14 Figure 1-5 MT Call command procedure ......................................................................................................... 1-15 Figure 1-6 GPRS CONNECT command procedure ......................................................................................... 1-16 Figure 8-1 Interactions between STK and STK applications ........................................................................... 8-78

Issue 02 (2010-10-31) Spreadtrum Communications Inc. ix

本文来源:https://www.bwwdw.com/article/4qrl.html

Top