background image

 

                                                                                                                    Smart Machine Smart Decision                                     

SIM800 Series_Bluetooth_Application_V1.02              

6                             

             2014-06-30

 

 

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.

 

Bluetooth Profile 

 

To use Bluetooth wireless technology, a device has to be able to interpret certain Bluetooth 

profiles, which are definitions of possible applications and specify general behaviors that 

Bluetooth enabled devices use to communicate with other Bluetooth devices. These profiles 

include settings to parametrize and to control the communication from start. Adherence to profiles 

saves the time for transmitting the parameters anew before the bi-directional link becomes 

effective. There are a wide range of Bluetooth profiles that describe many different types of 

applications or use cases for devices. 

 

Besides of all profiles, there have four basic ones, they are GAP/SDAP/SPP/GOEP Profile. 

 

1.3.

 

Bluetooth Device Address 

 

The Bluetooth device address stores the network address of a Bluetooth–enabled device. It is used 

to identify a particular device during operations such as connecting to, pairing with, or activating 

the device. 

 

A Bluetooth–enabled device address is a unique, 48 bits address containing the following three 

fields: 

 

LAP field: lower part of the address containing 24 bits. 

 

UAP field: upper part of the address containing 8 bits. 

 

NAP field: non–significant part of the address containing 16 bits. 

The LAP and the UAP represent the significant address part (SAP) of the Bluetooth device 

address. 

 

1.4.

 

AT Interface for Bluetooth Function 

 

As module solution, we provide series of AT interface to operate Bluetooth function, including 

pairing, bonding, pushing or receiving file. 

 

Also including interface for SPP service, which could communicate between Bluetooth device and 

others via serial port. 

 

Summary of Contents for SimCom SIM800 Series

Page 1: ...SIM800 Series _Bluetooth_ Application Note_V1 02...

Page 2: ...nformation that may be in the customer s possession Furthermore system validation of this product designed by SIMCOM within a larger electronic system remains the responsibility of the customer or the...

Page 3: ...2 12 AT BTOPPPUSH Push OPP object to paired device 16 2 13 AT BTSPPGET Get data based on SPP service 16 2 14 AT BTSPPSEND Send data based on SPP service 17 2 15 AT BTATA Answer incoming call 18 2 16 A...

Page 4: ...SPP 36 4 10 Send data as a SPP s client 37 4 11 As a SPP s server worked in AT mode 37 4 12 As a SPP s server worked in APP mode 38 4 13 Sync phonebook from remote by BT 39 4 14 Find name or number f...

Page 5: ...command Chapter 2 26 Add AT BTPBF command Chapter 2 27 Add AT BTAVRCOP command Chapter 2 28 Add AT BTVIS command Chapter 2 29 Add AT BTSPPCFG command Chapter 2 30 Add AT BTPAIRCFG command Chapter 3 A...

Page 6: ...effective There are a wide range of Bluetooth profiles that describe many different types of applications or use cases for devices Besides of all profiles there have four basic ones they are GAP SDAP...

Page 7: ...ly connected to a Bluetooth device When the module to establish a connection with a device other devices can not be scanned into the module the module can not get Profile will not be able to establish...

Page 8: ...d data based on SPP service AT BTSPPGET Get data based on SPP service AT BTATA Answer incoming call AT BTATDL Redial last number AT BTATH Hung up voice call AT BTVGS Configure voice volume AT BTVGM Co...

Page 9: ...Note Max length of name is 18 bytes and display in UTF 8 code 2 2 AT BTSTATUS Inquiry current BT device status AT BTSTATUS Inquiry current BT device status Response OK Test Command AT BTSTATUS Paramet...

Page 10: ...ction 31 Releasing connection 36 Activating service paired id paired device ID connected id connected device ID name device name address device address profile name profile Note Max length of name is...

Page 11: ...with failure BTPAIR 0 Parameters device ID BT device ID confirm 1 accept 0 reject passkey passkey length is 4 16 id 0 paired failed 1 paired deivce ID name BT device name address BT device address pas...

Page 12: ...red device corresponding to ID 2 6 AT BTSCAN Scan surrounding BT device AT BTSCAN Scan surrounding BT device Response BTSCAN list of supported switch s list of supported Timer s OK Test Command AT BTS...

