AT Command User Guide(R152x) L506 Guide V2.6
L506%20AT%20Command%20User%20Guide_V2.6
User Manual:
Open the PDF directly: View PDF .
Page Count: 414
Download | |
Open PDF In Browser | View PDF |
AT Command User Guid Shanghai MobiletekCommunication Ltd L506 AT Command User Guide LTE Module Series Version: V2.6 Date: 2017-6-30 Copyright© Shanghai Mobiletek Communication LtdShanghai MobiletekCommunication Ltd 0 AT Command User Guide Notice Some features of the product and its accessories described herein rely on the software installed, capacities and settings of local network, and therefore may not be activated or may be limited by local network operators or network service providers. Thus, the descriptions herein may not exactly match the product or its accessories which you purchase.Shanghai Mobiletek Communication Ltd reserves the right to change or modify any information or specifications contained in this manual without prior notice and without any liability. Copyright N F LY ID NQ EN TI AL This document contains proprietary technical information which is the property of Shanghai Mobiletek Communication 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 patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. DISCLAIMER CO ALL CONTENTS OF THIS MANUAL ARE PROVIDED “AS IS”. EXCEPT AS REQUIRED BY APPLICABLE LAWS, NO WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDINGBUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE MADE IN RELATION TO THE ACCURACY, RELIABILITY OR CONTENTS OF THIS MANUAL. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL SHANGHAI MOBILETEKCOMMUNICATION LTD BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, OR LOSS OF PROFITS, BUSINESS, REVENUE, DATA, GOODWILL SAVINGS OR ANTICIPATED SAVINGS REGARDLESS OF WHETHER SUCH LOSSES ARE FORSEEABLE OR NOT. Copyright© Shanghai MobiletekCommunication Ltd 1 AT Command User Guide Version History Version Description of chage Author 2016-03-01 V1.0 Release KuangPeng 2016-07-19 V1.1 Add extend atcmd about sms,gps,network and general KuangPeng 2016-07-27 V1.2 Add at^sysinfo KuangPeng 2016-09-09 V1.3 Add AT cmd for GPIO KuangPeng 2016-09-12 V1.4 Add AT for lock band,lock cell,get cell information LiuBin 2016-10-10 V1.5 Add AT cmd for LYNQ FTP KuangPeng N F LY ID NQ EN TI AL Date V1.6 Add GPS externd cmd Yangguodong 2016-11-03 V1.7 Add IS-707 related CMD KuangPeng 2016-11-08 V1.8 Modify CMD for CDMA KuangPeng 2016-11-10 V1.9 Add AT cmd for LYNQ TCP/IP Wuyuanwei 2016-11-28 V2.0 Add AT cmd for WIFI LiuBin 2016-12-14 V2.1 Add AT cmd for FOTA ChenLei 2016-12-16 V2.2 Add AT cmd for DTMF detect YangDagang 2017-01-07 V2.2 Add AT cmd and Add parameter for ciptimeout and network close notify YuanweiWu 2017-02-17 V2.2 Add AT cmd for TTS and Audio ZhangYangHao 2017-02-20 V2.2 Add AT cmd for MTZ ChenLei 2017-2-22 V2.3 Remove old TCP/IP and FTP QinXiaoTao 2017-03-17 V2.3 Add AT cmd +MFOTAGCVI for FOTA ChenLei 2017-03-21 V2.3 Add AT cmd $QCPDPP JingBin 2017-03-21 V2.4 Add Sleep mode AT cmd YangGuoDong 2017-04-05 V2.5 Add Lock Cell/Band/Network/Sim AT cmd LinBin 2017-04-06 V2.5 Add Heartbeat AT cmd ZhangYangHao 2017-04-27 V2.5 Modify the transparent mode YuanweiWu 2017-05-13 V2.5 Add FS AT cmd ZhangYangHao 2017-06-30 V2.6 Add MQTT at cmd ChenLei CO 2016-11-01 Copyright© Shanghai MobiletekCommunication Ltd 2 AT Command User Guide CONTENT CONTENT ................................................................................................................................. 3 1 Introduction ...................................................................................................................... 12 1.1 1.2 1.3 1.4 Overview ........................................................................................................................... 13 N F LY ID NQ EN TI AL 2 2.1 3 Scope .......................................................................................................................... 12 Audience ..................................................................................................................... 12 Document Organization................................................................................................. 12 Related Documents ....................................................................................................... 12 About the document ...................................................................................................... 13 AT COMMANDS .............................................................................................................. 14 CO 3.1 Definitions ................................................................................................................... 14 3.2 AT Command Syntax.................................................................................................... 15 3.2.1 String Type Parameters ............................................................................................. 15 3.2.2 Command Lines ........................................................................................................ 16 3.2.3 Information Responses and Result Codes ..................................................................... 17 3.2.4 Command Response Time-Out .................................................................................... 18 3.2.5 Command Issue Timing.............................................................................................. 20 3.3 AT Commands Set........................................................................................................ 21 3.3.1 Command Line General Format.................................................................................. 21 3.3.1.1 Command LinePrefixes ................................................................................................... 21 3.3.1.1.1 Starting a Command Line – AT .................................................................................... 21 3.3.1.1.2 Last Command Automatic Repetition – A/ ................................................................... 21 3.3.2 Hayes Compliant AT Commands ................................................................................. 22 3.3.2.1 Generic Modem Control .................................................................................................. 22 3.3.2.1.1 Set To Factory-Defined Configuration -&F ................................................................. 22 3.3.2.1.2 Soft Reset – Z ................................................................................................................ 22 3.3.2.1.3 Select Active Service Class - +FCLASS ....................................................................... 23 3.3.2.1.4 Store Current Configuration -&W ................................................................................ 23 3.3.2.1.5 Manufacturer Identification - +GMI ............................................................................ 23 3.3.2.1.6 Model Identification - +GMM ...................................................................................... 23 3.3.2.1.7 Revision Identification - +GMR ................................................................................... 23 3.3.2.1.8 Capabilities List - +GCAP ........................................................................................... 25 3.3.2.1.9 Serial Number - + GSN ................................................................................................ 25 3.3.2.1.10 Display Current Base Configuration and Profile -&V ............................................... 25 3.3.2.1.11 Single Line Connect Message - \V .............................................................................. 25 3.3.2.1.12 Speaker Loudness - L.................................................................................................. 26 3.3.2.1.13 Speaker Mode - M ...................................................................................................... 26 3.3.2.2 DTE - Modem Interface Control ..................................................................................... 27 3.3.2.2.1 Command Echo - E ....................................................................................................... 27 3.3.2.2.2 Quiet Result Codes - Q ................................................................................................. 27 3.3.2.2.3 Response Format – V.................................................................................................... 28 Copyright© Shanghai MobiletekCommunication Ltd 3 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.2.2.4 Extended Result Codes – X ........................................................................................... 29 3.3.2.2.5 Identification Information - I ........................................................................................ 29 3.3.2.2.6 Data Carrier Detect (DCD) Control - &C ................................................................... 30 3.3.2.2.7 Data Terminal Ready (DTR) Control - &D.................................................................. 30 3.3.2.2.8 Controls the display data rate or wireless connection speed - &E .............................. 30 3.3.2.2.9 Standard Flow Control - \Q.......................................................................................... 31 3.3.2.2.10 Data Set Ready (DSR) Control - &S .......................................................................... 31 3.3.2.2.11 Fixed DTE Interface Rate - +IPR............................................................................... 32 3.3.2.2.12 DTE-Modem Local Flow Control - +IFC .................................................................. 33 3.3.2.2.13 DTE-Modem Character Framing - +ICF .................................................................. 33 3.3.2.3 Call Control ..................................................................................................................... 34 3.3.2.3.1 Dial - D ......................................................................................................................... 34 3.3.2.3.2 Tone Dial - T ................................................................................................................ 36 3.3.2.3.3 Pulse Dial - P ............................................................................................................... 36 3.3.2.3.4 Answer - A .................................................................................................................... 36 3.3.2.3.5 Disconnect - H .............................................................................................................. 36 3.3.2.3.6 Return To On Line Mode - O ........................................................................................ 37 3.3.2.4 Compression Control ....................................................................................................... 38 3.3.2.4.1 Data Compression - +DS ............................................................................................. 38 3.3.2.4.2 Data Compression Reporting - +DR ............................................................................ 38 3.3.2.5 S Parameters .................................................................................................................... 39 3.3.2.5.1 Number of Rings to Auto Answer - S0 .......................................................................... 39 3.3.2.5.2 Escape Character - S2 .................................................................................................. 40 3.3.2.5.3 Command Line Termination Character - S3 ................................................................ 40 3.3.2.5.4 Response Formatting Character - S4 ........................................................................... 41 3.3.2.5.5 Command Line Editing Character - S5 ........................................................................ 41 3.3.2.5.6 Connection Completion Time-Out - S7 ........................................................................ 42 3.3.2.5.7 Carrier Off With Firm Time - S10 ................................................................................ 42 3.3.2.5.8 Disconnect Inactivity Timer - S30 ................................................................................ 42 3.3.3 3GPP TS 27.007 AT Commands.................................................................................. 43 3.3.3.1 General ............................................................................................................................ 43 3.3.3.1.1 Request Manufacturer Identification - +CGMI............................................................ 43 3.3.3.1.2 Request Model Identification - +CGMM ....................................................................... 43 3.3.3.1.3 Request Revision Identification - +CGMR ................................................................... 43 3.3.3.1.4 Request Product Serial Number Identification - +CGSN............................................. 43 3.3.3.1.5 Select TE Character Set - +CSCS ................................................................................ 44 3.3.3.1.6 Request International Mobile Subscriber Identity (IMSI) - +CIMI ............................. 44 3.3.3.1.7 PCCA STD-101 Query Wireless Network - +WS46 ..................................................... 45 3.3.3.2 Call Control ..................................................................................................................... 46 3.3.3.2.1 Call mode - +CMOD .................................................................................................... 46 3.3.3.2.2 Hang Up Call - +CHUP............................................................................................... 46 3.3.3.2.3 Select type of address - +CSTA .................................................................................... 47 3.3.3.2.4 Select Bearer Service Type - +CBST............................................................................ 47 3.3.3.2.5 Radio Link Protocol - +CRLP ...................................................................................... 49 3.3.3.2.6 Service Reporting Control - +CR ................................................................................. 50 3.3.3.2.7 Extended Error Report - +CEER ................................................................................. 50 3.3.3.2.8 Cellular Result Codes - +CRC ..................................................................................... 51 3.3.3.2.9 HSCSD non-transparent call configuration +CHSN ................................................... 52 3.3.3.2.10 Voice Hang Up Control - +CVHU ............................................................................. 53 3.3.3.2.11 Setting Time Format - +CSTF.................................................................................... 53 3.3.3.2.12 Setting Date Format - + CSDF .................................................................................. 54 3.3.3.3 Network Service Handling .............................................................................................. 56 3.3.3.3.1 Subscriber Number - +CNUM ..................................................................................... 56 3.3.3.3.2 Read Operator Names - +COPN.................................................................................. 56 3.3.3.3.3 Network Registration Report - +CREG........................................................................ 57 Copyright© Shanghai MobiletekCommunication Ltd 4 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.3.3.4 Operator Selection - +COPS........................................................................................ 60 3.3.3.3.5 Facility Lock/Unlock - +CLCK .................................................................................... 63 3.3.3.3.6 Change Facility Password - +CPWD .......................................................................... 65 3.3.3.3.7 Calling Line Identification Presentation - +CLIP ....................................................... 65 3.3.3.3.8 Calling Line Identification Restriction - +CLIR .......................................................... 67 3.3.3.3.9 Connected line identification presentation - COLP ..................................................... 68 3.3.3.3.10 Call Forwarding Number and Conditions - +CCFC ................................................. 69 3.3.3.3.11 Call Waiting - +CCWA .............................................................................................. 70 3.3.3.3.12 Call Holding Services - +CHLD ................................................................................ 72 3.3.3.3.13 Call deflection - +CTFR ............................................................................................. 73 3.3.3.3.14 Unstructured Supplementary Service Data - +CUSD ................................................ 73 3.3.3.3.15 Advice of Charge - +CAOC........................................................................................ 74 3.3.3.3.16 List Current Calls - +CLCC ....................................................................................... 75 3.3.3.3.17 SS Notification - +CSSN ............................................................................................. 77 3.3.3.3.18 Closed User Group Supplementary Service Control - +CCUG ................................. 78 3.3.3.3.19 Preferred Operator List - +CPOL.............................................................................. 79 3.3.3.3.20 Selection of preferred PLMN list - +CPLS ................................................................ 80 3.3.3.4 Mobile Equipment Control .............................................................................................. 81 3.3.3.4.1 Phone Activity Status - +CPAS .................................................................................... 81 3.3.3.4.2 Set Phone Functionality - +CFUN ............................................................................... 82 3.3.3.4.3 Enter PIN - +CPIN....................................................................................................... 83 3.3.3.4.4 Signal Quality - +CSQ ................................................................................................. 85 3.3.3.4.5 Indicator Control - +CIND .......................................................................................... 86 3.3.3.4.6 Mobile Equipment Event Reporting - +CMER............................................................. 89 3.3.3.4.7 Select Phonebook Memory Storage - +CPBS .............................................................. 90 3.3.3.4.8 Read Phonebook Entries - +CPBR .............................................................................. 91 3.3.3.4.9 Find Phonebook Entries - +CPBF ............................................................................... 93 3.3.3.4.10 Write Phonebook Entry - +CPBW.............................................................................. 95 3.3.3.4.11 Clock Management - +CCLK ..................................................................................... 96 3.3.3.4.12 Restricted SIM Access - +CRSM ................................................................................ 97 3.3.3.4.13 Accumulated Call Meter - +CACM ............................................................................ 98 3.3.3.4.14 Accumulated Call Meter Maximum - +CAMM .......................................................... 98 3.3.3.4.15 Available AT Commands - +CLAC ............................................................................ 99 3.3.3.4.16 Automatic Time Zone update - +CTZU ...................................................................... 99 3.3.3.5 Mobile Equipment Errors .............................................................................................. 100 3.3.3.5.1 Report Mobile Equipment Error - +CMEE................................................................ 100 3.3.3.6 Voice Control ................................................................................................................ 100 3.3.3.6.1 DTMF Tones Transmission - +VTS ........................................................................... 100 3.3.3.6.2 Receive DTMF in Call - +MVTR ............................................................................... 101 3.3.3.7 Commands for Package Domain ................................................................................... 103 3.3.3.7.1 GPRS Mobile Station Class - +CGCLASS ................................................................. 103 3.3.3.7.2 GPRS Attach or Detach - +CGATT ........................................................................... 104 3.3.3.7.3 GPRS Event Reporting - +CGEREP .......................................................................... 104 3.3.3.7.4 EPS Network Registration Status - +CEREG.......................................................... 106 3.3.3.7.5 GPRS Network Registration Status - +CGREG ......................................................... 109 3.3.3.7.6 Printing IP Address Format - +CGPIAF ................................................................... 110 3.3.3.7.7 Define PDP Context - +CGDCONT .......................................................................... 111 3.3.3.7.8 Define Secondary PDP Context - +CGDSCONT....................................................... 113 3.3.3.7.9 Traffic Flow Template +CGTFT ................................................................................ 114 3.3.3.7.10 Quality of Service Profile (Minimum Acceptable) - +CGQMIN .............................. 117 3.3.3.7.11 3G Quality of Service Profile (Minimum Acceptable) - +CGEQMIN...................... 118 3.3.3.7.12 Quality of Service Profile (Requested) - +CGQREQ ............................................... 121 3.3.3.7.13 3G Quality of Service Profile (Requested) - +CGEQREQ ....................................... 122 3.3.3.7.14 PDP Context Activate or Deactivate - +CGACT ..................................................... 125 3.3.3.7.15 PDP Context Modify - +CGCMOD ......................................................................... 126 Copyright© Shanghai MobiletekCommunication Ltd 5 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.3.7.16 Show PDP Address - +CGPADDR .......................................................................... 126 3.3.3.7.17 Set Mode of Operator for EPS - +CEMODE ........................................................... 127 3.3.3.7.18 Enter Data State - +CGDATA .................................................................................. 128 3.3.3.7.19 PDP Context Read Dynamic Parameters - +CGCONTRDP ................................... 128 3.3.3.7.20 Secondary PDP Context Read Dynamic Parameters - +CGSCONTRDP ............... 130 3.3.3.7.21 Traffic Flow Template Read Dynamic Parameters - +CGTFTRDP ........................ 131 3.3.3.7.22 Define EPS Quality of Service +CGEQOS .............................................................. 133 3.3.3.7.23 EPS Quality of Service Read Dynamic Parameters - +CGEQOSRDP .................... 134 3.3.3.7.24 Sets PDP authentication parameters. - $QCPDPP .................................................. 135 3.3.3.7.25 Sets Duplicate PDP activation. - +MDUPPDP ....................................................... 135 3.3.3.8 Commands for Battery Charger ..................................................................................... 136 3.3.3.8.1 Battery Charge - +CBC.............................................................................................. 136 3.3.4 3GPP TS 27.005 AT Commands for SMS and CBS ...................................................... 137 3.3.4.1 General Configuration ................................................................................................ 137 3.3.4.1.1 Select Message Service - +CSMS ............................................................................... 137 3.3.4.1.2 Preferred Message Storage - +CPMS ........................................................................ 138 3.3.4.1.3 Message Format - +CMGF ........................................................................................ 139 3.3.4.2 Message Configuration .................................................................................................. 140 3.3.4.2.1 Service Center Address - +CSCA ............................................................................... 140 3.3.4.2.2 Select service for MO SMS services - +CGSMS ........................................................ 141 3.3.4.2.3 Set Text Mode Parameters - +CSMP ......................................................................... 141 3.3.4.2.4 Show Text Mode Parameters - +CSDH ..................................................................... 142 3.3.4.2.5 Select Cell Broadcast Message Types - +CSCB......................................................... 143 3.3.4.2.6 Save Settings - +CSAS ................................................................................................ 143 3.3.4.2.7 Restore Settings - +CRES ........................................................................................... 144 3.3.4.3 Message Receiving and Reading ................................................................................... 145 3.3.4.3.1 New Message Indications to Terminal Equipment - +CNMI ..................................... 145 3.3.4.3.2 List Messages - +CMGL ............................................................................................ 149 3.3.4.3.3 Read Message - +CMGR............................................................................................ 152 3.3.4.3.4 New Message Acknowledgement to ME/TA - +CNMA .............................................. 154 3.3.4.3.5 List Messages - +CMGLEX........................................................................................ 155 3.3.4.3.6 Read Message - +CMGREX ....................................................................................... 155 3.3.4.4 Message Sending and Writing ....................................................................................... 156 3.3.4.4.1 Send Message - +CMGS ............................................................................................ 156 3.3.4.4.2 Send Message from Storage - +CMSS ....................................................................... 159 3.3.4.4.3 Write Message to Memory - +CMGW........................................................................ 160 3.3.4.4.4 Delete Message - +CMGD ......................................................................................... 163 3.3.4.4.5 More Message to Send - +CMMS .............................................................................. 163 3.3.4.4.6 Message to Send - +CMGC ........................................................................................ 164 3.3.5 Mobiletek extended AT Commands ............................................................................ 168 3.3.5.1 General .......................................................................................................................... 168 3.3.5.1.1 System Config - ^SYSCONFIG ................................................................................... 168 3.3.5.1.2 Setup RmNet Call - $QCRMCALL ............................................................................. 169 3.3.5.1.3 Inquires The Current System Message - ^SYSINFO................................................... 170 3.3.5.1.4 SIM Card HotSwap Control - +ESIMS ...................................................................... 171 3.3.5.1.5 Time zone Control - +MTZ......................................................................................... 172 3.3.5.2 HTTP AT Commands.................................................................................................... 182 3.3.5.2.1 Open HTTP Service - $HTTPOPEN .......................................................................... 182 3.3.5.2.2 Close HTTP Service - $HTTPCLOSE ........................................................................ 183 3.3.5.2.3 Set HTTP Header Fields - $HTTPRQH ..................................................................... 184 3.3.5.2.4 Set HTTP Request URL And Port- $HTTPPARA ....................................................... 185 3.3.5.2.5 Clear HTTP Related Parameters - $HTTPCLEAR .................................................... 186 3.3.5.2.6 Send HTTP Request - $HTTPACTION....................................................................... 187 3.3.5.2.7 Set HTTP Post Request's Data - $HTTPDATA .......................................................... 190 3.3.5.2.8 Set HTTP Post Request's Data - $HTTPDATAEX ..................................................... 190 Copyright© Shanghai MobiletekCommunication Ltd 6 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.5.2.9 Send HTTP Post Content Data - $HTTPSEND .......................................................... 192 3.3.5.2.10 HTTP Error Code ..................................................................................................... 193 3.3.5.3 HTTPS AT Commands ................................................................................................. 194 3.3.5.3.1 Acquire HTTPS Protocol Stack - +CHTTPSSTART .................................................. 194 3.3.5.3.2 Stop HTTPS Protocol Stack - +CHTTPSSTOP.......................................................... 194 3.3.5.3.3 Open HTTPS Session - +CHTTPSOPSE.................................................................... 195 3.3.5.3.4 Close HTTPS Session - +CHTTPSCLSE.................................................................... 196 3.3.5.3.5 Send HTTPS Request - +CHTTPSSEND.................................................................... 197 3.3.5.3.6 Receive HTTPS Response - +CHTTPSRECV ............................................................ 198 3.3.5.3.7 Get The State of HTTPS Request - +CHTTPSSTATE ................................................ 201 3.3.5.4 EMAIL AT Command .................................................................................................. 202 3.3.5.4.1 Set SMTP Server Address And Port Number - +SMTPSRV ....................................... 202 3.3.5.4.2 SMTP Server Authentication - +SMTPAUTH ............................................................ 203 3.3.5.4.3 Set Sender Address And Name - +SMTPFROM ........................................................ 204 3.3.5.4.4 Set Recipient Type(TO/CC/BCC), Address And Name - +SMTPRCPT ..................... 205 3.3.5.4.5 Set Email Subject -+SMTPSUB.................................................................................. 206 3.3.5.4.6 Set Email Body - +SMTPBODY ................................................................................. 207 3.3.5.4.7 Set Email Body Character set - +SMTPBCH............................................................. 208 3.3.5.4.8 Add Email Attachment File - +SMTPFILE ................................................................ 209 3.3.5.4.9 Send an Email - +SMTPSEND ................................................................................... 210 3.3.5.4.10 Close SMTP Connection - SMTPSTOP .................................................................... 210 3.3.5.4.11 Set POP3 Server Address, Username, Password, Port - +POP3SRV ..................... 211 3.3.5.4.12 Login POP3 Server - +POP3IN ............................................................................... 212 3.3.5.4.13 Get Email Number And Total Size - +POP3NUM ................................................... 212 3.3.5.4.14 List Email ID And Size - +POP3LIST ...................................................................... 213 3.3.5.4.15 Get an Email Header - +POP3HDR ........................................................................ 214 3.3.5.4.16 Get an Email - +POP3GET ..................................................................................... 215 3.3.5.4.17 Mark an Email to Delete from POP3 Server - +POP3DEL .................................... 216 3.3.5.4.18 Logout POP3 Server - +POP3OUT ......................................................................... 216 3.3.5.4.19 Force to Stop POP3 Session - +POP3STOP ........................................................... 217 3.3.5.4.20 Read an Email from File System - +POP3READ .................................................... 218 3.3.5.4.21 Translate Input String to Base64 Character - +EMAILENC ................................... 219 3.3.5.4.22 Delete Email file from File System - +POP3REMOVE ........................................... 219 3.3.5.4.23 EMAIL AT Command Response Error Definition .................................................... 220 3.3.5.5 Network AT Command ................................................................................................. 221 3.3.5.5.1 Preferred Mode Selection - +CNMP .......................................................................... 221 3.3.5.5.2 Preferred Band Selection - +CNBP ........................................................................... 223 3.3.5.5.3 Acquisition Order Preference - +CNAOP.................................................................. 226 3.3.5.5.4 Preferred Service Domain Selection - +CNSDP ........................................................ 228 3.3.5.5.5 Inquiring UE System Information - +CPSI ................................................................ 229 3.3.5.5.6 Show Network System Mode - +CNSMOD ................................................................ 233 3.3.5.5.7 Show Cell System Information - +CCINFO ............................................................... 235 3.3.5.5.8 Inquiring Mobile Phone System Information - +CMGSI ........................................... 238 3.3.5.5.9 Gets the Neighbor Measurement Information - +CMGRMI ...................................... 242 3.3.5.5.10 Show Cell System Information in GSM - +MONI .................................................... 253 3.3.5.5.11 System Information in LTE - +MCSQ ...................................................................... 258 3.3.5.6 GPS AT command ......................................................................................................... 259 3.3.5.6.1 Start/Stop GPS Position Session - +CGPS................................................................. 259 3.3.5.6.2 Get Current GPS Position Information - +CGPSINFO ............................................. 260 3.3.5.6.3 Cold Start GPS - +CGPSCOLD................................................................................. 261 3.3.5.6.4 Hot Start GPS - +CGPSHOT ..................................................................................... 262 3.3.5.6.5 Set AGPS Default Server URL - +CGPSURL ............................................................ 263 3.3.5.6.6 Select Transport Security - + CGPSSSL .................................................................... 264 3.3.5.6.7 Auto Start GPS When Module Powers On - +CGPSAUTO ....................................... 265 3.3.5.6.8 Configure NMEA Output Sentences - +CGPSNMEA ................................................ 266 Copyright© Shanghai MobiletekCommunication Ltd 7 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.5.6.9 Specifies GPS Session - +CGPSMD .......................................................................... 267 3.3.5.6.10 Delete the GPS Information - +CGPSDEL .............................................................. 268 3.3.5.6.11 Enable/Disable GPS XTRA Function - +CGPSXE .................................................. 268 3.3.5.6.12 Download XTRA Assistant file - +CGPSXD ............................................................ 269 3.3.5.6.13 Download XTRA Assistant File Auto - +CGPSXDAUTO ........................................ 270 3.3.5.6.14 Report NMEA-0183 Sentences - +CGPSINFOCFG ................................................ 271 3.3.5.6.15 Configure Positioning Mode - +CGPSPMD ............................................................ 272 3.3.5.6.16 Based Mode Switch to Standalone - +CGPSMSB .................................................... 274 3.3.5.6.17 Configure Positioning Desired Accuracy - +CGPSHOR ......................................... 275 3.3.5.6.18 LCS Respond Positioning Request - +CGPSNOTIFY .............................................. 275 3.3.5.6.19 Get Station Positioning - +GTPOS .......................................................................... 276 3.3.5.6.20 Set Gps Output Port and Position System - +CGPSNMEATYPE ............................ 277 3.3.5.6.21 Xtra File Download Error Code .............................................................................. 278 3.3.5.6.22 Gps Position Error Code .......................................................................................... 278 3.3.5.7 SMS extended AT commands ....................................................................................... 279 3.3.5.7.1 Read Message Only - +CMGRO ................................................................................ 279 3.3.5.7.2 Change Message Status - +CMGMT.......................................................................... 279 3.3.5.7.3 Set Message Valid Period - +CMVP .......................................................................... 280 3.3.5.7.4 Read and Delete Message - +CMGRD ...................................................................... 281 3.3.5.7.5 Send Message Quickly - +CMGSO ............................................................................ 282 3.3.5.7.6 Write Message to Memory Quickly - +CMGWO ....................................................... 283 3.3.5.7.7 Send Message - +CMGSEX........................................................................................ 284 3.3.5.7.8 Generate a New Message Reference - +CMGENREF ............................................... 285 3.3.5.7.9 Send Multi Messages from Storage - +CMSSEX ....................................................... 285 3.3.5.7.10 Send Message from Storage to Multi DA - +CMSSEXM ......................................... 286 3.3.5.7.11 HSMSSS additional parameters - ^ HSMSSS ........................................................... 287 3.3.5.7.12 SMS CMS error code enum: ..................................................................................... 289 3.3.5.8 AT Commands for Status Control ................................................................................. 290 3.3.5.8.1 Read ICCID from SIM Card - +CICCID ................................................................... 290 3.3.5.8.2 Times Remain to Input SIM PIN/PUK - +SPIC ......................................................... 291 3.3.5.8.3 Get Service Provider Name from SIM - +CSPN ..................................................... 292 3.3.5.8.4 Set CSQ Report - +AUTOCSQ ................................................................................... 293 3.3.5.8.5 Power Down the Module- +CPOF............................................................................. 294 3.3.5.8.6 Reset the Module - +CRESET .................................................................................... 294 3.3.5.8.7 Set IMEI for the Module - +SIMEI............................................................................. 295 3.3.5.8.8 Set RSSI Delta Change Threshold - +CSQDELTA .................................................... 296 3.3.5.9 GPIO Control................................................................................................................. 297 3.3.5.9.1 Set the Direction of Specified GPIO - +CGDRT ..................................................... 297 3.3.5.9.2 Set the Value of Specified GPIO - +CGSETV ......................................................... 298 3.3.5.9.3 Get the Value of Specified GPIO - +CGGETV .......................................................... 299 3.3.5.9.4 Flight Mode Control - +CGFLY ................................................................................ 300 3.3.5.9.5 Network LED Control - +CGNETLED ...................................................................... 301 3.3.5.10 AT Commands for LOCK ......................................................................................... 302 3.3.5.10.1 Get Lock State - +MLKSTA ...................................................................................... 302 3.3.5.10.2 Get Nearby Cell Information - +CELLINFO ........................................................... 303 3.3.5.10.3 Lock To Band - +MLKBAND ................................................................................... 304 3.3.5.10.4 Lock To Network - +MLKNET ................................................................................. 306 3.3.5.10.5 Lock To Sim Card - +MLKSIM ................................................................................ 308 3.3.5.10.6 Lock To Cell - +MLKCELL ...................................................................................... 309 3.3.5.10.7 Bands Lists................................................................................................................ 312 3.3.5.11 AT Commands for FTP ............................................................................................. 315 3.3.5.11.1 Set FTP Server Port - +CFTPPORT ........................................................................ 315 3.3.5.11.2 Set FTP Mode - +CFTPMODE ................................................................................ 315 3.3.5.11.3 Set FTP Type - +CFTPTYPE ................................................................................... 316 3.3.5.11.4 Set FTP Server Domain Name or IP Address - +CFTPSERV ................................. 317 Copyright© Shanghai MobiletekCommunication Ltd 8 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.5.11.5 Set User Name for FTP Access - +CFTPUN ........................................................... 318 3.3.5.11.6 Set User Password for FTP Access - +CFTPPW..................................................... 319 3.3.5.11.7 Get a File from FTP Server to EFS - +CFTPGETFILE .......................................... 320 3.3.5.11.8 Upload a File from Module EFS to FTP Server - +CFTPPUTFILE ....................... 321 3.3.5.11.9 Get a File from FTP Server and Output it to SIO - +CFTPGET ............................. 322 3.3.5.11.10 Upload the DATA from SIO to FTP Server - +CFTPPUT..................................... 323 3.3.5.11.11 List the Items in the Directory on FTP Server - +CFTPLIST ................................ 324 3.3.5.11.12 Create a New Directory on FTP Server - +CFTPMKD......................................... 325 3.3.5.11.13 Delete a Directory on FTP Server - +CFTPRMD ................................................. 325 3.3.5.11.14 Delete a File on FTP Server - +CFTPDELE ......................................................... 326 3.3.5.11.15 Delete a Local File - +CFTPDELFILE ................................................................. 327 3.3.5.11.16 Read File from Local File to SIO - + CFTPRDFILE ............................................. 328 3.3.5.11.17 Unsolicited FTP Codes (Summary of CME ERROR codes) ................................... 329 3.3.5.12 AT Commands for TCP/IP ........................................................................................ 330 3.3.5.12.1 Select TCP/IP Timeout Value - + CIPTIMEOUT .................................................... 330 3.3.5.12.2 Select TCP/IP Application Mode - + CIPMODE ..................................................... 331 3.3.5.12.3 Open Network - + NETOPEN .................................................................................. 332 3.3.5.12.4 Close Network - + NETCLOSE ................................................................................ 333 3.3.5.12.5 Inquire Socket PDP Address - + IPADDR ............................................................... 333 3.3.5.12.6 Startup TCP Server - + SERVERSTART .................................................................. 334 3.3.5.12.7 Stop TCP Server - + SERVERSTOP......................................................................... 335 3.3.5.12.8 Establish Connection in Multi-socket Mode - + CIPOPEN ..................................... 336 3.3.5.12.9 Send Data Through TCP or UDP Connection- + CIPSEND ................................... 337 3.3.5.12.10 Get the Network Data Manually- + CIPRXGET .................................................... 338 3.3.5.12.11 Close TCP or UDP Socket - + CIPCLOSE ............................................................ 340 3.3.5.12.12 Inquire the Total Size of Data Sent or Received Recently- + CIPSTAT ................. 341 3.3.5.12.13 Inquire the specific link connect status- + CIPOPQUERY .................................... 342 3.3.5.13 AT Commands for WIFI ........................................................................................... 343 3.3.5.13.1 Open/Close WIFI - $MWIFI ..................................................................................... 343 3.3.5.13.2 Set/Get AP's SSID - $MWIFISSID............................................................................ 344 3.3.5.13.3 Set/Get AP's Authentication And Encryption type - $MWIFIAUTH ..................... 345 3.3.5.13.4 Open or Close AP's Broadcast - $MWIFIBCAST .................................................... 347 3.3.5.13.5 Set WIFI Channel - $MWIFICHAN.......................................................................... 348 3.3.5.13.6 Set Max Number Of Wifi Client - $MWIFIMAXCLI ................................................ 349 3.3.5.13.7 Set DHCP Parameter - $MWIFIDHCP ................................................................... 350 3.3.5.13.8 Set AP's NAT Type - $MWIFINAT ........................................................................... 351 3.3.5.13.9 Set WIFI Mode - $MWIFIMODE ............................................................................. 352 3.3.5.13.10 Get WIFI Client Number - $MWIFICLICNT ......................................................... 353 3.3.5.13.11 Get WIFI Client Information - $MWIFICLILIST ................................................... 354 3.3.5.13.12 Open/Close STA Connection Indication - $MWIFIIND ......................................... 355 3.3.5.13.13 Get/Set WIFI blacklist - $MWIFIBLKLIST ............................................................ 356 3.3.5.13.14 Reset WIFI Setting - $MWIFIRSTD ....................................................................... 357 3.3.5.13.15 Enable Or Unable Network For WIFI - $MNETSWITCH ..................................... 358 3.3.5.13.16 Get/Set Profile ID For AP - $MWIFIPROID ......................................................... 359 3.3.5.13.17 Error Code.............................................................................................................. 360 3.3.5.14 AT Commands for FOTA.......................................................................................... 361 3.3.5.14.1 Detect/Upgrade Software Version - +FOTA ............................................................ 361 3.3.5.14.2 Get the publish content of new version - +MFOTAGCVI ........................................ 363 3.3.5.15 AT Commands for TTS ............................................................................................. 364 3.3.5.15.1 Voice broadcast - +MTTS ........................................................................................ 364 3.3.5.15.2 Set voice broadcast parameters - +MTTSP ............................................................. 366 3.3.5.16 AT Commands for AUDIO ....................................................................................... 367 3.3.5.16.1 Audio function - +MAUDREC ................................................................................. 367 3.3.5.16.2 Set MIC volume - +MMICVOL ................................................................................ 369 3.3.5.16.3 Set Speaker Volume - +MSPKVOL .......................................................................... 370 Copyright© Shanghai MobiletekCommunication Ltd 9 AT Command User Guide CO N F LY ID NQ EN TI AL 3.3.5.17 AT Commands for Sleep Mode ................................................................................. 371 3.3.5.17.1 Sleep mode function - +CSCLK ............................................................................... 371 3.3.5.17.2 Entry Sleep mode function - +MPWRSM ................................................................. 371 3.3.5.18 AT Commands for Heartbeat .................................................................................... 372 3.3.5.18.1 Hearteat Service Config - +MHEARTSRV............................................................ 372 3.3.5.18.2 HeartBeat Enable and Disable - +MHEARTEN ................................................... 373 3.3.5.18.3 Set Heartbeat Times - +MHEARTTIME ............................................................... 374 3.3.5.18.4 Set Heartbeat Mode - +MHEARTMODE .............................................................. 375 3.3.5.18.5 Set Heartbeat Packet Data - +MHEARTDATA .................................................... 376 3.3.5.18.6 Set Heartbeat Packet URC Display - +MHEARTURC ......................................... 378 3.3.5.19 AT Commands for FS................................................................................................ 379 3.3.5.19.1 Select directory as current directory - +MFSCD ................................................ 379 3.3.5.19.2 Make new directory in current directory - +MFSMKDIR .................................... 380 3.3.5.19.3 List directories/files in current directory - +MFSLS............................................. 381 3.3.5.19.4 Delete directory in current directory - +MFSRMDIR .......................................... 383 3.3.5.19.5 Delete file in current directory - +MFSDEL ......................................................... 384 3.3.5.19.6 Rename file or subdirectory in current directory - +MFSRENAME..................... 385 3.3.5.19.7 Request file attributes - +MFSATTRI.................................................................... 386 3.3.5.19.8 Check the size of available memory - +MFSMEM................................................ 387 3.3.5.19.9 Select storage place - +MFSLOCA ....................................................................... 388 3.3.5.19.10 Copy an appointed file - +MFSCOPY................................................................. 389 3.3.5.20 AT Commands for MQTT......................................................................................... 391 3.3.5.20.1 Set address and port - +MMQTTOPEN ................................................................... 391 3.3.5.20.2 Release MQTT resources - +MMQTTCLOSE ......................................................... 392 3.3.5.20.3 Request to connect to server - +MMQTTCONNECT ............................................... 393 3.3.5.20.4 Request to disconnect to server - +MMQTTDISCONNECT .................................... 395 3.3.5.20.5 Request to subscribe a topic - +MMQTTSUB .......................................................... 396 3.3.5.20.6 Request to unsubscribe a topic - +MMQTTUNSUB ................................................ 397 3.3.5.20.7 Request to publish message - +MMQTTPUB .......................................................... 398 3.3.5.20.8 Request to publish a long message - +MMQTTPUBEX .......................................... 399 3.3.6 AT Commands for IS-707 ......................................................................................... 401 3.3.6.1 IS-707 vendor Specific AT command table .................................................................. 401 3.3.6.1.1 Answer Incoming Voice Call - $QCCAV.................................................................... 401 3.3.6.1.2 Hangs Up Incoming Voice Call - $QCCHV ............................................................... 401 3.3.6.1.3 Sends to the ME a Password - ^CPIN ........................................................................ 401 3.3.6.1.4 Sends to the ME a Password - +QCPIN .................................................................... 402 3.3.6.1.5 Query Received Signal Quality - AT+CCSQ.............................................................. 402 3.3.6.1.6 Originated Voice Call - AT+CDV .............................................................................. 402 3.3.6.1.7 Compiles the IMSI Number - +QCIMI ....................................................................... 403 3.3.6.2 IS-707 Sms related AT command table ......................................................................... 404 3.3.6.2.1 Set How Receiving New Message - $QCNMI ............................................................. 404 3.3.6.2.2 Set Parameters for Sending Messages - $QCSMP ..................................................... 404 3.3.6.2.3 Select Preferred Memory Storage - $QCPMS ............................................................ 405 3.3.6.2.4 Read a Sms Message - $QCMGR ............................................................................... 405 3.3.6.2.5 Send a Message from TE to The Network - $QCMGS................................................ 405 3.3.6.2.6 Send a Message Already Stored from Memory - $QCMSS ........................................ 405 3.3.6.2.7 Delete SMS Messages - $QCMGD ............................................................................. 406 3.3.6.2.8 List All the SMS Saved in the Loaction - $QCMGL ................................................... 406 3.3.6.2.9 Message Format - $QCMGF...................................................................................... 407 3.3.6.2.10 Store Message to Memory - $QCMGW .................................................................... 407 4 List of acronyms .............................................................................................................. 408 5 Error Code ...................................................................................................................... 410 Copyright© Shanghai MobiletekCommunication Ltd 10 AT Command User Guide ME Error Result Code - +CME ERROR:.............................................................. 410 Message Service Failure Result Code - +CMS ERROR: ......................................... 413 CO N F LY ID NQ EN TI AL 5.1 5.2 Copyright© Shanghai MobiletekCommunication Ltd 11 AT Command User Guide 1 INTRODUCTION 1.1 Scope This document aims to provide a detailed specification and a comprehensive listing as a Reference for the whole set of AT commands. 1.2 Audience Readers of this document should be familiar with Mobiletek modules and how to control them by means of AT Commands. 1.3 Document Organization N F LY ID NQ EN TI AL This document contains the following chapters: Chapter 1: "Introduction" provides a scope for this document, target audience, contact and support information, and text conventions. Chapter 2: "Overview" about the aim of this document and implementation suggestions. Chapter 3: "AT Commands" The core of this Reference guide. 1.4 Related Documents ETSI GSM 07.07 specification and rules http://www.3gpp.org/ftp/Specs/archive/07_series/07.07/ ETSI GSM 07.05 specification and rules http://www.3gpp.org/ftp/Specs/archive/07_series/07.05/ CO Hayes standard AT command set Copyright© Shanghai MobiletekCommunication Ltd 12 AT Command User Guide 2 OVERVIEW 2.1 About the document This document describes all AT commands implemented in the Mobiletek wireless module L506 CO N F LY ID NQ EN TI AL Note:In this document,the '* ' character before parameter mean this parameter support in special version. Copyright© Shanghai MobiletekCommunication Ltd 13 AT Command User Guide 3 AT COMMANDS The Mobiletek wireless module family can be controlled via the serial interface using the standard AT commands[1]. The Mobiletek wireless module family is compliant with: Hayes standard AT command set, in order to maintain the compatibility with existing SW programs. ETSI GSM 07.07 specific AT command and GPRS specific commands. ETSI GSM 07.05 specific AT commands for SMS (Short Message Service) and CBS (Cell Broadcast Service) Moreover Mobiletek wireless module family supports also Mobiletek proprietary AT commands for special purposes. N F LY ID NQ EN TI AL The following is a description of how to use the AT commands with the Mobiletek wireless module family. 3.1 Definitions The following syntactical definitions apply: Carriage return character, is the command line and result code terminator character, which value, in decimal ASCII between 0 and 255,is specified within parameter S3. The default value is 13. Linefeed character, is the character recognised as line feed character. Its value, in decimal ASCII between 0 and 255, is specified within parameter S4. The default value is 10. The line feed character is output after carriage return character if verbose result codes are used (V1 option used ) otherwise, if numeric format result codes are used (V0 option used) it will not appear in the result codes. <...> Name enclosed in angle brackets is a syntactical element. They do not appear in the command line. CO 1 The AT is an ATTENTION command and is used as a prefix to other parameters in a string. The AT command combined with other parameters can be set up in the communications package or typed in manually as a command line instruction. Copyright© Shanghai MobiletekCommunication Ltd 14 AT Command User Guide [...] Optional subparameter of a command or an optional part of TA information response is enclosed in square brackets. Brackets themselves do not appear in the command line. When subparameter is not given in AT commands which have a Read command, new value equals to its previous value. In AT commands which do not store the values of any of their subparameters, and so have not a Read command, which are called action type commands, action should be done on the basis of the recommended default setting of the subparameter. 3.2 AT Command Syntax The syntax rules followed by Mobiletek implementation of either Hayes AT commands or GSM/WCDMA/LTE commands are very similar to those of standard basic and extended AT commands. There are two types of extended command: N F LY ID NQ EN TI AL Parameter type commands. This type of commands may be "set" (to store a value or values for later use), "read" (to determine the current value or values stored), or "tested" (to determine ranges of values supported). Each of them has a test command (trailing =?) to give information about the type of its subparameters; they also have a Read command (trailing?) to check the current values of subparameters. Action type commands. This type of command may be "executed" or "tested". "executed" to invoke a particular function of the equipment, which generally involves more than the simple storage of a value for later use "tested" to determine: Whether or not the equipment implements the Action Command (in this case issuing the correspondent Test command - trailing =? - returns the OK result code), and if subparameters are associated with the action, the ranges of subparameters values that are supported. Action commands do not store the values of any of their possible subparameters. Moreover: The response to the Test Command (trailing =?) may be changed in the future by Mobiletek to allow the description of new values/functionalities. CO If all the subparameters of a parameter type command +CMD are optional, issuing AT+CMD= causes the OK result code to be returned and the previous values of the omitted subparameters to be retained. 3.2.1 String Type Parameters A string is either enclosed between quotes or not considered a valid string type parameter input. According to V25.ter space characters are ignored on the command line and may be used freely for formatting purposes, unless they are embedded in numeric or quoted string constants. Therefore a string containing a space character has to be enclosed between quotes to be considered a valid string type parameter (e.g. typing AT+COPS=1,0,"A1" is the same as typing AT+COPS=1,0,A1; typing AT+COPS=1,0,"A BB" is different from typing AT+COPS=1,0,A BB). A small set of commands requires always writing the input string parameters within quotes. This is explicitly reported in the specific descriptions. Copyright© Shanghai MobiletekCommunication Ltd 15 AT Command User Guide 3.2.2 Command Lines A command line made up of three elements: the prefix, the body and the termination character. The command line prefix consists of the characters "AT" or "at", or, to repeat the execution of the previous command line, the characters "A/" or "a/". The termination character may be selected by a user option (parameter S3), the default being . The basic structures of the command line are: ATCMD1 where AT is the command line prefix, CMD1 is the body of a basic command (nb: the name of the command never begins with the character "+") and is the command line terminator character ATCMD2=10 where 10 is a subparameter AT+CMD1 ;+CMD2=, ,10 These are two examples of extended commands (nb: the name of the command always begins with the character "+"[2]). They are delimited with semicolon. In the second command, the subparameter omitted. N F LY ID NQ EN TI AL +CMD1? This is a Read command for checking current subparameter values +CMD1=? This is a test command for checking possible subparameter values These commands might perform in a single command line as shown below: ATCMD1 CMD2=10+CMD1;+CMD2=, ,10;+CMD1?;+CMD1=? anyway it is always preferable to separate into different command lines the basic commands and the extended commands; furthermore it is suggested to avoid placing several action commands in the same command line, because if one of them fails, then an error message is received but it is not possible to argue which one of them has failed the execution. If command V1 is enabled (verbose responses codes) and all commands in a command line has been performed successfully, result code OK is sent from the TA to the TE, if subparameter values of a command are not accepted by the TA or command itself is invalid, or command cannot be performed for some reason, result code ERROR is sent and no subsequent commands in the command line are processed. If command V0 is enabled (numeric responses codes), and all commands in a command line has been performed successfully, result code 0 is sent from the TA to the TE, if sub-parameter values of a command are not accepted by the TA or command itself is invalid, or command cannot be performed for some reason, result code 4 and no subsequent commands in the command line are processed. CO In case of errors depending on ME operation, ERROR (or 4) response may be replaced by +CME ERROR: or +CMS ERROR: . 2 The set of proprietary AT commands differentiates from the standard one because the name of each of them begins with either "^", "$" or "*". Proprietary AT commands follow the same syntax rules as extended command Copyright© Shanghai MobiletekCommunication Ltd 16 AT Command User Guide 3.2.3 Information Responses and Result Codes The TA response, in case of verbose response format enabled, for the previous examples command line could be as shown below: Information response to +CMD1?: +CMD1:2,1,10 Information response to +CMD1=? +CMD1(0-2),(0,1),(0-15) Final result code: OK Moreover, there are other two types of result codes: N F LY ID NQ EN TI AL Result codes that inform about progress of TA operation(e.g. connection establishment CONNECT) Result codes that indicate occurrence of an event not directly associated with issuance of a command from TE (e.g. ring indication RING). Here the basic result codes according to ITU-T V25Ter recommendation CO Result Codes Numeric form Verbose form 0 OK 1 CONNECT 2 RING 3 NO CARRIER 4 ERROR 6 NO DIALTONE 7 BUSY 8 NO ANSWER Copyright© Shanghai MobiletekCommunication Ltd 17 AT Command User Guide 3.2.4 Command Response Time-Out Every command issued to the Mobiletek modules returns a result response if response codes are enabled (default). The time needed to process the given command and return the response varies, depending on the command type. Commands that do not interact with the SIM or the network, and involve only internal set up settings or readings, have an immediate response, depending on SIM configuration(e.g., number of contacts stored in the phonebook, number of stored SMS), or on the network the command may interact with. In the table below are listed only the commands whose interaction with the SIM or the network could lead to long response timings. When not otherwise specified, timing is referred to set command. For phonebook and SMS writing and reading related commands, timing is referred to commands issued after phonebook sorting is completed. N F LY ID NQ EN TI AL For DTMF sending and dialing commands timing is referred to module registered on network ("AT+CREG?" answer is "+CREG: 0,1" or "+CREG: 0,5"). Command Estimated maximum time to get response (Seconds) +COPS 125 (test command) 15 (SS operation) +CLCK 5 (FDN enabling/disabling) 15 (SS operation) +CPWD 5 (PIN modification) +CLIP 15 (read command) +CLIR 15 (read command) +CCFC 15 +CCWA 15 +CHLD 30 +CPIN 30 +CPBS 5 (FDN enabling/disabling) 5 (single reading) 15 (complete reading of a 500 records full phonebook) 10 (string present in a 500 records full phonebook) 5 (string not present) CO +CPBR +CPBF +CPBW 5 Copyright© Shanghai MobiletekCommunication Ltd 18 AT Command User Guide +CACM 5 +CAMM 5 +CPUC 180 +VTS 20 (transmission of full "1234567890*#ABCD" string with no delay betwe en tones, default duration) +CSCA 5 (read and set commands) +CSAS 5 +CMGS 120 after CTRL-Z; 1 to get ‘>’ prompt +CMSS 120 after CTRL-Z; 1 to get ‘>’ prompt +CMGW 5 after CTRL-Z; 1 to get ‘>’ prompt 5 (single SMS cancellation) 25 (cancellation of 50 SMS) +CNMA 120 after CTRL-Z; 1 to get ‘>’ prompt +CMGR 5 +CMGL 100 +CGACT 150 +CGATT 140 N F LY ID NQ EN TI AL +CMGD 120 (voice call) D Timeout set with ATS7 (data call) 60 (voice call) Timeout set with ATS7 (data call) H 30 +CHUP 60 +COPN 10 +COPL 180 +CRSM 180 +FRH Timeout set with ATS7 +FTH Timeout set with ATS7 +FRM Timeout set with ATS7 CO A +FTM Timeout set with ATS7 +FRS Timeout set with the command itself +FTS Timeout set with the command itself +WS46 10 Copyright© Shanghai MobiletekCommunication Ltd 19 AT Command User Guide 3.2.5 Command Issue Timing The chain of "Command -> Response" must always be respected and a new command must not be issued before the module has terminated all the sending of its response result code (whatever it may be). This applies especially to applications that "sense" the OK text and therefore may send the next command before the complete code OK is sent by the module. It is in any case advisable to wait at least 20ms between the end of the reception of the response and the issue of the next AT command. If the response codes are disabled and therefore the module does not report any response to the command, then at least the 20ms pause time shall be respected. CO N F LY ID NQ EN TI AL During command mode, due to hardware limitations, under severe CPU load the serial port can lose some characters if placed in auto bounding at high speeds. Therefore, if you encounter this problem use a fixed baud rate with +IPR command. Copyright© Shanghai MobiletekCommunication Ltd 20 AT Command User Guide 3.3 AT Commands Set 3.3.1 3.3.1.1 Command Line General Format Command LinePrefixes 3.3.1.1.1 Starting a Command Line – AT AT – Starting A Command The prefix AT, or at, is a two-character abbreviation (ATtention), always used to start a AT command line to be sent from TE to TA Reference 3GPP TS 27.007 3.3.1.1.2 Last Command Automatic Repetition – A/ N F LY ID NQ EN TI AL A/ - Last Command Automatic A/ If the prefix A/ or a/ is issued, the MODULE immediately executes once again the body of the preceding command line. No editing is possible and no termination character is necessary. A command line may be repeated multiple times through this mechanism, if desired. If A/ is issued before any command line has been executed, the preceding command line is assumed to have been empty (that results in an OK result code). Note: this command works only at fixed IPR. *Note: the custom command #/ has been defined, it causes the last command to be executed again too; but it does not need a fixed IPR. V.25ter CO Reference Copyright© Shanghai MobiletekCommunication Ltd 21 AT Command User Guide 3.3.2 3.3.2.1 Hayes Compliant AT Commands Generic Modem Control 3.3.2.1.1 Set To Factory-Defined Configuration -&F &F – Set To Factory-Defined AT&F[ ] The execution command sets the configuration parameters to default values specified by manufacturer; it takes into consideration hardware configuration switches and other manufacturer-defined criteria. Parameter: : 0 - just factory profile’s base section parameters are considered. *1 - Both the factory profile base section and the extended section are considered (full factory profile). N F LY ID NQ EN TI AL Note: if parameter is omitted, the command has the same behaviour as AT&F0 Reference V.25ter. 3.3.2.1.2 Soft Reset – Z Z - Soft Reset ATZ[ ] The execution command loads the base section of the specified user profile and the extended section of the default factory profile. Parameter: 0..1 - user profile number Note: any call in progress will terminated. Note: if parameter is omitted, the command has the same behaviour as ATZ0. V.25ter. CO Reference Copyright© Shanghai MobiletekCommunication Ltd 22 AT Command User Guide 3.3.2.1.3 Select Active Service Class - +FCLASS +FCLASS – Select Active Service Class AT+FCLASS= The set command sets the wireless module into the specified connection mode (data, fax, voice). Hence, all the calls done afterwards will be data or voice. Parameter: 0 – data 1 –fax class (only 3GPP support) 2.0– fax class (only 3GPP2 support) *8 – voice Read command returns the current configuration value of the parameter . Test command returns all supported values of the parameters . Execution command returns OK result code. 3GPP TS 27.007 and ITU-T T.32[12] and TIA-592 and TIA-578-A(3GPP Only) and 3GPP2 N F LY ID NQ EN TI AL AT+FCLASS? AT+FCLASS=? AT+FCLASS Reference 3.3.2.1.4 Store Current Configuration -&W &W – Store Current Configuration AT&W[ ] Execution command stores on profile the complete configuration of the device. Parameter: 0 – profile Note: if parameter omitted, the command has the same behaviour of AT&W0. 3.3.2.1.5 Manufacturer Identification - +GMI CO +GMI – Manufacturer Identification AT+GMI Execution command returns the manufacturer identification. AT+GMI=? Test command returns OK result code. Reference V.25ter 3.3.2.1.6 Model Identification - +GMM +GMM – Model Identification AT+GMM Execution command returns the model identification. AT+GMM=? Test command returns OK result code. Reference V.25ter 3.3.2.1.7 Revision Identification - +GMR +GMR – Revision Identification AT+GMR Execution command returns the software revision identification. Copyright© Shanghai MobiletekCommunication Ltd 23 AT Command User Guide Test command returns OK result code. V.25ter CO N F LY ID NQ EN TI AL AT+GMR=? Reference Copyright© Shanghai MobiletekCommunication Ltd 24 AT Command User Guide 3.3.2.1.8 Capabilities List - +GCAP +GCAP – Capbailities List AT+GCAP Execution command returns the equipment supported command set list. Where: +CGSM: 3GPP TS command set +FCLASS: Fax command set +DS: Data Service common modem command set AT+GCAP=? +MS: Mobile Specific command set Test command returns OK result code. Reference V.25ter 3.3.2.1.9 Serial Number - + GSN +GSN – Serial Number Execution command returns the device board serial number. N F LY ID NQ EN TI AL AT+GSN Note: The number returned is not the IMSI, it is only the board number AT+GSN=? Reference Test command returns OK result code. V.25ter 3.3.2.1.10 Display Current Base Configuration and Profile -&V &V – Display Current Base Configuration And Profile AT&V Execution command returns some of the base configuration parameters settings. 3.3.2.1.11 Single Line Connect Message - \V \V – Single Line Connect Message AT\V Execution command set single line connect message. Parameter: 0 - off CO 1 - on Copyright© Shanghai MobiletekCommunication Ltd 25 AT Command User Guide 3.3.2.1.12 Speaker Loudness - L L – Speaker Loudness ATL Execution command set speaker loudness. Parameter: 0 – low speaker volume 1 – middle low speaker volume 2 – middle speaker volume 3 – high speaker volume 3.3.2.1.13 Speaker Mode - M M – Speaker Mode Execution command set the speaker mode. N F LY ID NQ EN TI AL ATM Parameter: 0 – always turn off the loudspeaker 1 – open the speaker until TA notifies the TE carrier detect CO 2 – when the TA hook, open the speaker Copyright© Shanghai Mobiletek Communication Ltd 26 AT Command User Guide 3.3.2.2 DTE - Modem Interface Control 3.3.2.2.1 Command Echo - E E – Command Echo ATE[ ] The set command enables/disables the command echo. Parameter: 0 - Disables command echo (factory default) 1 - Enables command echo, hence command sent to the device are echoed back to the DTE before the response is given. V25ter N F LY ID NQ EN TI AL Reference 3.3.2.2.2 Quiet Result Codes - Q Q – Quiet Result Codes ATQ[ ] Set command enables or disables the result codes. Parameter: 0 - enables result codes (factory default) 1 - disables result codes *2 - disables result codes (only for backward compatibility) Example Note: After issuing either ATQ1 or ATQ2 every information text transmitted in response to commands is not affected After issuing ATQ1 or ATQ2 AT+CGACT=? Note: if parameter is omitted, the command has the same behaviour of ATQ0 +CGACT: (0-1) nothing is appended to the response CO Reference V25ter Copyright© Shanghai Mobiletek Communication Ltd 27 AT Command User Guide 3.3.2.2.3 Response Format – V V- Response Format ATV[ ] The set command determines the contents of the header and trailer transmitted with result codes and information responses. It also determines if result codes are transmitted in a numeric form or an alphanumeric form. Parameter: 0 - limited headers and trailers and numeric format of result codes information responses result codes N F LY ID NQ EN TI AL 1 - full headers and trailers and verbose format of result codes (factory default) information responses result codes Note: the portion of information responses is not affected by this setting. Note: if parameter is omitted, the command has the same behaviour of ATV0 V.25ter CO Reference Copyright© Shanghai Mobiletek Communication Ltd 28 AT Command User Guide 3.3.2.2.4 Extended Result Codes – X X – Extended Result Codes ATX[ ] Set command selects the result code messages subset used by the modem to inform the DTE of the result of the commands. Parameter: 0 - send only OK, CONNECT, RING, NO CARRIER, ERROR, NO ANSWER Results. 1...4 - reports all messages (factory default is 1). Note: If parameter is omitted, the command has the same behaviour of ATX0 Note: Current value is returned by AT&V N F LY ID NQ EN TI AL Parameter: 0 - EXTENDED MESSAGES : X0=NO 1..4 - EXTENDED MESSAGES : X1=YES Note For complete control on CONNECT response message see also +DR command. Reference V.25ter 3.3.2.2.5 Identification Information - I I – Identification Information ATI[ ] Execution command returns one or more lines of information text followed by a result code. Execution command returns one or more lines of information for manufacturer model number and softwore version , followed by a result code. 0-255 CO parameter are accepted but ignored (to accommodate external software) Reference V25ter Copyright© Shanghai Mobiletek Communication Ltd 29 AT Command User Guide 3.3.2.2.6 Data Carrier Detect (DCD) Control - &C &C – Data Carrier Detect (DCD) Control AT&C[ ] Set command controls the RS232 DCD output behaviour. Parameter: 0-DCD remains high always. 1-DCD follows the Carrier detect status: if carrier detected DCD is high, otherwise DCD is low. 2-DCD off while disconnecting(factory default) Reference V25ter Note: if parameter is omitted, the command has the same behaviour of AT&C0 N F LY ID NQ EN TI AL 3.3.2.2.7 Data Terminal Ready (DTR) Control - &D &D – Data Terminal Ready (DTR) Control AT&D[ ] The set command controls the Module behaviour for RS232 DTR transitions. Parameter: 0 - DTR transitions are ignored 1 - When the MODULE is connected, the High to Low transition of DTR pin sets the device in command mode and the current connection is NOT closed. 2 - When the MODULE is connected, the High to Low transition of DTR pin sets the device in command mode and the current connection is closed. (factory default) Note: if AT&D2 been issued and the DTR has been tied Low, autoanswering is inhibited and it is possible to answer only by issuing command ATA. Note: if parameter is omitted, the command has the same behaviour of AT&D0 Reference V.25ter 3.3.2.2.8 Controls the display data rate or wireless connection speed - &E CO &E – Controls the display of data rate to e either serial rate or wireless connection speed AT&E[ ] Controls the display of data rate to be either serial rate or wireless connection speed. Parameter: 0 - Serial/DTE rate (factory default) 1 - Wireless connection speed Reference V.25ter Copyright© Shanghai Mobiletek Communication Ltd 30 AT Command User Guide 3.3.2.2.9 Standard Flow Control - \Q \Q – Standard Flow Control AT\Q[ ] Set command controls the RS232 flow control behaviour. Parameter: 0 - no flow control 1 - software bi-directional with filtering (XON/XOFF) *2 - hardware mono-directional flow control (only CTS active) 3 - hardware bi-directional flow control (both RTS/CTS active) (factory default) Note: if parameter is omitted, the command has the same behaviour as AT\Q0 N F LY ID NQ EN TI AL Note: \Q’s settings are functionally a subset of &K’s ones. Reference V.25ter 3.3.2.2.10 Data Set Ready (DSR) Control - &S &S – Data Set Ready (DSR) Control AT&S[ ] The set command controls the RS232 DSR pin behaviour. Parameter: 0 - always High (factory default) 1 - Follows the GSM traffic channel indication *2 - High when connected *3 - High when device is ready to receive commands (factory default). Note: if option 1 selected, then DSR is tied High when the device receives from the network the UMTS traffic channel indication. CO Note: in power saving mode the DSR pin is always tied Low & USB_VBUS pin is always tied Low. Note: if parameter is omitted, the command has the same behaviour as AT&S0 Note: If option 1 or 2 active, DSR will not be tied High in case of GSM voice connection. Copyright© Shanghai Mobiletek Communication Ltd 31 AT Command User Guide 3.3.2.2.11 Fixed DTE Interface Rate - +IPR +IPR – Fixed DTE Interface Rate AT+IPR= The set command specifies the DTE speed (UART only) at which the device accepts commands during command mode operations. The command could be used to fix the DTE-DCE interface speed. Note: DTE speed of USB does not change. Parameter: 300 600 1200 N F LY ID NQ EN TI AL 2400 4800 9600 19200 38400 57600 115200 (default) 230400 If is specified DTE-DCE speed is fixed to that speed, hence no speed auto-detection (autobauding) is enabled. AT+IPR? AT+IPR=? Read command returns the current value of +IPR parameter. Test command returns the list of supported autodetectable values and the list of fixed-only values in the format: +IPR:(list of supported autodetectable values), (list of fixed-only CO values) Reference V.25ter Copyright© Shanghai Mobiletek Communication Ltd 32 AT Command User Guide 3.3.2.2.12 DTE-Modem Local Flow Control - +IFC +IFC – DTE-Modem Local Flow Control AT+IFC= , The set command selects the flow control behaviour of the serial port in both directions: from DTE to modem ( option) and from modem to DTE ( ) Parameters: - flow control option for the data received by DTE. 0 - flow control None 2 - C105 (RTS) (factory default) - flow control option for the data sent by modem 0 - flow control None 2 - C106 (CTS) (factory default) Note: only possible commands are AT+IFC=0,0 and AT+IFC=2,2. Restore to default value AT+IFC? Read command returns active flow control settings. AT+IFC=? Test command returns all supported values of the parameters Reference and . V25ter N F LY ID NQ EN TI AL AT+IFC 3.3.2.2.13 DTE-Modem Character Framing - +ICF +ICF – DTE-Modem Character Framing AT+ICF= [, ] Set command defines the asynchronous character framing used when autobauding is disabled. The L506 family supports only the 8 Data, 1 Stop setting. Parameters: - determines the number of bits in the data bits, the presence of a parity bit, and the number of stop bits in the start-stop frame. 3 - 8 Data, 1 Stop (default) CO - determines how the parity bit is generated and checked, if present; setting this subparameter has no meaning. 0 - Odd (not supported) 1 - Even (not supported) 2 - Mark 3 - Space(Default) AT+ICF? Read command returns current settings for subparameters and . The current setting of subparameter will always be presented as 0. AT+ICF=? Reference Test command returns the ranges of values for the parameters and V25ter Copyright© Shanghai Mobiletek Communication Ltd 33 AT Command User Guid 3.3.2.3 Call Control 3.3.2.3.1 Dial - D D - Dial ATD [;] The execution command starts a call to the phone number given as parameter. If ";" is present, a voice call to the given number is performed, regardless of the current value of the connection mode set by +FCLASS command. Parameter: - phone number to be dialed Note: type of call (data, fax or voice) depends on last +FCLASS setting. Note: the characters accepted are 0-9 and *,#,"A","B","C","+". N F LY ID NQ EN TI AL ATD> [;] Note: for backwards compatibility with landline modems modifiers "T", "P","R", ",", "W", "!", "@" are accepted but have no effect. Issues a call to phone number whose corresponding alphanumeric field is ; all available memories will be searched for the correct entry. If ";" is present a voice call is performed. Parameter: - alphanumeric field corresponding to phone number. It must be enclosed in quotation marks. Note: parameter is case sensitive. ATD> [;] Note: used should in be phonebook the one selected withstorage +CSCS. , entry location Issues a callcharacter to phonesetnumber memory (available memories may be queried with AT+CPBS=?). If ";" is present a voice call is performed. Parameters: - phonebook memory storage; "SM" - SIM/UICC phonebook CO "FD" - SIM/USIM fixed dialing phonebook "LD" - SIM/UICC last dialled phonebook "MC" Missed calls list "RC" - Received calls list "DC" - MT dialled calls list "ME" - MT phonebook "EN" - SIM/USIM (or MT) emergency number(+CPBW is not be applicable for this storage) "ON" - SIM (or MT) own numbers (MSI storage may be available through + CNUM also). "MB" - Mailbox numbers stored on SIM.(If this service is provided by the SI M). - entry location should be in the range of locations available in the memory used Copyright© Shanghai Mobiletek Communication Ltd 34 AT Command User Guide ATD> [;] Issue a call to a phone number on entry location of the active phonebook memory storage (see +CPBS). If ";" is present a voice call is performed. Parameter: - active phonebook memory storage entry location; it should be in the range of locations available in the active phonebook memory storage. ATDL; ATD I[;] ATD i[;] Issues a call to the last number dialed. Issues a call suppressing the CLIR supplementary service subscription default value for this call ATD G[;] ATD g[;] If ";" is present a voice call is performed. I - invocation, restrict CLI presentation i suppression, allow CLI presentation Issues a call checking the CUG supplementary service information for the current call. Refer to +CCUG command. N F LY ID NQ EN TI AL If ";" is present a voice call is performed. ATD* [* ] [*[ ] [*[ ]]]]# This command is specific to GPRS functionality and causes the MT to perform whatever actions are necessary to establish communication between the TE and the external PDN. Parameters: - GPRS Service Code, a digit string (value 99) which identifies a request to use the GPRS - string that identifies the called party in the address space applicable to the PDP. - a string which indicates the layer 2 protocol to be used (see +CGDATA command). For communications software that does not support arbitrary characters in the dial string, the following numeric equivalents shall be used: 1 - PPP - a digit which specifies a particular PDP context definition (see +CGDCONT command). V.25ter.(3GPP Only) CO Reference Copyright© Shanghai Mobiletek Communication Ltd 35 AT Command User Guide 3.3.2.3.2 Tone Dial - T T - Tone Dial ATT The set command has no effect and is included only for backward compatibility with landline modems. Reference V.25ter. 3.3.2.3.3 Pulse Dial - P P – Pulse Dial ATP Select pulse dialing. Reference V.25ter. GSM invalid 3.3.2.3.4 Answer - A N F LY ID NQ EN TI AL A - Answer ATA Execution command answers an incoming call if automatic answer is disabled. Note: This command MUST be the last in the command line and followed immediately by a character. Reference V.25ter.(3GPP Only) 3.3.2.3.5 Disconnect - H H - Disconnect ATH The execution command is used to close the current conversation (voice, data or fax). Note: this command issued only in command mode. When a data conversation is active the device is in on-line mode (commands are not sensed and characters are sent to the other party), hence escape sequence (see register S2) is required before issuing this command, otherwise if &D1 option is active, DTR pin has to be tied Low to return in command mode. V.25ter.(3GPP Only) CO Reference Copyright© Shanghai Mobiletek Communication Ltd 36 AT Command User Guide 3.3.2.3.6 Return To On Line Mode - O O – Return To On Line Mode ATO The execution command used to return to on-line mode from command mode. If there is no active connection, it returns NO CARRIER. Note: After issuing this command and if the device is in conversation, to send other commands to the device you must return to command mode by issuing the escape sequence (see register S2) or tying low DTR pin if &D1 option is active. V.25ter.(3GPP Only) CO N F LY ID NQ EN TI AL Reference Copyright© Shanghai Mobiletek Communication Ltd 37 AT Command User Guide 3.3.2.4 Compression Control 3.3.2.4.1 Data Compression - +DS +DS – Data Compression AT+DS=[ [, [, [, ]]]] Set command sets the V42 compression parameter. Parameter: : desired direction of operations 0 - no compression (factory default) 1 - Transmit only. 2 - Receive only. N F LY ID NQ EN TI AL 3 - Both directions, accept any direction : whether the DCE should continue to operate if the desired result is not obtained. 0 - Do not disconnect if V.42 bis is not negotiated by the remote DCE as specified in . : maximum number of dictionary entries 512-2048 (Factory default is 2048) Read command returns current value of the data compression parameter. Test command returns all supported values of the parameter : the maximum V.25ter(3GPP Only) string length 6 – the only supported value 3.3.2.4.2 Data Compression Reporting - +DR AT+DS? AT+DS=? Reference +DR – Data Compression Reporting AT+DR= Set command enables/disables the data compression reporting upon connection. Parameter: 0 - data compression reporting disabled 1 - data compression reporting enabled upon connection CO Note: if enabled, the following intermediate result code is transmitted before the +DR – Data Compression Reporting final result code: AT+DR? AT+DR=? Reference +DR: Read command returns current value of . Test command returns all supported values of the parameter V25ter(3GPP Only) Copyright© Shanghai Mobiletek Communication Ltd 38 AT Command User Guide 3.3.2.5 S Parameters Basic commands that begin with the letter "S" are known as "S-Parameters". The number following the "S" indicates the "parameter number" being referenced. If the number is not recognized as a valid parameter number, an ERROR result code is issued. If no value is given for the subparameter of an S-Parameter, an ERROR result code will be issued and the stored value left unchanged. NOTE: what follows is a special way to select and set an S-Parameter: N F LY ID NQ EN TI AL 1) ATSn selects n as current parameter number. If the value of n is in the range (0, 2, 3, 4, 5, 7, 10, 12, 25, 30, 38), this command establishes Sn as last selected parameter. Every value out of this range and less than 256 can be used but has no meaning and is maintained only for backward compatibility with landline modems. 2) AT= or ATS= set the contents of the selected S-parameter Example: ATS7 establishes S7 as last selected parameter. Reference: V25ter and RC56D/RC336D 3.3.2.5.1 Number of Rings to Auto Answer - S0 S0 – Number Of Rings To Auto Answer ATS0=[ ] Set command sets the number of rings required before device automatically answers an incoming call. Parameter: - number of rings CO ATS0? Reference 0 - auto answer disabled (factory default) Read currentbefore value automatic of S0 parameter. 1..255command - number returns of ringsthe required answer. V.25ter Copyright© Shanghai Mobiletek Communication Ltd 39 AT Command User Guide 3.3.2.5.2 Escape Character - S2 S2 – Escape Chararcter ATS2=[ ] Set command sets the ASCII character used as escape characters. Parameter: - escape character decimal ASCII 0..127 - factory default value is 43 (+). Note: the escape sequence consists of three escape characters preceded and followed by n ms of idle (see S12 to set n). S2 – Escape Chararcter ATS2? Read command returns the current value of S2 parameter. N F LY ID NQ EN TI AL Note: the format of the numbers in output is always 3 digits, left-filled with 0s 3.3.2.5.3 Command Line Termination Character - S3 S3 – Command Line Termination Character ATS3=[ ] Set command sets the value of the character recognized by the device as command line terminator and generated by the device as part of the header, trailer, and terminator for result codes and information text, along with S4 parameter. Parameter: - command line termination character (decimal ASCII) 0..127 - factory default value is 13 (ASCII ) Note: the "previous" value of S3 used to determine the command line termination character for entering the command line containing the S3 setting command. However the result code issued shall use the "new" value of S3 (as set during the processing of the command line) ATS3? Read command returns the current value of S3 parameter. CO Note: the format of the numbers in output is always 3 digits, left-filled with 0s Reference V25ter Copyright© Shanghai Mobiletek Communication Ltd 40 AT Command User Guide 3.3.2.5.4 Response Formatting Character - S4 S4 – Response Formatting Character ATS4=[ ] Set command sets the value of the character generated by the device as part of the header, trailer, and terminator for result codes and information text, along with the S3 parameter. Parameter: - response formatting character (decimal ASCII) 0..127 - factory default value is 10 (ASCII ) ATS4? Note: if the value of S4 changed in a command line, the result code issued in response of thatcommand Read commandreturns line will theuse current the new value value of S4 of parameter. S4. N F LY ID NQ EN TI AL Note: the format of the numbers in output is always 3 digits, left-filled with 0s Reference V25ter 3.3.2.5.5 Command Line Editing Character - S5 S5 – Command Line Editing Character ATS5=[ ] Set command sets the value of the character recognized by the device as a request to delete from the command line the immediately preceding character. Parameter: - command line editing character (decimal ASCII) 0..127 - factory default value is 8 (ASCII ) ATS5? Read command returns the current value of S5 parameter. Note: the format of the numbers in output is always 3 digits, left-filled with 0s V25ter CO Reference Copyright© Shanghai Mobiletek Communication Ltd 41 AT Command User Guide 3.3.2.5.6 Connection Completion Time-Out - S7 S7 – Connection Completion Time-Out ATS7=[ ] Set command sets the amount of time, in seconds, that the device shall allow between either answering a call (automatically or by A command) or completion of signalling of call addressing information to network (dialling), and establishment of a connection with the remote device. Parameter: - number of seconds ATS7? 1..255command - factory default is 0 value of S7 parameter. Read returns value the current Note: the format of the numbers in output is always 3 digits, left-filled with 0s V25ter N F LY ID NQ EN TI AL Reference 3.3.2.5.7 Carrier Off With Firm Time - S10 S10 – Carrier Off With Firm Time ATS10 Execution command has no effect and is included only for backward compatibility with landline modems 3.3.2.5.8 Disconnect Inactivity Timer - S30 S30 – Disconnect Inactivity Timer ATS30=[ ] Set command defines the inactivity time-out in minutes. The device disconnects if no characters are exchanged for a period at least minutes. Parameter: - expressed in minutes 0 - disabled, disconnection due to inactivity is disabled (factory default). 1..255 inactivity time-out value ATS30? Read command returns the current value of S30 parameter. CO Note: the format of the numbers in output is always 3 digits, left-filled with 0s Copyright© Shanghai Mobiletek Communication Ltd 42 AT Command User Guide 3.3.3 3.3.3.1 3GPP TS 27.007 AT Commands General 3.3.3.1.1 Request Manufacturer Identification - +CGMI +CGMI – Request Manufacturer AT+CGMI Execution command returns the device manufacturer identification code without command echo. AT+CGMI=? Test command returns OK result code. Reference 3GPP TS 27.007 3.3.3.1.2 Request Model Identification - +CGMM +CGMM – Request Model Execution command returns the device model identification code without command echo. AT+CGMM Test command returns OK result code. 3GPP TS 27.007 N F LY ID NQ EN TI AL AT+CGMM=? Reference 3.3.3.1.3 Request Revision Identification - +CGMR +CGMR – Request Revision Indentification AT+CGMR Execution command returns device software revision number without command echo. AT+CGMR=? Reference Test command returns OK result code. 3GPP TS 27.007 3.3.3.1.4 Request Product Serial Number Identification - +CGSN +CGSN – Request Product Serial Number Identification Execution command returns the product serial number , identified as the IMEI of the mobile, without command echo. AT+CGSN=? Reference Test command returns OK result code. 3GPP TS 27.007 CO AT+CGSN Copyright© Shanghai Mobiletek Communication Ltd 43 AT Command User Guide 3.3.3.1.5 Select TE Character Set - +CSCS +CSCS – Select TE Character AT+CSCS= Set command sets the current character set used by the device. [ ] Parameter: - character set "GSM" - GSM default alphabet (3GPP T S 03.38/23.008). "IRA" - international Reference alphabet (ITU-T T.50) N F LY ID NQ EN TI AL "UCS2" - 16-bit universal multiple-octet coded character set (ISO/IEC10646). AT+CSCS? AT+CSCS=? Example Read command returns the current value of the active character set. Test command returns the supported values for parameter . AT+CSCS="IRA" OK AT+CPBR=1 +CPBR: 1,"13845763000",129,"Lin Wang" OK Reference 3GPP TS 27.007 3.3.3.1.6 Request International Mobile Subscriber Identity (IMSI) - +CIMI +CIMI – Request International Mobile Subscriber Identify AT+CIMI Execution command returns the value of the Internal Mobile Subscriber Identity stored in the SIM without command echo. Note: a SIM card must be present in the SIM card housing. Otherwise, the command returns ERROR. CO AT+CIMI=? Reference Test command returns OK result code. 3GPP TS 27.007(3GPP Only) Copyright© Shanghai Mobiletek Communication Ltd 44 AT Command User Guide 3.3.3.1.7 PCCA STD-101 Query Wireless Network - +WS46 +WS46 – PCCA STD-101 Query Wireless Network AT+WS46? Read command reports the currently selected cellular network, in the format: + WS46: AT+WS46=? Test command reports the range for the parameter . Parameter: - integer type, it is the WDS-Side Stack to be used by the TA. 12 GSM Digital Cellular Systems (GERAN only) 22 UTRAN only 25 3GPP Systems (GERAN and UTRAN and E-UTRAN) (factory default) N F LY ID NQ EN TI AL 28 E-UTRAN only 29 GERAN and UTRAN The values in for Query are mutually exclusive. If one value (e.g. "25") is returned, other values shall not be returned. 3GPP TS 27.007(3GPP Only) CO Reference Copyright© Shanghai Mobiletek Communication Ltd 45 AT Command User Guide 3.3.3.2 Call Control 3.3.3.2.1 Call mode - +CMOD +CMOD – Parameter Command Syntax AT+CMOD= [ ] Set command selects the call mode of further dialling commands (D) or for next answering command (A). Mode can be either single or alternating (in the present document, terms "alternating mode" and "alternating call" refer to all GSM/UMTS bearer and teleservices that incorporate more than one basic service (voice, data, fax) within one call). When single mode is selected the call originating and hangup procedures are similar to procedures specified in ITU-T Recommendations V.250 [14], T.31 [11] and T.32 [12]. N F LY ID NQ EN TI AL NOTE: +CMOD shall be set to zero after a successfully completed alternating mode call. It shall be set to zero also after a failed answering. The power-up, factory (&F) and user resets (Z) shall also set the value to zero. This reduces the possibility that alternating mode calls are originated or answered accidentally. Defined values : 0 - single mode (default mode) AT+CMOD? Test command returns values supported as a compound value. +CMOD: AT+CMOD=? Reference +CMOD: (list of supported s) 3GPP Only 3.3.3.2.2 Hang Up Call - +CHUP +CHUP - Hang Up Call CO AT+CHUP Execution command cancels all active and held calls, also if a multi-party session is running. AT+CHUP=? Test command returns the OK result code Reference GSM 07.07(3GPP Only) Copyright© Shanghai Mobiletek Communication Ltd 46 AT Command User Guide 3.3.3.2.3 Select type of address - +CSTA +CSTA – Select type of address AT+CSTA=[ ] Set command selects the type of number for further dialling commands (D) according to GSM/UMTS specifications. Parameter: : type of address octet in integer format (refer TS 24.008 [8] subclause 10.5.4.7). default 145 when dialling string includes international access code character "+", otherwise 129 AT+CSTA? AT+CSTA =? Reference Read command returns selected Test command returns supported s 3GPP TS 27.007 3.3.3.2.4 Select Bearer Service Type - +CBST +CBST – Select Bearer Service Type Set command sets the bearer service with data rate , and the connection element used when data calls are originated. This N F LY ID NQ EN TI AL AT+CBST= [ [, ]]] [, setting is also used during mobile terminated data call setup, in case of single numbering scheme calls. Parameters: - data rate 0 - autobauding (autobaud) 7 - 9600 bps (V.32) 12 - 9600 bps (V.34) 14 - 14400 bps (V.34) 16 - 28800 bps (V.34) 17 - 33600 bps (V.34) 39 - 9600 bps (V.120) 43 - 14400 bps (V.120) 48 - 28800 bps (V.120) CO 51 - 56000 bps (V.120) 71 - 9600 bps (V.110 or X.31 flag stuffing) 75 - 14400 bps (V110 or X.31 flag stuffing) 80 - 14400 bps (V110 or X.31 flag stuffing) 81 - 38400 bps (V110 or X.31 flag stuffing) 83 - 56000 bps (V110 or X.31 flag stuffing) 84 - 64000 bps ( X.31 flag stuffing) 116 - 64000 bps (bit transparent) 134 – 64000 bps (multimedia) Copyright© Shanghai Mobiletek Communication Ltd 47 AT Command User Guide +CBST – Select Bearer Service Type - bearer service name 0 - data circuit asynchronous (UDI or 3.1 kHz modem) 1 - data circuit synchronous(UDI or 3.1 kHz modem) 4 - data circuit asynchronous(RDI) - connection element 0 - transparent 1 - non transparent (default) The bearer service on L506 family only has support for the following combinations: AT+CBST= 0,0,1 (Autobaud 9.6k, non transparent) N F LY ID NQ EN TI AL AT+CBST= 7,0,1 (V.32 9.6k, non transparent) AT+CBST=12,0,1 (V.34 9.6k, non transparent)) AT+CBST=14,0,1 (V.34 14.4k, non transparent) AT+CBST=39,0,1 (V.120 9.6k, non transparent) AT+CBST=43,0,1 (V.120 14.4k, non transparent) AT+CBST=71,0,1 (V.110 9.6k, non transparent) AT+CBST=75,0,1 (V.110 14.4k, non transparent) AT+CBST= 7,0,0 (V32 9.6k, transparent) AT+CBST=12,0,0 (V34 9.6k, transparent) AT+CBST=14,0,0 (V34 14.4k, transparent) AT+CBST= 0,0,1 (Autobaud 57.6k, non transparent) AT+CBST=14,0,1 (V.34 14.4k, non transparent) AT+CBST=16,0,1 (V.34 28.8k, non transparent) AT+CBST=17,0,1 (V.34 33.6k, non transparent) AT+CBST=43,0,1 (V.120 14.4k, non transparent) CO AT+CBST=48,0,1 (V.120 28.8k, non transparent) AT+CBST=51,0,1 (V.120 56k, non transparent) AT+CBST=75,0,1 (V.110 14.4k, non transparent) AT+CBST=80,0,1 (V.110 28.8k, non transparent) AT+CBST=81,0,1 (V.110 38.4k, non transparent) AT+CBST=83,0,1 (X.31FS 56k, non transparent) AT+CBST=83,4,1 (X.31FS 56k RDI, non transparent) AT+CBST=84,0,1 (X.31FS 64k, non transparent) AT+CBST=116,1,0 (Bit transparent 64 kbps, transparent) AT+CBST? Read command returns current value of the parameters , Copyright© Shanghai Mobiletek Communication Ltd 48 AT Command User Guide +CBST – Select Bearer Service Type AT+CBST=? Reference and Test command returns the supported range of values for the parameters. 3GPP TS 27.007(3GPP Only) 3.3.3.2.5 Radio Link Protocol - +CRLP +CRLP – Radio Link Protocol AT+CRLP= [ [, [, [, [, ]]]]] Set command sets Radio Link Protocol (RLP) parameters used when non- transparent data calls originated. Parameters: - IWF window Dimension 0..61 - factory default value is 61 (ver 0/1) N F LY ID NQ EN TI AL 0..488 - factory default value is 240 (ver 2) - MS window Dimension 0..61 - default value is 61 ( ver 0/1 ) 0..488 - factory default value is 240 (ver 2) - acknowledge timer (10 ms units). 38..255 - default value is 48 (ver 0 or 1) 42..255 deafault value is 52 (ver 2) - retransmission attempts 1..255 - default value is 6 (ver 0/1/2) - protocol version 0.1.2 AT+CRLP? Read command returns current settings for each supported RLP version . +CRLP: , , , +CRLP: , , , , CO AT+CRLP=? Reference Note Test command returns the range of setting value for each supported RLP version . OK 3GPP TS 27.007(3GPP Only) Versions 0 and 1 share the same parameter set. Read and Test commands shall return only one line for this set ( where is not present ) Copyright© Shanghai Mobiletek Communication Ltd 49 AT Command User Guide 3.3.3.2.6 Service Reporting Control - +CR +CR – Service Reporting Control AT+CR=[ ] Set command controls whether or not the intermediate result code +CR is returned from TA to TE. Parameter: 0 - disables +CR reporting (factory default) 1 - enables +CR reporting: the intermediate result code is transmitted at the point during connect negotiation at which the TA has determined which speed and quality of service will be used, before any error control or data compression reports are transmitted, and before the intermediate result code CONNECT is transmitted. Note: After power off/on in L506 the value returns to "0". Its format is: N F LY ID NQ EN TI AL +CR: where: ASYNC - asynchronous transparent SYNC - synchronous transparent REL ASYNC - asynchronous non-transparent REL SYNC - synchronous non-transparent. AT+CR? Note: This command replaces V.25ter [14] command Modulation Reporting Control (+MR), which is not appropriate for use with a modern terminal. Read command returns whether or not intermediate result code +CR is enabled, in the format: +CR: AT+CR=? Reference Test command returns the supported range of values of parameter . 3GPP TS 27.007(3GPP Only) 3.3.3.2.7 Extended Error Report - +CEER +CEER – Extended Error Report CO AT+CEER Execution command returns one or more lines of information text offering the TA user an extended error report, in the format: +CEER: This report regards some error condition that may occur: Copyright© Shanghai Mobiletek Communication Ltd 50 AT Command User Guide +CEER – Extended Error Report the failure in the last unsuccessful call setup (originating or answering) the last call release the last unsuccessful GPRS attach or unsuccessful PDP context activation the last GPRS detach or PDP context deactivation Note: if none of these conditions have occurred since power up then AT+CEER=? Reference "Normal, unspecified" condition is reported Test command returns OK result code. 3GPP TS 27.007(3GPP Only) 3.3.3.2.8 Cellular Result Codes - +CRC +CRC – Celluar Result Codes Set command controls whether or not the extended format of incoming call indication is used. N F LY ID NQ EN TI AL AT+CRC= [ ] Parameter: 0 - disables extended format reporting (factory default) 1 - enables extended format reporting: When enabled, an incoming call is indicated to the TE with unsolicited result code +CRING: Instead of the normal RING. Where: - call type: ASYNC - asynchronous transparent data SYNC - synchronous transparent data REL ASYNC - asynchronous non-transparent data REL SYNC - synchronous non-transparent data CO FAX - facsimile (TS 62) AT+CRC? AT+CRC=? Reference VOICE - normal voice (TS 11) Read command returns current value of the parameter