SM5100B AT Command Set

Transcript

1 SM5100B-D AT Command SM5100B-D AT Command Shanghai Sendtrue Technologies Co.,Ltd Page 1 of 141

2 SM5100B-D AT Command Revision history Version Date Author Review Update description 1.0.0 20081225 Buddy Steven Create IMPORTANT NOTICE COPYRIGHT NOTICE Copyright © 2008, Shanghai Sendtrue Technology Co.,Ltd. All rights reserved. TRADEMARKS Shanghai Sendtrue Technology Co.,Ltd and Shanghai Sendtrue Technology Co.,Ltd’s products are exclusively owned by Shanghai Sendtrue Technology Co.,Ltd. References to other companies and their products use trademarks owned by the respective companies and are for reference purpose only. WARRANTY DISCLAIMER Shanghai Sendtrue Technology Co.,Ltd makes no representations or warranties,either express or implied, by or with respect to anything in this document,and shall not be liable for any implied warranties of merchantability or fitness for a particular purpose or for any indirect,special or consequential damages. CONFIDENTIALITY The information contained here (including any attachments) is confidential. The recipient here acknowledges the confidentiality of this document, and except for the specific purpose, this document shall not be disclosed to any third party. NO GUARANTEE Our company will not take any responsibility for any damage caused by the customer’s abnormal operation. Please refer to specification and designing reference guide.Our company have right to modify the document according to technical requ irement with no announcement to the customer. Shanghai Sendtrue Technologies Co.,Ltd Page 2 of 141

3 SM5100B-D AT Command Contents . Introduction... 9 1 1.1 Scope of this document ... ..9 ents ... 9 docum 1.2 Correlative ndards... ... 9 sta 1.3 Correlative 1.4 Command format ... .10 1.4.1 The AT command format obeys the following principle ... 10 1.4.2 AT commands syntax ... 10 1.5 Information response and result codes ... 11 1.5.1 AT command result codes ... 11 bbreviations... 11 1.6 Definitions a nd A 2. Overview of AT commands ... ...13 2.1 Overview of general control commands ... 13 e commands ... 14 2.2 Overview of networ king servic 2.3 Overview of call control commands ... 14 commands... 14 2.4 Overview of suppleme ntary service 2.5 Overview of security commands... 15 2.6 Overview of SMS commands ... 15 mands... 16 phonebook com 2.7 Overview of 2.8 Overview of STK commands... 16 16 2.9 Overview of GPRS commands ... 2.10 Overview of TCP/IP commands ... 17 17 2.11 Overview of AUDIO commands ... 18 2.12 Overview of special commands ... 3. General control commands ... 19 3.1 Overview of general control commands ... 19 3.2 Detailed description of general control commands ... 20 3.2.1 AT ... ... 20 3.2.2 ATZ ... ..20 3.2.3 ATE ... ..20 3.2.4 ATS0... ..21 3.2.5 ATQ ... ..21 3.2.6 ATV ... ..22 3.2.7 AT&W ... 22 3.2.8 AT+CMEE... 23 3.2.9 AT+CFUN ... 23 3.2.10 AT+CCLK ... 24 3.2.11 AT+IPR... 24 25 3.2.12 AT+CGSN ... Shanghai Sendtrue Technologies Co.,Ltd Page 3 of 141

4 SM5100B-D AT Command 3.2.13 AT+CGMM ... 25 25 3.2.14 AT+CGMR ... 26 3.2.15 AT+CGMI ... 3.2.16 AT+CPAS ... 26 3.2.17 AT+CCID ... 27 27 3.2.18 AT+CIMI ... 3.2.19 AT+CBC... 27 3.2.20 AT+CPOF... 28 3.2.21 AT+CSCS ... 28 3.2.22 AT+SAC ... 29 3.2.23 AT+SBCM... 29 3.2.24 +SBCI ... 30 3.2.25 AT+IFC ... 30 31 3.2.26 AT+CFGRI ... 3.2.27 AT+ARMSLEEP ... 31 3.2.28 AT+ASSERTMODE ... 32 OPOW ERON ... 32 3.2.29 AT+AUT 3.2.30 AT+ADCM... 32 3.3.31 AT+SLOG ... 33 3.2.32 AT+ISC ... 33 3.2.33 AT+SSIMT ... 33 4. Networking service commands ... 35 35 e commands ... king servic 4.1 Overview of networ vice commands ... 35 4.2 Detailed description of ne tworking ser 35 4.2.1 AT+COPS... 4.2.2 AT+CSQ ... 36 37 4.2.3 AT+CCED ... 4.2.4 AT+CREG ... 39 ... 40 5. Call control commands ... 40 5.1 Overview of call control commands ... 5.2 Detailed description of call control commands ... 40 5.2.1 ATD ... ..40 5.2.2 ATA ... ..41 5.2.3 ATH ... ..41 5.2.4 AT+VTD... 41 42 5.2.5 AT+VTS ... 5.2.6AT+CICB ... 42 43 5.2.7 AT+CIND ... 44 6. Supplementary service commands ... commands... 44 6.1 Overview of suppleme ntary service 6.2 Detailed description of supplementary service commands ... 44 6.2.1 AT+CCFC... 44 6.2.2 AT+CCWA ... 45 46 6.2.3 AT+CHLD ... Shanghai Sendtrue Technologies Co.,Ltd Page 4 of 141

5 SM5100B-D AT Command 6.2.4 AT+CLIP ... 46 47 6.2.5 AT+CLIR... 48 6.2.6 AT+COLP... 6.2.7 AT+COLR ... 48 6.2.8 AT+CLCK ... 49 49 6.2.9 AT+CPWD ... 49 6.2.10 AT+CACM ... 6.2.11 AT+CAMM ... 49 6.2.12 AT+CPUC ... 50 6.2.13 AT+CLCC ... 50 6.2.14 AT+CUSD ... 51 6.2.15 AT+CSSN... 52 7. Security commands ... ... 54 7.1 Overview of security commands... 54 7.2 Detailed description of security commands ... 54 7.2.1 AT+CPIN... 54 7.2.2 AT+CPWD ... 55 7.2.3 AT+CLCK ... 56 7.2.4 AT+XX ... 57 8. SMS commands ... 58 8.1 Overview of SMS commands ... 58 8.2 Detailed description of SMS commands ... 58 8.2.1 AT+CSMS ... 58 59 8.2.2 AT+CSAS... 60 8.2.3 AT+CRES... 8.2.4 AT+CSDH ... 60 8.2.5 AT+CPMS ... 60 61 8.2.6 AT+CSCA ... 62 8.2.7 AT+CMGF ... 8.2.8 AT+CMGL ... 62 8.2.9 AT+CMGR ... 64 8.2.10 AT+CMGS ... 65 8.2.11 AT+CSMP ... 66 8.2.12 AT+CMGW ... 68 8.2.13 AT+CMSS ... 69 8.2.14 AT+CMGD... 69 8.2.15 AT+CSCB... 70 8.2.16 AT+CNMI ... 70 8.2.17 +CMTI ... 71 8.2.18 +CMT... 72 8.2.19 +CBM ... 72 8.2.20 AT+SMSC ... 73 8.2.21 AT+SUSS ... 73 74 9. Phonebook commands ... Shanghai Sendtrue Technologies Co.,Ltd Page 5 of 141

6 SM5100B-D AT Command 9.1 Overview of 74 phonebook commands... 74 9.2 Detailed description of phonebook commands ... 74 9.2.1 AT+CPBS ... 9.2.2 AT+CPBR... 75 9.2.3 AT+CPBF ... 75 76 9.2.4 AT+CPBW ... 9.2.5 AT+CPBP ... 76 9.2.6 AT+CPBN ... 77 9.2.7 AT+CNUM... 79 9.2.8 AT+SDCP... 79 9.2.9 AT+CSVM ... 79 10. STK commands... 81 10.1 Preface... 81 81 10.2 The exchange procedure between STK user and STK ... 10.3 Overview of STK commands... 82 STK commands ... 83 10.4 Detailed descript ion of 10.4.1 AT+STSF... 83 10.4.2 AT+STIN ... 83 10.4.3 AT+STGI ... 84 10.4.4 AT+STGR... 86 11. GPRS commands ... ... 89 11.1 Overview of GPRS commands ... 89 90 GPRS commands ... ion of 11.2 Detailed descript 11.2.1 AT+CGDCONT... 90 91 11.2.2 AT+CGQREQ ... 11.2.3 AT+CGQMIN... 93 11.2.4 AT+CGPCO... 95 11.2.5 AT+CGATT ... 95 96 11.2.6 AT+CGACT ... ADDR ... 96 11.2.7 AT+CGP 97 11.2.8 AT+CGDATA ... ... 97 11.2.9 AT+CGAUT O GANS ... T+C 98 A 11.2.10 11.2.11 AT+CGCLASS ... 99 11.2.12 AT+CGEREP... 99 11.2.13 AT+CGREG ... 100 11.2.14 AT+CGSMS ... 101 11.2.15 AT+CRC ... 101 11.2.16 AT+CR... 102 11.2.17 AT+CEER... 102 11.2.18 Extension of ATD ... 103 11.2.19 AT+SSST... 103 11.2.20 AT+SATT ... 104 104 11.2.21 AT+SAUTOATT ... Shanghai Sendtrue Technologies Co.,Ltd Page 6 of 141

7 SM5100B-D AT Command 11.2.22 AT+SGPRSDATA ... 105 105 11.2.23 ATO ... 106 11.2.24 +++ ... 12.TCP/IP commands ... ... 107 12.1 Overview of special commands ... 107 TCP/IP commands ... 107 12.2 Detailed description of 12.2.1 AT+SDATACONF... 107 12.2.2 AT+SDATASTART ... 108 12.2.3 AT+SDATATSEND ... 109 12.2.4 AT+SDATATREAD ... 109 12.2.5 AT+SDATASEND ... 110 12.2.6 AT+SSTRSEND... 110 111 12.2.7 AT+SDATAREAD ... 12.2.8 AT+SDATARXMD ... 111 112 12.2.9 AT+SDATASTATUS ... 113 12.2.10 AT+TRT ... mands ... 114 13. AUDIO co m 13.1 Overview of AUDIO commands... 114 AUDIO commands ... 114 13.2 Detailed descript ion of 13.2.1 AT+SSAM ... 114 115 13.2.2 AT+SPEAKER ... 13.2.3 AT+SDMUT... 115 116 13.2.4 AT+CMUT ... 116 13.2.5 AT+CRMP... 13.2.6 AT+STONE ... 117 13.2.7 AT+VGR ... 117 13.2.8 AT+SDTMF ... 118 13.2.9 AT+SCDM ... 118 13.2.10 AT+ECHO ... 119 13.2.11 AT+SSAP ... 120 13.2.12 AT+STMF ... 120 13.2.13 AT+SEQT... 121 13.2.14 AT+SSEA ... 122 14. Special commands... 124 14.1 Overview of special commands ... 124 GPRS commands ... 124 14.2 Detailed descript ion of 14.2.1 AT+SMUX ... 124 14.2.2 AT+S32K... 125 14.2.3 AT+SIND ... 125 14.2.4 AT+SBAND ... 126 14.2.5 AT+SMGF ... 127 14.2.6 AT+SMGD ... 128 14.2.7 AT+SSMP... 129 130 14.2.8 AT+SSGF ... Shanghai Sendtrue Technologies Co.,Ltd Page 7 of 141

8 SM5100B-D AT Command 130 14.2.9 AT+SSGS ... 14.2.10 AT+SNVM ... 131 15. MSC illustration ... 133 15.1 MO call ... 133 15.2 MT call... 133 15.3 SMS... ... 134 15.4 GPRS connect ... .134 15.5 Send GPRS data manually ... 135 16. Appendix... 136 16.1 Multiplexing protocol ... 136 16.1.1 Introduction ... 136 16.1.2 AT commands packets ... 136 16.1.3 Data packets ... 136 ode ... 137 Result c 16.2 Shanghai Sendtrue Technologies Co.,Ltd Page 8 of 141

9 SM5100B-D AT Command . Introduction 1 1.1 Scope of this document ® This document presents the AT Command Set for Sendtrue cellular engine SM5100B-D. 1.2 Correlative documents (1) SM5100B-D Datasheet (2) SM5100B-D HW Spec (3) SM5100B-D-EVB User’s Guide 1.3 Correlative standards This interface of this document refers to these document criterions below: [1] ETSI GSM 07.05: Digital cellular telecommunications system (Phase 2+); Use of Data Terminal Equipment - Data Circuit terminating Equipment (DTE - DCE) interface for Short Message Service (SMS) and Cell Broadcast Service (CBS) (GSM 07.05 version 7.0.1 Release 1998) [2] ETSI GSM 07.07: Digital cellular telecommunications system (Phase 2+); AT command set for GSM Mobile Equipment (ME) (GSM 07.07 version 7.5.0 Release 1998) [3] ITU-T Recommendation V.25 ter: Serial asynchronous automatic dialing and control [4] ETSI GSM 03.40: Digital cellular telecommunications system (Phase 2+); Technical realization of the Short Message Service (SMS); (GSM 03.40 version 7.4.0 Release 1998) [5] ETSI GSM 03.38: Digital cellular telecommunications system (Phase 2+); Alphabets and language-specific information (GSM 03.38 version 7.2.0 Release 1998) [6] ETSI GSM 04.80: Digital cellular telecommunications system (Phase 2+); Mobile radio interface layer 3 supplementary services specification; Formats and coding Shanghai Sendtrue Technologies Co.,Ltd Page 9 of 141

10 SM5100B-D AT Command (GSM 04.80 version 7.1.0 Release 1998) 1.4 Command format 1.4.1 The AT command format obeys the following principle ter AT and ends with . (Note: Quite 1) Every AT command starts with the charac few comands start with “+”) 2) The command line may have several AT commands, which are separated by semicolon as command delimiter. are refered to V.25ter. 3) Standard basic commands 4) GSM commands use syntax rules of the extended commands 5) Every extended command has a test command (trailing=?) to check the existence of the command and offer the type and range of its parameters. 6) The commands with parameters also have a read command to read the current values of parameters. 7) As write commands do not have paramete rs, therefore they do not have a read command. 8) Write commands (trailing=) are used to set parameters and accomplish corresponding functions. See figure below for the stru cture of AT command line: CMD1 CMD2=12 ; +CMD2=, , 15; +CMD2? ; +CMD2 = ? ; +CMD1 AT ⑤ ① ② ③ ④ ⑨ ⑥ ⑦ ⑧ Figure 1 : structure of AT command line Command line prefix : ① ② :Basic command(no prefix) : Subparameter ③ :Extended command(prefixed with +) ④ ⑤ :Extended commands are delimited with semicolon ⑥ :Subparameters may be omitted ⑦ :Read command for checking cu rrent subparameter values ⑧ :Test command for checking possible subparameter values ⑨ :Command line termination character 1.4.2 AT commands syntax SMSM5100B-D is a combination of and set implemented by The AT comm GSM07.05, GSM07.07, ITU-T V.25ter and the AT commands developed by Sendtrue. All these AT commands can be split into two categories syntactically: “basic” and “extended”. 1) Basic syntax ”is the These AT commands have the format of “ AT” , where “ Shanghai Sendtrue Technologies Co.,Ltd Page 10 of 141

11 SM5100B-D AT Command command, and is the end character. Example: ATZ 2) Extended syntax These commands can operate in several modes,as shown in the following table: category syntax example AT+=? Test Command AT+CMEE=? Read Command AT+? AT+CMEE? Write Command(with parameter) AT+=<...> AT+CMEE=0 Write Command(without parameter) AT+ AT+CGSN 1.5 Information response and result codes 1.5.1 AT command result codes 1) The response of every executed command starts and ends with and the ATQ1 commands (result code suppression). Except for the ATV0 DCE response format. 2) If command syntax is incorrect, an “ERROR” string will be returned. 3) If AT command syntax is correct but transmitted with wrong parameters, the +CME ERROR: or +CMS ERROR: stri ngs will be returned.(SMS Command) 。 4) If an AT command has been executed successfully , an “OK” string will be returned. 5) When receiving SMS, definite characters will be sent to terminal, refered to the following AT command introduction. returns. Refered to 6) You can set different result codes by AT+CME E=<...> when error message the AT command introduction refered to appendix[14]. Note: Related error code 1.6 Definitions and Abbreviations ACM Accumulated call meter Access Point Name APN ME short message storage BM Data Communication Equipment DCE Digital Signal Processing DSP Data Terminal Equipment DTE Dual Tone Multi Frequency DTMF Gateway GPRS Support Node GGSN General Packet Radio Service GPRS GSM Global System for Mobile Communications IMEI International Mob ile Equipment Identity IMSI International Mob ile Subscriber Identity MO Mobile Originated MT Mobile Terminated Shanghai Sendtrue Technologies Co.,Ltd Page 11 of 141

12 SM5100B-D AT Command Station MS Mobile MSISDN Mobile Station International ISDN Number PDP Packet Data Protocol PDU Protocol Data Unit PS Protocol Stack Shanghai Sendtrue Technologies Co.,Ltd Page 12 of 141

13 SM5100B-D AT Command 2. Overview of AT commands 2.1 Overview of general control commands description number command 1 AT Check the module communication state ATZ Set all current parameters to user defined profile 2 Set command ECHO mode ATE 3 ATS0 4 Set number or rings before automatically answering the call ATQ Set result code presentation code 5 ATV Set result code format code 6 Store current parameter to used defined profile 7 AT&W 8 AT+CMEE Report mobile equipment error AT+CFUN Set phone functionality 9 10 clock AT+CCLK Set TE-TA fixed local rate 11 AT+IPR 12 AT+CGSN Request product serial number identification 13 AT+CGMM Request model identification Request TA revision iden tification of software 14 AT+CGMR release identification manufacturer Request AT+CGMI 15 AT+CPAS Mobile equipment activity status 16 AT+CCID Show ICCID 17 Request the IMST AT+CIMI 18 Battery charge 19 AT+CBC 20 Stop the machine AT+CPOF Select TE character set AT+CSCS 21 22 AT+SAC Stop network searching and supplementary services ttery charge and set the Manage the process of ba AT+SBCM 23 parameters of battery charge 24 +SBCI Indicate the current status and voltage of the battery 25 AT+IFC Set TE-TA local data flow control 26 AT+CFGRI Indicate RI when using URC 27 AT+ARMSLEEP Set ARM sleep or not Set assert mode AT+ASSERTMODE 28 29 AT+AUTOPOWERON Set auto-poweron enable or not 30 AT+ADCM Read the voltage of ADC1 31 AT+SLOG Set output log enable or not Configure the interval for checking SIM card AT+ISC 32 Shanghai Sendtrue Technologies Co.,Ltd Page 13 of 141

14 SM5100B-D AT Command 2.2 ng s ervice commands Overview of networki description number command Operator selection AT+COPS 1 2 AT+CSQ Signal quality AT+CCED 3 Get the status of current service cell and nearby ones or report the RSSI of current cell automatically AT+CREG Network registration 4 Overview of call control commands 2.3 number command description 1 ATD Mobile originated call to specified number Answer a call 2 ATA ATH 3 Disconnect connection existing 4 AT+VTD Tone duration 5 AT+VTS DTMF and tone generation Configure the ECHO CANCELLATION function 6 AT+ECHO for voice calls Set the type of incoming calls, which is data, fax or AT+CICB 7 speech. 8 AT+CIND Indicator control 2.4 Overview of suppleme ntary service commands number command description Call forwarding number and conditions control 1 AT+CCFC AT+CCWA Call waiting 2 Call hold and multiparty 3 AT+CHLD AT+CLIP 4 Calling line identification presentation Calling line identification restriction AT+CLIR 5 Connected line identification presentation AT+COLP 6 AT+COLR 7 Get the status of connected line identification restriction Refers to segment 7.2.3 8 AT+CLCK Refers to segment 7.2.2 9 AT+CPWD Accumulated call meter(ACM) reset or query 10 AT+CACM 11 AT+CAMM Accumulated all meter maximum set(ACMmax) or query AT+CPUC Price per unit and currency table 12 13 AT+CLCC Give a list of all calls 14 AT+CUSD Supplementary service notifications Shanghai Sendtrue Technologies Co.,Ltd Page 14 of 141

15 SM5100B-D AT Command 15 Supplementary service notifications AT+CSSN Overview of security commands 2.5 number command description 1 AT+CPIN PIN authentication AT+CPWD Change password 2 Facility lock AT+CLCK 3 AT+XX 4 Get the remaining times of valid attempts for PIN and PUK 2.6 Overview of SMS commands number command description 1 Select message service AT+CSMS Store settings of +C SAS and +CSMP to EEPROM 2 AT+CSAS or SIM card specified by AT+CSCA and Restore the settings AT+CRES 3 AT+CSMP commands to EEPROM Show SMS text mode parameters 4 AT+CSDH 5 AT+CPMS Preferred SMS message storage SMS service center address 6 AT+CSCA Select SMS message format 7 AT+CMGF 8 AT+CMGL List SMS message from preferred store Read SMS message AT+CMGR 9 Send short message 10 AT+CMGS AT+CSMP Set SMS text mode parameters 11 12 AT+CMGW Write short message to memory 13 AT+CMSS Send short message from storage Delete short message 14 AT+CMGD Select Cell Broadcast Message Indication AT+CSCB 15 AT+CNMI 16 New short message indication 17 Indicate the MEM inde x location of received +CMTI message(Enabled by AT+CNMI) 18 +CMT Indicate the short message was sent to DTE directly after received +CBM 19 Indicate that the cell broadcast message was sent to DTE device after received 20 AT+SMSC Change the status of message stored in SIM card 21 AT+SUSS Set REC UNREAD status of these messages which remain unchanged Shanghai Sendtrue Technologies Co.,Ltd Page 15 of 141

