Name SIM900_ATC_V1.00 SIM900 ATC V1.00
SIM900_ATC_V1_00
User Manual: SIM900_ATC_V1.00
Open the PDF directly: View PDF .
Page Count: 198
Download | ![]() |
Open PDF In Browser | View PDF |
AT Commands Set SIM900_ATC_V1.00 SIM900 AT Commands Set Document Title: SIM900 AT Commands Set Version: 1.00 Date: 2010-1-15 Status: Release Document Control ID: SIM900_ATC_V1.00 General Notes SIMCOM offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCOM. The information provided is based upon requirements specifically provided to SIMCOM by the customers. SIMCOM has not undertaken any independent search for additional relevant information, including any information that may be in the customer’s possession. Furthermore, system validation of this product designed by SIMCOM within a larger electronic system remains the responsibility of the customer or the customer’s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of Shanghai SIMCom Wireless Solutions Ltd, copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2010 SIM900R01_ATC_V1.00 2 15.01.2010 SIM900 AT Commands Set Version History Version Chapter What is new V1.00 New version Created on the basis of SIM900 AT Test Result SIM900R01_ATC_V1.00 3 15.01.2010 SIM900 AT Commands Set Contents Version History .................................................................................................................................3 1 Introduction..................................................................................................................................10 1.1 Scope of the document ..........................................................................................................10 1.2 Related documents ................................................................................................................10 1.3 Conventions and abbreviations ............................................................................................. 11 1.4 AT Command syntax ............................................................................................................. 11 1.4.1 Basic syntax ................................................................................................................... 11 1.4.2 S Parameter syntax.........................................................................................................12 1.4.3 Extended Syntax.............................................................................................................12 1.4.4 Combining AT commands on the same Command line.................................................12 1.4.5 Entering successive AT commands on separate lines.....................................................12 1.5 Supported character sets........................................................................................................12 1.6 Flow control ..........................................................................................................................13 1.6.1 Software flow control (XON/XOFF flow control).........................................................13 1.6.2 Hardware flow control (RTS/CTS flow control)............................................................14 2 AT Commands According to V.25TER ...................................................................................15 2.1 Overview of AT Commands According to V.25TER ............................................................15 2.2 Detailed Description of AT Commands According to V.25TER ...........................................16 2.2.1 A/ Re-issues The Last Command Given ........................................................................16 2.2.2 ATA ANSWER AN INCOMING CALL .......................................................................16 2.2.3 ATD Mobile Originated Call To Dial A Number............................................................17 2.2.4 ATDL Redial Last Telephone Number Used..................................................................23 2.2.5 ATE Set Command Echo Mode .....................................................................................24 2.2.6 ATH Hang up a call ........................................................................................................24 2.2.7 ATI Display Product Identification Information ............................................................25 2.2.8 ATL Monitor speaker loudness.......................................................................................25 2.2.9 ATM Monitor Speaker Mode .........................................................................................26 2.2.10 +++ Switch From Data Mode Or PPP Online Mode To Command Mode...................26 2.2.11 ATO Switch From Command Mode To Data Mode .....................................................26 2.2.12 ATP Select Pulse Dialing..............................................................................................27 2.2.13 ATQ Set Result Code Presentation Mode.....................................................................27 2.2.14 ATS0 Set Number Of Rings Before Automatically Answering The Call.....................28 2.2.15 ATS3 Set Command Line Termination Character ........................................................28 2.2.16 ATS4 Set Response Formatting Character ...................................................................28 2.2.17 ATS5 Set Command Line Editing Character................................................................29 2.2.18 ATS6 Set Pause Before Blind Dialing..........................................................................29 2.2.19 ATS7 Set Number Of Seconds To Wait For Connection Completion ..........................30 ATS7 Set Number Of Seconds To Wait For Connection Completion.....................................30 2.2.20 ATS8 Set Number Of Second To Wait For Comma Dial Modifier Encountered In Dial String Of D Command ............................................................................................................30 2.2.21 ATS10 Set Disconnect Delay After Indicating The Absence Of Data Carrier .............31 2.2.22 ATT Select Tone Dialing ..............................................................................................31 SIM900R01_ATC_V1.00 4 15.01.2010 SIM900 AT Commands Set 2.2.23 ATV TA Response Format ..........................................................................................31 2.2.24 ATX Set CONNECT Result Code Format And Monitor Call Progress .......................32 2.2.25 ATZ Reset default configuration ..................................................................................33 2.2.26 AT&C Set DCD Function Mode ..................................................................................34 2.2.27 AT&D Set DTR Function Mode...................................................................................34 2.2.28 AT&F Factory defined configuration ...........................................................................35 2.2.29 AT&V Display Current Configuration .........................................................................37 2.2.30 AT&W Store Active profile..........................................................................................37 2.2.31 AT+GCAP Request Complete TA Capabilities List .....................................................38 2.2.32 AT+GMI Request Manufacture Identification .............................................................38 2.2.33 AT+GMM Request TA Model Identification ...............................................................38 2.2.34 AT+GMR Request TA Revision Identification Of Software Release...........................39 2.2.35 AT+GOI Request Global Object Identification ............................................................39 2.2.36 AT+GSN Request TA Serial Number Identification (IMEI) ........................................40 2.2.37 AT+ICF Set TE-TA Control Character Framing ..........................................................40 2.2.38 AT+IFC TE-TA local flow control ...............................................................................41 2.2.39 AT+IPR Set TE-TA Fixed Local Rate ..........................................................................42 2.2.40 AT+HVOIC Disconnect Voice Call Only.....................................................................44 3 AT Commands According to GSM07.07......................................................................................45 3.1 Overview of AT Command According to GSM07.07 ...........................................................45 3.2 Detailed Descriptions of AT Command According to GSM07.07 ........................................46 3.2.1 AT+CACM Accumulated Call Meter (ACM) Reset Or Query ......................................46 3.2.2 AT+CAMM Accumulated Call Meter Maximum (ACM max) Set Or Query................47 3.2.3 AT+CAOC Advice Of Charge........................................................................................48 3.2.4 AT+CBST Select Bearer Service Type...........................................................................49 3.2.5 AT+CCFC Call Forwarding Number And Conditions ...................................................50 3.2.6 AT+CCWA Call Waiting Control ...................................................................................51 3.2.7AT+CEER Extended Error Report ..................................................................................53 3.2.8 AT+CGMI Request Manufacturer Identification ...........................................................55 3.2.9 AT+CGMM Request Model Identification ....................................................................55 3.2.10 AT+CGMR Request TA Revision Identification Of Software Release ........................56 3.2.11 AT+CGSN Request Product Serial Number Identification (Identical With +GSN).....56 3.2.12 AT+CSCS Select TE Character Set ..............................................................................56 3.2.13 AT+CSTA Select Type Of Address...............................................................................57 3.2.14 AT+CHLD Call Hold And Multiparty..........................................................................58 3.2.15 AT+CIMI Request International Mobile Subscriber Identity.......................................59 3.2.16 AT+CLCC List Current Calls Of ME...........................................................................59 3.2.17 AT+CLCK Facility Lock..............................................................................................60 3.2.18 AT+CLIP Calling Line Identification Presentation ......................................................62 3.2.19 AT+CLIR Calling Line Identification Restriction........................................................63 3.2.20 AT+CMEE Report Mobile Equipment Error................................................................64 3.2.21 AT+COLP Connected Line Identification Presentation ...............................................65 3.2.22 AT+COPS Operator Selection......................................................................................66 3.2.23 AT+CPAS Phone Activity Status..................................................................................68 SIM900R01_ATC_V1.00 5 15.01.2010 SIM900 AT Commands Set 3.2.24 AT+CPBF Find Phonebook Entries..............................................................................69 3.2.25 AT+CPBR Read Current Phonebook Entries ...............................................................70 3.2.26 AT+CPBS Select Phonebook Memory Storage............................................................71 3.2.27 AT+CPBW Write Phonebook Entry .............................................................................72 3.2.28 AT+CPIN Enter PIN.....................................................................................................74 3.2.29 AT+CPWD Change Password......................................................................................75 3.2.30 AT+CR Service Reporting Control ..............................................................................75 3.2.31 AT+CRC Set Cellular Result Codes For Incoming Call Indication .............................76 3.2.32 AT+CREG Network Registration.................................................................................77 3.2.33 AT+CRLP Select Radio Link Protocol Parameter........................................................79 3.2.34 AT+CRSM Restricted SIM Access ..............................................................................80 3.2.35 AT+CSQ Signal Quality Report ...................................................................................81 3.2.36 AT+FCLASS FAX: Select, Read Or Test Service Class..............................................81 3.2.38 AT+FMI FAX: Report Manufactured ID......................................................................82 3.2.39 AT+FMM FAX: Rreport Model ID ..............................................................................82 3.2.40 AT+FMR FAX: Report Revision ID ............................................................................83 3.2.41 AT+VTD Tone Duration...............................................................................................83 3.2.42 AT+VTS DTMF And Tone Generation ........................................................................84 3.2.43 AT+CMUX Multiplexer Control..................................................................................85 3.2.44 AT+CNUM Subscriber Number...................................................................................87 3.2.45 AT+CPOL Preferred Operator List...............................................................................88 3.2.46 AT+COPN Read Operator Names................................................................................88 3.2.47 AT+CFUN Set Phone Functionality. ............................................................................89 3.2.48 AT+CCLK Clock..........................................................................................................90 3.2.49 AT+CSIM Generic SIM Access ...................................................................................90 3.2.50 AT+CALM Alert Sound Mode.....................................................................................91 3.2.51 AT+CRSL Ringer Sound Level....................................................................................92 3.2.52 AT+CLVL Loud Speaker Volume Level ......................................................................92 3.2.53 AT+CMUT Mute Control.............................................................................................93 3.2.54 AT+CPUC Price Per Unit And Currency Table............................................................94 3.2.55 AT+CCWE Call Meter Maximum Event .....................................................................94 3.2.56 AT+CBC Battery Charge..............................................................................................95 3.2.57 AT+CUSD Unstructured Supplementary Service Data................................................96 3.2.58 AT+CSSN Supplementary Services Notification .........................................................97 4 AT Commands According to GSM07.05......................................................................................99 4.1 Overview of AT Commands According to GSM07.05..........................................................99 4.2 Detailed Descriptions of AT Commands According to GSM07.05.......................................99 4.2.1 AT+CMGD Delete SMS Message..................................................................................99 4.2.2 AT+CMGF Select SMS Message Format ....................................................................100 4.2.3 AT+CMGL List SMS Messages From Preferred Store ................................................101 4.2.4 AT+CMGR Read SMS Message ..................................................................................104 4.2.5 AT+CMGS Send SMS Message...................................................................................107 4.2.6 AT+CMGW Write SMS Message To Memory ............................................................108 4.2.7 AT+CMSS Send SMS Message From Storage.............................................................109 SIM900R01_ATC_V1.00 6 15.01.2010 SIM900 AT Commands Set 4.2.8 AT+CNMI New SMS Message Indications ................................................................. 110 4.2.9 AT+CPMS Preferred SMS Message Storage ............................................................... 113 4.2.10 AT+CRES Restore SMS Settings............................................................................... 114 4.2.11 AT+CSAS Save SMS Settings ................................................................................... 115 4.2.12 AT+CSCA SMS Service Center Address ................................................................... 115 4.2.13 AT+CSCB Select Cell Broadcast SMS Messages...................................................... 116 4.2.14 AT+CSDH Show SMS Text Mode Parameters .......................................................... 117 4.2.15 AT+CSMP Set SMS Text Mode Parameters .............................................................. 118 4.2.16 AT+CSMS Select Message Service............................................................................ 119 5 AT Commands for SIM Application Toolkit ..............................................................................121 5.1 STK AT command...............................................................................................................121 6 AT Commands Special for SIMCOM ........................................................................................123 6.1 Overview.............................................................................................................................123 6.2 Detailed Descriptions of Commands...................................................................................124 6.2.1 AT+SIDET Change The Side Tone Gain Level............................................................124 6.2.2 AT+CPOWD Power Off...............................................................................................124 6.2.3 AT+SPIC Times Remain To Input SIM PIN/PUK .......................................................125 6.2.4 AT+CMIC Change The Microphone Gain Level ........................................................125 6.2.5 AT+CALA Set Alarm Time..........................................................................................126 6.2.6 AT+CADC Read ADC .................................................................................................127 6.2.7 AT+CSNS Single Numbering Scheme .........................................................................128 6.2.8 AT+CDSCB Reset Cell Broadcast ...............................................................................128 6.2.9 AT+CMOD Configure Alternating Mode Calls ...........................................................128 6.2.10 AT+CFGRI Indicate RI When Using URC ................................................................129 6.2.11 AT+CLTS Get Local Timestamp ................................................................................129 6.2.12 AT+CEXTHS External Headset Jack Control............................................................130 6.2.13 AT+CEXTBUT Headset Button Status Reporting .....................................................131 6.2.14 AT+CSMINS SIM Inserted Status Reporting ............................................................132 6.2.15 AT+CLDTMF Local DTMF Tone Generation ...........................................................133 6.2.16 AT+CDRIND CS Voice/Data/Fax Call Termination Indication.................................133 6.2.17 AT+CSPN Get Service Provider Name From SIM ....................................................134 6.2.18 AT+CCVM Get And Set The Voice Mail Number On The SIM ................................135 6.2.19 AT+CBAND Get And Set Mobile Operation Band....................................................135 6.2.20 AT+CHF Configure Hands Free Operation................................................................136 6.2.21 AT+CHFA Swap The Audio Channels .......................................................................137 6.2.22 AT+CSCLK Configure Slow Clock ...........................................................................138 6.2.23 AT+CENG Switch On Or Off Engineering Mode......................................................138 6.2.24 AT+SCLASS0 Store Class 0 SMS To SIM When Received Class 0 SMS ................140 6.2.25 AT+CCID Show ICCID .............................................................................................141 6.2.26 AT+CMTE Set Critical Temperature Operating Mode Or Query Temperature ........141 6.2.27 AT+CSDT Switch On Or Off Detecting SIM Card ...................................................141 6.2.28 AT+CMGDA Delete All SMS...................................................................................142 6.2.29 AT+SIMTONE Generate Specifically Tone..............................................................143 AT+SIMTONE Generate Specifically Tone.........................................................................143 SIM900R01_ATC_V1.00 7 15.01.2010 SIM900 AT Commands Set 6.2.30 AT+CCPD Connected Line Identification Presentation Without Alpha String.........143 6.2.31 AT+CGID Get SIM Card Group Identifier................................................................144 6.2.32 AT+MORING Show State of Mobile Originated Call ..............................................144 6.2.33 AT+CMGHEX Enable To Send Non-ASCII Character SMS....................................145 6.2.34 AT+AUTEST Audio Channel Loopback Test...........................................................146 6.2.35 AT+CCODE Configure SMS Code Mode.................................................................146 6.2.36 AT+CIURC Enable Or Disable Initial URC Presentation .........................................146 6.2.37 AT+CPSPWD Change PS Super Password ...............................................................147 6.2.38 AT+EXUNSOL Enable /Disable Proprietary Unsolicited Indications .......................148 6.2.39 AT+CGMSCLASS Change GPRS Multislot Class ...................................................150 6.2.40 AT+CDEVICE View Current Flash Device Type .....................................................151 6.2.41 AT+CCALR Call Ready Query .................................................................................151 6.2.42 AT+GSV Display Product Identification Information................................................151 7 AT Commands for GPRS Support .............................................................................................153 7.1 Overview of AT Commands for GPRS Support..................................................................153 7.2 Detailed Descriptions of AT Commands for GPRS Support...............................................153 7.2.1 AT+CGATT Attach /Detach From GPRS Service........................................................153 7.2.2 AT+CGDCONT Define PDP Context ..........................................................................154 7.2.3 AT+CGQMIN Quality Of Service Profile (Minimum Acceptable) .............................156 7.2.4 AT+CGQREQ Quality Of Service Profile (Requested) ...............................................158 7.2.5 AT+CGACT PDP Context Activate Or Deactivate ......................................................159 7.2.6 AT+CGDATA Enter Data State ....................................................................................160 7.2.7 AT+CGPADDR Show PDP Address ............................................................................160 7.2.8 AT+CGCLASS GPRS Mobile Station Class................................................................161 7.2.9 AT+CGEREP Control Unsolicited GPRS Event Reporting .........................................162 7.2.10 AT+CGREG Network Registration Status .................................................................163 7.2.11 AT+CGSMS Select Service For MO SMS Messages ................................................164 8 AT Commands for TCPIP Application Toolkit...........................................................................166 8.1 Overview.............................................................................................................................166 8.2 Detailed Descriptions of Commands...................................................................................166 8.2.1 AT+CIPMUX Start Up Multi-IP Connection ...............................................................166 8.2.2 AT+CIPSTART Start Up TCP Or UDP Connection.....................................................167 8.2.3 AT+CIPSEND Send Data Through TCP Or UDP Connection.....................................169 8.2.4 AT+CIPQSEND Select Data Transmitting Mode ........................................................171 8.2.5 AT+CIPACK Query Previous Connection Data Transmitting State.............................171 8.2.6 AT+CIPCLOSE Close TCP Or UDP Connection .......................................................172 8.2.7 AT+CIPSHUT Deactivate GPRS PDP Context ...........................................................172 8.2.8 AT+CLPORT Set Local Port ........................................................................................173 8.2.9 AT+CSTT START Task And Set APN、USER NAME、PASSWORD ....................174 8.2.10 AT+CIICR Bring Up Wireless Connection With GPRS Or CSD...............................174 8.2.11 AT+CIFSR Get Local IP Address...............................................................................175 8.2.12 AT+CIPSTATUS Query Current Connection Status ..................................................175 8.2.13 AT+CDNSCFG Configure Domain Name Server......................................................176 8.2.14 AT+CDNSGIP Query The IP Address Of Given Domain Name ...............................177 SIM900R01_ATC_V1.00 8 15.01.2010 SIM900 AT Commands Set 8.2.15 AT+CIPHEAD Add An IP Head When Receiving Data ............................................178 8.2.16 AT+CIPATS Set Auto Sending Timer ........................................................................178 8.2.17 AT+CIPSPRT Set Prompt Of ‘>’ When Sending Data...............................................179 8.2.18 AT+CIPSERVER Configure As Server......................................................................180 8.2.19 AT+CIPCSGP Set CSD Or GPRS For Connection Mode..........................................180 8.2.20 AT+CIPSRIP Set Whether Display IP Address And Port Of Sender When Receive Data .......................................................................................................................................181 8.2.21 AT+CIPMODE Select TCPIP Application Mode.......................................................182 8.2.22 AT+CIPCCFG Configure Transparent Transfer mode ...............................................183 8.2.23 AT+CIPSHOWTP Display transfer protocol in IP head when receiving data.........183 9 Supported unsolicited result codes.............................................................................................185 9.1 Summary of CME ERROR Codes ......................................................................................185 9.2 Summary of CMS ERROR Codes ......................................................................................186 10 AT Commands Sample.............................................................................................................188 10.1 Profile Commands.............................................................................................................188 10.2 SIM Commands ................................................................................................................189 10.3 General Commands...........................................................................................................190 10.4 Call Control Commands....................................................................................................190 10.5 SIM Toolkit Commands ....................................................................................................193 10.6 Audio Commands..............................................................................................................193 10.7 SMS Commands ...............................................................................................................193 10.8 GPRS Commands .............................................................................................................194 SIM900R01_ATC_V1.00 9 15.01.2010 SIM900 AT Commands Set 1 Introduction 1.1 Scope of the document This document presents the AT Command Set for SIMCOM SIM900 series cellular engine. 1.2 Related documents You can visit the SIMCOM Website using the following link: http://www.sim.com SIM900R01_ATC_V1.00 10 15.01.2010 SIM900 AT Commands Set 1.3 Conventions and abbreviations In this document, the GSM engines are referred to as following term: 1) ME (Mobile Equipment); 2) MS (Mobile Station); 3) TA (Terminal Adapter); 4) DCE (Data Communication Equipment) or facsimile DCE (FAX modem, FAX board); In application, controlling device controls the GSM engine by sending AT Command via its serial interface. The controlling device at the other end of the serial line is referred to as following term: 1) TE (Terminal Equipment); 2) DTE (Data Terminal Equipment) or plainly “the application” which is running on an embedded system; 1.4 AT Command syntax The "AT" or "at" prefix must be set at the beginning of each Command line. To terminate a Command line enter. Commands are usually followed by a response that includes.” ” Throughout this document, only the responses are presented, are omitted intentionally. The AT Command set implemented by SIM900 is a combination of GSM07.05, GSM07.07 and ITU-T recommendation V.25ter and the AT commands developed by SIMCOM. Note: A HEX string such as “00 49 49 49 49 FF FF FF FF” will be sent out through serial port at the baud rate of 115200 immediately after SIM900 is powered on. The string shall be ignored since it is used for synchronization with PC tool. Only enter AT Command through serial port after SIM900 is powered on and Unsolicited Result Code “RDY” is received from serial port. If auto-bauding is enabled, the Unsolicited Result Codes “RDY” and so on are not indicated when you start up the ME, and the “AT” prefix, not “at” prefix must be set at the beginning of each command line. All these AT commands can be split into three categories syntactically: “basic”, “S parameter”, and “extended”. These are as follows: 1.4.1 Basic syntax These AT commands have the format of “AT ”, or “AT& ”, where “ ”is the Command, and “ ”is/are the argument(s) for that Command. An example of this is “ATE ”, which tells the DCE whether received characters should be echoed back to the DTE according to the value of “ ”. “ ” is optional and a default will be used if missing. SIM900R01_ATC_V1.00 11 15.01.2010 SIM900 AT Commands Set 1.4.2 S Parameter syntax These AT commands have the format of “ATS = ”, where “ ” is the index of the S register to set, and “ ”is the value to assign to it. “ ” is optional; if it is missing, then a default value is assigned. 1.4.3 Extended Syntax These commands can operate in several modes, as in the following table: Table 1: Types of AT commands and responses Test Command AT+ =? The mobile equipment returns the list of parameters and value ranges set with the corresponding Write Command or by internal processes. Read Command AT+ ? This command returns the currently set value of the parameter or parameters. Write Command AT+ =<…> This command sets the user-definable parameter values. Execution Command AT+ The execution command reads non-variable parameters affected by internal processes in the GSM engine 1.4.4 Combining AT commands on the same Command line You can enter several AT commands on the same line. In this case, you do not need to type the “AT” or “at” prefix before every command. Instead, you only need type “AT” or “at” the beginning of the command line. Please note to use a semicolon as the command delimiter after an extended command, for example: ATE1&W&F+ICF?;+CFUN?;&W. The Command line buffer can accept a maximum of 556 characters. If the characters entered exceeded this number then none of the Command will executed and TA will return “ERROR”. 1.4.5 Entering successive AT commands on separate lines When you need to enter a series of AT commands on separate lines, please Note that you need to wait the final response (for example OK, CME error, CMS error) of last AT Command you entered before you enter the next AT Command. 1.5 Supported character sets The SIM900 AT Command interface defaults to the IRA character set. The SIM900 supports the following character sets: • GSM format SIM900R01_ATC_V1.00 12 15.01.2010 SIM900 AT Commands Set • UCS2 • HEX • IRA • PCCP • PCDN • 8859-1 The character set can be set and interrogated using the “AT+CSCS” Command (GSM 07.07). The character set is defined in GSM specification 07.05. The character set affects transmission and reception of SMS and SMS Cell Broadcast messages, the entry and display of phone book entries text field and SIM Application Toolkit alpha strings. 1.6 Flow control Flow control is very important for correct communication between the GSM engine and DTE. For in the case such as a data or fax call, the sending device is transferring data faster than the receiving side is ready to accept. When the receiving buffer reaches its capacity, the receiving device should be capable to cause the sending device to pause until it catches up. There are basically two approaches to achieve data flow control: software flow control and hardware flow control. SIM900 support both two kinds of flow control. In Multiplex mode, it is recommended to use the hardware flow control. 1.6.1 Software flow control (XON/XOFF flow control) Software flow control sends different characters to stop (XOFF, decimal 19) and resume (XON, decimal 17) data flow. It is quite useful in some applications that only use three wires on the serial interface. The default flow control approach of SIM900 is hardware flow control (RTS/CTS flow control), to enable software flow control in the DTE interface and within GSM engine, type the following AT Command: AT+IFC=1, 1 This setting is stored volatile, for use after restart, AT+IFC=1, 1 should be stored to the user profile with AT&W. NOTE: The AT commands listed in the table of AT&W chapter should be stored to user profile with AT&W for use after restart. Most other AT commands in V.25, 07.05, 07.07, GPRS will store parameters automatically and can be used after module restart. Ensure that any communications software package (e.g. Hyper terminal) uses software flow control. SIM900R01_ATC_V1.00 13 15.01.2010 SIM900 AT Commands Set NOTE: Software Flow control should not be used for data calls where binary data will be transmitted or received (e.g. TCP/IP) as the DTE interface may interpret binary data as flow control characters. 1.6.2 Hardware flow control (RTS/CTS flow control) Hardware flow control achieves the data flow control by controlling the RTS/CTS line. When the data transfer should be suspended, the CTS line is set inactive until the transfer from the receiving buffer has completed. When the receiving buffer is ok to receive more data, CTS goes active once again. To achieve hardware flow control, ensure that the RTS/CTS lines are present on your application platform. SIM900R01_ATC_V1.00 14 15.01.2010 SIM900 AT Commands Set 2 AT Commands According to V.25TER These AT Commands are designed according to the ITU-T (International Telecommunication Union, Telecommunication sector) V.25ter document. 2.1 Overview of AT Commands According to V.25TER Command Description A/ RE-ISSUES LAST AT COMMAND GIVEN ATA ANSWER AN INCOMING CALL ATD MOBILE ORIGINATED CALL TO DIAL A NUMBER ATD> ORIGINATE CALL TO PHONE NUMBER IN CURRENT MEMORY ATD> ORIGINATE CALL TO PHONE NUMBER IN MEMORY WHICH CORRESPONDS TO FIELD ATDL REDIAL LAST TELEPHONE NUMBER USED ATE SET COMMAND ECHO MODE ATH DISCONNECT EXISTING CONNECTION ATI DISPLAY PRODUCT IDENTIFICATION INFORMATION ATL SET MONITOR SPEAKER LOUDNESS ATM SET MONITOR SPEAKER MODE +++ SWITCH FROM DATA MODE OR PPP ONLINE MODE TO COMMAND MODE ATO SWITCH FROM COMMAND MODE TO DATA MODE ATP SELECT PULSE DIALLING ATQ SET RESULT CODE PRESENTATION MODE ATS0 SET NUMBER OF RINGS ANSWERING THE CALL ATS3 SET COMMAND LINE TERMINATION CHARACTER ATS4 SET RESPONSE FORMATTING CHARACTER ATS5 SET COMMAND LINE EDITING CHARACTER ATS7 SET NUMBER OF SECONDS TO WAIT FOR CONNECTION COMPLETION ATS8 SET NUMBER OF SECONDS TO WAIT WHEN COMMA DIAL MODIFIER ENCOUNTERED IN DIAL STRING OF D COMMAND ATS10 SET DISCONNECT DELAY AFTER INDICATING THE ABSENCE OF DATA CARRIER ATT SELECT TONE DIALING SIM900R01_ATC_V1.00 15 BEFORE AUTOMATICALLY 15.01.2010 SIM900 AT Commands Set ATV TA RESPONSE FORMAT ATX SET CONNECT RESULT CODE FORMAT AND MONITOR CALL PROGRESS ATZ SET ALL CURRENT PARAMETERS TO USER DEFINED PROFILE AT&C SET DCD FUNCTION MODE AT&D SET DTR FUNCTION MODE AT&F SET ALL CURRENT DEFAULTS AT&V DISPLAY CURRENT CONFIGURATION AT&W STORE CURRENT PARAMETER TO USER DEFINED PROFILE AT+GCAP REQUEST COMPLETE TA CAPABILITIES LIST AT+GMI REQUEST MANUFACTURER IDENTIFICATION AT+GMM REQUEST TA MODEL IDENTIFICATION AT+GMR REQUEST TA REVISION INDENTIFICATION OF SOFTWARE RELEASE AT+GOI REQUEST GLOBAL OBJECT IDENTIFICATION AT+GSN REQUEST TA SERIAL NUMBER IDENTIFICATION AT+ICF SET TE-TA CONTROL CHARACTER FRAMING AT+IFC SET TE-TA LOCAL DATA FLOW CONTROL AT+IPR SET TE-TA FIXED LOCAL RATE AT+HVOIC DISCONNECT VOICE CALL ONLY PARAMETERS TO MANUFACTURER 2.2 Detailed Description of AT Commands According to V.25TER 2.2.1 A/ Re-issues The Last Command Given A/ Re-issues The Last Command Given Execution Command A/ Response Re-issues the previous Command Parameter Reference V.25ter Note 2.2.2 ATA ANSWER AN INCOMING CALL ATA ANSWER AN INCOMING CALL SIM900R01_ATC_V1.00 16 15.01.2010 SIM900 AT Commands Set Execution Command ATA Response TA sends off-hook to the remote station. Note1: Any additional commands on the same Command line are ignored. Note2: This Command may be aborted generally by receiving a character during execution. The aborting is not possible during some states of connection establishment such as handshaking. Response in case of data call, if successfully connected CONNECT TA switches to data mode. Note: output only if ATX parameter setting with the >0 When TA returns to Command mode after call release OK Response in case of voice call, if successfully connected OK Response if no connection NO CARRIER Parameter Reference V.25ter Note See also ATX 2.2.3 ATD Mobile Originated Call To Dial A Number ATD Mobile Originated Call To Dial A Number Execution Command ATD [ TA switches to data mode. Note: output only if ATX parameter setting with the >0 When TA returns to Command mode after call release OK If connection successful and voice call OK Parameter string of dialing digits and optionally V.25ter modifiers dialing digits: 0-9, * , #, +, A, B, C Following V.25ter modifiers are ignored: ,(comma), T, P, !, W, @ Emergency call: Standardized emergency number 112(no SIM needed) <;> Reference V.25ter string of GSM modifiers: I Actives CLIR (Disables presentation of own number to called party) i Deactivates CLIR (Enable presentation of own number to called party) G Activates Closed User Group invocation for this call only g Deactivates Closed User Group invocation for this call only only required to set up voice call , return to Command state Note z Parameter “I” and “i” only if no *# code is within the dial string z is default for last number that can be dialed by ATDL z *# codes sent with ATD are treated as voice calls. Therefore, the Command must be terminated with a semicolon “;” z See ATX Command for setting result code and call monitoring parameters. Responses returned after dialing with ATD z For voice call two different responses mode can be determined. TA returns “OK” immediately either after dialing was completed or after SIM900R01_ATC_V1.00 18 15.01.2010 SIM900 AT Commands Set the call is established. The setting is controlled by AT+COLP. Factory default is AT+COLP=0, this cause the TA returns “OK” immediately after dialing was completed, otherwise TA will returns “OK”, “BUSY”, “NO DIAL TONE”, “NO CARRIER”. Using ATD during an active voice call: z When a user originates a second voice call while there is already an active voice call, the first call will be automatically put on hold. z The current states of all calls can be easily checked at any time by using the AT+CLCC Command 2.2.5 ATD> ORIGINATE CALL TO PHONE NUMBER IN CURRENT MEMORY ATD> ORIGINATE CALL TO PHONE NUMBER IN CURRENT MEMORY SIM900R01_ATC_V1.00 19 15.01.2010 SIM900 AT Commands Set Execution Command ATD> [ ][ ][;] Response This Command can be used to dial a phone number from current phonebook memory. Note: This Command may be aborted generally by receiving an ATH Command or a character during execution. The aborting is not possible during some states of connection establishment such as handshaking. If error is related to ME functionality +CME ERROR: If no dial tone and (parameter setting ATX2 or ATX4) NO DIALTONE If busy and (parameter setting ATX3 or ATX4) BUSY If a connection cannot be established NO CARRIER If the remote station does not answer NO ANSWER If connection successful and non-voice call. CONNECT TA switches to data mode. Note: output only if ATX parameter setting with the >0 When TA returns to Command mode after call release OK If successfully connected and voice call OK Parameter Integer type memory location should be in the range of locations available in the memory used string of GSM modifiers: I i SIM900R01_ATC_V1.00 Override the CLIR supplementary service subscription default value for this call Invocation (restrict CLI presentation) Override the CLIR supplementary service subscription default value for this call 20 15.01.2010 SIM900 AT Commands Set Suppression (allow CLI presentation) G Control the CUG supplementary service information for this call CUG Not supported Control the CUG supplementary service information for this call CUG Not supported Only required to set up voice call , return to Command state g <;> Reference V.25ter Note z Parameter “I” and “i” only if no *# code is within the dial string z *# codes sent with ATD are treated as voice calls. Therefore, the Command must be terminated with a semicolon “;” z See ATX Command for setting result code and call monitoring parameters. 2.2.6 ATD> ORIGINATE CALL TO PHONE NUMBER IN MEMORY WHICH CORRESPONDS TO FIELD ATD> ORIGINATE CALL TO PHONE NUMBER IN MEMORY WHICH CORRESPONDS TO FIELD SIM900R01_ATC_V1.00 21 15.01.2010 SIM900 AT Commands Set Execution Command ATD> [ ][ ][;] Response This Command make the TA attempts to set up an outgoing call to stored number. All available memories are searched for the entry . Note: This Command may be aborted generally by receiving an ATH Command or a character during execution. The aborting is not possible during some states of connection establishment such as handshaking. If error is related to ME functionality +CME ERROR: If no dial tone and (parameter setting ATX2 or ATX4) NO DIALTONE If busy and (parameter setting ATX3 or ATX4) BUSY If a connection cannot be established NO CARRIER If the remote station does not answer NO ANSWER If connection successful and non-voice call. CONNECT TA switches to data mode. Note: output only if ATX parameter setting with the >0 When TA returns to Command mode after call release OK If successfully connected and voice call OK SIM900R01_ATC_V1.00 22 15.01.2010 SIM900 AT Commands Set Parameters <;> Reference V.25ter string type(string should be included in quotation marks) value (“x“), which should equal to an alphanumeric field in at least one phone book entry in the searched memories. str formatted as current TE character set specified by +CSCS. string of GSM modifiers: I Actives CLIR (Disables presentation of own number to called party) i Deactivates CLIR (Enable presentation of own number to called party) G Activates Closed User Group invocation for this call only g Deactivates Closed User Group invocation for this call only only required to set up voice call , return to Command state Note z Parameter “I” and “i” only if no *# code is within the dial string z *# codes sent with ATD are treated as voice calls. Therefore, the Command must be terminated with a semicolon “;” z See ATX Command for setting result code and call monitoring parameters. 2.2.4 ATDL Redial Last Telephone Number Used ATDL Redial Last Telephone Number Used Execution Command ATDL Response This Command redials the last voice and data call number used. Note: This Command may be aborted generally by receiving an ATH Command or a character during execution. The aborting is not possible during some states of connection establishment such as handshaking. If error is related to ME functionality +CME ERROR: If no dial tone and (parameter setting ATX2 or ATX4) NO DIALTONE If busy and (parameter setting ATX3 or ATX4) BUSY If a connection cannot be established NO CARRIER SIM900R01_ATC_V1.00 23 15.01.2010 SIM900 AT Commands Set If the remote station does not answer NO ANSWER If connection successful and non-voice call. CONNECT TA switches to data mode. Note: output only if ATX parameter setting with the >0 When TA returns to Command mode after call release OK If successfully connected and voice call OK Reference V.25ter Note z See ATX Command for setting result code and call monitoring parameters. z Return the numbers and symbols which ATD supports if there is no last dialing context. 2.2.5 ATE Set Command Echo Mode ATE Set Command Echo Mode Execution Command ATE Response This setting determines whether or not the TA echoes characters received from TE during Command state. OK Parameter Reference V.25ter 0 1 Echo mode off Echo mode on Note 2.2.6 ATH Hang up a call ATH Hang up a call Execution Command ATH[n] Response Disconnect existing call by local TE from Command line and terminate call OK Note: OK is issued after circuit 109(DCD) is turned off, if it was previously on. SIM900R01_ATC_V1.00 24 15.01.2010 SIM900 AT Commands Set Parameter 0 1 2 3 4 5 Reference V.25ter Disconnect ALL calls on THE channel the command is Requested. All active or waiting calls, CS data calls, GPRS call of the channel will be disconnected Disconnect all calls on ALL connected channels. All active or waiting calls, CSD calls, GPRS call will be disconnected.(clean up of all calls of the ME). Disconnect all connected CS data call only on the channel the command is requested (speech calls (active or waiting) or GPRS calls are not disconnected). Disconnect all connected GPRS calls only on the channel the command is requested (speech calls (active or waiting) or CS data calls are not disconnected Disconnect all CS calls (either speech or data) but does not disconnect waiting call (either speech or data) on the channel the command is requested. Disconnect waiting call (either speech or data) but does not disconnect other active calls (either CS speech, CS data or GPRS) on the channel the command is requested. (rejection of incoming call) Note 2.2.7 ATI Display Product Identification Information ATI Display Product Identification Information Execution Command ATI Response TA issues product information text Example: SIM900 R11.0 OK Reference V.25ter Note 2.2.8 ATL Monitor speaker loudness ATL Monitor speaker loudness Execution Command Response OK SIM900R01_ATC_V1.00 25 15.01.2010 SIM900 AT Commands Set ATL Reference V.25ter Parameter 0..9 volume Note z No effect in GSM 2.2.9 ATM Monitor Speaker Mode ATM Monitor Speaker Mode Execution Command ATM Reference V.25ter Response OK Parameter 0..9 mode Note z No effect in GSM 2.2.10 +++ Switch From Data Mode Or PPP Online Mode To Command Mode +++ Switch From Data Mode Or PPP Online Mode To Command Mode Execution Command +++ Response The +++ character sequence causes the TA to cancel the data flow over the AT interface and switch to Command mode. This allows you to enter AT Command while maintaining the data connection to the remote server. OK To prevent the +++ escape sequence from being misinterpreted as data, it should comply to following sequence: 1. No characters entered for T1 time (1 second) 2. “+++” characters entered with no characters in between (0.5 second) 3. No characters entered for T1 timer (0.5 second) 4. Switch to Command mode, otherwise go to step 1. Parameter Reference V.25ter Note z To return from Command mode back to data mode: Enter ATO. 2.2.11 ATO Switch From Command Mode To Data Mode ATO Switch From Command Mode To Data Mode SIM900R01_ATC_V1.00 26 15.01.2010 SIM900 AT Commands Set Execution Command ATO[n] Response TA resumes the connection and switches back from Command mode to data mode. CONNECT If connection is not successfully resumed NO CARRIER else TA returns to data mode from Command mode CONNECT Note: only if parameter setting ATX>0 Parameter Reference V.25ter 0 switch from Command mode to data mode Note 2.2.12 ATP Select Pulse Dialing ATP Select Pulse Dialing Execution Command ATP Response OK Reference V.25ter Note z No effect in GSM Parameter 2.2.13 ATQ Set Result Code Presentation Mode ATQ Set Result Code Presentation Mode Execution Command ATQ Response This parameter setting determines whether or not the TA transmits any result code to the TE. Information text transmitted in response is not affected by this setting. If =0: OK If =1: (none) Parameter Reference V.25ter 0 1 TA transmits result code Result codes are suppressed and not transmitted Note SIM900R01_ATC_V1.00 27 15.01.2010 SIM900 AT Commands Set 2.2.14 ATS0 Set Number Of Rings Before Automatically Answering The Call ATS0 Set Number Of Rings Before Automatically Answering The Call Read Command ATS0? Response OK Write Command ATS0= Response This parameter setting determines the number of rings before auto-answer. OK ERROR Parameter Reference V.25ter 0 Automatic answering is disable 1-255 Number of rings the modem will wait for before answering the phone if a ring is detected Note z If is set too high, the calling party may hang up before the call can be answered automatically. 2.2.15 ATS3 Set Command Line Termination Character ATS3 Set Command Line Termination Character Read Command ATS3? Response OK Write Command ATS3= Response This parameter setting determines the character recognized by TA to terminate an incoming Command line. The TA also returns this character in output. OK ERROR Parameter 13 Reference V.25ter Command line termination character Note z Default 13 = CR. It only supports default value. 2.2.16 ATS4 Set Response Formatting Character ATS4 Set Response Formatting Character Read Command ATS4? Response SIM900R01_ATC_V1.00 28 15.01.2010 SIM900 AT Commands Set OK Write Command ATS4= Response This parameter setting determines the character generated by the TA for result code and information text. OK ERROR Parameter 10 Reference V.25ter response formatting character Note z Default 10 = LF. It only supports default value. 2.2.17 ATS5 Set Command Line Editing Character ATS5 Set Command Line Editing Character Read Command ATS5? Response OK Write Command ATS5= Response This parameter setting determines the character recognized by TA as a request to delete from the Command line the immediately preceding character. OK ERROR Parameter 0-8-127 Reference V.25ter response formatting character Note z Default 8 = Backspace. 2.2.18 ATS6 Set Pause Before Blind Dialing ATS6 Set Pause Before Blind Dialing Read Command ATS6? Response ERROR Write Command ATS6= Response OK ERROR SIM900R01_ATC_V1.00 29 15.01.2010 SIM900 AT Commands Set Parameter 0..999 Reference V.25ter Time Note No effect in GSM 2.2.19 ATS7 Set Number Of Seconds To Wait For Connection Completion ATS7 Set Number Of Seconds To Wait For Connection Completion Read Command ATS7? Response OK Write Command ATS7= Response This parameter setting determines the amount of time to wait for the connection completion in case of answering or originating a call. OK ERROR Parameter 1-60-255 Reference V.25ter number of seconds to wait for connection completion Note z If called party has specified a high value for ATS0= , call setup may fail. z The correlation between ATS7 and ATS0 is important Example: Call may fail if ATS7=30 and ATS0=20. z ATS7 is only applicable to data call. - 2.2.20 ATS8 Set Number Of Second To Wait For Comma Dial Modifier Encountered In Dial String Of D Command ATS8 Set Number Of Second To Wait For Comma Dial Modifier Encountered In Dial String Of D Command Read Command ATS8? Response OK Write Command ATS8= Response OK ERROR Parameter 0-225 The value of this register determines how long the modem should pause when it sees a comma in the dialling string Reference Note SIM900R01_ATC_V1.00 30 15.01.2010 SIM900 AT Commands Set V.25ter z No effect in GSM 2.2.21 ATS10 Set Disconnect Delay After Indicating The Absence Of Data Carrier ATS10 Set Disconnect Delay After Indicating The Absence Of Data Carrier Read Command ATS10? Response OK Write Command ATS10= Response This parameter setting determines the amount of time that the TA will remain connected in absence of data carrier. If the data carrier is once more detected before disconnecting, the TA remains connected. OK ERROR Parameter 1-15-254 Reference V.25ter number of tenths seconds of del Note 2.2.22 ATT Select Tone Dialing ATT Select Tone Dialing Execution Command ATT Response OK Reference V.25ter Note z No effect in GSM Parameter 2.2.23 ATV TA Response Format ATV TA Response Format Execution Command ATV Response This parameter setting determines the contents of the header and trailer transmitted with result codes and information responses. When =0 0 When =1 OK SIM900R01_ATC_V1.00 31 15.01.2010 SIM900 AT Commands Set Parameter Information response: Short result code format: 1 Information response: Long result code format: The result codes, their numeric equivalents and brief descriptions of the use of each are listed in the following table. Reference V.25ter 0 Note ATV1 ATV0 Description OK 0 Acknowledges execution of a Command CONNECT 1 A connection has been established; the DCE is moving from Command state to online data state RING 2 The DCE has detected an incoming call signal from network NO CARRIER 3 The connection has been terminated or the attempt to establish a connection failed ERROR 4 Command not recognized, Command line maximum length exceeded, parameter value invalid, or other problem with processing the Command line NO DIALTONE 6 No dial tone detected BUSY 7 Engaged (busy) signal detected NO ANSWER 8 "@" (Wait for Quiet Answer) dial modifier was used, but remote ringing followed by five seconds of silence was not detected before expiration of the connection timer (S7) PROCEEDING 9 An AT command is being processed CONNECT Manufacturerspecific Same as CONNECT, but includes manufacturer-specific text that may specify DTE speed, line speed, error control, data compression, or other status 2.2.24 ATX Set CONNECT Result Code Format And Monitor Call Progress ATX Set CONNECT Result Code Format And Monitor Call Progress SIM900R01_ATC_V1.00 32 15.01.2010 SIM900 AT Commands Set Execution Command ATX Response This parameter setting determines whether or not the TA detected the presence of dial tone and busy signal and whether or not TA transmits particular result codes OK ERROR Parameter Reference V.25ter 0 CONNECT result code only returned, dial tone and busy detection are both disabled 1 CONNECT result code only returned, dial tone and busy detection are both disabled 2 CONNECT result code returned, dial tone detection is enabled, busy detection is disabled 3 CONNECT result code returned, dial tone detection is disabled, busy detection is enabled 4 CONNECT result code returned, dial tone and busy detection are both enabled Note 2.2.25 ATZ Reset default configuration ATZ Reset default configuration Execution Command ATZ[ ] Response TA sets all current parameters to the user defined profile. OK ERROR Parameter 0 (Default value) 1 Reference V.25ter Restore profile 0 Restore profile 1 Note Parameter impacted by Z command: Command Parameter name Default value ATE 0x01 ATQ 0x00 ATV 0x01 ATX 0x04 AT&C 0x01 SIM900R01_ATC_V1.00 33 15.01.2010 SIM900 AT Commands Set AT&D 0x02 AT+IFC 0x00 AT+IFC 0x01 AT+FCLASS 0x00 ATS0 0x00 ATS3 0x00 ATS4 0x0D ATS5 0x0A ATS7