Name: SIM7020 Series AT Command Manual V1.00
SIM7020%20Series_AT%20Command%20Manual_V1.00
User Manual:
Open the PDF directly: View PDF
.
Page Count: 167
| Download | |
| Open PDF In Browser | View PDF |
FI LE L SI M C O M C O M FI D EN TI A SIM7020 Series_AT Command Manual_V1.00 Document Title SIM7020 Series AT Command Manual Version 1.00 Date 2018-04-10 Status Release Document Control ID SIM7020 Series_AT Command Manual_V1.00 FI LE Smart Machine Smart Decision FI D EN TI A L 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. C O M 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. SI M C O M Copyright © Shanghai SIMCom Wireless Solutions Ltd. 2018 SIM7020 Series_AT Command Manual_V1.00 2 2018-04-10 Smart Machine Smart Decision Contents Version History .........................................................................................10 1 Introduction .........................................................................................11 1.5.1 1.5.2 1.6 L Supported character sets ................................................................................ 13 Flow control ................................................................................................... 13 EN 1.4 1.5 Basic syntax ............................................................................................................ 12 S Parameter syntax .................................................................................................. 12 Extended Syntax...................................................................................................... 12 Combining AT commands on the same Command line .......................................... 12 Entering successive AT commands on separate lines .............................................. 13 TI A 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 FI LE Scope of the document ................................................................................... 11 Related documents ......................................................................................... 11 Conventions and abbreviations ...................................................................... 11 AT Command syntax ...................................................................................... 11 Software flow control (XON/XOFF flow control).................................................. 13 Hardware flow control (RTS/CTS flow control) ..................................................... 14 Definitions...................................................................................................... 14 1.6.1 1.6.2 FI D 1.1 1.1 1.2 1.3 Parameter Saving Mode .......................................................................................... 14 Max Response Time ................................................................................................ 14 Overview of AT Commands According to V.25TER ..................................... 15 Detailed Description of AT Commands According to V.25TER.................... 16 ATE Set Command Echo Mode ........................................................................... 16 ATI Display Product Identification Information .................................................. 16 ATL Set Monitor speaker loudness ...................................................................... 17 ATM Set Monitor Speaker Mode ......................................................................... 17 ATN1 some PC modem driver initial setting to handshake at highest speed larger 18 ATO Switch from Command Mode to Data Mode .............................................. 18 ATP Select Pulse Dialling .................................................................................... 18 ATQ Set Result Code Presentation Mode ............................................................ 19 ATS0 Set Number of Rings before Automatically Answering the Call................ 19 ATS1 Ring counter ............................................................................................... 20 ATS2 Set escape sequence character .................................................................... 21 ATS3 Set Command Line Termination Character ................................................ 21 ATS4 Set Response Formatting Character ........................................................... 22 ATS5 Set Command Line Editing Character ....................................................... 22 ATS6 Pause Before Blind Dialling....................................................................... 23 ATS7 Set Number of Seconds to Wait for Connection Completion ..................... 23 ATS8 Set Number of Seconds to Wait for Comma Dial Modifier Encountered in SI M C O M 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 than S37 2.1.6 2.1.7 2.1.8 2.1.9 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 C O 2.1 2.1 M 2 AT Commands According to V.25TER .............................................15 SIM7020 Series_AT Command Manual_V1.00 3 2018-04-10 Smart Machine Smart Decision C O M FI D EN TI A L FI LE Dial String of D Command ..................................................................................................... 24 2.1.18 ATS10 Set Disconnect Delay after Indicating the Absence of Data Carrier ........ 25 2.1.19 ATS12 Set Escape Code Guard Time .................................................................. 25 2.1.20 ATS25 Set DTR change time ............................................................................... 26 2.1.21 ATS95 Some PC modem driver initial setting to enable extended result codes...... 27 2.1.22 ATT Select Tone Dialing ...................................................................................... 27 2.1.23 ATV TA Response Format .................................................................................. 28 2.1.24 ATX Set CONNECT Result Code Format and Monitor Call Progress ................ 29 2.1.25 ATZ Reset Default Configuration ........................................................................ 30 2.1.26 AT&C Set DCD Function Mode .......................................................................... 30 2.1.27 AT&D Set DTR Function Mode .......................................................................... 30 2.1.28 AT&F Factory Defined Configuration ................................................................. 31 2.1.29 AT&K Flow control setting .................................................................................. 31 2.1.30 AT&V Display Current Configuration ................................................................. 32 2.1.31 AT&W Store Active Profile ................................................................................. 32 2.1.32 AT+DR V.42bis data compression reporting control ........................................... 33 2.1.33 AT+DS V.42bis data compression control ........................................................... 34 2.1.34 AT+GCAP Request Complete TA Capabilities List ............................................. 35 2.1.35 AT+GMI Request Manufacturer Identification .................................................... 35 2.1.36 AT+GMM Request TA Model Identification ....................................................... 36 2.1.37 AT+GMR Request TA Revision Identification of Software Release ................... 36 2.1.38 AT+GOI Request Global Object Identification .................................................... 37 2.1.39 AT+GSN Request TA Serial Number Identification (IMEI) ................................ 37 2.1.40 AT+ICF Set TE-TA Control Character Framing .................................................. 38 2.1.41 AT+IFC Set TE-TA Local Data Flow Control ..................................................... 39 2.1.42 AT+ILRR Set TE-TA Local rate reporting mode ................................................. 40 2.1.43 AT+IPR Set TE-TA Fixed Local Rate .................................................................. 40 2.1.44 AT+FCLASS Set Fax Class ................................................................................. 42 Overview of AT Command According to 3GPP TS 27.007 ........................... 43 Detailed Descriptions of AT Command According to 3GPP TS 27.007........ 44 O 3.1 3.2 M 3 AT Commands According to 3GPP TS 27.007 ..................................43 SI M C 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.2.10 3.2.11 3.2.12 AT+CEER Extended Error Report ....................................................................... 44 AT+CGMI Request Manufacturer Identification ................................................. 47 AT+CGMM Request Model Identification .......................................................... 47 AT+CGMR Request TA Revision Identification of Software Release ................. 48 AT+CGOI Request global object identification ................................................... 48 AT+CGSN Request Product Serial Number Identification .................................. 49 AT+CIMI Request International Mobile Subscriber Identity ............................... 49 AT+CLCK Facility Lock...................................................................................... 50 AT+CMAR Master reset ...................................................................................... 51 AT+CMEE Report Mobile Equipment Error ....................................................... 51 AT+COPS Operator Selection .............................................................................. 52 AT+CPIN Enter PIN ............................................................................................ 54 SIM7020 Series_AT Command Manual_V1.00 4 2018-04-10 Smart Machine Smart Decision C O M FI D EN TI A L FI LE AT+CPWD Change Password.............................................................................. 55 AT+CR Service Reporting Control ...................................................................... 56 AT+CREG Network Registration......................................................................... 57 AT+CRSM Restricted SIM Access ...................................................................... 58 AT+CSCS Select TE Character Set ...................................................................... 59 AT+CSQ Signal Quality Report ........................................................................... 60 AT+CMUX Multiplexer Control .......................................................................... 61 AT+CNUM Subscriber Number........................................................................... 62 AT+CPOL Preferred Operator List ...................................................................... 63 AT+CFUN Set Phone Functionality ..................................................................... 64 AT+CCLK Clock ................................................................................................. 65 AT+CSIM Generic SIM Access ........................................................................... 66 AT+CBC Battery Charge ..................................................................................... 67 AT+CTZR Time Zone Reporting ......................................................................... 67 AT+CTZU Automatic Time update...................................................................... 68 AT+CPLS Selection of preferred PLMN list ....................................................... 69 AT+CPSMS Power saving mode setting ............................................................ 70 AT+CCIOTOPT CIoT optimization configuration ............................................ 71 AT+CEDRXS eDRX setting .............................................................................. 73 AT+CEDRXRDP eDRX Read Dynamic Parameters ....................................... 74 AT+CCHO Open UICC logical channel ............................................................ 75 AT+CCHC Close UICC logical channel .......................................................... 76 AT+CGLA Generic UICC logical channel access............................................ 76 AT+CPINR Remaining PIN retries ................................................................ 77 AT+CGATT GPRS/Packet Domain attach or detach ........................................... 78 AT+CGDCONT Define PDP Context .................................................................. 78 AT+CGACT PDP Context Activate or Deactivate ............................................... 81 AT+CGPADDR Show PDP Address .................................................................... 82 AT+CGEREP Packet Domain Event Reporting ................................................... 83 AT+CGREG Network Registration Status ........................................................... 86 AT+CGCONTRDP PDP Context Read Dynamic Parameters ............................. 87 AT+CGPIAF Printing IP Address Format ............................................................ 88 AT+CGDEL Delete Non-Active PDP Contexts ................................................... 90 AT+CGAUTH Define PDP Context Authentication Parameters ......................... 90 AT*MCGDEFCONT Set Default PSD Connection Settings ............................... 91 AT*MSACL Enable/Disable ACL feature ......................................................... 92 AT*MLACL Display ACL List .......................................................................... 93 AT*MWACL Write an ACL entry .................................................................... 94 AT*MDACL Delete an ACL entry ....................................................................... 94 AT+CNBIOTDT NB-IOT Data Type ................................................................... 95 SI M C O M 3.2.13 3.2.14 3.2.15 3.2.16 3.2.17 3.2.18 3.2.19 3.2.20 3.2.21 3.2.22 3.2.23 3.2.24 3.2.25 3.2.26 3.2.27 3.2.28 3.2.29 3.2.30 3.2.31 3.2.32 3.2.33 3.2.34 3.2.35 3.2.36 3.2.37 3.2.38 3.2.39 3.2.40 3.2.41 3.2.42 3.2.43 3.2.44 3.2.45 3.2.46 3.2.47 3.2.48 3.2.49 3.2.50 3.2.51 3.2.52 4 AT Commands Special for SIMCom .................................................97 4.1 4.2 Overview ........................................................................................................ 97 Detailed Descriptions of Commands ............................................................. 97 SIM7020 Series_AT Command Manual_V1.00 5 2018-04-10 Smart Machine Smart Decision L FI LE AT+CPOWD Power off ....................................................................................... 97 AT+CADC Read ADC ........................................................................................ 98 AT+CLTS Get Local Timestamp ......................................................................... 98 AT+CBAND Get and Set Mobile Operation Band .............................................. 99 AT+CENG Report Network State ...................................................................... 100 AT+CCID Show ICCID ..................................................................................... 104 AT+EXUNSOL Enable or Disable Proprietary Unsolicited Indications ............ 104 AT+GSV Display Product Identification Information........................................ 105 AT*CELLLOCK Set the List of ARFCN Which Needs to Be Locked .............. 105 AT+SLEDS Set the Timer Period of Net Light .................................................. 106 AT+CNETLIGHT Close the Net Light or Open It to Shining ........................... 107 AT+CSMINS SIM Inserted Status Reporting .................................................... 108 AT+CSPCHSC Set Scrambling Algorithm for NPDSCH ................................ 109 AT+CATWAKEUP Enable Deep Sleep Wakeup Indication .......................... 109 AT+CSCLK Configure Slow Clock .................................................................. 110 TI A 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.15 Overview of AT Commands for TCPIP Application Toolkit ....................... 112 Detailed Descriptions of AT Commands for TCPIP Application Toolkit .... 112 M FI D AT+CSGACT Activate or deactivate a PDN context....................................... 112 AT+CSOC Create a TCP/UDP socket................................................................ 114 AT+CSOCON Connect socket to remote address and port ................................ 115 AT+CSOSEND Send data to remote via socket ................................................. 115 AT+CSOCL Close socket................................................................................... 116 AT+CSOSENDFLAG Set TCP send flag .......................................................... 117 AT+CSOSTATUS Get socket status................................................................... 117 AT+CSOACK Query Previous Connection Data Transmitting State ................ 118 +CSONMI Socket message arrived indicator .................................................... 118 +CSOERR Socket error indicator ...................................................................... 119 M 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.2.10 C O 5.1 5.2 EN 5 AT Commands for TCPIP Application Toolkit ...............................112 6 AT Commands for HTTP/HTTPS Client .........................................120 Overview of AT Commands for HTTP/HTTPS Client ................................ 120 Detailed Descriptions of AT Commands for HTTP/HTTPS Client ............. 120 C O 6.1 6.2 SI M 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 AT+CHTTPCREATE Create a HTTP/HTTPS client instance .......................... 120 AT+CHTTPCON Establish the HTTP/HTTPS connection ............................... 121 AT+CHTTPDISCON Close the HTTP/HTTPS connection .............................. 122 AT+CHTTPDESTROY Destroy the HTTP/HTTPS client instance .................. 122 AT+CHTTPSEND Send HTTP/HTTPS package .............................................. 123 +CHTTPNMIH Header of the response from host ............................................ 124 +CHTTPNMIC Content of the response from host ........................................... 124 +CHTTPERR HTTP client connection error indicator ...................................... 125 7 AT Commands for PING Support ....................................................126 7.1 Overview of AT Commands for PING Support ........................................... 126 SIM7020 Series_AT Command Manual_V1.00 6 2018-04-10 Smart Machine Smart Decision 7.2 Detailed Descriptions of AT Commands for PING Support ........................ 126 7.2.1 AT+CIPPING Test IP network connectivity to a remote host ........................... 126 8 AT Commands for Network Command – LwM2M .........................128 8.1 8.2 Overview of AT Commands for Network Command – LwM2M ................ 128 Detailed Descriptions of AT Commands for Network Command – LwM2M128 AT+CLMCONF Configuration LwM2M instance and create the connection ... 128 AT+CLMADDOBJ Add LwM2M object .......................................................... 129 AT+CLMDELOBJ Delete LwM2M object ....................................................... 129 AT+CLMREAD Read notification and command ............................................. 129 AT+CLMWRITE Write notification and command .......................................... 130 AT+CLMEXECUTE Execute notification and command ................................. 131 AT+CLMNOTIFY Notify data change.............................................................. 131 AT+CLMDEL Delete LwM2M instance ........................................................... 132 +CLMOBSERVE Observed command ................................................................. 132 +CLMPARAMETER Observed command ........................................................... 132 +CLMERR Indicated there is some error ............................................................. 133 EN TI A L FI LE 8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.2.7 8.2.8 8.2.9 8.2.10 8.2.11 9 AT Commands for Network Command – MQTT ............................134 Overview of AT Commands for Network Command-MQTT ...................... 134 Detailed Descriptions of AT Commands for Network Command-MQTT ... 134 FI D 9.1 9.2 C O 10 AT+CMQNEW New MQTT.............................................................................. 134 AT+CMQCON Send MQTT connection packet ................................................ 135 AT+CMQDISCON Disconnect MQTT ............................................................. 136 AT+CMQSUB Send MQTT subscribe packet ................................................... 136 AT+CMQUNSUB Send MQTT unsubscribe packet ......................................... 137 AT+CMQPUB Send MQTT publish packet ...................................................... 137 M 9.2.1 9.2.2 9.2.3 9.2.4 9.2.5 9.2.6 AT Commands for Network Command – CoAP...........................139 Overview of AT Commands for Network Command-CoAP .................... 139 Detailed Descriptions of AT Commands for Network Command-CoAP . 139 O M 10.1 10.2 SI M C 10.2.1 10.2.2 10.2.3 10.2.4 10.2.5 11 AT Commands for Network Command – SNTP...........................142 11.1 11.2 Overview of AT Commands for Network Command-SNTP .................... 142 Detailed Descriptions of AT Commands for Network Command-SNTP . 142 11.2.1 11.2.2 11.2.3 12 AT+CCOAPSTA Start CoAP server .................................................................. 139 AT+CCOAPNEW Create a CoAP client instance ............................................. 139 AT+CCOAPSEND Send CoAP data.................................................................. 140 AT+CCOAPDEL Destory the CoAP client instance ......................................... 140 +CCOAPNMI Content from CoAP server......................................................... 141 AT+CSNTPSTART Start to query network time ............................................... 142 AT+CSNTPSTOP Stop querying network time ................................................. 142 +CSNTP Received network time ....................................................................... 143 AT Commands for Network Command – TLS .............................144 SIM7020 Series_AT Command Manual_V1.00 7 2018-04-10 Smart Machine Smart Decision Overview of AT Commands for Network Command- TLS ..................... 144 Detailed Descriptions of AT Commands for Network Command-TLS ... 144 12.2.1 12.2.2 12.2.3 12.2.4 12.2.5 13 AT+CTLSCFG Configure TLS parameters ....................................................... 144 AT+CTLSONN Create a TLS connection.......................................................... 145 AT+CTLSCLOSE Close a TLS connection ....................................................... 145 AT+CTLSSEND Send data ................................................................................ 146 AT+CTLSRECV Receive data ........................................................................... 146 FI LE 12.1 12.2 AT Commands for Network Command –OneNET .......................148 Overview of AT Commands for Network Command- OneNet ................ 148 Detailed Descriptions of AT Commands for Network Command-OneNet149 M FI D EN TI A L AT+MIPLCREATE Create a OneNET instance ................................................ 149 AT+MIPLDELETE Delete a OneNET instance ................................................ 150 AT+MIPLOPEN Register to OneNET. .............................................................. 150 AT+MIPLCLOSE Deregister to OneNET. ........................................................ 151 AT+MIPLADDOBJ Add an object .................................................................... 152 AT+MIPLDELOBJ Delete an object. ................................................................ 152 AT+MIPLUPDATE Update registration ............................................................ 153 AT+MIPLREADRSP Read response from user ................................................. 153 AT+MIPLWRITERSP Write response from user .............................................. 155 AT+MIPLEXECUTERSP Execute response from user ................................. 155 AT+MIPLOBSERVERSP Observe response from user ................................ 156 AT+MIPLDISCOVERRSP Discover response from user ............................. 156 AT+MIPLPARAMETERRSP Set parameter from user ................................. 157 AT+MIPLNOTIFY Notify data value change from user ............................... 158 AT+MIPLVER Read version.......................................................................... 158 +MIPLREAD Read request to user ................................................................ 159 +MIPLWRITE Write request to user ............................................................. 159 +MIPLEXECUTE Execute request to user .................................................... 160 +MIPLOBSERVE Observe request to user ................................................... 160 +MIPLDISCOVER Discover request to user ................................................ 160 +MIPLPARAMETER Set parameter request to user........................................ 161 +MIPEVENT Event indication to user ............................................................. 161 C O M 13.2.1 13.2.2 13.2.3 13.2.4 13.2.5 13.2.6 13.2.7 13.2.8 13.2.9 13.2.10 13.2.11 13.2.12 13.2.13 13.2.14 13.2.15 13.2.16 13.2.17 13.2.18 13.2.19 13.2.20 13.2.21 13.2.22 C O 13.1 13.2 AT Commands for DNS ................................................................163 M 14 SI 14.1 14.2 Overview of AT Commands for DNS Command ..................................... 163 Detailed Descriptions of AT Commands for DNS Command .................. 163 14.2.1 14.2.2 15 AT+CDNSCFG Configure Domain Name Server ................................................ 163 AT+CDNSGIP Query the IP Address of Given Domain Name ............................ 164 15.1 15.2 15.3 Supported Unsolicited Result Codes .............................................165 Summary of CME ERROR Codes ........................................................... 165 Summary of CMS ERROR Codes ........................................................... 165 Summary of Unsolicited Result Codes .................................................... 165 SIM7020 Series_AT Command Manual_V1.00 8 2018-04-10 Smart Machine Smart Decision 16 AT Commands Examples ..............................................................166 CoAP command ....................................................................................... 166 SI M C O M C O M FI D EN TI A L FI LE 16.1 SIM7020 Series_AT Command Manual_V1.00 9 2018-04-10 Smart Machine Smart Decision Version History Date Chapter V1.00 2018-04-10 What is new New version SI M C O M C O M FI D EN TI A L FI LE Version SIM7020 Series_AT Command Manual_V1.00 10 2018-04-10 Smart Machine Smart Decision 1 Introduction 1.1 Scope of the document FI LE This document presents the AT Command Set for SIMCom SIM7020 Series, including SIM7020. 1.1 Related documents L You can visit the SIMCom Website using the following link: TI A http://www.simcomm2m.com 1.2 Conventions and abbreviations FI D EN In this document, the GSM engines are referred to as following term: ME (Mobile Equipment); MS (Mobile Station); TA (Terminal Adapter); DCE (Data Communication Equipment) or facsimile DCE (FAX modem, FAX board); M C O M 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: TE (Terminal Equipment); DTE (Data Terminal Equipment) or plainly "the application" which is running on an embedded system; O 1.3 AT Command syntax SI M C The "AT" or "at" or “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 SIM7020 Series is a combination of 3GPP TS 27.005, 3GPP TS 27.007 and ITU-T recommendation V.25ter and the AT commands developed by SIMCom. Note: Only enter AT Command through serial port after SIM7020 Series is powered on and Unsolicited Result Code "RDY" is received from serial port. If auto-bauding is enabled, the Unsolicited Result Codes "RDY" SIM7020 Series_AT Command Manual_V1.00 11 2018-04-10 Smart Machine Smart Decision and so on are not indicated when you start up the ME, and the "AT" prefix, or "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: Basic syntax FI LE 1.3.1 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. S Parameter syntax L 1.3.2 1.3.3 EN TI A 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. Extended Syntax FI D These commands can operate in several modes, as in the following table: Table 1: Types of AT commands and responses Read Command M This command returns the currently set value of the parameter or parameters. AT+ =<…> This command sets the user-definable parameter values. AT+ M C O Execution Command The execution command reads non-variable parameters affected by internal processes in the GSM engine. Combining AT commands on the same Command line SI 1.3.4 The mobile equipment returns the list of parameters and value ranges set with the corresponding Write Command or by internal processes. AT+ ? M Write Command AT+ =? C O Test Command 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; in basic syntax or S parameter syntax, the semicolon need not enter, for example: ATE1Q0S0=1S3=13V1X4;+IFC=0,0;+IPR=115200. The Command line buffer can accept a maximum of 4200 characters (counted from the first command without "AT" or "at" prefix). If the characters entered exceeded this number then none SIM7020 Series_AT Command Manual_V1.00 12 2018-04-10 Smart Machine Smart Decision of the Command will executed and TA will return "ERROR". 1.3.5 Entering successive AT commands on separate lines FI LE 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.4 Supported character sets EN TI A L The SIM7020 Series AT Command interface defaults to the IRA character set. The SIM7020 Series supports the following character sets: GSM format UCS2 IRA The character set can be set and interrogated using the "AT+CSCS" Command (3GPP TS 27.007). The character set is defined in GSM specification 3GPP TS 27.005. 1.5 Flow control FI D 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. C O M 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. O M There are basically two approaches to achieve data flow control: software flow control and hardware flow control. SIM7020 Series support both two kinds of flow control. In Multiplex mode, it is recommended to use the hardware flow control. Software flow control (XON/XOFF flow control) C 1.5.1 SI M 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 SIM7020 Series 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 Ensure that any communications software package (e.g. Hyper terminal) uses software flow SIM7020 Series_AT Command Manual_V1.00 13 2018-04-10 Smart Machine Smart Decision control. 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. Hardware flow control (RTS/CTS flow control) FI LE 1.5.2 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. TI A L To achieve hardware flow control, ensure that the RTS/CTS lines are present on your application platform. 1.6.1 EN 1.6 Definitions Parameter Saving Mode 1.6.2 M C O M FI D For the purposes of the present document, the following syntactical definitions apply: NO_SAVE: The parameter of the current AT command will be lost if module is rebooted or current AT command doesn't have parameter. AUTO_SAVE: The parameter of the current AT command will be kept in NVRAM automatically and take in effect immediately, and it won't be lost if module is rebooted. AUTO_SAVE_REBOOT: The parameter of the current AT command will be kept in NVRAM automatically and take in effect after reboot, and it won't be lost if module is rebooted. -: "-" means this AT command doesn’t care the parameter saving mode. Max Response Time SI M C O Max response time is estimated maximum time to get response, the unit is seconds. "-" means this AT command doesn’t care the response time. SIM7020 Series_AT Command Manual_V1.00 14 2018-04-10 Smart Machine Smart Decision 2 AT Commands According to V.25TER FI LE 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 Description ATE Set command echo mode ATI Display product identification information ATL Set monitor speaker loudness ATM Set monitor speaker mode ATN1 Some PC modem driver initial setting to handshake at highest speed larger TI A EN than S37 L Command Switch from command mode to data mode ATP Select pulse dialling ATQ Set result code presentation mode ATS0 Set number of rings before automatically answering the call ATS1 Ring counter ATS2 Set escape sequence character ATS3 Set command line termination character M C O ATS4 Set response formatting character ATS5 Set command line editing character C O ATS8 Pause before blind dialling M ATS6 ATS7 FI D ATO Set number of seconds to wait for connection completion Set number of seconds to wait for comma dial modifier encountered in dial string of D command Set disconnect delay after indicating the absence of data carrier ATS12 Set escape code guard time ATS25 Set DTR change time SI M ATS10 ATS95 Some PC modem driver initial setting to enable extended result codes ATT Select Tone Dialing ATV TA response format ATX Set connect result code format and monitor call progress ATZ Reset default configuration AT&C Set DCD function mode AT&D Set DTR function mode SIM7020 Series_AT Command Manual_V1.00 15 2018-04-10 Factory defined configuration AT&K Flow control setting AT&V Display current configuration AT&W Store Active Profile AT+DR V.42bis data compression reporting control AT+DS V.42bis data compression control AT+GCAP Request complete TA capabilities list AT+GMI Request manufacturer identification AT+GMM Request TA model identification AT+GMR Request TA revision identification of software release AT+GOI Request global object identification AT+GSN Request TA serial number identification (IMEI) AT+ICF Set TE-TA control character framing AT+IFC Set TE-TA local data flow control AT+ILPR Set TE-TA Local rate reporting mode AT+IPR Set TE-TA fixed local rate AT+FCLASS Set Fax Class FI D EN TI A L AT&F FI LE Smart Machine Smart Decision 2.1 Detailed Description of AT Commands According to V.25TER Set Command Echo Mode M ATE ATE Set Command Echo Mode Response This setting determines whether or not the TA echoes characters received from TE during Command state. OK Parameters 0 Echo mode off 1 Echo mode on M C O M Execution Command ATE C O 2.1.1 SI Parameter Saving Mode Max Time Response - Reference V.25ter 2.1.2 Note ATI Display Product Identification Information ATI Display Product Identification Information SIM7020 Series_AT Command Manual_V1.00 16 2018-04-10 Smart Machine Smart Decision Execution Command ATI Response TA issues product information text Example: SIM7020 R1752 FI LE OK Parameter Saving NO_SAVE Mode Response - 2.1.3 Note L Reference V.25ter TI A Max Time ATL Set Monitor speaker loudness Response OK Parameters 0..3 Volume Response - Reference V.25ter ATM Set Monitor Speaker Mode Set Monitor Speaker Mode O ATM Note No effect in GSM M 2.1.4 C O Max Time M Parameter Saving NO_SAVE Mode FI D Execution Command ATL EN ATL Set Monitor speaker loudness Response OK Parameters 0..2 Mode SI M C Execution Command ATM Parameter Saving NO_SAVE Mode Max Time Response - Reference V.25ter Note No effect in GSM SIM7020 Series_AT Command Manual_V1.00 17 2018-04-10 Smart Machine Smart Decision 2.1.5 ATN1 some PC modem driver initial setting to handshake at highest speed larger than S37 ATN1 Some PC modem driver initial setting to handshake at highest speed larger than S37 Response OK Parameters FI LE Execution Command ATN1 Parameter Saving NO_SAVE Mode 2.1.6 Note TI A Reference V.25ter L Response - ATO Switch from Command Mode to Data Mode EN Max Time ATO Switch from Command Mode to Data Mode Response TA resumes the connection and switches back from command mode to data mode. FI D Execution Command ATO[n] C O M CONNECT If connection is not successfully resumed ERROR else TA returns to data mode from command mode CONNECT Note: only if parameter setting ATX>0 M Parameter 0 Switch from command mode to data mode. C O Parameter Saving NO_SAVE Mode M Max Time Response - SI Reference V.25ter 2.1.7 Note ATP Select Pulse Dialling ATP Select Pulse Dialling SIM7020 Series_AT Command Manual_V1.00 18 2018-04-10 Smart Machine Smart Decision Execution Command ATP Response OK Parameter Saving NO_SAVE Mode Reference V.25ter 2.1.8 FI LE Response - Note No effect in GSM ATQ Set Result Code Presentation Mode L Max Time TI A ATQ Set Result Code Presentation Mode 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) FI D EN Execution Command ATQ C O M Parameters 0 TA transmits result code 1 Result codes are suppressed and not transmitted Parameter Saving Mode Response - M Max Time Note C O Reference V.25ter M 2.1.9 commands in this specification (either 3GPP or MediaTek proprietary). Set Number of Rings before Automatically Answering the Call Set Number of Rings before Automatically Answering the Call SI ATS0 ATS0 This command only affects V.250 AT commands and not all other AT Read Command ATS0? Response OK Parameters See Write Command Write Command Response SIM7020 Series_AT Command Manual_V1.00 19 2018-04-10 Smart Machine Smart Decision This parameter setting determines the number of rings before auto-answer. OK ATS0= ERROR FI LE Parameters 0 Automatic answering is disable. 1-255 Number of rings the modem will wait for before answering the phone if a ring is detected. Parameter Saving Mode Response - L Max Time Note If is set too high, the calling party may hang up before the call can be answered automatically. If using cmux port, ATH and AT+CHUP can hang up the call (automatically answering) only in the CMUX channel 0. If using dual-physical serial port, ATH and AT+CHUP can hang up the call (automatically answering) only in UART1. 2.1.10 ATS1 Ring counter Response C O Read Command ATS1? M ATS1 Ring counter FI D EN TI A Reference V.25ter OK M Parameters See Write Command SI M C O Write Command ATS1= Response This command will not alert the RING counter,but simply display OK ERROR Parameters The number of “RING” strings sent to the TE as a result of receiving an incoming call. 0-255 Parameter Saving AT&W_SAVE Mode Max Time Response - SIM7020 Series_AT Command Manual_V1.00 20 2018-04-10 Smart Machine Smart Decision Reference V.25ter Note If “RING” is not displayed on a particular channel due to other settings (such as suppression of all unsolicited events (ATQ)) then this value should not be incremented. This value is reset to 0 when receiving a new incoming call. Note that this command should also be made channel specific as with other ATS commands. Set escape sequence character Read Command ATS2? Response L ATS3 Set escape sequence character FI LE 2.1.11 ATS2 TI A OK Parameters See Write Command Response EN Write Command ATS2= This parameter setting determines the character recognized by the TA to indicate the escape sequence. FI D OK ERROR M Parameters 0-43-255 escape sequence character C O Note: default 43 = ‘+’ Parameter Saving AT&W_SAVE Mode Response - M Max Time Note O Reference V.25ter M C 2.1.12 ATS3 ATS3 Set Command Line Termination Character Set Command Line Termination Character SI Read Command ATS3? Response OK Parameters See Write Command Write Command ATS3= Response This parameter setting determines the character recognized by TA to SIM7020 Series_AT Command Manual_V1.00 21 2018-04-10 Smart Machine Smart Decision terminate an incoming command line. The TA also returns this character in output. OK ERROR Response - 2.1.13 ATS4 Set Response Formatting Character Set Response Formatting Character Read Command ATS4? EN ATS4 Note Default 13 = CR. It only supports default value. Response OK TI A Reference V.25ter FI D Max Time L Parameter Saving Mode FI LE Parameters 0-13-127 Command line termination character Response This parameter setting determines the character generated by the TA for result code and information text. OK C O Write Command ATS4= M Parameters See Write Command O M ERROR Parameters 0-10-127 Response formatting character M C Parameter Saving Mode Response - SI Max Time Reference V.25ter 2.1.14 ATS5 ATS5 Note Default 10 = LF. It only supports default value. Set Command Line Editing Character Set Command Line Editing Character Read Command ATS5? Response SIM7020 Series_AT Command Manual_V1.00 22 2018-04-10 Smart Machine Smart Decision OK Parameters See Write Command Response This parameter setting determines the character recognized by TA as a request to delete from the command line the immediately preceding character. OK FI LE Write Command ATS5= Parameters 0-8-127 TI A Response formatting character Parameter Saving AT&W_SAVE Mode 2.1.15 ATS6 Pause Before Blind Dialling Pause Before Blind Dialling Read Command ATS6? Response M ATS6 Note Default 8 = Backspace. FI D Reference V.25ter EN Response - C O Max Time L ERROR OK Response OK ERROR Parameters 0-2-10 Time M C O M Write Command ATS6= SI Parameter Saving AT&W_SAVE Mode Max Time Response - Reference V.25ter 2.1.16 ATS7 ATS7 Note No effect in GSM Set Number of Seconds to Wait for Connection Completion Set Number of Seconds to Wait for Connection Completion SIM7020 Series_AT Command Manual_V1.00 23 2018-04-10 Smart Machine Smart Decision Read Command ATS7? Response OK Parameters See Write Command Response This parameter setting determines the amount of time to wait for the connection completion in case of answering or originating a call. OK FI LE Write Command ATS7= L ERROR TI A Parameters 1-60-255 Number of seconds to wait for connection completion Parameter Saving AT&W_SAVE Mode Note If called party has specified a high value for ATS0= , call setup may fail. The correlation between ATS7 and ATS0 is important Example: Call may fail if ATS7=30 and ATS0=20. ATS7 is only applicable to data call. M Reference V.25ter EN Response - FI D Max Time C O 2.1.17 ATS8 Set Number of Seconds to Wait for Comma Dial Modifier Encountered in Dial String of D Command M ATS8 Set Number of Seconds to Wait for Comma Dial Modifier Encountered in Dial String of D Command M C O Read Command ATS8? SI Write Command ATS8= Response OK Parameters See Write Command Response OK ERROR Parameters 0 no pause when comma encountered in dial string 1-2-255 The value of this register determines how long the modem should pause when it sees a comma in the dialing string. SIM7020 Series_AT Command Manual_V1.00 24 2018-04-10 Smart Machine Smart Decision Parameter Saving Mode Response - 2.1.18 ATS10 ATS10 Note No effect in GSM FI LE Reference V.25ter Set Disconnect Delay after Indicating the Absence of Data Carrier Set Disconnect Delay after Indicating the Absence of Data Carrier Read Command ATS10? Response L Max Time TI A OK Parameters See Write Command EN 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 M ERROR FI D Write Command ATS10= Number of tenths seconds of delay C O Parameters 1-15-254 Parameter Saving Mode Response - M Max Time C O Reference V.25ter Note This command is not used, as there have been issues with in-band DCD dropping unexpectedly for CSD calls on some networks. M 2.1.19 ATS12 Set Escape Code Guard Time SI This command sets the escape code guard time in fiftieths of a second. The escape guard time is used to measure when to detect the +++ escape sequence has been entered by the PC in order to drop out of data mode back to AT command mode. The guard time determines the time that forms a guard period before and after three escape sequence characters. In order to distinguish an escape sequence from just three escape sequence characters in the data stream there is timing associated to the three escape sequence characters of an escape sequence. The time between the last byte of the data stream and the first escape sequence character must be at least the guard time and the time between each escape sequence character of the escape SIM7020 Series_AT Command Manual_V1.00 25 2018-04-10 Smart Machine Smart Decision sequence must be less than the guard time and no other byte is received after the third escape sequence character for the time of the guard time. If an escape sequence is detected, the OK result code will be sent to the DTE. Otherwise, the DCE will stay in data mode. For example: “ +++ ” Set Escape Code Guard Time Read Command ATS12? Response FI LE ATS12 OK NB: is in 3 decimal digits format (e.g. Default value is given as 050). L If error is related to wrong AT syntax: +CME ERROR: Response OK EN Write Command ATS12= ERROR Response - C O Max Time Reference V.25ter Note Set DTR change time M 2.1.20 ATS25 Number of 20 ms. M Parameter Saving AT&W_SAVE Mode FI D Parameters 0-50-255 TI A Parameters See Write Command M C O This command sets the S-register 25 Detect DTR change time that contain the threshold for noticing a change in DTR. This time permits to the modem to ignore DTR before taking action specified by &Dn (See AT&D Circuit 108 behavior). The value unit is in 1/100 seconds. Default value is set to 5 (50ms delay after a DTR drop before the modem acts on it). SI ATS25 Set DTR change time Read Command ATS25? Response OK NB: is in 3 decimal digits format (e.g. Default value is given as 000). If error is related to wrong AT syntax: SIM7020 Series_AT Command Manual_V1.00 26 2018-04-10 Smart Machine Smart Decision +CME ERROR: Parameters See Write Command Write Command ATS25= Response OK Parameters 0-5-255 FI LE ERROR Number of 10 ms. Parameter Saving AT&W_SAVE Mode ATS95 TI A 2.1.21 ATS95 Note Some PC modem driver initial setting to enable extended result codes EN Reference V.25ter L Response - Some PC modem driver initial setting to enable extended result codes Read Command ATS95? Response OK FI D Max Time Response OK C O Write Command ATS95= M Parameters See Write Command Some standard PC modem drivers will send this AT command to initialize the setting, but it is meaningless in the 3gpp standard. So we just return OK and no O M effect for the setting. Parameters 0-255 meaningless for the GSM, and GPRS/Packet Domain setting . M C Parameter Saving AT&W_SAVE Mode SI Max Time Response - Reference V.25ter Note 2.1.22 ATT Select Tone Dialing ATT Select Tone Dialing SIM7020 Series_AT Command Manual_V1.00 27 2018-04-10 Smart Machine Smart Decision Execution Command ATT Response OK Parameter Saving AUTO_SAVE Mode Response - Reference V.25ter FI LE Max Time Note L 2.1.23 ATV TA Response Format EN 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 FI D Execution Command ATV TI A ATV TA Response Format M C O M Parameters 0 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. O Parameter Saving AT&W_SAVE Mode Response - C Max Time SI M Reference V.25ter 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 SIM7020 Series_AT Command Manual_V1.00 28 2018-04-10 Smart Machine Smart Decision 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 Manufacturer- Same as CONNECT, but includes manufacturer-specific specific text that may specify DTE speed, line speed, error control, data compression, or other status TI A L FI LE NO CARRIER EN 2.1.24 ATX Set CONNECT Result Code Format and Monitor Call Progress ATX Set CONNECT Result Code Format and Monitor Call Progress FI D 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 C O ERROR M Execution Command ATX SI M C O M Parameters 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. Parameter Saving AT&W_SAVE Mode Max Time Response - Reference V.25ter Note SIM7020 Series_AT Command Manual_V1.00 29 2018-04-10 Smart Machine Smart Decision 2.1.25 ATZ Reset Default Configuration ATZ Reset Default Configuration Execution Command ATZ[ ] Response TA sets all current parameters to the user defined profile. OK FI LE ERROR Parameters 0 Restore profile 0 Response Note EN Reference V.25ter TI A Max Time L Parameter Saving NO_SAVE Mode Parameter impacted by Z command: refer to AT&W NOTE: 2.1.26 AT&C Set DCD Function Mode Set DCD Function Mode M AT&C FI D Parameters related to uart operation, like csclk, ipr, icf and ifc, will not be reset to default configuration. Response This parameter determines how the state of circuit 109 (DCD) relates to the detection of received line signal from the distant end. OK M C O Execution Command AT&C Parameters C O ERROR 0 DCD line is always ON 1 DCD line is ON only in the presence of data carrier M Parameter Saving Mode SI Max Time Response - Reference V.25ter 2.1.27 AT&D AT&D Note Set DTR Function Mode Set DTR Function Mode SIM7020 Series_AT Command Manual_V1.00 30 2018-04-10 Smart Machine Smart Decision Execution Command AT&D[ ] Response This parameter determines how the TA responds when circuit 108/2 (DTR) is changed from the ON to the OFF condition during data mode. OK or ERROR L FI LE Parameters 0 TA ignores status on DTR. 1 ON->OFF on DTR: Change to Command mode with remaining the connected call. 2 ON->OFF on DTR: Disconnect call, change to Command mode. During state DTR = OFF is auto-answer off. Response - Reference V.25ter Note EN Max Time TI A Parameter Saving Mode FI D 2.1.28 AT&F Factory Defined Configuration AT&F Factory Defined Configuration M Response TA sets all current parameters to the manufacturer defined profile. OK C O Execution Command AT&F[ ] Parameters 0 Set all TA parameters to manufacturer defaults. Response - O Max Time M Parameter Saving NO_SAVE Mode Note M C Reference V.25ter SI Parameter impacted by &F command: refer to AT&W NOTE: Parameters related to uart operation, like csclk, ipr, icf and ifc, will not be reset to default configuration. 2.1.29 AT&K Flow control setting AT&K Flow control setting Execution Command Response OK SIM7020 Series_AT Command Manual_V1.00 31 2018-04-10 Smart Machine Smart Decision AT&K[ ] Parameters 0 No flow control 3 RTS /CTS flow control (hardware) 4 XON/XOFF flow control (software) Parameter Saving NO_SAVE Mode Response Note This command does not store anything in the profile data because it sets the AT+IFC settings when used: AT&K0 is equivalent of entering AT+IFC=0,0 AT&K3 is equivalent of entering AT+IFC=2,2 AT&K4 is equivalent of entering AT+IFC=1,1 AT&V Display Current Configuration FI D Response TA returns the current parameter setting. OK or ERROR M Execution Command AT&V[ ] EN 2.1.30 AT&V Display Current Configuration TI A L Reference V.25ter FI LE Max Time C O Parameters 0 Responses in numeric format Parameter Saving NO_SAVE Mode Response - M Max Time Note C O Reference V.25ter M 2.1.31 AT&W Store Active Profile SI AT&W Store Active Profile Execution Command AT&W[ ] Response TA stores the current parameter setting in the user defined profile. OK or ERROR Parameters 0 Store the current configuration in profile 0 SIM7020 Series_AT Command Manual_V1.00 32 2018-04-10 Smart Machine Smart Decision Parameter Saving NO_SAVE Mode Response - Reference V.25ter Note The user defined profile is stored in non volatile memory. Parameter name Displayedby &V ATS0 Y ATS3 Y ATS4 Y ATS5 Y ATS6 ATS7