16 SM5100B-D AT Command 2.7 Overview of phonebook commands description number command Select phonebook memory storage 1 AT+CPBS 2 AT+CPBR Read from phonebook AT+CPBF Search phonebook with a name string 3 AT+CPBW Write into phonebook 4 AT+CPBP Search the phonebook for an item with the same 5 phone number Make a forward or backward move in the 6 AT+CPBN phonebook AT+CNUM Read own numbers 7 8 AT+SDCP Delete all the calls Set/get and enable/disable the voice mail number AT+CSVM 9 2.8 Overview of STK commands number command description 1 AT+STSF Allow STK facilities to be activated, deactivated or configured Allow the user to identify the commands sent via AT+STIN 2 SIM card Get the information of a command sent from the 3 AT+STGI SIM Allow the application to select an item in the main 4 AT+STGR menu or to answer command Overview of GPRS commands 2.9 description number command Define PDP context AT+CGDCONT 1 AT+CGQREQ 2 Quality of service profile(requested) 3 AT+CGQMIN Quality of service profile(minimum acceptable) 4 Configure the PDP context parameters of PCO AT+CGPCO 5 AT+CGATT Attach or detach GPRS services AT+CGACT 6 PDP context activate or deactivate 7 AT+CGPADDR Show PDP address 8 AT+CGDATA Enter data state Automatic response to a network for PDP context AT+CGAUTO 9 activation 10 AT+CGANS Manual response to a network for PDP context activation Shanghai Sendtrue Technologies Co.,Ltd Page 16 of 141

17 SM5100B-D AT Command 11 Set the GPRS type of MT AT+CGCLASS AT+CGEREP GPRS event reporting 12 GPRS network registration status 13 AT+CGREG AT+CGSMS Select service for MO SMS messages 14 AT+CRC Decide whether shows the supplementary 15 information of incoming calls 16 AT+CR Decide whether to present that this CONNECT is GPRS Extend the error report 17 AT+CEER 18 Extension of ATD Built the connections between terminal devices and networks 19 Set the MS service type AT+SSST Attach or detach GPRS service AT+SATT 20 21 AT+SAUTOATT Allow MT to perform auto attach operation 22 AT+SGPRSDATA Specify the data length of GPRS data sent by MT 23 ATO Switch from command mode to data mode Switch from data mode or PPP online mode to 24 +++ command mode 2.10 Overview of TCP/IP commands description number command Config the configure para meters of data sent by AT+SDATACONF 1 AT commands based on GPRS Enable GPRS service 2 AT+SDATASTART 3 AT+SDATATSEND Send the data specified by user in transparent mode. Read the received data and display in transparent 4 AT+SDATATREAD mode. AT+SDATASEND 5 Send the character string data specified by user Send the character strings specified by customer 6 AT+SSTRSEND 7 AT+SDATAREAD Read the received data from the buffer. Configure the display format and the mode when AT+SDATARXMD 8 received data. 9 AT + S D ATA S TAT U S Require socket status 10 AT + T RT Set network data resend times after failing to send data 2.11 Overview of AUDIO commands number command description Configure the sound mode 1 AT+SSAM Config MIC and SPEAKER channels 2 AT+SPEAKER Shanghai Sendtrue Technologies Co.,Ltd Page 17 of 141

18 SM5100B-D AT Command 3 Mute the downlink voice AT + S D M U T AT+CMUT 4 Mute control Test ring of incoming calls 5 AT+CRMP AT+STONE 6 Play sound in a certain frequency 7 AT+VGR Tune the sound level of the speaker 8 AT+SDTMF Play a DTMF tone on the current speaker 9 AT+SCDM Select the specific ring melody Configure the ECHO CA NCELLATION function for 10 AT+ECHO voice calls 11 AT+SSAP Config the parameter of audio gain 12 AT + S T M F Store and delete the file in MIDI format 13 AT+SEQT Set the speaker equalizer type Configure the sound parameters in project mode 14 AT+SSEA 2.12 Overview of special commands number command description AT+SMUX Configure the multiplexing mode 1 2 AT+S32K Allow or forbid entering of sleep mode Set some status of a system 3 AT+SIND 4 AT+SBAND Select the frequency of module Manage files 5 AT+SMGF 6 AT+SMGD Manage directory 7 Require ME be sent in maximum power AT+SSMP Configure GPIO direction 8 AT+SSGF 9 AT+SSGS Set and query GPIO level Manage the NVITEM data through NVITEM id 10 AT+SNVM Shanghai Sendtrue Technologies Co.,Ltd Page 18 of 141

19 SM5100B-D AT Command 3. General control commands The General Control Commands are to accomplish some communication control. These commands are designed according to the ITUT-T (International Telecommunication Union, Telecommunication sector) V2.5ter document. l control commands 3.1 Overview of genera number command description AT Check the module communication state 1 2 Set all current parameters to user defined profile ATZ Set command ECHO mode 3 ATE 4 ATS0 Set number or rings before automatically answering the call Set result code presentation code ATQ 5 Set result code format code ATV 6 AT&W Store current parameter to used defined profile 7 AT+CMEE Report mobile equipment error 8 Set phone functionality 9 AT+CFUN 10 clock AT+CCLK Set TE-TA fixed local rate AT+IPR 11 Request product serial number identification 12 AT+CGSN 13 AT+CGMM Request model identification tification of software Request TA revision iden 14 AT+CGMR release Request manufacturer identification 15 AT+CGMI Mobile equipment activity status 16 AT+CPAS AT+CCID 17 Show ICCID AT+CIMI Request the IMST 18 19 AT+CBC Battery charge 20 AT+CPOF Stop the machine AT+CSCS Select TE character set 21 AT+SAC Stop network searching and supplementary 22 services 23 AT+SBCM Manage the process of ba ttery charge and set the parameters of battery charge Indicate the current status and voltage of the 24 +SBCI battery 25 AT+IFC Set TE-TA local data flow control Shanghai Sendtrue Technologies Co.,Ltd Page 19 of 141

20 SM5100B-D AT Command 26 Indicate RI when using URC AT+CFGRI AT+ARMSLEEP Set ARM sleep or not 27 Set assert mode AT+ASSERTMODE 28 29 AT+AUTOPOWERON Set auto-poweron enable or not 30 AT+ADCM Read the voltage of ADC1 31 Set output log enable or not AT+SLOG 32 AT+ISC Configure the interval for checking SIM card Query the SIM card type 33 AT+SSIMT 3.2 Detailed description of general control commands 3.2.1 AT AT: check the communication between the module/chip and any accessory Test Command None Return Read Command None Return Write Command AT Return OK Reference This command is used to check the communication between the module/chip and any accessory. Example 3.2.2 ATZ ATZ: restore the configuration profile Test Command None Return Read Command None Return Write Command ATZ Return OK Reference This command is used to restore the configuration profile. Any call is released. Example 3.2.3 ATE ATE: determine whether or not the DCE echoes characters received from the Shanghai Sendtrue Technologies Co.,Ltd Page 20 of 141

21 SM5100B-D AT Command DTE Test Command None Return Read Command None Return Write Command ATE Return OK Reference description 0 DCE returns no character to DTE(Default Settings) 1 DCE returns characters to DTE Example ATE1 OK 3.2.4 ATS0 ATS0: set the automatic answering feature of the DCE Test Command ATS0= ? Return S0: (0-255) OK Read Command ATS0? Return OK Write Command ATS0= Return OK Reference description Automatic answering is disabled 0 Enable automatic answering on the ring number specifier. 1~255 Example ATS0=3 OK 3.2.5 ATQ ATQ: determine whether the mobile e quipment sends result codes or not Test Command None Return Read Command None Return Write Command ATQ Return OK / No String Reference description DCE transmits result codes to DTE 0 Shanghai Sendtrue Technologies Co.,Ltd Page 21 of 141

22 SM5100B-D AT Command 1 Result codes are not transmitted to DTE Example ATQ0 OK 3.2.6 ATV ATV: set the DCE response format Test Command ATV= ? Return V(0,1) OK Read Command ATV ? Return 1 OK or: 0 0 Write Command ATV Return OK / none Reference description 0 Without head characters and without the use of numeric result codes With head characters and with the use of numeric 1 result codes Example ATV1 OK 3.2.7 AT&W AT&W: write the active configuratio n to non-volatile memory section Test Command None Return Read Command None Return Write Command AT&W Return OK Reference The list of parameters stored to non-volatile memory section by AT&W NUM Content AT Command (modify respective values) 1 Flag of CLIP AT+CLIP 2 Flag of COLP AT+COLP 3 mode of SMS AT+CMGF AT+SMUX 4 Flag of mixed modes Shanghai Sendtrue Technologies Co.,Ltd Page 22 of 141

23 SM5100B-D AT Command 5 AT+SBCM Flag of charge states Flag of echo character 6 ATE 7 Mode of CREG AT+CREG Flag of SIDE TONE 8 AT+SIDET 9 Sequence num of incoming music AT+SCDM 10 Format of returned error AT+CMEE Example 3.2.8 AT+CMEE AT+CMEE: disable or enable the use of result code +CME ERROR Test Command AT+CMEE= ? Return +CMEE: (0-2) OK Read Command AT+CMEE? Return +CMEE: OK Write Command AT+CMEE= Return OK Reference description Deactivate +CME ERROR Returning code 0 1 Activate +CME ERROR Returning code and use numeric error values Activate +CME ERROR Returning code and use verbose error 2 description Example 3.2.9 AT+CFUN AT+CFUN: activate or deacti vate PS, or reboot module Test Command AT+CFUN=? Return +CFUN: (0-1),(0-1) OK Read Command AT+CFUN? Return +CFUN: OK Write Command AT+CFUN=,[] Return OK Reference Value1 description 0 Deactivate PS 1 Activate PS Shanghai Sendtrue Technologies Co.,Ltd Page 23 of 141

24 SM5100B-D AT Command Value2 description Do not reboot module 0 Reboot module 1 Notes: when reboot module,value1 will be ignored. Example Reboot module: , 1 AT+CFUN=1 OK Activate PS: AT+CFUN=1 OK 3.2.10 AT+CCLK AT+CCLK: set or get the current date and time Test Command None Return Read Command AT+CCLK ? Return +CCLK: OK Write Command AT+CCLK= Return OK / +CME ERROR Reference : “yy/mm/dd, hh:mm:ss”, total length is 17,users must input data according to this format,or it will return ERROR. Example : Set current time AT+CCLK=”07/01/29,13:27:10” OK 3.2.11 AT+IPR AT+IPR: set or get the baudrate of DCE Test Command AT+IPR= ? Return +IPR: {1200,2400,4800,9600,19200,38400,57600,115200,230400,460800} OK Read Command AT+IPR? Return +IPR: OK Write Command AT+IPR= Return OK / ERROR Reference After setting the baudrate, respective tools, such as hyperterminal, must be modified according to it, or normal communication could not be performed. Default baud rate is 115200 Shanghai Sendtrue Technologies Co.,Ltd Page 24 of 141

25 SM5100B-D AT Command Example 3.2.12 AT+CGSN AT+CGSN: get the IMEI of DCE Test Command ? AT+CGSN= Return +CGSN: OK Read Command None Return Write Command AT+CGSN Return OK Reference Example AT+CGSN 332190700972650 OK 3.2.13 AT+CGMM AT+CGMM: get the identification of DCE module Test Command AT+CGMM=? Return +CGMM: OK Read Command None Return Write Command AT+CGMM Return OK Reference Example AT+CGMM V1.0.1-B7 OK 3.2.14 AT+CGMR AT+CGMR: get DCE software version Test Command AT+CGMR=? Return +CGMR: OK Shanghai Sendtrue Technologies Co.,Ltd Page 25 of 141

26 SM5100B-D AT Command Read Command None Return Write Command AT+CGMR Return OK Reference Example AT+CGMR SW version:RIYUE_R1.8.7001.BL0005.BUILD0017 OK 3.2.15 AT+CGMI AT+CGMI: get the identifica tion of DCE manufacturer Test Command ? AT+CGMI= Return +CGMI: OK Read Command None Return Write Command AT+CGMI Return OK Reference Example AT+CGMI Sendtrue Technology Co.,Ltd OK 3.2.16 AT+CPAS AT+CPAS: get the status of DCE Test Command AT+CPAS= ? Return +CPAS: OK Read Command None Return Write Command AT+CPAS Return +CPAS: OK Reference code description 0 READY 3 RINGING 4 Call in progress Shanghai Sendtrue Technologies Co.,Ltd Page 26 of 141

27 SM5100B-D AT Command Example 3.2.17 AT+CCID AT+CCID: read the EF-ICCID file on the SIM card Test Command ? AT+CCID= Return +CCID : OK Read Command AT+CCID ? Return +CCID: ”SIM number” OK Write Command AT+CCID Return +CCID: ”SIM number” Reference Example AT+CCID? +CCID: “89860106120217281047” OK 3.2.18 AT+CIMI AT+CIMI: get IMSI Test Command AT+CIMI= ? Return +CIMI: OK Read Command None Return Write Command AT+CIMI Return +CIMI: OK Reference Example AT+CIMI +CIMI: “460012222952704” OK 3.2.19 AT+CBC AT+CBC: indicate the battery connectio n status and the battery voltage Test Command AT+CBC= ? Return +CBC: (0-2),(0-4200) OK Shanghai Sendtrue Technologies Co.,Ltd Page 27 of 141

28 SM5100B-D AT Command Read Command None Return Write Command AT+CBC Return +CBC: , OK Reference bcs description 0 ME powered by battery(no charger connected) 1 ME has a battery connected, but it is powered by the charger 2 ME does not have a battery connected(not support in current) :current battery voltage. Example 3.2.20 AT+CPOF AT+CPOF: stop the machine Test Command AT+CPOF= ? Return +CPOF: OK Read Command None Return Write Command AT+CPOF Return OK Reference Example 3.2.21 AT+CSCS AT+CSCS: tell DCE the set of characters which will be used next Test Command ? AT+CSCS= Return +CSCS: (“GSM”,”IRA”) OK Read Command AT+CSCS? Return +CSCS: OK Write Command AT+CSCS= Return OK Reference chset description “GSM” GSM default character set “IRA” International Reference Ch aracter set(ITU-T T.50) Note: At present, this function is not supported, the default value is “GSM”. Example Shanghai Sendtrue Technologies Co.,Ltd Page 28 of 141

29 SM5100B-D AT Command 3.2.22 AT+SAC AT+SAC: stop the network searching and supplementary services Test Command ? AT+SAC= Return OK Read Command AT+SAC ? Return OK ( system is not searching the network or doing additional services ) or ERROR system is searching the network or doing additional services ) ( Write Command AT+SAC Return OK Reference Query command can find whether to search the network and do the supplementary services Example 3.2.23 AT+SBCM AT+SBCM: manage the process of battery charge and set the parameters of battery charge Test Command ? AT+SBCM= Return +SBCM: (0-3),(0-1),(4000-5000),(2800-3800),(10-10000),(10-10000),(0-255) OK Read Command None Return Write Command ],[] AT+SBCM=[,[][,[ ,],[],[]]] Return OK / ERROR Reference mode description 0 Stop battery charging 1 Start battery charging 2 Get the current battery voltage 3 Set battery charge parameters Note: when equals 0 or 1, only parameter is valid, when equals 2, other parameters are invalid. ChargeInd description 0 Cancel +SBCM hint code 1 Activate +SBCM code BattLevelMax The maximum level of battery voltage. When reached, b attery will stop charging. The allowed range is (4000-5000),default 4200mV. Shanghai Sendtrue Technologies Co.,Ltd Page 29 of 141

30 SM5100B-D AT Command BattLevelMin The minimum level of battery voltage. When reached, DCE will be shut off. The allowed range is (2800-3800),default 3300mV Time space between pluses in charge: TPulseInCharge range(100-10000), default value: 100ms TPulseOutCharge Send +SBCM time space: allowed value range (100-10000),default value:(5000ms) Battery Interior Resistance: allowed value range BattIntRes (0-255m Ω ), default value: 0 m Ω Example 3.2.24 +SBCI +SBCI: indicate the current status and voltage of the battery Test Command None Return Read Command None Return Write Command None Return Reference +SBCI: [,] status description Battery Voltage reached minimum 0 Battery Voltage reached maximum 1 2 Battery in charging Battery out of charging 3 Level: current voltage of battery Example 3.2.25 AT+IFC AT+IFC: Set TE-TA local data flow control Test Command AT+ IFC =? Return +IFC: (0-2),(0-2) OK Read Command AT+IFC? Return +IFC:, OK write Command AT+IFC= [,] Return OK / ERROR Reference :integer;specifies the method will be used by TE at receive of data from TA Shanghai Sendtrue Technologies Co.,Ltd Page 30 of 141

31 SM5100B-D AT Command :integer;specifies the method will be used by TA at receive of data form TE / description 0 None 1 Software flow control Hardware flow co 2 ntrol(CTS/RTS) Note: Equality between and is supported currently. Example 3.2.26 AT+CFGRI AT+CFGRI: Indicate RI when using URC Read AT+ CFGRI? Command +CFGRI: Return OK Write AT+CFGRI= Command OK / ERROR Return Reference description 0 Off 1 On Example 3.2.27 AT+ARMSLEEP AT+ ARMSLEEP: Set ARM sleep or not Test Command AT+ ARMSLEEP =? Return ARMSLEEP + :(0-1) OK Read Command AT+ ARMSLEEP ? Return + ARMSLEEP : OK write Command AT+ ARMSLEEP = Return OK / ERROR Reference description 0 Off 1 On Example Shanghai Sendtrue Technologies Co.,Ltd Page 31 of 141

32 SM5100B-D AT Command 3.2.28 AT+ASSERTMODE AT+ ASSERTMODE: Set assert mode Test Command ASSERTMODE =? AT+ Return + ASSERTMODE :(0-1) OK Read Command ASSERTMODE ? AT+ Return + ASSERTMODE : OK write Command AT+ ASSERTMODE = Return OK / ERROR Reference description 0 Off 1 On Example 3.2.29 AT+AUTOPOWERON AT+ AUTOPOWERON: Set auto-poweron enable or not Test Command AT+ AUTOPOWERON =? Return + AUTOPOWERON :(0-1) OK Read Command AUTOPOWERON ? AT+ Return + AUTOPOWERON : OK write Command AT+ AUTOPOWERON = Return OK / ERROR Reference description 0 Off 1 On Example 3.2.30 AT+ADCM AT+ ADCM: Read the voltage of ADC1 Execution AT+ ADCM Command Return + ADCM : OK Reference :the voltage of ADC1 with the range 0-5000 Shanghai Sendtrue Technologies Co.,Ltd Page 32 of 141

33 SM5100B-D AT Command Example 3.3.31 AT+SLOG AT+ SLOG: Set output log enable or not Test Command AT+ SLOG =? Return SLOG :(0-1) + OK Read Command AT+ SLOG ? Return + SLOG : OK write Command AT+ SLOG = Return OK / ERROR Reference description 0 Off 1 On Example 3.2.32 AT+ISC al for checking SIM card AT+ISC:Configure the interv Test Command =? ISC AT+ Return + SLOG :(0,5-60) OK Read Command ISC ? AT+ Return + ISC : OK write Command = ISC AT+ Return OK / ERROR Reference description 0 Disable checking SIM card 5-60(s) The range of interval Example 3.2.33 AT+SSIMT AT+SSIMT: Query the type of SIM card Test Command AT+ SSIMT =? Return :”” + SSIMT Shanghai Sendtrue Technologies Co.,Ltd Page 33 of 141

34 SM5100B-D AT Command OK Execution SSIMT AT+ Command Return + :, SSIMT OK Reference :current card status. description 0 Success 1 Not ready 2 No SIM card 3 Failed :current card type. < card_type > description 0 SIM card 1 UM card 2 Double model card 3 Invalid card Example Shanghai Sendtrue Technologies Co.,Ltd Page 34 of 141

35 SM5100B-D AT Command 4. Networking service commands services, such as Networking service commands are related to various network e information about the network and so registering mobile communication, getting th on. king service commands 4.1 Overview of networ description number command 1 AT+COPS Operator selection 2 AT+CSQ Signal quality 3 Get the status of current service cell and nearby AT+CCED ones or report the RSSI of current cell automatically Network registration AT+CREG 4 4.2 Detailed description of networking service commands 4.2.1 AT+COPS AT+COPS: select and register mobile communication network Test Command AT+COPS= ? Return g alphanumeric,short phanumeric +COPS:[list of supported(,lon s, numeric) s] OK Read Command AT+COPS? Return +COPS: [,,] OK Write Command AT+COPS=,[[,]] Return OK / +CME ERROR: Reference mode description 0 Select automatically(oper is ignore) 1 Select manually(oper should be present) 2 Deregister the network 3 Only used in setting mode 4 Manually/automatically(if manual selection fails, select automatically ) format description 0 Short format alphanumeric Num 2 Shanghai Sendtrue Technologies Co.,Ltd Page 35 of 141

