SimTech SIM800 Series Application Notes

Bluetooth
Hide thumbs Also See for SIM800 Series:
Table of Contents

Advertisement

Quick Links

SIM800 Series _Bluetooth_
Application Note_V1.02

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIM800 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SimTech SIM800 Series

  • Page 1 SIM800 Series _Bluetooth_ Application Note_V1.02...
  • Page 2 Smart Machine Smart Decision Document Title SIM800 Series_Bluetooth_Application Note Version 1.02 Date 2014-06-30 Status Release Document Control ID SIM800 Series_Bluetooth_Application Note_V1.02 General Notes Simcom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by Simcom. The information provided is based upon requirements specifically provided to Simcom by the customers.
  • Page 3: Table Of Contents

    Smart Machine Smart Decision Content Version History......................5 1. Bluetooth Function....................6 1.1. Bluetooth Introduction ......................6 1.2. Bluetooth Profile .......................6 1.3. Bluetooth Device Address....................6 1.4. AT Interface for Bluetooth Function .................6 2. AT Command ......................8 2.1. AT+BTHOST Inquiry and set host device name ............8 2.2.
  • Page 4 Smart Machine Smart Decision 4. Examples......................33 4.1. Accept request from other BT device................33 4.2. Send pairing request to other BT device .................33 4.3. Get the profile provided by paired device ...............34 4.4. Connect service .......................35 4.5. Accept file from paired device ..................35 4.6.
  • Page 5: Version History

    Smart Machine Smart Decision Version History Date Version Description Author 2013-11-07 1.00 Original Ping Zhang 2014-03-26 1.01 Chapter 1.4, Add “power-saving mode” description Ping Zhang Chapter 2.6, AT+BTSCAN add <rssi> parameter Chapter 2.13, Modify AT+BTSPPGET parameter Chapter 2.14, Modify AT+BTSPPSEND parameter Chapter 2.22, Add AT+BTVTS command Chapter 2.23, Add AT+BTCIND command Chapter 2.24, Add AT+BTCLCC command...
  • Page 6: Bluetooth Function

    Smart Machine Smart Decision 1. Bluetooth Function 1.1. Bluetooth Introduction Bluetooth is a wireless technology standard for exchanging data over short distances (using short-wavelength radio transmissions in the ISM band from 2400–2480 MHz) from fixed and mobile devices, creating prsonal area networks (PANs) with high levels of security.Bluetooth was standardized as IEEE 802.15.1 1.2.
  • Page 7 Smart Machine Smart Decision When the module as a Bluetooth headset role, we provide a set of AT commands to control the remote smart phones, such as phone calls, turn on or hang up calls and so on. By default, the module operates in power-saving mode, which means that the module can be simultaneously connected to a Bluetooth device.
  • Page 8: At Command

    Smart Machine Smart Decision 2. AT Command Command Description AT+BTHOST Inquiry and set host device name AT+BTSTATUS Inquiry current BT device status AT+BTPOWER Power on or power off BT radio AT+BTPAIR Pair BT device AT+BTSCAN Scan surrounding BT device AT+BTUNPAIR Unpair BT device AT+BTCONNECT Connect paired BT device...
  • Page 9: At+Btstatus Inquiry Current Bt Device Status

    Smart Machine Smart Decision Test command Response +BTHOST: (1-18) AT+BTHOST=? Parameters See Write Command Read command Response AT+BTHOST? +BTHOST: <name>, <address> Parameters See Write Command Write command Response AT+BTHOST=< name> Parameters <name> device name <address> device address Note Max length of <name> is 18 bytes,and display in UTF-8 code. 2.2.
  • Page 10: At+Btpower Power On/Off Bt Radio

    Smart Machine Smart Decision 6 Scanning 7 Inquiry_Res_Ind 8 stopping scanning 9 Bonding 12 Connecting 13 Unpairing 14 Deleting paired device 15 Deleting all paired device 16 Disconnecting 19 Pairing confirm while passive pairing 20 Waiting for remote confirm while passive pairing 25 Accepting connection 26 SDC Refreshing 29 Setting host name...
  • Page 11 Smart Machine Smart Decision Test Command Response +BTPAIR: 0,(list of supported <device ID>s) AT+BTPAIR=? +BTPAIR: 1,(list of supported <confirm>s) +BTPAIR: 2,( length of supported <passkey>s) Parameters See Write Command Write Command Response 1) active AT+BTPAIR=0, <device ID> If digital key exchanged +BTPAIRING: <name>,<address>,<passcode>...
  • Page 12: At+Btunpair Unpair Bt Device

    Smart Machine Smart Decision 2.5. AT+BTUNPAIR Unpair BT device AT+BTUNPAIR Unpair BT device Test Command Response AT+BTUNPAIR +BTUNPAIR: (list of supported <device ID>s) Parameter See Write Command Write Command Response AT+BTUNPAIR =<device ID> Parameter <device ID> Paired Device ID. 0 delete all the paired device 1 delete the the paired device corresponding to ID 2.6.
  • Page 13: At+Btconnect Connect Paired Bt Device

    Smart Machine Smart Decision <rssi> -127…0 RSSI value of BT device Note 1.Max length of <name> is 18 bytes, 18 bytes in UTF-8 code 2.If <timer> ommited, the default value is 30s 2.7. AT+BTCONNECT Connect paired BT device AT+BTCONNECT Connect paired BT device Test Command Response AT+BTCONNE...
  • Page 14: At+Btgetprof Get Profile Provided By Paired Device

    Smart Machine Smart Decision +BTDISCONN: <name>,<address>,<profile name> Parameters <device ID> connected device ID <name> device name <address> devie address <profile name> profile service Note 1. Max length of <name> is 18 bytes, 18 bytes in UTF-8 code 2. If disconnected by remote, there still be URC: +BTDISCONN 2.9.
  • Page 15: At+Btoppacpt Accept Opp Service

    Smart Machine Smart Decision <confirm> 1 accept 0 reject <id> >0 connected device ID <name> device name <address> device address <profile name> profile name If incoming connecting request: +BTCONNECTING: <address>, <profile name> Parameters <address> device address <profile name> profile name Note Max length of <name>...
  • Page 16: At+Btopppush Push Opp Object To Paired Device

    Smart Machine Smart Decision 2.File is stored in path: C:\User\BtReceived\ for internal memory card, D:\BtReceived\ for external memory card. At the first time to use SD card, customer must execute “AT+SD2PCM=0” and “AT&W”, then reboot the module. 2.12. AT+BTOPPPUSH Push OPP object to paired device AT+BTOPPPUSH Push OPP object to paired device Test Command Response...
  • Page 17: At+Btsppsend Send Data Based On Spp Service

    Smart Machine Smart Decision Write Command Response 1).If AT+BTSPPCFG= ”MC”,2 response ERROR 1(Enable If command value is 2,return: multi-connect) +BTSPPGET: <connectId>,<cnfLen1> AT+BTSPPGET =<command>[,< connectId>][, If command value is 3,return: <reqLength>][,<s +BTSPPGET: <connectId>,<cnfLen1>[,<data string>] howWithHex>] 2).If AT+BTSPPCFG= Parameters ”MC”,2 response <command> 0 Auto mode. Data will be output in decimal system. 0(Disable 1 Manual mode.
  • Page 18: At+Btata Answer Incoming Call

    Smart Machine Smart Decision AT+BTSPPCFG= If successful, ”MC”,2 response SEND OK 1(Enable If failed, multi-connect) SEND FAIL AT+BTSPPSEN Or if this connectId is not allowed to send data, D=<connectId>,< ERROR length> Parameters 2).If <connectId> connection`s ID.If disable multi-connection, AT+BTSPPCFG= this param is no need. ”MC”,2 response <length>...
  • Page 19: At+Btath Hung Up Voice Call

    Smart Machine Smart Decision 2.17. AT+BTATH Hung up voice call AT+BTATH Hung up voice call Execute Command Response AT+BTATH Note When module connected with smartphone as an earphone, the incoming call would be hung up through this command 2.18. AT+BTVGS Configure voice volume AT+BTVGS Configure voice volume Test Command Response...
  • Page 20: At+Btatd Dial Voice Call

    Smart Machine Smart Decision Write Command Response AT+BTVGM=<g ain> Parameter <gain> MIC gain level This command is used set MIC volume when the module is connected with smartphone as an earphone Note For some smartphone,after connected with BT earphone,the current MIC volume may not be transmitted to earphone,thus the return value of the read command may be 0.But after setting once,the value would be correct.
  • Page 21: At+Btvts Send Dtmf Tone

    Smart Machine Smart Decision 2.22. AT+BTVTS Send DTMF tone AT+BTVTS Send DTMF tone Test Command Response AT+BTVTS=? +BTVTS: (<dtmf>’s cope) Write Command Response AT+BTVTS=<dt mf> Parameter <dtmf> DTMF tone Note When module connected with smartphone as an earphone,would send DTMF tone through this command 2.23.
  • Page 22: At+Btclcc Get Call's Status Of Smartphone

    Smart Machine Smart Decision Parameters <service> 0 no net service 1 net service is normal <call> 0 not active 1 active <call_setup> 0 set up complete 1 incoming call 2 outgoing call 3 remote alert <held> no held call active calls be placed or switched active calls be palced and no active call <signal>...
  • Page 23: At+Btpbsync Sync Phonebook From Remote By Bt

    Smart Machine Smart Decision <mode> Bearer/tele service 0 Voice 1 Data 2 Fax <mpty> 0 Call is not one of multiparty (conference) call parties 1 Call is one of multiparty (conference) call parties <number> String type (string should be included in quotation marks) phone number in format specified by <type>.
  • Page 24 Smart Machine Smart Decision 3 outgoing call list on phone stroage 4 missed call list on phone storage 5 all call list in storage 2, 3, 4 6 phonebook on sim card 7 incoming call list on sim card 8 outgoing call list on sim card 9 missed call list on sim card 10 all call list in storage 7, 8, 9 <loc>...
  • Page 25: At+Btpbf Find Name Or Number From Remote By Bt

    Smart Machine Smart Decision 2.26. AT+BTPBF Find name or number from remote by BT AT+BTPBF Find name or number from remote by BT Test Command Response AT+BTPBF=? +BTPBF: (0,1),(32,64),(1-10),(0-2) Write Command Response AT+BTPBF=<m ode>,<string>[,<s If find name by number succeed torage>[,<order>...
  • Page 26 Smart Machine Smart Decision <phb_total> total number of phonebook record be found. We support max 5 phonebook records. <phb_index> index of phonebook record <name> The name found by number. It will be ucs2(big endian) value. <num_total> total number of <number> in one phonebook record. We support max 4 number in one phonebook record.
  • Page 27: At+Btavrcop Avrcp Operation

    Smart Machine Smart Decision 2.27. AT+BTAVRCOP AVRCP operation AT+ BTAVRCOP AVRCP operation Test Command Response AT+BTAVRCO +BTAVRCOP: (0-STOP,1-PLAY,2-PAUSE,3-FORWARD,4-BACKWARD,5-VOL_ UP,6-VOL_DOWN) Write Command Response AT+BTAVRCO P =<operator> If error is related to ME functionality: +CME ERROR: <err> Parameters <operator> 0 stop the music 1 play the music 2 pause the music 3 play the next song...
  • Page 28: At+Btsppcfg Spp Configuration

    Smart Machine Smart Decision open visibility close visibility Note 2.29. AT+BTSPPCFG SPP configuration AT+BTSPPCFG SPP configuration Test Command Response AT+BTSPPCFG +BTSPPCFG: (list of supported <btSppCfg>s) Write Command Response AT+BTSPPCFG =<btSppCfg>,<m ode> ERROR Parameters <btSppCfg> “MC” Multi-connection, enable this function to make the module support to connect double SPP’s client at the same time.
  • Page 29: At+Cpbfex Find Name Or Number In Module Phonebook

    Smart Machine Smart Decision Parameters See Write Command Read Command Response AT+BTPAIRCF If mode=1, the notification information is: +BTPAIRCFG: <mode>,<pin_code> If mode=0 or 2, the notification information is: +BTPAIRCFG: <mode> Parameters See Write Command Write Command Response 1) if PIN-Code inputted by Parameters manual while...
  • Page 30: At+Btring Control Ring Playing Transferred From Phone

    Smart Machine Smart Decision TA returns phone book entries, which contains alphanumeric string AT+CPBFEX=<v <text>. mode>,<value> [+CPBF: <text>] Parameters <mode> find mode 0 find name by number 1 find number by name <value> String type field of maximum length 40. When select <mode> 1, <value>...
  • Page 31: Cme Error Code

    Smart Machine Smart Decision 3. CME Error Code The following error message is associated with the Bluetooth operation following format: +CME ERROR: <err>, the specific error code and error message in the following table: Code Description 1000 Return fail 1002 Not power on 1003 State not idle...
  • Page 32 Smart Machine Smart Decision 1061 Connected device exceed max 1099 BTAUD attach error SIM800 Series_Bluetooth_Application_V1.02 2014-06-30...
  • Page 33: Examples

    Smart Machine Smart Decision 4. Examples There are some examples to explain how to use these commands. In the “Grammar” columns of following tables, inputs of AT commands are in black, module return values are in blue. 4.1. Accept request from other BT device Command Description AT+BTPOWER=1...
  • Page 34: Get The Profile Provided By Paired Device

    Smart Machine Smart Decision +BTSCAN: 0,4,"MK-FUJIANJUN",88:53:2e:e8:9d:0f,-33 +BTSCAN: 0,5,"MTKBTDEVICE",45:8c:96:3e:66:01,-56 +BTSCAN: 0,6,"MK-ZHANZHIMIN",00:1a:7d:da:71:10,-67 +BTSCAN: 0,7,"Jabra BT160",00:16:8f:0d:65:82,-55 +BTSCAN: 1 AT+BTPAIR=0,6 Try to pair the sixth BT device in the view list +BTPAIRING: Answer to the pairing request in digital key "MK-ZHANZHIMIN",00:1a:7d:da:71:10,76319 mode AT+BTPAIR=1,1 +BTPAIR: 1,"MK-ZHANZHIMIN",00:1a:7d:da:71:10 AT+BTPAIR=0,7 Try to pair the seventh BT device in the view...
  • Page 35: Connect Service

    Smart Machine Smart Decision 4.4. Connect service Command Description Get Profile based on example 4.3 AT+BTCONNECT=1,2 Connect with the second profile service of first paired device,”HFP(AG)” +BTCONNECT: 1,"MK-ZHANZHIMIN",00:1a:7d:da:71:10,” HFP(AG)” 4.5. Accept file from paired device Command Description Pairing device based on example 4.2 +BTOPPPUSHING: Incoming opp pushing service from paired "MK-ZHANZHIMIN","link.txt"...
  • Page 36: Spp's Link Be Create As A Server

    Smart Machine Smart Decision 4.8. SPP’s link be create as a server Command Description Suppose this device’s 12:34:56:78:90:12,name is IT; The other ID is 34:c7:31:aa:37:5b,name is ME.they make pair successfully. +BTCONNECTING: Receive a request from client which build a "34:c7:31:aa:37:5b","SPP" connection.
  • Page 37: Send Data As A Spp's Client

    Smart Machine Smart Decision +BTSPPDATA: 2,17,SIMCOMSPPFORAPP Receive the message of switching mode to APP mode from the second client’s link. AT+BTSPPCFG? +BTSPPCFG: S,1,0 +BTSPPCFG: S,2,1 Allow to send data to second client’s link. 4.10. Send data as a SPP’s client A SPP connection has two modules.One is client,and the other is server.
  • Page 38: As A Spp's Server Worked In App Mode

    Smart Machine Smart Decision AT+BTSPPCFG? +BTSPPCFG: S,1,0 There is a link.Server-type; connection’s ID is 1;It’s not allowed to send data to the client. AT+BTSPPSEND=10 ERROR Fail to send. AT+BTSPPSEND ERROR Fail to send. 4.12. As a SPP’s server worked in APP mode Another SPP’s link mode as a server is the APP mode.
  • Page 39: Sync Phonebook From Remote By Bt

    Smart Machine Smart Decision connection’s ID is 1. AT+BTSPPGET=2,1 +BTSPPGET: 1,17 Connection’s ID is 1,and the data length is AT+BTSPPGET=3,1,17 +BTSPPGET: 1,17,SIMCOMSPPFORAPP Get data,length is 17(This data package means switching the mode to APP mode) . AT+BTSPPSEND Send data to the client. >...
  • Page 40: Play Music And So On By Avrcp

    Smart Machine Smart Decision AT+BTGETPROF=1 Get the profile of first paired device in list +BTGETPROF: 10,"PBAP" +BTGETPROF: 1,"A2DP(Source)" +BTGETPROF: 2,"HFP(AG)" +BTGETPROF: 8,"AVRCP(Target)" AT+BTCONNECT=1,10 Connect server +BTCONNECT: Report automatically once ready 1,"LG-P705",00:aa:70:23:7d:06,"PBAP(C)" AT+BTPBF=1,"135",1 Find name whose number contain ”135”. +BTPBF: 1,5 Find succeed.
  • Page 41: Add Phonebook Records To Me Or Sm Phonebook From Vcard File

    Smart Machine Smart Decision +BTGETPROF: 8,"AVRCP(Target)" AT+BTCONNECT=1,1 Connect with the first profile service of first paired device,”A2DP”, For the service of “AVRCP” depends on the “A2DP”. After +BTCONNECT: 1,"Lenovo connected with “A2DP” successfully, the A780",d8:71:57:2b:02:66,"A2DP" modem will connect to the sevice of “AVRCP”...
  • Page 42: Set Bt Pairing Mode

    Smart Machine Smart Decision AT+BTPBSYNC=1,1,0,0,1 Sync file “c:\user\bt\remotePb1.txt” to SM phonebook with overwrite mode +BTPBSYNC: 1,0,214,67 Sync finished. 214 phonebook records add succeed and 67 records failed. AT+CPBR=1,250 Read phonebook records. +CPBR: 1,"",129,"Me" … 4.17. Set BT pairing mode Command Description AT+BTPOWER=1 Power on BT radio...
  • Page 43 Smart Machine Smart Decision AT+BTPAIR=0,1 +BTSCAN: 2 +BTPAIR: 1,"XT615 ",00:11:94:cb:20:d2 SIM800 Series_Bluetooth_Application_V1.02 2014-06-30...
  • Page 44: Differences Between Bluetooth Version And The Standard Version

    Smart Machine Smart Decision 5. Differences between bluetooth version and standard Version Note: In this chapter, SIM800 BT indicates SIM800 series BT version, SIM800 indicates SIM800 series standard version. Differences among SIM800 series standard version, please refer to chapter 21 for details in doc “SIM800 Series AT Command Manual”.
  • Page 45: At+Cmgs

    Smart Machine Smart Decision 5.5.AT+CMGS SIM800 BT does not support sending message by phonebook index or name. 5.6.AT+CMSS SIM800 BT does not support sending message from storage. 5.7.AT+CPMS SIM800 BT SIM800 AT+CPMS=? AT+CPMS=? +CPMS: +CPMS: ("SM","ME","MT"),("SM","ME","MT"),( ("SM","ME","SM_P","ME_P","MT"),("S "SM","ME","MT") M","ME","SM_P","ME_P","MT"),("SM" ,"ME","SM_P","ME_P","MT") Difference SIM800 BT supports three modes: "SM","ME","MT".
  • Page 46: Appendix

    Smart Machine Smart Decision Appendix A. Reference Document Remark SIM800 Series AT Command Manual B. Profile Profile Introduction Abbreviation of Serial Port Profile,to implement BT serial port function.Moduel an transimit data to connected BT device throuth AT+BTSPPSEND after successfully applying this profile.The module will receive data report +BTSPPDATA in automatic mode,and +BTSPPMAN in mamual mode.
  • Page 47: Glossary And Abbreviation

    Smart Machine Smart Decision module connected with smartphone,there will display such information indicates profile being connected successfully.If the module plays a role of earphone,then the information displayed after connection will be HFP(AG). PBAP Phone Book Access Profile (PBAP) is a profile that allows exchange of Phone Book Objects between devices.
  • Page 48 Smart Machine Smart Decision Contact us: Shanghai SIMCom Wireless Solutions Co.,Ltd. Address: Building A, SIM Technology Building, No. 633, Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.sim.com/wm SIM800 Series_Bluetooth_Application_V1.02 2014-06-30...

Table of Contents