Page 13: ...address profile name If failed BTCONNECT 0 Write Command AT BTCONNE CT device ID profile ID Parameters device ID ID of paired BT device profile ID BT profile ID id ID of connected BT device name BT d...

Page 14: ...by paired device Response BTGETPROF list of supported device ID s OK Test Command AT BTGETPRO F Parameters See Write Command Response OK BTGETPROF profile ID profile name Write Command AT BTGETPRO F...

Page 15: ...es in UTF 8 code 2 11 AT BTOPPACPT Accept OPP service AT BTOPPACPT Accept OPP service Response BTOPPACPT list of supported confirm s list of supported drv OK Test Command AT BTOPPACP T Response OK BTO...

Page 16: ...string s OK Test Command AT BTOPPPUS H Parameters See Write Command Response OK BTOPPPUSH para Write Command AT BTOPPPUS H device ID string Parameters device ID Paired Device ID string file name incl...

Page 17: ...quiry data length in manual mode If multi connect enabled this command need parameter connectId 3 Getting data in manual mode If multi connect enabled this command need parameter connectId You can inp...

Page 18: ...s Response If successful SEND OK Or failed SEND FAIL Or if this connectId is not allowed to send data ERROR Execute Command AT BTSPPSEN D 1 If multi connection function is enabled this command will be...

Page 19: ...dule is Earphone mode Response BTVGS gain OK Read Commnad AT BTVGS Response OK Write Command AT BTVGS ga in Parameter gain volume This command is used configure call volume when the module is connecte...

Page 20: ...be correct 2 20 AT BTATD Dial voice call AT BTATD Dial voice call Response BTATD number length range OK Test Command AT BTATD Response OK Write Command AT BTATD nu mber Parameter number phone number M...

Page 21: ...ne through this command 2 23 AT BTCIND Get status of smartphone AT BTCIND Get status of smartphone Response BTCIND 0 1 OK Test Command AT BTCIND Response OK Parameter mode 1 auto report open 0 auto re...

Page 22: ...ng 1 in roaming battchg 0 5 power level Note When module connected with smartphone as an earphone these statuses can be getted 2 24 AT BTCLCC Get call s status of smartphone AT BTCLCC Get call s statu...

Page 23: ...from remote by BT Test Command AT BTPBSYNC Response BTPBSYNC 0 1 1 10 0 1 0 1 0 1 OK Response OK If sync phonebook succeed in mode 0 BTPBSYNC mode result length If sync phonebook failed in mode 0 BTP...

Page 24: ...on remote phone 2 save phonebook fail length file length loc_phb save phb file to ME or SM Just use in mode 1 0 SM phonebook 1 ME phonebook loc_mode append or overwrite local phonebook Just use in mo...

Page 25: ...mber failed or find number by name faild at get list step BTPBF mode error If find number by name failed at get entry step BTPBF mode phb_index error If error is related to ME functionality CME ERROR...

Page 26: ...cord 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 num_index index of number n...

Page 27: ...nctionality CME ERROR err Write Command AT BTAVRCO P operator Parameters operator 0 stop the music 1 play the music 2 pause the music 3 play the next song 4 play the back song 5 increase the volume 6...

Page 28: ...e SPP s client at the same time mode 0 Disable 1 Enable 2 Query Response Every SPP s link has been connected as server output BTSPPCFG S connectId serverMode Every SPP s link has been connected as cli...

Page 29: ...e Parameters mode 0 random PIN Code and need confirm the pairing request 1 PIN Code inputted by manual 2 random PIN Code and response the pairing request automatic pin_code PIN Code the length is four...

Page 30: ...rent TE character set specified by CSCS Note AT CPBFEX will only return the first find result AT CPBFEX could find name or number which CPBR could not display when use BTPBSYNC sync PHB to ME phoneboo...

Page 31: ...1025 Out of pairing count 1026 Bond error 1027 Device has Bonded 1030 Debond error 1031 Get device info error 1032 Service refresh error 1033 Profile connect error 1034 HF attach error 1040 OPP handle...

Page 32: ...Smart Machine Smart Decision SIM800 Series_Bluetooth_Application_V1 02 32 2014 06 30 1061 Connected device exceed max 1099 BTAUD attach error...

Page 33: ...1 OK BTPAIR 1 PC NS130100361 34 c7 31 aa 37 5b Accept pairing request and paired successfully BTPAIRING Jabra BT160 00 16 8f 0d 65 82 Incoming passkey request from other BT device AT BTPAIR 2 0000 OK...