36 SM5100B-D AT Command description stat Unknown 0 1 Available 2 Currently used 3 Forbidden : operands(MCC/MNC numeric codes which is used in network selection, such as 46000 is China Mobile Communication, 46001 is China Unicommunication )。 Notes: while commands are being set, if mode=3, in setting mode, this option is not available, because only digital mode is supported. And when mode=2, deregisters network. This function is not supported, for AT+CFUN command can do. If these above options are ex ecuted, ERROR will be returned. Example AT+COPS= ? +COPS: (1,"CMCC",,"46000"),(3 ,"CUCC",,"46001"),,(0-4),(0,2) OK AT+COPS? +COPS:1,2,46000 OK Select network automatically: AT+COPS=0 OK Search network manually: AT+COPS=1,2,46000 OK 4.2.2 AT+CSQ AT+CSQ: get the signal strength in dication of current service cell Test Command AT+CSQ= ? Return ) +CSQ: (0-31),(0-7,99 OK Read Command None Return Write Command AT+CSQ Return +CSQ: , OK Shanghai Sendtrue Technologies Co.,Ltd Page 36 of 141

37 SM5100B-D AT Command Reference description rssi -110db 0 .. 1-30 -48db 31 ber description 0-7 RXQUAL Value ( GSM ) 99 ineffective Example AT+CSQ +CSQ: 23,99 OK 4.2.3 AT+CCED AT+CCED: get the status of current serv ice cell and nearby ones or report the RSSI of current cell automatically Test Command AT+CCED=? Return +CCED: (0-2),(1,2,4,8) OK Read Command None Return Write Command AT+CCED=[,] Return (1) get the status from the current cell and nearby ones: +CCED: ,,,,,,, OK (2) get the status of current service cell but no network is available +CCED: OK (3) get the timing advance +CCED: OK (4) get the RSSI of current cell: +CSQ: , OK Reference description mode 0 One shot requested 1 Automatical shots requested 2 Stop automatic shots Requested dump description 1 Current service cell 2 Nearby cell Timing advance 4 Shanghai Sendtrue Technologies Co.,Ltd Page 37 of 141

38 SM5100B-D AT Command 8 RSSI value of current cell Note: When get the status of current service cell and nearby ones, requested dump value is 1,2,4 When report the RSSI of current cell, requested dump value is 8 Mobile Country Code Mcc Mnc Mobile Network Code Lac Location Area Code Cell id Id of cell Bsic Flag of main cell Arfcn Channel of BCCH Rxlev Strength indication of receiving signal(0-63) Rxqual Quality of receiving signal(0-7, 99 is an invalid value) Example Get the status of cu rrent service cell: AT+CCED=0,1 +CCED: 460,01,4184,50861,27,109,31,99 OK Get the status of nearby cells: AT+CCED=0,2 +CCED:460,01,4184,33132,20,727,21,460,01,4198,36183,25,723,21,460,01,41 84,56671,24,120,17,460,01,4184,50862,29,124,22,460,01,4184,33131,18,722,1 9 OK Get the timing advance: AT+CCED=0, 4 +CCED: 0 OK Get the RSSI value of current service cell: AT+CCED=0, 8 +CCED: 30, 99 OK Report the RSSI value automatically: AT+CCED=1, 8 OK +CSQ: 30, 99 +CSQ: 30, 99 ... +CSQ: 30, 99 Stop report automatically: Shanghai Sendtrue Technologies Co.,Ltd Page 38 of 141

39 SM5100B-D AT Command AT+CCED=0, 8 OK 4.2.4 AT+CREG AT+CREG: set the state of automatic network report Test Command ? AT+CREG= Return +CREG: (0,1,2) OK Read Command AT+CREG? Return +CREG: , OK Write Command AT+CREG= Return OK / ERROR Reference mode description 0 Deactivate the report of network registration report(default value) 1 Activate network registration report and return +CREG: 2 Activate network registration report and location status report ,return +CREG: ,, mode description No registered network, ME does not search new network 0 Register local network successfully 1 2 No registered network, ME is searching new network 3 Network registration is denied 4 unknown 5 Register roam network successfully : location id of cell : cell id Example AT+CREG=1 OK +CREG: 5 AT+CREG=2 OK +CREG: 5, 0x1830, 0x3091 AT+CREG=0 OK Shanghai Sendtrue Technologies Co.,Ltd Page 39 of 141

40 SM5100B-D AT Command 5. Call control commands le Originated (MO) calls and Mobile Call control commands are related to Mobi Terminated (MT) calls, such as calling, answering, volume setting and so on. 5.1 Overview of call control commands number command description ATD 1 Mobile originated call to specified number 2 ATA Answer a call 3 ATH Disconnect existing connection 4 Tone duration AT+VTD DTMF and tone generation AT+VTS 5 6 AT+CICB Set the type of incoming calls, which is data, fax or speech. control Indicator 7 AT+CIND 5.2 Detailed description of call control commands 5.2.1 ATD ATD: call remote user Test Command None Return Read Command None Return Write Command ATD Return OK(call connection succeeded) NO CARRIER(call connection failed or released by remote user) ERROR (error occur) Reference : {0-9,*,#,+,a,b,c}, the maximum length is 40,if dialing string end with “#”,then the call number will be treat as a emergency call number. If the AT+SIND is used to set bits related to calling, when ATD is used, ME reports respective messages. Note: At present, call from phonebook is not supported. Example Call 10086: ATD10086 +SIND: 5,1 +SIND:2 +SIND:9 Shanghai Sendtrue Technologies Co.,Ltd Page 40 of 141

41 SM5100B-D AT Command OK Supplementary service: ATD**61*00431234*11*5# OK Emergency call: ATD911,# +SIND:5,1 +SIND:2 +SIND:9 OK 5.2.2 ATA ATA: answer calls from remote users Test Command None Return Read Command None Return Write Command ATA Return OK Reference to answer the incoming calls from RING(incoming call), use this command remote users. Example 5.2.3 ATH ATH: hang up all(one or several )connecting or connected calls Test Command None Return Read Command None Return Write Command ATH Return OK Reference Example 5.2.4 AT+VTD when DTMF is sent over the GSM AT+VTD: define DTMF tone duration Shanghai Sendtrue Technologies Co.,Ltd Page 41 of 141

42 SM5100B-D AT Command network Test Command AT+VTD=? Return +VTD: (0-255) OK Read Command ? AT+VTD Return +VTD: OK Write Command AT+VTD= Return OK Reference : (0-255) n*100ms Example 5.2.5 AT+VTS AT+VTS: transmit DTMF after a successful call connection Test Command AT+VTS= ? Return +VTS: (0-9,*,#,A,B,C,D) OK Read Command None Return Write Command AT+VTS=[,] Return OK / +CME ERROR: Reference description start Stop DTMF 0 1 Start DTMF Tone: {0-9,*,#,A,B,C,D} Note: when using = 0 to send a DTMF, users should use =0 to stop DTMF operation. In this way, only one DTMF char could be sent in one times. Example AT+VTS=2 OK AT+VTS=6,1 OK AT+VTS=6,0 OK 5.2.6AT+CICB AT+CICB: set the type of incoming calls, which is data, fax or speech Test Command AT+CICB= ? Shanghai Sendtrue Technologies Co.,Ltd Page 42 of 141

43 SM5100B-D AT Command Return +CICB: (0-2) OK Read Command AT+CICB? Return +CICB: 2 OK Write Command AT+CICB= Return OK Reference Value description 0 Data 1 Fax 2 Speech Example 5.2.7 AT+CIND AT+CIND: indicate voltage of battery, st rength of signal, availability of network, stillness, whether receive short messages, ex istence of a call, roam status and full status of SMS Test Command AT+CIND= ? Return +CIND: (0-5),(0-31),(0-1) , (0-1), (0-1), (0-1), (0-1), (0-1), (0-1) OK Read Command AT+CIND? Return +CIND: , , , , , , , OK Write Command None Return Reference description battery Voltage of battery signal Strength of signal (0-31) service Availability of networ k (0-1) (value=1 means registered to network) Stillness (0-1) (1=mute) sounder message Whether receive short messages (0-1) call Existence of a call (0-1) roam Net status (0-1) (1=roam status) smsfull Short message memory storage has become full(1), or memory locations are available(0) Example Shanghai Sendtrue Technologies Co.,Ltd Page 43 of 141

44 SM5100B-D AT Command 6. Supplementary service commands d to the services offered by the GSM Supplementay service commands are relate network, such as call forwarding, call waiting and so on. 6.1 Overview of supplementary service commands number command description AT+CCFC 1 Call forwarding number and conditions control 2 AT+CCWA Call waiting 3 AT+CHLD Call hold and multiparty 4 AT+CLIP Calling line identification presentation Calling line identification restriction 5 AT+CLIR 6 AT+COLP Connected line identification presentation 7 AT+COLR Get the status of connected line identification restriction Refers to segment 7.2.3 AT+CLCK 8 Refers to segment 7.2.2 9 AT+CPWD AT+CACM 10 Accumulated call meter(ACM) reset or query 11 AT+CAMM Accumulated all meter maximum set(ACMmax) or query Price per unit and currency table 12 AT+CPUC AT+CLCC Give a list of all calls 13 Supplementary service notifications 14 AT+CUSD Supplementary service notifications 15 AT+CSSN 6.2 Detailed description of supplementary service commands 6.2.1 AT+CCFC AT+CCFC: control call forwar ding supplementary service Test Command AT+CCFC= ? Return +CCFC: (0-5),(0-4),(128,129,145,161),(5-30) OK Read Command None Return Write Command AT+CCFC=,, ,,

45 SM5100B-D AT Command 1 Mobile busy No reply 2 Not reachable 3 4 All call forwarding All conditional call forwarding 5 mode description 0 Deactivation 1 Activation 2 Query 3 Registration 4 Erasure type description 128 Unknown number type 129 ISDN number type(default) 145 International ISDN 161 National ISDN Number: forwarding number(numeric character) Time: time to wait (5-30) in seconds before call is forwarded. Example , AT+CCFC=3 , 3 , “02154452248” 129 OK 129 , , “02154452248” AT+CCFC=3 1 , OK AT+CCFC=3 , 2 +CCFC: 1 , 0 , “+862154452248” , 145 OK 6.2.2 AT+CCWA AT+CCWA: control the waiting supplementary service Test Command AT+CCWA=? Return +CCWA: (0-1),(0 -2),(1,2,4,128) OK Read Command AT+CCWA? Return +CCWA: OK Write Command AT+CCWA=[,[,]] Return OK or +CCWA: , (mode==2) Shanghai Sendtrue Technologies Co.,Ltd Page 45 of 141

46 SM5100B-D AT Command OK Reference n description 0 Disable 1 Enable mode description 0 Disable 1 Enable 2 Query status class description 1 Voice service 2 Data service 4 Fax service (Currently,it is not supported) 128 All service Example 6.2.3 AT+CHLD AT+CHLD: manage supplementary services related with call, such as call hold and multiparty conversation Test Command AT+CHLD= ? Return +CHLD: (0-3,11-17,21-27) OK Read Command None Return Write Command AT+CHLD= Return OK Reference n description 0 Release all held calls or set User Determined User Busy(UDUB) for a waiting call 1 Release all active calls and accepts the other(hold or waiting) call 1x Release a call 2 Hold all active calls and the waiting calls, activate all held calls 2x Disconnect a call from the conversation 3 Add an held call to the conversation Example 6.2.4 AT+CLIP AT+CLIP: set and query the calling line identification presentation service Test Command AT+CLIP= ? Shanghai Sendtrue Technologies Co.,Ltd Page 46 of 141

47 SM5100B-D AT Command Return +CLIP: (0,1) OK Read Command AT+CLIP? Return +CLIP: , OK or ERROR Write Command AT+CLIP= Return OK / ERROR Reference n description 0 Disable +CLIP 1 Enable +CLIP m description 0 CLIP not provisioned 1 CLIP provisioned 2 Unknown Example 6.2.5 AT+CLIR AT+CLIR: allow the control of calling line identification restriction supplementary service Test Command AT+CLIR=? Return +CLIR: (0,1) OK Read Command AT+CLIR ? Return +CLIR: , OK or ERROR Write Command AT+CLIR= Return OK / ERROR Reference n description 0 Disable CLIR 1 Enable CLIR m description 0 CLIR not provisioned 1 CLIR provisioned in permanent mode 2 Unknown(e.g. no network) 3 CLIR temporary mode presentation restricted CLIR temporary mode presentation allowed 4 Shanghai Sendtrue Technologies Co.,Ltd Page 47 of 141

48 SM5100B-D AT Command Note: At present, write command is not supported by network Example 6.2.6 AT+COLP AT+COLP: allow control of connected line identification presentation supplementary service Test Command AT+COLP=? Return +COLP: (0,1) OK Read Command AT+COLP? Return +COLP: , OK or ERROR Write Command AT+COLP= Return OK / ERROR Reference n description 0 Deactive active 1 m description COLP not provisioned 0 COLP provisioned 1 Unknown(no network) 2 Example 6.2.7 AT+COLR AT+COLR: get the status of connected line identification restriction Test Command AT+COLR=? Return +COLR: OK Read Command AT+COLR? Return +COLR: 0, OK or ERROR Write Command None Return Shanghai Sendtrue Technologies Co.,Ltd Page 48 of 141

49 SM5100B-D AT Command Reference description m COLR not provisioned 0 1 COLR provisioned 2 Unknown(no network) Note: Currently, write command is not supported by network. Example 6.2.8 AT+CLCK This command refers to segment 7.2.3 6.2.9 AT+CPWD This command refers to segment 7.2.2 6.2.10 AT+CACM AT+CACM: reset the accumulated call meter value in SIM card Test Command AT+CACM=? Return +CACM: OK Read Command AT+CACM? Return +CACM: OK Write Command AT+CACM= Return OK / ERROR Reference ACM: accumulated call meter value Example 6.2.11 AT+CAMM AT+CAMM: set the maximum of accumulated call meter Test Command AT+CAMM=? Return +CAMM: (0-16777215) OK Read Command AT+CAMM? Return +CAMM: OK Write Command AT+CAMM=, Return OK / +CME ERROR: 16 Reference When ACM reaches ACMmax, calls are prohibited. Shanghai Sendtrue Technologies Co.,Ltd Page 49 of 141

50 SM5100B-D AT Command Example 6.2.12 AT+CPUC AT+CPUC: set the currency price per unit charged through calls Test Command None Return Read Command AT+CPUC? Return +CPUC: ””,”” OK Write Command AT+CPUC=””,””, Return OK / +CME ERROR: Reference Example 6.2.13 AT+CLCC AT+CLCC: give a list of all calls Test Command AT+CLCC=? Return +CLCC: OK Read Command None Return Write Command AT+CLCC Return +CLCC (if no current calls are available) +CLCC: ,

,,,, Reference : call id : MO/MT telephone number dir description 0 Mobile originated call(MO) 1 Mobile terminated call(MT) stat description 0 Activate 1 Hold 2 Dialing(MO) 3 Alerting(MO) 4 Incoming(MT) 5 Waiting(MT) mode description Speech(call) 1 Shanghai Sendtrue Technologies Co.,Ltd Page 50 of 141

51 SM5100B-D AT Command 2 Data(all services) Fax 4 Unknown 9 mpty description 0 Call is not one of multiparty call parties 1 Call is one of multiparty call parties Example ATD02154452248 +SIND: 5,1 +SIND: 2 AT+CLCC +CLCC:1,0,3,1,0,”02154452248” 6.2.14 AT+CUSD AT+CUSD: request users to enter seque nces of numerical string(such as “*188”), in order to get the servi ces provided by network Test Command AT+CUSD=? Return +CUSD: (0-2),, OK Read Command None Return Write Command AT+CUSD=[,[]] Return OK / ERROR Reference The network may reply a string, for display only, or for display plus request for the next sequence. This command is used to: 1 、 enable or disable the indication presentation(when an incoming USSD is received) 、 send and receive USSD strings 2 set command parameter: n description 0 Disable the indication presentation 1 ion presentation Enable the indicat 2 Cancel USSD service In case of enable indication presentation, it should be indicated with: +CUSD:[,,] m description 0 No further user action required 1 Further user action required USSD terminated by network 2 Shanghai Sendtrue Technologies Co.,Ltd Page 51 of 141

52 SM5100B-D AT Command 4 Operation not supported : text : text format(such as UCS2) Sended or received USSD format: AT+CUSD=[,[,]] Note: Users should initiate USSD se rvices,AT+CUSD=1,”*188#”,etc. Then network will response related information +CUSD: ...Users could select corresponding services to communication with network. Finally, users could use AT+CUSD=2 or AT+SAC to stop present USSD service (Former USSD service must be stopped, before initiating new USSD service.) Example 6.2.15 AT+CSSN AT+CSSN: provide the control of s upplementary service notification presentation Test Command AT+CSSN=? Return +CSSN: (0,1)(0,1) OK Read Command AT+CSSN? Return +CSSN: , Write Command AT+CSSN=, Return OK / ERROR Reference and a call is being originated, a supplementary service When =1 notification is sent. +CSSI: : n description Enable 0 Disable 1 When =1 and a call is being received, corresponding supplementary service notification is sent. : m description 0 Enable 1 Disable code1 description 0 Unconditional forwarding activated 1 Some conditional forwarding activated 2 Call has been forwarded 3 Call has been put on hold 4 Closed user groups with restricted access(CUG) 5 Outgoing calls are barred 6 Incoming calls are barred CLIR rejected 7 Shanghai Sendtrue Technologies Co.,Ltd Page 52 of 141

53 SM5100B-D AT Command description Code2 0 Belong to call forwarding(MT) 1 Belong to closed user group call(CUG) 2 Call has been held 3 Call has been retrieved 4 Multiparty call entered 5 Call on held has been released 7 Call is being connected(alerting) with other remote party in multiparty conversation 8 Call has been connected with other remote party in multiparty conversation Example Shanghai Sendtrue Technologies Co.,Ltd Page 53 of 141

54 SM5100B-D AT Command 7. Security commands ication to determine various security Security commands allow the external appl ting PIN, locking or unl ocking or negotiating related settings, such as modifying or set the facilities between mobile and network service provider. 7.1 Overview of security commands description number command 1 AT+CPIN PIN authentication 2 AT+CPWD Change password 3 Facility lock AT+CLCK Get the remaining times of valid attempts for PIN 4 AT+XX and PUK 7.2 Detailed description of security commands 7.2.1 AT+CPIN AT+CPIN: input or modify the PIN Test Command AT+CPIN=? Return +CPIN: OK Read Command AT+CPIN? Return +CPIN: OK Write Command PIN=, AT+CPIN= / AT+C Return OK / +CME ERROR: Reference pin, new pin length is 4-8 digits; puk length is 8 digits code description READY PIN is not required SIM PIN Enter PIN SIM PUK Enter PUK while ME is waiting for SIM SIM PIN2 Enter PIN2 while ME is waiting for SIM2 SIM PUK2 Enter PUK2 while ME is waiting for SIM BLOCK locked Example AT+CPIN? +CPIN: SIM PUK AT+CPIN=12345678,1111 //PIN1 is modified to”1111” OK Shanghai Sendtrue Technologies Co.,Ltd Page 54 of 141

55 SM5100B-D AT Command AT+CPIN? +CPIN: SIM PIN AT+CPIN=1111 OK AT+CPIN? +CPIN: READY 7.2.2 AT+CPWD AT+CPWD: modify password Test Command AT+CPWD=? Return +CPWD:(“PS”,8),(“SC”,8),(“AO”,4),(“O I”,4),(“OX”,4),(“AI ”,4),(“IR”,4),(“AB ”,4),(“AG”,4),(“AC”,4),(“P2”,8),(“FD”, 8),(“PN”,8),(“PU”,8),(“PP”,8),(“PC”,8) OK Read Command None Return Write Command AT+CPWD=,, Return OK / +CME ERROR:16 Reference fac description PS SIM is locked, password is 8 digits; SC PIN enabled/disabled; AO Bar all outgoing calls Bar all outgoing international calls OI Bar all outgoing international calls, expect to home country OX AI Bar all incoming calls IR Bar all calls. When roaming outside home country AB All barring service AG All outgoing barring service AC All incoming barring service PN Network lock with 8 digits password PU Network subset lock with 8 digits password PP Service provider lock with 8 digits password PC Corporate lock with 8 digits password FD SIM fixed FDN Dialing lock, PIN2 is required as a password P2 PIN2 lock Example AT+CPWD=”AI”,1234,1111 OK Shanghai Sendtrue Technologies Co.,Ltd Page 55 of 141

56 SM5100B-D AT Command 7.2.3 AT+CLCK AT+CLCK: lock,unlock,and negotiate the facilities between mobile and network Test Command AT+CLCK=? Return +CLCK: (list all supporteds) Read Command AT+CLCK? Return +CLCK: (list all supporteds, list correspondings) Write AT+CLCK=,[,[,]] Command Return OK or +CME ERROR: +CLCK: [,](when mode=2, it’s in inquiry status) Reference description fac PS SIM is locked, password is 8 digits; SC PIN enabled/disabled; AO Bar all outgoing calls OI Bar all outgoing international calls OX Bar all outgoing international calls, expect to home country AI Bar all incoming calls IR Bar all calls. When roaming outside home country AB All barring service AG All outgoing barring service AC All incoming barring service Network lock with 8 digits password PN Network subset lock with 8 digits password PU PP Service provider lock with 8 digits password Corporate lock with 8 digits password PC SIM fixed FDN Dialing lock, PIN2 is required as a password FD P2 PIN2 lock Note: Currently, ”PS”,”PN”,”PU”,”PP” ,”PC”,”FD” is not supported mode description 0 Unlock this facility 1 Lock this facility 2 Query status class description 1 Voice(telephony) 2 Data(to all beared services) 4 Fax 8 Short messages service All classes, default value 7 Shanghai Sendtrue Technologies Co.,Ltd Page 56 of 141

57 SM5100B-D AT Command description status Deactivate 0 1 Activate : (0-9)characters, the maximum length determined by AT+CPWD=? command. Example AT+CLCK=”AI”,1,1234 OK AT+CLCK=”AI”,2 +CLCK:1,0 7.2.4 AT+XX AT+XX: get the remaining times of valid attempts for PIN and PUK Test Command None Return Read Command None Return Write Command AT+XX= Return +XX: OK Reference description value 0 PIN1 1 PIN2 2 PUK1 3 PUK2 Example AT+XX=0 +XX: 3 OK Shanghai Sendtrue Technologies Co.,Ltd Page 57 of 141

58 SM5100B-D AT Command 8. SMS commands al application to use the short message SMS commands are related to allow extern service, such as sending messages, receiving messages, deleting messages and so on. 8.1 Overview of SMS commands number command description 1 AT+CSMS Select message service 2 Store settings of +C SAS and +CSMP to EEPROM AT+CSAS or SIM card 3 AT+CRES Restore the settings specified by AT+CSCA and AT+CSMP commands to EEPROM Show SMS text mode parameters AT+CSDH 4 5 AT+CPMS Preferred SMS message storage SMS service center address 6 AT+CSCA 7 AT+CMGF Select SMS message format 8 List SMS message from preferred store AT+CMGL Read SMS message AT+CMGR 9 10 AT+CMGS Send short message Set SMS text mode parameters AT+CSMP 11 12 AT+CMGW Write short message to memory AT+CMSS 13 Send short message from storage Delete short message 14 AT+CMGD Select Cell Broadcast Message Indication AT+CSCB 15 AT+CNMI 16 New short message indication +CMTI Indicate the MEM inde x location of received 17 message(Enabled by AT+CNMI) Indicate the short message was sent to DTE directly 18 +CMT after received Indicate that the cell broadcast message was sent to +CBM 19 DTE device after received Change the status of message stored in SIM card 20 AT+SMSC 21 AT+SUSS Set REC UNREAD status of these messages which remain unchanged 8.2 Detailed description of SMS commands 8.2.1 AT+CSMS of supported short message service AT+CSMS: inquire and set the classes Shanghai Sendtrue Technologies Co.,Ltd Page 58 of 141

59 SM5100B-D AT Command Test Command AT+CSMS=? Return +CSMS: OK Read Command AT+CSMS? Return +CSMS: ,,, OK Write Command AT+CSMS= Return +CSMS=,, OK Reference service description 0 SMS AT commands are compatible with GSM07.05 PHASE 2 1 SMS AT commands are compatible with GSM07.05 PHASE 2+ mo description 0 Short message which don’t supported mo 1 Short message which support mo mt description 0 Short message which don’t support mt 1 Short message which support mt cb description 0 cb not provisioned cb provisioned 1 Note: Currently, GSM07.05 PHASE 2 and GSM07.05 PHASE 2+ are not distinguished Example 8.2.2 AT+CSAS AT+CSAS: store settings of +CSAS and +CSMP to EEPROM or SIM card Test Command None Return Read Command None Return Write Command AT+CSAS Return OK Reference Example Shanghai Sendtrue Technologies Co.,Ltd Page 59 of 141

60 SM5100B-D AT Command 8.2.3 AT+CRES ecified by AT+CSCA and AT+CSMP AT+CRES: restore the settings sp commands to EEPROM Test Command None Return Read Command None Return Write Command AT+CRES Return OK Reference Example 8.2.4 AT+CSDH AT+CSDH: set the additional inform ation on text mode result codes Test Command AT+CSDH=? Return +CSDH: (0-1) OK Read Command AT+CSDH? Return +CSDH: OK Write Command AT+CSDH= Return OK Reference description value Do not show additional information 0 1 Show additional information Notes: Currently, additional information facility is not supported. Example 8.2.5 AT+CPMS t message storage area(for reading, writing, receiving, AT+CPMS: select the shor sending) Test Command AT+CPMS=? Return +CPMS: ((“BM”,”SM”,”SR”),(“BM”,”SM”,”SR”)) OK Read Command AT+CPMS? Return +CPMS: ,,,,, OK Write Command AT+CPMS=, Shanghai Sendtrue Technologies Co.,Ltd Page 60 of 141

61 SM5100B-D AT Command Return +CPMS: ,,, OK or ERROR Reference : memory used to read and delete messages. ”SM”,”BM”,”SR” : memory used to write messages: “SM”,”BM”, memory used to send messages: “SM” : the used space of : total space of “SM” SIM storage “BM” ME short message storage “SR” ME short message status report storage Note: Currently, only ”SM”,”BM” are supported. Example AT+CPMS=”BM”,”SM” +CPMS: 0,200,5,50 OK 8.2.6 AT+CSCA AT+CSCA: set and read the short message service center address Test Command AT+CSCA=? Return +CSCA: OK Read Command AT+CSCA? Return +CSCA: OK Write Command AT+CSCA= Return OK Reference : short message service center addr ess, {0-9,#,*,+,a,b,c}, its maximum length is 20 Example AT+CSCA? +CSCA: ”+8613800210500”,145 OK AT+CSCA=”8613800210500” OK AT+CSCA=? +CSCA: OK Shanghai Sendtrue Technologies Co.,Ltd Page 61 of 141

62 SM5100B-D AT Command 8.2.7 AT+CMGF format of short messages AT+CMGF: set and read the Test Command AT+CMGF? Return +CMGF: OK Read Command AT+CMGF? Return +CMGF: OK Write Command AT+CMGF= Return OK / ERROR Reference mode description 0 PDU mode(default config) 1 TEXT mode Note: the default value is 0 Example AT+CMGF? +CMGF: 0 OK AT+CMGF=1 OK 8.2.8 AT+CMGL AT+CMGL: list different status and all short messages Test Command None Return Read Command None Return Write Command AT+CMGL= Return Text mode return: +CMGL:,,,,, (for SMS-SUBMIT) a/oa>,

63 SM5100B-D AT Command as ordinary MT short message. location in memory text types of short message content 0: default type 1: 8 BIT 2: UCS2(such as Chinese character) destination/original addresses vality period of short messages transferring time of short messages status report status of short messages text content description PDU mode Text mode “REC UNREAD” 0 Unread message “REC READ” 1 Readed message “STO UNSENT” 2 Stored and unsended message 3 “STO SENT” Stored and sended message “ALL” 4 All short message Example : Set to PDU mode AT+CMGF=0 OK Display all short messages: AT+CMGL=4 +CMGL:1,2,,29 0891683110304105F0000D91683150221320F50000703082519261000AC4A6 F27AA42A832E28 +CMGL:2,2,,24 0891683108200305F0314A0B803118665868F50008AD0A00680065006C006 C006F +CMGL:3,1,,13 018000008000000000000000000000 OK Set to TEXT mode: AT+CMGF=1 OK Display all short messages: AT+CMGL=“ALL” +CMGL: 1,2,"REC READ","10010","07/03/15,18:11:16+00" Shanghai Sendtrue Technologies Co.,Ltd Page 63 of 141

64 SM5100B-D AT Command 900962E98054901A003100330030FF0C4EAB53D77CBE5F696BCF4E0059 2930026B228FCE52A05165 +CMGL: 2,2,"REC READ","10010","07/03/15,18:11:43+00" 6B228FCE52A051654E0A6D778054901AFF0C670065B04E1A52A163A883 50FF1A53D1003500310035 +CMGL: 3,2,"REC READ","10010","07/03/15,18:11:43+00" 5C0A656C76845BA26237FF0C6B228FCE60A852A051654E0A6D7780549 01A59275BB65EADFF0C8D76 +CMGL: 4,2,"REC READ"," 8254","07/03/27,11:22:33+00" 8054901A002277ED4FE198CE66B400225E74521D592756DE9988003A60A 85DF283B700334E2A62BD +CMGL: 5,0,"REC READ","+8613052231025","07/03/28,15:29:16+00" DMJWGTJA.P OK 8.2.9 AT+CMGR AT+CMGR: read some specified message Test Command None Return Read Command None Return Write Command AT+CMGR= Return text mode return: +CMGR:,,,, (for SMS-DELIVER only) text mode return: +CMGR: ,,,, (for SMS-SUBMIT only) text mode return: +CMGR: , (for SMS-STATUS-REPORT only) PDU mode return: +CMGR: ,, Note: Regard the status report as ordinary MT message. Reference For different types(SMS-DELIVER ,S MS-SUBMIT, SMS-ATATUS-REPORT) of message, there are different result types. Shanghai Sendtrue Technologies Co.,Ltd Page 64 of 141

65 SM5100B-D AT Command status of message the content of message in text mode 0:default value 1:8 BIT 2:UCS2(such as Chinese character) destination/origination address validity period time of sending status report text content Example AT+CMGR=5 +CMGR:"REC READ",0,"+8613052231025","07/03/28,15:29:16+00" DMJWGTJA.P OK 8.2.10 AT+CMGS AT+CMGS: send short message Test Command AT+CMGS=? Return +CMGS: ,(0,1) OK Read Command None Return Write Command If the format of sending message is text(AT+CMGF=1) mode : AT+CMGS=[,] >TEXT (ctrl+z/ESC) : If the format of sending message is PDU(AT+CMGF=0)mode AT+CMGS= >PDU (ctrl+z/ESC) Return +CMGS: OK Reference In text mode, to send UCS2 characters, dcs has to set to UC32 by AT+CSMP command, meanwhile hexadecimal UCS2 must be transferred to two ASCII characters. For example,0x2A is change d to 2 (ASCII 50) and A(ASCII 65). length: the length of TPDU(bit) with a range of 9-160. PDU: It consists of (00 means no service center id) and .Its refer s to GSM 04.11, and its to 03.40. The 16 bit TPDU must be changed into two ASCII characters. For example, 0x2A is changed to 2(ASCII 50) and A(ASCII 65). The length range is 18-502. : destination address with a maximum length of 40. nding message continuously. (if choose : flag determines whether se Shanghai Sendtrue Technologies Co.,Ltd Page 65 of 141

66 SM5100B-D AT Command sending message continuously, it’ll be more efficient, while connected line is not released.) Text: content ahead (0...9,A...F), if dcs(by AT+CSMP)is a 7bit ASCII character, its length range is 0-160; if dcs is a 8bit ASCII character, or its length range is 0-140; if dcs is a UCS2 character, or its length range is 0-140. Example PDU MODE: AT+CMGS=16 >0031020b803119282071f30008000a00680065006c006c006f (ctrl+z) 00: no service center address 0x31 (TP-MR)0x02 (TP-DA)0x0b0x800x310x190x280x200x710xf3(13918202173) (TP-PID)0x00 (TP-DCS)0x08 0x00 (TP-UDL) 0x0a TP-UD 0x00 0x68 0x00 0x65 0x00 0x6C 0x00 0x6C 0x00 0x6F(hello) AT+CMGS=24 >0891683108200105f031020b803119282071f30008ad0a00680065006c006c0 06f (ctrl+z) 08: the length of service center id The service center id +8613800210500 TEXT MODE AT+CMGS=”13916049104” >hello(ctrl+z) Examples of sending UCS2 characters AT+CMGF=1 AT+CSMP=19,143,0,2( is sent to UCS2) AT+CMGS=”13916049104” >4F60597D (hello) OK 8.2.11 AT+CSMP AT+CSMP: set and read ,, and value Test Command AT+CSMP=? Return +CSMP: (0-255),(0-255),( 0-9,11,12,127),(0-2) OK Read Command AT+CSMP? Return +CSMP: ,,, Write Command AT+CSMP=,,, Shanghai Sendtrue Technologies Co.,Ltd Page 66 of 141

67 SM5100B-D AT Command Return OK / ERROR Reference : First Octet, code according to the description below. The default value is 19. b6 b5 b4 b3 b2 b7 b0 b1 RP UDHI SRR VPF RD MTI RP: reply path, invalid in text mode. UDHI: User Data Header Information. SRR: Status Report Request. b5=1, if a status report is requested. VPF: Validity Period Format b4=0&b3=0-> field is not present b4=1&b3=0-> field is present in relative format other formats are not supported RD: Reject Duplicates, b2=1 to instruct the SC to reject an SMS-SUBMIT for and SM still held in the SC which has the same and the same from the same . MTI: Message type indicator b1=0&b0=0-> SMS-DELIVER(in the direction SC to MS) b1=0&b0=1-> SMS-SUBMIT(in the direction MS to SC) validity period with a default value of 143 0-143 : (VP+1 )× 5 minutes(the maximum period is 12 hours) 144-167 30 minutes) : 12 hours+(VP . 143) × 168-196 : × 1 day (VP . 166) : 1 week × 197-255 (VP . 192) is used to indicate the higher layer protocol being used or indicates interworking of a certain type of telematic device. Its default value is 0. 0 implicit-device type is specific to this SC,or can be concluded on the basis of the address 1 telex(or teletex reduced to telex format) 2 group 3 telefax 3 group 4 telefax 4 voice telephone(i.e. conversion to speech) 5 ERMES(European Radio Messaging System) 6 National Paging system(known to the SC) 7 Videotex(T.100/T.101) 8 teletex,carrier unspecified 9 teletex,in PSPDN 10 teletex,in analog PSTN 11 teletex,in digital ISDN 7F SIM DOWNLOAD Coding description of information with a default value of 0. dcs description 0 Default alphabet 1 8 bit data 2 UCS2 Shanghai Sendtrue Technologies Co.,Ltd Page 67 of 141

68 SM5100B-D AT Command Example AT+CSMP=19,143,0,0 OK AT+CSMP? +CSMP: 19,143,0,0 OK 8.2.12 AT+CMGW AT+CMGW: store a message in Test Command AT+CMGW=? Return +CMGW: , (0-4) Read Command None Return Write Command If the SM format is PDU mode : AT+CMGW=,[] >PDU is given(ctrl+z/ESC) If the SM format is TEXT mode: AT+CMGW=””,[] >TEXT is given(ctrl+z/ESC) Return +CMGW: OK Reference : the length of TPDU(bit) with a range of 9-160 : destination address with the maximum length of 40 bits : integer, if don’t write this parameter, the default value is 2(unsent message) stat description 0 Unreaded message(MT) 1 Readed message(MT) 2 Unsent message(MO) 3 Sent message(MO) : index id of PDU: same to AT+CMGS Text: same to AT+CMGS Note: when the space of SIM or ME is used, if =SIM, return ”+CMGW: SIM is full”; if =ME, return ”+CMGW: ME is full” Example AT+CMGF=1 OK AT+CMGW=”13916049104” >TEST(ctrl+z) +CMGW: 16 OK Shanghai Sendtrue Technologies Co.,Ltd Page 68 of 141

69 SM5100B-D AT Command 8.2.13 AT+CMSS AT+CMSS: send a stored but unsent message Test Command AT+CMSS=? Return +CMSS: (1-65535), OK Read Command None Return Write Command AT+CMSS=[,””] Return +CMSS: OK Reference : index num of SIM : destination address with a maximum length of 40 Example AT+CMGF=1 OK AT+CMGW=”13916049104” >TEST +CMGW:16 OK AT+CMSS=16 +CMSS: 113 OK 8.2.14 AT+CMGD AT+CMGD: delete one or all messages Test Command AT+CMGD=? Return +CMGD: (1-65535),(0-4) OK Read Command None Return Write Command AT+CMGD=[,] Return OK / ERROR Reference : index num of chosen memory ,which should be less than the maximum num item of description DelFlag 0 Delete an message according to index 1 Delete all readed messages 2 Delete all readed or sent messages 3 Delete all readed or se nt or unsent messages 4 Delete all messages Note: when is between 1 and 4 and when is valid, delete all Shanghai Sendtrue Technologies Co.,Ltd Page 69 of 141

70 SM5100B-D AT Command fitted messages begin from Example 8.2.15 AT+CSCB AT+CSCB: select which types of mess ages are to received. This command is allowed in TEXT mode Test Command AT+CSCB=? Return +CSCB: (0-1),(0 -65535),(0-255) OK Read Command AT+CSCB? Return +CSCB=,, Write Command AT+CSCB=,, Return OK Reference mode description DCE receive the message specified by , 0 1 DCE doesn’t receive the message specified by , : value 0-65535 : value 0-255 Note: Currently, cell broadcast is not supported Example 8.2.16 AT+CNMI AT+CNMI: control the way of indicati ng DTE, after receiving MT messages Test Command AT+CNMI= ? Return -3),(0-1),(0-1) +CNMI: (0-3),(0 Read Command AT+CNMI? Return +CNMI: 3,0,0,0, OK Write Command AT+CNMI=,,, Return OK / ERROR Shanghai Sendtrue Technologies Co.,Ltd Page 70 of 141

71 SM5100B-D AT Command Reference : indication mode, default value is 3. Currently only mode 3 is supported. description Mode 3 Return result code to DTE 1 DCE don’t receive result code defined in , : set the indication format of MT message with a default value of 0 mt description 0 No indication No SMS-DELIBER 1 Auto indication +CMTI: , 3 Direct indication +CMT: result code : config the indication of cell broadcast message. Its default value is 0. cbm description 0 No +CBM indications are routed to the DTE. The CBMs are stored. 1 The +CBM is stored and an in dication of memory location is routed to the user. : config the indication for SM status report. Its default value is 0. ds description No SMS-STATUS-REPORTs are routed to DTE 0 SMS-STATUS-REPORTs are r outed to DTE by +CDS 1 Example AT+CNMI=3,0,1,1 OK AT+CNMI? +CNMI: 3,0,1,1 OK 8.2.17 +CMTI index location of received message(Enabled by +CMTI: indicate the MEM AT+CNMI) Test Command None Return Read Command None Return Write Command None Return Shanghai Sendtrue Technologies Co.,Ltd Page 71 of 141

72 SM5100B-D AT Command Reference Indication format: +CMTI: , Parameter: description mem “SM” SM message storage “ME” ME message storage : index num of Example 8.2.18 +CMT +CMT: indicate the short message was sent to DTE directly after received. (command AT+CNMI=3,3 should be set first) Test Command None Return Read Command None Return Write Command None Return Reference If short message is PDU mode (AT+CMGF=0) Indication format : +CMT:, If short message is TEXT mode(AT+CMGF=1) Indication format : +CMT:,

73 SM5100B-D AT Command 8.2.20 AT+SMSC AT+SMSC: change the status of message stored in SIM card Test Command AT+SMSC=? Return +SMSC: (1-255) Read Command None Return Write Command AT+SMSC=, Return OK perform successfully +CMS ERROR: 321 is incorrect +CMS ERROR: 302 doesn’t match Reference : message sequence in SIM card : the new status to be change d can only from unreaded to readed, or from unsent to sent. PDU MODE TEXT MODE 0 REC UNREAD 1 REC READ 2 STO UNSENT 3 STO SENT Example 8.2.21 AT+SUSS AT+SUSS: set REC UNREAD status of these messages which remain unchanged, after AT+CMGR and AT+CMGL command are performed Test Command AT+SUSS=? Return +SUSS: (0-1) Read Command AT+SUSS? Return +SUSS: Write Command AT+SUSS= Return OK Reference MODE description 0 Status of message remains unchanged 1 Status of message will be changed(default value) Example Shanghai Sendtrue Technologies Co.,Ltd Page 73 of 141

74 SM5100B-D AT Command 9. Phonebook commands pplication to acce Phonebook commands allow the external a ss the phonebook located in the phone memeory or on the attached Subscriber Identity Modul e (SIM), such as adding, deleting, and modifying and so on. 9.1 Overview of phonebook commands description number command 1 AT+CPBS Select phonebook memory storage 2 AT+CPBR Read from phonebook 3 Search phonebook with a name string AT+CPBF Write into phonebook 4 AT+CPBW 5 AT+CPBP Search the phonebook for an item with the same phone number Make a forward or backward move in the 6 AT+CPBN phonebook AT+CNUM 7 Read own numbers Delete all the calls 8 AT+SDCP 9 AT+CSVM Set/get and enable/disable the voice mail number 9.2 Detailed description of phonebook commands 9.2.1 AT+CPBS AT+CPBS: select the types of phonebooks Test Command AT+CPBS=? Return +CPBS: (“SM”,”FD”,”LD”,”MC”,”RC”,”ME”) OK Read Command AT+CPBS? Return +CPBS: (default value “SM”),, Write Command AT+CPBS= Return OK / ERROR Reference : the number of phonebook items already used : the available items storage description “SM” SIM card phonebook “FD” Fixed dialing phonebook “LD” Latest dialing phonebook Missed call phonebook “MC” Shanghai Sendtrue Technologies Co.,Ltd Page 74 of 141

75 SM5100B-D AT Command “RC” Received call phonebook Mobile phone phonebook “ME” Example 9.2.2 AT+CPBR AT+CPBR: return entries for a range of locations specified by entered parameters Test Command AT+CPBR=? Return +CPBR: s>,, OK Read Command None Return Write Command AT+CPBR=[,] Return +CPBR=,,,,, ... ,,,,, Reference If the second parameter is default, only return the entries specified by the first parameter. : maximum length of telephone number : maximum length of name Example AT+CPBR=1 +CPBR: 1,”13916049104”,129,”aa” OK AT+CPBR=1,2 +CPBR: 1,”13916049104”,129,”aa” +CPBR: 2,”13916976524”,129,”bb” OK 9.2.3 AT+CPBF AT+CPBF: search phonebook with a name string Test Command AT+CPBF=? Return +CPBF: , OK Read Command None Return Write Command AT+CPBF= Return +CPBF: ,,, or ERROR(not found) Shanghai Sendtrue Technologies Co.,Ltd Page 75 of 141

76 SM5100B-D AT Command Reference : maximum length of phonebook number : maximum length of name Example AT+CPBF=”aa” +CPBF: 1,”13916049104”,129,”aa” OK 9.2.4 AT+CPBW AT+CPBW: write the current phonebook in specified location Test Command AT+CPBW=? Return +CPBW(list supported s),,, OK Read Command None Return Write Command AT+CPBW=[,” ”[,[,””]]] Return OK Reference If parameter and are default, erase item of location. : index id : telephone number, its maximum length could not be larger than . : types of telephone number : name, its maximum length could not be larger than : max length of telephone number : max length of name Example AT+CPBW=3 OK AT+CPBW=3,”54452248”,129,”cc” OK When inputting UCS2 [], users must enter ASCII strings begin with 80. For example:”804F60597D”(hello),”0x8000410042”(AB). AT+CPBW=3,”54452248”,129,”806797519B” OK 9.2.5 AT+CPBP AT+CPBP: search the phonebook for an item with the same phone number as that defined in the parameter Test Command AT+CPBP=? Return +CPBP: , OK Shanghai Sendtrue Technologies Co.,Ltd Page 76 of 141

77 SM5100B-D AT Command Read Command None Return Write Command AT+CPBP= Return +CPBP: ,,, Reference Example AT+CPBP=”54452248” +CPBP: 3,”54452248”,129,”cc” OK 9.2.6 AT+CPBN AT+CPBN: make a forward or back ward move in the phonebook Test Command AT+CPBN=? Return +CPBN: (0-5) OK Read Command None Return Write Command AT+CPBN= Return +CPBN: ,,,,, Reference Mode description Display the first item 0 Display the last item 1 2 Display the next item 3 Display the above item 4 Display the latest readed item 5 Display the latest written item Example AT+CPBN=? +CPBN: (0-5) OK AT+CPBN=0 +CPBN: 15, .+331290101.,145,.John. OK AT+CPBN=2 +CPBN: 5, .+33147658987.,145,.Steven. OK AT+CPBN=2 +CPBN: 6, .+331290302.,145,.Mary. OK AT+CPBN=3 Shanghai Sendtrue Technologies Co.,Ltd Page 77 of 141

78 SM5100B-D AT Command +CPBN: 5, .+33147658987.,145,.Steven. OK AT+CPBN=1 +CPBN: 6,.+331290302.,145,.Mary. OK AT+CPBN=2 +CPBP: 15,.+331290101.,145,.John. OK AT+CPBF=John +CPBF: 15,.+331290101.,145,.John. OK AT+CPBN=2 +CPBN: 5,.+33147658987.,145,.Frank. OK AT+CPBF=John +CPBF: 15,.+331290101.,145,.John. OK AT+CPBN=4 +CPBF: 15,.+331290101.,145,.John. OK AT+CPBW=1,.0146290800.,129,Windy OK AT+CPBN=4 +CPBF: 15,.+331290101.,145,.John. OK AT+CPBF=”Frank” +CPBF: 5,.+33147658987.,145,.Frank. OK AT+CPBN=5 +CPBF: 15,.+331290101.,145,.John. OK Shanghai Sendtrue Technologies Co.,Ltd Page 78 of 141

79 SM5100B-D AT Command 9.2.7 AT+CNUM : AT+CNUM read subscriber MSISDN Test Command AT+CNUM=? Return OK Read Command None Return Write Command AT+CNUM Return OK Reference Example AT+CNUM OK 9.2.8 AT+SDCP AT+SDCP: delete all the calls lis ted in ”LD” or ”MC” or ”RC” Test Command AT+SDCP=? Return +SDCP: (“LD”,”MC”,”RC”) OK Read Command AT+SDCP? Return OK / ERROR Write Command AT+SDCP= Return OK / ERROR Reference :”LD”,”MC”,”RC” Example 9.2.9 AT+CSVM AT+CSVM: set/get and enable/d isable the voice mail number Test Command AT+CSVM= ? Return +CSVM:(0-1),,(129,145) OK Read Command AT+CSVM? Return +CSVM: 0,” “,129 OK / ERROR Write Command AT+CSVM=[,[,]] Return OK / ERROR Reference : max length of telephone number Shanghai Sendtrue Technologies Co.,Ltd Page 79 of 141

80 SM5100B-D AT Command 0: disable voice mail 1: enable voice mail : () : type of voice mail number Example AT+CSVM=1,”13800210166”,129 OK Shanghai Sendtrue Technologies Co.,Ltd Page 80 of 141

81 SM5100B-D AT Command 10. STK commands 10.1 Preface SIM Application Toolkit is abbr used by service providers to eviated to STK. It can be as GO_TONE and MONTERNET supported support a broad range of services, such by China Communication, etc. STK allows se rvice providers to supply new services without changing mobile phones, because new services can be realized by developing new applications and downloaded them to the SIM. STK refers to GSM 11.14. It introduces about 25 new commands for the SIM: CLASS1 offers a subset of commands, wh ile CLASS3 offers the full range of command. : STK support ¾ profile download ¾ proactive SIM ¾ data download into SIM ¾ menu selection ¾ call control by SIM Currently, data download into SIM, call control by SIM are not supported. Profile Download command is used to indicate which STK features the customer application supports. The AT command us ed for this operation is AT+STSF. A proactive SIM provides a mechanism wher eby certain actions can be performed. These actions include: ¾ display menus ¾ display given text ¾ get user input ¾ send a short message ¾ set up a call The commands used for this operation are: +STIN (SIM Toolkit Indication), +STGI (SIM Toolkit Get Information), +STGR (SIM Toolkit Give Response). Menu selection is a set of menu provide d by STK. The menu selection command (AT+STGR) informs SIM which menu item is selected. The commands used for this operation are: +STIN, +STGI and +STGR. 10.2 The exchange procedure between STK user and STK The following scheme shows how the STK user interacts with each other: Shanghai Sendtrue Technologies Co.,Ltd Page 81 of 141

82 SM5100B-D AT Command On the first step the STK user informs the SMSM5100B-D module which facilities are supported. The operation is performed with the AT+STSF command, which also activates or deactivates the STK functionality . If STK functionality is activated, while boosting, system sends +STIN: 0 to STK customers. If STK functionality is deactivated, when STK functionality is activated by AT+STSF command, system sends +STIN: 0 to STK customers. On the second step, the SMSM5100B-D module sends +STIN: index to inform STK users which STK command shoul d be performed. The last indication can be request by AT command AT+STIN? . On the third step the STK user uses AT+STGI command to get STK information respective to +STIN: index On the fourth step the STK user uses AT+STGR to its response to STK. All facilities of the ST K are realized by sequences of such operations. 10.3 Overview of STK commands number command description 1 AT+STSF Allow STK facilities to be activated, deactivated or configured 2 AT+STIN Allow the user to identify the commands sent via SIM card 3 AT+STGI Get the information of a command sent from the SIM 4 AT+STGR Allow the application to select an item in the main menu or to answer command Shanghai Sendtrue Technologies Co.,Ltd Page 82 of 141

83 SM5100B-D AT Command 10.4 Detailed description of STK commands 10.4.1 AT+STSF AT+STSF: allow STK facilities to be activated, deactivated or configured Test Command AT+STSF= ? Return 0C01F-5FFFFFFF7F),(1-255) +STSF: (0-2),(16006 Read Command AT+STSF? Return +STSF: [,][,] Write Command AT+STSF=[,””][,] Return OK / ERROR Reference mode description 0 Deactivate STK 1 Activate STK 2 Configures the STK functionalities configure STK 2 、 The STK configuration will be effective immediately without system reboot. All parameters are saved in NV(The value is configured value after reboot) PROFILE with a value range of : give hex value for TERMIANAL (160060C01F-5FFFFFFF7F)(hex format) : set the maximum time the user has for reacting. If waiting time exceeds the value, STK handle as no user reacts. Its value range is 1-255(multiple of 10 seconds) Example 10.4.2 AT+STIN AT+STIN: allow the user to identify the commands sent via SIM card.(such as GET INKEY) Test Command AT+STIN=? Return +STIN: OK Read Command AT+STIN? Return +STIN: OK Write Command None Return Reference After system received, system will automatically send relative message (+STIN:) to user. AT+STIN? command can be used to receive the latest sent message.(This command can only be available after user Shanghai Sendtrue Technologies Co.,Ltd Page 83 of 141

84 SM5100B-D AT Command application sends +STIN: and before user application respond with AT+STGI command) The format of respective message sent automatically by user +STIN: CmdType description 0 Setup Menu command has been sent from the SIM 1 Display Text command has been sent from the SIM 2 Get Inkey command has been sent from the SIM 3 Get Input command has been sent from the SIM 4 Setup Call command has been sent from the SIM 6 Setup Menu(Sel Item) subnet command has been sent from the SIM Send SMS command has been sent from the SIM 9 99 End Session command has been sent from the SIM Example 10.4.3 AT+STGI AT+STGI: get the information(text to display, Menu information)of a command sent from the SIM Test Command AT+STGI=? Return +STGI: (0-11) OK Read Command None Return Write Command AT+STGI= Return OK / ERROR Reference The information of the return of AT+STGI write command is list below: When CmdType=0(Setup menu): Alpha identifier of the main menu(MONTERNET and GO_TONE,etc) (1-255) number of items in the main menu (1-255) lo cation of present item in the main menu information of current item in the main menu HelpInfo description 0 No help information available 1 Help information available When CmdType=1(Display text) : : priority Prior description Normal priority of display 0 Shanghai Sendtrue Technologies Co.,Ltd Page 84 of 141

85 SM5100B-D AT Command 1 High priority of display :text description Clear mode 0 Clear message after a 3 second delay 1 Waiting for user to clear message When CmdType=2(Get Inkey): : format description 0 Digit(0-9,*,#,and +) 1 SMS alphabet default 2 UCS2 : : HelpInfo description 0 No help information available 1 Help information available When CmdType=3(Get Input): : format description 0 Digit(0-9,*,#,and +) 1 SMS alphabet default UCS2 2 Unpacked format 3 4 Packed format : EchoMode description 0 Echo off 1 Echo on (1-255): minimum length of input (1-255): maximum length of input : : HelpInfo description 0 No help information available 1 Help information available When CmdType=4(Setup Call): : type description 0 Set up call but only if not currently busy on Set up call but only if not currently busy on. Redial, if failed. 1 Shanghai Sendtrue Technologies Co.,Ltd Page 85 of 141

86 SM5100B-D AT Command 2 Block current call, if busy, and set up a new call Block current call, if busy, and set up a new call. Redial, if 3 failed. 4 Disconnect current call, if busy, and set up a new call Disconnect current call, if busy, and redial, if failed 5 : call number : When CmdType=6(Sel Item): (1-255): total number of submenus (1-255): location of current item : location information of current item : help information HelpInfo description 0 No help information available 1 Help information available When CmdType=9(Send SMS) : Note: In all returned information, if it begins with 0x80 then its format is UCS2 mode: such as 8079FB52A868A67F51(MONTERNET), or is SMS alphabet default mode. Example 10.4.4 AT+STGR item in the main menu or to answer AT+STGR: allow the application to select an command Test Command AT+STGR=? Return +STGR: (0,1,2,3,4,6,11,95,96,97,98,99),(0-2),(0-255) Read Command None Return Write Command ,,] AT+STGR=[ When CmdType=2(Get Inkey) or CmdType=3(Get Input) and character strings are required, user must enter. AT+STGR=[,]enter , system return>,users input character strings, then confirm by ctrl+z, give up by Esc Return OK / ERROR Reference The answer command is as follows: 1 、 GET INKEY 2 、 GET INPUT 3 、 SELECT ITEM SETUP CALL 4 、 Shanghai Sendtrue Technologies Co.,Ltd Page 86 of 141

87 SM5100B-D AT Command 5 DISPLAY TEXT 、 It is also possible to terminate or backward the current command session with following parameters: 、 BACKWARD MOVE Process a backward move 1 、 NO RESPONSE No response from user 2 、 END SESSION Customer aborts 3 CmdType description 0 User select an item in main menu 1 Response to Disp Text 2 Response to Get Inkey 3 Response to Get Input 4 Response to Setup call 6 Response to Sel Item 95 Backward move 98 No response from the user 99 User abort When CmdType=0 (user selects an item in main menu): : result description Item in main menu selected by the user 1 Help information required by user 2 : user’s option When CmdType=1(response to Disp Text), there are no , When CmdType=2(Get Inkey) : result description 0 STK terminated by user 1 User input key : the value of user input key ta are entered in ASCII format which Note: For inputs in UCS2 format, the da begins with 0x80.Example: for ”80597D” When CmdType=3(Get Input) : result description 0 STK aborted by user 1 Character string entered by user : input character string Note: For inputs in UCS2 format, the da ta are entered in ASCII format which begins with 0x80,Example:entered ”804F60597D”(hello),”8000410042”(AB). Shanghai Sendtrue Technologies Co.,Ltd Page 87 of 141

88 SM5100B-D AT Command When CmdType=4(Setup call) : result description 0 User refuses the call 1 User accepts the call When CmdType=6(Select Item) : result description 0 STK terminated by the user 1 Item selected by the user 2 Help information required by the user 3 User requires to backmove : send response to SIM: when CmdType=95(backmove) when CmdType=98(no response from user) when CmdType=99(user aborts) AT+STGR can be performed, only after AT+STGI has done Example Shanghai Sendtrue Technologies Co.,Ltd Page 88 of 141

89 SM5100B-D AT Command 11. GPRS commands Mobile Termination that set PDP 、 GPRS commands are related to GPRS QOS parameters, set MT and response from network terminal. 11.1 Overview of GPRS commands number command description 1 AT+CGDCONT Define PDP context 2 Quality of service profile(requested) AT+CGQREQ 3 AT+CGQMIN Quality of service profile(minimum acceptable) 4 AT+CGPCO Configure the PDP context parameters of PCO Attach or detach GPRS services AT+CGATT 5 AT+CGACT PDP context activate or deactivate 6 AT+CGPADDR 7 Show PDP address Enter data state 8 AT+CGDATA 9 AT+CGAUTO Automatic response to a network for PDP context activation Manual response to a network for PDP context 10 AT+CGANS activation Set the GPRS type of MT 11 AT+CGCLASS AT+CGEREP 12 GPRS event reporting 13 AT+CGREG GPRS network registration status Select service for MO SMS messages AT+CGSMS 14 Decide whether shows the supplementary 15 AT+CRC information of incoming calls AT+CR 16 Decide whether to present that this CONNECT is GPRS Extend the error report 17 AT+CEER Built the connections between terminal devices and 18 Extension of ATD networks 19 AT+SSST Set the MS service type Attach or detach GPRS service 20 AT+SATT 21 AT+SAUTOATT Allow MT to perform auto attach operation 22 AT+SGPRSDATA Specify the data length of GPRS data sent by MT 23 ATO Switch from command mode to data mode 24 +++ Switch from data mode or PPP online mode to command mode Shanghai Sendtrue Technologies Co.,Ltd Page 89 of 141

90 SM5100B-D AT Command 11.2 Detailed description of GPRS commands 11.2.1 AT+CGDCONT AT+CGDCONT: configure the context parame ters of PDP, when MT is sending the activation message of PDP context Test Command AT+CGDCONT=? Return ),,(list of supported +CGDCONT: (range of supported s s and s) OK Read Command AT+CGDCONT? Return +CGDCONT:,,,,,,< CR>, [+CGDCONT:,,,,,,< CR>,[...]] OK Write Command AT+CGDCONT=[ [,[,[,[,[,]]]]]] Return OK / ERROR Reference The settings will not be saved in MS after system reboot. : (PDP Context Identi presents PDP context ID. fier)interger(range, 1--15), : (Packet Data Protocol type), Currently, only IP(Internet Protocol) is supported. : (Access Point Name) character stri ng, which is used to select GGSN or other data subnets. Please consult local network providers. China mobile et is ”cmnet”, while the one who Communication APN who services Intern serves Wap is ”cmwap”. : character string, specifi ed PDP address. This string can be blank, because an address will be distributed by network dynamically. : whether the PDP data should be compressed, This bit does not need to be filled, for its default value is 0. Currently, MT data compression is not supported by any network. 0: no compression 1: compression : whether the PDP header should be compressed, This bit does not need to filled, for its default value is 0. Currently, data compression is not supported by any network. 0: no compression 1: compression Example “cmnet” AT+CGDCONT=1 , “IP” , Shanghai Sendtrue Technologies Co.,Ltd Page 90 of 141

91 SM5100B-D AT Command OK AT+CGDCONT=1,”IP”,”cmnet”,,1,1 +CME ERROR: 4 AT+CGDCONT=4,”IP”,”cmnet”,”1.1.1.1”,0,0 OK 11.2.2 AT+CGQREQ en MT is sending the activation AT+CGQREQ: configure QOS parameter wh message of PDP context Test Command AT+CGQREQ=? Return +CGQREQ:,(list of supported s,s,s,s,and s) OK Read Command AT+CGQREQ? Return +CGQREQ:,,,,,< LF> [+CGQREQ:,,,,,< LF>[...]] OK Write Command AT+CGQREQ=[[,[,[,[,[,]]]]]] Return OK / ERROR Reference If PDP has already been activated and any QOS values of QOS parameters are larger than the minimal value of acceptable QOS parameters, the regulations for PDP context must be modified. : (PDP Context Identi fier)interger(range, 1--15), presents PDP context ID. : present the priotity description precedence 0 Subscribed(from network) value used 1 High priority 2 Normal priority 3 Low priority : present the classes of delay; 4----minimal delay,best performance,1----worst performance delay description 0 Subscribed (from network) value used 1--4 Delay class : present reliability classes; 1 is the best reliability,3,6 is the same Shanghai Sendtrue Technologies Co.,Ltd Page 91 of 141

92 SM5100B-D AT Command class,5 is the worst one description reliability Subscribed (from network) value used 0 1--6 reliability class : present the throughput classes in peak description peak Subscribed (from network) value used 0 1 Up to 1000(8 kbit/s) 2 Up to 2000(16 kbit/s) 3 Up to 4000(32 kbit/s) 4 Up to 8000(64 kbit/s) 5 Up to 16000(128 kbit/s) 6 Up to 32000(256 kbit/s) 7 Up to 64000(512 kbit/s) 8 Up to 128000(1024 kbit/s) 9 Up to 256000(2048 kbit/s) : present av erage throughput mean description 0 Subscribed (from network) value used 1 100(~0.22 bits/s) 2 200(~0.44 bits/s) 3 500(~1.1 bits/s) 1 000(~2.2 bits/s) 4 2 000(~4.4 bits/s) 5 6 5 000(~11.1 bits/s) 7 10 000(~22 bits/s) 20 000(~44 bits/s) 8 50 000(~111 bits/s) 9 10 100 000(~0.22 kbit/s) 11 200 000(~0.44 kbit/s) 12 500 000(~1.11 kbit/s) 13 1 000 000(~2.2 kbit/s) 14 2 000 000(~4.4 kbit/s) 15 5 000 000(~11.1 kbit/s) 16 10 000 000(~22 kbit/s) 17 20 000 000(~44 bits/s) 18 50 000 000(~111 bits/s) : present PDP type pdp_type description “IP” Internet Protocol “PPP” Point-to-Point Protocol Shanghai Sendtrue Technologies Co.,Ltd Page 92 of 141

93 SM5100B-D AT Command Example AT+CGQREQ=1,2,4,5,5,16 OK 11.2.3 AT+CGQMIN AT+CGQMIN: set the minimal value of acceptable QOS parameters, when MT is sending the activation message of PDP context Test Command AT+CGQMIN=? Return +CGQMIN: ,s,s OK Read Command AT+CGQMIN? Return +CGQMIN:,,,,,< LF> [+CGQMIN:,,,,,< LF>[...]] OK Write Command AT+CGQMIN=[[,[,[,[,[,]]]]]] Return OK / ERROR Reference MT initiates PDP context deactivation activity, if the value of negotiated QOS parameters in the accepted PDP context message is less than the least value of acceptable QOS parameters. The AT+CGQREQ,AT+CGQMIN command is the spread of AT+CGDCONT. : (PDP Context Identi fier)interger(range, 1--15), presents PDP context ID. : present the priotity precedence Description 0 Subscribed(from network) value used High priority 1 Normal priority 2 3 Low priority : present the classes of delay; delay description 0 Subscribed (from network) value used 1--4 Delay class : present reliability classes; described in AT+CGQREQ. reliability description 0 Subscribed (from network) value used 1--6 reliability class : present the throughput classes in peak Shanghai Sendtrue Technologies Co.,Ltd Page 93 of 141

94 SM5100B-D AT Command peak description Subscribed (from network) value used 0 Up to 1000(8 kbit/s) 1 2 Up to 2000(16 kbit/s) Up to 4000(32 kbit/s) 3 4 Up to 8000(64 kbit/s) 5 Up to 16000(128 kbit/s) 6 Up to 32000(256 kbit/s) 7 Up to 64000(512 kbit/s) 8 Up to 128000(1024 kbit/s) 9 Up to 256000(2048 kbit/s) : present av erage throughput mean description 0 Subscribed (from network) value used 1 100(~0.22 bits/s) 2 200(~0.44 bits/s) 3 500(~1.1 bits/s) 4 1 000(~2.2 bits/s) 5 2 000(~4.4 bits/s) 6 5 000(~11.1 bits/s) 10 000(~22 bits/s) 7 20 000(~44 bits/s) 8 9 50 000(~111 bits/s) 10 100 000(~0.22 kbit/s) 11 200 000(~0.44 kbit/s) 12 500 000(~1.11 kbit/s) 13 1 000 000(~2.2 kbit/s) 14 2 000 000(~4.4 kbit/s) 15 5 000 000(~11.1 kbit/s) 16 10 000 000(~22 kbit/s) 17 20 000 000(~44 bits/s) 18 50 000 000(~111 bits/s) : present PDP type pdp_type description “IP” Internet Protocol “PPP” Point-to-Point Protocol Example AT+CGQMIN=1,2,4,5,5,16 OK Shanghai Sendtrue Technologies Co.,Ltd Page 94 of 141

95 SM5100B-D AT Command 11.2.4 AT+CGPCO parameters of PCO, when MT is AT+CGPCO: configure the PDP context sending the activation message of PDP context Test Command AT+CGPCO=? Return +CGPCO: (0-1),,,(1-15) OK Read Command AT+CGPCO? Return +CGPCO: ,,, [+CGPCO: ,,,[...]] OK Write Command AT+CGPCO=,,, Return OK / ERROR Reference type description 0 User and password are code as ASCII character 1 User and password are code as PDU character : The user name used by pco, which the max length is 64 bytes in ASCII character or max length is 128 bytes in PDU character. : The user password used by pco, which the max length is 64 bytes is 128 bytes in PDU character. in ASCII character or max length : (PDP Context Identi fier)interger(range, 1--15), presents PDP context ID. Example AT+CGPCO=0,” ”,”wap1”,1 [email protected] OK AT+CGPCO? +CGPCO: 0,,,2 +CGPCO: 0, ” [email protected] ”,”wap1”,1 OK 11.2.5 AT+CGATT AT+CGATT: Attach or detach GPRS services Test Command AT+CGATT=? Return +CGATT: (list of supported s) OK Read Command AT+CGATT? Return +CGATT: OK Write Command AT+CGATT=[] Return OK / ERROR Reference If MT has been in required status, the writting command is omitted and returns Shanghai Sendtrue Technologies Co.,Ltd Page 95 of 141

96 SM5100B-D AT Command OK; If the required status can not be retrieved, returns ERROR. After MT activated PDP CONTEXT deactives deattaches GPRS services, any automatically. : description State 0 Detach GPRS service 1 Attach GPRS service Example AT+CGATT=1 OK 11.2.6 AT+CGACT AT+CGACT: activate or deacti vate specified PDP context Test Command AT+CGACT= ? Return +CGACT: (list of supported s) OK Read Command AT+CGACT ? Return +CGACT: ,[+CGACT: ,[...]] OK Write Command AT+CGACT=[[,[,[,...]]]] Return OK / ERROR Reference If MT has been in required status, the writting command is omitted and returns OK; If the required status can not be retrieved, returns ERROR. While performing activate specified PDP context operation, MT performs GPRS ATTACH first, if GPRS ATTACH has not been performed yet. If GPRS ATTACH operation failes, return ERROR. : state description 0 Deactivate PDP context 1 Activate PDP context : (PDP Context Identif ier)interger(range, 1--15), presents PDP context ID. In default case, AT+CGACT=1 and AT+CGACT=1,1 indicates activate PDP context , AT+CGACT=0 indicates deactivates all the activated PDP context. Example AT+CGACT=1,1 OK AT+CGACT=0,1 OK 11.2.7 AT+CGPADDR AT+CGPADDR: return specified PDP CONTEXT address Shanghai Sendtrue Technologies Co.,Ltd Page 96 of 141

97 SM5100B-D AT Command Test Command ? AT+CGPADDR= Return +CGPADDR: (list of supported s) OK Read Command None Return Write Command AT+CGPADDR=[[,[,...]]] Return +CGPADDR: , [+CGPADDR: ,[...]] OK Reference : (PDP Context Identif ier)interger(range, 1--15), presents PDP context ID. If no specification, return all PDP context. : character string; PDP context address Example AT+CGPADDR=1 +CGPADDR: 1,0.0.0.0 OK AT+CGPADDR=? +CGPADDR: (1-15) OK 11.2.8 AT+CGDATA AT+CGDATA: make terminal device and network into connection status Test Command AT+CGDATA=? Return +CGDATA: (list of supported s) OK Read Command None Return Write Command AT+CGDATA=[,[[,[,...]]]] Return CONNECT / ERROR Reference This process includes one GPRS attach process and one or more than one PDP CONTEXT activation process. If the value of cid has not been defined in MT, return ERROR, otherwise return CONNECT. : specifies the Layer2 protocol between TE and MT. Currently, only PPP is supported 。 : (PDP Context Identi fier)interger(range, 1--15), presents PDP context ID. Example AT+CGDATA=”PPP”,1 CONNECT 11.2.9 AT+CGAUTO tically respond to the PDP context AT+CGAUTO: whether or not MT automa Shanghai Sendtrue Technologies Co.,Ltd Page 97 of 141

98 SM5100B-D AT Command activation request initiated by network terminal Test Command AT+CGAUTO=? Return +CGAUTO: (list of supported s) OK Read Command AT+CGAUTO? Return +CGAUTO: OK Write Command AT+CGAUTO=[] Return OK / ERROR Reference : state description 0 Disable GPRS auto response, use AT+CGANS command to response to PDP context activation request manually, which is initiated by network terminal. 1 Enable GPRS auto response, automatically response to the PDP context activation request automatically 2 Automatic acceptance of GPRS network requests is controlled by the ‘SO’ command 3 Automatic acceptance of both GPRS network requests and incoming circuit switched calls is controlled by the ‘SO’ command Example AT+CGAUTO=0 OK 11.2.10 AT+CGANS AT+CGANS: configure MT to respond to the request of PDP context(which has already been notified TE by RING and CRING) from network terminal Test Command AT+CGANS=? Return +CGANS: (list of supported s),(list of supported s) OK Read Command None Return Write Command AT+CGANS=[,[,[]]] Return OK / ERROR Reference : data, presents how to respond, accept it or reject it response description 0 Refuse the PDP context requests initiated by network terminals 1 Accept it and initiate PDP CONTEXT activation : (PDP Context Identi fier)interger(range, 1--15), presents PDP context ID. Example +CRING:GPRS”IP”,”104.156.74.8” Shanghai Sendtrue Technologies Co.,Ltd Page 98 of 141

99 SM5100B-D AT Command AT+CGANS=1 OK 11.2.11 AT+CGCLASS AT+CGCLASS: set the GPRS type of MT Test Command ? AT+CGCLASS= Return +CGCLASS: (list of supported s) OK Read Command AT+CGCLASS? Return +CGCLASS: OK Write Command AT+CGCLASS=[] Return OK / ERROR Reference : present GPRS type Class description 0 class B class C in circuit switched only mode(lowest) 1 If MT is in GPRS attach status, and se t the GPRS type of MT to CC, MT will initiate GPRS detach process. Example AT+CGCLASS=“CC” OK AT+CGCLASS=”A” ERROR 11.2.12 AT+CGEREP AT+CGEREP: set whether MT sends response initiatively Test Command AT+CGEREP=? Return +CGEREP: , OK Read Command AT+CGEREP ? Return +CGEREP: , OK Write Command AT+CGEREP=[[,]] Return OK / ERROR Shanghai Sendtrue Technologies Co.,Ltd Page 99 of 141

100 SM5100B-D AT Command Reference : mode description 0 Stores echoed characters in MT cache 1 If MT-TE link is not available, discard initiative echo characters, Otherwise send them to TE directly If MT-TE link is not available, st ore echo character to cache and 2 echo it when it’s available. Otherwise send them directly to TE. : bfr description 0 Clear echo characters in MT cac he(effective to 1 and 2 mode) 1 Send the content in MT cache to TE(effective to 1 and 2 mode) Example AT+CGEREP=0,1 OK AT+CGEREP=2,0 OK 11.2.13 AT+CGREG AT+CGREG: allow MT to echo network reg ister status and location message Test Command AT+CGREG=? Return +CGREG: (list of supported s) OK Read Command AT+CGREG? Return +CGREG: ,[,,] or +CME ERROR: Write Command AT+CGREG=[] Return N=1 +CGREG: N=2 +CGREG: [,,] Reference : n description 0 Disable the auto echo of network register status 1 Enable the auto echo of network register status. +CGREG: 2 Enable the auto echo of network register status and the location message . +CREG:[,,] : stat description 0 Not register and no attempt of ME 1 Registered local network 2 Not register and ME is attemptting to do 3 Registration rejected Network registration unknown 4 Shanghai Sendtrue Technologies Co.,Ltd Page 100 of 141

101 SM5100B-D AT Command 5 Registered and roam : two bytes, location coding, hex format, for example ”00C3” is equal to 195 : two bytes, Cell ID, hex format Example AT+CGREG=1 +CGREG: AT+CGREG=2 +CGREG: [,,] 11.2.14 AT+CGSMS AT+CGSMS: select the service type of SMS sending Test Command AT+CGSMS=? Return +CGSMS: (list of currently available s) OK Read Command None Return Write Command AT+CGSMS=[] Return OK / ERROR Reference : parameters, present service type service description GPRS 0 1 circuit switched GPRS preferred(use circuit switc 2 hed if GPRS not available) 3 circuit switched preferred(use GPRS if circuit switched not available) Note: Currently, GPRS SMS is not supported by network. Example 11.2.15 AT+CRC AT+CRC: decide whether shows the suppl ementary informat ion of incoming calls Test Command AT+CRC=? Return +CRC: (list of supported s) OK Read Command AT+CRC ? Return +CRC: [] OK Write Command AT+CRC=[] Return OK / ERROR Shanghai Sendtrue Technologies Co.,Ltd Page 101 of 141

102 SM5100B-D AT Command Reference After this function has been set, the indication of incoming calls is not RING, but +CRING: (such as +CRING:voice) : present the validity of this command n description Invalid 0 valid 1 Note: Currently, only support voice Example AT+CRC=1 OK 11.2.16 AT+CR AT+CR: decide whether to present that this CONNECT is GPRS, before send “CONNECT”, which shows the connection is successful Test Command AT+CR=? Return +CR: (list of supported s) OK Read Command AT+CR? Return +CR: [] OK Write Command AT+CR=[] Return OK / ERROR Reference : present whether to show the GPRS type of this connect description n Invalid 0 1 Valid Example AT+CR=1 OK 11.2.17 AT+CEER AT+CEER: extend the error report Test Command None Return Read Command None Return Write Command AT+CEER Return Error cause id. Please refer to the error message description in this document 1.5 +CEER: Error Reference reason why the Attach of GPRS and It reads last failed connection or the Shanghai Sendtrue Technologies Co.,Ltd Page 102 of 141

103 SM5100B-D AT Command Activate PDP context are failed. Example AT+CEER +CEER: Error 3 OK 11.2.18 Extension of ATD between terminal devices and networks, Extension of ATD: built the connections in order to send data Test Command None Return Read Command None Return Write Command ATD *[***]# Return CONNECT / ERROR Reference While performing this command, if MT has not perform GPRS attach and PDP CONTEXT ACTIVATION operation, these operations should be performed first; if not, build the connections between terminal device and network directly. : data string, GPRS service numbers are required(its value is 99) : (PDP Context Identif ier),integer (range 1--15), presents PDP context ID. This value can be blank, with a default value of 1. Example ATD*99# or ATD*99***1#] CONNECT 11.2.19 AT+SSST AT+SSST: set the MS service type Test Command AT+SSST=? Return +SSST: OK Read Command AT+SSST? Return +SSST: OK Write Command AT+SSST=[] Return OK / ERROR Shanghai Sendtrue Technologies Co.,Ltd Page 103 of 141

104 SM5100B-D AT Command Reference : service_type description 0 Services unavailable for customers 1 Customers can only choose GSM service 2 Customers can choose GSM and GPRS service at the same time Note: Command AT+SSST is SENDTRUE’s specific. Example 11.2.20 AT+SATT AT+SATT: attach or detach GPRS service Test Command AT+SATT=? Return +SATT: , OK Read Command AT+SATT? Return +SATT: OK Write Command AT+SATT=[[,]] Return OK / ERROR Reference : state description Detach 0 Attach 1 : When state=1: action_type description 0 GPRS attach; same as ”AT+CGATT=1” 1 GPRS combine attach When state=0: action_type description 0 GPRS detach; same as ”AT+CGATT=0” 1 GPRS IMSI detach 2 GPRS combine detach Note: Command AT+SATT is SENDTRUE’s specific. Example AT+SATT=1,0 OK 11.2.21 AT+SAUTOATT AT+SAUTOATT: allow MT to p erform auto attach operation Test Command AT+SAUTOATT=? Shanghai Sendtrue Technologies Co.,Ltd Page 104 of 141

105 SM5100B-D AT Command Return +SAUTOATT: OK Read Command AT+SAUTOATT ? Return +SAUTOATT: OK Write Command AT+SAUTOATT=[] Return OK / ERROR Reference : description state 0 Set to auto attach 1 Set to manual attach(cancel auto attach) Note: Command AT+SAUTOATT is SENDTRUE’s specific. Example AT+SAUTOATT=1 OK 11.2.22 AT+SGPRSDATA AT+SGPRSDATA: specify the data leng th of GPRS data sent by MT Test Command AT+SGPRSDATA=? Return +SGPRSDATA: (0-10000) OK Read Command AT+SGPRSDATA? Return support +SGPRSDATA OK Write Command AT+SGPRSDATA=[] Return OK / ERROR Reference : integer,the length of sent data with the range 0-10000 Note: The data used in the command AT+SGPRSDATA is generated randomly.They are mainly used in test.This command is SENDTRUE’s specific. Example Send 2000 data: AT+SGPRSDATA=2000 OK 11.2.23 ATO ATO: Switch from command mode to data mode Execution ATO Command Return CONNECT/NO CARRIER Reference Shanghai Sendtrue Technologies Co.,Ltd Page 105 of 141

106 SM5100B-D AT Command Example 11.2.24 +++ +++: Switch from data mode or PPP online mode to command mode Execution +++ Command Return OK Reference This Command is only available during a CSD call or a GPRS connection. The +++ character sequence causes the TA to cancel the data flow over the AT interface and switch to Command mode. This allows you to enter AT Command while maintaining the data connection to the remote server or, accordingly, the GPRS connection. To prevent the +++ escape sequence from being misinterpreted as data, it should comply to following sequence: 1. No characters entered for T1 time (0.5 seconds) 2. “+++” characters entered with no characters in between 3. No characters entered for T1 timer (0.5 seconds) 4. Switch to Command mode, otherwise go to step 1. Note: To return from Command mode back to data or PPP online mode: Enter ATO Example Shanghai Sendtrue Technologies Co.,Ltd Page 106 of 141

107 SM5100B-D AT Command 12.TCP/IP commands TCP/IP commands are relate to network communication that set TCP/IP parameters, configure network relative parameters. 12.1 Overview of special commands number command Description AT+SDATACONF 1 meters of data sent by Config the configure para AT commands based on GPRS 2 AT+SDATASTART Enable GPRS service 3 AT+SDATATSEND Send the data specified by user in transparent mode. Read the received data and display in transparent AT+SDATATREAD 4 mode. Send the character string data specified by user 5 AT+SDATASEND 6 AT+SSTRSEND Send the character strings specified by customer 7 AT+SDATAREAD Read the received data from the buffer. Configure the display format and the mode when 8 AT+SDATARXMD received data. Require socket status 9 AT + S D ATA S TAT U S AT + T RT Set network data resend times after failing to 10 send data 12.2 Detailed description of TCP/IP commands 12.2.1 AT+SDATACONF AT+SDATACONF: config the configure parameters of data sent by AT commands based on GPRS Test Command AT+SDATACONF=? Return +SDATACONF: ,,,, OK Read Command AT+SDATACONF? Return +SDATACONF:[,,,] [,,,,] ... [,,,,] Write Command ect_type>,,

108 SM5100B-D AT Command _DSN>,[,]] Return OK / ERROR Reference After configuration, AT+SDATASTART command builds the lower data links between GPRS and networks. If the link is built successfully, user can send nd receive data by AT+SDATAREAD. specified data by AT+SDATASEND a : integer; range 1-10, used in connection built by local identification. : character string; Curre ntly, ”UDP” and ”TCP” are supported. : character string ; presents server ip addresses :character stri ng; presents server DNS : integer; presents server port id : integer; present port id of itself Note: Command AT+SDATACONF is SENDTRUE’s specific. Example The command sequence below checks whet her PDP context has been activated, then config the parameter of GPRS data service and send UDP data: AT+CGACT=1,1 OK AT+SDATACONF=1,”UDP”,”211.144.193.27”,7000 OK AT+SDATASTART=1,1 OK AT+SSTRSEND=1,” FROM SENDTRUE” OK The command sequence below checks whet her PDP context has been activated, then config the parameter of GPRS data service and send TCP data: AT+CGACT=1,1 OK AT+SDATACONF=1,”TCP”,”202.106.182.230”,110 OK AT+SDATASTART=1,1 OK AT+SDATAREAD=1 <+OK > [email protected] OK 12.2.2 AT+SDATASTART AT+SDATASTART: enable GPRS service, af ter configures parameters. It refers to AT+SDATACONF command Test Command AT+SDATASTART=? Return +SDATASTART: , OK Shanghai Sendtrue Technologies Co.,Ltd Page 108 of 141

109 SM5100B-D AT Command Read Command AT+SDATASTART? Return +SDATASTART: [,] [,] ... [,] OK Write Command AT+SDATASTART=[,] Return OK / ERROR Reference : integer, range 1-10, used in connection built by local identification. : State description 0 Deactivate UDP/TCP connection 1 Activate UDP/TCP connection Note: Command AT+SDATASTART is SENDTRUE’s specific. Example AT+SDATASTART=1,1 OK 12.2.3 AT+SDATATSEND AT+SDATATSEND: send the data specified b y user. Refer to AT+SDATACONF Test Command AT+SDATATSEND=? Return +SDATATSEND: , OK Read Command None Return Write Command AT+SDATATSEND=[, > ] Return OK / ERROR Reference : integer, range 1-10, used in connection built by local identification. : integer, presents the length of sent data. The max length is 1460. At any time, the length should be equal to or less than the MAX length, or sending data will be failed. : send the data. Example 12.2.4 AT+SDATATREAD AT+SDATATREAD: Shanghai Sendtrue Technologies Co.,Ltd Page 109 of 141

110 SM5100B-D AT Command Test Command AT+SDATATREAD=? Return +SDATATREAD: OK Read Command None Return Write Command AT+SDATAREAD=[] Return Display the received data according to the type . ASCII type: +SSTR:,< data in ASCII type > Reference : integer with a range of 1-10, used in connection built by local identification Example 12.2.5 AT+SDATASEND AT+SDATASEND: send the character strin g data specified b y user. Refer to AT+SDATACONF Test Command AT+SDATASEND=? Return +SDATASEND: , OK Read Command None Return Write Command AT+SDATASEND=[, > ] Or AT+SDATASEND= ,, Return OK / ERROR Reference : integer, range 1-10, used in connection built by local identification. : integer, presents the length of sent data. The max length is 1000. At any time, the length should be equal to or less than the MAX length, or sending data will be failed. : send the data. Note: Command AT+SDATASEND is SENDTRUE’s specific. Example AT+SDATASEND=1,4 >44454647 OK 12.2.6 AT+SSTRSEND AT+SSTRSEND: send the character strings specified by customer. It refers to command AT+SDATACONF Shanghai Sendtrue Technologies Co.,Ltd Page 110 of 141

111 SM5100B-D AT Command Test Command AT+SSTRSEND=? Return +SSTRSEND: , OK Read Command None Return Write Command AT+SSTRSEND=[,] Return OK / ERROR Reference : integer with a range of 1-10, used in connection built by local identification : character string type, data needed to be sent by users, with a length of (1-1000) Note: Command AT+SSTSEND is SENDTRUE’s specific. Example AT+SSTRSEND=1,”Sendtrue” OK 12.2.7 AT+SDATAREAD AT+SDATAREAD: Read the received data fr om buffer and display the data in the format of the command AT+SDATARXMD setting. Test Command AT+SDATAREAD=? Return +SDATAREAD: OK Read Command None Return Write Command AT+SDATAREAD=[] Return Display the received data according to the type . ASCII type: +SSTR:,< data in ASCII type > HEX type: +SDATA:,,< data in HEX type> The context of the data in ASCII type or in HEX type will be empty if there has no data received. Reference : integer with a range of 1-10, used in connection built by local identification Note: Command AT+SDATAREAD is SENDTRUE’s specific. Example 12.2.8 AT+SDATARXMD AT+SDATARXMD: Configure the display fo rmat of the received data, set the mode of the module when received the data. Test Command AT+SDATARXMD=? Shanghai Sendtrue Technologies Co.,Ltd Page 111 of 141

112 SM5100B-D AT Command Return +SDATARXMD: ,, OK Read Command AT+SDATARXMD? Return All connect_id status, format as follows: +SDATARXMD:,, OK Write Command AT+SDATARXMD=[,,[]] Return OK / ERROR Reference : integer with a range of 1-10, used in connection built by local identification : description State 0 The received data accord to HEX character string (default value) 1 The received data accord to ASCII character string : Mode description 0 UDP: module echoes the received data in unsolicited mode, (default value) user can also to use the command AT+SDATAREAD to read data again. TCP: module notifies the user with +STCPD: in unsolicited mode to indicate there are TCP data received in the connect_id. User should use command AT+SDATAREAD to read TCP data. In addition, module will send unsolicited message +STCPC: to indicate that the peer entity closed the TCP connect(socket disconnect unconventionally will not send unsolicited notification) 1 UDP: module do not echo UDP data when received data TCP: module do not send the notification to user when received TCP data or connection closed by the peer entity. Note: Command AT+SDATARXMD is SENDTRUE’s specific. Example 12.2.9 AT+SDATASTATUS AT+SDATASTATUS: Query sockets status and every socket communication information. Test =? AT+ SDATASTATUS Command +SDATASTATUS: (0-10) Return OK Execution AT+SDATASTATUS Shanghai Sendtrue Technologies Co.,Ltd Page 112 of 141

113 SM5100B-D AT Command Command +SOCKETSTATUS: Return ,,,,,, [+SOCKETSTATUS: ,,,,,,[...]] OK Write AT+SDATASTATUS= Command +SOCKETSTATUS: Return ,,,,,, OK / ERROR Reference :integer; the id of the socket with the range 0-10 description 0 Clear all the data counters. 1-10 The id of the socket. :integer;this is online flag description 0 The socket is out of line. The socket is online. 1 :integer;current status of the socket :integer;send data counter for the socket :integer; acked data counter for the socket e data counter for the socket :integer;recevic Example 12.2.10 AT+TRT AT+ TRT: Set network data resend times after failing to send data write Command AT+ TRT = Return OK / ERROR Reference :data resend times with the range 1-12 Example Shanghai Sendtrue Technologies Co.,Ltd Page 113 of 141

114 SM5100B-D AT Command 13. AUDIO commands AUDIO commands are relate to the control and the parameters of the audio partment. 13.1 Overview of AUDIO commands description number command Configure the sound mode 1 AT+SSAM AT+SPEAKER 2 Config MIC and SPEAKER channels 3 AT + S D M U T Mute the downlink voice 4 AT+CMUT Mute control 5 AT+CRMP Test ring of incoming calls Play sound in a certain frequency 6 AT+STONE 7 AT+VGR Tune the sound level of the speaker 8 AT+SDTMF Play a DTMF tone on the current speaker Select the specific ring melody 9 AT+SCDM Configure the ECHO CA 10 AT+ECHO NCELLATION function for voice calls Config the parameter of audio gain 11 AT+SSAP AT + S T M F Store and delete the file in MIDI format 12 Set the speaker equalizer type AT+SEQT 13 14 Configure the sound parameters in project mode AT+SSEA 13.2 Detailed description of AUDIO commands 13.2.1 AT+SSAM AT+SSAM: configure the sound mode Test Command AT+SSAM=? Return +SSAM: (0-2) OK Read Command AT+SSAM? Return +SSAM: OK Write Command AT+SSAM= Return OK Reference : mode description 0 Hand hold mode 1 Earphone mode Shanghai Sendtrue Technologies Co.,Ltd Page 114 of 141

115 SM5100B-D AT Command Example 13.2.2 AT+SPEAKER AT+SPEAKER: config MIC and SPEAKER channels Test Command AT+SPEAKER=? Return +SPEAKER: (0-1),(0-1) OK Read Command AT+SPEAKER? Return +SPEAKER: , OK Write Command AT+SPEAKER=, Return OK / ERROR Reference After setting audio mode through AT+SSAM command, user should set MIC and SPEAKER channel again if necessary. : mic_mode description 0 MIC mode 1 MIC aux mode mode description SPEAKER mode 0 SPEAKER aux mode 1 Default setting: MIC and SPEAKER channels are set to master channel Example 13.2.3 AT+SDMUT AT+SDMUT: mute the downlink voice Test Command AT+SDMUT=? Return +SDMUT: OK Read Command AT+SDMUT? Return +SDMUT: OK Write Command AT+SDMUT= Return OK / ERROR Reference : 0: downlink voice mute off 1: downlink voice mute on Shanghai Sendtrue Technologies Co.,Ltd Page 115 of 141

116 SM5100B-D AT Command Example 13.2.4 AT+CMUT AT+CMUT: mute the microphone Test Command AT+CMUT=? Return +CMUT: OK Read Command AT+CMUT? Return +CMUT: OK Write Command AT+CMUT= Return OK / ERROR Reference description mode 0 Microphone mute off 1 Microphone mute on Note: currently, write command is not be supported. Example 13.2.5 AT+CRMP AT+CRMP: test ring of incoming calls Test Command AT+CRMP= ? Return +CRMP: (0-3),(0-65535),(0-47) OK Read Command None Return Write Command AT+CRMP=[,,] Return OK Reference description Call type Receive data 0 1 Receive fax 2 Receive short messages num description 0 Keep on playing until user stops it(default value) 1-65536 Play time/times (=4) index 0 Stop playing ring 0 Stop playing short message melody music Shanghai Sendtrue Technologies Co.,Ltd Page 116 of 141

117 SM5100B-D AT Command 1-15 The manufacture Types of short message 1-4 defined melody in melody module Downloaded melodies The index of short 16-47 >4 by users message is equal to 1 Example Play ring melody: AT+CRMP=0, 1, 5 +CRMP: 5 OK Play short message melody: AT+CRMP=3, 1, 4 +CRMP: 4 OK 13.2.6 AT+STONE AT+STONE: play sound in a certain f requency. Frequency and volume and duration can all be set Test Command AT+STONE= ? Return +STONE: (0,1),(0-3400),(0-50) OK Read Command AT+STONE? Return OK / ERROR Write Command AT+STONE=,[,] Return OK / ERROR Reference mode description 0 Stop playing 1 Begin playing Freq: speaker(1-3400Hz) Buzzer (1-3400Hz) Duration: (0-50), unit 100ms.0 is default value, time is infinite. Playing can be stopped by AT+STONE=0. Example 13.2.7 AT+VGR AT+VGR: tune the sound level of the speaker Test Command AT+VGR= ? Return +VGR: (1-9) OK Shanghai Sendtrue Technologies Co.,Ltd Page 117 of 141

118 SM5100B-D AT Command Read Command AT+VGR? Return +VGR: OK Write Command AT+VGR= Return OK Reference : the value of speaker, value range 1-9 Example 13.2.8 AT+SDTMF AT+SDTMF: play DTMF tone on the current speaker Test Command AT+SDTMF= ? Return ,#,A,B,C,D),(0-50) +SDTMF: (0-1),(0-9,* OK Read Command None Return Write Command AT+SDTMF=[,,] Return OK / +CME ERROR: Reference mode description 0 Stop sending keyboard tone 1 Send keyboard tone : {-9,*,#,A,B,C,D}Character Set : (0-50) unit 100ms.0 is default value, time is infinite. Playing can be stopped by AT+STONE=0. Example 13.2.9 AT+SCDM AT+SCDM: select the sp ecific ring melody Test Command AT+SCDM= ? Return +SCDM: (0-47) OK Read Command AT+SCDM? Return +SCDM: OK Write Command AT+SCDM= Return OK Reference melody description 0 No ring melody, the default value; The manufacturer defined melody in module 1...15 Shanghai Sendtrue Technologies Co.,Ltd Page 118 of 141

119 SM5100B-D AT Command 16...47 Downloaded melodies by users(if do not have downloaded melodies, it will be wrong when you set.) Example 13.2.10 AT+ECHO AT+ECHO: configure the ECHO CANCELLATI ON function for voice calls Test Command None Return Read Command AT+ECHO ? Return +ECHO: , , , , , , , OK Write Command AT+ECHO= , , , , , , , Return OK / ERROR Reference mode description 0 Deactivate ECHO 1 Activate ECHO Algold description 0 1 Echo Cancellation 1 3 Echo Cancellation Echo Cancellation 1 : (4 parameters) 0: 31db(default) 1 : 29db 2: 27db ... 15: 1db 1 0: 1db 1: 2db 2: 3db 3: 4db(default) 2 : [0...31] (10 by default) 3 4 : [0...31] (7 by default) Echo Cancellation 3: (3 parameters) 1 : [0...63] (30 by default) 2 : [0...32767] (8000 by default) 3 : [64...256] (256 by default) Status description 0 Echo Deactivated 1 Echo Activated for Mic/Spk one 2 Echo Activated for Mic/Spk two 3 Reset the product Note: currently, this command is not be supported. Example Shanghai Sendtrue Technologies Co.,Ltd Page 119 of 141

120 SM5100B-D AT Command 13.2.11 AT+SSAP AT+SSAP: config the parameter of audio gain Test Command AT+SSAP=? Return +SSAP: (0-2),(0-1),(0-11),(0-32767) OK Read Command AT+SSAP? Return +SSAP: ,,< UL_digital_gain >,< DL_PGA_gain >,< DL_digital_gain > [+SSAP: ,,< UL_digital_gain >,< DL_PGA_gain >,< DL_digital_gain >] [[+SSAP: ,,< UL_digital_gain >,< DL_PGA_gain >,< DL_digital_gain >]] OK Write Command AT+SSAP=,,, Return OK Reference The settings will not be saved in MS after system reboot. : mode description Set HANDHOLD gain parameter 0 1 Set HANDFREE gain parameter Set EARPHONE gain parameter 2 type description 0 Set downlink gain parameter 1 Set uplink mode gain parameter : the range of PGA_gain is between 0 and 11, which is setting the stimulant gain : the range of digital_gain is between 0 and 32767, which is setting the digital gain Example AT+SSAP? +SSAP: 0,7,12288,0,4096 +SSAP: 1,6,32767,2,4096 +SSAP: 2,6,4595,2,5785 OK 13.2.12 AT+STMF AT+STMF: store and delete the file in MIDI format Test Command AT+STMF=? Return +STMF: (16-47),(1-1024),(1-500) OK Shanghai Sendtrue Technologies Co.,Ltd Page 120 of 141

121 SM5100B-D AT Command Read Command AT+STMF? Return +STMF: , OK Write Command AT+STMF=,, >midi_data (ctrl+z) Return OK Reference Users input file information via termianal, input Ctrl+Z store or input Esc to give up storing all input data. They can use this command continuously to store more than one block_num(successfully) blocks in the same index. index: 16-47(1-15 are module configured MIDI) block_num: 0-255 block num of input files(0: delete respective midi) block_length: the length of 1-500 files remain_size: 0-192k(space left to store midi) total_size: 192k, maximum space of file to store midi Example Write the first data block AT+STMF=16,1,20 >45D678F3E8F9D34249A9(ctrl+z) OK Write the second data block AT+STMF=16,2,20 >87D675F3E8F9C34249A9(ctrl+z) OK Get the size of file 16 AT+STMF=16 +STMF:40 OK Delete MIDI file 16 AT+STMF=16,0 OK 13.2.13 AT+SEQT AT+SEQT: set the speaker equalizer type Test Command AT+SEQT=? Return +SEQT: (0-3) OK Read Command AT+SEQT? Return +SEQT: OK Shanghai Sendtrue Technologies Co.,Ltd Page 121 of 141

122 SM5100B-D AT Command Write Command AT+SEQT= Return OK / ERROR Reference : Type description 0 Normal type 1 BASS type 2 ALT type 3 Special effect Default setting: Speaker is set to normal type in default. Note: SM5100B-D module does not support this function Example 13.2.14 AT+SSEA AT+SSEA: configure the sound pa rameters in project mode Test Command AT+SSEA=? Return +SSEA: (0-11) OK Read Command None Return Write Command AT+SSEA= > DATA (ctrl+z/ESC) Return OK / ERROR Reference The sound parameters are gain via AT command by inputting DATA confirmed by crtl+z (given by pressing ESC), after command AT+SSEA= (setting parameters) is performed. : configured parameters description Type Set sidetone digital gain parameter 0 1 Set hand hold gain 1 parameter 2 Set free hand digital gain 1 parameter 3 Set hand hold analog gain parameter 4 Set free hand analog gain parameter 5 Set main MIC equalizer parameter 6 Set supplementary MIC equalizer parameter 7 Set main SPEAKER equalizer parameter 8 Set supplementary SPEAKER equalizer parameter 10 Set hand hold digital gain 2 parameter 11 Set free hand digital gain 2 parameter DATA are parameter values of upload an downloaded transfer. It is in AUTO_TEST_DATA_T ASCII mode and in the same row with Shanghai Sendtrue Technologies Co.,Ltd Page 122 of 141

123 SM5100B-D AT Command AUDIO_TEST_DATA. If UL_equalizer_coeff[0]=0x54F2 is going to be set, DATA must begin with “54F2...” with a total length of 352(reserved must be also be filled. Typedef_struct { int16 UL_equalizer_coeff[33]; int16 DL_equalizer_coeff[33]; int16 UL_PGA_gain; int16 DL_PGA_gain; int16 UL_digital_gain; int16 DL_digital_gain; int16 UL_digital_scale; int16 DL_digital_scale; int16 midi_PGA_gain_base; int16 Digital_sidetone_gain; int16 DL_IIR1_coeff[6]; int16 DL_IIR2_coeff[6]; int16 reserved[2]; }AUDIO_TEST_DATA_T; Example Shanghai Sendtrue Technologies Co.,Ltd Page 123 of 141

124 SM5100B-D AT Command 14. Special commands query serial link handler, MIC, SPEAKER, Special commands are related to set and GPIO, NV and so on. 14.1 Overview of special commands number command description AT+SMUX 1 Configure the multiplexing mode 2 AT+S32K Allow or forbid entering of sleep mode 3 AT+SIND Set some status of a system 4 Select the frequency of module AT+SBAND Manage files 5 AT+SMGF 6 AT+SMGD Manage directory 7 AT+SSMP Require ME be sent in maximum power Configure GPIO direction 8 AT+SSGF 9 Set and query GPIO level AT+SSGS 10 AT+SNVM Manage the NVITEM data through NVITEM id 14.2 Detailed description of GPRS commands 14.2.1 AT+SMUX de, but the default mode will be used, AT+SMUX: configure the multiplexing mo after the product reboot Test Command AT+SMUX=? Return +SMUX: OK Read Command AT+SMUX? Return +SMUX: OK Write Command AT+SMUX= Return OK / ERROR Reference The multiplexing mode refers to the applendix 16.1 : mode description 0 Multiplexing mode disabled. AT commands should not be used, while the module is transferring data 1 Multiplexing mode enabled. AT commands could be used, while the module is transferring data Shanghai Sendtrue Technologies Co.,Ltd Page 124 of 141

125 SM5100B-D AT Command Example 14.2.2 AT+S32K AT+S32K: allow or forbid entering of sleep mode Test Command AT+S32K=? Return +S32K: (0-1) OK Read Command AT+S32K? Return +S32K: OK Write Command AT+S32K= Return OK / ERROR Reference : mode description 0 Forbid to enter into sleep mode 1 Allow to enter into sleep mode Note: can not be saved to NV. The default value is 0 at each time system reboots Example 14.2.3 AT+SIND AT+SIND: set some status of a system which sends indication automatically Test Command AT+SIND=? Return +SIND: (0-1023) OK Read Command AT+SIND? Return +SIND: OK Write Command AT+SIND= Return OK / ERROR Reference The status as follows: -------Indication status of the SIM card -------Indication status of the call -------Indication status of the AT command : Indlevel description 1(bit-0) SIM card Insert/Remove indications 2(bit-1) Calling party alert indication 4(bit-2) Indication that product is ready(except for phonebooks, AOC, SMS), but still in emergency mode Shanghai Sendtrue Technologies Co.,Ltd Page 125 of 141

126 SM5100B-D AT Command 8(bit-3) Indication that the product is ready to process all AT commands 16(bit-4) Indication that a new call identifier has been created 32(bit-5) Indication that a call has been released Network service available indication 64(bit-6) Network lost indication 128(bit-7) 256(bit-8) Audio on indication 512(bit-9) SIM phonebook status indication If =0(default value), no indication +SIND:will be sent. Above value is available. The value range is 0<=IndLevel<=1023. Value set by AT+SIND command will be stored in FLASH automatically. Indication format: +SIND: [,] : call id If the indication is about SIM card phonebook: +SIND: ,,,.,, : SIM phonebook () (.SM., .FD., .LC., .MC.) : status description 0 Not load from SIM 1 loaded from SIM : description Event 0 SIM card removed SIM card inserted 1 Ring melody 2 3 AT module is partially ready AT module is totally ready 4 ID of released calls 5 6 Released call whose ID= 7 The network service is available for an emergency call 8 The network is lost 9 Audio ON 10 Show the status of each phonebook after init phrase 11 Registered to network Example 14.2.4 AT+SBAND AT+SBAND: select the frequency of module(such as GSM900) Test Command AT+SBAND=? Return +SBAND: (0-10) OK Shanghai Sendtrue Technologies Co.,Ltd Page 126 of 141

127 SM5100B-D AT Command Read Command AT+SBAND? Return +SBAND: OK Write Command AT+SBAND= Return OK Reference value:0-10 value description 0 GSM900 1 DCS1800 2 PCS1900 3 GSM850 4 GSM900&DCS1800 5 GSM850&GSM900 6 GSM850&DCS1800 7 GSM850&PCS1900 8 GSM900&PCS1900 9 GSM850&GSM900&DCS1800 10 GSM850&GSM900&PCS1900 Example 14.2.5 AT+SMGF AT+SMGF: manage files. Users can us e this command more th an once to store more than (continuous) data blocks of block_num in the same Test Command AT+SMGF=? Return +SMGF: (0-5),,(0-6553 5),(1-1024),(0-65535), OK Read Command AT+SMGF? Return +SMGF: (free space),(used space) OK Write Command AT+SMGF=,[“”,,,,””] Return OK / ERROR Reference : mode description 0 Read a file 1 Read the size of a file 2 Delete a file 3 Add a file 4 Replace a file 5 Rename a file : 1-65535 of transferred files, the first block must be block_num=1. Shanghai Sendtrue Technologies Co.,Ltd Page 127 of 141

128 SM5100B-D AT Command : the length of the downloaded data block(its max value is 1024), which must be consistent with the length of transferred data. : total number of downloaded data block with a range of 1-65535 。 : the name in HEX style(includes direct path) : modified file name in HEX style(includes direct path) Example read file “FILE/PIC/PHOTO.GIF”: AT+SMGF=0,”46494C452F5049432F47462E474946”,0 +SMGF: ,,,data OK read the size of file ”FILE/PIC/PHOTO.GIF”: AT+SMGF=1,”46494C452C5049432F47462E474946” +SMGF: OK Delete file ”FILE/PIC/ PHOTO.GIF”: AT+SMGF=2,”46494C452C5049432F47462E474946” OK Add a new file ”FILE/PIC/ PHOTO.GIF”: AT+SMGF=3,”46494C452C5049432F47462E474946”,1,10,10 >A5b7d7089 OK AT+SMGF=3, ”46494C452C5049432F47462E474946”,2,10,10 >A5b7d7089 OK Replace file ”FILE/PIC/ PHOTO.GIF”(if it is the first time, must be 1 ): AT+SMGF=4, ”46494C452C5049432F47462E474946”,1,10,10 >A5b7d7089 OK Rename file ”FILE/PIC/OLD.GI F” to ”FILE/PIC/NEW.GIF”: AT+SMGF=5, ”46494C452F5049432F4F4C442E474946”,0,1,0,”46494C452 F5049432F4E5572E474946” OK 14.2.6 AT+SMGD AT+SMGD: manage directory Test Command AT+SMGD= ? Shanghai Sendtrue Technologies Co.,Ltd Page 128 of 141

129 SM5100B-D AT Command Return +SMGD: (0-3),, OK Read Command None Return Write Command AT+SMGD=,”

”,[“”] Return OK / ERROR Reference : Mode description 0 Query a directory 1 Add a directory 2 Delete a directory 3 Rename a directory : directory name in HEX style(includes direct path) Example Query directory ”FILE/PIC”: AT+SMGD=0,”46494C452F504943” +SMGD:128,22129664,FILE/PIC OK Add directory ”FILE/PIC”: AT+SMGD=1,”46494C452F504943” OK Delete directory ”FILE/PIC”: AT+SMGD=2,”46494C452F504943” OK Rename directory ”FILE/PIC” to “FILE/MIDI”: AT+SMGD=3,”46494C452F504943”,”46494C452F4D494449” OK 14.2.7 AT+SSMP AT+SSMP: require ME be sent in maximum power Test Command None Return Read Command None Return Write Command AT+SSMP Return OK / ERROR Reference Example Shanghai Sendtrue Technologies Co.,Ltd Page 129 of 141

130 SM5100B-D AT Command 14.2.8 AT+SSGF AT+SSGF: configure GPIO direction Test Command ? AT+SSGF= Return +SSGF: (0-255 ),(0-1),(0-1) OK Read Command None Return Write Command AT+SSGF=,, Return [+SSGF: ] OK or ERROR Reference : the max range of gpio_id is between 0 and 255. The available id number is determined by the chip type. : Type description 0 Set GPIO direction Get GPIO direction 1 : this parameter is invalid when the type set to 1 Type description Set the GPIO to input direction when type=0 0 Set the GPIO to output direction when type=1 1 Note: this command will change GPIO function, and inappropriate setting will cause system exception. Example Set GPIO 6 to output direction: AT+SSGF=6,0,1 OK Get GPIO 6 direction setting: AT+SSGF=6,1 +SSGF:1 OK 14.2.9 AT+SSGS AT+SSGS: set and query GPIO level. The operation will fail when the appointed gpio direction does not set to output direction Test Command AT+SSGS= ? Return +SSGF: (0-255 ),(0-1),(0-1) OK Read Command None Shanghai Sendtrue Technologies Co.,Ltd Page 130 of 141

131 SM5100B-D AT Command Return Write Command AT+SSGS=,, Return +SSGS: [] OK or ERROR Reference : the max range of gpio_id is between 0 and 255. The available id number is determined by the chip type. : Type description 0 Set GPIO level 1 Get GPIO level : this parameter is invalid when the type set to 1 Type description 0 Set the GPIO level to low(0) when type=0 1 Set the GPIO level to hign(1) when type=1 Example AT+SSGS=7,0,1 Ok AT+SSGS=7,0,0 OK AT+SSGS=7,1 +SSGS: 0 OK 14.2.10 AT+SNVM manage the NVITEM data through NVITEM id AT+SNVM: Test Command AT+SNVM= ? Return +SNVM: (0-4),(0-1199),(0-1199) Read Command None Return Write Command AT+SNVM=,[,] Return OK / ERROR Reference This function is only supported by the module production, and the total nvitem data size is determined according to the type of module. : =0 means to read the appointed NEITEM id’s data and the data will be output as HEX format. The output of this command as the following: +SNVM: , Shanghai Sendtrue Technologies Co.,Ltd Page 131 of 141

132 SM5100B-D AT Command OK Which the indicates the NVITEM data size in binary. =1 means to write NVITEM id’s data into module and the original data will be erased if existing without any prompt. This command will output “>” as a hint for input data. Using as the terminater character of input or to cancel the input data. The data length of a NVITEM id will not exceed 512 bytes in binary. =2 means to replace the appointed NVITEM id’s data. This command will write data into module if the destination NVITEM id is unoccupied and will erase the data if appointed NVITEM id’s data exists already. This command will output “>” as a hint fo r input data. Using as the terminater character of input or to cancel the input data. The data length of a NVITEM id will not exceed 512 bytes in binary. =3 means to query the appointed NVITEM id’s data size and the output format as the following: +SNVM: OK =4 means to delete the appointed NVITEM id range data. The NVITEM id range from to , and if is absence, then only the will be erased. : indicates the current operate NVITEM id 。 The range is from 0 to 1199. : This parameter is valid only when parameter =4, and will be discard in others case. When =4, this command will delete NVITEM data from to . If is absence, then only will be deleted. The parameter should equal or lager than if avaliable 。 Example AT+SNVM=1,6 >30313233343536 OK Shanghai Sendtrue Technologies Co.,Ltd Page 132 of 141

133 SM5100B-D AT Command 15. MSC illustration 15.1 MO call 15.2 MT call Shanghai Sendtrue Technologies Co.,Ltd Page 133 of 141

134 SM5100B-D AT Command 15.3 SMS 15.4 GPRS connect Shanghai Sendtrue Technologies Co.,Ltd Page 134 of 141

135 SM5100B-D AT Command 15.5 Send GPRS data manually Shanghai Sendtrue Technologies Co.,Ltd Page 135 of 141

136 SM5100B-D AT Command 16. Appendix 16.1 Multiplexing protocol 16.1.1 Introduction The Sendtrue multiplexing protocol operates between a DCE(Data Communication Equipment:the product) and a DTE(Data Terminal Equipment). It allows a double session over a serial interface: one for AT commands and one for DATA communications. When AT+SMUX=1, activate the multiplexing mode. AT commands DATA communications are encapsulated into packets confir ming to the protocol. The header of these packets allows to recognize whether it is a DATA packet or an AT command packet. AT+SMUX=0 deactivates multiplexing protocol. This appendix presents how the multiplexing mode deals with AT commands and data flow. It also describes the format of DATA and AT command packets. 16.1.2 AT commands packets An AT command is encapsulated into a packet with a header which allows to separate it from DATA packets. This command is formed by a header(3 BYTE), the AT command itself ans a CHECKSUM(1 BYTE): B7 B6 B5 B4 B3 B2 B1 B0 Start pattern,0Xaa AT command length LSB AT command pattern,0x1D | AT command length MSB AT command Checksum The first byte(0xAA) is used to identify the packet. The second byte represents the 8 LSB(Low Significant Bits) bits of the length of the AT commands. The third byte consists of two parts: the 3 LSB bits icant Bit) bits of the are the 3 MSB(Most Signif length of AT command; the 5 MSB(0xE8)are used to indetify an AT command(the maximum possible length of AT command is 2047 bytes. Currently, the system supports the maximum length of AT command is 1100 bytes). CHECKSUM is the addition of all the bytes. 16.1.3 Data packets The packet is composed of header (3 BYTE), Header and data together can identify AT commands. data and CHECKSUM (1 BYTE): Shanghai Sendtrue Technologies Co.,Ltd Page 136 of 141

137 SM5100B-D AT Command B7 B6 B5 B4 B3 B2 B1 B0 Start pattern,0XDD Data packet length LSB Data packet type length LSB | Data packet Data Bytes Checksum to identify the packet. The first byte(0xDD) is used Bits) bits of the length of the data field. The second byte represents the 8 LSB(Low Significant The third byte consists of two parts: the 3 LSB bits are the 3 MSB bits of the length of data field; the 5 MSB represents the packet type(the maximum possible length of data package is 2047 bytes. Currently, the system supports the maximum length of data package is 1600 bytes). The value of data is according to the type of packet: 0--data packet: contains the data to be transmit 1--status packet: includes SA,SB,X bits(1)and breaks condition codes as follows: R Spar Spar X BR Spar S S e e A B K I e 2--READY packet: the packet indicates that the target is ready to receive data. 3--BUSY packet: the packet indicates that the target is busy and can not receive data. Currently, other values are not used. CHECKSUM is addition of all the transmitted bytes. Result code 16.2 If the returned value indicates something wr ong, different results can be achieved by AT+CMEE=. The table below lists the possible values of returned wrong numeric error code and their description (except those corresponding with short messages): number numeric error code detailed description +CME ERROR:0 +CME ERROR: phone failure 1 +CME ERROR: no connection to phone +CME ERROR:1 2 +CME ERROR: phone-adaptor link reserved 3 +CME ERROR:2 +CME ERROR:3 +CME ERROR: operation not allowed 4 +CME ERROR: operation not supported +CME ERROR:4 5 +CME ERROR:5 +CME ERROR: PH-SIM PIN required 6 +CME ERROR: PH-FSIM PIN required +CME ERROR:6 7 +CME ERROR: PH-FSIM PUK required 8 +CME ERROR:7 +CME ERROR: SIM not inserted 9 +CME ERROR:10 +CME ERROR: SIM PIN required 10 +CME ERROR:11 11 +CME ERROR: SIM PUK required +CME ERROR:12 +CME ERROR: SIM failure +CME ERROR:13 12 13 +CME ERROR: SIM busy +CME ERROR:14 Shanghai Sendtrue Technologies Co.,Ltd Page 137 of 141

138 SM5100B-D AT Command 14 +CME ERROR: SIM wrong +CME ERROR:15 +CME ERROR:16 15 +CME ERROR: incorrect password 16 +CME ERROR:17 +CME ERROR: SIM PIN2 required 17 +CME ERROR:18 +CME ERROR: SIM PUK2 required +CME ERROR:20 +CME ERROR: memory full 18 19 +CME ERROR:21 +CME ERROR: invalid index +CME ERROR:22 +CME ERROR: not found 20 21 +CME ERROR: memory failure +CME ERROR:23 22 +CME ERROR:24 +CME ERROR: text string too long 23 +CME ERROR:25 +CME ERROR: invalid characters in text string 24 +CME ERROR:26 +CME ERROR: dial string too long +CME ERROR:27 +CME ERROR: invalid characters in dial string 25 26 +CME ERROR: GPRS operation failure +CME ERROR:28 27 +CME ERROR:29 +CME ERROR: GPRS send data failure 28 +CME ERROR:30 +CME ERROR: no network service 29 +CME ERROR: network timeout +CME ERROR:31 30 +CME ERROR:32 +CME ERROR: network not allowed - emergency calls only 31 +CME ERROR:40 +CME ERROR: ne twork personalisation PIN required twork personalisation PUK required 32 +CME ERROR:41 +CME ERROR: ne 33 +CME ERROR:42 +CME ERROR: network subset personalisation PIN required +CME ERROR:43 +CME ERROR: network subset personalisation PUK 34 required +CME ERROR: service provider personalisation PIN 35 +CME ERROR:44 required +CME ERROR:45 +CME ERROR: service provider personalisation PUK 36 required +CME ERROR:46 +CME ERROR: corporate personalisation PIN required 37 38 +CME ERROR:47 +CME ERROR: corporate personalisation PUK required +CME ERROR:60 +CME ERROR: AT command discarded 39 +CME ERROR:62 40 +CME ERROR: SIM card reject by network 41 +CME ERROR:63 +CME ERROR: SIM card service not available 42 +CME ERROR:64 +CME ERROR: SIM card PIN uninitialized +CME ERROR:65 +CME ERROR: SIM card PIN blocked 43 44 +CME ERROR: SIM card PUK blocked +CME ERROR:66 45 +CME ERROR:100 +CME ERROR: unknown 46 +CME ERROR:103 +CME ERROR: Illegal MS 47 +CME ERROR:106 +CME ERROR: Illegal ME 48 +CME ERROR:107 +CME ERROR: GPRS services not allowed 49 +CME ERROR:111 +CME ERROR: PLMN not allowed +CME ERROR: Location area not allowed 50 +CME ERROR:112 Shanghai Sendtrue Technologies Co.,Ltd Page 138 of 141

139 SM5100B-D AT Command 51 +CME ERROR: Roaming not allowed in this location +CME ERROR:113 area 52 +CME ERROR:132 +CME ERROR: Service option not supported +CME ERROR: Requested service option not +CME ERROR:133 53 subscribed 54 +CME ERROR:134 +CME ERROR: Service option temporarily out of order +CME ERROR:149 55 PDP authentication failure +CME ERROR: 56 +CME ERROR:533 +CME ERROR: Missing or unkown APN The table below lists the possible numeric error code detailed description in SMS: num numeric error code detailed description 1 +CMS ERROR: 301 + CMS ERROR: SMS ME reserved 2 +CMS ERROR: 302 + CMS ERROR: Operation not allowed +CMS ERROR: 303 + CMS ERROR: Operation not supported 3 4 + CMS ERROR: Invalid PDU mode +CMS ERROR: 304 5 +CMS ERROR: 305 + CMS ERROR: Invalid text mode 6 +CMS ERROR: 310 + CMS ERROR: SIM not inserted 7 +CMS ERROR: 311 + CMS ERROR: SIM PIN required 8 +CMS ERROR: 312 + CMS ERROR: SIM failure 9 +CMS ERROR: 313 + CMS ERROR: SIM PUK required + CMS ERROR: SIM PIN2 required 10 +CMS ERROR: 316 11 +CMS ERROR: 317 + CMS E RROR: SIM PUK2 required + CMS ERROR: SIM failure +CMS ERROR: 318 12 13 + CMS ERROR: Invalid memory index +CMS ERROR: 321 14 +CMS ERROR: 322 + CMS ERROR: SIM memory full +CMS ERROR: 330 + CMS ERROR: SMSC address unknown 15 +CMS ERROR: 334 + CMS ERROR: no +CNMA acknowledgement 16 expected The table below lists the possible numeric error code detailed description in call or GPRS service: numeric error code detailed description num +CEER: Error 0 1 + CEER ERROR: no detail information 2 +CEER: Error 1 + CEER ERROR: unassigned number 3 +CEER: Error 3 no route to destination + CEER ERROR: +CEER: Error 6 4 ROR: unacceptable channel + CEER ER 5 +CEER: Error 8 + CEER ERROR: operator determinate barring 6 +CEER: Error 16 + CEER ERROR: normal clearing 7 +CEER: Error 17 + CEER ERROR: user busy 8 +CEER: Error 18 + CEER ERROR: no user responding 9 +CEER: Error 19 + CEER ER ROR: alerting no answer + CEER ERROR: call rejected 10 +CEER: Error 21 Shanghai Sendtrue Technologies Co.,Ltd Page 139 of 141

140 SM5100B-D AT Command 11 + CEER ERROR: number changed +CEER: Error 22 +CEER: Error 26 + CEER ERROR: nonselect user clearing 12 + CEER ERROR: destination out of order 13 +CEER: Error 27 14 +CEER: Error 28 + CEER ERROR: invalid number format 15 +CEER: Error 29 + CEER ERROR: facility rejected +CEER: Error 30 + CEER ERROR: response to status query 16 +CEER: Error 31 17 + CEER ERROR: normal unspecified +CEER: Error 34 + CEER ERROR: no circuit channel available 18 +CEER: Error 38 + CEER ERROR: net out of order 19 20 +CEER: Error 41 + CEER ERROR: temporary failure 21 +CEER: Error 42 + CEER ERROR: switch congestion 22 +CEER: Error 43 + CEER ERROR: access information discarded +CEER: Error 44 23 + CEER ERROR: request circuit channel unavailable +CEER: Error 47 + CEER ERROR: resources unavailable 24 25 + CEER ERROR: QOS unavailable +CEER: Error 49 26 +CEER: Error 50 + CEER ERROR: request facility not subscribe 27 +CEER: Error 55 + CEER ERROR: CUG incoming barred 28 + CEER ERROR: bear capability not authorization +CEER: Error 57 29 +CEER: Error 58 + CEER ERROR: bear capability unavailable 30 +CEER: Error 63 + CEER ERROR: service unavailable 31 +CEER: Error 65 + CEER ERROR: bear service not implement +CEER: Error 68 32 + CEER ERROR: ACM equal or great ACMMAX 33 +CEER: Error 69 + CEER ERROR: request facility not implement + CEER ERROR: only restrict digital available 34 +CEER: Error 70 +CEER: Error 79 + CEER ERROR: service option not implement 35 36 +CEER: Error 81 + CEER ERROR: invalid ti +CEER: Error 87 + CEER ERROR: user not in CUG 37 +CEER: Error 88 + CEER ERROR: incompatibility destination 38 +CEER: Error 91 + CEER ERROR: invalid transit net 39 40 +CEER: Error 95 + CEER ERROR: invalid message semantic +CEER: Error 96 + CEER ERROR: mandatory IE error 41 +CEER: Error 97 + CEER ERROR: message nonexistent 42 +CEER: Error 98 + CEER ERROR: message uncompatibility error 43 44 +CEER: Error 99 + CEER ERROR: IE nonexistent +CEER: Error 100 + CEER ERROR: invalid condition IE 45 46 + CEER ERROR: message incompatibility state +CEER: Error 101 47 +CEER: Error 102 + CEER ERROR: recover on timer 48 +CEER: Error 111 + CEER ERROR: protocol error 49 + CEER ERROR: interworking +CEER: Error 127 50 +CEER: Error 150 + CEER ERROR: authentication rejected 51 +CEER: Error 151 + CEER ERROR: emergency call only 52 +CEER: Error 152 + CEER ERROR: IMSI detach + CEER ERROR: T3230 expiry 53 +CEER: Error 153 Shanghai Sendtrue Technologies Co.,Ltd Page 140 of 141

141 SM5100B-D AT Command +CEER: Error 154 + CEER ERROR: connection error 54 55 +CEER: Error 171 + CEER ERROR: no network service 56 +CEER: Error 172 + CEER ERROR: emergency call only 57 +CEER: Error 173 + CEER ERROR: normal disconnect +CEER: Error 174 58 + CEER ERROR: remote disconnect 59 + CEER ERROR: low failure +CEER: Error 175 60 +CEER: Error 176 + CEER ERROR: network reject 61 +CEER: Error 177 + CEER ERROR: no cell 62 +CEER: Error 202 + CEER ERROR: supplement not provide Shanghai Sendtrue Technologies Co.,Ltd Page 141 of 141

Related documents

Programming Guide for ZPL II, ZBI 2, Set Get Do, Mirror, WML (en)

Programming Guide for ZPL II, ZBI 2, Set Get Do, Mirror, WML (en)

Programming Guide ZPL II ZBI 2 Set-Get-Do Mirror WML

More info »
DoD7045.7H

DoD7045.7H

DoD 7045.7-H EPARTMENT OF D EFENSE D F UTURE Y EARS D EFENSE P ROGRAM (FYDP) S TRUCTURE Codes and Definitions for All DoD Components Office of the Director, Program Analysis and Evaluation A pril 2004

More info »
AT Commands Reference Guide

AT Commands Reference Guide

AT Commands Reference Guide GE863-QUAD, GE863-PY, GE863-GPS, GM862-QUAD, GM862-QUAD-PY, GE862-GPS, GE864-QUAD, GE864-PY, GC864-QUAD and GC864-PY 80000ST10025a Rev. 0 - 04/08/06

More info »
Software Design Specification

Software Design Specification

Software Design Specification Z-Wave Application Command Class Specification SDS13781 Document No.: Version: 11 The document describes the Z-Wave Command Classes and associated Commands Description: u...

More info »
Controller Tool Help

Controller Tool Help

Controller Tool Help No. LIT-1201 1147 Code 13.0 Release Software 2018 December Issued for the most up-to-date Exchange of this document. Refer to the Knowledge website version 21 Getting ... Started ...

More info »
07 5123 06 zigbee cluster library specification

07 5123 06 zigbee cluster library specification

ZigBee Cluster Library – 075123 Document ZigBee Cluster Library Specification Revision 6 Draft Version 1.0 - 0125 Chapter Document: 14 5123 - 07 ZigBee Document: 06 - ZigBee Document 07 - 5123 201 4 J...

More info »
ME910C1 AT Commands Reference Guide

ME910C1 AT Commands Reference Guide

ME910C1/NE910C1/ML865C1 AT Commands Reference Guide 80529ST10815A Rev. 4 – 2018 -10-2 4

More info »
Pro Tools Reference Guide

Pro Tools Reference Guide

® Pro Tools Reference Guide Version 9.0

More info »
MCO 1200.17E MILITARY OCCUPATIONAL SPECIALTIES MANUAL (SHORT TITLE: MOS MANUAL)

MCO 1200.17E MILITARY OCCUPATIONAL SPECIALTIES MANUAL (SHORT TITLE: MOS MANUAL)

DEPAR T MENT THE NAVY OF ADQ UARTE UNI T ED ST ATE S MAR INE CORPS HE RS RINE COR N PS PENT 3000 MA AGO 20350-3000 NGTON, HI D.C. W AS 7E 00 .1 12 MCO 465 c AUG 0 8 013 2 ORDER 1200.17E MARINE CORPS C...

More info »
TPM Main Part 3 Commands v1.2 rev116 01032011

TPM Main Part 3 Commands v1.2 rev116 01032011

1 2 1 2 3 4 5 6 7 8 TPM Main Part 3 Commands 9 10 Specification Version 1.2 11 Level 2 Revision 116 12 1 March 2011 13 TCG Published 14 15 16 17 Contact: [email protected] 18 19 20 21 22...

More info »
MVS Diagnosis: Tools and Service Aids

MVS Diagnosis: Tools and Service Aids

z/OS Version 2 Release 3 MVS Diagnosis: Tools and Service Aids IBM GA32-0905-30

More info »
Department of Defense   Law of War Manual (June 2015)

Department of Defense Law of War Manual (June 2015)

D E A R T M E N T O F D E F E N S E P N A L O F W A R M A W U A L J U N E 2 0 1 5 O F F I C E O F G E N ER A L C O U N S E L D P A R T M E N T E O F D E F E N S E

More info »
Quectel EC25EC21 AT Commands Manual V1.2

Quectel EC25EC21 AT Commands Manual V1.2

5&EC21 EC2 Command s Manual AT LTE Module Series Rev. _AT EC25&EC21 _Commands _ Manual_ V 1. 2 Date: 2017 - 11 - 1 4 Status : Released www.quectel.com

More info »
Current APD Policy Manual 2017 1.5 issued 7 20 2017

Current APD Policy Manual 2017 1.5 issued 7 20 2017

APD Issued 2017-1.5 Manual Policy 7/20/2017 Austin Police Department Policy Manual CHIEF'S MESSAGE I am proud to present the newest edition of the Austin Police Department Policy Manual. The Policy Ma...

More info »
DOD Dictionary of Military and Associated Terms, January 2019

DOD Dictionary of Military and Associated Terms, January 2019

DOD Dictionary of Military and Associated Terms As of February 2019

More info »
Nios® II Software Developer's Handbook

Nios® II Software Developer's Handbook

® Nios II Software Developer's Handbook ® ® Quartus Updated for Intel Prime Design Suite: 19.1 Subscribe NII-SDH | 2019.04.30 Send Feedback Latest document on the web: PDF | HTML

More info »
Command Plan

Command Plan

History of the Unified Command Plan 1946–2012 Edward J. Drea Ronald H. Cole Walter S. Poole James F. Schnabel Robert J. Watson Willard J. Webb Joint History Office Office of the Chairman of the Joint ...

More info »
J Link / J Trace User Guide

J Link / J Trace User Guide

J-Link / J-Trace User Guide Document: UM08001 Software Version: 6.44 Revision: 2 Date: April 25, 2019 A product of SEGGER Microcontroller GmbH www.segger.com

More info »
GSG 5/6 Series GNSS Simulator User Manual

GSG 5/6 Series GNSS Simulator User Manual

GSG-5/6 Series GNSS Simulator User Manual with SCPI Guide Spectracom Part No.: 4031-600-54001 Revision: 26 Date: 16-Jan-2018 spectracom.com

More info »
Oracle1® VM VirtualBox1® User Manual

Oracle1® VM VirtualBox1® User Manual

R © Oracle VM R © VirtualBox User Manual Version 6.0.6 c © 2004-2019 Oracle Corporation http://www.virtualbox.org

More info »