AT Commands Interface Guide GSM 900, 1900 Developer Rev A
GSM%20Developer%20Guide%20-%20GSM%20AT%20Commands%20-%20Rev%20%20A
User Manual: GSM 900, GSM 1900
Open the PDF directly: View PDF .
Page Count: 244
Download | |
Open PDF In Browser | View PDF |
AT Commands GSM Reference Guide Wireless Modem Family Interface Guide AT Commands Interface User Guide GSM AT Commands Reference Guide Products: Wireless Modem Family, including MTCBA-G-F1/F2, MTMMC-G-F1/F2, and MTSMC-G-F1/F2 PN S000293A, Revision A Copyright This publication may not be reproduced, in whole or in part, without prior expressed written permission from Multi-Tech Systems, Inc. All rights reserved. Copyright © 2003, by Multi-Tech Systems, Inc. Multi-Tech Systems, Inc. makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. Furthermore, Multi-Tech Systems, Inc. reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of Multi-Tech Systems, Inc. to notify any person or organization of such revisions or changes. Revisions Revision Level Date Description A Initial release. 07/15/03 Trademarks The Multi-Tech logo is a trademark of Multi-Tech Systems, Inc. Multi-Tech Systems, Inc. PN S000293A 2 AT Commands Interface User Guide Contents Chapter 1 - Introduction ...............................................................................................................................4 Chapter 2 - AT commands Features ...........................................................................................................5 Chapter 3 General be haviors ......................................................................................................................6 Chapter 4 - General Commands ..................................................................................................................8 Chapter 5 - Call Control commands..........................................................................................................17 Chapter 6 - Network service commands...................................................................................................30 Chapter 7 - Security commands ................................................................................................................38 Chapter 8 - Phonebook commands...........................................................................................................45 Chapter 9 - Short Messages commands...................................................................................................56 Chapter 10 - Supplementary Services Commands..................................................................................74 Chapter 11 - Data Commands ....................................................................................................................88 Chapter 12 - Fax Commands......................................................................................................................96 Chapter 13 - Fax Class 2 Commands.....................................................................................................100 Chapter 14 - V24-V25 commands ............................................................................................................107 Chapter 15 - Specific AT commands.......................................................................................................116 Chapter 16 - SIM TOOLKIT .......................................................................................................................157 Chapter 17 - GPRS commands ................................................................................................................172 Chapter 18 - Other AT commands...........................................................................................................196 Appendix A: Tables...................................................................................................................................197 Appendix B: Data / Commands multiplexing protocol..........................................................................219 APPENDIX C: AT Command Examples...................................................................................................221 APPENDIX D: ME SIM ToolKit Support...................................................................................................224 APPENDIX E: Structure of TERMINAL PROFILE ...................................................................................226 APPENDIX F: Command Type and Next Action Indicator. ...................................................................229 APPENDIX G: Coding of Alpha fields in the SIM for UCS2...................................................................230 APPENDIX H: Specification of Power Down Control via RS232 ..........................................................232 APPENDIX I: Conditions for command execution and dependence to SIM .......................................233 Multi-Tech Systems, Inc. PN S000293A 3 Chapter 1 – Introduction CHAPTER 1 - INTRODUCTION Scope of this document This document describes the AT-command based messages exchanged between an application and the MULTI-TECH products in order to manage GSM related events or services. Related documents This interface specification is based on the following recommendations: [1] ETSI GSM 07.05: Digital cellular telecommunications system (Phase 2); Use of DTE-DCE interface for Short Message Service (SMS) and Cell Broadcast Service (CBS) [2] ETSI GSM 07.07: Digital cellular telecommunications system (Phase 2); AT command set for GSM Mobile Equipment (ME) [3] ITU-T Recommendation V.25 ter: Serial asynchronous automatic dialing and control [4] ETSI GSM 03.40: Digital cellular telecommunications system (Phase 2); Technical implementation of the Short Message Service (SMS) Point-to-Point (PP) [5] ETSI GSM 03.38: Digital cellular telecommunications system (Phase 2); Alphabets and language-specific information [6] ETSI GSM 04.80: Digital cellular telecommunications system (Phase 2): Mobile radio interface layer 3, Supplementary service specification, Formats and coding Definitions The words, “Mobile Station” (MS) or “Mobile Equipment” (ME) are used for mobile terminals supporting GSM services. A call from a GSM mobile station to the PSTN is called a “mobile originated call” (MOC) or “outgoing call”, and a call from a fixed network to a GSM mobile station is called a “mobile terminated call” (MTC) or “incoming call”. In this document, the word “product” refers to any Multi-Tech product supporting the AT commands interface. Multi-Tech Systems, Inc. PN S000293A 4 Chapter 2 – AT Commands Features CHAPTER 2 - AT COMMANDS FEATURES Multi-Tech line settings A serial link handler is set with the following default values (factory settings): autobaud, 8 bits data, 1 stop bit, no parity, RTS/CTS flow control. Please use the +IPR, +IFC and +ICF commands to change these settings. Command line Commands always start with AT (which means ATtention) and finish with acharacter. Information responses and result codes Responses start and end with , except for the ATV0 DCE response format) and the ATQ1 (result code suppression) commands. · If command syntax is incorrect, an ERROR string is returned. · If command syntax is correct but with some incorrect parameters, the +CME ERROR: or +CMS ERROR: strings are returned with different error codes. · If the command line has been performed successfully, an OK string is returned. In some cases, such as “AT+CPIN?” or (unsolicited) incoming events, the product does not return the OK string as a response. In the following examples and are intentionally omitted. Multi-Tech Systems, Inc. PN S000293A 5 Chapter 3– General Behaviors CHAPTER 3 GENERAL BE HAVIORS SIM Insertion, SIM Removal SIM card Insertion and Removal procedures are supported. There are software functions relying on positive reading of the hardware SIM detect pin. This pin state (open/closed) is permanently monitored. When the SIM detect pin indicates that a card is present in the SIM connector, the product tries to set up a logical SIM session. The logical SIM session will be set up or not depending on whether the detected card is a SIM Card or not. The AT+CPIN? command delivers the following responses: · If the SIM detect pin indicates “absent”, the response to AT+CPIN? is “+CME ERROR 10” (SIM not inserted). · If the SIM detect pin indicates “present”, and the inserted Card is a SIM Card, the response to AT+CPIN? is “+CPIN: xxx” depending on SIM PIN state. · If the SIM detect pin indicates “present”, and the inserted Card is not a SIM Card, the response to AT+CPIN? is CME ERROR 10. · These last two states are not given immediately due to background initialization. Between the hardware SIM detect pin indicating “present” and the previous results the AT+CPIN? sends “+CME ERROR: 515” (Please wait, init in progress). When the SIM detect pin indicates card absence, and if a SIM Card was previously inserted, an IMSI detach procedure is performed, all user data is removed from the product (Phonebooks, SMS etc.). The product then switches to emergency mode. Multi-Tech Systems, Inc. PN S000293A 6 Chapter 3– General Behaviors Background initialization After entering the PIN (Personal Identification Number), some SIM user data files are loaded into the product (Phonebooks, SMS status, etc.). Please be aware that it might take some time to read a large phonebook. The AT+CPIN? command response comes just after the PIN is checked. After this response user data is loaded (in background). This means that some data may not be available just after PIN entry is confirmed by ’OK’. The reading of phonebooks will then be refused by “+CME ERROR: 515” or “+CMS ERROR: 515” meaning, “Please wait, service is not available, init in progress”. This type of answer may be sent by the product at several points: · when trying to execute another AT command before the previous one is completed (before response), · when switching from ADN to FDN (or FDN to ADN) and trying to read the relevant phonebook immediately, · when asking for +CPIN? status immediately after SIM insertion and before the product has determined if the inserted card is a valid SIM Card. Multi-Tech Systems, Inc. PN S000293A 7 Chapter 5– Call Control Commands CHAPTER 4 - GENERAL COMMANDS Manufacturer identification +CGMI Description: This command gives the manufacturer identification. Syntax: Command syntax: AT+CGMI Command AT+CGMI Possible responses WAVECOM MODEM OK Note: Command valid, Wavecom modem Note: Get manufacturer identification Request model identification +CGMM Description: This command gets the supported frequency bands. With multi-band products the response may be a combination of different bands. Syntax: Command syntax: AT+CGMM Command AT+CGMM Note: Get hardware version Possible responses 900P OK Note: GSM 900 MHz primary band. Other possible answers: “900E” (extended band), “1800” (DCS), “1900” (PCS) or “MULTIBAND” Request revision identification +CGMR Description: This command gets the revised software version. Syntax: Command syntax: AT+CGMR Command AT+CGMR Note: Get software version Multi-Tech Systems, Inc. PN S000293A Possible responses 310_G250.51 806216 032199 17:04 OK Note: Software release 3.10, revision 51 st generated on the 21 of March 1999 8 Chapter 5– Call Control Commands Product Serial Number +CGSN Description: This command allows the user application to get the IMEI (International Mobile Equipment Identity) of the product. Syntax: Command syntax: AT+CGSN Command Possible responses AT+CGSN 012345678901234 OK Note: IMEI read from EEPROM +CME ERROR: 22 Note: IMEI not found in EEPROM Note: Get the IMEI AT+CGSN Note: Get the IMEI Select TE character set +CSCS Description: This command informs the ME which character set is used by the TE. The ME can convert each character of entered or displayed strings. This is used to send, read or write short messages. See also +WPCS for the phonebooks’ character sets. Syntax: Command syntax: AT+CSCS= Command AT+CSCS=”GSM” Note: GSM default alphabet AT+CSCS=”PCCP437” Note: PC character set code page 437 AT+CSCS=? Note: Get possible values Possible responses OK Note: Command valid OK Note: Command valid +CSCS: ("GSM","PCCP437","CUSTOM","HEX") OK Note: Possible values Defined values: “GSM” GSM default alphabet. “PCCP437” PC character set code page 437. “CUSTOM” User defined character set (cf. +WCCS command). “HEX” Hexadecimal mode. No character set used ; the user can read or write hexadecimal values. Multi-Tech Systems, Inc. PN S000293A 9 Chapter 5– Call Control Commands Wavecom Phonebook Character Set +WPCS Description: This command informs the ME which character set is used by the TE for the phonebooks. The ME can convert each character of entered or displayed strings. This is used to read or write phonebook entries. See also +CSCS for the short messages character sets. Syntax: Command syntax: AT+WPCS= Command AT+WPCS=”TRANSPARENT” Note: Transparent mode AT+WPCS=”CUSTOM” Note: Custom character set AT+WPCS=? Note: Get possible values Possible responses OK Note: Command valid OK Note: Command valid +WPCS: ("TRANSPARENT","HEX","CUSTOM") OK Note: Possible values Defined values: “TRANSPARENT” Transparent mode. The strings are displayed and entered as they are stored in SIM or in ME. “CUSTOM” User defined character set (cf. +WCCS command). “HEX” Hexadecimal mode. No character set used ; the user can read or write hexadecimal values. Request IMSI +CIMI Description: This command reads and identifies the IMSI (International Mobile Subscriber Identity) of the SIM card. The PIN may need to be entered before reading the IMSI. Syntax Command syntax: AT+CIMI Command AT+CIMI Note: Read the IMSI Multi-Tech Systems, Inc. PN S000293A Possible responses 208200120320598 Note: IMSI value (15 digits), starting with MCC (3 digits) / MNC (2 digits, 3 for PCS 1900) 10 Chapter 5– Call Control Commands Card Identification +CCID Description: This command orders the product to read the EF-CCID file on the SIM card. Syntax: Command syntax: AT+CCID Command Possible responses AT+CCID Note: Get card ID AT+CCID? Note: Get current value +CCID: “123456789AB111213141” Note: EF-CCID is present, hexadecimal format + CCID: “123456789AB111213141” Note: Same result as +CCID AT+CCID= ? Note: Get possible value OK Note: No parameter but this command is valid If there is no EF-CCID file present on the SIM, the +CCID answer will not be sent, but the OK message will be returned. Capabilities list +GCAP Description: This command gets the complete list of capabilities. Syntax: Command syntax: AT+GCAP Command AT+GCAP Note: Get capabilities list Possible responses +GCAP: +CGSM +FCLASS OK Note: Supports GSM and FAX commands Repeat last command A/ Description: This command repeats the previous command. Only the A/ command itself cannot be repeated. Syntax: Command syntax: A/ Command A/ Note: Repeat last command Multi-Tech Systems, Inc. PN S000293A Possible responses 11 Chapter 5– Call Control Commands Power off +CPOF Description: This specific command stops the GSM software stack as well as the hardware layer. The AT+CFUN=0 command is equivalent to +CPOF. Syntax: Command syntax: AT+CPOF Command AT+CPOF Note: Stop GSM stack Possible responses OK Note: Command valid Set phone functionality +CFUN Description: This command selects the mobile station’s level of functionality. When the application wants to stop the product with a power off, or if the application wants to force the product to execute an IMSI DETACH procedure, then it must send: AT+CFUN=0 (equivalent to AT+CPOF). This command executes an IMSI DETACH and makes a backup copy of some internal parameters in SIM and in EEPROM. The SIM card cannot then be accessed. If the mobile equipment is not powered off by the application after this command has been sent, a re-start command (AT+CFUN=1) will have to issued to restart the whole GSM registration process. If the mobile equipment is turned off after this command, then a power on will automatically restart the whole GSM process. The AT+CFUN=1 command restarts the entire GSM stack and GSM functionality: a complete software reset is performed. All parameters are reset to their previous values if AT&W was not used. If you write entries in the phonebook (+CPBW) and then reset the product directly (AT+CFUN=1, with no previous AT+CFUN=0 command), some entries may not be written (the SIM task does not have enough time to write entries in the SIM card). In addition, the OK response will be sent at the last baud rate defined by the +IPR command. With the autobauding mode the response can be at a different baud rate, it is therefore preferable to save the defined baud rate with AT&W before directly sending the AT+CFUN=1 command. Syntax: Command syntax: AT+CFUN= Command AT+CFUN? Note: Ask for current functionality level AT+CFUN=0 Note: Set minimum functionality, IMSI detach procedure AT+CFUN=1 Note: Set the full functionality mode with a complete software reset Multi-Tech Systems, Inc. PN S000293A Possible responses +CFUN: 1 OK Note: Full functionality OK Note: Command valid OK Note: Command valid 12 Chapter 5– Call Control Commands Phone activity status +CPAS Description: This command returns the activity status of the mobile equipment. Syntax: Command syntax: AT+CPAS Command AT+CPAS Note: Current activity status Possible responses +CPAS: OK Defined values: 0 ready (allow commands from TA/TE) 1 unavailable (does not allow commands) 2 unknown 3 ringing (ringer is active) 4 call in progress 5 asleep (low functionality) Report Mobile Equipment errors +CMEE Description: This command disables or enables the use of the “+CME ERROR: ” or “+CMS ERROR: ” result code instead of simply “ERROR”. See appendix 0 for +CME ERROR result codes description and appendix 0 for +CMS ERROR result codes. Syntax: Command syntax: AT+CMEE= Command AT+CMEE=0 Note: Disable ME error reports, use only « ERROR » AT+CMEE=1 Note: Enable «+CME ERROR: » or «+CMS ERROR: » Multi-Tech Systems, Inc. PN S000293A Possible responses OK OK 13 Chapter 5– Call Control Commands Keypad control +CKPD Description: This command emulates the ME keypad by sending each keystroke as a character in a string. The supported GSM sequences are listed in the appendix. If emulation fails, a +CME ERROR: is returned. If emulation succeeds, the result depends on the GSM sequence activated: : string of the following characters (0-9,*,#). Note: In the case where the FDN phonebook is activated, the sequences concerning “call forwarding” are allowed only if the entire sequence is written in the FDN. Syntax: Command syntax: AT+CKPD= Command AT+CKPD=”*#21#” Note: Check every call forwarding status AT+CKPD=”1234” Note: Sequence not allowed Possible responses +CCFC: 0,7 +CME ERROR 3 Clock Management +CCLK Description: This command sets or gets the current date and time of the ME real-time clock. String format for date/time is: “yy/MM/dd,hh:mm:ss”. Valid years are 98 (for 1998) to 97 (for st 2097). The seconds field is not mandatory. Default date/time is “98/01/01,00:00:00” (January 1 , 1998 / midnight). Syntax: Command syntax: AT+CCLK= Command AT+CCLK=”00/06/09,17:33:00” th Note: set date to June 9 , 2000, and time to 5:33pm AT+CCLK=”00/13/13,12:00:00” Note: Incorrect month entered AT+CCLK? Note: Get current date and time Multi-Tech Systems, Inc. PN S000293A Possible responses OK Note: Date/Time stored +CME ERROR 3 +CCLK: “00/06/09,17:34:23” th Note: current date is June 9 , 2000 current time is 5:34:23 pm 14 Chapter 5– Call Control Commands Alarm Management +CALA Description: This command sets the alarm date/time in the ME. String format for alarms: “yy/MM/dd,hh:mm:ss” (see +CCLK). The maximum number of alarms is 16. Seconds are not taken into account. Syntax: Command syntax: AT+CALA= (set alarm) AT+CALA=””, (delete alarm) Command AT+CALA=”00/06/09,07:30” th Note: set an alarm for June 9 , 2000 at 7:30 am AT+CALA=”99/03/05,13:00:00” th Note: set an alarm for March 5 , 1999 at 1:00 pm AT+CALA? Note: list all alarms AT+CALA=””,2 Note: delete alarm index 2 AT+CALA? Note: list all alarms Possible responses OK Note: Alarm stored +CME ERROR 3 Note: Invalid alarm (date/time expired) +CALA: “00/06/08,15:25:00”,0 +CALA: “00/06/09,07:30:00”,1 +CALA: “00/06/10,23:59:00”,2 Note: three alarms are set (index 0, 1, 2) +CALA: “00/06/08,15:25:00”,0 Note: an alarm occurs (index 0) OK Note: Alarm index 2 deleted +CALA: “00/06/09,07:30:00”,1 Note: Only one alarm (index 1) Ring Melody Playback +CRMP Description: This command allows a melody to be played. All melodies are manufacturer defined. For incoming voice, data or fax calls, 10 manufacturer-defined melodies can be played back (in a loop). For an incoming short message, 2 manufacturer-defined sounds can be played back (once). Melody #1: short beep / Melody #2: long beep. Note: Loop melodies (for voice/data/fax call) must be stopped by a +CRMP command with the field set to 0 (example: +CRMP=0,,,0). When the parameter is given, this overwrites the value of the +CRSL command. If the parameter is not given, the value of +CRSL is used as default value. Syntax: Command syntax: AT+CRMP= [, , , ] Command AT+CRMP=0,7,0,2 Note: Play voice call melody index 2 with volume level 7. AT+CRMP=0,,,0 Note: Stop the melody. AT+CRMP=? Note: supported parameters Multi-Tech Systems, Inc. PN S000293A Possible responses OK Note: Melody Playback. OK Note: The melody is stopped. +CRMP: (0-3),(0-15),0,(0-10) OK 15 Chapter 5– Call Control Commands Defined values: 0 Incoming voice call 1 Incoming data call 2 Incoming fax call 3 Incoming short message (SMS) 0 Min volume 6 Default volume 15Max volume 0 Manufacturer Defined (default) 0 Stop Melody Playback 1-10 Melody ID for voice/data/fax call type (default: 1) 1-12 Melody ID for short message (default: 1) Ringer Sound Level +CRSL Description: This command sets and gets the sound level of the ringer on incoming calls. The set command changes the default value of the +CRMP command. Syntax: Command syntax: AT+CRSL= Command AT+CRSL=0 Note: Set volume to Min. AT+CRSL=15 Note: Set volume to Max. AT+CRSL? Note: get current ringer sound level AT+CRSL=? Note: supported parameters Possible responses OK Note: Current ring playing with Min. volume. OK Note: Current ring playing with Max. volume. +CRSL: 15 OK Note: Current level is 15 (max.) +CRSL: (0-15) OK Defined values: 0 Min volume 6 Default volume (default) 15 Max volume Multi-Tech Systems, Inc. PN S000293A 16 Chapter 5– Call Control Commands CHAPTER 5 - CALL CONTROL COMMANDS Dial command D Description: The ATD command sets a voice, data or fax call. As per GSM 02.30, the dial command also controls supplementary services. For a data or a fax call, the application sends the following ASCII string to the product (the bearer must be previously selected with the +CBST command): ATD where is the destination phone number. For a voice call, the application sends the following ASCII string to the product: (the bearer may be selected previously, if not a default bearer is used). ATD where is the destination phone number. Please note that for an international number, the local international prefix does not need to be set (usually 00) but does need to be replaced by the ‘+’ character. Example: to set up a voice call to Wavecom offices from another country, the AT command is: “ATD+33146290800;” Note that some countries may have specific numbering rules for their GSM handset numbering. The response to the ATD command is one of the following: Verbose result code OK CONNECT Numeric code (with ATV0 set) 0 10,11,12,13,14,15 Description BUSY NO ANSWER 7 8 If the called party is already in communication If no hang up is detected after a fixed network time-out NO CARRIER 3 Call setup failed or remote user release. Use the AT+CEER command to know the failure cause if the call succeeds, for voice call only if the call succeeds, for data calls only, takes the value negotiated by the product. Direct dialing from a phonebook (stored in the SIM card) can be performed with the following command: ATD> ; to call from the selected phonebook (by the +CPBS command) ATD> “BILL”; to call “BILL” from the selected phonebook Multi-Tech Systems, Inc. PN S000293A 17 Chapter 5– Call Control Commands ATD> mem (mem is “SM","LD","MC","ME","RC","MT" or "SN", see +CPBS command) allows direct dialing from a phonebook number. Does not function with "ON" mem. Syntax: Command syntax: ATD [][;] ATD>[ ] [][;] ATD>[ ] [][;] Command AT+CPBS? Note: Which phonebook is selected ? ATD>SM6; Note: Call index 6 from AND phonebook Possible responses +CPBS:”SM”,8,10 Note: ADN phonebook is selected, 8 locations are used and 10 locations are available OK Note: Call succeeds When the FDN phonebook has been locked, only numbers beginning with the digits of FDN phonebook entries can be called. For example, if “014629” is entered in the FDN phonebook all the phone numbers beginning with these 6 digits can be called. The CLIR supplementary service subscription can be overridden for this call only. “I” means “invocation” (restrict CLI presentation). “i” means “suppression” (allow CLI presentation). Control of CUG supplementary service information by “G” or “g” is allowed for this call only. The index and info values set with the +CCUG command are used. An outgoing call attempt could be refused if the AOC service is active and credit has expired (NO CARRIER). When trying to set up an outgoing call while there is an active call, the active call is first put on hold, then the call set up is carried out. As per GSM 02.30, GSM sequences may be controlled using dial commands. These sequences can contain “*”, “#”, but “;” is forbidden. If the sequence is not supported or fails, +CME ERROR: is returned. In the case where the FDN phonebook is activated, the sequences concerning call forwarding are allowed only if there are written in the FDN. Command ATD*#21# Note: Check any call forwarding status ATD**61*+33146290800**25# Note: Register call forwarding on no reply, with no reply timer fixed at 25 s. ATD*2# Note: Bad sequence Multi-Tech Systems, Inc. PN S000293A Possible responses +CCFC: 0,7 Note: No call forwarding OK Note: done +CME ERROR 3 18 Chapter 5– Call Control Commands Hang-Up command H Description: The ATH (or ATH0) command disconnects the remote user. In the case of multiple calls, all calls are released (active, on-hold and waiting calls). The specific Wavecom ATH1 command has been appended to disconnect the current outgoing call, only in dialing or alerting state (ie. ATH1 can be used only after the ATD command, and before its terminal response (OK, NO CARRIER, ...). It can be useful in the case of multiple calls. Syntax: Command syntax: ATH Command ATH Note: Ask for disconnection ATH1 Note: Ask for outgoing call disconnection Possible responses OK Note: Every call, if any, are released OK Note: Outgoing call, if any, is released Answer a call A Description: When the product receives a call, it sets the RingInd signal and sends the ASCII “RING” or “+CRING: ” string to the application (+CRING if the cellular result code +CRC is enabled). Then it waits for the application to accept the call with the ATA command. Syntax: Command syntax: ATA Command ATA Note: Answer to this incoming call ATH Note: Disconnect call Possible responses RING Note: Incoming call OK Note: Call accepted OK Note: Call disconnected Remote disconnection This message is used by the product to inform the application that an active call has been released by the remote user. The product sends “NO CARRIER” to the application and sets the DCD signal. In addition, for AOC, the product can release the call if credit has expired (release cause 68 with +CEER command). Multi-Tech Systems, Inc. PN S000293A 19 Chapter 5– Call Control Commands Extended error report +CEER Description: This command gives the cause of call release when the last call set up (originating or answering) failed. Syntax: Command syntax: AT+CEER Command ATD123456789; Note: Outgoing voice call AT+CEER Note: Ask for reason of release Possible responses NO CARRIER Note: Call setup failure +CEER: Error OK Note: is the cause information element values from GSM recommendation 04.08 or specific Call accepted For the cause information element from GSM Technical Specification 04.08 see chapter 18.4 or 18.5. “NO CARRIER” indicates that the AT+CEER information is available for failure diagnosis. DTMF signals +VTD, +VTS +VTD Description: The product enables the user application to send DTMF tones over the GSM network. This command is used to define tone duration (the default value is 300ms). To define this duration, the application uses: AT+VTD= where *100 gives the duration in ms. If n < 4, tone duration is 300 ms. +VTD Syntax: Command syntax: AT+VTD= Command AT+VTD=6 Note: To define 600 ms tone duration AT+VTD=0 Note: To set the default value Possible responses OK Note: Command valid OK +VTS Description: The product enables the user application to send DTMF tones over the GSM network. This command enables tones to be transmitted. To transmit DTMF tones (only when there is an active call), the application uses: AT+VTS= where is in {0-9,*,#,A,B,C,D} +VTS Syntax: Multi-Tech Systems, Inc. PN S000293A 20 Chapter 5– Call Control Commands Command syntax: AT+VTS= Command AT+VTS=A AT+VTS=11 Note: To set the default value AT+VTS=4 Possible responses OK Note: Command valid +CME ERROR: 4 Note: If the is wrong +CME ERROR: 3 Note: If there is no communication Informative example: To send tone sequence 13#, the application sends: AT+VTS=1;+VTS=3;+VTS=# OK Redial last telephone number ATDL Description: This command redials the last number used in the ATD command. The last number dialed is displayed followed by “;” for voice calls only Syntax: Command syntax: ATDL Command ATDL Note: Redial last number Possible responses 0146290800; OK Note: Last call was a voice call. Command valid Automatic dialing with DTR AT%Dn Description: This command enables and disables: · automatic dialing of the phone number stored in the first location of the ADN phonebook, · automatic sending of the short message (SMS) stored in the first location of the SIM. The number is dialed when DTR OFF switches ON. The short message is sent when DTR OFF switches ON. Syntax: Command syntax: AT%D [ ;] Command AT%D1; Note: Activates DTR number dialing DTR is OFF DTR switches ON Note: The number in the first location of the ADN is dialed automatically DTR switches OFF Note: The product goes on-hook AT%D2 Multi-Tech Systems, Inc. PN S000293A Possible responses OK Note: Command has been executed OK 21 Chapter 5– Call Control Commands Note: Activates DTR short message sending Note: Command has been executed Defined values: (0-2) to enable or disable automatic message transmission or number dialing. Informs the product that the number is a voice rather than a fax or data number. AT%D0 Disables automatic DTR number dialing / message transmission. AT%D1 Enables automatic DTR dialing if DTR switches from OFF to ON; Dials the phone number in the first location of the ADN phonebook. Voice call. AT%D1 Activates automatic DTR dialing if DTR switches from OFF to ON; Dials the phone number in the first location of the ADN phonebook. Data or Fax call. AT%D2 Activates automatic DTR message transmission if DTR switches from OFF to ON. Automatic answer ATS0 Description: This S0 parameter determines and controls the product automatic answering mode. Syntax: Command syntax: ATS0= Command ATS0=2 Note: Automatic answer after 2 rings ATS0? Note: Current value ATS0=0 Note: No automatic answer Possible responses OK 002 OK Note: always 3 characters padded with zeros OK Note: Command valid All others S-parameters (S6,S7,S8 …) are not implemented. Multi-Tech Systems, Inc. PN S000293A 22 Chapter 5– Call Control Commands Incoming Call Bearer +CICB Description: This command sets the type of incoming calls when no incoming bearer is given (see +CSNS). Note: Setting the +CICB command affects the current value of +CSNS. Syntax: Command syntax: AT+CICB= Command AT+CICB=1 Note: If no incoming bearer, force a fax call AT+CICB=2 Note: If no incoming bearer, force a voice call AT+CICB? Note: Interrogate value AT+CICB=? Note: Test command Possible responses OK Note: Command accepted OK Note: Command accepted +CICB: 2 Note: Default incoming bearer: voice call +CICB: (0-2) Note: Speech, data or fax default incoming bearer Defined values: 0: Data 1: Fax 2: Speech Single Numbering Scheme +CSNS Description: This command selects the bearer to be used when an MT single numbering scheme call is set up (see +CICB). Note: Setting the +CSNS command affects the current value of +CICB. Syntax: Command syntax: AT+CSNS Command AT+CSNS=2 Note: force a fax call AT+CSNS=0 Note: force a voice call AT+CSNS? Note: Interrogate value AT+CSNS=? Note: Test command Possible responses OK Note: Command accepted OK Note: Command accepted +CSNS: 0 Note: Default incoming bearer: voice call +CSNS: (0,2,4) Note: Voice, data or fax default incoming bearer Defined values: 0: Voice 2: Fax 4: Data Multi-Tech Systems, Inc. PN S000293A 23 Chapter 5– Call Control Commands Gain control +VGR, +VGT Description: This command tunes the receive gain of the speaker and the transmit gain of the microphone. The application sends: AT+VGR= for receive gain 0 to 15 16 to 31 32 to 47 48 to 63 64 to 79 80 to 95 96 to 111 112 to 127 128 to 143 144 to 159 160 to 175 176 to 191 192 to 207 208 to 223 224 to 255 (*) +6 db +4 db +2 db +0 db -2 db -4 db -6 db -8 db -10 db -12 db -14 db -16 db -18 db -20 db -22 db AT+VGT= Controller 1 0 to 31 32 to 63 64 to 95 96 to 127 128 to 159 160 to 191 192 to 223 224 to 255 for transmit gain Controller 1 +30 db +33 db +36 db +39 db +42 db +45 db +48 db +51 db AT+VGT= Controller 2 0 1 2 3 … 19 20 21 (**) 22 (**) 23 (**) … 58 (**) 59 (**) 60 (**) 61 62 … 101 102 to 127 128 to 243 244 245 246 … 255 for transmit gain Controller 2 +0 db +0,5 db +1 db +1,5 db … +9,5 db +10 db +10.5 db +11 db +11.5 db +29 db +29.5 db +30 db +30,5 db +31 db … +50,5 db +51 db -6,5 db -6 db -5,5 db -5 db … -0,5 db The gain values listed here are relative, for absolute (electrical) values please refer to the specific hardware documentation of the module used in the application. Syntax: Command syntax: AT+VGR= AT+VGT= Command AT+VGR=25 AT+VGT=45 AT+VGR? Note: Interrogate value AT+VGR=? Note: Test command AT+VGT? Note: Interrogate value AT+VGT=? Note: Test command Multi-Tech Systems, Inc. PN S000293A Possible responses OK Note: Command valid OK Note: Command valid +VGR: 64 Note: Default receive gain +VGR: (0-255) Note: Possible values +VGT: 64 Note: Default transmit gain +VGT: (0-255) Note: Possible values 24 Chapter 5– Call Control Commands Microphone Mute Control +CMUT Description: This command mutes the microphone input on the product (for the active microphone set with the +SPEAKER command). This command is only allowed during a call. Syntax: Command syntax: AT+CMUT= Command AT+CMUT=? Note: Test command AT+CMUT? Note: Ask for current value AT+CMUT=1 Note: Mute ON (call active) AT+CMUT? Note: Ask for current value AT+CMUT=0 Note: Mute OFF (call not active) Possible responses +CMUT: (0,1) OK Note: Enable / disable mute +CMUT: 0 OK Note: Current value is OFF OK Note: Command valid +CMUT: 1 OK Note: Mute is active (call active) +CME ERROR:3 Note: Command not valid Defined values: 0: microphone mute off (default value). 1: microphone mute on. Speaker & Microphone selection +SPEAKER Description This specific command selects the speaker and the microphone set. Syntax: Command syntax: AT+SPEAKER= Command AT+SPEAKER=0 Note: Speaker ONE and Micro ONE AT+SPEAKER? AT+SPEAKER=? Possible responses OK Note: Command valid +SPEAKER: 0 OK Note: Speaker ONE and Micro ONE are active +SPEAKER: (0,1) OK Defined values: 0: SPEAKER ONE, MICRO ONE 1: SPEAKER TWO, MICRO TWO Multi-Tech Systems, Inc. PN S000293A 25 Chapter 5– Call Control Commands Echo Cancellation +ECHO Description: This command enables, disables or configures the Echo Cancellation functions for voice calls (in rooms, in cars, etc.). It is necessary to tune the Microphone gain (AT+VGT) and the Speaker gain (AT+VGR) before activating the Echo Cancellation. Syntax: Command syntax: `` AT+ECHO= [, , , , , , , ] Command AT+CMEE=1 Note: Enables the use of result code AT+SPEAKER? AT+SIDET=0 Note: Deactivate the Sidetone AT+SIDET? AT+ECHO? Note: Read current settings AT+ECHO=1,1,0,3,10,7 Note: Active Echo cancellation 1 for Mic/Spk one. AT+ECHO? Note: Read current settings AT+ECHO=1,3,30,8000,256 Note: Activate the Echo cancellation 3 AT+ECHO? Note: Read the Echo cancellation settings AT+CFUN=1 Note: Reset the product AT+ECHO? Note: Read current settings AT+ECHO=0 Note: Deactivate the Echo Cancellation Possible responses OK + SPEAKER: 0 OK Note: Speaker ONE and Micro ONE are active OK +SIDET: 0,0 +ECHO: 0,1,0,3,10,7 OK OK +ECHO: 1,1,0,3,10,7 OK +CME ERROR: 519 Note: The new algorithm will be activated after a reset of the product +ECHO: 3,3,30,8000,256 OK OK +ECHO: 1,3,30,8000,256 OK OK Defined values: 0: Deactivate Echo 1: Activate Echo When mode = 1 is choosen, AlgoId is mandatory. 1: Echo cancellation 1 3: Echo cancellation 3 To use Echo cancellation 3, the ECHO feature must be activated. Echo cancellation 1 (4 parameters): The parameter specifies the maximum attenuation of the switch Multi-Tech Systems, Inc. PN S000293A 26 Chapter 5– Call Control Commands 0: 31 db (default) 1: 29 db 2: 27 db 3: 25 db … 14: 3 db 15: 1 db The parameter specifies the attenuation step between attenuation and no attenuation. 0: 1 db 1: 2 db 2: 3 db 3: 4 db (default) The parameter specifies the relative threshold between max and min energy information. The allowed range is [ 0 ; 31 ]. (10 by default) The parameter specifies threshold of max energy information. The allowed range is [ 0 ; 31 ]. (7 by default) Echo Cancellation 3 (3 parameters): high value leads to high echo attenuation but the full-duplex quality will be less efficient. The allowed range is [ 0 ; 63 ]. (30 by default) indicates the noise threshold. Low value leads to high noise attenuation. The threshold 32767 indicates no noise attenuation. The allowed range is [0 ;32767]. (8000 default) indicates the Number of Taps of the Adaptive Filter. The allowed range is [64 ;256]. (256 by default)-64 taps is for short Echo-256 taps is for long Echo. Read Command: AT+ECHO? This command returns the current settings of the Echo cancellation. Returns: +ECHO: , , , , , , , The number of parameters displayed depends on the algorythm used. For Echo cancellation 1, 4 parameters are displayed, 3 parameters are displayed for Echo cancellation 3. 0 Echo Deactivated. 1 Echo Activated for Mic/Spk one. 2 Echo Activated for Mic/Spk two. 3 Reset the product. Note: You can activate/deactivate the echo cancellation during a call without resetting the product if the parameter is not changed. Multi-Tech Systems, Inc. PN S000293A 27 Chapter 5– Call Control Commands SideTone modification +SIDET Description: This command sets the level of audio feedback in the speaker (microphone feedback in the speaker). Syntax: Command syntax: AT+SIDET= , Command AT+SIDET=1,0 AT+SIDET? Note: Current value Possible responses OK Note: Command valid +SIDET: 1,0 OK Note: Command valid Defined values: 0: SideTone is disabled 1: SideTone is enabled 0: 0 db 1: - 6 db 2: - 12 db 3: - 18 db Initialize Voice Parameters +VIP Description: This command allows factory settings for voice parameters to be restored from EEPROM. These voice parameters include: · Gain control (+VGR & +VGT commands), · Microphone mute control (+CMUT command), · Speaker & Microphone selection (+SPEAKER command), · Echo cancellation (+ECHO command), · Side tone modification (+SIDET command). Multi-Tech Systems, Inc. PN S000293A 28 Chapter 5– Call Control Commands Syntax: Command syntax: AT+VIP= =1 Restore all voice parameters. Command Possible responses AT+VIP? +VIP: 1 OK +CME ERROR: 3 AT+VIP=2 Note: Syntax error AT+VIP=1 Note: Restore the factory settings from EEPROM AT+VIP=1 Note: Restore the factory settings from EEPROM with the current Echo cancellation algo (different of the default algo). AT+VIP=? Note: List of supported s Multi-Tech Systems, Inc. PN S000293A OK Note: The command has been executed CME ERROR: 519 Note: Reset the product to accept the new algo. +VIP: (1) OK 29 Chapter 6 – Network Service Commands CHAPTER 6 - NETWORK SERVICE COMMANDS Signal Quality +CSQ Description: This command determines the received signal strength indication ( ) and the channel bit error rate ( ) with or without a SIM card inserted. Syntax: Command syntax: AT+CSQ Command AT+CSQ Possible responses +CSQ: , OK Note: and as defined below Defined values: : 0: -113 dBm or less 1: -111 dBm 30: -109 to –53 dBm 31: -51dBm or greater 99: not known or not detectable : 0…7: as RXQUAL values in the table GSM 05.08 99: not known or not detectable Operator selection +COPS Description: There are three possible ways of selecting an operator (PLMN): 1) The product is in manual mode. It then tries to find the operator specified by the application and if found, tries to register. 2) The product is in automatic mode. It then tries to find the home operator and if found, tries to register. If not found, the product automatically searches for another network. 3) The product enters into manual/automatic mode, and then tries to find an operator as specified by the application (as in manual mode). If this attempt fails it enters automatic mode. If this is successful, the operator specified by the application is selected. The mobile equipment then enters into automatic mode. Note: The read command returns the current mode and the currently selected operator. In manual mode, this PLMN may not be the one set by the application (as it is in the search phase). These commands are not allowed during one communication. Multi-Tech Systems, Inc. PN S000293A 30 Chapter 6 – Network Service Commands Syntax: To force an attempt to select and register on a network, the application must send the following command: Command syntax: AT+COPS= , [ [ , ] ] Possible responses for AT+COPS= : OK (Network is selected with full service) +CME ERROR: 30 (No network service), +CME ERROR: 32 (Network not allowed – emergency calls only) +CME ERROR: 3 (not allowed during one Communication) +CME ERROR: 4 (Incorrect parameters) +CME ERROR: 527 (Please wait, and retry your selection later) +CME ERROR: 528 (Location update failure – emergency calls only) +CME ERROR: 529 (Selection failure – emergency calls only) Response syntax for AT+COPS?: +COPS: [, , ] Response syntax for AT+COPS=?: +COPS: [list of supported ( , long alphanumeric , short alphanumeric s, numeric ) s] If an incoming call occurs during a PLMN list request, the operation is aborted (+CME ERROR: 520) and the unsolicited RING appears Command AT+COPS? Note: Ask for current PLMN AT+COPS=? Note: Ask for PLMN list AT+COPS=1,2,20810 Note: Ask for registration on SFR network AT+COPS=1,1,23433 Note: Ask for registration on UK Orange network AT+COPS=0 Note: Ask for registration on home network AT+COPS=3,0 Note: Set to long alphanumeric AT+COPS? Note: Ask for current PLMN AT+COPS=2 Note: Ask for deregistration from network AT+COPS? Note: Ask for current PLMN Multi-Tech Systems, Inc. PN S000293A Possible responses +COPS: 0,2,20801 OK Note: Home PLMN is France Telecom Orange +COPS: (2,”F Itinéris”,”Itline”,”20801”), (3,”F SFR”,”SFR”,”20810”) OK Note: Home PLMN is France Telecom SFR network has been detected +CME ERROR: 32 Note: Network not allowed – emergency calls only +CME ERROR: 529 Note: Selection failed – emergency calls only OK Note: Succeeded OK +COPS: 0,0,”Orange F” OK Note: Home PLMN is France Telecom Orange OK Note: Succeeded +COPS: 2 Note: ME is unregistered until =0 or 1 is selected 31 Chapter 6 – Network Service Commands Defined values: The parameters values are the following ones: 0: automatic (default value) 1: manual 2: deregistration ; ME will be unregistered until =0 or 1 is selected. 3: set only (for read command AT+COPS?) 4: manual / automatic ( shall be present), if manual selection fails, automatic mode is entered. : format of field 0: long alphanumeric format 1: short alphanumeric format 2: numeric (default value) : status of 0: unknown 1: available 2: current 3: forbidden : operator identifier (MCC/MNC in numeric format only for operator selection) The long alphanumeric format can be up to 16 characters long (see appendix 0 for operator names description, field is “Name”). The short alphanumeric format can be up to 8 characters long. Multi-Tech Systems, Inc. PN S000293A 32 Chapter 6 – Network Service Commands Network registration +CREG Description: This command determines the registration status of the product. Syntax: Command syntax: AT+CREG= Response syntax: +CREG: , [ , , ] for AT+CREG? Command only Command AT+CREG? AT+CREG=0 Note: Disable network registration unsolicited result code AT+CREG=1 Note: Enable network registration unsolicited result code AT+CREG=2 Note: Enable network registration and location information unsolicited result code AT+CREG=? Possible responses +CREG: , OK Note: As defined here-above OK Note: Command valid OK Note: Command valid OK Note: Command valid +CREG: (0-2) Note: 0,1,2 values are supported Defined values: 0: 1: 2: Disable network registration unsolicited result code (default) Enable network registration code result code +CREG: Enable network registration and location information unsolicited result code +CREG: , , if there is a change of network cell. 0: 1: 2: 3: 4: 5: not registered, ME is not currently searching for a new operator. registered, home network. not registered, ME currently searching for a new operator to register to. registration denied. unknown. registered, roaming. : string type; two byte location area code in hexadecimal format (e.g. “00C3” equals 195 in decimal). : string type; two byte cell ID in hexadecimal format. Multi-Tech Systems, Inc. PN S000293A 33 Chapter 6 – Network Service Commands Read operator name +WOPN Description: This specific command returns the operator name in alphanumeric format when given the numeric format. Syntax: Command syntax: AT+WOPN= , Response syntax: +WOPN: , Command AT+WOPN=? Note: Test command AT+WOPN=0,20801 Note: Give an operator in numeric format AT+WOPN=0,99999 Note: Give a wrong operator Possible responses OK +WOPN: 0,”Orange F” OK Note: Alphanumeric answer +CME ERROR: 22 Note: Not found Defined values: is the required format. Only long (0) and short (1) alphanumeric formats are supported. is the operator in numeric format. is the operator in long or short alphanumeric format (see appendix 0 for operator names description) Selection of Preferred PLMN list +CPLS Description: This command selects one PLMN selector with access technology list in the SIM card that is used by AT+CPOL command. Syntax: Command syntax: AT+CPLS= Multi-Tech Systems, Inc. PN S000293A 34 Chapter 6 – Network Service Commands Command AT+CPLS? Note: Ask for selection of the SIM file AT+CPLS=0 Possible responses +CPLS: 1 OK Note: EF_OPLMNwAct is selected Note: if EF_PLMNwAct is not present, EF_PLMNsel will be selected Note: selection of EF_PLMNwAct AT+CPLS=1 Note: selection of EF_OPLMNwAct AT+CPLS=? Note: Get possible values +CME ERROR: 3 Note: EF_OPLMNwAct is not present +CPLS: (0-2) OK Note: The 3 files with Acces technology are present and can be selected +CPLS: (0) AT+CPLS=? Note: Get possible values OK Note: Only EF_PLMNwAct or EF_PLMNsel can be selected Defined values:
: 0: User controlled PLMN selector with access technology EF_PLMNwAct Note: if this file is not found EF_PLMNSel will be selected 1: Operator controlled PLMN selector with access technology EF_OPLMNwAct 2: Home PLMN selector with access technology EF_HPLMNwAct Preferred operator list +CPOL Description: This command edits (or updates) the SIM preferred list of networks. This list is read in the SIM file selected by the command AT+CPLS. Syntax: Command syntax: AT+CPOL= [
] [, [, [, , , ]]] The different possibilities are: · AT+CPOL = to delete an entry. · AT+CPOL = , to set the format used by the read command (AT+CPOL?). · AT+CPOL = , , to put in the next free location. · AT+CPOL = , , to write in the at the . · AT+CPOL = , , , , , to write in the at the precising the acces technology (in the case of EF_PLMNwact, EF_HPLMNwact or EF_OPLMNwact is present). Multi-Tech Systems, Inc. PN S000293A 35 Chapter 6 – Network Service Commands Note: Per default if Acces technology parameters are not given, the GSM access technology will be choosen. The supported format are those of the +COPS command. The length of this list is limited to 85 entries for EF_PLMNsel, and 51 for EF_PLMNwAct, EF_OPLMNwAct, EF_HPLMNwAct. Command AT+CPOL? Note: Ask for preferred list of networks With only EF_PLMNsel present AT+CPOL? Note: Ask for preferred list of networks With EF_PLMNwAct selected and present AT+CPOL=,0 Note: Select long alphanumeric format AT+CPOL? Note: Ask for preferred list of networks With only EF_PLMNsel present AT+CPOL=7,2,20801 Note: Add a network to the list Multi-Tech Systems, Inc. PN S000293A Possible responses +CPOL:1,2,26201 +CPOL: 6,2,20810 OK Note: Preferred list of networks in numeric format (read in EF_PLMNsel) +CPOL:1,2,26201,1,0,0 +CPOL: 6,2,20810,1,0,0 OK Note: Preferred list of networks in numeric format (read in EF_PLMNwAct) GSM acces technology selected GSM compact acces technology not selected Utran acces technology not selected OK +CPOL: 1,0,”D1-TELEKOM” +CPOL: 6,0,”F SFR” OK Note: Preferred list of networks in long alphanumeric format OK 36 Chapter 6 – Network Service Commands Command AT+CPOL? Note: Ask for preferred list of networks With only EF_PLMNsel present AT+CPOL=7 th Note: Delete 7 location AT+CPOL? Note: Ask for preferred list of networks With only EF_PLMNsel present AT+CPOL=8,2,77777 Note: Add a new network to the list With only EF_PLMNsel present Possible responses +CPOL: 1,0,”D1-TELEKOM” +CPOL: 6,0,”F SFR” +CPOL: 7,0,”Orange F” OK Note: Preferred list of networks in long alphanumeric format OK +CPOL: 1,0,”D1-TELEKOM” +CPOL: 6,0,”F SFR” OK Note: Preferred list of networks in long alphanumeric format OK AT+CPOL=8,2,77777,0,0,1 Note: Add a new network to the list With EF_PLMNwact present OK Note: Acces technology UTRAN is selected AT+CPOL=8,2,77777 Note: Add a new network to the list With EF_PLMNwact present AT+CPOL? OK Note: Per default Acces technology GSM is selected Note: Ask for preferred list of networks With only EF_PLMNsel present AT+CPOL=9,0,”Orange F” Note: Add a new network to the list (text format) AT+CPOL? Note: Ask for preferred list of networks With only EF_PLMNsel present +CPOL: 1,0,”D1-TELEKOM” +CPOL: 6,0,”F SFR” +CPOL: 8,2,77777” OK Note: Preferred list of networks in long alphanumeric th format but 8 entry is unknown so the product edits it in the numeric format +CPOL: 1,0,”D1-TELEKOM” +CPOL: 6,0,”F SFR” +CPOL: 8,2,77777” +CPOL: 9,0,”Orange F” OK Note: Preferred list of networks in long alphanumeric format Defined values: : position of the operator record in the sim preferred operator list. : 0 long alphanumeric format for 1 short alphanumeric format for 2 numeric format for : characterstring or integer (see ) indicating operator identifier. : GSM access technology : GSM compact access technology : UTRA access technology 0 access technology not selected 1 access technology selected Multi-Tech Systems, Inc. PN S000293A 37 Chapter 7 – Security Commands CHAPTER 7 - SECURITY COMMANDS Enter PIN +CPIN Description: This command enters the ME passwords (CHV1 / CHV2 / PUK1 / PUK2, etc.), that are required before any ME functionality can be used. CHV1/CHV2 is between 4 and 8 digits long, PUK1/PUK2 is only 8 digits long. If the user application tries to make an outgoing call before the SIM PIN code (CHV1) has been confirmed, then the product will refuse the “ATD” command with a “+CME ERROR: 11” (SIM PIN required). The application is responsible for checking the PIN after each reset or power on - if the PIN was enabled. Syntax: Command syntax: AT+CPIN= Command AT+CPIN=1234 Note: Enter PIN AT+CPIN=5678 Note: Enter PIN Possible responses OK Note: PIN code is correct +CME ERROR: 3 Note: Operation not allowed, PIN previously entered After 3 unsuccessful attempts to enter the PIN (Personal Identification Number), the PUK (Personal Unblocking Key) will be required. PUK validation forces the user to enter a new PIN code as a second parameter and this will be the new PIN code if PUK validation succeeds. CHV1 is then enabled if PUK1 is correct. The application therefore uses this command: AT+CPIN= , Command AT+CPIN=00000000,1234 Note: Enter PUK and new PIN AT+CPIN=12345678,1234 nd Note: Enter PUK and new PIN, 2 attempt Possible responses +CME ERROR: 16 Note: Incorrect PUK OK Note: PUK correct, new PIN stored To determine which code must be entered (or not), the following query command can be used: AT+CPIN? The possible responses are: +CPIN: READY +CPIN: SIM PIN +CPIN: SIM PUK +CPIN: SIM PIN2 +CPIN: SIM PUK2 +CPIN: PH-SIM PIN +CPIN: PH-NET PIN ME is not pending for any password CHV1 is required PUK1 is required CHV2 is required PUK2 is required SIM lock (phone-to-SIM) is required Network personnalisation is required +CME ERROR: SIM failure (13) absent (10) etc… Multi-Tech Systems, Inc. PN S000293A 38 Chapter 7 – Security Commands Please note that in this case the mobile equipment does not end its response with the OK string. The response +CME ERROR: 13 (SIM failure) is returned after 10 unsuccessful PUK attempts. The SIM card is then out of order and must be replaced by a new one. Example: 3 failed PIN validations + 1 successful PUK validation AT+CPIN? +CPIN: SIM PIN AT+CPIN=1235 +CME ERROR: 16 AT+CPIN=1236 +CME ERROR: 16 AT+CPIN=1237 +CME ERROR: 16 Read the PIN status The product requires SIM PIN First attempt to enter a SIM PIN Wrong PIN Second attempt Wrong PIN Third attempt Wrong PIN AT+CPIN? +CPIN: SIM PUK Read PIN state The product requires PUK AT+CPIN=99999999,5678 OK AT+CPIN? +CPIN: READY The PUK is entered, the new PIN shall be 5678 PUK validation is OK. New Pin is 5678 Read PIN state The product is ready If the user tries to do something which requires PIN2 (CHV2), the product will refuse the action with a “+CME ERROR: 17” (SIM PIN2 required). The product then waits for SIM PIN2 to be given. Of course, if SIM PIN2 is blocked, SIM PUK2 is required instead of SIM PIN2. For example, the product needs PIN2 to write in the fixed dialing phonebook (FDN) , so if SIM PIN2 authentication has not been performed during the current session, SIM PIN2 is required Command AT+CPBS=”FD” Note: Choose FDN AT+CPBW=5,”01290917”,129,”Jacky” Note: Write in FDN at location 5 AT+CPIN? AT+CPIN=5678 Note: Enter SIM PIN2 AT+CPBW=2,”01290917”,129,”Jacky” Note: Write in FDN at location 5 Note: Possible responses OK +CME ERROR: 17 Note: SIM PIN2 is required SIM PIN2 Note: SIM PIN2 is required OK OK Note: Now writing in FDN is allowed Please note that the product only requests PIN2 or PUK2 once. Therefore, if they are not entered properly, the next +CPIN? command will return “+CPIN: READY”. Multi-Tech Systems, Inc. PN S000293A 39 Chapter 7 – Security Commands Enter PIN2 +CPIN2 Description: This command validates the PIN2 code (CHV2) or the PUK2 code (UNBLOCK CHV2) and defines a new PIN2 code. Of course, the +CPIN command allows PIN2 or PUK2 codes to be validated, but only when the last command executed resulted in PIN2 authentication failure. PIN2 length is between 4 and 8 digits; PUK2 length is 8 digits only. Syntax: Command syntax: AT+CPIN2= Command AT+CPIN2=1234 Note: Enter PIN2 AT+CPIN2=5678 Note: Enter PIN2 Possible responses OK Note: PIN2 code is correct +CME ERROR: 3 Note: Operation not allowed, PIN2 previously entered After 3 unsuccessful attempts, PUK2 will be required. PUK2 validation forces the user to enter a new PIN2 code as a second parameter and this will be the new PIN2 code if PUK1 validation succeeds. The application uses this command: AT+CPIN2= , Command AT+CPIN2=00000000,1234 Note: Enter PUK2 and new PIN2 AT+CPIN2=12345678,1234 nd Note: Enter PUK2 and new PIN2, 2 attempt Possible responses +CME ERROR: 16 Note: Incorrect Password (PUK2) OK Note: PUK2 correct, new PIN2 stored To determine which code must be entered (or not), the following query command can be used: AT+CPIN2? The possible responses are: +CPIN2: READY +CPIN2: SIM PIN2 +CPIN2: SIM PUK2 +CME ERROR: Multi-Tech Systems, Inc. PN S000293A No PIN2 is needed PIN2 is required PUK2 is required Absent (10) etc… 40 Chapter 7 – Security Commands PIN remaining attempt number +CPINC Description: This command gets the number of valid attempts for PIN1 (CHV1), PIN2 (CHV2), PUK1 (UNBLOCK CHV1) and PUK2 (UNBLOCK CHV2) identifiers. Syntax: Command syntax: AT+CPINC Response syntax: +CPINC: , , , Command AT+CPINC Note: Get the number of attempts left AT+CPINC? Note: Get current values AT+CPINC=? Note: Get possible values Possible responses +CPINC: 2,3,10,10 Note: First CHV1 attempt was a failure +CPINC: 2,3,10,10 Note: First attempt was a failure OK Defined values , are the attempts left for PIN1, PIN2 (0 = blocked, 3 max) , are the attempts left for PUK1, PUK2 (0 = blocked, 10 max) For this to work, the card should be present at the time of initialization, otherwise an error will be sent (+CME ERROR: 10). Facility lock +CLCK Description: This command locks, unlocks or interrogates an ME or network facility . Note: Test SIM cards (with MCC=001 & MNC=01) doesn’t check “PS”, “PN”, “PU”, “PP” and “PC” locks. Syntax: Command syntax: AT+CLCK= , [, [, ] ] Response syntax: +CLCK: [ , ] +CLCK: , [ … ] ] Multi-Tech Systems, Inc. PN S000293A 41 Chapter 7 – Security Commands Command AT+CLCK=”SC”,1,1234 Note: Enable PIN AT+CLCK? Note: Read PIN status AT+CLCK=”SC”,0,5555 Note: Disable PIN AT+CPIN=1234 Note: Enter PIN AT+CLCK=? Note: Request supported facilities AT+CLCK=”PN”,1,12345 678 Note: Activate network lock AR+CLCK=”AO”,1,1234,2 Note: Activate all outgoing calls barring for data calls AT+CLCK=”AO”,2 Note: Query BAOC status AT+CLCK=”SC”,0,0000 Note: Disable PIN Possible responses OK Note: PIN was correct +CLCK:(“PS”,0),(“SC”,0),(“FD”,0),(“PN“,0),(“PU“,0),(“PP“,0),(“PC“,0) OK Note: PIN is enabled, no SIM lock, no network lock, no information on Call barring (no longer supported in GSM Technical Specification 07.07) +CME ERROR: 16 Note: PIN was wrong OK Note: PIN was good +CLCK: (“PS”,”SC”,”AO”,”OI”,”OX”,”AI”,”IR”,”AB”,”AC”, ”FD”,"PN","PU","PP",”PN”) OK Note: Supported facilities OK Network lock activated OK Note: Call barring is activate +CLCK: 1,2 OK Note: BAOC activate for data calls only +CME ERROR: 521 Note: PIN deactivation is forbidden with this SIM card Defined values: The following values are supported: “PS”: SIM lock facility with an 8-digit password. “SC“: PIN enabled ( = 1) / disabled ( = 0) “AO”: BAOC (Barr All Outgoing Calls) “OI” : BOIC (Barr Outgoing International Calls) “OX”: BOIC-exHC (Barr Outgoing. International Calls except to Home Country) “AI” : BAIC (Barr All Incoming Calls) “IR” : BIC-Roam (Barr Inc. When Roaming outside Home Country) “AB”: All Barring services “AG”: All outGoing barring services “AC”: All inComing barring services “PN”: Network lock with an 8-digit password (NCK). “PU”: Network Subset lock with an 8-digit password (NSCK). “PP”: Service Provider lock with an 8-digit password (SPCK). “PC”: Corporate lock with an 8-digit password (CCK). “FD”: SIM Fixed Dialing Numbers (FDN) memory feature (PIN2 is required as ) 0: unlock the facility 1: lock the facility 2: query status Multi-Tech Systems, Inc. PN S000293A 42 Chapter 7 – Security Commands : A facility status can be changed for only one class, or for all classes (7 or omitted).