AT Command Interface Specification
No Warranty
Version Date Chapter Descriptions
About This Document
History
Contents
Commands for Status Control
Commands for Security Control
Commands for Call Control
Commands for Network Services
110
135
156
160
182
204
Figures
Tables
142
Product Description
Content Description
Overall Description
A command or a response
Overview of AT Command Interfaces
Description of AT Commands
Instructions for Use
Types of AT Commands
Prefixed with +
1Format of a basic command
Command Format Description
3Types and formats of extended and vendor-defined commands
Command Command Format Description Type
Abort Attributes of AT Commands
Rules for Running AT Commands
Organization of This Document
Chapter Describes
Chapter Describes
Commands for Configuration
AT&F Command for Restoring Factory Settings
AT\Q AT&C
AT+CMER
AT+CIND
AT&D
Examples of Results Returned by the &V Command
AT&V Command for Querying the Current Configuration
Execution command
AT Commands
AT&W Command for Storing the Current Configuration
Error errCRLF
ATS3 ATS4 ATS5
ATQ Command for Controlling the Return of Execution Results
ATS7 AT+CR
Connect
ATV Command for Setting the Formats of ME Responses
String Format Numeric Meaning
Ring
Error
ATZ Command for Restoring the Settings Saved by the User
ATE Command for Setting Echo
Busy
Querying the Supported Work Modes
AT+CFUN Command for Setting the Work Mode
Test command
Fun Function Description Remarks
Setvice
7Relations between work modes and services
Setting Value
URC
Read AT+CFUN? command
Reading the Current Work Mode
Setting the Work Mode
Write
Execution Atsmso command
Atsmso Command for System Shutdown
Setting System Shutdown
Examples
AT+GCAP +GCAP +CGSM
Execution AT+GCAP command
Name string for example, +CGSM
AT+GCAP=?
Reading the Terminal Error Reporting Mode
11 AT+CMEE Command for Setting Terminal Error Reporting
Querying the Error Reporting Mode Supported by the Terminal
Test AT+CMEE=? command
Test AT+CSCS=? command
12 AT+CSCS Command for Setting the TE Character
Setting the Terminal Error Reporting Mode
Querying the Character Set Supported by the TE
Reading the Character Set of the TE
Setting the Character Set of the TE
Default value UCS2
Value
Str Value
Atscfg Extended Command for Setting Configuration Items
Test ATSCFG=? command
Value Description
Setting Configuration Items
Sysstart Command for Unsolicitedly Reporting Module Startup
Reading the Settings for Configuration Items
Read ATSCFG? command
URC Crlfshutdowncrlf
Querying the Supported Settings for Event Reporting
Commands for Status Control
AT+CMER Command for Setting Event Reporting
Test AT+CMER=? command
Setting the Event Reporting Mode
AT+CIND Command for Controlling Indication Events
Reading the Current Settings for Event Reporting
Test AT+CIND=? command
IndDescr IndValue
Reading the Current Indication Status
Setting Whether to Report Indication Events
Read AT+CIND? command
Sysstart
Atsind Extended Command for Controlling Indication Events
Querying the Supported Report Events
AT+CIND=?
IndDescr IndValue
Reading the Current Event Reporting Mode
Read
Querying the Supported Radio Networks
AT+WS46 Command for Selecting a Radio Network
Test AT+WS46=? command
Crlfsind
Read AT+WS46? command
+CIEV Command for Indicating the Status Change
Setting the Radio Network to Be Registered
Reading the Current Radio Network
AT&C Command for Setting the DCD Usage State
Commands for Serial Port Control
AT\Q Command for Enabling Software or Hardware Flow Control
AT\Q command sets the flow control mode
AT&D Command for Setting the DTR Usage State
AT&S Command for Setting the DSR Usage State
Read AT+IPR? command
AT+IPR Command for Setting the Baud Rate
Test AT+IPR=? command
Querying the Supported Baud Rates of the DTE-DCE
Querying the Supported Settings for Multiplexing
AT+CMUX Command for Setting Multiplexing
Setting the Baud Rate of the DTE-DCE
Test AT+CMUX=? command
Issue 02 Huawei Proprietary and Confidential
Case of an error CRLF+CME Error errCRLF
Reading the Current Settings for Multiplexing
Setting Multiplexing
Command
Checking Whether a PIN Management Command Exists
Commands for Security Control
AT+CPIN Command for PIN Management
Reading the Password Entry Request
Responding to the Password Entry Request
Example Enter the PIN code for unlocking
AT+CLCK command locks and unlocks the device
AT+CLCK Command for Locking and Unlocking the Device
Checking the Devices Supported by This Command
AT+CPIN? +CPIN SIM PIN
Locking and Unlocking the Device
AT+CLCK=SC,2
AT+CPWD Command for Modifying the Password
AT+CPWD command modifies the password
+CLCK
AT+CPWD=?
Modifying the Password
Test
+CLCK0
Example Run AT+CPWD to modify the PIN code
Card
Commands for Identification
ATI Command for Querying the Product Information
+GCAP +CGSM
AT+CGMI/GMI Command for Querying the Vendor Information
ATI
ATI4 Huawei MG323
Querying the Vendor Information Request
AT+CGMM/GMM Command for Querying the Product Model
AT+CGMM/GMM command queries the product model
Query the vendor information
AT+CGMM
Querying the Product Model Number Request
Example Query the product model number
MG323
AT+CGMR
Querying the Software Version Number
Example Query the software version number
11.810.01.00.00 OK AT+GMR
Querying the Imei
AT+CGSN/GSN Command for Querying the Imei
Checking Whether the Command for Querying the Imei Exists
Char
Test AT+CIMI=? command
AT+CIMI Command for Querying the Imsi
Checking Whether the Command for Querying the Imsi Exists
Querying the Imsi
46009755200774
Example Query the Imsi
AT+CIMI
Case of failed link establishment Crlfno Carriercrlf
Commands for Call Control
ATD Command for Originating a Call
Carriercrlf
ATD*99# Command for Requesting the Gprs Service
ATD*98# Command for Requesting the Gprs IP Service
Crlfconnectcrlf
ATH Command for Hanging Up the Connection
Execution ATHn command
Crlfokcrlf
ATA Command for Answering a Call or Data Services
Reading the Settings of the Automatic Answer Data Services
Crlfno Carriercrlf
Setting Unsolicitedly Answering Data Services
Reading the Set Waiting Duration Request
Querying the Supported RLP Parameters
Setting the Waiting Duration
Test AT+CRLP=? command
AT+CBST Command for Setting the Bearer Service Type
Setting the Bearer Service Type
Querying the Supported Bearer Service Types
Querying the Current Bearer Service Type
Test AT+CBST=? command
Execution +++ Command
10 +++ Command for Switching Data Mode to Command Mode
ATO Command for Switching Command Mode to Data Mode
Execution ATOn command
12.2 AT+CHUP Command for Hanging Up
12 AT+CHUP Command for Hanging Up Data Services
13 AT+CR Command for Setting the Service Reporting Mode
Checking Whether AT+CHUP Hang-up Is Supported
Mode integer Default value disables service reporting
Querying the Supported Settings for Service Reporting
Reading the Current Settings for Service Reporting
Connect
Querying the Supported Settings for the Cell Result Codes
14 AT+CRC Command for Setting the Cell Result Codes
Setting Service Reporting
AT+CRC=?
Settings the Cell Result Codes
15 AT+VTS Command for Sending the Dtmf Tone
Querying the Current Settings for the Cell Result Codes
AT+VTS command sends the Dtmf tone
Supported nsCRLF
Querying the Settings Supported by the AT+CLIP Command
Sending the Dtmf Tone
AT+CLIP=?
16.4 +CLIP Command for Unsolicitedly Reporting the CLI
Reading the Settings of the Clip Service
Setting the Clip
MCRLF
URC Crlfringcrlf
Ring Command for Unsolicitedly Reporting Incoming Calls
Type character string. -3 lists the values 3type values
Checking Whether This Command Is Supported
Commands for Network Services
AT+COPN Command for Querying the Operator Name
AT+COPN command queries the operator name
Reading the List of Operators
AT+COPS Command for Selecting Operators
Execution AT+COPN command
AT+COPN=?
Crlfokcrlf
AT+COPS=?
Setting the Current Operator Information
Example Obtain the list of available operator information
AT+COPS?
AT+CREG command queries network registration
AT+CREG Command for Querying Network Registration
Checking the Parameter Range Supported by This Command
Case of an error during command execution
Setting the Status of Network Registration
Querying the Current Status of Network Registration
AT+CREG=2
AT+CSQ Command for Querying the Signal Quality
AT+CREG?
CRLF+CSQ list of supported rssis,list of supported bersCRLF
Example Query the parameter range supported by the command
Atsmonc Command for Querying the Cell Information
Querying the Current Signal Quality
AT+CSQ=?
Querying the Cell Information
Checking Whether This Command Is Available
Test ATSMONC=? command
Atsmonc
Atsmonc Smonc
ATSMONC=?
Example Query the current cell information
ATSMOND=?
Execution Atsmond command
RSSI,BER
ATMONI=?
BER bit error rate 0-7
Atsmond
Parameter values set for the ME in different states
1List of parameters for the serving cell
Parameter Description
MCC MNC LAC
ME has accessed the cell and registered with the network
Serving cell Dedicated Channel
NCC BCC PWR
Execution Atmoni command
Crlfcrlfokcrlf
ATMONI=1
ATMONI=?
Atmoni
DBm Q ChMod
Atmonp Command for Monitoring Idle Neighbor Cells
PWR
ATMONP=?
Case of an error related to the MT during command
Execution CRLF+CME Error errCRLF
Execution Atmonp command
Obtaining the Monitoring Information About Neighbor Cells
ATMONP=?
Monp
ATMONP=1
Example Query the information about neighbor cells
Atmonp
Chann rs DBm MCC MNC BCC 712 460 001 735 705
Bcch
Atsmong Command for Gprs Monitoring
712 20 -73 460
NOM
Pbcch
PAT
RAC
Execution Atsmong command
Crlfbcch G Pbcch PAT MCC MNC NOM TA
Smong 1,1-100
Example Obtain the parameter range
ATSMONG=?
ATSMONG=1,1
Atsmong
Bcch Pbcch PAT MCC MNC NOM TA RAC
Bcch Pbcch PAT MCC MNC NOM RAC
552 460 255
Atsplm Command for Reading the Plmn List
Atsplm command reads the Plmn list
Example Query the list of operators saved on the ME
Execution Atsplm command
Querying the List of Operator Names Saved on the ME
Atsplm
AT+CPOL command sets the list of preferred operators
Default value operator information oper in numeric format
Operator indicates an operator name in numeric format
Setting the List of Preferred Operators
Querying the List of Preferred Operators
Example Add a preferred operator AT+CPOL=1,2,46000
Querying the Current Range of Preferred Operators
Atsplr Command for Querying Preferred Operators
Atsplr command queries preferred operators
Indexa sequence number range supported by the SIM card
Atsplw Command for Writing Preferred Operators
ATSPLR=1,2
14 AT+CNUM Command for Querying Subscriber Numbers
Writing the Information About Preferred Operators
CRLF+CNUM
Execution AT+CNUM command
Querying the Msisdn Related to Subscribers
AT+CNUM
AT+CPBS=ON
AT+CPBW=1,13903702769,145 Query the Msisdn
AT+CPBS=ON AT+CPBW=1 AT+CNUM
AT+CGACT=?
Commands for Data Services
Querying the Supported Status of PDP Context
Reading the Activation State of the PDP Context
Setting the Activation State of the PDP Context
Case of an error related to the MT CRLF+CME
AT+CGACT?
AT+CGACT=1,1
Checking the Supported Gprs Service State
AT+CGACT? +CGACT 1,0
AT+CGACT?
AT+CGATT?
Querying the Current Gprs Service State
Setting the Gprs Service State
AT+CGATT=0
AT+CGEREP=?
AT+CGEREP Command for Reporting Gprs Events
Checking the Supported Gprs Event Reporting Mode
URC
Reading the Gprs Event Reporting Mode
Setting the Gprs Event Reporting Mode
Network requests for Gprs detachment
AT+CGDATA Command for Entering the Data Mode
URC +CGEV NW Detach
URC +CGEV MT Detach
Case of failed communication establishment Crlfno
Case of failed command execution
Establishing Communication Between the TE and Network
AT+CGDATA=?
AT+CGDCONT?
AT+CGDCONT Command for Defining the PDP Context
Run +++ to quit the data mode and enter the command mode
+CGDCONT1,IP,1234,0.0.0.0,0,0 Establish the communication
Querying the Range of PDP Related Parameters
AT+CGDCONT=?
+CGDCONT1,IP,1234,,0,0
Setting the Status of the PDP Context
Reading the Status of the PDP Context
CRLF+CGDCONT …CRLFCRLF Crlfokcrlf
Reading the PDP Address List of the Specified PDP Context
AT+CGPADDR Command for Reading the PDP Address
Querying the Supported PDP Index Value
AT+CGPADDR=?
Read the PDP address. AT+CGPADDR=1 +CGPADDR1,192.168.50.64
Querying the Supported QoS Parameter Range
Delay Level Average Percentile Transmission Delay
When the size of SDU is 1024 octets
AT+CGQMIN=?
Issue 02 Huawei Proprietary and Confidential 124
Querying the Minimum QoS of All PDP Contexts
CRLF+CGQMIN
Checking the Parameter Range Supported by the Command
AT+CGQREQ Command for Setting the Requested QoS Profile
Setting the Minimum QoS of a PDP Context
AT+CGQREQ=?
Delay Level Average Transmission Delay Percentile
Issue 02 Huawei Proprietary and Confidential 128
Write comm Functi on Respo nse
Setting the QoS of a PDP Context
Querying All QoS Levels Specified by the TE
CRLF+CGQREQ
AT+CGREG=?
4 +CGREG Command for Reporting Unsolicitedly
Querying the Supported SMS Bearer Domains
10 AT+CGSMS Command for Selecting the MO SMS Bearer Domain
AT+CGSMS command sets the MT SMS bearer domain
Reading the Current SMS Bearer Domain
Setting the SMS Bearer Domain
Issue 02 Huawei Proprietary and Confidential 134
Checking Whether the Sics Command Is Available
Commands for Internet Services
Atsics Command for Creating a Connection Profile
Atsics command can create and edit a connection profile
Currently
Reading the Information About Connection Profiles
CSD Not Supported
Setting the Internet Connection Profile
Query the status of the connection profile
Atsici Command for Querying the Connection Profile
Atsici command queries the status of the connection profile
ATSICS?
ATSICI=?
Querying the ID of the Defined Connection Profile
Querying the Status of the Connection Profile
ATSICI?
ATSICI=?
Displaying the Status of the Specified Connection Profile
Example Query the ID of the supported connection profile
ATSICI?
Atsiss command sets the service profile
Atsiss Command for Creating the Service Profile
Reading the Status of the Service Profile
Test ATSISS=? command
SrvParmTag Mandatory/Optional
SrvParmTag SrvParmValue
Setting the Internet Service Profile
Query the status of the service profile
Atsisi Command for Querying the Service Profile
Querying the ID of the Defined Service Profile
Atsisi command queries the status of the service profile
Querying the Status of the Service Profile
Crlfsisi
ATSISI?
Displaying the Status of the Specified Service Profile
ATSISI=?
This command starts a specified Internet service
Atsiso Command for Starting Internet Services
Querying the Open Status of All Services
ATSISO?
ATSISO=0
Starting a Specified Internet Service
Example Enable service
ATSISO?
Atsisc Command for Stopping Internet Services
Stopping a Specified Internet Service
Test ATSISW=? command
Atsisw Command for Writing Data for Internet Services
Writing Data to the Buffer of a Service
ATSISC=0
ATSISW=?
Sisw Command for Reporting Unsolicitedly
Example Check whether the command is available
Atsisr command reads data out from the service buffer
Atsisr Command for Internet Services to Read Data
Checking Whether the Atsisr Command Is Available
User enters 20 characters here
Reading Data Out From the Buffer of an Internet Service
Crlfsisr
Sisr Command for Reporting Unsolicitedly
Exmaples
URC Crlfsis srvProfileId,urcCause, urcInfoId,urcInfoTextCRLF
AT+CMGD=?
Commands for Short Messages
11.1 AT+CMGD Command for Deleting Short Messages
Example AT+CMGD=? +CMGD1-255 Check the parameter range
Case of an error related to the MS CRLF+CMS
Deleting Short Messages
AT+CMGD=1
Stored on the SIM card
Checking the Supported Format of Short Messages
Delete all the short messages that are
AT+CMGF=?
AT+CMGF=0
Setting the Format of Short Messages
Reading the Format of Short Messages
AT+CMGF?
AT+CMGF=0, that is, when short messages are in PDU mode
Checking the Supported Status of Short Messages
Oct Oct to 1Oct 12 Oct
Reading the List of Short Messages
SCA
AT+CMGL=4
11.4 AT+CMGR Command for Reading Short Messages
+CMGL 1,1 …Short messages in PDU mode
AT+CMGR=?
Index of the SIM card CRLF+CME Error
When short messages are in PDU mode +CMGR=0
CRLF+CMS Error errCRLF
Reading Short Messages
This command sends short messages in PDU mode +CMGF=0
11.5 AT+CMGS Command for Sending Short Messages
Test AT+CMGS=? command
Write command
AT+CMGS=20
11.6 AT+CMGW Command for Storing Short Messages
AT+CGSMS=1 AT+CMGF=0
Storing Short Messages
This command stores short messages in PDU mode +CMGF=0
Example Store a short message in PDU mode
AT+CMGF=0 AT+CMGW=56
Sending a Short Message at the Specified Location
Test AT+CMSS=? command
When the short message is in PDU mode +CMGF=0
Short message is successfully sent
Location whose index is +CMSS
Example Send a stored short message in PDU mode
AT+CMGF=0 AT+CMSS=8
AT+CNMI=?
Issue 02 Huawei Proprietary and Confidential 169
AT+CNMI=1,1,0,0,0
Setting the Status of Short Message Notification
Reading the Status of Short Message Notification
CRLF+CNMI
AT+CPMS=?
AT+CPMS command sets the storage location of short messages
Checking the Storage Location of Short Messages
CRLF+CPMS
Reading the Status of Storage Location
AT+CPMS?
AT+CPMS=?
11.10 AT+CSCA Command for Setting the Number
Setting the Storage Location
AT+CPMS?
Reading the Currently Registered Number of the Smsc
Checking Whether the Command Is Available
Response z When the Smsc has been registered
Number is organized by the network
Setting the Number of the Smsc
Management or service. The subscriber cannot use this value
Number falls within the number range of the home country
+CSCA 1380063859
AT+CSCB command selects the type of cell messages
AT+CSCA?
Example Query the current CBM information
Setting the Current CBM Type
Reading the Current CBM Type
AT+CSCB?
AT+CSCB=?
11.12 AT+CSMS Command for Setting the Message Service Type
AT+CSMS command sets the message service type
+CSCB 0,1
Example AT+CSMS=? +CSMS
Reading the Current Message Service Type
Setting the Message Service Type
AT+CSMS?
+CMTI command is used to indicate that a new SM is received
11.13 +CMTI Command for Unsolicitedly Reporting SMS Arrival
11.14 +CMT Command for Unsolicitedly Reporting a New SM
+CMT command is used to indicate that a new SM is received
11.15 +CBM Command for Unsolicitedly Reporting a Cell SM
AT+CRSM=?
Commands for the SIM Card
Checking Whether the +CRSM Command Is Available
Accessing the SIM Database
CRLF+CRSM
Checking the Parameter Range Supported by the +CPBR Command
Commands for the Phone Book
13.1 AT+CPBR Command for Reading the Phone Book
AT+CPBR command reads the phone book
CRLF+CPBR
13.1.2 +CPBR Command for Reading the Phone Book
AT+CPBR=?
13.2 AT+CPBW Command for Writing the Phone Book
AT+ CPBW=?
Example Query the parameter range supported by this command
Writing a Record into the Phone Book
AT+CPBS=?
13.3 AT+CPBS Command for Selecting the Phone Book Memory
Checking the Value Range Supported by the +CPBS Command
AT+CPBS=?
Setting the Memory Type of the Phone Book
Reading the Current Memory of the Phone Book
+CPBS FD,SM,ON,LD,MC,RC,EN Example
AT+CPBS=SM
AT+CPBS?
+CPBS SM,23,250 Example
Integer, which indicates the index of the alarm clock array
Commands for Hardware Control
Case of an error related to the MT CRLF+CME Error
14.1 AT+CALA
AT+CALA?
Querying the Set Alarm Clock
Setting an Alarm Clock
+CALA 0,0,1-16 Example Query the current alarm clock
14.2 AT+CCLK Command for Setting the System Time
14.1.4 +CALA Command for Reporting Unsolicitedly
AT+CALA=?
Querying the Current System Time
Setting the System Time
Test ATCCLK=? command
AT+CCLK?
Example Query the current system time
AT+CCLK?
This chapter describes the AT commands for audio control
Commands for Audio Control
Atswspath Command for Switching Between Audio Channels
Atswspath command switches the audio channel
Reading the Current Audio Channel
Switching the Audio Channel
AT+CMIC command adjusts the the mircophone gain level
Querying the Supported Microphnoe Gain Levels
Atecho command suppresses the echo
Atecho Command for Suppressing the Echo
Setting the Microphone Gain Level
Querying the Current Microphone Gain Level
ATECHO=?
Case of an errorCRLFERRORCRLF
Querying the Supported Echo Suppressing Functions
ATECHO?
Querying the Supported Speaker Volume Level
15.4 AT+CLVL Command for Adjusting the Speaker Volume
Setting the Echo Suppressing Function
AT+CLVL command adjusts the speaker volume
Setting the Speaker Volume
15.5 AT+CMUT Command for Muting and Unmuting the Microphone
Reading the Current Speaker Volume
AT+CMUT command is used to mute and unmute the microphone
Test AT+CMUT=? command
Querying the Supported Muting Settings for the Microphone
Reading the Curent Muting Settings of the Microphone
AT+CMUT?
Setting the Muting Function of the Microphone
Execution Command
Other Commands
16.1 A/ Command for Executing the Previous Command Again
Execution command Function
ATS3?
Querying the Current Command Line Ending Character
Setting the Command Line Ending Character
Querying the Current Format Character
16.3 ATS4 Command for Setting the Response Format Character
013 Example Set the command line ending character ATS3=13
CRLFnCRLFCRLFOKCRLF
Example Query the current response format character
16.4 ATS5 Command for Setting the Backspace Character
Setting the Response Format Character
ATS4?
ATS5?
Setting the Current Backspace Character
Querying the Current Backspace Character
ATS5=8
Crlftherm modeCRLF
Appendix
List of effects on AT commands imposed by SIM PIN
1List of effects on AT commands imposed by SIM PIN
Commands for security control
Commands for status control
Commands for serial port control
Commands for identification
ATS7 AT+CRLP AT+CBST
Commands for network services
Commands for data services
ATO AT+CHUP AT+CR AT+CRC AT+VTS AT+CLIP
Command related to the SIM card
Commands for Internet services
Commands for short messages
Commands for the phone book
Commands for audio control
List of URC Commands
Commands related to the hardware
Other commands
AT+CGEREP
AT+CALA Sysstart Alarm Mode
SIS
AT+CGEREP +CGEV NW Detach +CGEV ME Detach
Err Code Text AT+CMEE=2
List of CME/CMS Error Codes
3Common CME Error codes
4CME Error codes related to the Gprs
Err Code Text AT+CMEE=2 Not Supported Currently
5CMS Error codes related to the SMS
6CME Error codes related to the MG323 only
No +CNMA ACK Expected
Page
Acronym and Abbreviation Full Spelling
Acronyms and Abbreviations
7Acronyms and abbreviations
PIN
PDP
PDU
Plmn
Wcdma
XCD
XER