HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Issue
Date
02
2010-11-23
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
About This Document
About This Document
History
Version Date
Chapter Descriptions
Creation
01
02
2010-06-22
2010-11-23
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
Contents
1 Overall Description ......................................................................................................................1
1.1 Content Description.......................................................................................................................... 1
1.2 Product Description.......................................................................................................................... 1
1.3 Instructions for Use .......................................................................................................................... 2
1.4 Overview of AT Command Interfaces............................................................................................... 2
1.4.1 Description of AT Commands.................................................................................................. 2
1.4.2 Types of AT Commands........................................................................................................... 3
1.4.3 Abort Attributes of AT Commands............................................................................................ 6
1.5 Organization of This Document........................................................................................................ 7
2 Commands for Configuration ....................................................................................................9
2.2 AT&V - Command for Querying the Current Configuration.............................................................11
2.7 ATE - Command for Setting Echo .................................................................................................. 15
2.8.1 Querying the Supported Work Modes................................................................................... 16
2.8.3 Setting the Work Mode.......................................................................................................... 18
2.9.2 Setting System Shutdown ..................................................................................................... 19
2.9.3 Examples............................................................................................................................... 19
.............................................................................................................................................................. 20
in the Module.................................................................................................................................. 20
2.10.3 Examples............................................................................................................................. 20
2.11 AT+CMEE - Command for Setting Terminal Error Reporting ....................................................... 21
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
i
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
2.11.1 Querying the Error Reporting Mode Supported by the Terminal ......................................... 21
2.11.2 Reading the Terminal Error Reporting Mode....................................................................... 21
2.11.3 Setting the Terminal Error Reporting Mode ......................................................................... 22
2.13.1 Querying the Configuration Items That Can Be Set by the Module.................................... 24
2.13.3 Setting Configuration Items................................................................................................. 26
2.15 ^SHUTDOWN – Command for Unsolicitedly Reporting Module Power-off................................. 27
3 Commands for Status Control..................................................................................................28
3.1 AT+CMER - Command for Setting Event Reporting...................................................................... 28
3.1.1 Querying the Supported Settings for Event Reporting.......................................................... 28
3.1.2 Reading the Current Settings for Event Reporting................................................................ 29
3.2.4 Examples............................................................................................................................... 32
3.3.2 Reading the Current Event Reporting Mode......................................................................... 34
4 Commands for Serial Port Control ..........................................................................................37
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
ii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
4.6 AT+CMUX - Command for Setting Multiplexing............................................................................. 40
4.6.3 Setting Multiplexing ............................................................................................................... 42
5 Commands for Security Control ..............................................................................................43
5.1.4 Examples............................................................................................................................... 44
5.2.3 Examples............................................................................................................................... 47
5.3.2 Modifying the Password ........................................................................................................ 48
5.3.3 Examples............................................................................................................................... 49
6 Commands for Identification ...................................................................................................50
6.1.1 Examples............................................................................................................................... 51
6.2.1 Checking Whether the Command for Querying the Vendor Information Exists.................... 52
6.2.2 Querying the Vendor Information Request............................................................................ 52
6.2.3 Examples............................................................................................................................... 52
6.3.3 Examples............................................................................................................................... 53
6.4.3 Examples............................................................................................................................... 54
6.5.2 Querying the IMEI.................................................................................................................. 55
6.5.3 Examples............................................................................................................................... 55
6.6.2 Querying the IMSI.................................................................................................................. 56
6.6.3 Examples............................................................................................................................... 57
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
iii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
7 Commands for Call Control......................................................................................................58
7.1 ATD - Command for Originating a Call........................................................................................... 58
7.3 ATD*98# - Command for Requesting the GPRS IP Service.......................................................... 59
7.4 ATH - Command for Hanging Up the Connection.......................................................................... 60
7.6.2 Setting Unsolicitedly Answering Data Services..................................................................... 62
Establishment....................................................................................................................................... 62
7.7.2 Setting the Waiting Duration.................................................................................................. 63
the Calling Party Side..................................................................................................................... 64
Party Side ....................................................................................................................................... 64
7.9.3 Setting the Bearer Service Type............................................................................................ 65
7.10 +++ - Command for Switching Data Mode to Command Mode................................................... 66
7.12.1 Checking Whether AT+CHUP Hang-up Is Supported......................................................... 67
7.13.2 Reading the Current Settings for Service Reporting........................................................... 68
7.13.3 Setting Service Reporting.................................................................................................... 69
7.14 AT+CRC - Command for Setting the Cell Result Codes.............................................................. 69
7.14.1 Querying the Supported Settings for the Cell Result Codes............................................... 69
7.14.3 Settings the Cell Result Codes............................................................................................ 70
7.15 AT+VTS - Command for Sending the DTMF Tone....................................................................... 70
7.15.1 Sending the DTMF Tone...................................................................................................... 71
7.16 AT+CLIP - Command for Displaying the Calling Line Identification............................................. 71
7.16.2 Reading the Settings of the CLIP Service........................................................................... 72
7.16.3 Setting the CLIP .................................................................................................................. 72
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
iv
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
7.18 +CRING – Command for Unsolicitedly Reporting Incoming Calls............................................... 73
8 Commands for Network Services............................................................................................74
8.1 AT+COPN - Command for Querying the Operator Name.............................................................. 74
8.1.1 Checking Whether This Command Is Supported.................................................................. 74
8.1.2 Reading the List of Operators ............................................................................................... 75
8.1.3 Examples............................................................................................................................... 75
8.2.3 Setting the Current Operator Information.............................................................................. 77
8.2.4 Examples............................................................................................................................... 77
8.3.1 Checking the Parameter Range Supported by This Command............................................ 78
8.3.5 Examples............................................................................................................................... 80
8.4.1 Checking the Parameter Range Supported by This Command............................................ 81
8.4.3 Examples............................................................................................................................... 82
8.5 AT^SMONC - Command for Querying the Cell Information........................................................... 82
8.5.2 Querying the Cell Information................................................................................................ 83
8.5.3 Examples............................................................................................................................... 84
8.6.2 Querying the Cell Information................................................................................................ 85
8.6.3 Examples............................................................................................................................... 86
8.7 AT^MONI - Command for Querying the Cell Information in Idle and Dedicated Modes................ 86
8.7.1 Checking the Parameter Range Supported by This Command............................................ 86
8.7.4 Examples............................................................................................................................... 90
8.8.1 Checking the Parameter Range Supported by This Command............................................ 92
8.8.4 Examples............................................................................................................................... 94
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
v
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
8.9.1 Checking the Parameter Range Supported by This Command............................................ 96
8.9.4 Examples............................................................................................................................... 99
8.10.3 Examples........................................................................................................................... 102
8.11.4 Examples ........................................................................................................................... 104
8.12 AT^SPLR - Command for Querying Preferred Operators.......................................................... 105
8.12.1 Checking the Parameter Range Supported by This Command........................................ 105
8.12.2 Querying the Current Range of Preferred Operators........................................................ 105
8.12.3 Examples........................................................................................................................... 106
8.13 AT^SPLW - Command for Writing Preferred Operators............................................................. 106
8.13.1 Checking the Parameter Range Supported by This Command........................................ 106
8.13.2 Writing the Information About Preferred Operators........................................................... 107
8.13.3 Examples........................................................................................................................... 107
8.14.3 Examples........................................................................................................................... 109
9 Commands for Data Services..................................................................................................110
9.1.2 Reading the Activation State of the PDP Context.................................................................111
9.1.3 Setting the Activation State of the PDP Context...................................................................111
9.1.4 Examples..............................................................................................................................111
9.2 AT+CGATT - Command for Attaching the MT to or Detaching the MT from the GPRS Service...112
9.2.1 Checking the Supported GPRS Service State .....................................................................112
9.2.2 Querying the Current GPRS Service State ..........................................................................113
9.2.3 Setting the GPRS Service State...........................................................................................113
9.2.4 Examples..............................................................................................................................113
9.3 AT+CGEREP - Command for Reporting GPRS Events................................................................114
9.3.1 Checking the Supported GPRS Event Reporting Mode.......................................................114
9.3.2 Reading the GPRS Event Reporting Mode..........................................................................115
9.3.3 Setting the GPRS Event Reporting Mode............................................................................115
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
vi
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
9.4 AT+CGDATA - Command for Entering the Data Mode .................................................................116
9.4.1 Querying the Layer-2 Protocol Supported Between the TE and MT....................................117
9.4.2 Establishing Communication Between the TE and Network................................................117
9.4.3 Examples..............................................................................................................................118
9.5 AT+CGDCONT - Command for Defining the PDP Context...........................................................118
9.5.1 Querying the Range of PDP Related Parameters................................................................119
9.5.2 Reading the Status of the PDP Context .............................................................................. 120
9.5.3 Setting the Status of the PDP Context ................................................................................ 120
9.5.4 Examples............................................................................................................................. 120
9.6 AT+CGPADDR - Command for Reading the PDP Address ......................................................... 121
9.6.1 Querying the Supported PDP Index Value.......................................................................... 121
9.6.2 Reading the PDP Address List of the Specified PDP Context ............................................ 121
9.6.3 Examples............................................................................................................................. 122
9.7 AT+CGQMIN - Command for Setting the Acceptable Minimum Quality of Service Profile.......... 122
9.7.1 Querying the Supported QoS Parameter Range ................................................................ 123
9.7.2 Querying the Minimum QoS of All PDP Contexts................................................................ 125
9.7.3 Setting the Minimum QoS of a PDP Context....................................................................... 126
9.8 AT+CGQREQ - Command for Setting the Requested QoS Profile.............................................. 126
9.8.1 Checking the Parameter Range Supported by the Command............................................ 126
9.8.2 Querying All QoS Levels Specified by the TE ..................................................................... 129
9.8.3 Setting the QoS of a PDP Context ...................................................................................... 129
9.9 AT+CGREG - Command for Setting Whether to Report the GPRS Network Registration Status129
9.9.1 Checking the Parameter Range Supported by this Command........................................... 130
9.9.2 Querying the Parameters Unsolicitedly Reported When the Current GPRS Registration
Status Changes ............................................................................................................................ 130
9.9.3 Setting the Parameters Unsolicitedly Reported When the GPRS Registration Status
Changes ....................................................................................................................................... 131
9.9.4 +CGREG – Command for Reporting Unsolicitedly ............................................................. 131
9.10 AT+CGSMS - Command for Selecting the MO SMS Bearer Domain........................................ 132
9.10.1 Querying the Supported SMS Bearer Domains ................................................................ 132
9.10.2 Reading the Current SMS Bearer Domain........................................................................ 132
9.10.3 Setting the SMS Bearer Domain ....................................................................................... 133
9.11 +CGEV – Command for Unsolicitedly Reporting GPRS MT or Network Events ....................... 133
10 Commands for Internet Services..........................................................................................135
10.1 AT^SICS - Command for Creating a Connection Profile............................................................ 135
10.1.1 Checking Whether the SICS Command Is Available ........................................................ 135
10.1.2 Reading the Information About Connection Profiles ......................................................... 136
10.1.3 Setting the Internet Connection Profile.............................................................................. 137
10.1.4 Examples........................................................................................................................... 137
10.2 AT^SICI - Command for Querying the Connection Profile......................................................... 138
10.2.1 Querying the ID of the Defined Connection Profile ........................................................... 139
10.2.2 Querying the Status of the Connection Profile .................................................................. 139
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
vii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
10.2.3 Displaying the Status of the Specified Connection Profile................................................. 140
10.2.4 Examples........................................................................................................................... 140
10.3 AT^SISS - Command for Creating the Service Profile ............................................................... 141
10.3.1 Checking Whether This Command Is Available ................................................................ 141
10.3.2 Reading the Status of the Service Profile.......................................................................... 141
10.3.3 Setting the Internet Service Profile.................................................................................... 143
10.3.4 Examples........................................................................................................................... 143
10.4 AT^SISI - Command for Querying the Service Profile................................................................ 144
10.4.1 Querying the ID of the Defined Service Profile ................................................................. 144
10.4.2 Querying the Status of the Service Profile......................................................................... 145
10.4.3 Displaying the Status of the Specified Service Profile....................................................... 146
10.4.4 Examples........................................................................................................................... 146
10.5 AT^SISO - Command for Starting Internet Services .................................................................. 147
10.5.1 Checking Whether This Command Is Available ................................................................ 147
10.5.2 Querying the Open Status of All Services ......................................................................... 147
10.5.3 Starting a Specified Internet Service ................................................................................. 148
10.5.4 Examples........................................................................................................................... 148
10.6 AT^SISC - Command for Stopping Internet Services................................................................. 149
10.6.1 Checking Whether This Command Is Available ................................................................ 149
10.6.2 Stopping a Specified Internet Service ............................................................................... 149
10.6.3 Examples........................................................................................................................... 149
10.7 AT^SISW - Command for Writing Data for Internet Services..................................................... 150
10.7.1 Checking Whether This Command Is Available ................................................................ 150
10.7.2 Writing Data to the Buffer of a Service .............................................................................. 150
10.7.3 ^SISW - Command for Reporting Unsolicitedly................................................................. 151
10.7.4 Examples........................................................................................................................... 151
10.8 AT^SISR - Command for Internet Services to Read Data.......................................................... 152
10.8.1 Checking Whether the AT^SISR Command Is Available................................................... 152
10.8.2 Reading Data Out From the Buffer of an Internet Service ................................................ 153
10.8.3 ^SISR - Command for Reporting Unsolicitedly ................................................................. 154
10.8.4 Exmaples........................................................................................................................... 154
10.9 ^SIS - Command for Unsolicitedly Reporting the Information About Internet Services............. 155
11 Commands for Short Messages............................................................................................156
11.1 AT+CMGD - Command for Deleting Short Messages................................................................ 156
11.1.1 Checking the Parameter Range Supported by the Command.......................................... 156
11.1.2 Deleting Short Messages................................................................................................... 157
11.1.3 Examples ........................................................................................................................... 157
11.2 AT+CMGF - Command for Setting the Format of Short Messages............................................ 158
11.2.1 Checking the Supported Format of Short Messages ........................................................ 158
11.2.2 Reading the Format of Short Messages............................................................................ 159
11.2.3 Setting the Format of Short Messages.............................................................................. 159
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
viii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
11.2.4 Examples ........................................................................................................................... 159
11.3 AT+CMGL - Command for Querying the List of Short Messages .............................................. 160
11.3.1 Checking the Supported Status of Short Messages.......................................................... 160
11.3.2 Reading the List of Short Messages.................................................................................. 161
11.3.3 Examples ........................................................................................................................... 162
11.4 AT+CMGR - Command for Reading Short Messages................................................................ 162
11.4.1 Testing Whether the Command for Reading Short Messages Is Supported..................... 162
11.4.2 Reading Short Messages .................................................................................................. 163
11.5 AT+CMGS - Command for Sending Short Messages................................................................ 164
11.5.1 Testing Whether the Command for Sending Short Messages Exists................................ 164
11.5.2 Sending Short Messages................................................................................................... 164
11.5.3 Examples ........................................................................................................................... 165
11.6 AT+CMGW - Command for Storing Short Messages................................................................. 165
11.6.1 Checking Whether the Command for Storing Short Messages Is Supported ................... 165
11.6.2 Storing Short Messages..................................................................................................... 166
11.6.3 Examples ........................................................................................................................... 166
11.7 AT+CMSS - Command for Selecting a Short Message from the Memory and Sending It......... 166
11.7.1 Checking Whether the Command for Sending Short Messages Is Available ................... 167
11.7.2 Sending a Short Message at the Specified Location......................................................... 167
11.7.3 Examples ........................................................................................................................... 168
11.8 AT+CNMI - Command for Setting the Notification for a New Short Message............................ 168
11.8.1 Checking the Parameter Range Supported by the AT+CNMI Command ......................... 168
11.8.2 Reading the Status of Short Message Notification............................................................ 170
11.8.3 Setting the Status of Short Message Notification .............................................................. 170
11.8.4 Examples ........................................................................................................................... 170
11.9 AT+CPMS - Command for Setting the Storage Location of Short Messages ............................ 171
11.9.1 Checking the Storage Location of Short Messages .......................................................... 171
11.9.2 Reading the Status of Storage Location ............................................................................ 172
11.9.3 Setting the Storage Location ............................................................................................. 173
11.9.4 Examples ........................................................................................................................... 173
11.10 AT+CSCA - Command for Setting the Number of the SMSC................................................... 173
11.10.1 Checking Whether the Command Is Available ................................................................ 174
11.10.2 Reading the Currently Registered Number of the SMSC................................................ 174
11.10.3 Setting the Number of the SMSC .................................................................................... 175
11.10.4 Examples......................................................................................................................... 176
11.11 AT+CSCB - Command for Selecting the Type of Cell Messages............................................. 176
11.11.1 Checking the Parameter Range Supported by the Command ........................................ 176
11.11.2 Reading the Current CBM Type....................................................................................... 177
11.11.3 Setting the Current CBM Type......................................................................................... 177
11.11.4 Examples ......................................................................................................................... 177
11.12 AT+CSMS - Command for Setting the Message Service Type................................................ 178
11.12.1 Checking Whether the Command Is Available ................................................................ 178
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
ix
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
11.12.2 Reading the Current Message Service Type................................................................... 179
11.12.3 Setting the Message Service Type.................................................................................. 179
11.12.4 Examples......................................................................................................................... 179
11.13 +CMTI – Command for Unsolicitedly Reporting SMS Arrival................................................... 180
11.14 +CMT – Command for Unsolicitedly Reporting a New SM...................................................... 180
11.15 +CBM – Command for Unsolicitedly Reporting a Cell SM....................................................... 181
11.16 +CDS – Command for Unsolicitedly Reporting a New SM Status Report ............................... 181
12 Commands for the SIM Card................................................................................................182
12.1 AT+CRSM - Command for Accessing a SIM Card Through Restricted SIM Access................. 182
12.1.1 Checking Whether the +CRSM Command Is Available .................................................... 182
12.1.2 Accessing the SIM Database ............................................................................................ 183
13 Commands for the Phone Book............................................................................................184
13.1 AT+CPBR - Command for Reading the Phone Book................................................................. 184
13.1.1 Checking the Parameter Range Supported by the +CPBR Command ............................ 184
13.1.2 +CPBR - Command for Reading the Phone Book............................................................ 185
13.1.3 Examples........................................................................................................................... 185
13.2 AT+CPBW - Command for Writing the Phone Book .................................................................. 186
13.2.1 Checking the Parameter Range Supported by This Command........................................ 186
13.2.2 Writing a Record into the Phone Book .............................................................................. 187
13.2.3 Examples........................................................................................................................... 187
13.3 AT+CPBS - Command for Selecting the Phone Book Memory ................................................. 188
13.3.1 Checking the Value Range Supported by the +CPBS Command..................................... 188
13.3.2 Reading the Current Memory of the Phone Book ............................................................. 189
13.3.3 Setting the Memory Type of the Phone Book.................................................................... 189
13.3.4 Examples........................................................................................................................... 189
14 Commands for Hardware Control .......................................................................................191
14.1 AT+CALA.................................................................................................................................... 191
14.1.1 Checking the Parameter Range Supported by This Command........................................ 191
14.1.2 Querying the Set Alarm Clock ........................................................................................... 192
14.1.3 Setting an Alarm Clock ...................................................................................................... 192
14.1.4 +CALA – Command for Reporting Unsolicitedly ............................................................... 193
14.1.5 Examples........................................................................................................................... 193
14.2 AT+CCLK – Command for Setting the System Time ................................................................. 193
14.2.1 Checking Whether the Command for Setting the System Time Exists............................. 194
14.2.2 Querying the Current System Time................................................................................... 194
14.2.3 Setting the System Time ................................................................................................... 194
14.2.4 Examples........................................................................................................................... 195
15 Commands for Audio Control..............................................................................................196
15.1 AT^SWSPATH - Command for Switching Between Audio Channels......................................... 196
15.1.1 Querying the Supported Audio Channel............................................................................ 196
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
x
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Contents
15.1.2 Reading the Current Audio Channel.................................................................................. 197
15.1.3 Switching the Audio Channel............................................................................................. 197
15.2 AT+CMIC - Command for Adjusting the Microphone Gain Level............................................... 197
15.2.1 Querying the Supported Microphnoe Gain Levels ............................................................ 197
15.2.2 Querying the Current Microphone Gain Level................................................................... 198
15.2.3 Setting the Microphone Gain Level ................................................................................... 198
15.3 AT^ECHO - Command for Suppressing the Echo...................................................................... 198
15.3.1 Querying the Supported Echo Suppressing Functions ..................................................... 199
15.3.2 Reading the Current Settings of the Echo Suppressing Function..................................... 199
15.3.3 Setting the Echo Suppressing Function ............................................................................ 200
15.4 AT+CLVL - Command for Adjusting the Speaker Volume .......................................................... 200
15.4.1 Querying the Supported Speaker Volume Level ............................................................... 200
15.4.2 Reading the Current Speaker Volume............................................................................... 201
15.4.3 Setting the Speaker Volume.............................................................................................. 201
15.5 AT+CMUT - Command for Muting and Unmuting the Microphone ............................................ 201
15.5.1 Querying the Supported Muting Settings for the Microphone........................................... 202
15.5.2 Reading the Curent Muting Settings of the Microphone ................................................... 202
15.5.3 Setting the Muting Function of the Microphone................................................................. 203
16 Other Commands....................................................................................................................204
16.1 A/ - Command for Executing the Previous Command Again ..................................................... 204
16.1.1 Execution Command ......................................................................................................... 204
16.1.2 Examples........................................................................................................................... 204
16.2 ATS3 – Command for Settting the Command Line Ending Character....................................... 205
16.2.1 Querying the Current Command Line Ending Character .................................................. 205
16.2.2 Setting the Command Line Ending Character................................................................... 205
16.2.3 Examples........................................................................................................................... 205
16.3 ATS4 – Command for Setting the Response Format Character................................................ 206
16.3.1 Querying the Current Format Character............................................................................ 206
16.3.2 Setting the Response Format Character........................................................................... 207
16.3.3 Examples........................................................................................................................... 207
16.4 ATS5 – Command for Setting the Backspace Character........................................................... 207
16.4.1 Querying the Current Backspace Character ..................................................................... 208
16.4.2 Setting the Current Backspace Character......................................................................... 208
16.4.3 Examples........................................................................................................................... 208
16.5 ^THERM - Command for Unsolicitedly Reporting Temperature Protection............................... 209
17 Appendix ..................................................................................................................................210
17.1 List of URC Commands ............................................................................................................. 214
17.2 List of CME/CMS ERROR Codes .............................................................................................. 216
17.3 Acronyms and Abbreviations...................................................................................................... 220
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
xi
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Figures
Figures
Figure 1-1 Interaction between the TE and MT..................................................................................... 2
Figure 1-2 Basic organization format the AT command line.................................................................. 3
Figure 1-3 An example of returned value of the AT command.............................................................. 3
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
xii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Tables
Tables
Table 1-1 Format of a basic command .................................................................................................. 4
Table 1-2 Format of an S register command ......................................................................................... 4
Table 1-3 Types and formats of extended and vendor-defined commands........................................... 5
Table 2-1 List of factory settings for AT&F............................................................................................. 9
Table 2-2 List of query results for AT&V................................................................................................11
Table 2-3 List of commands and parameters that can be stored by AT&W......................................... 12
Table 2-4 Effect of ATV on response formats ...................................................................................... 14
Table 2-5 List of execution results ....................................................................................................... 14
Table 2-6 List of work modes............................................................................................................... 16
Table 2-7 Relations between work modes and services ..................................................................... 17
Table 2-8 Character set of the MS....................................................................................................... 23
Table 2-9 List of configurable items..................................................................................................... 24
Table 2-10 Values of the < tcpWithUrc > parameter............................................................................ 25
Table 2-11 Values of the <udri> parameter.......................................................................................... 25
Table 2-12 Values of the <uri> parameter ........................................................................................... 25
Table 3-1 Values of the <indDescr> and <indValue> parameters ....................................................... 30
Table 3-2 Values of the <indDescr> and <indValue> parameters ....................................................... 33
Table 5-1 PIN authentication performed by the SIM card.................................................................... 44
Table 6-1 Composition of the IMEI ...................................................................................................... 55
Table 6-2 Composition of the IMSI ...................................................................................................... 56
Table 7-1 Values of <serv> .................................................................................................................. 68
Table 7-2 Values of <type> .................................................................................................................. 69
Table 7-3 <type> values....................................................................................................................... 73
Table 8-1 List of parameters for the serving cell.................................................................................. 87
Table 8-2 List of parameters for dedicated channels........................................................................... 87
Table 8-3 List of cell information.......................................................................................................... 96
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
xiii
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Tables
Table 10-1 Parameter names supported by conType in CSD and GPRS0....................................... 136
Table 10-2 Values of <srvParmTag>.................................................................................................. 142
Table 10-3 Value range of <srvParmValue> and <srvParmTag> ...................................................... 142
Table 11-1 Structure of <pdu> ........................................................................................................... 161
Table 11-2 Data structure of TPDU.................................................................................................... 161
Table 13-1 Value options of <storage>.............................................................................................. 188
Table 17-1 List of effects on AT commands imposed by SIM PIN..................................................... 210
Table 17-2 List of URC commands.................................................................................................... 214
Table 17-3 Common “CME ERROR” codes ...................................................................................... 216
Table 17-4 “CME ERROR” codes related to the GPRS .................................................................... 217
Table 17-5 “CMS ERROR” codes related to the SMS....................................................................... 218
Table 17-6 “CME ERROR” codes related to the MG323 only ........................................................... 218
Table 17-7 Acronyms and abbreviations............................................................................................ 220
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
xiv
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
1
Overall Description
This chapter briefly describes the contents and organization of this document and
focuses on the basic knowledge of AT command interfaces.
1.1 Content Description
This document describes the AT command interface specification that is supported by
Huawei terminal product MG323 module. This document describes certain AT
commands (implemented by terminal devices) of international standards such as
3GPP TS 27.007 3d0, 3GPP TS 27.005 320, and ITU-T V.250 [14] according to the
requirements of terminal devices. In addition, this document describes the proprietary
AT command interfaces that are implemented by terminal devices. These proprietary
AT command interfaces help implement a certain function.
This document does not describe the interfaces that have been defined by standards
or implemented by the mobile terminal (MT) but are not required by the MG323. The
description of AT command interfaces covers only the data packets of interfaces and
the methods and processes for the terminal equipment (TE) and the MT to use
interfaces, excluding the contents that are not directly related to interfaces. In
addition, this document describes only the AT command interfaces falling within the
range of Rm interfaces between the TE and MT, excluding the AT command
interfaces falling within the range of Um interfaces between the MT and IWF.
1.2 Product Description
HUAWEI MG323 (the MG323) is a 2G B2B module product with 50 pins, supporting
four GSM frequency bands, that is, GSM850, GSM900, DCS1800, and PCS1900.
The MG323 is mainly applicable to industrial modules.
The MG323 provides one external UART interface and supports functions such as
SMS, phone book management, data service, and embedded TCP/UDP.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
1
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
1.3 Instructions for Use
You are not advised to use various parameter values that are not described in this
document or not supported currently as described in this document.
The AT command parameters described in the following chapters are in two formats:
<> and [], which are described as follows:
<...>
The parameter inside these angle brackets is mandatory. The <> does not
exist in a command.
[...]
The parameter inside these square brackets is optional. The [] does not exist
in a command or a response.
<CR> Carriage return character. For details, see the description in S3.
<LF>
Line feed character. For details, see the description in S4.
When an AT command is sent, the characters contained in the name and parameters
(excluding SMSs, phone book, and operator name) of the AT command are case
insensitive. All the characters contained in the result returned by the AT command
must be in upper case (excluding SMSs, phone book, and operator name).
When an AT command is sent, string parameters can be placed inside quotation
marks or not. The strings in the result returned by the AT command are placed inside
quotation marks.
1.4 Overview of AT Command Interfaces
1.4.1 Description of AT Commands
An AT command controls the rules for interaction between the TE such as PC and
MT such as MS. Figure 1-1 shows the interaction between the TE and MT.
Figure 1-1 Interaction between the TE and MT
Figure 1-2 shows the basic organization format of the AT command line.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
2
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
Figure 1-2 Basic organization format the AT command line
read command for checking
current subparameter values
subparameter
command line
termination character
extended commands are
delimited with semicolon
command line prefix
ATCMD1 CMD2=12; +CMD1; +CMD2=,,15; +CMD2?; +CMD2=?<CR>
subparameters
basic command
(no + prefix)
may be omitted
extended command
(prefixed with +)
test command for checking
possible subparameter values
The returned value of the AT command consists of two parts: response message and
result codes. Figure 1-3 shows an example of returned value of the AT command.
Figure 1-3 An example of returned value of the AT command
also string type subparameters possible
information response to +CMD2=?
information response to +CMD2?
<CR><LF>+CMD2: 3,0,15,"GSM"<CR><LF>
<CR><LF>+CMD2: (0-3),(0,1),(0-12,15),("GSM","IRA")<CR><LF>
<CR><LF>OK<CR><LF>
shows acceptable ranges of each subparameter
final result code
1.4.2 Types of AT Commands
AT commands are categorized into three types: basic commands, S register
commands, and extended and vendor-defined commands.
A basic command starts with a single letter or with the & symbol plus a single letter.
Table 1-1 describes the format of a basic command.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
3
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
Table 1-1 Format of a basic command
Command Format
Description
<command>[<number>] In the command format, <command> indicates a single
letter (A–Z) or the & symbol plus a single letter.
In the command format, <number> indicates a decimal
number with one digit or multiple digits. The digit 0 in the
forefront of <number> can be ignored.
Note:
If a basic command that is allowed to contain <number> does not contain <number>, the
default value of <number> is used in the command.
If a basic command that is not allowed to contain <number> contains <number>, "Operation
not allowed" is returned.
An S register command consists of the letter S and a decimal number, which is called
the parameter number of the register. An S register command can be in the format of
read command and write command. Table 1-2 describes the format of an S register
command.
Table 1-2 Format of an S register command
Command Format
Description
Read
S<parameter
Returns the ASCII code of characters currently saved
in the S register. The ASCII code is expressed by a
3-digit decimal number. The digit 0 is added in the
front of the number in case of insufficient digits.
command number>?
Write
S<parameter
Replaces the characters saved in the S register with
command number>=<value> the characters related to the value of <value>.
Note:
If the parameter number of the register is not identified, this indicates that the command does
not exist. In this case, ERROR is returned.
All extended commands start with the + symbol. Vendor-defined commands start with
a special symbol such as ^ and %. In this document, all vendor-defined commands
start with the ^ or \ symbol. Extended and vendor-defined commands are further
categorized into action commands and parameter commands. Table 1-3 describes
the types and formats of extended and vendor-defined commands.
An action command refers to a command that performs a specific action in addition to
interacting with the local parameters of the MS, including AT+CPBR and AT+CMGS.
An action command may or may not contain parameters. Action commands are
categorized into execution (write) command and test command. A parameter
command refers to a command that interacts with the local parameters of the MS
only, certain of which may affect the execution of action commands. Parameter
commands are categorized into write command, read command, and test command.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
4
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
Table 1-3 Types and formats of extended and vendor-defined commands
Command Command Format
Type
Description
Action
command
Execution Contains no parameter:
In the command format,
<compound_value>
indicates multiple
(write)
<name>
command
Contains one parameter:
<name>[=<value>]
parameters that are
separated by a comma. A
parameter having a default
value can be omitted from
the command. In this case,
the default value is used
instead.
Contains multiple parameters:
<name>[=<compound_value>]
Note:
If all parameters are omitted, the = symbol following <name>
should be omitted. If <name> is not identified, this command
does not exist. In this case, the ERROR is returned. When
<name> is identified, if a command that is not allowed to contain
parameters contains parameters or a command that is allowed to
contain parameters contains more parameters than the defined
ones, "Operation not allowed" is returned.
Test
command
<name>=?
A test command is
executed to query the
parameter range.
Note:
If the MS fails to identify <name>, the MS returns ERROR. If the
MS can identify <name> and the contents returned by the
command do not contain parameters, the MS returns OK. If the
contents returned by the command contain parameters, the MS
returns the available value range of each parameter, and then
returns OK.
Parameter Write
command command <name>[=<value>]
Contains multiple parameters:
Contains one parameter:
A write command is
executed to set
parameters.
<name>[=<compound_value>] In the command format,
<compound_value>
indicates multiple
parameters that are
separated by a comma. A
parameter with a default
value can be omitted from
the command. In this case,
the default value is used
instead.
Note:
If all parameters are omitted, the = symbol following <name>
should be omitted. If <name> is not identified, this command
does not exist. In this case, ERROR is returned. When <name>
is identified, if a command that is not allowed to contain
parameters contains parameters or a command that is allowed to
contain parameters contains more parameters than the defined
ones, "Operation not allowed" is returned.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
5
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
Description
Command Command Format
Type
Read
command
<name>?
A read command is
executed to read the
current value of a
parameter.
Test
command
<name>=?
A test command is
executed to check the
parameter range.
Note:
If the MS fails to identify <name>, the MS returns ERROR. If the
MS can identify <name> and the contents returned by the
command do not contain parameters, the MS returns OK. If the
contents returned by the command contain parameters, the MS
returns the value range of each parameter, and then returns OK.
1.4.3 Abort Attributes of AT Commands
Abort means that the TE sends an instruction to abort a command when the
command is being executed. An abort instruction must be sent before a command is
completely executed. Therefore, the abort instruction is valid for a command whose
execution consumes certain time; however, not all commands of this kind can be
aborted. Whether a command can be aborted depends on the abort attribute of the
command. Each AT command has its abort attribute, which is alternative. That is, the
command is either abortive or not abortive. Abortive commands include certain basic
commands and execution commands of action commands. Within 125 ms after the
abortive commands are sent, no abort request is accepted. After 125 ms and before
the commands are completely executed, if the module receives any character sent by
the TE, the commands are aborted immediately.
Abortive commands are as follows:
z
ATD*99#
z
ATD*98#
z
AT+CLCK
z
AT+COPS commands (excluding AT+COPS=?)
z
AT^MONI
z
AT^MONP
z
AT^SMONG
1.4.4 Rules for Running AT Commands
1. Each command line contains only one AT command and ends with a carriage
return character. In principle, users are not allowed to run S3/S4 format
modification commands. This rule is applicable to the communication between
the MT and TE programs.
2. To increase the readability and regularity of command and response formats, in
addition to the original interfaces specified in standards and protocols, all new
interfaces must observe the following rule: No space is added to the end of
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
6
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
commands such as the AT^XXX:<arg0>,<arg1> commands, or added to the
end of the ^ symbol, colon, and comma. No redundant space is added ahead of
or to the end of a command. This rule is applicable to the communication
between the MT and TE programs.
3. For an uninterruptible AT command, after sending the AT command, the TE
must wait until the MT responds to the AT command before sending the second
AT command. Otherwise, the second AT command sent by the TE is not
executed.
4. Unless otherwise stated, all default codes between the TE and MT follow the
format of GSM 7 bit Default Alphabet. For details, see section 6 in the 3GPP TS
23.038 protocol. The @ character is still transmitted as 0x00 of the 7bit coding
on interfaces. Therefore, the MT and TE must be able to process the character.
The MT passes the carriage return character (<CR>) and line feed character
(<LF>) in a string as spaces to the TE.
5. A string refers to a byte stream that is placed inside double quotation marks,
excluding the quotation marks or commas.
6. A string used by the TE to send a command cannot contain the combination of
quotation marks and commas (confusing a parameter with a string). The current
version does not support escape character. The code value of a data format in
the UCS2 coding is reported as characters. For example, if the UCS2 code of a
Chinese character is 0x553a, the 553a is reported.
A possible response sent by the MT to the TE consists of Information text and
Result code, in which Information text is optional and Result code is mandatory.
The format of a possible response is controlled by the ATV command. For details,
see the description of the ATV Command. In this document, all possible responses
listed in tables follow the ATV1 format.
1.5 Organization of This Document
This document consists of 16 chapters, covering the following contents:
Chapter
Describes
Chapter 1 Overall Description
The contents and organization of this
document and the basic knowledge
of AT command interfaces.
Chapter 2 Commands for Configuration
Chapter 3 Commands for Status Control
Chapter 4 Commands for Serial Port Control
Chapter 5 Commands for Security Control
Chapter6 Commands for Identification
The AT commands used to configure
the basic data of the module.
The AT commands used to control
the status of the module.
The AT commands used to control
the serial ports of the module.
The AT commands used to control
the security of the module.
The AT commands used to query the
identification information about the
module.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
7
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Overall Description
Chapter
Describes
Chapter 7 Commands for Call Control
The AT commands used to control
the calls on the module.
Chapter 8 Commands for Network Services
Chapter 9 Commands for Data Services
Chapter 10 Commands for Internet Services
Chapter 11 Commands for Short Messages
Chapter 12 Commands for the SIM Card
Chapter 13 Commands for the Phone Book
Chapter 14 Commands for Hardware Control
Chapter 15 Commands for Audio Control
The AT commands related to the
network services of the module.
The AT commands related to the
data services of the module.
The AT commands related to the
internet services of the module.
The AT commands related to the
short messages of the module.
The AT commands related to the SIM
card of the module.
The AT commands related to the
phone book of the module.
The AT commands used to control
the hardware of the module.
The AT commands used to control
the audio of the module.
Chapter 16 Other Commands
Chapter 17 Appendix
Other auxiliary commands
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
8
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2
Commands for Configuration
This chapter describes the AT commands that allow external applications to configure
the basic data of the module.
2.1 AT&F - Command for Restoring Factory Settings
The AT&F command restores the module to factory settings.
Execution
command
AT&F[<value>]
Function
Response
Restores the related parameters to factory settings.
<CR><LF>OK<CR><LF>
Parameter description
<value>: integer; AT&F is equivalent to AT&F0.
0: restores the current settings for AT commands to the factory settings.
Table 2-1 List of factory settings for AT&F
Factory Settings for AT Commands
Commands for configuration
ATQ
<n>=0
ATV
<value>=1
AT+CFUN
AT+CMEE
AT+CSCS
AT^SCFG
<fun>=1
<errMode>=0
<chset>="GSM"
<tcpIrt>="3", <tcpMr>="10", <tcpOt>="6000", <tcpWithUrc>="on"
Commands for status control
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
9
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
Factory Settings for AT Commands
AT+CMER
AT+CIND
<mode>=0, <keyp>=0, <disp>=0, <ind>=0, <bfr>=0
<mode>=1
Commands for serial port control
AT\Q
AT&C
AT&D
AT&S
ATE
<n>=0
<value>=1
<value>=2
<value>=0
<value>=1
Commands for network services
AT+COPS
AT+CREG
<format>=0
<n>=0
Commands for the GPRS
AT+CGREG <n>=0
AT+CGSMS <service>=3
ATS7
<n>=060
AT+CBST
AT+CRLP
AT+CR
<speed>=7, <name>=0, <ce>=1
<iws>=61, <mws>=61, <T1>=78, <N2>=6
<mode>=0
AT+CRC
<mode>=0
Commands for short messages
AT+CMGF
AT+CNMI
AT+CSMS
<mode>=0
<mode>=0, <mt>=0, <bm>=0, <ds>=0, <bfr>=1
<service>=0
Command for the phone book
AT+CPBS <storage>="SM"
Other commands
ATS3
ATS4
ATS5
<n>=013
<n>=010
<n>=008
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
10
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.2 AT&V - Command for Querying the Current
Configuration
The AT&V command queries the current configuration of the module. The display of
certain configuration items depends on whether the PIN code is unlocked.
Execution command
Function
AT&V[<value>]
Queries the current parameter configuration.
Response
<CR><LF>ACTIVE PROFILE: <CR><LF>
<CR><LF>list of active profile<CR><LF>
Parameter description
<value>: integer; AT&V is equivalent to AT&V0.
0 (default value): sequence number of the profile.
Table 2-2 List of query results for AT&V
Examples of Results Returned by the &V Command
PIN Locking
PIN Unlocking
ACTIVE PROFILE:
ACTIVE PROFILE:
E1 Q0 V1 &C1 &D2 &S0 \Q0
E1 Q0 V1 &C1 &D2 &S0 \Q0
S3:013 S4:010 S5:008 S7:060 S3:013 S4:010 S5:008 S7:060
+CBST: 7,0,1
+CRLP: 61,61,78,6
+CR: 0
+CBST: 7,0,1
+CRLP: 61,61,78,6
+CR: 0
+IPR: 115200
+CMEE: 2
+CRC: 0
+CMGF: 0
+CGSMS: 1
+CNMI: 0,0,0,0,1
+IPR: 115200
+CMEE: 2
OK
+CSMS: 0,1,1,1
+CREG: 0,1
+COPS: 0,0,"CC 460 NC 09"
+CGSMS: 3
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
11
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.3 AT&W - Command for Storing the Current
Configuration
The AT&W command stores the current configuration of the module in the profile.
The ATZ command restores the settings. When the AT&W command is used to store
the current configuration information, if you restart the module without modifying the
configuration information, the configuration of the module after restart is the
configuration information stored by using the AT&W command.
Execution
command
AT&W[<value>]
Function
Response
Stores the current parameter configuration.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CMS
ERROR: <err><CR><LF>
Parameter description
<value>: integer; AT&W is equivalent to AT&W0.
0 (default value): sequence number of the profile.
Table 2-3 List of commands and parameters that can be stored by AT&W
AT Commands
Commands for configuration
ATQ
<n>
ATV
<value>
<value>
<errMode>
ATE
AT+CMEE
Commands for serial port control
AT\Q
AT&C
AT&D
AT&S
ATE
<n>
<value>
<value>
<value>
<value>
Commands for network services
AT+COPS
AT+CREG
<format>
<n>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
12
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
AT Commands
Commands for call control
AT+CBST
AT+CRLP
ATS7
<speed>, <name>, <ce>
<iws>, <mws>, <T1>, <N2>
<n>
AT+CR
<mode>
<mode>
AT+CRC
Commands for short messages
AT+CMGF
AT+CNMI
AT+CSMS
Other commands
ATS3
<mode>
<mode>,<mt>, <bm>, <ds>
<service>
<n>
<n>
<n>
ATS4
ATS5
2.4 ATQ - Command for Controlling the Return of
Execution Results
The ATQ command controls whether to return the execution results to the TE.
Execution
command
ATQ[<n>]
Function
Response
Controls the return of execution results.
z
In case of <n>=0: <CR><LF>OK<CR><LF>
z
In case of <n>=1, no result is returned.
Parameter description
<n>: integer; ATQ is equivalent to ATQ0.
z
0 (default value): The DCE returns the execution results.
z
1: The DCE does not return the execution results.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
13
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.5 ATV - Command for Setting the Formats of ME
Responses
The ATV command sets the formats of result code and information field returned by
the AT command, including the composition of head and tail. In addition, the ATV
command sets the forms of the contents of returned result code, including numeric
and verbose string forms.
Execution ATV[<value>]
command
Function
Sets the formats of result code and information field returned by the AT
command, and the forms of the contents of returned result code.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<value>: integer; ATV is equivalent to ATV0.
z
0: The MS sends the abbreviated head and full tail, and returns the result code in
numeric form.
z
1 (default value): The MS sends the full head and tail, and returns the result
code in verbose string form.
Table 2-4 Effect of ATV on response formats
V0
V1
Returned
<text><CR><LF>
<CR><LF><text><CR><LF>
information field
Returned result
code
<numeric
code><CR>
<CR><LF><verbose code><CR><LF>
Note:
In the response format, <CR> indicates the S3 character; <LF> indicates the S4 character.
Table 2-5 List of execution results
String Format
Numeric
Format
Meaning
OK
0
1
2
3
The command is successfully executed.
The connection is successfully set up.
The terminal rings.
CONNECT
RING
NO CARRIER
The connection fails to be set up or the connection is
hung up.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
14
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
String Format
Numeric
Format
Meaning
ERROR
4
An error occurs during command execution because
the command is unavailable or the command line is
too long.
BUSY
7
The called user is busy.
Link with 2400 bps
Link with 4800 bps
Link with 9600 bps
CONNECT 2400 47
CONNECT 4800 48
CONNECT 9600 49
2.6 ATZ - Command for Restoring the Settings Saved by
the User
The ATZ command restores the setting values saved by the user in the profile
through AT&W to the module.
Execution
command
ATZ[<value>]
Function
Restores the setting values saved by the user in the profile through
AT&W.
Response
<CR><LF>OK<CR><LF>
Parameter description
<value>: integer; ATZ is equivalent to ATZ0.
0: restores the setting values saved in the profile to the module.
2.7 ATE - Command for Setting Echo
The ATE command sets whether the TA echoes the characters received from the TE
when the TA is in command state.
Execution
command
ATE[<value>]
Function
Sets whether the TA echoes the characters received from the TE
when the TA is in command state.
Response
<CR><LF>OK<CR><LF>
Parameter description
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
15
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
<n>: integer; ATE is equivalent to ATE0.
z
0: disables echo.
z
1 (default value): enables echo.
2.8 AT+CFUN - Command for Setting the Work Mode
2.8.1 Querying the Supported Work Modes
Test command
Function
AT+CFUN=?
Queries the work modes supported by the module.
Response
<CR><LF>+CFUN: (list of supported <fun>s), (list of supported
<rst>s)<CR><LF>
Parameter description
<fun>: integer, which indicates the work mode to be set on the board. The values are
described in the following table.
Table 2-6 List of work modes
<fun>
Function Description
Remarks
0
Non-cyclic sleep mode
Upon wakeup, the system is
switched to the state of no power
saving.
1 (default No power saving
value)
5
Cyclic sleep mode. After data
processing is complete upon wakeup,
the system stays in IDLE state for 2s.
6
Cyclic sleep mode. After data
processing is complete upon wakeup,
the system stays in IDLE state for 10
minutes. For other tasks, after
message processing is complete and
the system is idle again, the system
automatically enters SLEEP mode
again.
7
Cyclic sleep mode. After data
During wakeup, the serial port
processing is complete upon wakeup, can work properly.
the system stays in IDLE state for 2s.
For other tasks, after message
processing is complete and the
system is idle again, the system
automatically enters SLEEP mode
again.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
16
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
Remarks
<fun>
Function Description
8
Cyclic sleep mode. After data
processing is complete upon wakeup,
the system stays in IDLE state for 10
minutes. For other tasks, after
message processing is complete and
the system is idle again, the system
automatically enters SLEEP mode
again.
Same as AT+CFUN=6
9
Cyclic sleep mode. After data
Wakeup can be activated
processing is complete upon wakeup, through RTS0 and RTS1.
the system stays in IDLE state for a
period (2s by default), which is
configurable.
AT^SCFG=“PowerSaver/Mode9/Time
out”,<psm9to>;
RTS0 and RTS1 can function as
wakeup sources.
Table 2-7 Relations between work modes and services
Setting Value AT+CFUN AT+CFUN=5
AT+CFUN=7 AT+CFUN=
=0
AT+CFUN=6
AT+CFUN=8
9
Setvice
RTS1 activation
Quitting the Without
Without
effect(RTS
flow control)
Short-term
wakeup
current
state
effect(RTS flow
control)
Unsolicited report
(URC)
Quitting the Quitting the
Short-term
wakeup
Short-term
wakeup
current
state
current state
Entry of AT
commands on the
serial port
Without
effect(serial wakeup
port
Short-term
Short-term
wakeup
Short-term
wakeup
unavailable
)
Arrival of short
messages
Quitting the Quitting the
Short-term
wakeup
Short-term
wakeup
current
state
current state
(the reporting is set
by AT+CNMI)
GPRS data
transmission
Without
effect(serial wakeup
Short-term
Short-term
wakeup
Short-term
wakeup
port
unavailable
)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
17
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
Setting Value AT+CFUN AT+CFUN=5
AT+CFUN=7 AT+CFUN=
=0
AT+CFUN=6
AT+CFUN=8
9
Setvice
RTC alarm clock
Quitting the Quitting the
Short-term
wakeup
Short-term
wakeup
current
state
current state
AT+CFUN=1
Without
effect
Quitting the
current state
Quitting the
current state
Quitting the
current state
(serial port
unavailable
)
<rst>: integer, which indicates whether the board restarts before the work mode is
switched.
z
0 (default value): The board does not restart.
z
1: The board restarts.
2.8.2 Reading the Current Work Mode
Read
AT+CFUN?
command
Function
Response
Reads the current work mode of the module.
<CR><LF>+CFUN: <fun><CR><LF>
<CR><LF>OK<CR><LF>
2.8.3 Setting the Work Mode
Write
AT+CFUN=[<fun>[,<rst>]]
command
Function
Response
Sets the current work mode of the module.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME
ERROR<CR><LF>
Note:
z
The work mode of the board that is configured through the write command can be saved
upon power failure; AT+CFUN= is equivalent to AT+CFUN=1 (<fun>=1);
z
z
z
When AT+CFUN=<fun>,1 is set, <fun> is useless.
During voice services, this command is invalid and "ERROR" will be returned.
If the SIM card is not inserted, the PIN code is not activated, or the module is not registered
with the network, the system will not go into the sleep mode even if it is set to a non-full-
speed operation state.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
18
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.9 AT^SMSO - Command for System Shutdown
2.9.1 Checking Whether the Command for System Shutdown
Exists in the Module
Test command
Function
AT^SMSO=?
Checks whether the command for system shutdown exists in the
module.
Response
<CR><LF>OK<CR><LF>
2.9.2 Setting System Shutdown
Execution AT^SMSO
command
Function
Sets ME shutdown. After the shutdown process starts, the voltage of the
VDD decreases and "^SHUTDOWN" is unsolicitedly reported.
z
Response
In case of successful execution:
<CR><LF>^SMSO: MS OFF<CR><LF>
<CR><LF>OK<CR><LF>
^SHUTDOWN<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Note:
z
Do not cut off the power of the ME before the VDD voltage decreases and the
“^SHUTDOWN” URC is reported. Otherwise, data may be lost.
z
Other AT commands after the AT^SMSO command are not handled by the ME.
2.9.3 Examples
Example:
Send the command for system shutdown.
AT^SMSO
^SMSO: MS OFF
OK
^SHUTDOWN
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
19
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.10 AT+GCAP - Command for Querying the
Transmission Capability Domain Supported by the MS
2.10.1 Checking Whether the Command for Querying the
Transmission Capability Domain Exists in the Module
Test command AT+GCAP=?
Function
Checks whether the command for querying the transmission
capability domain exists in the module.
Response
<CR><LF>OK<CR><LF>
2.10.2 Listing the Transmission Capability Domain Currently
Supported by the MS
Execution
command
AT+GCAP
Function
Lists the transmission capability domain currently supported by the
MS.
Response
<CR><LF>+GCAP: <name><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<name>: string; for example, +CGSM.
2.10.3 Examples
Example:
List the transmission capability domain currently supported by the MS.
AT+GCAP
+GCAP: +CGSM
OK
The returned value +CGSM indicates that the MS currently supports the GSM mode.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
20
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.11 AT+CMEE - Command for Setting Terminal Error
Reporting
2.11.1 Querying the Error Reporting Mode Supported by the
Terminal
Test
AT+CMEE=?
command
Function
Response
Queries the terminal error reporting mode supported by the module.
<CR><LF>+CMEE: (list of supported <errMode>s) <CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<errMode>: integer, which indicates the terminal error reporting mode.
z
0 (default value): does not report the error code and returns ERROR only in case
of an error.
z
1: reports the error by using +CME ERROR: <err>, in which <err> indicates the
error code number.
z
2: reports the error by using +CME ERROR: <err>, in which <err> indicates the
string value of error description.
2.11.2 Reading the Terminal Error Reporting Mode
Read
AT+CMEE?
command
Function
Response
Reads the terminal error reporting mode of the module.
<CR><LF>+CMEE: <errMode><CR><LF>
<CR><LF>OK<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
21
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.11.3 Setting the Terminal Error Reporting Mode
Write
AT+CMEE=<n>
command
Function
Response
Sets the mode of reporting errors related to the ME by the module.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
If the error cause is unrelated to the MT, common ERROR is returned.
2.12 AT+CSCS - Command for Setting the TE Character
Set
2.12.1 Querying the Character Set Supported by the TE
Test
AT+CSCS=?
command
Function
Response
Queries the character set supported by the TE.
<CR><LF>+CSCS: (list of supported <chset>s) <CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<chset>: string, which indicates the character set of the MS.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
22
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
Table 2-8 Character set of the MS
Value
Description
"GSM"
GSM 7bit coding (GSM 03 .38 subclause 6.2.1)
(default value)
"UCS2"
16-bit universal multiple-octet coded character set (ISO/IEC10646
[32]); the UCS2 string is converted into a hexadecimal number
ranging from 0000 to FFFF, for example, "004100620063", which is
equivalent to three 16-bit characters. The ASCII values in decimal
mode are 65, 98, and 99.
"IRA"
International reference character set
Note:
If <chset> is set to “GSM”, an error may occur on software flow control (XOFF/XON).
2.12.2 Reading the Character Set of the TE
Read
AT+CSCS?
command
Function
Response
Reads the character set of the TE.
<CR><LF>+CSCS: <chset><CR><LF>
<CR><LF>OK<CR><LF>
2.12.3 Setting the Character Set of the TE
Write
AT+CSCS=[<chset>]
command
Function
Sets the character set of the TE and notifies the TA of it so that the TA
can properly convert the character set between the TE and MT.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
z
If the interface between the TA and TE has eight bits and the character set used by the TE
has seven bits, the most significant bit of the character set must be set to 0.
z
In this section, AT+CSCS= is equivalent to AT+CSCS=“GSM”(<chset>=“GSM”).
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
23
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.13 AT^SCFG - Extended Command for Setting
Configuration Items
2.13.1 Querying the Configuration Items That Can Be Set by the
Module
Test
AT^SCFG=?
command
Function
Response
Queries the configuration items that can be set by the module.
<CR><LF>^SCFG: <str>s, (list of supported <value>s)<CR><LF>
[<CR><LF>^SCFG: <str>s, (list of supported <value>s)<CR><LF>
[…]]
<CR><LF>OK<CR><LF>
Parameter description
<str>: string, which indicates the configurable items. For details, see Table 2-9.
<value>: indicates the configurable parameter values. For details, see Table 2-9.
Table 2-9 List of configurable items
<str>
<value>
<psm9to>
<tcpIrt>
"PowerSaver/Mode9/Timeout"
"Tcp/IRT"(which is not supported currently.)
"Tcp/MR"
<tcpMr>
<tcpOt>
<tcpWithUrc>
<udri>
"Tcp/OT"
"Tcp/WithURCs"
"URC/Datamode/Ringline"
"URC/Ringline"
<uri>
<psm9to>: string, which indicates the duration of wakeup state in power saving mode
9 (the AT+CFUN command). The default value is 20, that is, 2s. The value range is
as follows:
5... 36000 The value 10 indicates 1s. The time interval is 100 ms.
<tcpIrt>: string, which indicates the waiting time for initial re-connection (IRT). The
default value is 3.
1...60 This parameter sets the waiting time (in seconds) before starting the initial
re-connection in the stage of setting up initial TCP/IP connection.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
24
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
<tcpMr>: integer, which indicates the maximum number of retransmissions (MR). The
default value is 10.
1... 30 Maximum number of times for retransmitting a TCP/IP data packet.
<tcpOt>: integer, which indicates the duration for link disabling. The default value is
6000.
1...6000 Duration (in seconds) to be waited for disabling a link when a TCP/IP data
packet is not acknowledged.
<tcpWithUrc>: string, which indicates whether the internet service command follows
the unsolicited reporting mode or polling mode. This parameter controls whether
^SISR, ^SISW, and ^SIS are unsolicitedly reported.
Table 2-10 Values of the < tcpWithUrc > parameter
Value
Description
"on" (default value)
Enables unsolicited reporting related to the internet service
command.
"off"
Disables unsolicited reporting related to the internet service
command.
<udri>: indicates RING reporting in data mode. This parameter controls the reporting
string in TA-TE connection hold state (such as CS data service, GPRS data service,
and AT command execution).
Table 2-11 Values of the <udri> parameter
Value
Description
"on"
Reports RING. This value is set by <urat> and <uri>.
"off" (default value)
Reports BREAK.
<uri>: string, which indicates the URC mode of the RING pin.
Table 2-12 Values of the <uri> parameter
Value
Description
"local" (default
value)
Reports RING.
"off"
Does not report RING.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
25
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.13.2 Reading the Settings for Configuration Items
Read
AT^SCFG?
command
Function
Response
Reads the settings for configuration items.
<CR><LF>^SCFG: <str>s, <value>[,<value>[,…]] <CR><LF>
[<CR><LF>^SCFG: <str>s, <value>[,<value>[,…]] <CR><LF>
[…]]
<CR><LF>OK<CR><LF>
2.13.3 Setting Configuration Items
Write
AT^SCFG=<str>[,<value>]
command
Function
Response
Sets configuration items.
z
In case of successful execution:
<CR><LF>^SCFG: <str>, <value><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
2.14 ^SYSSTART – Command for Unsolicitedly Reporting
Module Startup
This command indicates that the module is started, and can be operated.
If the adaptive baud rate is set (that is, AT+IPR=0), this command is not reported.
URC
<CR><LF>^SYSSTART<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
26
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Configuration
2.15 ^SHUTDOWN – Command for Unsolicitedly
Reporting Module Power-off
This command indicates that the power-off process of the module is complete.
URC
<CR><LF>^SHUTDOWN<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
27
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
3
Commands for Status Control
This chapter describes the AT commands for controlling the status of the module.
3.1 AT+CMER - Command for Setting Event Reporting
The AT+CMER command controls the +CIEV unsolicited reporting that is related to
AT^SIND and AT+CIND commands. For an event that is registered through
AT^SIND and AT+CIND commands, if the indicator value related to the event
changes, unsolicited reporting is performed.
3.1.1 Querying the Supported Settings for Event Reporting
Test
AT+CMER=?
command
Function
Response
Queries the supported settings for event reporting.
<CR><LF>+CMER: (list of supported <mode>s), (list of supported
<keyp>s), (list of supported <disp>s), (list of supported <ind>s), (list of
supported <bfr>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<mode>: integer.
z
0 (default value): Unsolicited report codes (URCs) are buffered on the TA. If the
buffer of the TA is full, URCs are buffered at other locations or the oldest URCs
are discarded.
z
1: URCs are discarded in TA-TE connection hold state (such as data service
mode). Otherwise, the event is reported directly to the TE.
z
2: 1: URCs are discarded when TA-TE link is reserved, e.g. in online data mode.
Otherwise they are forwarded directly to the TE. (This is not supported currently)
<keyp>: integer; enables key event reporting, which is not supported currently.
0
Reports the event.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
28
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
<disp>: integer; enables display event reporting, which is not supported currently.
Reports the event.
0
<ind>: integer; indicates event reporting.
z
0 (default value): disables event reporting.
z
1: enables event reporting; +CIEV:<ind>,<value>, in which <ind> indicates the
event of the indicator, which is a character string.
z
2: enables event reporting; +CIEV: <ind>,<value>, in which all events occur
directly between the TE and TA.
<bfr>: integer; clears the buffer.
0
Clears the buffer.
3.1.2 Reading the Current Settings for Event Reporting
Read
AT+CMER?
command
Function
Response
Reads the current settings for event reporting.
<CR><LF>+CMER: <mode>,<keyp>,<disp>,<ind>,<bfr><CR><LF>
<CR><LF>OK<CR><LF>
3.1.3 Setting the Event Reporting Mode
Write
AT+CMER=[<mode>[,<keyp>[,<disp>[,<ind>[,<bfr>]]]]]
command
Function
Response
Sets the event reporting mode.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
If no parameters of this command are set, AT+CMER= considers the previously set values
valid for various parameters.
3.2 AT+CIND - Command for Controlling Indication
Events
The AT+CIND command controls the mode of reporting indication events for certain
functions, including battery power level, signal strength, service availability, unread
short message indicator, and full short message storage.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
29
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
3.2.1 Querying the Supported Indication Events and Indication
Status
Test
AT+CIND=?
command
Function
Response
Queries the supported indication events and the indication status.
<CR><LF>+CIND: (<indDescr>, list of supported <indvalue>s)[,
(<indDesrc>, list of supported <indvalue>s)[, …]]<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<indValue>: integer; indication event, corresponding to the value of <inddescr>.
<indDescr>: string; indication status; Table 3-1 describes the values of the parameter.
Table 3-1 Values of the <indDescr> and <indValue> parameters
<indDescr>
<indValue>
“battchg”: battery power level
indicator. Currently, only the
value 5 is supported.
0: has not been connected to any charger.
1: has been connected to a charger.
2: being charged.
3: The charge process is complete.
4: The charge process is interrupted due to an error.
5: unknown.
“signal”: receive signal bit
0–7: correspond to the values of RXQUAL in the GSM
error rate indicator. Currently, 05.08 section 8.2.4.
only the value 99 is
99: unknown.
supported.
“service”: network service
status indicator.
0: has not been registered with any network.
1: has been registered with the home network. When
“roam”=1, the MT has been registered with another
network.
“sounder”: audio status
0: without ring.
1: with ring.
indicator, which indicates an
event with ring. Currently,
only the value 0 is supported.
“message”: unread short
message indicator.
0: without unread short message.
1: with unread short message.
0: without conversation.
“call”: conversation status
indicator.
1: ongoing conversation or conversation hold.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
30
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
<indDescr>
<indValue>
“roam”: roaming indicator.
0: registers with the home network or does not
register with any network.
1: registers with the roaming network.
0: The short message storage media is not full.
1: The short message storage media is full.
0: ≤ -112 dBm
“smsfull”: short message
storage full indicator.
“rssi”: receive signal strength
indicator.
1–4: The strength interval is 15 dBm.
5: ≥ -51 dBm
99: unknown or unmeasurable.
3.2.2 Reading the Current Indication Status
Read
AT+CIND?
command
Function
Response
Reads the current indication status.
<CR><LF>+CIND: <indValue>[,<indValue>[, …]] <CR><LF>
<CR><LF>OK<CR><LF>
3.2.3 Setting Whether to Report Indication Events
Write
AT+CIND=<mode>[,<mode>[,<mode>...]]
command
Function
Response
Sets whether to report indication events.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
Parameter description
<mode>: integer. This parameter controls whether to report a single indication event.
0: deregisters indication event and disables event reporting.
1 (default value): registers indication event and enables event reporting.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
31
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
3.2.4 Examples
Example 1:
Query the supported indication event and its indication status.
^SYSSTART
AT+CPIN=1111
OK
AT+CIND=?
+CIND: (battchg,(0-5)),(signal,(0-7,99)),(service,(0-1)),(sounder,(0-1)),(message,(0-
1)),(call,(0-1)),(roam,(0-1)),(smsfull,(0-1)),(rssi,(0-5,99))
OK
Example 2:
Read the current indication status.
AT+CIND?
+CIND: 5,99,1,0,0,0,0,0,4
OK
3.3 AT^SIND - Extended Command for Controlling
Indication Events
The AT^SIND command controls the mode of reporting indication events for certain
functions. The AT^SIND command can control more indication events than the
AT+CIND command, including the events that can be controlled by the AT+CIND
command.
3.3.1 Querying the Supported Report Events
Test
AT^SIND=?
command
Function
Queries the supported report events.
Response <CR><LF>^SIND: (<indDescr>, list of supported <indvalue>s)[,
(<indDesrc>, list of supported <indvalue>s)[, …]]<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<indValue>: integer, which corresponds to the value of <inddescr>.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
32
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
<indDescr>: string; Table 3-2 describes the values of the parameter.
Table 3-2 Values of the <indDescr> and <indValue> parameters
<indDescr>
<indValue>
“battchg”: battery power level
indicator. Currently, only the
value 5 is supported.
0: has not been connected to any charger.
1: has been connected to a charger.
2: being charged.
3: The charge process is complete.
4: The charge process is interrupted due to an
error.
5: unknown.
“signal”: receive signal bit error
rate indicator. Currently, only the
value 99 is supported.
0: ≤ -113 dBm
1: -111 dBm
2–30: -109 dBm to -53 dBm
31: ≥ -51 dBm
99: unknown.
“service”: network service status 0: has not been registered with any network.
indicator.
1: has been registered with the home network.
When “roam”=1, the MT has been registered with
another network.
“sounder”: audio status indicator, 0: without ring.
which indicates an event with
1: with ring.
ring. Currently, only the value 0
is supported.
“message”: unread short
message indicator.
0: without unread short message.
1: with unread short message.
0: without conversation.
“call”: conversation status
indicator.
1: ongoing conversation or conversation hold.
“roam”: roaming indicator.
0: registers with the home network or does not
register with any network.
1: registers with the roaming network.
“smsfull”: short message storage 0: The short message storage media is not full.
full indicator.
1: The short message storage media is full.
“rssi”: receive signal strength
indicator.
0: ≤ -112 dBm
1–4: The strength interval is 15 dBm.
5: ≥ -51 dBm
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
33
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
<indDescr>
<indValue>
99: unknown or unmeasurable.
“ciphcall”: encryption status
change indicator. This indicator
may be disabled by the EFad
(administrative data) file data of
the SIM card.
0: Short messages are not encrypted.
1: Short messages are encrypted.
0: Not registered
"eons": Enhanced Operator
Name String (EONS) indicator.
The presentation of the "eons"
indicator is determined by
1: EF-OPL,EF-PNN(the longest character: 24)
2:Long and short string format, Common PCN
Handset Specification(CPHS)
network activities. For example,
the indicator appears every time
a location update occurs or a
NITZ message is sent, no matter
whether or not the status of the
EONS message has changed.
The EONS tables are stored in
the SIM card and will be read at
power-up. 0–5 indicates the
priority of the operator name
source (GSM 22.101).
3: Operator name with NITZ message. Short string
format only display when the EFopshort of CPHS is
usable.
4: Operator name with ME stored.
5:Broadcast MCC-MNC(digital format)
“nitz”: network and time zone
indicator. When the network or
time zone with which the MT
registers changes, the network
sends a time indicator.
The related parameters are <nitzUT>, <nitzTZ>,
and <nitzDST>.
3.3.2 Reading the Current Event Reporting Mode
Read
AT^SIND?
command
Function
Response
Reads the current event reporting mode.
z
In case of successful execution: <CR><LF>^SIND:
<indDescr>,<mode>,<indValue>[^SIND:
<indDescr>,<mode>,<indValue>[…]] <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR <CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<mode>: integer. This parameter controls the reporting of a single event.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
34
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
z
0: disables event reporting.
z
1: enables event reporting.
z
2: queries the settings for event reporting.
3.3.3 Setting the Event Reporting Mode
Write
AT^SIND=<indDescr>,<mode>
command
Function
Response
Sets the event reporting mode.
z
In case of successful execution: <CR><LF>^SIND:
<indDescr>,<mode>,<indValue><CR><LF>
When <indDescr>=“nitz” and <mode>=2:
<CR><LF>^SIND:
<indDescr>,<mode>,<nitzUT>,<nitzTZ>,<nitzDST><CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error: <CR><LF>ERROR <CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<nitzUT>: time information.
<nitzTZ>: time zone information.
<nitaDST>: daylight saving time for adaptive NITZ indicator.
3.4 AT+WS46 - Command for Selecting a Radio Network
The AT+WS46 command sets and queries the radio network of a standard with which
the ME registers.
3.4.1 Querying the Supported Radio Networks
Test
AT+WS46=?
command
Function
Response
Queries the supported radio networks.
<CR><LF> (list of supported <n>s) <CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<n>: integer; AT+WS46= is equivalent to AT+WS46=12.
12: GSM digital cellular network.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
35
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Status Control
3.4.2 Reading the Current Radio Network
Read
AT+WS46?
command
Function
Response
Reads the current radio network.
<CR><LF><n><CR><LF>
<CR><LF>OK<CR><LF>
3.4.3 Setting the Radio Network to Be Registered
Write
AT+WS46=[<n>]
command
Function
Response
Sets the radio network to be registered.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
3.5 +CIEV – Command for Indicating the Status Change
When the status of relevant event set by using AT+CIND or AT^SIND is changed, the
MT unsolicitedly reports +CIEV.
URC1
Reports with the standard format.
<CR><LF>+CIEV: <indDescr>,<indValue>1[,<indValue>2]<CR><LF>
URC2
Reports with the "nitz" indication format.
<CR><LF>+CIEV: <indDescr>,<nitzUT>,<nitzTZ>,<nitzDST><CR><LF>
Function
Indicates that the status of the event registered by using AT+CMER is
changed.
Parameter description
Refer to the parameter descriptions of AT+CMER, AT+CIND, and AT^SIND
commands.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
36
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
4
Commands for Serial Port Control
This chapter describes the AT commands for controlling the serial ports of the module.
4.1 AT\Q - Command for Enabling Software or Hardware
Flow Control
The AT\Q command sets the flow control mode.
Execution AT\Q[<n>]
command
Function
Response
Sets the flow control mode.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of not supporting RTS/CTS when n = 2 or 3:
<CR><LF>ERROR<CR><LF>
Note:
z
Hardware flow control is recommended, especially for the data service and multiplexing.
In the case of CSD data service, hardware flow control must be adopted.
z
Parameter description
<n>: integer, which is not saved upon power failure; AT\Q is equivalent to AT\Q0.
z
0 (default value): disables flow control.
z
1: XON/XOFF software flow control.
z
2: Only CTS by DCE(TA).
z
3: RTS/CTS hardware flow control.
4.2 AT&C - Command for Setting the DCD Usage State
The AT&C command sets the relation between the status of the DCD line and signal
detection of the remote receiving line.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
37
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
Execution
command
AT&C[<value>]
Function
Sets the relation between the status of the DCD line and signal
detection of the remote receiving line.
Response
<CR><LF>OK<CR><LF>
Parameter description
<value>: integer; AT&C is equivalent to AT&C0.
z
0: enables the DCD line.
z
1 (default value): The DCD line is enabled only when data carrier exists.
4.3 AT&D - Command for Setting the DTR Usage State
The AT&D command sets the result returned by the TA in data service state when the
DTR circuit is disabled from enabling state.
Execution AT&D[<value>]
command
Function
Sets the result returned by the TA in data service state when the DTR
circuit is disabled from enabling state.
Response <CR><LF>OK<CR><LF>
Parameter description
<value>: integer; AT&D is equivalent to AT&D0.
z
0: The TA ignores the status of the DTR circuit.
z
1: enters the command mode while holding the current data conversation.
z
2 (default value): releases the data conversation and enters the command mode.
When DTR=OFF, automatic response is disabled.
4.4 AT&S – Command for Setting the DSR Usage State
The AT&S command sets the status of the DSR line according to different
communication status of the ME.
Execution
command
AT&S[<value>]
Function
Response
Sets the status of the DSR line.
<CR><LF>OK<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
38
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
Parameter description
<value>: integer; AT&S is equivalent to AT&S0.
z
0 (default value): The DSR is always valid.
z
1: When the ME is in command mode, the DSR is invalid. When the ME is in
data mode, the DSR is valid.
4.5 AT+IPR - Command for Setting the Baud Rate of the
DTE-DCE
The AT+IPR command sets the baud rate of the DTE-DCE.
4.5.1 Querying the Supported Baud Rates of the DTE-DCE
Test
AT+IPR=?
command
Function
Response
Queries the supported baud rates of the DTE-DCE.
<CR><LF>+IPR: (list of supported auto-detectable <rate>s)[,(list of
supported fixed-only <rate>s)]<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<rate>: integer, which is saved upon power failure.
0: indicates adaptive baud rate.
Range of baud rate adaptation: 1200, 2400, 4800, 9600, 19200, 38400, 57600, and
115200.
Fixed baud rate: 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600,
115200, and 230400.
Default value: 115200.
4.5.2 Reading the Current Baud Rate of the DTE-DCE
Read
AT+IPR?
command
Function
Response
Reads the current baud rate of the DTE-DCE.
<CR><LF>+IPR: <rate><CR><LF>
<CR><LF>OK<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
39
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
4.5.3 Setting the Baud Rate of the DTE-DCE
Write
AT+IPR=<rate>
command
Function
Response
Sets the baud rate of the DTE-DCE.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
z
To set an adaptive baud rate, run AT+IPR=0.
z
z
z
To set a fixed baud rate, ensure that the baud rates configured for the TE and TA are the
same.
When running the at command to set baud rate adaptation, ensure that AT ahead of the
command is in upper case.
After baud rate adaptation is enabled, if you want to change the baud rate of Application
Procession, do the following: Set the baud rate, disable and enable the serial port or change
the state of DTR (the interval between changing the status of the serial port or the DTR must
be over two seconds), and then synchronize the serial port with capital "AT" in the
command..
z
In multiplexing mode, a baud rate higher than 115200 bit/s is recommended
4.6 AT+CMUX - Command for Setting Multiplexing
The AT+CMUX command enables or disables the multiplexing function.
4.6.1 Querying the Supported Settings for Multiplexing
Test
AT+CMUX=?
command
Function
Response
Queries the supported settings for multiplexing.
<CR><LF>+CMUX: (list of supported <mode>s) , (list of supported
<subset>s),(list of supported <port_speed>s),(list of supported
<N1>s),(list of supported <T1>s),(list of supported <N2>s),(list of
supported <T2>s),(list of supported <T3>s),(list of supported
<k>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
40
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
<mode>: integer, which indicates the mode when the MUX is enabled. This
parameter is saved upon power failure. Currently, only the value 0 is supported.
z
0 (default value): basic mode
z
1: enhanced mode
<subset>: integer, which is saved upon power failure. This parameter is not
supported currently.
z
0 (default value): UIH frames used only
z
1: UI frames used only
<port_speed>: integer, which is not supported currently.
z
1: 9600 bit/s
z
2: 19200 bit/s
z
3: 38400 bit/s
z
4: 57600 bit/s
z
5 (default value): 115200 bit/s
z
6: 230400 bit/s
z
7: 460800 bit/s
z
8: 921600 bit/s
<N1>: integer, which indicates the maximum frame length; value range: 1–32768; the
default value is 31 (or 64 in case of enhanced mode); this parameter is saved upon
power failure and is not supported currently.
<T1>: integer, which indicates the reception acknowledgement timer; value range: 1–
255; the value 1 indicates 10 ms; the default value is 10 (100 ms). This parameter is
saved upon power failure and is not supported currently.
<N2>: integer, which indicates the maximum number of re-connections; value range:
0–100; the default value is 3. This parameter is saved upon power failure and is not
supported currently.
<T2>: integer, which indicates the response timer for multiple control channels; value
range: 2–255; the value 2 indicates 20 ms; the default value is 30. This parameter is
saved upon power failure and is not supported currently.
<T3>: integer, which indicates the wakeup response timer; value range: 1–255; the
value 1 indicates 1s; the default value is 10. This parameter is saved upon power
failure and is not supported currently.
<k>: integer, which indicates the window size (used for the enhanced mode that
supports error recovery); value range: 1–7; the default value is 2. This parameter is
saved upon power failure and is not supported currently.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
41
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Serial Port Control
4.6.2 Reading the Current Settings for Multiplexing
Read
AT+CMUX?
command
Function
Response
Reads the current settings for multiplexing.
z
In case of successful execution:
<CR><LF>+CMUX :
<mode>,[<subset>],<port_speed>,<N1>,<T1>,<N2>,<T2>,<T3>[,<
k>]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>+CME ERROR: <err><CR><LF>
4.6.3 Setting Multiplexing
Write
command
AT+CMUX=<mode>[,<subset>[,<port_speed>[,<N1>[,<T1>[,<N2>[,<T2
>[,<T3>[,<k>]
Function
Response
Sets multiplexing.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
z
All channels have the same baud rate, which is controlled by the IPR.
Currently, a maximum of three channels are supported.
z
z
In case of multiplexing, baud rate adaptation is not supported. On the contrary, if baud rate
adaptation is enabled, multiplexing is unavailable.
z
z
In case of multiplexing, software flow control is not supported.
The TE side must use the Multi-TA tool provided by NXP.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
42
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
5
Commands for Security Control
This chapter describes the AT commands that allow external applications to configure
different security-based policies of the module.
5.1 AT+CPIN - Command for PIN Management
The AT+CPIN command identifies networks.
5.1.1 Checking Whether a PIN Management Command Exists
Test
AT+CPIN=?
command
Function
Response
Check whether a PIN management command exists.
<CR><LF>OK<CR><LF>
5.1.2 Reading the Password Entry Request
Read
AT+CPIN?
command
Function
Response
Reads the current authentication status of the SIM card.
z
In case of successful execution:
<CR><LF>+CPIN: <code><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
Code: string without quotation marks. Table 5-1 describes PIN authentication
performed by the SIM card.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
43
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
Table 5-1 PIN authentication performed by the SIM card
Value
Description
READY
The PIN code has been entered and the SIM card has completed
PIN authentication.
SIM PIN
SIM PUK
The ME is waiting for the entry of SIM PIN code.
After the SIM PIN code is improperly entered for three times, the ME
is waiting for the entry of SIM PUK code.
SIM PIN2
SIM PUK2
The ME is waiting for the entry of SIM PIN2 code.
After the SIM PIN2 code is improperly entered for three times, the
ME is waiting for the entry of SIM PUK2 code.
5.1.3 Responding to the Password Entry Request
Write
AT+CPIN=<pin>[,<newpin>]
command
Function
Checks and unlocks the PIN and PIN2.
If the current password entry request is PIN or PIN2, run the following
command:
AT+CPIN=<pin>
If the current password entry request is PUK or PUK2, run the command:
AT+CPIN=<pin>,<newpin>
The first parameter <pin> indicates the SIM PUK or SIM PUK2. The
second parameter <newpin> indicates the new PIN or PIN2 code.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
If no PIN entry request exists currently, running this command returns an error message:
+CME ERROR: operation not allowed;
If PIN or PUK is checked during an ongoing call or other services, the call may be hung up or
other services may be interrupted.
Parameter description
<pin>, <newpin>: A string, which can be or may not be placed inside quotation marks.
The characters inside the string must be obtained from ‘0’–‘9’. Otherwise, an error is
returned directly.
5.1.4 Examples
Example 1:
Enter the PIN code for unlocking.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
44
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
AT+CPIN?
+CPIN: SIM PIN
OK
A PIN code entry request exists.
Enter the PIN code.
AT+CPIN=“1234”
OK
Example 2:
Enter the PUK code for unlocking and modify the PIN code.
AT+CPIN?
+CPIN: SIM PUK
A PUK code entry request exists.
OK
AT+CPIN=“12345678”,“1234”
Enter the PUK code and modify the PIN
code.
OK
5.2 AT+CLCK - Command for Locking and Unlocking the
Device
The AT+CLCK command locks and unlocks the device.
5.2.1 Checking the Devices Supported by This Command
Test
AT+CLCK=?
command
Function
Returns the devices supported by this command.
Response <CR><LF>+CLCK: (list of supported <fac>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<fac>: string, which specifies the object on which this command operation is
performed.
z
“SC”: SIM card. If the SIM card is locked, the MS requests you to enter the
password during power-on. The password is the SIM PIN1 code.
z
“AO”: forbids all outgoing calls; this parameter is reserved and is not supported
currently.
z
“OI”: forbids outgoing international calls; this parameter is reserved and is not
supported currently.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
45
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
z
“OX”: forbids outgoing international calls excluding the calls originated to the
home country; this parameter is reserved and is not supported currently.
z
z
z
z
z
z
z
z
z
“AI”: forbids all outgoing calls; this parameter is reserved and is not supported
currently.
“IR”: forbids all incoming calls when the MS roams outside the home country.
This parameter is reserved and is not supported currently.
“AB”: forbids all services; this parameter is reserved and is not supported
currently.
“AG”: forbids all outgoing calls; this parameter is reserved and is not supported
currently.
“AC”: forbids all incoming calls; this parameter is reserved and is not supported
currently.
“FD”: The SIM card locks the dialing memory. This parameter is reserved and is
not supported currently.
“PN”: network customization. This parameter is reserved and is not supported
currently.
“PU”: subnet customization. This parameter is reserved and is not supported
currently.
“PP”: customized by service providers. This parameter is reserved and is not
supported currently.
5.2.2 Locking and Unlocking the Device
Write
+CLCK=<fac>,<mode>[,<passwd>[,<class>]]
command
Function
Locks and unlocks the MT or network functions, and queries the locking
status.
z
Response
In case of successful execution:
When <mode>=2
<CR><LF>+CLCK: <status><CR><LF>
<CR><LF>OK<CR><LF>
When <mode>≠2: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<mode>: integer, which indicates the operation mode.
z
0: unlocks the device.
z
1: locks the device.
z
2: queries the status.
<status>: integer, which indicates the current status.
z
0: inactive
z
1: active
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
46
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
<passwd>: string, which can be or may not be placed inside quotation marks. This
parameter corresponds to the password of <fac> and can be modified through
+CPWD. When mode is set to 0 or 1, this parameter is mandatory. When mode is
set to 2, no password is required. The characters inside the string must be obtained
from ‘0’–‘9’. Otherwise, an error is returned directly.
<class>: integer, which indicates the service type.
z
1: voice call (not supported currently)
z
2: data
z
4: fax (not supported currently)
z
7: voice+data+fax (not supported currently)
5.2.3 Examples
Example 1:
Lock the SIM card.
AT+CLCK=“SC”,1,“1234”
OK
Example 2:
Unlock the SIM card.
AT+CLCK=“SC”,0,“1234”
OK
Example 3:
Query the locking status of the SIM card.
AT+CLCK=“SC”,2
+CLCK: 0
OK
5.3 AT+CPWD - Command for Modifying the Password
The AT+CPWD command modifies the password.
Huawei Proprietary and Confidential
Issue 02 (2010-11-23)
47
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
5.3.1 Checking the Devices Supported by This Command
Test
AT+CPWD=?
command
Function
Returns the devices supported by this command and the maximum
length of passwords corresponding to the devices.
z
Response
In case of successful execution:
<CR><LF>+CPWD: list of supported
(<fac>,<pwdlength>)s<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<fac> string, which specifies the object on which this command operation is
performed.
z
"P2": PIN2 of the SIM card.
z
“SC”: SIM card. If the SIM card is locked, the MS requests you to enter the
password during power-on.
z
“AO”: forbids all outgoing calls; this parameter is reserved and is not supported
currently.
z
“OI”: forbids outgoing international calls; this parameter is reserved and is not
supported currently.
z
“OX”: forbids outgoing international calls excluding the calls originated to the
home country; this parameter is reserved and is not supported currently.
z
“AI”: forbids all outgoing calls; this parameter is reserved and is not supported
currently.
z
“IR”: forbids all incoming calls when the SIM card roams outside the home
country. This parameter is reserved and is not supported currently.
z
“AB”: forbids all services; this parameter is reserved and is not supported
currently.
<pwdlength>: string, which indicates the maximum length of the password
corresponding to the locking function of the device.
5.3.2 Modifying the Password
This command modifies the password that corresponds to the locking function of the
device.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
48
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Security Control
Write
AT+CPWD=<fac>,<oldpwd>,<newpwd>
command
Function
Modifies the password (such as PIN) that corresponds to the locking
function of the device.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<oldpwd>,<newpwd>:
old password and new password; string; the maximum
length of password is specified by the <pwdlength> parameter; the characters inside
the string must be obtained from ‘0’–‘9’. Otherwise, an error is returned directly.
5.3.3 Examples
Example:
Run AT+CPWD to modify the PIN code.
AT+CLCK=“SC”,2
card.
Query the locking status of the SIM
+CLCK:0
OK
AT+CLCK=“SC”,1,“1234”
state.
Set the SIM card to the PIN locking
Modify the PIN code.
OK
AT+CPWD=“SC”,“1234”,“1111”
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
49
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
6
Commands for Identification
This chapter describes the AT commands that allow external applications to obtain
the identification information about the module or about the entities that connect to
the module.
6.1 ATI - Command for Querying the Product Information
The ATI command queries the product information, including the vendor information
(+CGMI), product model number (+CGMM), software version number (+CGMR),
ESN/IMEI (+CGSN), and capability list (+GCAP).
Execution ATI[<value>]
command
Function
Queries the product information.
Response [<CR><LF>Manufacture: …
[<CR><LF>Model: …
[<CR><LF>Revision: …
[<CR><LF>IMEI: …
[<CR><LF>GCAP: …<CR><LF>]]]]]
<CR><LF>OK<CR><LF>
Parameter description
<Value>: integer; ATI is equivalent to ATI0.
(default value): MS information
0: reserved
1: reserved
2: reserved
3: vendor ID and product model number
4: vendor ID
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
50
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
5: reserved
6: reserved
6.1.1 Examples
Example 1:
Send the ATI command.
ATI
Manufacture: HUAWEI
Model: MG323
Revision: 11.810.01.00.00
IMEI: 350050500005492
+GCAP: +CGSM
OK
Example 2:
Send the ATI4 command.
ATI4
HUAWEI MG323
OK
Example 3:
Send the ATI5 command.
ATI5
HUAWEI
OK
6.2 AT+CGMI/GMI - Command for Querying the Vendor
Information
The AT+CGMI/GMI command queries the information about the module vendor.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
51
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
6.2.1 Checking Whether the Command for Querying the Vendor
Information Exists
Test
AT+CGMI=? or AT+GMI=?
command
Function
Checks whether the command for querying the vendor information
exists.
Response
<CR><LF>OK<CR><LF>
6.2.2 Querying the Vendor Information Request
Execution
command
AT+CGMI or AT+GMI
Function
Response
Queries the vendor information.
<CR><LF><manufacture><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<manufacture>: string, which indicates the vendor information.
"HUAWEI"
6.2.3 Examples
Query the vendor information.
AT+CGMI
HUAWEI
OK
AT+GMI
HUAWEI
OK
6.3 AT+CGMM/GMM - Command for Querying the
Product Model
The AT+CGMM/GMM command queries the product model.
Huawei Proprietary and Confidential
Issue 02 (2010-11-23)
52
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
6.3.1 Checking Whether the Command for Querying the Product
Model Exists
Test
AT+CGMM=? or AT+GMM=?
command
Function
Response
Checks whether the command for querying the product model exists.
<CR><LF>OK<CR><LF>
6.3.2 Querying the Product Model Number Request
Execution
command
AT+CGMM or AT+GMM
Function
Response
Queries the product model number.
<CR><LF><model><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<model>: string, which indicates the product model number.
"MG323"
6.3.3 Examples
Example:
Query the product model number.
AT+CGMM
MG323
OK
AT+GMM
MG323
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
53
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
6.4 AT+CGMR/GMR - Command for Querying the
Software Version Number
The AT+CGMR/GMR command queries the software version number of the module.
6.4.1 Checking Whether the Command for Querying the Software
Version Number Exists
Test
AT+CGMR=? or AT+GMR=?
command
Function
Checks whether the command for querying the software version
number exists.
Response
<CR><LF>OK<CR><LF>
6.4.2 Querying the Software Version Number
Execution
command
AT+CGMR or AT+GMR
Function
Response
Queries the software version number.
<CR><LF><softversion><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<softversion>: string, which indicates the software version number.
6.4.3 Examples
Example:
Query the software version number.
AT+CGMR
11.810.01.00.00
OK
AT+GMR
11.810.01.00.00
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
54
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
6.5 AT+CGSN/GSN - Command for Querying the IMEI
The AT+CGSN/GSN command queries the IMEI of the module.
6.5.1 Checking Whether the Command for Querying the IMEI
Exists
Test
AT+CGSN=? or AT+GSN=?
command
Function
Response
Checks whether the command for querying the IMEI exists.
<CR><LF>OK<CR><LF>
6.5.2 Querying the IMEI
Execution
command
AT+CGSN or AT+GSN
Function
Response
Queries the IMEI of the module.
<CR><LF><sn><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<sn>: string, which indicates the IMEI of the board. Table 6-1 lists the composition of
the IMEI.
Table 6-1 Composition of the IMEI
8 char
6 char
1 char
TAC
SNR
Spare
TAC: type code assigned to the device
SNR: sequence number of the device
Spare: reserved
6.5.3 Examples
Example:
Query the IMEI.
AT+CGSN
350050500005492
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
55
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
OK
AT+GSN
350050500005492
OK
6.6 AT+CIMI - Command for Querying the IMSI
The AT+CIMI command queries the IMSI of the SIM card.
6.6.1 Checking Whether the Command for Querying the IMSI
Exists
Test
AT+CIMI=?
command
Function
Response
Checks whether the command for querying the IMSI exists.
<CR><LF>OK<CR><LF>
6.6.2 Querying the IMSI
Execution
command
AT+CIMI
Function
Response
Queries the IMSI of the SIM card.
z
In case of successful execution:
<CR><LF><imsi><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<imsi>: string, which indicates the IMSI of the SIM card. The IMSI is a string that
consists of decimal numbers ranging from 0 to 9. Table 6-2 lists the composition of
the IMSI.
Table 6-2 Composition of the IMSI
3 char
2 or 3 char
MCC
MNC
MSIN
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
56
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Identification
3 char
2 or 3 char
Note:
The IMSI consists of not more than 15 characters in total.
MCC: Mobile Country Code
MNC: Mobile Network Code
MSIN: Mobile Station Identification Number
6.6.3 Examples
Example:
Query the IMSI.
AT+CIMI
46009755200774
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
57
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7
Commands for Call Control
This chapter describes the AT commands that are related to the calling and called
parties of the data service.
7.1 ATD - Command for Originating a Call
The ATD command originates a voice call or a CSD data service. For originating a
voice call, the command ends with ";". For establishing a data service connection, the
command ends without ";".
Execution
command
ATD<dialstring>[;]
Function
Response
Originates voice call or CSD data services.
When originating a voice call
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
or <CR><LF>+CME ERROR: <err><CR><LF>
z
In case of failed link establishment: <CR><LF>NO
CARRIER<CR><LF>
or <CR><LF>NO ANSWER<CR><LF>
z
If the called party is busy: <CR><LF>BUSY<CR><LF>
When establishing a CSD data service connection
z
In case of successful execution:
<CR><LF>CONNECT[<text>]<CR><LF>
z
In case of failure in establishing the connection: <CR><LF>NO
CARRIER<CR><LF>
z
If the called party is busy: <CR><LF>BUSY<CR><LF>
Parameter description
<dialstring>: the telephone number of the called party. "1, 2, 3, 4, 5, 6, 7, 8, 9, 0, *, #,
+, A, B, C, D, P, T, W, @, !" are allowed for this parameter, but of which "T, P, D, !, @"
will be ignored.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
58
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.2 ATD*99# - Command for Requesting the GPRS
Service
The ATD*99# command establishes a communication link between the TE and
Public Data Network (PDN). After the ITU-T V.250 ‘D’ (dialing) command is executed,
the MT enters the ITU-T V.250 online data state and starts the specified layer-2
protocol jointly with the TE. Other AT commands following this command line are not
executed. After the MT enters the online data state, its detailed behaviors depend on
the type of Packet Data Protocol (PDP).
Execution
command
ATD*99[*[<called_address>[[*[<L2P>][*[<cid>]]]]]]#
Function
Response
Establishes a communication link between the TE and PDN.
z
In case of successful execution: <CR><LF>CONNECT<CR><LF>
z
In case of failed link establishment: <CR><LF>NO
CARRIER<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF> or
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<called_address>: string, which indicates an IPv4 address in the w.x.y.z format. This
parameter is not supported currently.
<L2P>: string, which indicates the layer-2 protocol between the TE and MT.
z
“PPP”: The layer-2 protocol is PPP.
z
“1”: The layer-2 protocol is PPP.
<cid>: integer, which indicates the index value of the PDP context; ATD*99# is
equivalent to ATD*99***1#.
1-3
7.3 ATD*98# - Command for Requesting the GPRS IP
Service
The ATD*98# command establishes a communication link between the TE and PDN.
After the ITU-T V.250 ‘D’ (dialing) command is executed, the MT enters the ITU-T
V.250 online data state and starts the specified layer-2 protocol jointly with the TE.
Other AT commands following this command line are not executed. After the MT
enters the online data state, its detailed behaviors depend on the type of PDP.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
59
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
Execution
command
ATD*98[*<cid>]#
Function
Response
Establishes a communication link between the TE and PDN.
z
z
z
In case of successful execution:
<CR><LF>CONNECT<CR><LF>
In case of failed link establishment: <CR><LF>NO
CARRIER<CR><LF>
In case of an error: <CR><LF>ERROR<CR><LF> or
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<cid>: integer, which indicates the index value of the PDP context; ATD*98# is
equivalent to ATD*98*1#.
1-3
7.4 ATH - Command for Hanging Up the Connection
The ATH command hangs up all voice call on the current channel and currently
connected data service
Execution
command
ATH[<n>]
Function
Hangs up all voice call on the current channel and currently
connected data service
Response
<CR><LF>OK<CR><LF>
Note:
z
The ATH command can deactivate all activated or online PDP contexts. This command
cannot be used in the PDP deactivation process that is triggered when the LCP is
terminated or the DTR pin is lowered.
z
In addition, the ATH command can reject the request for activating the PDP context on the
network. The request reports URC“RING: GPRS” or “+CRING: GPRS”.
Parameter description
<n>: integer; ATH is equivalent to ATH0.
z
0 (default value): hangs up all CS domain call in activated and waiting state
(including voice and CSD data services) and GPRS data services on the current
channel.
z
1: hangs up all CS domain call in activated and waiting state (including voice and
CSD data services) and GPRS data services on all channels.
z
2: hangs up all CS data services on the current channel.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
60
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
z
3: hangs up all GPRS data services on the current channel.
z
4: hangs up all activated CS domain call (including voice and CSD data services)
on the current channel (the CS data services in waiting state are not hung up).
z
5: hangs up the CS domain call in waiting state (including voice and CSD data
services) GPRS data services on the current channel (the CS data services in
activated state are not hung up).
7.5 ATA - Command for Answering a Call or Data Services
The ATA command answers a call or CSD data services
Execution
command
ATA
Function
Response
Answers a call or CSD data services.
z
In case of successful in establishing a cal:l
<CR><LF>OK<CR><LF>
z
In case of successful in establishing CSD data services:
<CR><LF>CONNECT[<text>]<CR><LF>
z
In case of failed link establishment:
<CR><LF>NO CARRIER<CR><LF>
Note:
z
During the command execution process, entering a character interrupts command
execution and returns OK.
z
The ATA command can be used to receive the PDP context activation request from the
network side, and unsolicitedly report URC"RING: GPRS" or "+CRING: GPRS".
7.6 ATS0- Commands for Setting the Automatic Answer
Data Services
The ATS0 command sets the automatic answer data service..
7.6.1 Reading the Settings of the Automatic Answer Data Services
Read
ATS0?
command
Function
Reads the settings of the automatic answering data services.
Response
<CR><LF><n><CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
61
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
<n>: Integer
0: automatic answer mode is disabled.
1~255: number of rings before automatically answering a call.
7.6.2 Setting Unsolicitedly Answering Data Services
Write
ATS0=<n>
command
Function
Sets unsolicitedly answering data services.
z
Response
In case of successful execution::<CR><LF>OK<CR><LF>
z
In case of an error::<CR><LF>ERROR<CR><LF>
Note:
If <n> is set to a too great value, the calling party may hang up before the call is automatically
answered.
7.7 ATS7 - Command for Setting the Duration to Be
Waited for Completion of Connection Establishment
The ATS7 command sets the duration to be waited by the TA for the completion of
connection establishment when originating or receiving a data call. Generally, this
duration is calculated as the duration to be waited for bearer signals. If failing to
receive bearer signals within a specified duration, the TA hangs up the current data
call.
7.7.1 Reading the Set Waiting Duration Request
Read
ATS7?
command
Function
Response
Reads the set waiting duration.
z
<CR><LF><n><CR><LF>
z
<CR><LF>OK<CR><LF>
Parameter description
<n>: integer, which indicates the waiting duration in seconds. The default value is 60.
000–255
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
62
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.7.2 Setting the Waiting Duration
Write
ATS7=<n>
command
Function
Sets the duration to be waited by the TA for the completion of
connection establishment when originating or receiving a data call.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Note:
z
This command applies to data call services only.
z
<n> is not allowed starting with “0x”, or regarding as ATS7=0
7.8 AT+CRLP - Command for Setting Radio Link Protocol
Parameters for Non-Transparent Transmission Data
Services on the Calling Party Side
The AT+CRLP command sets the related radio link protocol (RLP) parameters when
non-transparent transmission data services are originated.
7.8.1 Querying the Supported RLP Parameters
Test
AT+CRLP=?
command
Function
Response
Queries the supported RLP parameters.
<CR><LF>+CRLP: (list of supported <iws>s),(list of supported
<mws>s), (list of supported <T1>s), (list of supported <N2>s), (list of
supported <ver1>s), (list of supported <T4>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<iws>: integer, which indicates the interactive window size (IWF TO MS). The default
value is 61.
0–61
<mws>: integer, which indicates the mobile window size (MS TO IWF). The default
value is 61.
0–61
<T1>: integer, which indicates the acknowledgement timer (T1: measured by 10 ms).
The default value is 78 (780 ms).
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
63
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
48–255
<N2>: integer, which indicates the number of times for attempting retransmission.
The default value is 6.
1–255
<ver1>: integer, which indicates the RLP version. Only the value 0 is supported.
<T4>: integer, which indicates the sequence period as an integer. Only the value 7 is
supported.
7.8.2 Reading RLP Parameters for the Current Non-Transparent
Transmission Data Services on the Calling Party Side
Read
AT+CRLP?
command
Function
Reads RLP parameters for the current non-transparent transmission
data services on the calling party side.
Response
<CR><LF>+CRLP: <iws>,<wms>,<T1>,<N2>,<ver1>,<T4><CR><LF>
<CR><LF>OK<CR><LF>
7.8.3 Setting RLP Parameters for the Non-Transparent
Transmission Data Services on the Calling Party Side
Write
AT+CRLP=[<iws>[,<mws>[,<T1>[,<N2>]]]]
command
Function
Sets RLP parameters for the non-transparent transmission data
services on the calling party side.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
Note:
If no parameters of this command are set, AT+CRLP= considers the previously set values
valid for various parameters.
7.9 AT+CBST - Command for Setting the Bearer Service
Type
The AT+CBST command sets the bearer service <name>, data rate <speed>, and
connection mode <ce> that are required for originating data services. The preceding
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
64
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
settings also apply to MT data services, especially in the case that single number
data services or the data services originated by similar devices are received.
7.9.1 Querying the Supported Bearer Service Types
Test
AT+CBST=?
command
Function
Response
Queries the supported bearer service types.
<CR><LF>+CBST: (list of supported <speed>s),(list of supported
<name>s), (list of supported <ce>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter description
<speed>: integer, which indicates the data rate.
z
0: adaptive baud rate
z
7: 9600 bit/s (V.32) (default value)
z
71: 9600 bit/s (V.110)
<name>: integer
0: asynchronous data circuit (UDI or 3.1kHz modem)
<ce>: integer. The transparent transmission mode is not supported.
1: non-transparent transmission
7.9.2 Querying the Current Bearer Service Type
Read
AT+CBST?
command
Function
Response
Queries the current bearer service type.
<CR><LF>+CBST: <speed>,<name>,<ce><CR><LF>
<CR><LF>OK<CR><LF>
7.9.3 Setting the Bearer Service Type
Write
AT+CBST=<speed>[,<name>[,<ce>]]
command
Function
Response
Sets the bearer service type.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
65
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.10 +++ - Command for Switching Data Mode to
Command Mode
The +++ command switches data mode to command mode during the connection of
CSD services or GPRS data services.
Execution
command
+++
Function
After “+++” is executed, the TA terminates the data transmission
stream on the AT interface and enters the command mode so that AT
commands can be executed when the links towards remote terminals
or GPRS connections are maintained.
Response
<CR><LF>OK<CR><LF>
Note:
z
To prevent the entered command line from being confused with “+++” in the transmission
data stream, do not enter other characters within 1000 ms before and after entering the
command line. In addition, two adjacent ‘+’s must be entered at a time interval of smaller
than 1000 ms.
z
In multiplexing mode, this command is unavailable. In this case, you need to enter other exit
instructions (such as DTR signals and modem status command MSC) to switch data mode
to command mode.
7.11 ATO - Command for Switching Command Mode to
Data Mode
The ATO command switches command mode to data mode. When a CSD call or
GPRS connection is established, the TA is in command mode. This command can
switch command mode to data mode or PPP online mode.
Execution
command
ATO[<n>]
Function
Response
Switches command mode to data mode.
In case of successful execution: <CR><LF>CONNECT <CR><LF>
In case of failed connection recovery: <CR><LF>NO
CARRIER<CR><LF>
Parameter description
<n>: integer; ATO is equivalent to ATO0.
0 (default value): switches command mode to data mode.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
66
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.12 AT+CHUP - Command for Hanging Up Data Services
The AT+CHUP command hangs up all active and suspended call (including voice
and CSD data service).
7.12.1 Checking Whether AT+CHUP Hang-up Is Supported
Test
AT+CHUP=?
command
Function
Response
Checks whether AT+CHUP hang-up is supported.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME
ERROR: <err><CR><LF>
7.12.2 AT+CHUP Command for Hanging Up
Execution
command
AT+CHUP
Function
Hangs up all active and suspended data services. (including voice and
CSD data service)
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
7.13 AT+CR - Command for Setting the Service Reporting
Mode
The AT+CR command sets whether to report the intermediate result code +CR:
<ser> to the TE during the establishment of data services.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
67
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.13.1 Querying the Supported Settings for Service Reporting
Test
AT+CR=?
command
Function
Response
Queries the supported settings for service reporting.
z
In case of successful execution:
<CR><LF>+CR: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<mode>: integer.
z
0 (default value): disables service reporting.
z
1: enables service reporting. The TA reports the intermediate result code after
determining the rate and service quality in connection negotiation and before
reporting error settings or data compression and other result codes such as
CONNECT.
+CR: <serv>
<serv>: string. Table 7-1 describes the values of <serv>.
Table 7-1 Values of <serv>
Value
Description
"REL ASYNC"
"GPRS"
Asynchronous and non-transparent transmission
Request for activating the PDP context on the GPRS network
7.13.2 Reading the Current Settings for Service Reporting
Read
AT+CR?
command
Function
Response
Reads the current settings for service reporting.
z
In case of successful execution:
<CR><LF>+CR: <mode><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
68
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.13.3 Setting Service Reporting
Write
AT+CR=[<mode>]
command
Function
Response
Sets service reporting.
z
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error: <CR><LF>ERROR<CR><LF>
z
Note:
If no parameters of this command are set, AT+CR= considers the previously set values valid
for various parameters.
7.14 AT+CRC - Command for Setting the Cell Result
Codes
The AT+CRC command sets whether the caller ID display follows the extended
format.
7.14.1 Querying the Supported Settings for the Cell Result Codes
Test
AT+CRC=?
command
Function
Response
Queries the settings for the cell result code in caller ID display.
z
In case of successful execution:
<CR><LF>+CR: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<mode>: integer.
z
0 (default value): does not follow the extended format. In this case, the reporting
format is RING.
z
1: follows the extended format. In this case, the reporting format is as follows:
+CRING: <type>
<type>: string. Table 7-2 describes the values of <type>.
Table 7-2 Values of <type>
Value
Description
"REL ASYNC"
Asynchronous and non-transparent transmission
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
69
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
Value
Description
"GPRS"
“VOICE”
Request for activating the PDP context on the GPRS network
Voice call
7.14.2 Querying the Current Settings for the Cell Result Codes
Read
AT+CRC?
command
Function
Response
Reads the current settings for the cell result code in caller ID display.
z
In case of successful execution:
<CR><LF>+CRC: <mode><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
7.14.3 Settings the Cell Result Codes
Write
AT+CRC=[<mode>]
command
Function
Response
Sets the cell result code in caller ID display.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Note:
If no parameters of this command are set, AT+CRC= considers the previously set values valid
for various parameters.
7.15 AT+VTS - Command for Sending the DTMF Tone
The AT+VTS command sends the DTMF tone.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
70
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.15.1 Sending the DTMF Tone
Write
AT+VTS=<DTMF>
command
Function
Response
Sends the DTMF tone.
z
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error: <CR><LF>ERROR<CR><LF>
z
Parameter description
<DTMF>: character type; 0–9, #, *, A, B, C, D in the ASCII character set.
7.16 AT+CLIP - Command for Displaying the Calling Line
Identification
The AT+CLIP command refers to the Calling Line Identification Presentation (CLIP),
a GSM supplementary service. The called party can get the Calling Line Identification
(CLI) of the caller when receiving a call.
7.16.1 Querying the Settings Supported by the AT+CLIP
Command
Test
AT+CLIP=?
Command
Function
Response
Queries the CLIP settings that can be set by the command.
z
In case of successful execution: <CR><LF>+CLIP: (list of
supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<n>: integer; sets or displays the result code state of TE (the value set for <n>
remains unchanged even if the module is powered off).
z
0 (default value): indicates that the CLIP is not provisioned.
z
1: indicates that the CLIP is provisioned.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
71
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
7.16.2 Reading the Settings of the CLIP Service
Read
AT+CLIP?
command
Function
Response
Reads the settings of the CLIP service.
z
In case of successful execution:<CR><LF>+CLIP:
<n>,<m><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<m>: integer; sets whether the CLIP service is provisioned on the network.
z
0: indicates that the CLIP is not provisioned.
z
1: indicates that the CLIP is provisioned.
z
2: unkown (due to interworking problems or limitations of originating network).
7.16.3 Setting the CLIP
Write
AT+CLIP=[<n>]
command
Function
Response
Enables or disables the CLIP service.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME
ERROR: <err><CR><LF>
Note:
AT+CLIP= is equivalent to AT+CLIP=0.
7.16.4 +CLIP - Command for Unsolicitedly Reporting the CLI
URC
<CR><LF>+CLIP:
<number>,<type>[,<subaddr>,<satype>[,[<alpha>][,<CLI
validity>]]]<CR><LF>
Parameter description
<number>: character type, which indicates the telephone number.
<type>: integer type, which indicates the telephone number in character type.
z
145: international number
z
129: other number
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
72
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Call Control
<subaddr>: string type subaddress of format specified by <satype>
<satype>: type of subaddress octet in integer format
<alpha>: string type, not supported currently
<CLI validity>: integer type
z
0: The CLI is valid.
z
1: The CLI is withheld by the caller.
z
2: The CLI is not available due to interworking problems or limitations of
originating network
7.17 RING – Command for Unsolicitedly Reporting
Incoming Calls
This command indicates that the module has an incoming call.
If AT+CRC is set to 0, this command is reported in the case of an incoming call.
URC
<CR><LF>RING<CR><LF>
7.18 +CRING – Command for Unsolicitedly Reporting
Incoming Calls
This command indicates that the module has an incoming call.
If AT+CRC is set to 1, this command is reported in the case of an incoming call.
URC
<CR><LF>+CRING: <type><CR><LF>
Parameter description
<type>: character string. Table 7-3 lists the values.
Table 7-3 <type> values
Value
Description
"REL ASYNC"
"GPRS"
Asynchronous non-transparent transmission
PDP context activation request at the GPRS network side
Voice call
“VOICE”
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
73
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8
Commands for Network Services
This chapter describes the AT commands that allow users to query and configure the
operator information.
8.1 AT+COPN - Command for Querying the Operator
Name
The AT+COPN command queries the operator name.
8.1.1 Checking Whether This Command Is Supported
Test
AT+COPN=?
command
Function
Response
Checks whether this command is supported.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
74
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.1.2 Reading the List of Operators
Execution AT+COPN
command
Function
Response
Reads the list of operators.
z
In case of successful execution:
<CR><LF>+COPN:<numericn>,<alphan><CR><LF>
[<CR><LF>+COPN: …(list of operators)<CR><LF>]
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<numericn>: indicates an operator in numeric format.
<alphan>: indicates an operator in long string format.
8.1.3 Examples
Example 1:
Query the command status.
AT+COPN=?
OK
The command is available.
Example 2:
Query all the operator information.
AT+COPN
+COPN: “36320”, “DIGICEL”
<list of operator information, which is omitted due to excessive length>
OK
8.2 AT+COPS - Command for Selecting Operators
The AT+COPS command registers a network and queries the currently registered
network status and network selection mode.
Huawei Proprietary and Confidential
Issue 02 (2010-11-23)
75
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.2.1 Checking the Current Available Network and Operator
Information
Test
AT+COPS=?
command
Function
Response
Returns the current available network and operator information.
z
In case of successful execution:
<CR><LF>+COPS: [list of present operators(<opStatus>,long
alphanumeric <oper>,short alphanumeric <oper>,numeric <oper>)],,(list
of supported <mode>),(list of supported <format>)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
It takes a long time for this command to query the current available network.
Parameter description
<mode>: network selection mode, whose values are as follows:
z
0 (default value): automatic mode (other parameters are omitted)
z
1: manual network searching
2: deregisters a network and maintains the network in unregistered state until
<mode>=0, 1, or 4 (This is not supported currently).
z
3: sets the value of <format> in the result returned by the READ command
z
4: combination of automatic and manual network searching modes. If manual
network searching fails, the automatic network searching mode is started.
< opStatus >: network status identifier, whose values are as follows:
z
0: unknown
z
1: available
z
2: currently registered
z
3: disabled
<format>: format of the operator information <oper>. The values of this parameter
are as follows:
z
0 (default value): operator information <oper> in long string format, which
consists of not more than 16 characters.
z
2: operator information <oper> in numeric format.
<oper>: operator information. In a test command, the operator name follows the long
string format and numeric format. In a read command, the operator name contains all
fields.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
76
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.2.2 Reading the Currently Registered Network and Operator
Information
Read
AT+COPS?
command
Function
Response
Reads the currently registered network and operator information.
z
In case of successful execution:
<CR><LF>+COPS: <mode>[,<format>[,<oper>]]<CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
8.2.3 Setting the Current Operator Information
Write
AT+COPS=<mode>[,<format>[,<oper>]]
command
Function
Response
Sets the current operator information.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
z
In automatic network searching mode, only the <mode> parameter is valid and other
parameters are omitted.
z
When the set operator information does not exist or is unavailable, the CME ERROR is
returned.
8.2.4 Examples
Example 1:
Obtain the list of available operator information.
AT+COPS=?
+COPS: (2,"CC 460 NC 09",,"46009"),(3,"CHN-CUGSM",,"46001"),(3,"CHINA
MOBILE",,"46000"),,(0-4),(0,2)
OK
Example 2:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
77
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
Set the automatic network searching mode.
AT+COPS=0
In automatic network searching mode,
only the <mode> parameter is valid.
OK
Example 3:
Manually register with the network.
AT+COPS=1,2,46000
OK
8.3 AT+CREG - Command for Querying Network
Registration
The AT+CREG command queries network registration.
8.3.1 Checking the Parameter Range Supported by This
Command
Test
AT+CREG=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CREG: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<n>: URC mode
z
0 (default value): disables unsolicited reporting of AT+CREG.
z
1: enables unsolicited reporting of +CREG: <stat>. When <n>=1, that is, when
the status of network registration changes, +CREG:<stat> is reported.
z
2: enables unsolicited reporting of +CREG: <stat>[,<lac>,<ci>]. After the
AT+CREG READ command is sent previously or is reported unsolicitedly, the
values of the <lac> and <ci> parameters do not change, the preceding
command is not displayed. During the call, the optional parameters <lac> and
<ci> are not displayed. When <n>=2, that is, when the cell information changes,
+CREG: <stat>[,<lac>,<ci>] is reported. The location information <lac>,<ci> is
reported only when <n>=2.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
78
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.3.2 Querying the Current Status of Network Registration
Read
AT+CREG?
command
Function
Response
Queries the current status of network registration.
z
In case of successful execution:
<CR><LF>+CREG:<n>,<stat>[,<lac>,<ci>]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<stat>: current status of network registration.
z
0: does not register. Currently, the ME does not search for a new operator to be
registered with.
z
1: registers with the local network.
z
2: does not register. The ME, however, is searching for a new operator to be
registered with.
z
3: Network registration is rejected.
z
4: unknown reason.
z
5: registers with the roaming network.
<lac>: location area code, which consists of two bytes in hexadecimal mode (for
example, “00C3” = 195 in decimal mode).
<ci>: cell information, which consists of two bytes in hexadecimal mode.
8.3.3 Setting the Status of Network Registration
Write
AT+CREG=[<n>]
command
Function
Response
Queries the current status of network registration.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
In this section, AT+CREG= is equivalent to AT+CREG=0.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
79
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.3.4 +CREG – Command for Unsolicitedly Reporting the
Network Registration Status
z
URC
If AT+CREG is set to 1, when the network registration status is
changed:
<CR><LF>+CREG:<stat><CR><LF>
z
z
If AT+CREG is set to 2, when the network registration status or
network cell is changed:
<CR><LF>+CREG:<stat>[,<lac>,<ci>]<CR><LF>
Function
Indicates that the network registration status is changed.
8.3.5 Examples
Example 1:
Query the current status of network registration.
AT+CREG?
+CREG: 0,1
Has been registered with the local network
and does not unsolicitedly report the CREG information.
OK
Example 2:
Set unsolicited reporting of the current +CREG information.
AT+CREG=2
OK
8.4 AT+CSQ - Command for Querying the Signal Quality
The AT+CSQ command queries the signal quality and returns the receive signal
strength indicator <rssi> and channel bit error rate <ber> that are sent by the ME.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
80
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.4.1 Checking the Parameter Range Supported by This
Command
Test
AT+CSQ=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CSQ: (list of supported <rssi>s),(list of supported
<ber>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<rssi>: receive signal strength indicator
z
0: ≤ -113 dBm
z
1: -111 dBm
z
2...30:
-109...-53 dBm
z
z
31: ≥ 51 dBm
99: unknown or immeasurable
<ber>: bit error rate in percentage. The value of ber can be queried only during the
call processing. Otherwise, only the value 0 or 99 is returned. Currently, only the
value 99 is returned.
z
0–7: correspond to the values of RXQUAL in the GSM 05.08 section8.2.4.
z
99: unknown or immeasurable
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
81
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.4.2 Querying the Current Signal Quality
Execution
command
AT+CSQ
Function
Response
Queries the current signal quality.
z
In case of successful execution:
<CR><LF>+CSQ: <rssi>,<ber><CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
After running a network related AT command such as AT+CLCK, you are advised to run the
AT+CSQ command after three seconds.
8.4.3 Examples
Example 1:
Query the parameter range supported by the command.
AT+CSQ=?
+CSQ: (0-31,99),(0-7,99)
OK
Example 2:
Query the current signal quality.
AT+CSQ
+CSQ: 23, 99
OK
8.5 AT^SMONC - Command for Querying the Cell
Information
The AT^SMONC command obtains the cell information. A maximum of seven BTS
cells can be obtained, including the serving cell and up to six neighbor cells.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
82
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.5.1 Checking Whether This Command Is Available
Test
AT^SMONC=?
command
Function
Response
Checks whether this command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
8.5.2 Querying the Cell Information
Execution
command
AT^SMONC
Function
Response
Obtains the cell information.
z
In case of successful execution:
<CR><LF>^SMONC:
<MCC>1,<MNC>1,<LAC>1,<cell>1,<BSIC>1,<chann>1,<RSSI>1,<
C1>1,<C2>1,<MCC>2,<MNC>2,<LAC>2,<cell>2,<BSIC>2,<chann>
2,<RSSI>2,<C1>2, <C2>2, ...<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<MCC>: country code, which is a 3-digit decimal number.
<MNC>: network code, which is a 2- or 3-digit decimal number.
<LAC>: location area code, which is a 4-digit hexadecimal number.
<cell>: cell code, which is a 4-digit hexadecimal number.
<BSIC>: base station identification code, which is a 2-digit decimal number.
<chann>: Absolute Frequency Channel Number (ARFCN)
<RSSI>: received signal level of BCCH carriers (0–63), which is expressed by dBm
value plus offset value. For details, see the 3GPP TS 05.08.
<C1>: cell reselection coefficient.
<C2>: cell reselection coefficient.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
83
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.5.3 Examples
Example 1:
Query the parameter range supported by the command.
AT^SMONC=?
OK
Example 2:
Query the current cell information.
AT^SMONC
^SMONC:
460,01,2540,7ade,3b,722,19,23,33,460,01,2540,7a9a,03,730,18,20,30,460,01,2540,
7a09,32,118,16,19,19,000,000,0000,0000,00,0,0,-,-,000,000,0000,0000,00,0,0,-,-
,000,000,0000,0000,00,0,0,-,-,000,000,0000,0000,00,0,0,-,-
OK
8.6 AT^SMOND - Command for Querying the Cell
Information (Including Neighbor Cells)
The AT^SMOND command obtains the information about the serving cell and up to
six related neighbor cells. This command can obtain the detailed information about
the receive signal strength.
8.6.1 Checking Whether This Command Is Available
Test
AT^SMOND=?
command
Function
Response
Checks whether this command is available.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
84
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.6.2 Querying the Cell Information
Execution AT^SMOND
command
Function
Response
Obtains the cell information.
z
In case of successful execution:
<CR><LF>^SMOND: [<sci>][,<nci>][,<TA>][,<rssiber>]<CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<sci>: serving cell information (separated by a comma, excluding CR/LF), which is
described as follows:
<MCC>,<MNC>,<LAC>,<cell>,<BSIC>,<chann>,<RxLev>,<RxLevFull>,<RxLev
Sub>,<RxQual><RxQual Full>,<RxQual Sub>,<Timeslot>
If the serving cell information is not found, the parameter values are omitted. For
example, “,,,,,,<RxLev>,,,0,,,0”
<nci>: neighbor cell information (neighbor cells 1–6) (separated by a comma,
excluding CR/LF), which is described as follows:
<MCC>1,<MNC>1,<LAC>1,<cell>1,<BSIC>1,<chann>1,<RxLev>1, (these
parameters repeated for neighbor cells 2 through 6 with no CR/LF): ...
<MCC>6,<MNC>6,<LAC>6,<cell>6,<BSIC>6,<chann>6,<RxLev>6; for unavailable
cells, “ ,,,,,,0” is displayed.
<TA>: timing advance value of the serving cell (bits)
<rssiber>: RSSI and BER values (separated by a comma, excluding CR/LF), which
are described as follows:
<RSSI>,<BER>
<MNC>: network code, which is a 2- or 3-digit decimal number.
<LAC>: location area code, which is a 4-digit hexadecimal number.
<cell>: cell code, which is a 4-digit hexadecimal number.
<BSIC>: base station identification code, which is a 2-digit decimal number.
<chann>: Absolute Frequency Channel Number (ARFCN)
<RxLev>: receive signal level (dBm)
<RsQual>: receive signal quality, which is defined in the GSM05.08.
<Timeslot>: assigned time slots (0–8). If the MS is in idle mode, time slot 0 is
displayed.
<RSSI>: receive signal strength indicator (0–31).
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
85
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
<BER>: bit error rate (0–7, 99)
8.6.3 Examples
Example 1:
Query the current cell information.
AT^SMOND
^SMOND: 460, 09,0001,0003,00, 552,
47,,,0,,,0,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,255,47,255
OK
8.7 AT^MONI - Command for Querying the Cell
Information in Idle and Dedicated Modes
The AT^MONI command obtains the information about the serving cell or dedicated
cells. In idle and dedicated modes of the ME, the cell information (serving cell
information and dedicated channel information) can be returned by execution
command and write command. The write command periodically returns the cell
information. To stop periodical return of the cell information, you can enter any
character.
8.7.1 Checking the Parameter Range Supported by This
Command
Test
AT^MONI=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>^MONI: (list of supported <period>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<period>: integer parameter, which indicates the period in seconds. Value range: 1–
254.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
86
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
Table 8-1 List of parameters for the serving cell
Parameter Description
chann
rs
ARFCN (Absolute Frequency Channel Number) of the BCCH carrier
RSSI value (0–63) (RSSI= Received signal strength indication)
Receive signal strength of the BCCH (dBm)
Country code (first part of the PLMN code)
Network code (second part of the PLMN code)
Location area code
dBm
MCC
MNC
LAC
cell
Cell ID
NCC
BCC
Network color code, which is used to differentiate PLMN subnets
Base station color code, which is used to differentiate intra-frequency
cells
PWR
PXLev
C1
Maximum power level of the RACH (dBm)
Minimum receive signal level allowed for registration (dBm)
Base station selection coefficient
Table 8-2 List of parameters for dedicated channels
Parameter Description
chann
Absolute Frequency Channel Number (ARFCN) of the Traffic Channel
(TCH)
Note:
When <chann>=h, it indicates frequency hopping.
TS
Sequence number of time slot
dBm
timAdv
PWR
dBm
Q
Receive signal strength level of the BCCH (dBm)
Timing advance value (bits)
Power level
Receive signal strength level of the TCH (dBm)
Receive signal quality (0–7)
ChMod
Channel mode (--: Signaling, S_HR: Half rate, S_FR: Full rate, S_EFR:
Enhanced
Full Rate, A_HR: AMR Half rate, A_FR: AMR Full rate)
Parameter values set for the ME in different states
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
87
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
The ME has accessed the cell and registered with the network.
Serving cell
I Dedicated
channel
Chann rs dBm MCC MNC LAC cell
NCC BCC PWR RXLev C1 I chann TS
timAdv PWR
dBm Q ChMod
82
23 -63
460
00 0001 0003
0
0
0
-102 13 I No
connection
The ME has accessed the cell but has not registered with the network (only
emergency calls can be made).
Serving cell
I Dedicated
channel
Chann rs dBm MCC MNC LAC cell
NCC BCC PWR RXLev C1
I
chann TS
timAdv
PWR
dBm Q ChMod
82
23 -63
460
00 0001 0003
0
0
0
-102 13 Limited Service
The ME is searching for the network but fails to find a proper cell.
Serving cell
I Dedicated
channel
Chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev C1 I chann TS timAdv
PWR
dBm
Q
ChMod
Searching
The returned result contains the related text information based on the service status.
Value
Description
Searching
The MS is searching for the network but fails to find a proper cell.
When the MS restarts or is not covered by signals, the MS is in this
service state.
No connection
The MS is accessing the cell and registering with the network. In this
case, the service state is “idle”.
Cell
Reselection
The MS is covered by signals of a cell but is searching for a better
cell.
Limited Service The MS is located inside a cell but does not register with the
network. In this case, the MS can make emergency calls only.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
88
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.7.2 Obtaining the Information About the Serving Cell or
Dedicated Cells.
Execution AT^MONI
command
Function
Response
Obtains the information about the serving cell or dedicated cells.
z
In case of successful execution:
<CR><LF>Serving cell
I Dedicated channel
<CR><LF>chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev
C1 I chann TS timAdv PWR dBm Q ChMod
<CR><LF>……(list of cell information, For details, see Examples.)
<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
"Limited service" or "Searching" may be returned only when the module is unsolicitedly
searching for or deregistering with the network.
8.7.3 Periodically Obtaining the Information About the Serving
Cell or Dedicated Cells.
Write
AT^MONI=<period>
command
Function
Periodically obtains the information about the serving cell or dedicated
cells.
z
Response
In case of successful execution:
Periodically returns <CR><LF>Serving cell
I Dedicated channel
<CR><LF>chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev
C1 I chann TS timAdv PWR dBm Q ChMod
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>……(list of cell information. For details, see Examples.)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
89
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
<CR><LF>……(list of cell information. For details, see Examples.)
<CR><LF>……(list of cell information,. For details, see Examples.)
<CR><LF>……(list of cell information,. For details, see Examples.)
<CR><LF>…(enter any character to stop periodical return of the list of
cell information)
(For details, see Examples.)
<CR><LF><CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
"Limited service" or "Searching" may be returned only when the module is unsolicitedly
searching for or deregistering with the network.
8.7.4 Examples
Example 1:
Query the parameter range supported by the command.
AT^MONI=?
^MONI: (1-254)
OK
Example 2:
Query the cell information.
AT^MONI
Serving cell
I Dedicated channel
chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev C1 I chann TS timAdv
PWR dBm Q ChMod
552 18
-76 460
09 0001 0003
0
0
0
-102
32 I
No
connection
OK
Example 3:
Periodically return the cell information.
AT^MONI=1
Serving cell
I Dedicated channel
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
90
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev C1 I chann TS timAdv
PWR dBm Q ChMod
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
552 18 -69 460 09 0001 0003 0 0
0
0
0
0
0
0
0
0
0
0
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
Serving cell
I Dedicated channel
chann rs dBm MCC MNC LAC cell NCC BCC PWR RXLev C1 I chann TS timAdv
PWR dBm Q ChMod
552 18 -69 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
552 18 -70 460 09 0001 0003 0 0
e
0
0
0
0
0
0
0
0
0
0
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
-102 32 I
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
No connection
OK
8.8 AT^MONP - Command for Monitoring Idle Neighbor
Cells
The AT^MONP command monitors neighbor cells and obtains the information about
a maximum of six neighbor cells through the execution command and write command.
The write command periodically returns the related information. To stop periodical
return of the related information, you can enter any character.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
91
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.8.1 Checking the Parameter Range Supported by This
Command
Test command
Function
AT^MONP=?
Returns the parameter range supported by this command.
z
Response
In case of successful execution:
<CR><LF>^MONP: (list of supported <period>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command
execution: <CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<period>: integer parameter, which indicates the period in seconds. Value range: 1–
254.
For details about other parameters, see the AT^SMONC command.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
92
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.8.2 Obtaining the Monitoring Information About Neighbor
Cells
Execution AT^MONP
command
Function
Response
Obtains the monitoring information about neighbor cells.
z
In case of successful execution:
<CR><LF>chann rs dBm MCC MNC BCC C1 C2
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)
[<CR><LF>…… (information about neighbor cells. For details, see
Examples.)]]]]]]
<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
93
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.8.3 Periodically Obtaining the Monitoring Information About
Neighbor Cells
Write
AT^MONP=<n>
command
Function
Response
Periodically obtains the monitoring information about neighbor cells.
z
In case of successful execution:
Periodically returns <CR><LF>chann rs dBm MCC MNC BCC C1
C2
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)
<CR><LF>……(information about neighbor cells, For details, see
Examples.)<CR><LF>…(enter any character to stop periodical return of
the list of cell information)
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
8.8.4 Examples
Example 1:
Query the parameter range supported by the command.
AT^MONP=?
^MONP: (1-254)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
94
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
OK
Example 2:
Query the information about neighbor cells.
AT^MONP
chann rs dBm MCC MNC BCC C1 C2
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
2 22
7 19
5 12
32
27
22
OK
Example 3:
Periodically return the information about neighbor cells.
AT^MONP=1
chann rs dBm MCC MNC BCC C1 C2
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
712 20 -73 460 001
2 22
7 19
5 12
2 22
7 19
5 12
2 22
7 19
5 12
2 22
32
27
22
32
27
22
32
27
22
32
chann rs dBm MCC MNC BCC C1 C2
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
712 20 -73 460 001
735 16 -81 460 001
705 15 -83 460 001
2 22
7 19
5 12
2 22
7 19
5 12
2 22
7 19
5 12
32
27
22
32
27
22
32
27
22
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
95
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
712 20 -73 460 001
2 22
32
e
OK
8.9 AT^SMONG - Command for GPRS Monitoring
The AT^SMONG command performs GPRS monitoring and obtains the information
about the cells that support the GPRS function. The information can be obtained by
execution command and write command. The write command can be set to
periodically return the cell information. To stop periodical return of the cell information,
you can enter any character.
8.9.1 Checking the Parameter Range Supported by This
Command
Test
AT^SMONG=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>^SMONG: (list of supported <table>s),(list of supported
<period>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<period>: integer parameter. This parameter can be set to periodically return the list
of cell information (in seconds).
Value range: 1–100. If the value of the <period> parameter is omitted, the returned
cell information is displayed in a single line. If the value of the <period> parameter is
set, 10 lines of cell information are returned periodically and each 10 lines are
accompanied by a text title line.
<table>: integer, which indicates the cell information table. The value is 1.
Table 8-3 List of cell information
Parameter Description
BCCH
Absolute Frequency Channel Number (ARFCN) of the Broadcast Control
Channel (BCCH)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
96
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
Parameter Description
G
GPRS status of the current serving cell:
-: unavailable
1: available
PBCCH
PAT
If Packet Broadcast Control Channel (PBCCH) exists, this parameter
indicates the ARFCN. Otherwise, this parameter is left empty or set to H
(frequency hopping).
Priority Access Threshold (GSM Rec. 04.08 / 10.5.2.37b)
0: The current cell forbids packet access.
1: reserved; equivalent to "000" (forbids packet access)
2: reserved; equivalent to "000" (forbids packet access)
3: allows packet access; the priority is 1.
4: allows packet access; the priority is 1–2.
5: allows packet access; the priority is 1–3.
6: allows packet access; the priority is 1–4.
MCC
MNC
NOM
TA
Mobile Country Code
Mobile Network Code
Network Operation Mode (0…2)
Timing Advance Value
RAC
Routing Area Code (in hexadecimal mode)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
97
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.9.2 Obtaining the Information About the Cells That Support the
GPRS Function
Execution AT^SMONG
command
Function
Response
Obtains the list of cell information.
z
In case of successful execution:
<CR><LF>GPRS Monitor<CR><LF>
<CR><LF>BCCH
G
PBCCH PAT MCC MNC NOM TA
RAC # cell #
<CR><LF>……(list of cell information, For details, see
Examples.)<CR><LF>
<CR><LF><CR><LF><CR><LF><CR><LF><CR><LF><CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
"Limited service" or "Searching" may be returned only when the module is unsolicitedly
searching for or deregistering with the network.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
98
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.9.3 Obtaining the Information About the Cells That Support the
GPRS Function
Write
AT^SMONG=<table>[,<period>]
command
Function
Obtains the list of information about the cells that support the GPRS
function.
z
Response
In case of successful execution:
If the <period> parameter is not set, the response is the same as that
returned for the execution command in the preceding section.
If the <period> parameter is set:
<CR><LF>GPRS Monitor<CR><LF>
Periodically returns <CR><LF>BCCH
NOM TA RAC # cell #
G
PBCCH PAT MCC MNC
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…… (list of cell information. For details, see Examples.)
<CR><LF>…(enter any character to stop periodical return of the list of
cell information)<CR><LF>
<CR><LF>OK<CR><LF> (For details, see Examples.)
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
"Limited service" or "Searching" may be returned only when the module is unsolicitedly
searching for or deregistering with the network.
8.9.4 Examples
Example 1:
Obtain the parameter range.
AT^SMONG=?
^SMONG: (1),(1-100)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
99
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
OK
Example 2:
Obtain the list of cell information.
AT^SMONG
GPRS Monitor
BCCH G PBCCH PAT MCC MNC NOM TA
# cell #
RAC
00
552
1 -
6 460
09
1 255
OK
Example 3:
Periodically obtain the list of cell information.
AT^SMONG=1,1
GPRS Monitor
BCCH G PBCCH PAT MCC MNC NOM TA
# cell #
RAC
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
-
-
-
-
-
-
-
-
-
-
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
09
09
09
09
09
09
09
09
09
09
1
1
1
1
1
1
1
1
1
1
255
00
00
255
255
255
255
255
255
255
255
255
00
00
00
00
00
00
00
00
BCCH G PBCCH PAT MCC MNC NOM TA
# cell #
RAC
552 1
552 1
-
-
6 460
6 460
09
09
1
1
255
255
00
00
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
100
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
-
-
-
-
-
-
-
-
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
09
09
09
09
09
09
09
09
1
1
1
1
1
1
1
1
255
00
00
255
255
255
255
255
255
255
00
00
00
00
00
00
BCCH G PBCCH PAT MCC MNC NOM TA
# cell #
RAC
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
552 1
-
-
-
-
-
-
-
-
-
-
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
6 460
09
09
09
09
09
09
09
09
09
09
1
1
1
1
1
1
1
1
1
1
255
255
255
255
255
255
255
255
255
255
00
00
00
00
00
00
00
00
00
00
e (enter the letter e to stop information return and an echo is returned)
OK
8.10 AT^SPLM - Command for Reading the PLMN List
The AT^SPLM command reads the PLMN list.
Huawei Proprietary and Confidential
Issue 02 (2010-11-23)
101
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.10.1 Checking Whether This Command Is Available
Test
AT^SPLM=?
command
Function
Response
Checks whether this command is available.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
8.10.2 Querying the List of Operator Names Saved on the ME
Execution AT^SPLM
command
Function
Response
Queries the list of operator names saved on the ME.
z
In case of successful execution:
<CR><LF>^SPLM: <numericn>,<alphan><CR><LF>
<CR><LF>[^SPLM:…]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<numericn>: indicates an operator in numeric format (for details, see AT+COPS).
<alphan>: indicates an operator in long string format (for details, see AT+COPS).
8.10.3 Examples
Example:
Query the list of operators saved on the ME.
AT^SPLM
^SPLM: “36320”, “DIGICEL”
…<The information is omitted due to its excessive length>
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
102
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.11 AT+CPOL - Command for Setting the List of
Preferred Operators
The AT+CPOL command sets the list of preferred operators.
8.11.1 Checking the Parameter Range Supported by This
Command
Test
AT+CPOL=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CPOL: (list of supported <index>s),(list of supported
<format>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<index>: sequence number of an operator from the list of preferred operators on the
SIM card.
<format>: integer, which indicates the format of operator name.
z
0: operator information <oper> in long string format, which consists of not more
than 16 characters.
z
1: operator information in short string format. Currently, the operator information
in short string format and in long string format has the same meaning.
z
2 (default value): operator information <oper> in numeric format.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
103
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.11.2 Querying the List of Preferred Operators
Read
AT+CPOL?
command
Function
Response
Queries the list of preferred operators.
z
In case of successful execution:
<CR><LF>[+CPOL:<index>,<format>,<operator>]<CR><LF>
<CR><LF> [+CPOL:…]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<operator>: indicates an operator name in numeric format.
8.11.3 Setting the List of Preferred Operators
Write
AT+CPOL=<index>[,<format>,<operator>]
command
Function
Response
Sets the list of preferred operators.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
You can set <format> in AT+CPOL=,<format>.
8.11.4 Examples
Example:
Add a preferred operator.
AT+CPOL=1,2,46000
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
104
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.12 AT^SPLR - Command for Querying Preferred
Operators
The AT^SPLR command queries preferred operators.
8.12.1 Checking the Parameter Range Supported by This
Command
Test
AT^SPLR=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>^SPLR: (list of supported <indexa>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<indexa>: sequence number range supported by the SIM card.
8.12.2 Querying the Current Range of Preferred Operators
Write
AT^SPLR=<index1>[,[index2]]
command
Function
Response
Queries the current status of network registration.
z
In case of successful execution:
<CR><LF>^SPLR:<index1><oper><CR><LF><CR><LF>^SPLR:<inde
x2><oper><CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
The system returns a single record or multiple consecutive records of the list of preferred
operators on the SIM card that are read according to the index. If index1 and index2 are
entered, all records from index1 to index2 (index1 and index2 included) are returned. If index2
is not entered, the single record index1 is returned.
Parameter description
<index1>: start sequence number in the list of preferred operators.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
105
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
<index2>: end sequence number in the list of preferred operators. The value of
<index2> must be larger than that of <index1>. Otherwise, the ERROR is returned.
<oper>: indicates an operator name in numeric format.
8.12.3 Examples
Example:
Read the current range of preferred operators.
AT^SPLR=1,2
^SPLR:1.“46000”
^SPLR:2.“46001”
OK
8.13 AT^SPLW - Command for Writing Preferred
Operators
The AT^SPLW command writes preferred operators.
8.13.1 Checking the Parameter Range Supported by This
Command
Test
AT^SPLW=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>^SPLW: (list of supported <index>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<index>: sequence number of location
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
106
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.13.2 Writing the Information About Preferred Operators
Write
AT^SPLW=<index>[,<oper>]
command
Function
Response
Writes the information about preferred operators.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
z
An operator name is written to the specified location of the list of preferred operators on the
SIM card. If the oper field does not exist, the record of the current index is deleted from the
list.
z
Each piece of oper information can correspond to only one record in the list. Otherwise, the
ERROR is returned.
Parameter description
<oper>: indicates an operator name in numeric format.
8.13.3 Examples
Example:
Write a record into the list of preferred operators.
AT^SPLW=1,46000
OK
8.14 AT+CNUM - Command for Querying Subscriber
Numbers
The AT+CNUM command queries subscriber numbers. This information is stored in
the EFMSISDN file in the DFTelecom directory on the SIM card. If a subscriber
subscribes to different services, the subscriber corresponds to different MSISDNs,
each of which is returned as a single line.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
107
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
8.14.1 Checking Whether This Command Is Available
Test
AT+CNUM=?
command
Function
Response
Checks whether this command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
8.14.2 Querying the MSISDN Related to Subscribers
Execution AT+CNUM
command
Function
Reads the mobile station international ISDN number (MSISDN) related to
subscribers.
z
Response
In case of successful execution:
[+CNUM: [<alpha1>],<number1>,<type1>[,<speed>,<service>[,<itc>]]
[<CR><LF>+CNUM:
[<alpha2>],<number2>,<type2>[,<speed>,<service>
[,<itc>]][...]]<CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<alphax>: subscriber name of the local phone number. The subscriber name is a
string consisting of digits and characters and the used character set is the value set
by +CSCS.
<numberx>: phone number string type that is defined according to the <typex>
format and consists of digits 0–9 and the + symbol.
<typex>: type of the local phone number. An 8-digit address type in integer format.
When <numberx> contains the + symbol, the value of <typex> is 145, indicating an
international phone number. When <numberx> does not contain the + symbol, the
value of <typex> is 129, indicating a phone number of the home country.
<speed>: not supported currently.
z
0: adaptive baud rate
z
7: 9600 bit/s (V.32)
z
71: 9600 bit/s (V.110)
<service>: services related to the phone number, which are not supported currently.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
108
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Network Services
z
0: asynchronous modem 1: synchronous modem
z
z
2: PAD Access (asynchronous)
3: Packet Access (synchronous)
<itc>: information transmission capability, which is not supported currently.
z
0: 3.1 kHz
z
1: UDI
8.14.3 Examples
Example 1:
Query the MSISDN related to subscribers.
Write two local phone numbers onto the SIM card.
AT+CPBS=“ON”
OK
AT+CPBW=1,“13903702769”,145
OK
Query the MSISDN.
AT+CNUM
+CNUM: “”,“+13903702769”,145
OK
Example 2:
Clear the local phone numbers.
AT+CPBS=“ON”
OK
AT+CPBW=1
OK
AT+CNUM
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
109
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9
Commands for Data Services
This chapter describes the AT commands that set and operate data services.
9.1 AT+CGACT - Command for Activating or Deactivating
the PDP Context
After AT+CGACT (command for activating or deactivating the PDP context) is
successfully executed, the MT remains in V.250 command state. If the PDP context is
in request state, the state remains unchanged. When the activation form of this
command is executed, if the MT has not been attached to the GPRS, the MT must
perform GPRS attachment before attempting to activate the specified PDP context. If
<cid> is not specified, all PDP contexts are activated or deactivated.
9.1.1 Querying the Supported Status of PDP Context
Test
AT+CGACT=?
command
Function
Response
Queries the supported status of PDP context.
z
In case of successful execution:
<CR><LF>+CGACT: (list of supported <state>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<state>: numeric parameter, which indicates the activation state of the PDP context.
0: deactivation
1: activation
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
110
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.1.2 Reading the Activation State of the PDP Context
Read
AT+CGACT?
command
Function
Response
Reads the activation state of the specified PDP context.
z
In case of successful execution:
[<CR><LF>+CGACT:<cid><state><CR><LF>
[<CR><LF>+CGACT:<cid><state><CR><LF>]]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<cid>: numeric parameter; value range: 1–3; this parameter indicates the PDP
context identification. For a TE-MT interface, this parameter is local and can be used
for other commands related to the PDP context.
9.1.3 Setting the Activation State of the PDP Context
Write
AT+CGACT=[<state>[,<cid>[,<cid>]]]
command
Function
Response
Sets the status of the PDP context.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME
ERROR: <err><CR><LF>
Note:
z
To hang up the dialing of a data service through AT commands, first send AT+CGACT to
deactivate the PDP context, and then send ATH to hang up the data service.
z
In this section, AT+CGACT= is equivalent to AT+CGACT=1 (<state>=1).
9.1.4 Examples
Example 1:
Define the PDP context.
AT+CGDCONT=1,“IP”,“1234”
OK
Read the activation state of the PDP context.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
111
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
AT+CGACT?
+CGACT: 1,0
OK
Example 2:
Set to activate the PDP context.
AT+CGACT=1,1
OK
Read the activation state of the PDP context.
AT+CGACT?
+CGACT:1,1
OK
9.2 AT+CGATT - Command for Attaching the MT to or
Detaching the MT from the GPRS Service
The AT+CGATT command attaches the MT to the GPRS service or detaches the MT
from the GPRS service. After this command is successfully executed, the MT
remains in V.250 command state. If the MT is in request state, this command is
ignored and OK is returned. When the attachment state is changed to the
detachment state, all PDP contexts are deactivated automatically.
9.2.1 Checking the Supported GPRS Service State
Test
AT+CGATT=?
command
Function
Response
Checks the supported GPRS service state.
z
In case of successful execution:
<CR><LF>+CGATT: (list of supported <state>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<state>: character type parameter, which indicates the GPRS attachment state.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
112
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
0: detachment state
1: attachment state
9.2.2 Querying the Current GPRS Service State
Read
AT+CGATT?
command
Function
Response
Queries the current GPRS service state.
z
In case of successful execution:
<CR><LF>+CGATT: <state><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of failed command execution: <CR><LF>+CME
ERROR: <err><CR><LF>
9.2.3 Setting the GPRS Service State
Write
AT+CGATT=[<state>]
command
Function
Response
Sets the GPRS service state.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
In this section, AT+CGATT= is equivalent to AT+CGATT=1 (<state>=1).
9.2.4 Examples
Example 1:
Read the GPRS attachment state.
AT+CGATT?
+CGATT: 1
OK
Example 2:
Set the GPRS detachment state.
AT+CGATT=0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
113
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
OK
9.3 AT+CGEREP - Command for Reporting GPRS Events
The AT+CGEREP command sets the unsolicited reporting of GPRS events. When
certain events occur on the GPRS MT or the network, this command can enable or
disable the sending of URC+CGEV: XXX from the MT to the TE. For the +CGEV
reporting command, refer to section 9.11 .
9.3.1 Checking the Supported GPRS Event Reporting Mode
Test
AT+CGEREP=?
command
Function
Response
Checks the supported GPRS event reporting mode.
z
In case of successful execution:
<CR><LF>+CGEREP: (list of <mode>s),(list of supported
<bfr>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<mode>: numeric parameter.
z
0: buffers the URCs on the MT. If the buffer is full, the oldest URC is discarded
and URCs are not sent to the TE.
z
1: When the MT-TE link is reserved (for example, in online data mode), URCs
are discarded. Otherwise, URCs are directly forwarded to the TE.
z
2: When the MT-TE link is reserved (for example, in online data mode), URCs
are buffered. After the MT-TE link is available, all URCs are sent to the TE.
Otherwise, URCs are directly forwarded to the TE. If the buffer is full, the oldest
URC is discarded.
<bfr>: numeric parameter.
z
0: When the entered value of the <mode> parameter is 1 or 2, the URC buffer
defined by this command is cleared.
z
1: When the entered value of the <mode> parameter is 1 or 2, the URC buffer
defined by this command is fully sent to the TE (OK is returned before sending)
and the buffer is cleared.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
114
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.3.2 Reading the GPRS Event Reporting Mode
Read
AT+CGEREP?
command
Function
Response
Reads the GPRS event reporting mode.
z
In case of successful execution: <CR><LF>+CGEREP:
<mode>,<bfr><CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
9.3.3 Setting the GPRS Event Reporting Mode
Write
AT+CGEREP=[<mode>[,<bfr>]]
command
Function
Response
Sets the GPRS event reporting mode.
z
In case of successful execution: <CR><LF> OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Unsolicited event reporting
URC 1
+CGEV: REJECT <PDP_type>, <PDP_addr>
The MT disables the reporting of +CRING to the TE. The request for activating the
PDP context on the network is automatically rejected.
URC 2
+CGEV: NW REACT <PDP_type>, <PDP_addr>, [<cid>]
The network requests for re-activating the PDP context. The <cid> parameter is used
to re-activate the PDP context.
URC 3
+CGEV: NW DEACT <PDP_type>, <PDP_addr>, [<cid>]
The network requests for deactivating the PDP context. The <cid> parameter is used
to activate the PDP context.
URC 4
+CGEV: MT DEACT <PDP_type>, <PDP_addr>, [<cid>]
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
115
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
The MT requests for deactivating the PDP context. The <cid> parameter is used to
activate the PDP context.
URC 5
+CGEV: NW DETACH
The network requests for GPRS detachment.
URC 6
+CGEV: MT DETACH
The MT requests for GPRS detachment.
URC 7
+CGEV: NW CLASS <class>
The network requests for changing the MS class and reports the class with the
highest priority.
URC 8
+CGEV: MT CLASS <class>
The MT requests for changing the MS class and reports the class with the highest
priority.
Parameter description
<class>: character type parameter, which indicates the GPRS class.
“B” class B
For details about the <PDP_type>, <PDP_addr>, and <cid> parameters, see the
parameter description of the AT+CGDCONT command.
9.4 AT+CGDATA - Command for Entering the Data Mode
The AT+CGDATA command sets whether the MT uses one or more GPRS PDP
types, performs related operations, and establishes communication between the TE
and network.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
116
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.4.1 Querying the Layer-2 Protocol Supported Between the TE
and MT
Test
AT+CGDATA=?
command
Function
Response
Checks the layer-2 protocol supported between the TE and MT.
z
In case of successful execution:
<CR><LF>+CGDATA: (list of supported <L2P>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<L2P >: character type parameter, which indicates the layer-2 protocol used between
the TE and MT. The default value is PPP.
“PPP” layer-2 protocol
9.4.2 Establishing Communication Between the TE and Network
Write
AT+CGDATA=[<L2P>[,<cid>[,<cid>]]]
command
Function
Response
Establishes communication between the TE and network.
z
In case of successful execution:
<CR><LF>CONNECT<CR><LF>
z
In case of failed communication establishment: <CR><LF>NO
CARRIER<CR><LF>
z
In case of failed command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<cid>: numeric parameter, which indicates the index value of the PDP context; value
range: 1–3. Other commands related to the PDP context can invoke the saved
settings through this index value. For a TE-MT interface, this parameter is local and
can be used for other commands related to the PDP context. If <cid> is not specified
or the defined PDP context is not matched, the MT activates the PDP context of IP
type. Other parameters retain the default values (for details, see AT+CGDCONT,
AT+CGQREQ, and AT+CGQMIN).
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
117
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.4.3 Examples
Example:
Define the PDP context.
AT+CGDCONT=1,“IP”,“1234”
OK
Query the defined PDP context.
AT+CGDCONT?
+CGDCONT:1,“IP”,“1234”,“0.0.0.0”,0,0
OK
Establish the communication.
AT+CGDATA=“PPP”,1
CONNECT
Run +++ to quit the data mode and enter the command mode.
9.5 AT+CGDCONT - Command for Defining the PDP
Context
The AT+CGDCONT command defines the PDP context. The MT locally saves a
group of PDP contexts with <cid> as the index. Each record of the saved setting
environment contains a group of PDP related parameters. The write command saves
the group of PDP related parameters in the PDP contexts that use <cid> as the index.
Each PDP context is initially undefined. After the write command saves a group of
parameters in a PDP context, the PDP context is defined. The number of defined
PDP contexts that can be saved at the same time is determined by the value range of
<cid>.
If AT+CGDCONT= <cid> is sent, all parameters in the PDP contexts indicated by
<cid> are cleared. In this case, the PDP contexts become undefined again.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
118
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.5.1 Querying the Range of PDP Related Parameters
Test
AT+CGDCONT=?
command
Function
Response
Returns the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CGDCONT: (range of supported
<cid>s),<PDP_type>,,,(list of supported<d_comp>s),(list of
supported<h_homp>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<cid>: numeric parameter, which indicates the index value of the PDP context. Other
commands related to the PDP context can invoke the saved settings through this
index value. For a TE-MT interface, this parameter is local and can be used for other
commands related to the PDP context.
Value range: 1–3
<PDP_type>: character type parameter, which indicates the type of packet exchange
protocol.
“IP”: Internet Protocol (IP)
<APN>: character type parameter, which indicates the domain name of the access
point that connects to the GGSN or external networks.
<PDP_addr>: character type parameter. This parameter identifies the address that is
assigned to the specified PDP context. If the value of this parameter is null or omitted,
the TE provides other address during the PDP startup process. Otherwise, a dynamic
address must be requested. Even if an address is assigned during PDP
establishment, null is returned after the read command is sent. To read this address,
run AT+CGPADDR.
<d_comp>: numeric parameter, which controls the data compression of PDP
(available for SNDCP only. For details, see the 3GPP TS 44.065.)
0 (default value): no compression
<h_comp>: numeric parameter, which controls the head compression of PDP (for
details, see the 3GPP TS 44.065 and 3GPP TS 25.323).
0 (default value): no compression
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
119
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.5.2 Reading the Status of the PDP Context
Read
AT+CGDCONT?
command
Function
Response
Reads the status of the PDP context.
z
In case of successful execution:
[<CR><LF>+CGDCONT:<cid>,<PDP_type>,<APN>,<PDP_addr>,<d
_comp>,<h_comp>
[<CR><LF>+CGDCONT: …<CR><LF>]]<CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
9.5.3 Setting the Status of the PDP Context
Write
AT+CGDCONT=[<cid>[,<PDP_type>[,<APN>[,<PDP_addr>]]]]
command
Function
Response
Sets the status of the PDP context.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
9.5.4 Examples
Example:
Define the PDP context.
AT+CGDCONT=1,“IP”,“1234”
OK
Query the defined PDP context.
AT+CGDCONT?
+CGDCONT:1,“IP”,“1234”,“”,0,0
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
120
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.6 AT+CGPADDR - Command for Reading the PDP
Address
The AT+CGPADDR command reads the PDP address. This command can return the
PDP address list of the specified PDP context identification <cid>. If <cid> is omitted,
the addresses of all defined PDP contexts are returned.
9.6.1 Querying the Supported PDP Index Value
Test
AT+CGPADDR=?
command
Function
Response
Checks the parameter range supported by this command.
z
In case of successful execution:
[<CR><LF>+CGPADDR: (list of supported <cid>s) <CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<cid>: numeric parameter, which indicates the index value of the PDP context; value
range: 1–3. Other commands related to the PDP context can invoke the saved
settings through this index value. For a TE-MT interface, this parameter is local and
can be used for other commands related to the PDP context.
<PDP_addr>: character type parameter, which indicates the PDP address. The PDP
address can be a static or dynamic address.
9.6.2 Reading the PDP Address List of the Specified PDP Context
This command reads the PDP address list of the specified PDP context.
Write
AT+CGPADDR=[<cid>[,<cid>]]
command
Function
Response
Reads the PDP address list of the specified PDP context.
z
In case of successful execution:
[<CR><LF>+CGPADDR: <cid>,<PDP_address><CR><LF>
[<CR><LF>+CGPADDR: <cid>,<PDP_address><CR><LF>]]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
121
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.6.3 Examples
Example:
Define the PDP context.
AT+CGDCONT=1,“IP”,“1234”
OK
Activate the PDP context.
AT+CGACT=1,1
OK
Read the PDP address.
AT+CGPADDR=1
+CGPADDR:1,“192.168.50.64”
OK
9.7 AT+CGQMIN - Command for Setting the Acceptable
Minimum Quality of Service Profile
The AT+CGQMIN command allows the TE to specify an acceptable minimum quality
of service (QoS). This profile is verified by the MT and is compared with the
negotiation profile returned by the “PDP context activation” message.
The write command can specify a profile for the context. This profile is identified by
the (local) context identification parameter <cid>. If AT+CGQMIN= <cid> is sent, the
defined QoS of <cid> is deleted.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
122
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.7.1 Querying the Supported QoS Parameter Range
Test
AT+CGQMIN=?
command
Function
Response
Queries the supported QoS parameter range.
z
In case of successful execution:
[<CR><LF>+CGQMIN: <PDP_type>,(list of
supported<precedengce>s),(list of supported <delay>s),(list of
supported <reliability>s),(list of supported <peak>s),(list of supported
<mean>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<cid>: numeric parameter, which indicates the index value of the PDP context; value
range: 1–3. For a TE-MT interface, this parameter is local and can be used for other
commands related to the PDP context.
<precedence>: numeric parameter, which specifies the priority level.
z
0 (default value): network customization parameter
z
1: higher than priority levels 2 and 3; implements service commitments with high
priority.
z
2: higher than priority level 3; implements service commitments with medium
priority.
z
3: implements service commitments with low priority.
<delay>: numeric parameter, which indicates the delay level; value range: 0–4; this
parameter defines the delay of SDU transmission on the GPRS network.
0 (default value): network customization parameter
When the size of SDU is 128 octets:
Delay Level
Average
95 Percentile
Transmission Delay
1(Predictive)
2(Predictive)
3(Predictive)
4(Best Effort)
<0.5
<1.5
<25
<5
<50
<250
Unspecified
When the size of SDU is 1024 octets:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
123
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
95 Percentile
Delay Level
Average
Transmission Delay
1(Predictive)
2(Predictive)
3(Predictive)
4(Best Effort)
<0.5
<1.5
<25
<5
<50
<250
Unspecified
<reliability>: integer, which specifies the reliability level of processing uncommon data
loss.
0 (default value): network customization parameter
1: cannot process non-real-time services and error-sensitive applications for data
loss
2: can process non-real-time services and error-sensitive applications for data loss
3: can process non-real-time services and error-sensitive applications for data loss,
GMM/SM, and SMS
4: can process real-time services and error-sensitive applications for data loss
5: can process real-time services and error-sensitive applications for data loss
<peak>: integer, which specifies the peak throughput level (octets/s).
0 (default value): network customization parameter
1: maximum 1000 (8 Kbit/s)
2: maximum 2000 (16 Kbit/s)
3: maximum 4000 (32 Kbit/s)
4: maximum 8000 (64 Kbit/s)
5: maximum 16000 (128 Kbit/s)
6: maximum 32000 (256 Kbit/s)
7: maximum 64000 (512 Kbit/s)
8: maximum 128000 (1024 Kbit/s)
9: maximum 256000 (2048 Kbit/s)
<PDP_type>: type of packet data protocol. String parameter
“IP”
<mean>: integer, which indicates the average throughput level.
0 (default value): network customization parameter
1: 100 (about 0.22 bit/s)
2: 200 (about 0.44 bit/s)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
124
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
3: 500 (about 1.11 bit/s)
4: 1000 (about 2.2 bit/s)
5: 2000 (about 4.4 bit/s)
6: 5000 (about 11.1 bit/s)
7: 10000 (about 22 bit/s)
8: 20000 (about 44 bit/s)
9: 50000 (about 111 bit/s)
10: 100000 (about 0.22 Kbit/s)
11: 200000 (about 0.44 Kbit/s)
12: 500000 (about 1.11 Kbit/s)
13: 1000000 (about 2.2 Kbit/s)
14: 2000000 (about 4.4 Kbit/s)
15: 5000000 (about 11.1 Kbit/s)
16: 10000000 (about 22 Kbit/s)
17: 20000000 (about 44 Kbit/s)
18: 50000000 (about 111 Kbit/s)
31: maximum throughput (best effort)
9.7.2 Querying the Minimum QoS of All PDP Contexts
Read
AT+CGQMIN?
command
Function
Response
Queries the minimum QoS of all PDP contexts.
z
In case of successful execution:
[<CR><LF>+CGQMIN:
<cid>,<precedengce>,<delay>,<reliability>,<peak>,<mean><CR><LF>
[<CR><LF> +CGQMIN: …<CR><LF>]]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
125
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.7.3 Setting the Minimum QoS of a PDP Context
Write
command
AT+CGQMIN=[<cid>[,<precedence>[,<delay>[,<reliability>[,<peak>[,<me
an>]]]]]]
Function
Response
Sets the minimum QoS of a PDP context.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
If no parameters of this command are set, AT+CGQMIN= considers the previously set values
valid for various parameters.
9.8 AT+CGQREQ - Command for Setting the Requested
QoS Profile
The AT+CGQREQ command allows the TE to specify a QoS level when the MT
sends the “PDP context activation request” message to the network. The write
command can specify a profile for the context. This profile is identified by the (local)
context identification parameter <cid>. If AT+CGQREQ= <cid> is sent, the defined
QoS of <cid> is deleted.
9.8.1 Checking the Parameter Range Supported by the Command
Test
AT+CGQREQ=?
command
Function
Response
Queries the parameter range supported by the command.
z
In case of successful execution:
<CR><LF>+CGQREQ: <PDP_type>,(list of supported
<precedengce>s),( list of supported <delay>s), (list of supported
<reliability>s), (list of supported <peak>s), (list of supported
<mean>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
126
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
Parameter description
<cid>: numeric parameter, which indicates the index value of the PDP context; value
range: 1–3. For a TE-MT interface, this parameter is local and can be used for other
commands related to the PDP context.
<precedence>: numeric parameter, which specifies the priority level.
z
0 (default value): network customization parameter
z
1: higher than priority levels 2 and 3; implements service commitments with high
priority.
z
2: higher than priority level 3; implements service commitments with medium
priority.
z
3: implements service commitments with low priority.
<delay>: numeric parameter, which indicates the delay level; value range: 0–4; this
parameter defines the delay of SDU transmission on the GPRS network.
0 (default value): network customization parameter
When the size of SDU is 128 octets:
Delay Level
1(Predictive)
2(Predictive)
3(Predictive)
4(Best Effort)
Average Transmission Delay
95 Percentile
<1.5
<0.5
<5
<25
<50
<250
Unspecified
When the size of SDU is 1024 octets:
Delay Level
1(Predictive)
2(Predictive)
3(Predictive)
4(Best Effort)
Average Transmission Delay
95 Percentile
<1.5
<0.5
<5
<25
<50
<250
Unspecified
<reliability>: integer, which specifies the reliability level of processing uncommon data
loss.
z
0 (default value): network customization parameter
z
1: cannot process non-real-time services and error-sensitive applications for
data loss
z
2: can process non-real-time services and error-sensitive applications for data
loss
z
3: can process non-real-time services and error-sensitive applications for data
loss, GMM/SM, and SMS
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
127
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
z
4: can process real-time services and error-sensitive applications for data loss
5: can process real-time services and error-sensitive applications for data loss
<peak>: integer, which specifies the peak throughput level (octets/s).
0 (default value): network customization parameter
1: maximum 1000 (8 Kbit/s)
z
z
z
z
z
z
z
z
z
z
z
z
2: maximum 2000 (16 Kbit/s)
3: maximum 4000 (32 Kbit/s)
4: maximum 8000 (64 Kbit/s)
5: maximum 16000 (128 Kbit/s)
6: maximum 32000 (256 Kbit/s)
7: maximum 64000 (512 Kbit/s)
8: maximum 128000 (1024 Kbit/s)
9: maximum 256000 (2048 Kbit/s)
<PDP_type>: type of packet data protocol. String parameter
“IP”
<mean>: integer, which indicates the average throughput level.
z
0 (default value): network customization parameter
z
1: 100 (about 0.22 bit/s)
z
2: 200 (about 0.44 bit/s)
z
3: 500 (about 1.11 bit/s)
z
4: 1000 (about 2.2 bit/s)
z
5: 2000 (about 4.4 bit/s)
z
6: 5000 (about 11.1 bit/s)
z
7: 10000 (about 22 bit/s)
z
8: 20000 (about 44 bit/s)
z
9: 50000 (about 111 bit/s)
z
10: 100000 (about 0.22 Kbit/s)
z
11: 200000 (about 0.44 Kbit/s)
z
12: 500000 (about 1.11 Kbit/s)
z
13: 1000000 (about 2.2 Kbit/s)
z
14: 2000000 (about 4.4 Kbit/s)
z
15: 5000000 (about 11.1 Kbit/s)
z
16: 10000000 (about 22 Kbit/s)
z
17: 20000000 (about 44 Kbit/s)
z
18: 50000000 (about 111 Kbit/s)
z
31: maximum throughput (best effort)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
128
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.8.2 Querying All QoS Levels Specified by the TE
Read
AT+CGQREQ?
command
Function
Queries all QoS levels specified by the TE when the MT sends the “PDP
context activation request” message to the network.
z
Response
In case of successful execution:
[<CR><LF>+CGQREQ:
<cid>,<precedengce>,<delay>,<reliability>,<peak>,<mean><CR><LF>
[<CR><LF> +CGQREQ: …<CR><LF>]]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
9.8.3 Setting the QoS of a PDP Context
Write
comm
and
AT+CGQREQ=[<cid>[,<precedence>[,<delay>[,<reliability>[,<peak>[,<mean
>]]]]]]
Functi Sets the QoS of a PDP context.
on
z
Respo
nse
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Note:
If no parameters of this command are set, AT+CGQREQ= considers the previously set values
valid for various parameters.
9.9 AT+CGREG - Command for Setting Whether to Report
the GPRS Network Registration Status
The AT+CGREG command sets the unsolicited reporting upon change of the GPRS
registration status.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
129
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.9.1 Checking the Parameter Range Supported by this Command
Test
AT+CGREG=?
command
Function
Response
Checks the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CGREG:(list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<n>: numeric parameter.
z
0 (default value): disables the URC
z
1: enables the URC“+CGREG:<stat>”
z
2: enables the URC“+CGREG:<stat>[<lac>,<ci>]”
<lac>: Location Area Code (LAC)
<ci>: Cell Identity (CI)
9.9.2 Querying the Parameters Unsolicitedly Reported When the
Current GPRS Registration Status Changes
Read
AT+CGREG?
command
Function
Queries the parameters unsolicitedly reported when the current GPRS
registration status changes.
z
Response
In case of successful execution:
When <n> is not set to 2:
<CR><LF>+CGREG: <n>,<state><CR><LF>
<CR><LF>OK<CR><LF>
When <n> is set to 2:
<CR><LF>+CGREG: <n>,<state>,<lac>,<ci><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
130
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
Parameter description
<stat>: numeric parameter, GPRS registration status.
z
0: has not been registered and the ME does not search for a new network
currently. The ME is in GMM-NULL or GMM-DEREGISTERED-INITIATED state.
The GPRS service is disabled and the subscriber can request the ME to attach
to the GPRS.
z
z
1: has been registered with the local network.
2: has not been registered but the ME is searching for a new network. The ME is
in GMM-NULL or GMM-DEREGISTERED-INITIATED state. The GPRS service
is enabled but no available PLMN exists. After an available PLMN exists, the ME
immediately attaches to the GPRS.
z
3: Registration is rejected. The GPRS service is disabled and the ME cannot be
attached to the GPRS.
z
z
4: unknown.
5: has been registered with the roaming network.
9.9.3 Setting the Parameters Unsolicitedly Reported When the
GPRS Registration Status Changes
Write
AT+CGREG=[<n>]
command
Function
Sets the parameters unsolicitedly reported when the GPRS
registration status changes.
z
Response
In case of successful execution: CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command
execution: <CR><LF>+CME ERROR: <err><CR><LF>
Note:
z
When the ME has been attached to the GPRS, if the PLMN reselects a network that does
not support GPRS or a network where the SIM card disables the GPRS application, this
command still returns the current status as follows: <stat>=1 or <stat>=5.
z
URC: When the GPRS network registration status of the ME changes, the following status is
returned:
z
z
+CGREG:<stat>
If no parameters of this command are set, AT+CGREG= considers the previously set values
valid for various parameters.
9.9.4 +CGREG – Command for Reporting Unsolicitedly
URC
<CR><LF>+CGREG: <stat><CR><LF>
Function
Indicates that the GPRS network registration status of the ME is
changed.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
131
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.10 AT+CGSMS - Command for Selecting the MO SMS
Bearer Domain
The AT+CGSMS command sets the MT SMS bearer domain.
9.10.1 Querying the Supported SMS Bearer Domains
Test
AT+CGSMS=?
command
Function
Response
Queries the supported SMS bearer domains.
z
In case of successful execution:
<CR><LF>+CGSMS:(list of supported <service>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<service>: numeric parameter.
z
0: GPRS
z
1: CS domain
z
2: GPRS is preferred (if GPRS is unavailable, CS domain is used.)
z
3 (default value): CS domain is preferred (if CS domain is unavailable, GPRS is
used.)
9.10.2 Reading the Current SMS Bearer Domain
Read
AT+CGSMS?
command
Function
Response
Reads the current settings.
z
In case of successful execution:
<CR><LF>+CGSMS:< service><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
132
Issue 02 (2010-11-23)
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
9.10.3 Setting the SMS Bearer Domain
Write
AT+CGSMS=[<service>]
command
Function
Response
Sets the SMS bearer domain.
z
In case of successful execution: CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
If no parameters of this command are set, AT+CGSMS= considers the previously set values
valid for various parameters.
9.11 +CGEV – Command for Unsolicitedly Reporting
GPRS MT or Network Events
When an event related to the GPRS MT or network occurs, the MT unsolicitedly
reports +CGEV.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
133
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Data Services
URC1 When the MT is forbidden from reporting +CRING to the TE, the PDP context
activation request of the network is automatically rejected.
<CR><LF>+CGEV: REJECT <PDP_type>, <PDP_addr><CR><LF>
URC2 The network requests for re-activating the PDP context.
<CR><LF>+CGEV: NW REACT <PDP_type>, <PDP_addr>,
[<cid>]<CR><LF>
URC3 The network initiates PDP context deactivation.
<CR><LF>+CGEV: NW DEACT <PDP_type>, <PDP_addr>,
[<cid>]<CR><LF>
URC4 The MT initiates PDP context deactivation.
<CR><LF>+CGEV: MT DEACT <PDP_type>, <PDP_addr>,
[<cid>]<CR><LF>
URC5 The network initiates a GPRS detach procedure.
<CR><LF>+CGEV: NW DETACH<CR><LF>
URC6 The MT initiates a GPRS detach procedure.
<CR><LF>+CGEV: MT DETACH<CR><LF>
URC7 When the network initiates an MS class change, the class with the highest
priority is reported.
<CR><LF>+CGEV: NW CLASS <class><CR><LF>
URC8 When the MT initiates an MS class change, the class with the highest priority
is reported.
+CGEV: MT CLASS <class>
Parameter description
<cid> is used to re-activate the PDP context.
<class>: character type, which indicates the GPRS class.
“B” class B
For the description of <PDP_type>, <PDP_addr>, and <cid>, see the parameter
description of the AT+CGDCONT command.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
134
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10
Commands for Internet Services
Internet service, also known as IPSTACK service, means the service of using the
TCP/IP protocol stack embedded in the MG323 to perform data services. The
Internet service allows the host to access the Internet more easily through AT
commands. This chapter describes all the AT commands that are covered by the
TCP/IP protocol.
Currently, the MG323 supports Internet services for the Socket client/server of TCP
and the Socket client of UDP only.
Only the URC mode is supported for Internet services.
The URC mode means that the Internet service process is driven by the URC. The
URC notifies the host of whether the data can be sent or received, whether data
transmission is complete, whether the service can be disabled, and whether an error
occurs.
10.1 AT^SICS - Command for Creating a Connection
Profile
The AT^SICS command can create and edit a connection profile.
10.1.1 Checking Whether the SICS Command Is Available
Test
AT^SICS=?
command
Function
Response
Checks whether the SICS command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command:
<CR><LF>ERROR<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
135
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.1.2 Reading the Information About Connection Profiles
Read
AT^SICS?
command
Function
Response
Reads the status of all connection profiles.
z
In case of successful execution:
<CR><LF>^SICS:<conProfileId>,<conParmTag>,<conParmValue><CR
><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT during command execution:
<CR><LF>+CME ERROR: <err><CR><LF>
Parameter description
<conProfileId>: integer, which identifies a connection profile. Value range: 0–5.
<conParaTag>: string, which indicates the configurable items of a connection profile.
Table 10-1 Parameter names supported by conType in CSD and GPRS0
CSD (Not Supported
Currently)
GPRS0
"conType"
Mandatory
Optional
Optional
/
Mandatory
Optional
Optional
Mandatory
Optional
/
"user" (not supported currently)
"passwd"
"apn"
“inactTO”
Optional
"calledNum" (not supported currently) Mandatory
"dataType" (not supported currently)
"dns1" (not supported currently)
"dns2" (not supported currently)
"alphabet" (not supported currently)
Mandatory
Optional
Optional
Optional
/
Optional
Optional
Optional
<conParmValue>: corresponds to the value of conParmTag.
The meanings of different values of conParmTag and the value range of the
corresponding conParmValue are as follows:
“conType”: connection mode of the profile; string; value options are as follows:
z
“CSD”: data call in circuit switched domain (not supported currently)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
136
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
z
“GPRS0”: GPRS connection
z
“none”: clears connection profiles
“apn”: access point name in character type, which consists of not more than 100
characters (the default value is a null string).
“user”: user name in character type, which consists of not more than 32 characters
(the default value is a null string). This parameter is not supported currently.
“alphabet”: selects the settings for input and output character parameters in the
profile. This parameter is not supported currently.
z
“0” (default value): Character settings depend on AT+CSCS.
z
“1”: international reference alphabet (IRA, 7-bit ASCII)
“passwd”: password in character type, which consists of not more than 32 characters
(the default value is *****).
“calledNum”: called BCD number, which is not supported currently.
“dataType”: data call type, which is not supported currently.
z
“0” : ISDN
z
“1” (default value): analog
“dns1”: preferred DNS server address (IP address in the format of four dot-separated
bytes), which is not supported currently.
“dns2”: alternative DNS server address (IP address in the format of four dot-
separated bytes), which is not supported currently.
10.1.3 Setting the Internet Connection Profile
Write
AT^SICS=<conProfileId>,<conParmTag><conParmValue>
command
Function
Response
Sets all parameters of the internet connection profile.
z
In case of successful execution:
<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Note:
You need to select the internet connection type through the “conType” value of <conParmTag>
before setting other values of <conParmTag> because the value of “conType” determines the
applicability of other values (excluding the <conParmValue-alphabet>) of <conParmTag>. The
<conParmValue-alphabet> parameter can be set either before or after “conType”. The settings
for all parameters of the profile are changeable.
10.1.4 Examples
Example 1:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
137
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Query the status of the connection profile.
AT^SICS?
^SICS: 0,”conType”,”GPRS0”
^SICS: 0,”inactTO”,”20”
^SICS: 0,”alphabet”,”0”
^SICS: 0,”user”,””
^SICS: 0,”passwd”,”*****”
^SICS: 0,”apn”,”1234”
^SICS: 0,”calledNum”,””
^SICS: 1, “conType”,””
^SICS: 2, “conType”,””
^SICS: 3,”conType”,””
^SICS: 4, “conType”,””
^SICS: 5,”conType”,””
OK
Example 2:
Set the connection profile.
AT^SICS=0,conType, GPRS0
is 0 to GPRS0.
Set the value of conType for the profile whose ID
Set the value of apn for the profile whose ID is 0
OK
AT^SICS=0,apn,1234
to 1234.
OK
10.2 AT^SICI - Command for Querying the Connection
Profile
The AT^SICI command queries the status of the connection profile.
Huawei Proprietary and Confidential
Issue 02 (2010-11-23)
138
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.2.1 Querying the ID of the Defined Connection Profile
Test
AT^SICI=?
command
Function
Response
Queries the ID of the defined connection profile.
z
In case of successful execution:
[<CR><LF>^SICI: (list of defined <conProfileId>s)<CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<conProfileId >: numeric parameter, which indicates the identification of the
connection profile. Value range: 0–5.
10.2.2 Querying the Status of the Connection Profile
Read
AT^SICI?
command
Function
Response
Queries the status of the defined connection profile.
z
In case of successful execution:
[<CR><LF>^SICI:
<conProfileId>,<conState>,<numServices>,<conAddr>
[<CR><LF>…]]]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<conState >: numeric parameter, which indicates the status of the internet connection
profile.
z
0: Down state, which indicates that the internet connection is defined but not
established.
z
1: connected state, which indicates that the service is enabled and the internet
connection is initialized. This is not supported currently.
z
2: Up state, which indicates that the Internet connection has been established,
and one or more services are being used. When network signals are temporarily
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
139
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
unavailable, the connection is kept in Up state, unless the user or the network
disconnects the connection.
z
z
3: restricted state, which indicates that the internet connection is established but
is not covered by a network currently. This is not supported currently.
4: disabled state, which indicates that the internet connection is interrupted. This
is not supported currently.
<numServices>: numeric parameter, which indicates the IDs of services that use the
internet connection profile. Value range: 0–9.
<conAddr>: character type parameter, which indicates the local IP address of the
internet connection profile (if no local IP address exists, this parameter is left empty).
10.2.3 Displaying the Status of the Specified Connection Profile
Write
AT^SICI=<conProfiled>
command
Function
Response
Displays the status of the specified connection profile.
z
In case of successful execution:
<CR><LF>^SICI:
<conProfileId>,<conState>,<numService>,<conAddr><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
10.2.4 Examples
Example 1:
Query the ID of the supported connection profile.
AT^SICI=?
^SICI: (0,1)
OK
Example 2:
Query the information about the current connection profile.
AT^SICI?
^SICI: 0,2,1,192.168.50.100
OK
Example 3:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
140
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Display the information about the connection profile whose value of conProfileId is 0.
AT^SICI=0
^SICI: 0,2,1,192.168.50.100
OK
10.3 AT^SISS - Command for Creating the Service Profile
The AT^SISS command sets the service profile.
10.3.1 Checking Whether This Command Is Available
Test
AT^SISS=?
command
Function
Response
Checks whether the AT^SISS command is supported.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
10.3.2 Reading the Status of the Service Profile
Read
AT^SISS?
command
Function
Response
Reads the status of the defined service profile.
z
In case of successful execution:
<CR><LF>^SISS: <srvProfileId>,<srvParmTag>,<srvParmValue>
<CR><LF>^SISS: <srvProfileId>,<srvParmTag>,<srvParmValue>
<CR><LF>…<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<srvProfileId>: numeric parameter, which identifies the service profile. Value range:
0–9.
<srvParmTag>: string parameter. Currently, only the socket service is supported. The
following table lists the values of <srvParmTag>.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
141
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Table 10-2 Values of <srvParmTag>
<srvParmTag>
"srvType"
Mandatory/Optional
Mandatory
Mandatory
Optional
"conId"
"alphabet"(which is not supported
currently)
"address"
"tcpMR"
"tcpOT"
Mandatory
Optional
Optional
<srvParmValue>: value range of the parameter defined by <srvParmTag>. For
details, see the following table.
Table 10-3 Value range of <srvParmValue> and <srvParmTag>
<srvParmTag>
<srvParmValue>
z
“srvType”: service type
Socket
z
Ftp (not supported currently)
z
Http (not supported currently)
z
Smtp (not supported currently)
z
Pop3 (not supported currently)
z
none
"conId": used internet connection profile
Corresponds to <conProfileId>. Value
range: 0–5.
z
"alphabet": selects the settings for input
and output character parameters in the
profile. The selected values are related to
specific profiles. Different profiles have
different alphabets. The alphabet is
changeable regardless of the value of
“srvType” in <srvParnTag>. (which is not
supported currently)
“0”: character settings depend on
“AT+CSCS”. Default value.
z
“1”: international reference alphabet
(IRA, 7-bit ASCII)
z
“address”: character value, which depends
on the URL under Socket.
URL of TCP client of Socket type
“socktcp://‘host’:‘remote tcpPort’”
z
URL of TCP server of Socket type
“socktcp://‘listener’:‘local tcpPort’”
z
URL of UDP client of Socket type
“sockudp://‘host’:‘remote udpPort’”
"tcpMR": integer, which indicates the
maximum number of retransmissions
(MR).
Value range: 1–30; default value: 10.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
142
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
<srvParmValue>
<srvParmTag>
"tcpOT": integer, which indicates the
Value range: 1–6000; default value:
duration (in seconds) to be waited for
disabling a link when a TCP/IP data
packet is not acknowledged.
6000.
10.3.3 Setting the Internet Service Profile
Write
AT^SISS=<srvProfileId>,<srvParmTag><srvParmValue>
command
Function
Sets the value of <csrvParmTag> for the service profile whose ID is
<srvProfileId> to <srvParmValue>.
z
Response
In case of successful execution:
<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Note:
You need to select the internet service type through the “srvType” value of <srvParmTag>
before setting other values of <srvParmTag> because the value of “srvType” determines the
applicability of other values (excluding the <srvParmValue-alphabet>) of <srvParmTag>. The
<srvParmValue-alphabet> parameter can be set either before or after “srvType”. The settings
for all parameters of the profile are changeable.
10.3.4 Examples
Example 1:
Set srvType of the service profile whose ID is 0 to Socket.
AT^SISS=0,srvType, Socket
OK
AT^SISS=0,conId,0
OK
AT^SISS=0,address,”socktcp://listener:8000”
OK
Example 2:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
143
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Query the status of the service profile.
AT^SISS?
^SISS: 0,”srvType”,”Socket”
^SISS: 0,”conId”,”0”
^SISS: 0,”alphabet”,”0”
^SISS: 0,”address”,”socktcp://listener:8000”
^SISS: 0,”tcpMR”,”10”
^SISS: 0,”tcpOT”,”6000”
^SISS: 1,”srvType”,””
^SISS: 2,”srvType”,””
^SISS: 3,”srvType”,””
^SISS: 4,”srvType”,””
^SISS: 5,”srvType”,””
^SISS: 6,”srvType”,””
^SISS: 7,”srvType”,””
^SISS: 8,”srvType”,””
^SISS: 9,”srvType”,””
OK
10.4 AT^SISI - Command for Querying the Service Profile
The AT^SISI command queries the status of the service profile.
10.4.1 Querying the ID of the Defined Service Profile
Test
AT^SISI=?
command
Function
Response
Queries the ID of the defined service profile.
z
In case of successful execution:
[<CR><LF>^SISI: (list of defined <srvProfileId>s)<CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
144
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Parameter description
<srvProfileId>: numeric parameter, which indicates the identification of the service
profile. Value range: 0–9.
10.4.2 Querying the Status of the Service Profile
Read
AT^SISI?
command
Function
Response
Queries the status of the defined service profile.
z
In case of successful execution:
[<CR><LF>^SISI:
<srvProfileId>,<srvState>,<rxCount>,<txCount>,<ackData>,<unackDat
a>
[<CR><LF>^SISI: ...]] <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
< srvState >: numeric parameter, which indicates the status of the internet service
profile.
z
2: allocated
z
3: connecting (which is not supported currently)
z
4: up
z
5: closing (The module goes into this state only when the other terminal of the
connection disconnects the connection and local data has not been read.)
z
6: down (which is not supported currently)
<rxCount>: numeric parameter, which indicates the number of bits received by
AT^SISR after the link is successfully established.
<txCount>: numeric parameter, which indicates the number of bits sent by AT^SISW
after the link is successfully established.
<ackData>: numeric parameter, which indicates the number of data bytes that have
been sent and acknowledged by the TCP layer.
<unackData>: numeric parameter, which indicates the number of data bytes that
have been sent but have not been acknowledged by the TCP layer. When the value
of this parameter is 0, it indicates that the data has been fully sent and acknowledged.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
145
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.4.3 Displaying the Status of the Specified Service Profile
Write
AT^SISI=<srvProfileId>
command
Function
Response
Queries the information about a service profile.
z
In case of successful execution:
<CR><LF>^SISI:<srvProfileId>,<srvState>,<rxCount>,<txCount>,<ac
kData>, <unackData><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
10.4.4 Examples
Example 1:
Query the value of srvProfileId for the defined profile.
AT^SISI=?
^SISI: (0,1,2)
OK
Example 2:
Query the information about all defined service profiles.
AT^SISI?
^SISI: 0,3,0,0,0,0
^SISI: 1,4,10,0,0,0
^SISI: 1,4,0,10,0,0
OK
Example 3:
Query the information about the service profile whose value of srvProfileId is 1.
AT^SISI=1
^SISI: 1,4,10,0,0,0
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
146
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.5 AT^SISO - Command for Starting Internet Services
This command starts a specified Internet service.
10.5.1 Checking Whether This Command Is Available
Test
AT^SISO=?
command
Function
Response
Returns the result of whether this command is available.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
10.5.2 Querying the Open Status of All Services
Read
AT^SISO?
command
Function
Response
Reads the open status of all services.
z
In case of successful execution:
<CR><LF>^SISO:
<srvProfileId>,<srvType>,<srvState>,<socketState>,<rxCount>,
<txCount>,<locAddr>,<remAddr>
[<CR><LF>^SISO: ...]] <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<srvProfileId>: numeric parameter, which indicates the ID of the internet service
profile. 0–9
<srvType>: service type
z
Socket
z
Ftp (not supported currently)
z
Http (not supported currently)
z
Smtp (not supported currently)
z
Pop3 (not supported currently)
z
none
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
147
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
< srvState >: numeric parameter, which indicates the status of internet services.
z
2: allocated
z
3: connecting (not supported temporarily)
z
4: up
z
5: closing (not supported temporarily)
z
6: down (not supported temporarily)
<socketstate>: identification of socket status.
z
1: No socket is allocated.
z
2: client socket
z
3: listener socket
z
4: server socket
<rxCount>: numeric parameter, which indicates the number of bits received by
AT^SISR after the link is successfully established.
<txCount>: numeric parameter, which indicates the number of bits sent by AT^SISW
after the link is successfully established.
<locAddr>: local IP address and TCP port that are used recently.
<remAddr>: remote IP address and TCP port.
10.5.3 Starting a Specified Internet Service
Write
AT^SISO=<srvProfileId>
command
Function
Response
Starts an internet service.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Note:
z
2G network does not support concurrent voice calls and data services. Therefore, "ERROR"
will be returned if this command is run during a call.
z
A maximum of eight services can be active at the same time.
10.5.4 Examples
Example 1:
Enable service 0.
AT^SISO=0
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
148
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Example 2:
Query the enabling status of all services.
AT^SISO?
^SISO: 0,Socket,3,3,0,0,192.168.50.25:8000,0.0.0.0
OK
10.6 AT^SISC - Command for Stopping Internet Services
This command stops a specified Internet service.
10.6.1 Checking Whether This Command Is Available
Test
AT^SISC=?
command
Function
Response
Checks whether this command is available.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
10.6.2 Stopping a Specified Internet Service
Write
AT^SISC=<svrProfileId>
command
Function
Response
Stops the service whose ID is <svrProfileId>.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<srvProfileId>: numeric parameter, which indicates the identification of the internet
service profile. Value range: 0–9.
10.6.3 Examples
Example 1:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
149
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Stop the internet service whose ID is 0.
AT^SISC=0
OK
10.7 AT^SISW - Command for Writing Data for Internet
Services
The AT^SISW command uploads data to the upper layer from the internal buffer or
queries the number of data bytes that have been sent but have not been
acknowledged by the TCP layer. The unsolicited reporting command notifies the
upper layer that the data can be written.
10.7.1 Checking Whether This Command Is Available
Test
AT^SISW=?
command
Function
Response
Checks whether this command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
10.7.2 Writing Data to the Buffer of a Service
Write
AT^ SISW=<srvProfileId>,<reqWriteLength>[,<eodFlag>[,<mode>]]
command
Function
Response
Writes data to the buffer of a service.
z
In case of successful execution:
<CR><LF>^SISW: < srvProfileId >,<reqWriteLength>[,<unackData>]
<CR><LF>(Enter the data to be written but the data is not
displayed.)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Parameter description
<srvProfileId>: numeric parameter, which indicates the identification of the internet
service profile. Value range: 0–9.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
150
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
<reqWriteLength>: integer parameter, which specifies the length of data bytes to be
written by ^SISW. Value range: 0–1500.
When the value is 0, if the TCP protocol is used, you can query the <unackdata>
parameter that is not acknowledged by the TCP layer; if the UDP protocol is used, it
indicates that an empty UDP packet is sent.
If the socket service uses the UPD protocol, it is recommened that each UPD packet
limits 1460 bytes of data, otherwise the unsolicitely report "^SIS: < srvProfileId >, 0, 9,
The supplied buffer was too small / large" may occur.
<eodFlag>: flag of data tail identification. (Not supported currently)
z
0 (default value): No data tail exists and other data is sent directly.
z
1: data tail.
<mode>: controls the mode of sending data (not supported currently).
z
0 (default value): binary mode
z
1: interactive text mode
<cnfWritetLength>: integer parameter, which confirms the number of data bytes to be
sent in the internet service whose ID is <srvProfileId>. Currently,
<cnfWritetLength> is equivalent to <reqWriteLength>. Value range: 0–1500.
<unackData>: number of data bytes that have been sent but have not been
acknowledged by the TCP layer.
10.7.3 ^SISW - Command for Reporting Unsolicitedly
URC
<CR><LF>^SISW:<srvProfileId><urcCauseId>[,<unackData>]<CR><LF>
Function The ^SISR command (command for unsolicitedly reporting data) notifies
the upper layer that the service is established and data can be written.
Note:
When a non-monitored Internet service is successfully enabled, ^SISSW is reported.
Parameter description
<urcCauseId>: integer parameter.
1: The service is ready for receiving new user data.
10.7.4 Examples
Example 1:
Check whether the command is available.
AT^SISW=?
OK
Example 2:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
151
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
Write 20 characters.
Precondition: The service has been established and successfully enabled.
AT^SISW=0,20
^SISW: 0,20,20
The unsolicitedly reported information, which
prompts the user to enter 20 characters.
<The user enters 20 characters here>
OK
10.8 AT^SISR - Command for Internet Services to Read
Data
The AT^SISR command reads data out from the service buffer.
10.8.1 Checking Whether the AT^SISR Command Is Available
Test
AT^SISR=?
command
Function
Response
Checks whether this command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
152
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.8.2 Reading Data Out From the Buffer of an Internet Service
Write
AT^SISR=<srvProfileId>,<reqReadLength>
command
Function
Response
Reads data out from the buffer of an internet service.
z
In case of successful execution:
z
When the buffer contains data:
<CR><LF>^SISR:
<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>]
<CR><LF>……(Returns the read data)<CR><LF>
<CR><LF>OK<CR><LF>
z
When the buffer contains no data or the length of the read data is 0:
<CR><LF>^SISR:
<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>]<CR><LF
>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Note:
The buffer for the SISR command can store a maximum of 1500 bytes of data. If a UDP packet
contains more than 1500 bytes of data, the extra part will be discarded.
Parameter description
<srvProfileId>: integer parameter, which indicates the identification of the internet
service profile. Value range: 0–9.
<reqReadLength>: integer parameter, which indicates the data length requested from
the buffer.
z
0: Peek Operator, which queries the number of bytes received by the internal
buffer.
z
1–1500: number of data bytes read by the internet service whose <srvProfileId>
is specified.
z
-2: indicates the data tail. The data is fully transmitted. This value is not
supported currently.
z
-1 (applies to HTTP only): queries the number of available bytes not supported
by the HTTP service. This value is not supported currently.
z
0: indicates that no data is available currently.
z
>0: number of available data bytes. The value range is defined by
<reqReadLength>.
<remainUdpPacketLength>: Integer parameter, which is used when Socket service is
UDP protocol.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
153
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
z
0: indicates all the bytes that are being read from the current UDP data packet.
z
1…(max.data size)-1: indicates that the current UDP data packet has not been
completely read. The displayed value indicates the number of the remaining
bytes.
10.8.3 ^SISR - Command for Reporting Unsolicitedly
URC
<CR><LF>^SISR: <srvProfileId >,<urcCauseId><CR><LF>
Function The ^SISR command (command for unsolicitedly reporting data) notifies
the upper layer that certain data can be read.
URC
<CR><LF>^SISR: 80 percent of the receiving buffer has been
full<CR><LF>
Function The ^SISR command (command for unsolicitedly reporting data) notifies
the upper layer that 80 percent of the receiving buffer has been used.
URC
<CR><LF>^SISR: the receiving buffer has been full<CR><LF>
Function ^SISR command (command for unsolicitedly reporting data) notifies the
upper layer that all the receiving buffer has been used.
Note:
If the buffer is not read or queried by the ^SISR command when data is available, no report will
be submitted to the upper layer when new data arrives.
Parameter description
<urcCauseId>: indicates whether there is data to be read.
z
1: indicates that data is available and can be read by sending the AT^SISR
command.
z
2: indicates that the data transmission has ended (this setting is not supported
currently).
10.8.4 Exmaples
Example:
Read data from the service buffer.
Precondition: The data service connection has been established and successfully
enabled; there is data in the buffer.
AT^SISR=1,25
^SISR: 1,25
Message of MG323 is here.
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
154
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Internet Services
10.9 ^SIS - Command for Unsolicitedly Reporting the
Information About Internet Services
The ^SIS command (URC command) unsolicitedly reports the information about
internet services. Currently, the URC cannot be disabled.
URC
<CR><LF>^SIS: <srvProfileId>,<urcCause>[,
[<urcInfoId>][,<urcInfoText>]]<CR><LF>
Note:
z
This response is unsolicitedly reported, which is set through the AT^SCFG command.
z
When the server receives the socket connection of the client, the <urcInfoId> parameter in
the ^SIS unsolicited reporting indicates the profileid of the service that is automatically
created by the server.
Parameter description
<urcCause>: identification of URC cause.
z
0: indicates an event that occurs when an internet service is enabled or being
used. The event may be error, warning, information element, or note.
z
1: indicates that the service whose Socket listening is enabled is receiving the
connection request sent by the remote client.
z
2: indicates the failure of connecting the introduced Socket service client. Since
no available internet service profile exists, the request sent by the client is
rejected.
<urcInfoId>: identification of information about <urcCause>.
z
0: The service works properly.
z
1–2000: Error; the service is interrupted; enter <srvState>=6(Down).
z
2001–4000: information about service processing
z
4001–6000: Warning; the service is not interrupted.
z
6001–8000: Notes
<urcinfoText>: information about <urcCause>.
When the value of urcCause is 1, urcInfoId actually indicates the profile ID that is dynamically
assigned by the listener to the client request.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
155
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11
Commands for Short Messages
This chapter describes the AT commands related to short messages. Currently, the
MG323 does not support short messages in text mode.
11.1 AT+CMGD - Command for Deleting Short Messages
The AT+CMGD command deletes the short messages that are stored on the
preferred memory<mem1> (for details, see AT+CPMS).
11.1.1 Checking the Parameter Range Supported by the Command
Test
AT+CMGD=?
command
Function
Checks the supported indexes of short messages and deletes the
parameters of short message type.
z
Response
In case of successful execution:
<CR><LF>+CMGD: (list of supported <index>s),(list of supported
<delflag>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
156
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.1.2 Deleting Short Messages
Write
AT++CMGD=<index>[,<delflag>]
command
Function
Response
Deletes the short messages that are stored on the storage media.
z
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS
ERROR: <err><CR><LF>
Note:
When the value of the <delflag> parameter is not 0, the first parameter <index> can be ignored
and executed according to the <delflag> parameter.
Parameter description
<index>: numeric, which indicates the location for storing short messages. The value
range is related to the storage media. The storage media is set by +CPMS. Currently,
only SM is supported.
< delflag >: numeric, which specifies the short messages to be deleted.
z
0 (default value): deletes the short messages that are specified by <index>.
z
1: deletes all the read short messages that are stored on the preferred memory
<mem1>, and retains the unread short messages, sent short messages, and
unsent short messages.
z
2: deletes all the read short messages and sent short messages that are stored
on the preferred memory <mem1>, and retains the unread short messages and
unsent short messages.
z
3: deletes all the read short messages, sent short messages, and unsent short
messages that are stored on the preferred memory <mem1>, and retains the
unread short messages.
z
4: deletes all the short messages that are stored on the preferred memory
<mem1>, including the unread short messages.
11.1.3 Examples
Example:
AT+CMGD=?
+CMGD:(1-255), (0-4)
OK
Check the parameter range.
Delete the first short message.
AT+CMGD=1
OK
AT+CMGD=1, 4
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
157
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
OK
Delete all the short messages that are
stored on the SIM card.
11.2 AT+CMGF - Command for Setting the Format of
Short Messages
The AT+CMGF command sets the format of short messages for the device. The
format follows two modes, that is, the PDU mode and text mode (reserved; not
supported currently), which are determined by the <mode> parameter. For details
about the format of short messages in PDU mode, see the AT+CMGS Command.
11.2.1 Checking the Supported Format of Short Messages
Test
AT+CMGF=?
command
Function
Response
Checks the supported format of short messages.
z
In case of successful execution:
<CR><LF>+CMGF: (list of supported <mode>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<mode>: numeric, which indicates the format of short messages.
z
0 (default value): PDU mode
z
1 text mode (not supported currently)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
158
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.2.2 Reading the Format of Short Messages
Read
AT+CMGF?
command
Function
Response
Reads the current format of short messages.
z
In case of successful execution:
<CR><LF>+CMGF: <mode><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.2.3 Setting the Format of Short Messages
Write
AT+CMGF=<mode>
command
Function
Response
Sets the format of short messages.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Note:
If no parameters of this command are set, AT+CMGF= considers the previously set values
valid for various parameters.
11.2.4 Examples
Example 1:
Set the format of short messages.
AT+CMGF=0
OK
Example 2:
Query the format of short messages.
AT+CMGF?
+CMGF: 0
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
159
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.3 AT+CMGL - Command for Querying the List of Short
Messages
The AT+CMGL command queries the list of short messages that are stored on the
preferred memory <mem1>.
11.3.1 Checking the Supported Status of Short Messages
Test
AT+CMGL=?
command
Function
Response
Returns the status of short messages supported by this command.
z
In case of successful execution:
<CR><LF>+CMGL: (list of supported <stat>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<stat>: string, which indicates the status of short messages. The status is classified
into two types.
1. AT+CMGF=1, that is, when short messages are in Text mode (not supported
currently).
Value
Description
REC UNREAD
REC READ
STO UNSENT
STO SENT
ALL
Unread short messages that are received
Read short messages that are received
Unsent short messages that are stored
Sent short messages that are stored
All short messages
2. AT+CMGF=0, that is, when short messages are in PDU mode.
Value
Description
0
1
2
3
Unread short messages that are received
Read short messages that are received
Unsent short messages that are stored
Sent short messages that are stored
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
160
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
Value
Description
All short messages
4
11.3.2 Reading the List of Short Messages
Write
AT+CMGL[=<stat>]
command
Function
Response
Reads the list of short messages whose status is <stat>.
z
When short messages are in PDU mode (+CMGF=0) and the
command is successfully executed:
z
[<CR><LF>+CMGL:
<index>,<stat>,[<reserved>],<length><CR><LF><pdu><CR><LF
>
[<CR><LF>+CMGL:<index>,<stat>,[<reserved>],<length><CR><
LF><pdu>[...]]<CR><LF>]
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Note:
If no parameters of this command are set, AT+CMGL is equivalent to AT+CMGL=0.
Parameter description
Table 11-1 Structure of <pdu>
[<SCA>]
<sc_len>
<type_addr>
<numbers>
TPDU
In the preceding table, for the <SCA>, <sc_len>, <type_addr>, and <numbers>
fields, see the AT+CMGS Command.
For a sent short message, the data structure of TPDU has the same definition as that
described in the section AT+CMGS Command. For a received short message, the
data structure of TPDU is as follows:
Table 11-2 Data structure of TPDU
1 Oct
2 Oct to 1 Oct 1 Oct 7 Oct
12 Oct
1Oct
TP-MTI
MMS
0
0
SRI UDHI RP
OA
PID
DCS
SCTS UDL UD
Bit0 Bit1 Bit2
Bit3 Bit4 Bit5 Bit6 Bit7
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
161
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.3.3 Examples
Example 1:
In PDU mode, run the AT+CMGL command to list all short messages.
AT+CMGL=4
+CMGL: 1,1, , 160
…(Short messages in PDU mode)
OK
11.4 AT+CMGR - Command for Reading Short Messages
This command returns the short messages whose storage location is index from
preferred memory <mem1>. If the status of short messages is "Unread short
messages that are received", after the command is successfully executed, the status
of short messages on the memory is changed to "Read short messages that are
received".
11.4.1 Testing Whether the Command for Reading Short
Messages Is Supported
Test
AT+CMGR=?
command
Function
Checks whether the command for reading short messages is
supported.
z
Response
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
162
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.4.2 Reading Short Messages
Write
AT+CMGR=<index>
command
Function
Reads the short messages whose storage location is index from the
preferred memory <mem1>.
z
Response
When short messages are in PDU mode (+CMGR=0) and the
command is successfully executed:
[<CR><LF>+CMGR:
<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS during command execution:
<CR><LF>+CMS ERROR: <err><CR><LF>
z
When the index of the location to be read exceeds the maximum
index of the SIM card: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<index>: integer, indicates the storage position of the short message in the memory.
<length>: integer, indicates the number of bytes in the TPDU.
<stat>: message type.
For messages in PDU mode (AT+CMGF=0):
z
0: indicates messages that have been received but not read.
z
1: indicates messages that have been received and read.
z
2: indicates messages that have been stored but not sent.
z
3: indicates messages that have been sent and stored
<alpha>: not supported currently
<pdu>: PDU. For details, see the AT+CMGL command.
Example 1:
Run AT+CMGR to read short messages.
Run AT+CMGR=1 to read the short message whose storage location is 1.
+CMGL: 1,,160
…(Short messages in PDU mode)
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
163
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.5 AT+CMGS - Command for Sending Short Messages
The AT+CMGS command sends short messages in two steps:
In PDU mode (AT+CMGF=0):
First, send +CMGS=<length> that ends with (CR).
Then, upon receiving > that is returned by the MT, the TE sends a PDU data packet
that ends with <ctrl-Z>(IRA 26).
11.5.1 Testing Whether the Command for Sending Short
Messages Exists
Test
AT+CMGS=?
command
Function
Response
Tests whether the command for sending short messages exists.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.5.2 Sending Short Messages
This command sends short messages in PDU mode (+CMGF=0).
Write command
Function
AT+CMGS=<length><CR>PDU is given <Ctrl-Z/Esc>
Sends short messages.
z
Response
In case of successful execution:
<CR><LF>+CMGS: <mr>[,<ackpdu>] <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS
ERROR: <err><CR><LF>
Parameter description
<mr>: identifier of short messages, which is a decimal number consisting of digits 0–
9. Value range: 0–65535. For details, see 3GPP TS 23.040[3]
TP-Message-Reference integer format.
<length>: number of characters of the actually sent TPDU / 2; a decimal number
consisting of digits 0–9; GSM 7-bit coding; the maximum length is 160 characters; for
Chinese characters in UCS2 coding, the maximum length is 70 characters; otherwise,
ERROR is returned.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
164
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
<ackpdu>: When the value of <service> in +CSMS is 1 and the network support is
provided, this field is returned. Except for the lack of SCA, this field has the same
format as PDU. (Not supported currently)
<Ctrl-Z>: indicates the end of a short message. The character is '0x1A'.
<Esc>: cancels the sending of the current short message. The character is '0x1B'.
11.5.3 Examples
Example:
Send short messages in PDU mode (+CMGF=0).
AT+CGSMS=1
OK
AT+CMGF=0
OK
AT+CNMI=1,2,0,0,0
OK
AT+CMGS=20
>07813108608805F911000B813109732008F70000FF06E8329BFD0E01 Contents
of short messages Ctrl-Z
+CMGS: 19
OK
11.6 AT+CMGW - Command for Storing Short Messages
The AT+CMGW command stores a short message to the <mem2> memory that is
set by the +CPMS command. Currently, <mem2> supports only SM.
11.6.1 Checking Whether the Command for Storing Short
Messages Is Supported
Test
AT+CMGW=?
command
Function
Response
Checks whether this command is supported.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
165
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.6.2 Storing Short Messages
This command stores short messages in PDU mode (+CMGF=0).
Write
AT+CMGW=<length>[,<stat>]<CR>PDU is given <ctrl-Z/ESC>
command
Function
Response
Stores short messages in PDU mode.
z
In case of successful execution:
<CR><LF>+CMGW: <index><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<stat>: storage status of short messages.
<length>: number of characters of the actually sent TPDU / 2.
<index>: location number in the memory; a decimal number consisting of digits 0–9;
value range: 0–(maximum capacity of the memory - 1).
<ctrl-Z>: indicates the end of an entry of PDU data. The character is '0x1A'.
<ESC>: cancels the sending of the current short message. The character is '0x1B'.
11.6.3 Examples
Example:
Store a short message in PDU mode.
AT+CMGF=0
AT+CMGW=56
>07813108608805F911000B813109732008F70000FF30547419347EBBE965371DF
13683DAE5F93C7C2E83EE693A1A0427D741ED37B90C3ABFCB7310BA2C2F834
2<Ctrl-Z>
+CMGW: 10
OK
11.7 AT+CMSS - Command for Selecting a Short Message
from the Memory and Sending It
The AT+CMSS command sends a short message at the specified index location.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
166
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.7.1 Checking Whether the Command for Sending Short
Messages Is Available
Test
AT+CMSS=?
command
Function
Response
Checks whether the AT+CMSS command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.7.2 Sending a Short Message at the Specified Location
Write
AT+CMSS=<index>[,<da>[,<toda>]]
command
Function
Response
Sends a short message at the specified index location.
z
When the short message is in PDU mode (+CMGF=0) and the
short message is successfully sent:
<CR><LF>+CMSS:
<mr>[,<ackpdu>]<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<index>: location of short messages on the SIM card.
<da>: number of the short message receiver. Value range: 0–9, +, *, and #. This
parameter consists of not more than 20 characters. “+” must be the first character.
<toda>: a 1-byte number, which indicates the address coding mode. This parameter
takes effect only when the address code has eight bits. The default value is 0.
The four most significant bits indicate the number type:
z
0: UNKNOWN
z
1: INTERNATIONAL
The four least significant bits indicate the number plan:
z
0: UNKNOWN
z
1: TELEPHONY
<mr>: identifier of short messages, which is a decimal number consisting of digits 0–
9. Value range: 0–255.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
167
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
<ackpdu>: When the value of <service> in AT+CSMS is 1 and network support is
provided, this field is returned. Except for the lack of SCA, this field has the same
format as PDU. (Not supported currently)
11.7.3 Examples
Example:
Send a stored short message in PDU mode.
AT+CMGF=0
OK
AT+CMSS=8
A short message whose status is 2 exists at the
location whose index is 8
+CMSS: 21
OK
11.8 AT+CNMI - Command for Setting the Notification
for a New Short Message
The AT+CNMI command sets the notification that is used to report the received new
short message to the TE.
11.8.1 Checking the Parameter Range Supported by the
AT+CNMI Command
Test
AT+CNMI=?
command
Function
Response
Queries the parameters supported by the CNMI command.
z
In case of successful execution:
<CR><LF>+CNMI: (list of supported <mode>s),(list of supported
<mt>s),(list of supported <bm>s),(list of supported <ds>s),(list of
supported <bfr>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<mode>: integer, which sets the short message notification mode.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
168
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
z
0 (default value): buffers the short message notification on the ME. If the buffer
of the ME is full, the new notification overwrites the oldest one.
z
z
1: sends the short message notification directly to the TE. When the notification
fails to be sent (for example, in online data mode), the notification is discarded.
2: sends the short message notification and the short message status report
directly to the TE. When the notification fails to be sent (for example, in online
data mode), the notification is buffered on the ME. When the buffered notification
can be sent, it is sent to the TE at a time.
<mt>: integer, which sets the rules for storing and notifying the received short
messages.
z
0 (default value): No SMS-DELIVER indications are sent to the TE.
z
Three methods of storing and notifying new short messages are as follows:
z
1: stores the SMS-DELIVER on the MT and sends a storage location notification
to the TE. +CMTI: <mem>,<index>
z
2: does not store the SMS-DELIVER on the MT and sends the SMS-DELIVERS
directly to the TE.
PDU mode: +CMT: [<reserved>],<length><CR><LF><pdu>
z
3: stores the SMS-DELIVER on the MT and does not send the SMS-DELIVER
notification to the TE (not supported currently).
<bm>: integer, which sets the rules for storing and notifying the received cell
broadcast messages (CBMs).
z
0: No CBM is reported to the TE (default value).
z
2: New CBMs are sent directly to the TE through unsolicited reporting:
PDU mode: +CBM: <length><CR><LF><pdu>
<ds>: integer, which sets the return receipt of short messages.
z
0: does not send the return receipt of short messages to the TE.
z
1: does not store the return receipt of short messages on the MT and sends it
directly to the TE.
PDU mode: +CDS: <length><CR><LF><pdu>
<bfr>: integer, which sets the buffer processing mode when the <mode>=0 mode is
changed to the <mode>=1-2 mode.
z
0: sends the buffered URCs to the TE at a time when the <mode>=0 mode is
changed to the <mode>=1-2 mode (default value).
z
1: clears the buffered URCs when the <mode>=0 mode is changed to the
<mode>=1-2 mode.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
169
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.8.2 Reading the Status of Short Message Notification
Read
AT+CNMI?
command
Function
Response
Reads the status of CNMI.
z
In case of successful execution:
<CR><LF>+CNMI:
<mode>,<mt>,<bm>,<ds>,<bfr><CR><LF><CR><LF>OK<CR><LF
>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.8.3 Setting the Status of Short Message Notification
Write
AT+CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]]
command
Function
Response
Sets the status of short message notification.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Note:
z
After the MT restarts, the setting values of this command are cleared. In this case, no new
short message is reported. It is not recommended that the setting mode of
AT+CNMI=0,0,0,0,0 be used.
z
z
The <mode> and <bfr> parameters set the mode of reporting the new short message
notification to the TE.
The <mt> parameter sets whether to report a new short message directly to the TE or stores
it on the MT and reports the storage location to the TE when receiving the new short
message.
z
The <bm> parameter sets whether to report a new CBM directly to the TE or stores it on the
MT and reports the storage location to the TE when receiving the new CBM. The <ds>
parameter sets whether to report the short message status report (+CDS).
11.8.4 Examples
Example 1:
Set the short message notification mode as follows: store the short message and
send the storage location to the TE; do not send the short message status report.
AT+CNMI=1,1,0,0,0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
170
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
OK
Example 2:
Set the short message notification mode as follows: do not store the short message
and send it directly to the TE; do not send the short message status report.
AT+CNMI=1,2,0,0,0
OK
Example 3:
Set the short message notification mode as follows: store the short message on the
MT and report the storage location to the TE; do not store the short message status
report and report it directly.
AT+CNMI=1,1,0,1,0
OK
Example 4:
Set the short message notification mode as follows: store the short message on the
MS and report the storage location to the TE; store the short message status report
on the MS and report the storage location to the TE; if the short message status
report fails to be reported, the status report is discarded.
AT+CNMI=1,1,0,2,0
OK
11.9 AT+CPMS - Command for Setting the Storage
Location of Short Messages
The AT+CPMS command sets the storage location of short messages.
11.9.1 Checking the Storage Location of Short Messages
Test
AT+CPMS=?
command
Function
Response
Checks the available storage location of short messages.
z
In case of successful execution:
<CR><LF>+CPMS: (list of supported <mem1>s),(list of supported
<mem2>s),(list of supported <mem3>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
171
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
Parameter description:
<mem1>: string value, the preferred memory, which indicates the media on which the
operations of reading and deleting short messages are performed. Only “SM” that
indicates the SIM card is supported. It is saved upon power failure.
<mem2>: string value, which indicates the media on which the operations of writing
and sending short messages are performed. Value options of <mem2> are the same
as those of <mem1>. It is saved upon power failure.
<mem3>: string value, which indicates the media on which the operations of
receiving short messages are performed. Value options of <mem3> are the same as
those of <mem1>. It is saved upon power failure.
<total1>: integer value, which indicates the capacity of <mem1> for storing short
messages.
<total2>: integer value, which indicates the capacity of <mem2> for storing short
messages.
<total3>: integer value, which indicates the capacity of <mem3> for storing short
messages.
<used1>: integer value, which indicates the number of existing short messages in
<mem1>.
<used2>: integer value, which indicates the number of existing short messages in
<mem2>.
<used3>: integer value, which indicates the number of existing short messages in
<mem3>.
11.9.2 Reading the Status of Storage Location
Read
AT+CPMS?
command
Function
Response
Reads the current status of storage location.
z
In case of successful execution:
<CR><LF>+CPMS:
<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<us
ed3>,<total3><CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
172
Issue 02 (2010-11-23)
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.9.3 Setting the Storage Location
Write
AT+CPMS=<mem1>[,<mem2>[,<mem3>]]
command
Function
Sets the storage media on which the operations of reading and writing
short messages are performed.
z
Response
In case of successful execution:
<CR><LF>+CPMS:
<used1>,<total1>,<used2>,<total2>,<used3>,<total3><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.9.4 Examples
Example 1:
Read the current status of storage location.
AT+CPMS=?
+CPMS: (“SM”), (“SM”), (“SM”)
OK
Example 2:
Check the available storage location of short messages.
AT+CPMS?
+CPMS: “SM”,12,20, “SM”,12,20, “SM”,12,20
OK
Example 3:
Set the first storage location of short message to SM.
AT+CPMS=“SM”
+CPMS: 12,20,12,20,12,20
OK
11.10 AT+CSCA - Command for Setting the Number of the
SMSC
The AT+CSCA command sets the number of the SMSC. For short messages in PDU
mode, the settings performed through this command are used only when sc_len=0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
173
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
(the parameter related to the number of the SMSC in the PDU). For details about the
PDU format, see the AT+CMGS Command.
11.10.1 Checking Whether the Command Is Available
Test
AT+CSCA=?
command
Function
Response
Checks whether the command is available.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.10.2 Reading the Currently Registered Number of the SMSC
Read
AT+CSCA?
command
Function
Response
Reads the currently registered number of the SMSC.
z
When the SMSC has been registered:
<CR><LF>+CSCA: <sca>,<tosca><CR><LF>
<CR><LF>OK<CR><LF>
z
When the SMSC has not been registered: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Note:
When the number of the SMSC is left empty, the returned value of <sca> is null.
Parameter description
<sca>: string, which indicates the number of the SMSC. The number consists of “*”,
“#”, “+”, and “0”–“9”, and contains not more than 20 characters (excluding the “+”
symbol) in length. It is saved upon power failure.
<tosca>: numeric, saved upon power failure, which indicates the number type. The
value 145 indicates an international number. For detailed values, see the definitions
of type_addr.
<type_addr>: number address type, which consists of two characters. The following
figure shows the structure of <type_addr>.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
174
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
Numbering-plan-identification
1
Type-of-number
Values of Type-of-Number (bit6…bit4) are as follows:
z
0 0 0
This value is filled in when the subscriber does not understand the
prior information about the target address number. In this case, the address
number is organized by the network.
z
0 0 1
This value is used when the subscriber number is identified as an
international number. This value can also be filled in when the subscriber
number falls within the number range of the home country.
z
z
0 1 0
National phone number, to which no prefix or suffix can be added.
This value is used when the subscriber sends an national phone number.
0 1 1 Special number on the local network, which is used for
management or service. The subscriber cannot use this value.
z
z
z
1 0 1
1 1 0
1 1 1
Default 7-bit coding mode with the number type being GSM.
Short number, which is not used currently.
Reserved for extension. This value is not used currently.
Values of Numbering-plan-identification (bit3…bit0) are as follows:
(Note: bit3…bit0 is valid only when the value of bit6…bit4 is 000,001,010.)
z
0 0 0 0
0 0 0 1
0 0 1 1
0 1 0 0
1 0 0 0
1 0 0 1
1 0 1 0
The number is determined by the numbering plan on the network.
ISDN/telephone numbering plan
z
z
z
z
z
z
Data numbering plan, which is not used currently.
Telex numbering plan, which is not used currently.
National numbering plan, which is not used currently.
Private numbering plan, which is not used currently.
ERMES numbering plan, which is not used currently.
If the command does not contain the <tosca> parameter, it indicates that the
<tosca> parameter is not modified.
11.10.3 Setting the Number of the SMSC
Write
AT+CSCA=<sca>[,<tosca>]
command
Function
Response
Sets the number of the SMSC.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
175
Issue 02 (2010-11-23)
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.10.4 Examples
Example 1:
Set the number of the SMSC.
AT+CSCA=1380063859
OK
Example 2:
Query the status of the SMSC.
AT+CSCA?
+CSCA: “1380063859”, “129”
OK
11.11 AT+CSCB - Command for Selecting the Type of Cell
Messages
The AT+CSCB command selects the type of cell messages.
11.11.1 Checking the Parameter Range Supported by the
Command
Test
AT+CSCB=?
command
Function
Response
Checks the parameter range supported by the command.
z
In case of successful execution:
<CR><LF>+CSCB: (list of supported <mode>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<mode>: numeric, which indicates the message type.
z
0: adds the message type that is defined by <mids><dcss> from the previous
settings.
z
1: removes the message type that is defined by <mids><dcss> from the
previous settings.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
176
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.11.2 Reading the Current CBM Type
Read
AT+CSCB?
command
Function
Response
Reads the current CBM type.
z
In case of successful execution:
<CR><LF>+CSCB: <mode>,<mids>,<dcss><CR><LF>
<CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<mids>: string, which indicates the combination of all CBM identification codes. This
parameter is stored in SIM card. For example, "0,1,5,320-478,922". A maximum of
fifteen values are supported
<dcss>: string, which indicates the combination of all CBM data coding schemes. The
default value is 0-255. For example, "0-3,5". A maximum of five values are
supported Setting the Current CBM Type
11.11.3 Setting the Current CBM Type
Write
AT++CSCB=[<mode>[,<mids>[,<dcss>]]]
command
Function
Response
Sets the current CBM type.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
z
If no parameters of this command are set, AT+CSCB= considers the previously set values
valid for various parameters.
z
The settings specified by mids and dcss are added to or removed from the previous
settings.
z
z
at+cscb=0 deletes all mids and dcss settings that have been configured.
at+cscb=1 keeps mids unchanged and sets dcss to the default value.
11.11.4 Examples
Example:
Query the current CBM information.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
177
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
AT+CSCB=?
+CSCB: (0,1)
OK
11.12 AT+CSMS - Command for Setting the Message
Service Type
The AT+CSMS command sets the message service type.
11.12.1 Checking Whether the Command Is Available
Test
AT+CSMS=?
command
Function
Response
Checks the parameter range supported by the command.
z
In case of successful execution:
<CR><LF>+CSMS: (list of supported <service>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<service>: numeric, which indicates the message service type.
z
0 (default value): 3G TS 23.040, 3G TS 23.041 (The syntax structure of AT
commands for short messages is compatible with GSM07.05 Phase 2.)
z
1: 3G TS 23.040, 3G TS 23.041 (The syntax structure of AT commands for short
messages is compatible with GSM07.05 Phase 2+.)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
178
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
11.12.2 Reading the Current Message Service Type
Read
AT+CSMS?
command
Function
Response
Reads the current message service type.
z
In case of successful execution:
<CR><LF>+CSMS: <service>,<mt>,<mo><bm><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
Parameter description
<mt>,<mo>,<bm>: integer values, which indicate whether the MT supports receiving
short messages, sending short messages, and broadcasting message services
respectively.
z
0: does not support the preceding functions.
z
1 (default value): supports the preceding functions.
11.12.3 Setting the Message Service Type
Write
AT+CSMS=<service>
command
Function
Response
Sets the message service type.
z
In case of successful execution:
<CR><LF>+CSMS:
<mt>,<mo>,<bm><CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.12.4 Examples
Example 1:
AT+CSMS=?
+CSMS: (0)
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
179
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
Example 2:
AT+CSMS?
+CSMS: 0,1,1,1
OK
Example 3:
AT+CSMS=0
+CSMS: 1,1,1
OK
11.13 +CMTI – Command for Unsolicitedly Reporting
SMS Arrival
The +CMTI command is used to indicate that a new SM is received.
URC
When the value of <mt> in the AT+CNMI command is 1:
<CR><LF>+CMTI: <mem3><index><CR><LF>
Parameter description
<mem3>: character string, which indicates the memory for storing a new SM that is
not directly sent to the TE.
“SM“: indicates SIM card.
<index>: integer, which indicates the storage position of an SM in the memory.
11.14 +CMT – Command for Unsolicitedly Reporting a
New SM
The +CMT command is used to indicate that a new SM is received.
URC
When the value of <mt> in the AT+CNMI command is 2 and the PDU
mode is adopted:
<CR><LF>+CMT: <length><CR><LF><pdu>
Parameter description
<length>: integer, which indicates the number of bytes in the TPDU.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
180
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Short Messages
<pdu>: PDU. For details, see the AT+CMGL command
11.15 +CBM – Command for Unsolicitedly Reporting a
Cell SM
The +CBM command is used to indicate that a new cell SM is received.
URC
When the value of <bm> in the AT+CNMI command is 2 and the PDU
mode is adopted:
<CR><LF>+CBM: <length><CR><LF><pdu>
Parameter description
<length>: integer, which indicates the number of bytes in the TPDU.
<pdu>: PDU. For details, see the AT+CMGL command.
11.16 +CDS – Command for Unsolicitedly Reporting a
New SM Status Report
The +CDS command is used to indicate that a new SM status report is received.
URC
When the value of <ds> in the AT+CNMI command is 2 and the PDU
mode is adopted:
<CR><LF>+CMT: <length><CR><LF><pdu>
Parameter description
<length>: integer, which indicates the number of bytes in the TPDU.
<pdu>: PDU. For details, see the AT+CMGL command.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
181
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the SIM Card
12
Commands for the SIM Card
This chapter describes the AT commands related to the SIM card.
12.1 AT+CRSM - Command for Accessing a SIM Card
Through Restricted SIM Access
The AT+CRSM command accesses a SIM card through restricted SIM access.
12.1.1 Checking Whether the +CRSM Command Is Available
Test
AT+CRSM=?
command
Function
Response
Checks whether the command exists.
z
In case of available command: <CR><LF>OK<CR><LF>
z
In case of unavailable command: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
182
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the SIM Card
12.1.2 Accessing the SIM Database
Write
AT+CRSM=<command>[,<fileid>[,<P1>,<P2>,<P3>[,<data>]]]
command
Function
Response
Accesses the SIM card through restricted permissions.
z
In case of successful execution:
<CR><LF>+CRSM:
<sw1>,<sw2>[,<response>]<CR><LF><CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
This command can access the SIM database through restricted permissions. For example, the
IMSI number cannot be changed without permission (authentication is required for change). In
addition, the IMSI number cannot be modified through this command.
Parameter description
<command>: numeric, which indicates the command for SIM access. The value
range is as follows:
z
176: reads the contents on the SIM card in binary mode.
z
178: reads records.
z
192: reads responses.
z
214: updates the contents on the SIM card in binary mode.
z
220: records the updated contents.
z
242: obtains the status.
<fileid>: integer, which indicates the ID of the EF file. In addition to the command for
status query, all other commands must send this parameter.
<P1>,<P2>,<P3>: In addition to the commands for obtaining the response and
querying the status, other commands must specify these parameters. The value
ranges from 0 to 255.
<data>: information field in hexadecimal mode.
<sw1>,<sw2>: response returned by the SIM card after the command is executed.
<response>: data reported after the command is successfully executed. For the
commands for updating data in binary mode and updating records, the response is
not returned.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
183
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
13
Commands for the Phone Book
This chapter describes the AT commands that can perform operations on the phone
book.
13.1 AT+CPBR - Command for Reading the Phone Book
The AT+CPBR command reads the phone book.
13.1.1 Checking the Parameter Range Supported by the +CPBR
Command
Test
AT+CPBR=?
command
Function
Checks the available phone book indexes and the supported length of
phone number and name.
z
Response
In case of successful execution:
<CR><LF>+CPBR: (list of
supported<index>s),[<nlength>],[<tlength>]<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<index>, <index1>, <index2>: integer, which indicates the location in the phone book
memory. The values of index1 and index2 cannot be larger than the maximum index
of the phone book, that is, the total field returned by the AT+CPBS? command.
<nlength>: integer, which indicates the maximum length of a phone number.
<tlength>: integer, which indicates the maximum length of the name field.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
184
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
13.1.2 +CPBR - Command for Reading the Phone Book
Write
AT+CPBR=<index1>[,<index2>]
command
Function
Reads the currently selected phone book records between the index1
and index2 locations in the phone book memory.
z
Response
In case of successful execution:
[<CR><LF>+CPBR: <index1>,<number>,<type>
[<CR><LF>+CPBR:
<index2>,<number>,<type>,<text>[...]<CR><LF>]]
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
z
When only one parameter is entered, one phone book record specified by the parameter is
returned.
z
When two parameters are entered, all phone book records between the two indexes are
returned.
Parameter description
<number>: string, which indicates the phone number.
<type>: number type. The value 145 indicates an international phone number.
z
145: The telephone number contains the international access code +.
z
129: The telephone number does not contain +.
<text>: string, which indicates the name whose maximum length is <tlength>. The
character type is specified by the AT+CSCS command.
13.1.3 Examples
Example 1:
Check the available phone book indexes and the supported length of phone number
and name.
AT+CPBR=?
+CPBR: (1-250),40,16
OK
Example 2:
List all phone book records between index values 10–13.
AT+CPBR=10,13
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
185
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
+CPBR: 10,“13903702895”,“129”
+CPBR: 11,“13903702873”,“129”
+CPBR: 12,“13903702856”,“129”
+CPBR: 13,“13903702803”,“129”
OK
13.2 AT+CPBW - Command for Writing the Phone Book
The AT+CPBW command writes a phone book record to the currently selected
location that is specified by the index in the phone book memory. If the command
parameter contains only the index field, the phone book record at the location
specified by the index field is deleted. If the index field is omitted but the parameter
contains the number field, the phone book record is written to the first empty location.
13.2.1 Checking the Parameter Range Supported by This
Command
Test
AT+CPBW=?
command
Function
Response
Queries the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+CPBW: (list of supported <index>s),[<nlength>],(list of
supported <type>s),[<tlength>]<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<index>: integer value, which indicates the location in the phone book memory. The
value of index cannot be larger than the total field returned by the AT+CPBS?
command.
<nlength>: integer, which indicates the maximum length of a phone number.
<tlength>: integer, which indicates the maximum length of the name field.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
186
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
13.2.2 Writing a Record into the Phone Book
Write
AT+CPBW=[<index>][,<number>[,<type>[,<text>]]]
command
Function
Response
Writes a record into the phone book.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
<number> or <text> can be left blank, but cannot be left blank simultaneously.
Parameter description
<number>: string, which indicates the phone number.
<type>: integer, which indicates the format of a phone number.
z
145: The phone number contains the international access code “+”.
z
129: The phone number does not contain the international access code “+”.
<text>: string, which indicates the name whose maximum length is <tlength>. The
character type is specified by the AT+CSCS command.
13.2.3 Examples
Example 1:
Query the parameter range supported by this command.
AT+ CPBW=?
+CPBW: (1-250),40,(129,145),16
OK
Example 2:
Write a record into the phone book.
AT+CPBW=“5”,“13903702805”,,“test”
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
187
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
13.3 AT+CPBS - Command for Selecting the Phone Book
Memory
The AT+CPBS command selects the phone book memory. After the MT restarts, the
MT restores the initial setting to “SM”. Other commands related to the phone book
perform operations by using the phone book memory that is selected by this
command.
13.3.1 Checking the Value Range Supported by the +CPBS
Command
Test
AT+CPBS=?
command
Function
Response
Checks the optional items of the phone book memory.
z
In case of successful execution:
<CR><LF>+CPBS: (list of supported
<storage>s)<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<storage>: type of the phone book memory. The following table describes the value
options of <storage>.
Table 13-1 Value options of <storage>
Value
Description
SM
Phone book on the SIM card (default value)
Dialed phone number on the MT
LD (not supported
currently)
EN (not supported
currently)
Emergency call number on the SIM card (or MT)
FD (not supported
currently)
Fixed dial number on the SIM card. The PIN2 code must be
verified when the option is used.
ON (not supported
currently)
Local phone number on the SIM card
List of recent caller IDs on the MT
List of missing calls of the MT.
RC (not supported
currently)
MC (not supported
current)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
188
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
13.3.2 Reading the Current Memory of the Phone Book
Read
AT+CPBS?
command
Function
Response
Reads the current memory of the phone book.
z
In case of successful execution:
<CR><LF>+CPBS:
<storage>[,<used>,<total>]<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<used>: integer value, which indicates the number of used entries in the currently
selected memory.
<total>: integer value, which indicates the maximum number of entries in the
currently selected memory.
13.3.3 Setting the Memory Type of the Phone Book
Write
AT+CPBS=<storage>
command
Function
Response
Sets the memory type of the phone book.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
13.3.4 Examples
Example 1:
AT+CPBS=?
+CPBS: (“FD”,”SM”,”ON”,”LD”,”MC”,”RC”,”EN”)
OK
Example 2:
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
189
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for the Phone Book
AT+CPBS?
+CPBS: “SM”,23,250
OK
Example 3:
AT+CPBS=“SM”
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
190
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Hardware Control
14
Commands for Hardware Control
This chapter describes the AT commands that operate the hardware.
14.1 AT+CALA
The AT+CALA command sets the alarm time on the ME. When the set alarm time is
reached, the alarm sends a URC, and the alarm time is reset to "00/01/01,00:00:00".
The alarm provides two functions:
z
Timed notification SM: When the module is not powered off, a timed SM can be
unsolicitedly reported through +CALA.
z
Clock mode: When the module is powered off, the clock function can be used to
wake up the module. When the module is powered off, and the set alarm time is
reached, the module is waken up, and the +CALA is unsolicitedly reported.
14.1.1 Checking the Parameter Range Supported by This
Command
Test
AT+CALA=?
command
Function
Response
Checks the parameter range supported by this command.
z
In case of successful execution:
<CR><LF>+ CALA: (list of supported<n>s), (list of supported<type>s),
(list of supported<tlength>s) <CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<n>: integer, which indicates the index of the alarm clock array.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
191
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Hardware Control
<type>: integer, which indicates the type of the set alarm clock. The value of this
parameter is as follows:
0: alarm clock reporting (text message)
<tlength>: integer, which indicates the maximum length of text. Value range: 0–16.
Default value: 16.
14.1.2 Querying the Set Alarm Clock
Read
AT+CALA?
command
Function
Response
Queries the set alarm clock.
z
In case of successful execution:
<CR><LF>+ CALA: <time>[, <n>[, <type>[,
<text>]]]<CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
The ME can set only one alarm clock at one time. When the second alarm clock is set, the
setting of the first alarm clock is deleted. Therefore, during query, the value of <n> is always 0.
Parameter description
<time>: string, which indicates the alarm time to be set. The format is
"yy/MM/dd,hh:mm:ss".
<text>: string, which indicates the text to be displayed when the alarm clock timer
expires. The default value is a null string.
14.1.3 Setting an Alarm Clock
Write
AT+ CALA=<time>[, <n>[, <type>[, <text>]]]
command
Function
Response
Sets an alarm clock.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
192
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Hardware Control
14.1.4 +CALA – Command for Reporting Unsolicitedly
URC1
URC2
Reports a notification SM <CR><LF>+CALA: [<text>]<CR><LF>
Indicates that the ME is waken up and enters into the alarm clock mode. If
the module is in adaptive baud rate mode, <text> but not +CALA is
displayed.
<CR><LF>^SYSSTART ALARM MODE<CR><LF>
<CR><LF>+CALA: <text><CR><LF>
14.1.5 Examples
Example 1:
Check the parameter range supported by the +CALA command.
AT+CALA=?
+CALA: (0),(0),(1-16)
OK
Example 2:
Query the current alarm clock.
AT+CALA?
+CALA: “10/03/03,15:20:00”,0,0,“Alarm”
OK
Example 3:
Set an alarm clock.
AT+CALA=“10/03/03,15:20:00”
OK
14.2 AT+CCLK – Command for Setting the System Time
The AT+CCLK command sets the system runtime of the ME. As long as the ME is
powered on, the time works.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
193
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Hardware Control
14.2.1 Checking Whether the Command for Setting the System
Time Exists
Test
AT^CCLK=?
command
Function
Response
Checks whether this command exists.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
14.2.2 Querying the Current System Time
Read
AT+CCLK?
command
Function
Response
Queries the current system time.
z
In case of successful execution:
<CR><LF>+CCLK: <time><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<time>: string, which indicates the current system time of the ME. The format is
"yy/MM/dd,hh:mm:ss".
14.2.3 Setting the System Time
Write
AT+CCLK=<time>
command
Function
Response
Sets the system time.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Huawei Proprietary and Confidential
194
Issue 02 (2010-11-23)
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Hardware Control
14.2.4 Examples
Example 1:
Query the current system time.
AT+CCLK?
+CCLK: “10/02/15,12:10:04”
OK
Example 2:
Set the system time.
AT+CCLK=“10/02/15,12:10:50”
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
195
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15
Commands for Audio Control
This chapter describes the AT commands for audio control.
15.1 AT^SWSPATH - Command for Switching Between
Audio Channels
The AT^SWSPATH command switches the audio channel.
15.1.1 Querying the Supported Audio Channel
Test
AT^SWSPATH=?
command
Function
Response
Queries the supported audio channel.
z
In case of successful execution:
<CR><LF>^SWSPATH: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<n>: integer, which indicates the audio channel.
z
0 (default value): indicates that the first audio channel is supported.
z
1: indicates that the second audio channel is supported..
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
196
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.1.2 Reading the Current Audio Channel
Read
AT^SWSPATH?
command
Function
Response
Reads the current audio channel.
z
In case of successful execution:
<CR><LF>^SWSPATH: <n><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
15.1.3 Switching the Audio Channel
Write
AT^SWSPATH=<n>
command
Function
Response
Switches the audio channel.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
Note:
The audio channel is kept in the channel that is used in the last call after the call ends. If the
module is restarted, the audio channel will be reset to the first channel.
15.2 AT+CMIC - Command for Adjusting the Microphone
Gain Level
The AT+CMIC command adjusts the the mircophone gain level.
15.2.1 Querying the Supported Microphnoe Gain Levels
Test
AT+CMIC=?
command
Function
Response
Queries the supported microphnoe gain levels.
z
In case of successful execution:
<CR><LF>+CMIC: (list of supported <level>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
197
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
Parameter description
<level>: integer; indicates the microphone gain level; value range: –12 to +13;
Default value: 0.
z
–12: minimum gain
z
12: maximum gain
z
13: microphone muted
15.2.2 Querying the Current Microphone Gain Level
Read
AT+CMIC?
command
Function
Response
Queries the current microphone gain level
z
In case of successful execution:
<CR><LF>+CMIC: <level><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
15.2.3 Setting the Microphone Gain Level
Write
AT+CMIC=<level>
command
Function
Response
Sets the microphone gain level
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
Note:
This command applies to both audio channels, but it can be executed only before a voice call
is initiated.
15.3 AT^ECHO - Command for Suppressing the Echo
The AT^ECHO command suppresses the echo.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
198
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.3.1 Querying the Supported Echo Suppressing Functions
Test
AT^ECHO=?
command
Function
Response
Queries the supported echo suppressing functions.
z
In case of successful execution:
<CR><LF>^ECHO: (list of supported <n>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error:<CR><LF>ERROR<CR><LF>
Parameter description
<n>: integer
z
0: disables the echo suppressing function.
z
1 (default value): enables the echo suppressing function.
15.3.2 Reading the Current Settings of the Echo Suppressing
Function
Read
AT^ECHO?
command
Function
Response
Reads the current settings of the echo suppressing function.
z
In case of successful execution:
<CR><LF>^ECHO: <n><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error:<CR><LF>ERROR<CR><LF>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
199
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.3.3 Setting the Echo Suppressing Function
Write
AT^ECHO=<n>
command
Function
Reponse
Sets the echo suppressing function.
z
In case of successful execution:
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an errorrelated to the MT: <CR><LF> +CME ERROR:
<err><CR><LF>
Note:
This command applies to both audio channels, but it can be executed only before a call is
initiated.
15.4 AT+CLVL - Command for Adjusting the Speaker
Volume
The AT+CLVL command adjusts the speaker volume.
15.4.1 Querying the Supported Speaker Volume Level
Test
AT+CLVL=?
command
Function
Response
Queries the supported speaker volume levels.
z
In case of successful execution:
<CR><LF>+CLVL: (list of supported <n>s) <CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
Parameter description
<n>: integer; value range: 0 to 5.
z
1: minimum volume
z
5: maximum volume
z
0: speaker muted
z
4: default value
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
200
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.4.2 Reading the Current Speaker Volume
Read
AT+CLVL?
command
Function
Response
Reads the current speaker volume.
z
In case of successful execution:
<CR><LF>+CLVL: <n><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
15.4.3 Setting the Speaker Volume
Write
AT+CLVL=<n>
command
Function
Response
Sets the speaker volume.
z
In case of successful execution:
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error: related to the MT: <CR><LF> +CME
ERROR: <err><CR><LF>
Note:
z
This command applies to both audio channels. You can set the volume level to 1, 2, 3, 4, or
5 before or during a call and the setting remains effective even after the module is powered
off. You can set the volume level to 0 to mute the speaker only during a call. After the call
ends, the speaker volume is restored to the volume level before the speaker is muted.
15.5 AT+CMUT - Command for Muting and Unmuting the
Microphone
The AT+CMUT command is used to mute and unmute the microphone.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
201
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.5.1 Querying the Supported Muting Settings for the
Microphone
Test
AT+CMUT=?
command
Function
Response
Queries the supported muting settings for the microphone.
<CR><LF>+CMUT: (list of supported <n>s)<CR><LF>
<CR><LF>OK<CR><LF>
Parameter describtion
<n>: integer
z
0 (default value): unmutes the microphone.
z
1: mutes the microphone.
15.5.2 Reading the Curent Muting Settings of the Microphone
Read
AT+CMUT?
command
Function
Response
Reads the current muting settings of the microphone.
z
In case of successful execution:
<CR><LF>+CMUT: <n><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF> +CME
ERROR: <err><CR><LF>
Note:
This command can be used only during a call.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
202
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Commands for Audio Control
15.5.3 Setting the Muting Function of the Microphone
Write
AT+CMUT=<n>
command
Function
Response
Sets the muting function of the microphone.
z
In case of successful execution:
<CR><LF>OK<CR><LF>
z
In case of an error: <CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT:<CR><LF> +CME ERROR:
<err><CR><LF>
Note:
z
This command applies to both audio channels. The microphone will be restored to its default
setting after a call.
z
This command can be used only during a call.
Huawei Proprietary and Confidential
203
Issue 02 (2010-11-23)
Copyright © Huawei Technologies Co., Ltd.
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
16
Other Commands
This chapter describes auxiliary commands that are not covered by the preceding
chapters.
16.1 A/ - Command for Executing the Previous Command
Again
The A/ command executes the previous command again.
16.1.1 Execution Command
Execution command
Function
A/
Executes the previous command.
Response
Same as the output result of the previous command.
16.1.2 Examples
Example:
Execute the previous command.
AT+CREG?
+CREG: 0,1
OK
A/
+CREG: 0,1
OK
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
204
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
16.2 ATS3 – Command for Settting the Command Line
Ending Character
This command sets the command line ending character S3, which saves the
command line ending character as an ASCII code. This character is sent by the TE,
indicating the end of a command line.
16.2.1 Querying the Current Command Line Ending Character
Read
ATS3?
command
Function
Response
Queries the current command line ending character.
z
In case of successful execution:
<CR><LF><n><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<n>: integer, which indicates the ASCII code of the command line ending character.
Value range: 1~7,10~64,66~83,85~96,98~115,117~127. Default value: 13.
16.2.2 Setting the Command Line Ending Character
Write
ATS3=<n>
command
Function
Response
Sets the command line ending character.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
<n> is not allowed starting with “0x”, or regarding as ATS3=0.
16.2.3 Examples
Example 1:
Query the current command line ending character.
ATS3?
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
205
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
013
OK
Example 2:
Set the command line ending character.
ATS3=13
OK
16.3 ATS4 – Command for Setting the Response Format
Character
This command sets the response format character. This character is sent by the TE
and is involved in the head, tail, and end tags of the result code and information
response. If the S4 character in a command line is changed, the result code in this
command line uses the new S4 character immediately.
16.3.1 Querying the Current Format Character
Read
ATS4?
command
Function
Response
Queries the current response format character.
z
In case of successful execution:
<CR><LF><n><CR><LF><CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<n>: integer, which indicates the ASCII code of the response format character. Value
range: 0–127. Default value: 10.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
206
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
16.3.2 Setting the Response Format Character
Write
ATS4=<n>
command
Function
Response
Sets the response format character.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
<n> is not allowed starting with “0x”, or regarding as ATS4=0.
16.3.3 Examples
Example 1:
Query the current response format character.
ATS4?
010
OK
Example 2:
Set the response format character.
ATS4=10
OK
16.4 ATS5 – Command for Setting the Backspace Character
This command sets the backspace character S5. This character is sent by the TE,
indicating the operation of deleting the previous character. This character is identified
and acknowledged by the MS.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
207
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
16.4.1 Querying the Current Backspace Character
Read
ATS5?
command
Function
Response
Queries the current backspace character.
z
In case of successful execution:
<CR><LF><n><CR><LF><CR><LF>OK<CR><LF>
z
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<n>: integer, which indicates the ASCII code of the backspace character. Value range:
0–127. Default value: 8. It is saved upon power failure.
16.4.2 Setting the Current Backspace Character
Write
ATS5=<n>
command
Function
Response
Sets the backspace character.
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR:<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
<n> is not allowed starting with “0x”, or regarding as ATS5=0
16.4.3 Examples
Example 1:
Query the current backspace character.
ATS5?
008
OK
Example 2:
Set the backspace character.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
208
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Other Commands
ATS5=8
OK
16.5 ^THERM - Command for Unsolicitedly Reporting
Temperature Protection
The ^THERM command is used to unsolicitedly report the temperature protection.
The URC cannot be disabled currently.
URC
<CR><LF>^THERM: <mode><CR><LF>
Note:
The temperature protection report is submitted automatically when the RF is enabled or
disabled by the temperature protection function.
Parameter description
<mode>: indicates the action performed by the current temperature protection
function.
z
0: indicates that the temperature exceeds the temperature limit and that the
module deregisters with the network and disables the RF.
z
1: indicates that the temperature falls back to the safe temperature range and
the module enables the RF.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
209
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
17
Appendix
List of effects on AT commands imposed by SIM PIN
Ø
-
The command is unavailable.
The PIN1 code does not need to be verified for the command.
The PIN1 code needs to be verified for the command.
+
±
The PIN1 code needs to be verified for the command in certain cases.
Table 17-1 List of effects on AT commands imposed by SIM PIN
AT Command
Execution
Command
Test
Read
Write
Command Command Command
Commands for configuration
AT&F
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
-
AT&V
-
AT&W
ATQ
-
-
ATV
-
ATZ
-
ATE
-
AT+CFUN
AT^SMSO
AT+GCAP
AT+CMEE
Ø
-
-
Ø
Ø
-
Ø
Ø
-
-
-
Ø
-
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
210
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
AT+CSCS
AT^SCFG
Ø
Ø
-
-
-
-
-
-
Commands for status control
AT+CMER
AT+CIND
AT^SIND
AT+WS46
Ø
Ø
Ø
Ø
+
-
+
-
+
-
-
-
-
-
-
-
Commands for serial port control
AT\Q
-
Ø
Ø
Ø
Ø
-
Ø
Ø
Ø
Ø
-
Ø
Ø
Ø
Ø
-
AT&C
-
AT&D
-
AT&S
-
AT+IPR
AT+CMUX
Ø
Ø
-
-
-
Commands for security control
AT+CPIN
AT+CLCK
AT+CPWD
Ø
Ø
Ø
-
-
-
+
+
Ø
Ø
+
+
Commands for identification
ATI
-
Ø
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
AT+CGMI/AT+GMI
AT+CGMM/AT+GMM
AT+CGMR/AT+GMR
AT+CGSN/AT+GSN
AT+CIMI
-
-
-
-
-
-
-
+
+
Commands for call control
ATD
+
+
+
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
-
Ø
Ø
Ø
Ø
Ø
-
ATD*99#
ATD*98#
ATH
ATA
+
Ø
ATS0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
211
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
ATS7
Ø
Ø
Ø
-
Ø
-
-
-
AT+CRLP
AT+CBST
+++
-
-
-
-
-
Ø
Ø
+
+
-
Ø
Ø
Ø
+
-
Ø
Ø
Ø
+
-
ATO
-
AT+CHUP
AT+CR
AT+CRC
AT+VTS
AT+CLIP
+
Ø
Ø
Ø
Ø
Ø
+
Ø
+
-
+
Commands for network services
AT+COPN
AT+COPS
AT+CREG
AT+CSQ
+
Ø
Ø
-
+
-
Ø
±
Ø
±
-
-
-
-
Ø
Ø
Ø
Ø
Ø
Ø
Ø
+
Ø
Ø
Ø
-
AT^SMONC
AT^SMOND
AT^MONI
AT^MONP
AT^SMONG
AT^SPLM
AT+CPOL
AT^SPLR
AT^SPLW
AT+CNUM
+
+
-
+
+
-
-
-
-
+
+
Ø
Ø
Ø
+
+
+
+
+
+
Ø
+
+
+
Ø
Ø
Commands for data services
AT+CGACT
Ø
Ø
Ø
Ø
Ø
Ø
+
+
+
+
+
+
+
+
+
+
+
+
+
AT+CGATT
+
AT+CGREP
+
AT+CGDATA
AT+CGDCONT
AT+CGPADDR
Ø
+
Ø
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
212
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
AT+CGQMIN
AT+CGQREQ
AT+CGREG
AT+CGSMS
AT^SGCONF
Ø
Ø
Ø
Ø
Ø
+
+
+
+
-
+
+
+
+
-
+
+
+
+
-
Commands for Internet services
AT^SICS
AT^SICI
AT^SISS
AT^SISI
Ø
Ø
Ø
Ø
Ø
Ø
Ø
Ø
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
AT^SISO
AT^SISC
AT^SISR
AT^SISW
-
+
+
+
+
Ø
Ø
Ø
Commands for short messages
AT+CMGD
AT+CMGF
AT+CMGL
AT+CMGR
AT+CMGS
AT+CMGW
AT+CMSS
AT+CNMI
AT+CPMS
AT+CSCA
AT+CSCB
AT+CSMP
AT+CSMS
Ø
Ø
+
+
-
Ø
-
+
-
+
+
+
+
+
+
+
+
+
+
+
Ø
Ø
Ø
Ø
Ø
+
+
+
+
+
+
+
+
+
+
+
+
Ø
Ø
+
Ø
Ø
Ø
Ø
Ø
Ø
Ø
+
+
+
+
+
Command related to the SIM card
AT+CRSM
Commands for the phone book
AT+CPBR
Ø
+
+
Ø
Ø
+
+
Ø
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
213
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
AT+CPBS
AT+CPBW
Ø
Ø
+
+
+
+
+
Ø
Commands related to the hardware
AT+CALA
AT+CCLK
Ø
Ø
-
-
-
-
-
-
Commands for audio control
AT^SWSPATH
AT+CMIC
AT^ECHO
AT+CLVL
AT+CMUT
Other commands
ATA/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Ø
Ø
Ø
Ø
Ø
-
Ø
-
ATS3
Ø
Ø
Ø
ATS4
-
-
ATS5
-
-
17.1 List of URC Commands
Table 17-2 List of URC commands
AT Command
URC
Commands for configuration
AT+CFUN
AT+CFUN
AT^SMSO
^SYSSTART
^SYSSTART CHARGE ONLY MODE
^SHUTDOWN
Commands for status control
AT+CMER
AT^SIND
AT^SIND
+CIEV: <indDescr>, <indValue>1[, <indValue>2]
+CIEV: <indDescr>, <indValue>
+CIEV: <indDescr>, <nitzUT>, <nitzTZ>, <nitzDST>
Commands for call control
AT+CRC RING
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
214
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
AT+CRC
+CRING: <type>
Commands for network services
AT+CREG
AT+CREG
+CREG: <stat>
+CREG: <stat>[, <lac>, <ci>]
Commands for Internet services
AT^SISO
AT^SISR
AT^SISW
^SIS
^SISW: <srvProfileId>, <urcCauseId>
^SISR: <srvProfileId>, <urcCauseId>
^SISW: <srvProfileId>, <urcCauseId>
^SIS: <srvProfileId>, <urcCause>[, [<urcInfoId>][,
<urcInfoText>]]
Commands for data services
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGEREP
AT+CGREG
+CGEV: REJECT <PDP_type>, <PDP_addr>
+CGEV: NW REACT <PDP_type>, <PDP_addr>, [<cid>]
+CGEV: NW DEACT <PDP_type>, <PDP_addr>, [<cid>]
+CGEV: ME DEACT <PDP_type>, <PDP_addr>, [<cid>]
+CGEV: NW DETACH
+CGEV: ME DETACH
+CGEV: NW CLASS <class>
+CGEV: ME CLASS <class>
+CGREG: <stat>
Commands for short messages
AT+CNMI
AT+CNMI
AT+CNMI
AT+CNMI
+CMTI: <mem3>, <index>
+CMT: <length><CR><LF><pdu>
+CBM: <length><CR><LF><pdu>
+CDS: <length><CR><LF><pdu>
Commands related to the hardware
AT+CALA
AT+CALA
+CALA: [<text>]
^SYSSTART ALARM MODE
+CALA: <text>
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
215
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
17.2 List of CME/CMS ERROR Codes
Table 17-3 Common “CME ERROR” codes
<err> Code
Text (AT+CMEE=2)
phone failure
0
1
no connection to phone
phone-adapter link reserved
Operation not allowed
Operation not supported
PH-SIM PIN required
PH-FSIM PIN required
PH-FSIM PUK required
SIM not inserted
2
3
4
5
6
7
10
11
12
13
14
15
16
17
18
20
21
22
23
24
25
26
27
30
31
32
SIM PIN required
SIM PUK required
SIM failure
SIM busy
SIM wrong
Incorrect password
SIM PIN2 required
SIM PUK2 required
Memory full
invalid index
not found
Memory failure
text string too long
invalid characters in text string
dial string too long
invalid characters in dial string
no network service
Network timeout
Network not allowed emergency calls only
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
216
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
<err> Code
40
Text (AT+CMEE=2)
Network personalization PIN required
Network personalization PUK required
Network subset personalization PIN required
Network subset personalization PUK required
service provider personalization PIN required
service provider personalization PUK required
Corporate personalization PIN required
Corporate personalization PUK required
No text information is available currently.
Unknown
41
42
43
44
45
46
47
99
100
101
102
132
133
134
PUK1 blocked
PUK2 blocked
service option not supported
requested service option not subscribed
service option temporarily out of order
Table 17-4 “CME ERROR” codes related to the GPRS
<err> Code
103
Text (AT+CMEE=2)
Illegal MS
106
Illegal ME
107
GPRS services not allowed
PLMN not allowed
111
112
Location area not allowed
Roaming not allowed in this location area
unspecified GPRS error
PDP authentication failure
invalid mobile class
113
148
149
150
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
217
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
Table 17-5 “CMS ERROR” codes related to the SMS
<err> Code
0…127
128…255
300
Text (AT+CMEE=2) (Not Supported Currently)
3GPP TS 24.011[6] clause E.2 values
3GPP TS 23.040[3] clause 9.2.3.22 values
ME failure
301
SMS service of ME reserved
Operation not allowed
Operation not supported
Invalid PDU mode parameter
Invalid text mode parameter
SIM not inserted
302
303
304
305
310
311
SIM PIN required
312
PH-SIM PIN required
SIM failure
313
314
SIM busy
315
SIM wrong
316
SIM PUK required
317
SIM PIN2 required
318
SIM PUK2 required
Memory failure
320
321
Invalid memory index
Memory full
322
330
SMSC address unknown
no network service
Network timeout
331
332
340
NO +CNMA ACK EXPECTED
Unknown error
500
Table 17-6 “CME ERROR” codes related to the MG323 only
<err> Code
Text (AT+CMEE=2)
615
network failure
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
218
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
616
639
640
764
765
767
network is down
service type not yet available
operation of service temporary not allowed
missing input value
invalid input value
operation failed
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
219
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
17.3 Acronyms and Abbreviations
Table 17-7 Acronyms and abbreviations
Acronym and Abbreviation
Full Spelling
3GPP
APN
ARFCN
BCC
BCCH
BER
CDMA
CS
Third Generation Partnership Project
Access Point Name
Absolute Frequency Channel Number
Base station Color Code
Broadcast Control Channel
Bit Error Rate
Code Division Multiple Access
Circuit Switched (CS) domain
Closed User Group
CUG
DCE
DCS
DTE
Data Circuit Equipment
Data Coding Scheme
Data Terminal Equipment
GPRS
GSM
IMEI
General Packet Radio Service
Global System for Mobile Communications
International Mobile Equipment Identity
International Mobile Subscriber Identity
internet Protocol
IMSI
IP
ITU-T
International Telecommunication
Union-Telecommunication Standardization Sector
Mobile Country Code
MCC
ME
Mobile Equipment
MNC
MS
Mobile Network Code
Mobile Station
MSIN
MSISDN
MT
Mobile Station Identification Number
Mobile Station International ISDN Number
Mobile Terminal
NCC
Network Color Code
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
220
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
Acronym and Abbreviation
Full Spelling
NOM
PAT
Network Operation Mode
Priority Access Threshold
Packet Broadcast Control Channel
Position Determination
Packet Data Protocol
PBCCH
PD
PDP
PDU
PIN
Protocol Data Unit
Personal Identity Number
Public Land Mobile Network
Point-to-Point Protocol
PIN Unblocking Key
PLMN
PPP
PUK
PS
Packet Switched (PS) domain
Quality of Service
QoS
RAC
RPLMN
RSSI
SCA
SDU
SIM
Routing Area Code
Registered PLMN
Receive Signal Strength Indicator
Service Center Address
Service Data Unit
GSM Subscriber Identity Module
Short Message
SM
SMS
SMSC
SNDCP
TA
Short Message Service
Short Message Service Center
Subnetwork Dependent Convergence Protocol
Timing Advance Value
TA
Terminal Adapter
TE
Terminal Equipment
TPDU
TCH
UIM
Transfer Protocol Data Unit
Traffic Channel
User Identity Module
URC
USIM
USSD
Unsolicited Result Code
Universal Subscriber Identity Module
Unstructured Supplementary Service Data
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
221
Download from Www.Somanuals.com. All Manuals Search And Download.
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification
Appendix
Acronym and Abbreviation
Full Spelling
VP
Validity Period
XCD
Carrier Detection Signal
DTE Ready Signal
Wideband CDMA
XER
WCDMA
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 02 (2010-11-23)
222
Download from Www.Somanuals.com. All Manuals Search And Download.
|