Page 34: ...OK BTPAIR 1 MK ZHANZHIMIN 00 1a 7d da 71 10 Answer to the pairing request in digital key mode AT BTPAIR 0 7 OK Try to pair the seventh BT device in the view list BTPAIRING Jabra BT160 00 16 8f 0d 65...

Page 35: ...aired device AT BTOPPACPT 1 OK BTOPPPUSH 1 Accept file stored in internal memery card by default input AT BTOPPACPT 1 1 if want it stored in external memory 4 6 Send file to other paired BT device Com...

Page 36: ...is 12 34 56 78 90 12 and name is IT The other ID is 34 c7 31 aa 37 5b and name is ME This module has had a server type link of SPP AT BTSPPCFG BTSPPCFG S 1 0 OK AT OK AT OK AT BTSPPCFG MC 1 OK AT BTS...

Page 37: ...TSPPDATA 19 3 T C BTSPPDATA 19 25 REG CREG 0 0 OK AT BTSPPSEND 10 1234567890 SEND OK There is a link client type and allowed to send data to the server If the client send AT command to the server this...

Page 38: ...4 7 as a server BTSPPDATA 1 17 SIMCOMSPPFORAPP AT OK AT OK AT BTSPPCFG BTSPPCFG S 1 1 OK AT BTSPPSEND 12345 SEND OK AT BTDISCONN 1 OK BTDISCONN SIM800H 34 c7 31 aa 37 5b SPP AT BTSPPGET 1 OK BTCONNECT...

Page 39: ...d successefully AT BTSPPGET BTSPPGET 0 3 1 6 1 1024 1 OK 4 13 Sync phonebook from remote by BT Command Description Based on example 4 2 AT BTGETPROF 1 BTGETPROF 10 PBAP BTGETPROF 1 A2DP Source BTGETPR...

Page 40: ...03300350038003500380038003700370 0370035 BTPBF 1 2 5170621056FD BTPBF 1 3 521800206587660E BTPBF 1 4 52186021 BTPBF 1 5 5362592A592A Find name whose number contain 135 Find succeed Five name found AT...

Page 41: ...automatically Report automatically once ready AT BTAVRCOP 1 OK AT BTAVRCOP 2 OK AT BTAVRCOP 1 OK AT BTAVRCOP 3 OK AT BTAVRCOP 4 OK AT BTAVRCOP 5 OK AT BTAVRCOP 6 OK AT BTAVRCOP 0 OK Play music The so...

Page 42: ...mode 1 and the default PIN Code value is 0000 if you want to set other PIN Code follow it AT BTPAIRCFG 1 pin_code BT reboot AT BTSCAN 1 OK BTSCAN 0 1 XT615 00 11 94 cb 20 d2 34 BTSCAN 0 2 LIB PC c8 f...

Page 43: ...Smart Machine Smart Decision SIM800 Series_Bluetooth_Application_V1 02 43 2014 06 30 AT BTPAIR 0 1 OK BTSCAN 2 BTPAIR 1 XT615 00 11 94 cb 20 d2...

Page 44: ...always 40 bytes Max length of findtext depends on AT CSCS NO limit of results number Will return at most 15 results Results will order by phonebook index when select SM or ME phonebook from small to l...

Page 45: ...CHFA 0 NORMAL_AUDIO 1 AUX_AUDIO 2 HANDFREE_AUDIO 3 AUX_HANDFREE_AUDIO 4 PCM_AUDIO 5 BT_CHANNEL OK AT CHFA CHFA 0 NORMAL_AUDIO 1 AUX_AUDIO 2 HANDFREE_AUDIO 3 AUX_HANDFREE_AUDIO 4 PCM_AUDIO OK Differen...

Page 46: ...y a role as smart phone BT earphone could control the call operation e g hang up answer redial A2DP Abbreviation of Advanced Audio Distribution Profile which is advanced rotocol for audio frequency di...

Page 47: ...ws exchange of Phone Book Objects between devices C Glossary and Abbreviation Glossary Discription EVB Evaluation Board BT Blue tooth PROFILE Bluetooth function protocol SPP Serial Port Profile OPP OP...

Page 48: ...Bluetooth_Application_V1 02 48 2014 06 30 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...

Reviews: