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.
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.
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.
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...
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.
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...
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.
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>...
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...
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.
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.
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>...
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>...
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.
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...
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.
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...
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>...
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...
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...
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...
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"...
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.
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.
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.
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. >...
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.
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”...
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...
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”.
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".
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.
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...
Need help?
Do you have a question about the SIM800 Series and is the answer not in the manual?
Questions and answers