[go: up one dir, main page]

CN105516897A - Method and device for one-key establishment of communication connection between Bluetooth devices - Google Patents

Method and device for one-key establishment of communication connection between Bluetooth devices Download PDF

Info

Publication number
CN105516897A
CN105516897A CN201510890147.7A CN201510890147A CN105516897A CN 105516897 A CN105516897 A CN 105516897A CN 201510890147 A CN201510890147 A CN 201510890147A CN 105516897 A CN105516897 A CN 105516897A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth equipment
application program
mobile phone
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510890147.7A
Other languages
Chinese (zh)
Inventor
周长健
王明江
赵博雅
易艺婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201510890147.7A priority Critical patent/CN105516897A/en
Publication of CN105516897A publication Critical patent/CN105516897A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/72502Cordless telephones with one base station connected to a single line
    • H04M1/72505Radio link set-up procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提出了一种蓝牙设备间一键建立通信连接的方法及装置,所述方法通过在智能手机上安装一应用程序实现,包括:获取蓝牙权限,打开智能手机的蓝牙功能,使周围的蓝牙设备能够搜索到该智能手机;控制蓝牙适配器查找周围所有的蓝牙设备;判断是否存在已绑定的蓝牙设备;如果存在唯一的已绑定的蓝牙设备,则自动连接该蓝牙设备,否则,将多个已绑定的蓝牙设备的名称显示在屏幕上,根据用户的选择自动连接用户选择的蓝牙设备;如果不存在已绑定的蓝牙设备,则将搜索到的蓝牙设备的名称逐一显示在屏幕上,然后根据用户的选择自动连接用户选择的蓝牙设备。本发明能够自动建立两个蓝牙设备间的通信连接,一键完成,方便用户使用蓝牙设备连接智能手机。

The present invention proposes a method and device for establishing a communication connection between Bluetooth devices with one key. The method is implemented by installing an application program on a smart phone, including: obtaining Bluetooth authority, opening the Bluetooth function of the smart phone, and enabling the surrounding Bluetooth The device can search for the smartphone; control the Bluetooth adapter to find all the surrounding Bluetooth devices; determine whether there is a bound Bluetooth device; The names of the bound Bluetooth devices are displayed on the screen, and the Bluetooth device selected by the user is automatically connected according to the user's choice; if there is no bound Bluetooth device, the names of the searched Bluetooth devices are displayed on the screen one by one. , and then automatically connect to the Bluetooth device selected by the user according to the user's choice. The invention can automatically establish a communication connection between two bluetooth devices, which is completed by one key, and is convenient for users to use the bluetooth devices to connect to smart phones.

Description

一种蓝牙设备间一键建立通信连接的方法及装置Method and device for establishing a communication connection between bluetooth devices with one key

技术领域technical field

本发明涉及短距离通信技术领域,尤其涉及一种蓝牙设备间一键建立通信连接的方法及装置。The invention relates to the technical field of short-distance communication, in particular to a method and device for establishing a communication connection between Bluetooth devices with one key.

背景技术Background technique

蓝牙技术是一种支持设备短距离通信(一般10m内)的无线电技术,能在包括移动电话、PDA、无线耳机、笔记本电脑、相关外设等设备之间进行无线信息交换。利用蓝牙技术,能够有效地简化设备之间的通信,也能够简化设备与Internet(因特网)之间的通信,从而使语音数据传输变得更加迅速高效。蓝牙技术采用分散式网络结构以及快跳频和短包技术,支持点对点及点对多点通信,工作在全球通用的2.4GHzISM(IndustrialScientificMedical,工业的、科学的、医学的)射频频段,其数据速率为1Mbps,采用时分双工传输方案实现全双工传输。Bluetooth technology is a radio technology that supports short-distance communication of devices (generally within 10m), and can exchange information wirelessly between devices including mobile phones, PDAs, wireless headsets, notebook computers, and related peripherals. The use of Bluetooth technology can effectively simplify the communication between devices, and also simplify the communication between devices and the Internet (Internet), so that the transmission of voice data becomes more rapid and efficient. Bluetooth technology adopts a distributed network structure and fast frequency hopping and short packet technology, supports point-to-point and point-to-multipoint communication, and works in the global 2.4GHzISM (IndustrialScientificMedical, industrial, scientific, medical) radio frequency band, and its data rate It is 1Mbps, adopting time division duplex transmission scheme to realize full-duplex transmission.

在蓝牙耳机应用框架(HeadSetProfile,HSP)中定义了两种角色:音频网关(AudioGateway,AG)和耳机(Headset,HS)。其中AG为音频网关的设备,负责输入和输出,一般是手机或PC;HS则作为AG的远程音频输入和输出机制的设备。当蓝牙耳机进行语音通信时,AG与HS会同时存在。在蓝牙耳机的连接通信服务中,AG和HS都可以分别作为服务器(Server)和客户端(Client),两者扮演的角色是相对的。Two roles are defined in the Bluetooth headset application framework (HeadSetProfile, HSP): audio gateway (AudioGateway, AG) and headset (Headset, HS). Among them, AG is an audio gateway device responsible for input and output, usually a mobile phone or a PC; HS is a device for AG's remote audio input and output mechanism. When the Bluetooth headset performs voice communication, AG and HS will exist at the same time. In the connection communication service of the Bluetooth headset, both the AG and the HS can act as a server (Server) and a client (Client) respectively, and the roles played by the two are relative.

输入音频请求连接的建立,即在主机程序收到音频输入的请求时,AG将会作为客户端发起创建连接的请求。连接过程建立完成后,AG会通过振铃的方式来通知用户,用户接到通知后会通过按下蓝牙耳机上接听键的方式响应请求,而后HS会发送一个AT指令给AG,此时输入音频的连接就建立完成了。输出音频连接请求的建立是HS作为客户端向AG主动发起的输出音频连接的请求。例如,用户按下当用户按下耳机上的某个功能键时,HS将会发送AT指令给AG,接收到上述命令后创建SCO链路,这样便完成了输出音频连接建立。Input audio request connection establishment, that is, when the host program receives an audio input request, the AG will initiate a connection creation request as a client. After the connection process is established, the AG will notify the user by ringing. After receiving the notification, the user will respond to the request by pressing the answer button on the Bluetooth headset, and then the HS will send an AT command to the AG. At this time, the audio input The connection is established. The establishment of an output audio connection request is a request initiated by the HS as a client to initiate an output audio connection to the AG. For example, when the user presses a function key on the headset, the HS will send an AT command to the AG, and after receiving the above command, the SCO link will be established, thus completing the establishment of the output audio connection.

在上述的SCO链路建立后,语音连接便可以在HS和AG之间进行双向传输。分为两种情况:对于从AG到HS的语音连接转移过程来说,此过程是由HS的用户的某种操作发起的,此时HS会向AG发送AT指令,AG响应后完成音频连接的转移;对于HS到AG的语音连接转移过程来说,无需发送指令,直接由AG发起完成音频连接的转移。在连接建立完成后,可以远程进行音量的调节,即通过耳机发送AT指令来调节音量的大小。After the above-mentioned SCO link is established, the voice connection can be transmitted bidirectionally between the HS and the AG. There are two cases: For the voice connection transfer process from AG to HS, this process is initiated by some operation of the HS user. At this time, the HS will send an AT command to the AG, and the AG will complete the audio connection after the AG responds. Transfer: For the voice connection transfer process from the HS to the AG, there is no need to send an instruction, and the AG initiates the transfer of the audio connection directly. After the connection is established, the volume can be adjusted remotely, that is, the volume can be adjusted by sending AT commands through the headset.

随着智能手机的普及,越来越多的人使用智能手机的配件,例如蓝牙耳机。但是,现有技术中蓝牙设备与智能手机的连接步骤十分复杂,首先需要用户在系统的设置界面打开蓝牙设备,然后再打开“可见”设置,再搜索周围的设备,选择其中一个设备输入连接密钥等至少五个步骤才能实现。这对于年纪比较大的用户来说是十分繁琐的。With the popularity of smart phones, more and more people use smart phone accessories, such as bluetooth earphones. However, in the prior art, the connection steps between the Bluetooth device and the smart phone are very complicated. First, the user needs to open the Bluetooth device in the system setting interface, then open the "visible" setting, then search for the surrounding devices, and select one of the devices to enter the connection password. Key and so on at least five steps to achieve. This is very cumbersome for older users.

发明内容Contents of the invention

本发明的目的是提出一种蓝牙设备间一键建立通信连接的方法及装置,能够自动建立两个蓝牙设备间的通信连接,一键完成,方便用户使用蓝牙设备连接智能手机。The object of the present invention is to propose a method and device for establishing a communication connection between Bluetooth devices with one key, which can automatically establish a communication connection between two Bluetooth devices and complete it with one key, making it convenient for users to use Bluetooth devices to connect to smart phones.

本发明是通过下述技术方案实现的。The present invention is achieved through the following technical solutions.

一种蓝牙设备间一键建立通信连接的方法,所述方法通过在智能手机上安装一应用程序实现,所述方法包括:A method for establishing a communication connection with one key between bluetooth devices, the method is realized by installing an application program on a smart phone, and the method includes:

S1:所述应用程序获取蓝牙权限,打开所述智能手机的蓝牙功能,使周围的蓝牙设备能够搜索到该具有蓝牙功能的智能手机;S1: The application obtains the Bluetooth permission, and turns on the Bluetooth function of the smart phone, so that the surrounding Bluetooth devices can search for the smart phone with the Bluetooth function;

S2:所述应用程序控制蓝牙适配器查找周围所有的蓝牙设备,并将搜索到的蓝牙设备的名称和MA地址返回;S2: The application program controls the Bluetooth adapter to find all the surrounding Bluetooth devices, and returns the names and MA addresses of the searched Bluetooth devices;

S3:所述应用程序判断是否存在“已绑定”的蓝牙设备;S3: The application judges whether there is a "bound" Bluetooth device;

S4:如果存在唯一的“已绑定”的蓝牙设备,则所述应用程序自动连接所述蓝牙设备,然后执行S7;否则,所述应用程序将多个“已绑定”的蓝牙设备的名称显示在所述智能手机的屏幕上,根据用户的选择,所述应用程序自动连接用户选择的蓝牙设备,然后执行S7;S4: If there is a unique "bound" bluetooth device, the application automatically connects to the bluetooth device, and then executes S7; otherwise, the application uses the names of multiple "bound" bluetooth devices Displayed on the screen of the smart phone, according to the user's selection, the application automatically connects to the Bluetooth device selected by the user, and then executes S7;

S5:如果不存在“已绑定”的蓝牙设备,所述应用程序将搜索到的蓝牙设备的名称逐一显示在所述智能手机的屏幕上;S5: If there is no "bound" Bluetooth device, the application program displays the names of the searched Bluetooth devices on the screen of the smart phone one by one;

S6:根据用户的选择,所述应用程序自动连接用户选择的蓝牙设备;S6: According to the selection of the user, the application automatically connects to the Bluetooth device selected by the user;

S7:在建立智能手机与蓝牙设备之间的通信连接后,进行语音数据的传输。S7: After the communication connection between the smart phone and the Bluetooth device is established, voice data transmission is performed.

作为本发明的进一步改进,所述版图设计的基本规则包括:电源轨道的设计、标准单元大小、标准单元宽度、格点Pitch、输入输出pin脚位置。As a further improvement of the present invention, the basic rules of the layout design include: the design of the power rail, the size of the standard cell, the width of the standard cell, the grid point Pitch, and the position of the input and output pins.

作为本发明的进一步改进,所述蓝牙权限包括BLUETOOTH和BLUETOOTH_ADMIN。As a further improvement of the present invention, the Bluetooth authority includes BLUETOOTH and BLUETOOTH_ADMIN.

作为本发明的进一步改进,步骤S4中,所述应用程序自动连接蓝牙设备具体为:在智能手机与蓝牙设备之间建立共享密钥的链路,所述应用程序将存储的密钥发送给所述蓝牙设备进行配对,若配对成功,则执行步骤S7。As a further improvement of the present invention, in step S4, the automatic connection of the application program to the Bluetooth device is specifically: establishing a link of a shared key between the smart phone and the Bluetooth device, and the application program sends the stored key to the The Bluetooth device is paired, and if the pairing is successful, step S7 is executed.

作为本发明的进一步改进,步骤S7中,所述应用程序自动连接蓝牙设备具体为:在智能手机与蓝牙设备之间建立共享密钥的链路,所述应用程序将默认的密钥发送给所述蓝牙设备进行配对,若配对成功,则执行步骤S7;若配对不成功,所述应用程序更换默认的密钥再发起配对,直到尝试次数达到预设值,在界面上提示用户配对失败。As a further improvement of the present invention, in step S7, the automatic connection of the application program to the Bluetooth device is specifically: establishing a shared key link between the smart phone and the Bluetooth device, and the application program sends the default key to the Bluetooth device. If the pairing is successful, execute step S7; if the pairing is unsuccessful, the application program replaces the default key and initiates the pairing until the number of attempts reaches the preset value, and prompts the user on the interface that the pairing has failed.

作为本发明的进一步改进,所述方法还包括步骤S8:所述应用程序根据用户选择断开已经连接的蓝牙耳机设备。As a further improvement of the present invention, the method further includes step S8: the application program disconnects the connected Bluetooth headset device according to the user's selection.

本发明还提供了一种蓝牙设备间一键建立通信连接的装置,所述装置位于智能手机上,所述装置包括:The present invention also provides a device for establishing a communication connection between Bluetooth devices with one key, the device is located on a smart phone, and the device includes:

权限获取单元,用于获取蓝牙权限,打开所述智能手机的蓝牙功能,使周围的蓝牙设备能够搜索到具有蓝牙功能的智能手机;The authority acquisition unit is used to acquire the bluetooth authority, and turn on the bluetooth function of the smart phone, so that the surrounding bluetooth devices can search for the smart phone with the bluetooth function;

设备搜索单元,用于蓝牙适配器查找周围所有的蓝牙设备,并将搜索到的蓝牙设备的名称和MAC地址返回;The device search unit is used for the Bluetooth adapter to find all the Bluetooth devices around, and returns the name and MAC address of the searched Bluetooth devices;

判断单元,用于判断是否存在“已绑定”的蓝牙设备;a judging unit, configured to judge whether there is a "bound" bluetooth device;

第一显示单元,用于当存在多个的“已绑定”的蓝牙设备时,将多个“已绑定”的蓝牙设备的名称显示在所述智能手机的屏幕上;The first display unit is used to display the names of multiple "bound" Bluetooth devices on the screen of the smart phone when there are multiple "bound" Bluetooth devices;

第一自动连接单元,用于当存在唯一的“已绑定”的蓝牙设备时,自动连接所述蓝牙设备,或者,根据用户的选择,自动连接用户选择的蓝牙设备;The first automatic connection unit is used to automatically connect the Bluetooth device when there is a unique "bound" Bluetooth device, or, according to the user's selection, automatically connect to the Bluetooth device selected by the user;

第二显示单元,用于当不存在“已绑定”的蓝牙设备时,将搜索到的蓝牙设备的名称逐一显示在所述智能手机的屏幕上;The second display unit is used to display the names of the searched Bluetooth devices on the screen of the smart phone one by one when there is no "bound" Bluetooth device;

第二自动连接单元,用于根据用户的选择,自动连接用户选择的蓝牙设备;The second automatic connection unit is used to automatically connect the Bluetooth device selected by the user according to the selection of the user;

语音数据传输单元,用于在建立智能手机与蓝牙设备之间的通信连接后,进行语音数据的传输。The voice data transmission unit is used for transmitting voice data after the communication connection between the smart phone and the bluetooth device is established.

作为本发明的进一步改进,所述第一自动连接单元自动连接蓝牙设备具体为:在智能手机与蓝牙设备之间建立共享密钥的链路,所述应用程序将存储的密钥发送给所述蓝牙设备进行配对,若配对成功,则建立智能手机与蓝牙设备之间的通信连接。As a further improvement of the present invention, the automatic connection of the bluetooth device by the first automatic connection unit specifically includes: establishing a shared key link between the smart phone and the bluetooth device, and the application program sends the stored key to the The Bluetooth device is paired, and if the pairing is successful, a communication connection between the smart phone and the Bluetooth device is established.

作为本发明的进一步改进,所述第二自动连接单元自动连接蓝牙设备具体为:在智能手机与蓝牙设备之间建立共享密钥的链路,所述应用程序将默认的密钥发送给所述蓝牙设备进行配对,若配对成功,则建立智能手机与蓝牙设备之间的通信连接;若配对不成功,所述应用程序更换默认的密钥再发起配对,直到尝试次数达到预设值,在界面上提示用户配对失败。As a further improvement of the present invention, the automatic connection of the bluetooth device by the second automatic connection unit specifically includes: establishing a shared key link between the smart phone and the bluetooth device, and the application program sends the default key to the The Bluetooth device is paired. If the pairing is successful, a communication connection between the smart phone and the Bluetooth device is established; The user is prompted that pairing failed.

作为本发明的进一步改进,所述装置还包括:断开连接单元,用于根据用户选择断开已经连接的蓝牙耳机设备。As a further improvement of the present invention, the device further includes: a disconnection unit, configured to disconnect the connected Bluetooth headset device according to user selection.

附图说明Description of drawings

图1是本发明的第一实施例的方法流程图;Fig. 1 is the method flowchart of the first embodiment of the present invention;

图2是本发明的第二实施例的装置框图。Fig. 2 is a device block diagram of the second embodiment of the present invention.

具体实施方式detailed description

下面结合附图说明及具体实施方式对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

下面对本发明的方法的描述是基于Android操作系统的进行的,作为本领域技术人员,很容易移植到其它智能手机操作系统上实现。The following description of the method of the present invention is carried out based on the Android operating system, and as those skilled in the art, it can be easily transplanted to other smart phone operating systems for implementation.

附图1所示的是本发明的第一实施例,一种蓝牙设备间一键建立通信连接的方法,该方法通过在智能手机上安装一应用程序实现,该方法包括以下步骤:What shown in accompanying drawing 1 is the first embodiment of the present invention, a kind of method for establishing a communication connection with one key between bluetooth devices, and this method realizes by installing an application program on the smart phone, and this method comprises the following steps:

S1:所述应用程序获取蓝牙权限,打开所述智能手机的蓝牙功能,使周围的蓝牙设备能够搜索到该具有蓝牙功能的智能手机;所述蓝牙权限包括BLUETOOTH和BLUETOOTH_ADMIN。S1: The application program obtains the Bluetooth permission, and turns on the Bluetooth function of the smart phone, so that the surrounding Bluetooth devices can search for the smart phone with the Bluetooth function; the Bluetooth permission includes BLUETOOTH and BLUETOOTH_ADMIN.

打开蓝牙之前检测设备是否支持蓝牙。BletoothAdapter是蓝牙交互的入口,所以在BletoothContrller的蓝牙控制类中设置为私有成员,并通过getAdapter对外提供访问接口,可以通过getDefaultAdapter()方法来获取BletoothAdapter,若返回值为null,则表示该设备不支持蓝牙。Detect whether the device supports Bluetooth before turning on Bluetooth. BletoothAdapter is the entry point for Bluetooth interaction, so it is set as a private member in the Bluetooth control class of BletoothController, and the access interface is provided externally through getAdapter. BletoothAdapter can be obtained through the getDefaultAdapter() method. If the return value is null, it means that the device does not support Bluetooth.

一般通过函数isEnable()检测蓝牙是否可用,如果当前蓝牙不可用,可以通过两种方式打开蓝牙设备:利用用户交互界面打开;静默打开,即不需要征求用户同意,直接强制打开蓝牙功能,但是在Android平台下以这种方式打开蓝牙需要获取Android.permission.BLUETOOTH_ADMIN权限。Generally, the function isEnable() is used to detect whether the Bluetooth is available. If the current Bluetooth is not available, there are two ways to open the Bluetooth device: use the user interface to open; silently open, that is, you do not need to ask for the user's consent, directly force the Bluetooth function to be turned on, but in To open Bluetooth in this way under the Android platform, you need to obtain the Android.permission.BLUETOOTH_ADMIN permission.

本发明在打开应用软件的时候同时打开蓝牙设备,即采用了静默打开的方式。或者在点击应用软件中的“一键连接”时,同时打开蓝牙设备。The present invention opens the bluetooth device simultaneously when opening the application software, that is, adopts a silent opening mode. Or turn on the bluetooth device at the same time when you click "one-key connection" in the application software.

Android设计中的权限大致分为三类,即Android手机所有者权限、Androidroot权限和Android应用程序权限。The permissions in Android design are roughly divided into three categories, namely Android phone owner permissions, Android root permissions, and Android application permissions.

蓝牙权限(BluetoothPermissions)是指在应用蓝牙特性时需要声明的一种配置,在应用中使用蓝牙特性时需要至少声明一种蓝牙权限:BLUETOOTH和BLUETOOTH_ADMIN。为了执行任何一个蓝牙通信的操作,例如请求连接、接收连接或者传输数据,都必须请求BLUETOOTH权限,即任何蓝牙相关的API都需要使用这个权限。Bluetooth permissions (BluetoothPermissions) refer to a configuration that needs to be declared when applying Bluetooth features. When using Bluetooth features in an application, at least one Bluetooth permission needs to be declared: BLUETOOTH and BLUETOOTH_ADMIN. In order to perform any Bluetooth communication operation, such as requesting a connection, receiving a connection, or transmitting data, you must request the BLUETOOTH permission, that is, any Bluetooth-related API needs to use this permission.

为了初始化设备查找或控制蓝牙设置,例如设备搜索、蓝牙设置、启动设备和操纵蓝牙等必须请求BLUETOOTH_ADMIN权限。大多数的应用需要此权限,仅仅是为了可以发现本地的蓝牙设备。此权限授权的其他功能不应该被使用,除非该应用是一个“强大的控制器”,来通过用户请求修改蓝牙设置。对于这两个权限来说,如果使用了BLUETOOTH_ADMIN权限,那么必须拥有BLUETOOTH权限。BLUETOOTH_ADMIN permission must be requested in order to initiate device discovery or control Bluetooth settings, such as device discovery, Bluetooth settings, booting devices, and manipulating Bluetooth. Most applications need this permission only to be able to discover local bluetooth devices. Other functions authorized by this permission should not be used unless the app is a "powerful controller" to modify Bluetooth settings at the user's request. For these two permissions, if you use the BLUETOOTH_ADMIN permission, you must have the BLUETOOTH permission.

在每一个应用程序的APK包中都包含AndroidMainifest.xml文件,该文件不仅包含了应用程序的运行时库、运行依赖关系等,还记录着该应用程序所需的系统访问内容。在进行应用软件的开发时,程序员需要通过设置该文件中的uses-permission部分来向Android系统申请访问权限。所以蓝牙权限设置的方法为在manifest文件中声明蓝牙权限uses-permissions。The AndroidMainifest.xml file is included in the APK package of each application, which not only includes the application's runtime library, running dependencies, etc., but also records the system access content required by the application. When developing application software, the programmer needs to apply for access permission to the Android system by setting the uses-permission part in the file. So the way to set the Bluetooth permission is to declare the Bluetooth permission uses-permissions in the manifest file.

S2:所述应用程序控制蓝牙适配器查找周围所有的蓝牙设备,并将搜索到的蓝牙设备的名称和MA地址返回。S2: The application program controls the Bluetooth adapter to search for all surrounding Bluetooth devices, and returns the names and MA addresses of the searched Bluetooth devices.

本发明采用的搜索附近蓝牙设备的方法是在BluetoothAdapter类的startDiscovery方法中以一种异步的方式去执行,这种方式可以快速地查找到附近的蓝牙设备,不需要花费很长的时间去等待搜索结果。The method for searching nearby Bluetooth devices adopted by the present invention is performed in an asynchronous manner in the startDiscovery method of the BluetoothAdapter class, which can quickly find nearby Bluetooth devices without spending a long time waiting for the search result.

搜索设备完成以后,需要将搜索到的蓝牙设备的详细信息接收到手机端,即执行ACTION_FOUND的Intent操作,并注册一个BroadcastReceeiver对象,以保证能够准确的接收到蓝牙设备的详细信息。After searching for devices, you need to receive the detailed information of the searched Bluetooth devices to the mobile phone, that is, execute the Intent operation of ACTION_FOUND, and register a BroadcastReceeiver object to ensure that the detailed information of the Bluetooth devices can be accurately received.

S3:所述应用程序判断是否存在“已绑定”的蓝牙设备。S3: The application judges whether there is a "bound" Bluetooth device.

S4:如果存在唯一的“已绑定”的蓝牙设备,则所述应用程序自动连接所述蓝牙设备,然后执行S7;否则,所述应用程序将多个“已绑定”的蓝牙设备的名称显示在所述智能手机的屏幕上,根据用户的选择,所述应用程序自动连接用户选择的蓝牙设备,然后执行S7。S4: If there is a unique "bound" bluetooth device, the application automatically connects to the bluetooth device, and then executes S7; otherwise, the application uses the names of multiple "bound" bluetooth devices Displayed on the screen of the smart phone, according to the user's selection, the application automatically connects to the Bluetooth device selected by the user, and then executes S7.

S5:如果不存在“已绑定”的蓝牙设备,所述应用程序将搜索到的蓝牙设备的名称逐一显示在所述智能手机的屏幕上。S5: If there is no "bound" Bluetooth device, the application program displays the names of the searched Bluetooth devices on the screen of the smart phone one by one.

S6:根据用户的选择,所述应用程序自动连接用户选择的蓝牙设备。S6: According to the selection of the user, the application automatically connects to the Bluetooth device selected by the user.

在进行配对的时候,AG已经完成了搜索设备状态,搜索完成后从搜索到的蓝牙耳机或其他设备的地址中选择想要配对的设备地址来进行配对。在此过程中,通过调用BluetoothAdapter类中的getBonedDevice()方法来获取已经匹配的设备,该方法将返回一个能够区分每个已经配对的设备的BluetoothDevice数组。When pairing, the AG has already completed the search for device status. After the search is completed, select the address of the device to be paired from the addresses of the searched Bluetooth headsets or other devices for pairing. During this process, get the matched devices by calling the getBonedDevice() method in the BluetoothAdapter class, which will return a BluetoothDevice array that can distinguish each paired device.

在HS与AG进行通信之前必须要先完成配对过程。在配对的过程中两个蓝牙设备之间会建立起一条共享密钥的链路,同时HS也会存储这个链路的密钥,在下次与AG进行连接时,会进行辨别以前是否已经配对过了,若已经配对过了则不需要用户再次进行HS与AG的配对操作。若配对成功,HS就会作为从设备进入到连接状态。HS只有进入了连接状态,才能够从手机接收语音。否则,HS会一直处于待配对状态,直到AG与它配对成功为止。The pairing process must be completed before the HS communicates with the AG. During the pairing process, a shared key link will be established between the two Bluetooth devices. At the same time, the HS will also store the key of this link. When connecting to the AG next time, it will identify whether it has been paired before. If it has already been paired, the user does not need to perform the pairing operation between HS and AG again. If the pairing is successful, the HS will enter the connection state as a slave device. Only when the HS enters the connected state can it receive voice from the mobile phone. Otherwise, the HS will remain in the pending pairing state until the AG successfully pairs with it.

若HS从未与AG进行过连接,那么应用程序将默认的密钥发送给所述蓝牙设备进行配对,若配对成功,则进入到连接状态;若配对不成功,所述应用程序更换默认的密钥再发起配对,直到尝试次数达到预设值,在界面上提示用户配对失败。通常,默认的密钥会是“1234”、“123456”、“0000”等有规律的字符串,在出厂的时候进行的缺省设置。尝试次数可以是10次。If the HS has never been connected to the AG, the application will send the default key to the Bluetooth device for pairing. If the pairing is successful, it will enter the connection state; if the pairing is unsuccessful, the application will replace the default key. key to initiate pairing again until the number of attempts reaches the preset value, and the user will be prompted on the interface that the pairing failed. Usually, the default key will be regular character strings such as "1234", "123456", "0000", etc., which are set by default when leaving the factory. The number of attempts can be 10.

S7:在建立智能手机与蓝牙设备之间的通信连接后,进行语音数据的传输。S7: After the communication connection between the smart phone and the Bluetooth device is established, voice data transmission is performed.

(1)在蓝牙通信的实现过程中可采用HeadsetBase类(1) The HeadsetBase class can be used in the realization of Bluetooth communication

此类能够提供手机和耳机间通信的基本功能。本发明在编程过程中用到的HeadsetBase类中的一些重要属性和方法如表1所示:This class provides basic functionality for communication between the phone and the headset. Some important attributes and methods in the HeadsetBase class used in the programming process of the present invention are as shown in table 1:

表1HeadsetBase类Table 1 HeadsetBase class

State用于记录SCO链接状态,GetState()负责获得当前的连接状态。HeadThread是随着HeadsetBase对象的创建而启动的,负责处理远端耳机的指令,主要方法是Connect(),该方法负责建立连接,若建立连接成功返回1,否则返回-1。当两个蓝牙设备建立连接时,对于主设备和从设备都可以发起建立连接的请求。若是从设备发起请求,则该设备必须处于可查询状态,并不停的进行寻呼扫描;若是主设备发起请求,则该设备要向所选择的蓝牙设备发起RFCOMM连接。在HS作为从设备等待蓝牙AG发起连接的情况下,AG会发送一个振铃指令,当HS收到振铃指令时,会发出振铃声,此时用户可以按下确认按键,同意AG和HS间建立连接,此时RFCOMM连接已建立成功。在RFCOMM连接建立之后,AG会再次发起SCO连接建立请求,当HS收到建立SCO链接的请求后会设置耳机语音分组,此时SCO链路建立成功。上述的两个连接建立成功后,用户就可以进行HS和AG之间的语音通信了。方法Disconnect()用来断开SCO连接,返回值与Connect方法相同。State is used to record the SCO link state, and GetState() is responsible for obtaining the current connection state. HeadThread is started with the creation of the HeadsetBase object and is responsible for processing the instructions of the remote headset. The main method is Connect(), which is responsible for establishing a connection. If the connection is successfully established, it returns 1, otherwise it returns -1. When two Bluetooth devices establish a connection, both the master device and the slave device can initiate a connection establishment request. If the request is initiated by the slave device, the device must be in a queryable state and continuously perform page scanning; if the request is initiated by the master device, the device must initiate an RFCOMM connection to the selected Bluetooth device. When the HS is waiting for the Bluetooth AG to initiate a connection as a slave device, the AG will send a ringing command. When the HS receives the ringing command, it will make a ringing sound. The connection is established. At this time, the RFCOMM connection has been successfully established. After the RFCOMM connection is established, the AG will initiate the SCO connection establishment request again, and when the HS receives the SCO connection establishment request, it will set the earphone voice group, and the SCO link establishment is successful. After the above two connections are successfully established, the user can perform voice communication between the HS and the AG. The method Disconnect() is used to disconnect the SCO connection, and the return value is the same as the Connect method.

SetupControl(CmdTypecmd)方法负责控制相关的配置,例如音量的远程控制,即HS向AG发送麦克风和扬声器的增益请求,AG会通过配置参数cmd来对两个增益进行初始化设置。The SetupControl(CmdTypecmd) method is responsible for controlling related configurations, such as remote control of the volume, that is, the HS sends the microphone and speaker gain requests to the AG, and the AG will initialize the two gains by configuring the parameter cmd.

(2)可采用A2DP应用架构实现高品质的语音通信(2) A2DP application architecture can be used to realize high-quality voice communication

A2DPHandler是该应用框架的核心,该模块有A2DPHandler类来实现。本发明在编程实现是用到的A2DPHandler类中的一些重要属性和方法如表2所示:A2DPHandler is the core of the application framework, and this module is implemented by the A2DPHandler class. Some important attributes and methods in the A2DPHandler class that the present invention uses in programming are as shown in Table 2:

表2A2DPHandler类Table 2A2DPHandler class

表2中的属性FirstCall负责记录是否是首次调用该模块;PCMQueue用来存储PCM数据包的循环缓存队列;A2DPPacketQueue用来存储A2DPPacket数据包的循环缓存队列。The attribute FirstCall in Table 2 is responsible for recording whether the module is called for the first time; PCMQueue is used to store the circular buffer queue of PCM data packets; A2DPPacketQueue is used to store the circular buffer queue of A2DPPacket data packets.

表2中的方法Start()是在A2DP模块接收第一个PCM数据包时调用的,主要负责A2DP连接、AVRCP(Audio/VideoRemoteControlProfile)建立以及信号与定时器的设置,该方法执行成功返回1,否则返回0;Stop()与Start()的作用相反,即断开A2DP连接、终止AVRCP远程监听,返回值与Start()相同。The method Start() in Table 2 is called when the A2DP module receives the first PCM packet. It is mainly responsible for A2DP connection, AVRCP (Audio/VideoRemoteControlProfile) establishment, and signal and timer setting. The method returns 1 successfully. Otherwise, return 0; Stop() is opposite to Start(), that is, disconnect A2DP connection, terminate AVRCP remote monitoring, and the return value is the same as Start().

方法Send(constvoid*buffer,size_tbytes,intrate,intchannel,char*A2DPaddr)中buffer为数据包的首地址,bytes为数据包大小,rate为采样频率,channel为声道数,A2DPaddr为蓝牙耳机地址。在调用此函数时会把数据包发送到PCMQueue中,并将每个包的大小分成512个字节。采样率和声道数会在SBC(SubBandCoding)压缩时进行配置。在此过程中如果地址参数发生了变化,则需要断开连接并重新建立连接。In the method Send(constvoid*buffer, size_tbytes,intrate,intchannel,char*A2DPaddr), buffer is the first address of the data packet, bytes is the size of the data packet, rate is the sampling frequency, channel is the number of channels, and A2DPaddr is the address of the Bluetooth headset. When this function is called, the data packet will be sent to PCMQueue, and the size of each packet will be divided into 512 bytes. The sampling rate and the number of channels will be configured during SBC (SubBandCoding) compression. If the address parameter changes during this process, the connection needs to be disconnected and re-established.

本发明的方法还包括步骤S8:所述应用程序根据用户选择断开已经连接的蓝牙耳机设备。The method of the present invention further includes step S8: the application program disconnects the connected Bluetooth headset device according to the user's choice.

附图2是本发明的第二实施例,一种基于Android的蓝牙设备间一键建立通信连接的装置的框图,所述装置位于基于Android的智能手机上,所述装置包括:Accompanying drawing 2 is the second embodiment of the present invention, a kind of block diagram of the device that one key establishes communication connection between the bluetooth device based on Android, described device is positioned on the smart phone based on Android, and described device comprises:

权限获取单元,用于获取蓝牙权限,打开所述智能手机的蓝牙功能,使周围的蓝牙设备能够搜索到具有蓝牙功能的智能手机。The authority acquisition unit is used to acquire the bluetooth authority, and turn on the bluetooth function of the smart phone, so that the surrounding bluetooth devices can search for the smart phone with the bluetooth function.

设备搜索单元,用于蓝牙适配器查找周围所有的蓝牙设备,并将搜索到的蓝牙设备的名称和MAC地址返回。The device search unit is used for the bluetooth adapter to find all the bluetooth devices around, and return the name and MAC address of the searched bluetooth devices.

判断单元,用于判断是否存在“已绑定”的蓝牙设备。The judging unit is configured to judge whether there is a "bound" Bluetooth device.

第一显示单元,用于当存在多个的“已绑定”的蓝牙设备时,将多个“已绑定”的蓝牙设备的名称显示在所述智能手机的屏幕上。The first display unit is configured to display the names of multiple "bound" Bluetooth devices on the screen of the smart phone when there are multiple "bound" Bluetooth devices.

第一自动连接单元,用于当存在唯一的“已绑定”的蓝牙设备时,自动连接所述蓝牙设备,或者,根据用户的选择,自动连接用户选择的蓝牙设备。The first automatic connection unit is configured to automatically connect the bluetooth device when there is a unique "bound" bluetooth device, or, according to the user's selection, automatically connect to the bluetooth device selected by the user.

第二显示单元,用于当不存在“已绑定”的蓝牙设备时,将搜索到的蓝牙设备的名称逐一显示在所述智能手机的屏幕上。The second display unit is configured to display the names of the searched bluetooth devices on the screen of the smart phone one by one when there is no "bound" bluetooth device.

第二自动连接单元,用于根据用户的选择,自动连接用户选择的蓝牙设备。The second automatic connection unit is used for automatically connecting the bluetooth device selected by the user according to the selection of the user.

语音数据传输单元,用于在建立智能手机与蓝牙设备之间的通信连接后,进行语音数据的传输。The voice data transmission unit is used for transmitting voice data after the communication connection between the smart phone and the bluetooth device is established.

断开连接单元,用于根据用户选择断开已经连接的蓝牙耳机设备。The disconnection unit is used for disconnecting the connected Bluetooth headset device according to the user's choice.

本领域的技术人员应明白,本发明的实施例可提供为方法、系统、设备或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, devices or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (10)

1. the method that between bluetooth equipment, one key establishes a communications link, is characterized in that: described method realizes by installing an application program on smart mobile phone, and described method comprises:
S1: described application program obtains bluetooth authority, opens the Bluetooth function of described smart mobile phone, the bluetooth equipment of surrounding is searched smart mobile phone that this has Bluetooth function;
S2: described application program controlling Bluetooth adapter searches all bluetooth equipments around, and the title of the bluetooth equipment searched and MAC Address is returned;
S3: described application program judges whether the bluetooth equipment that there is " binding ";
S4: if the bluetooth equipment of existence anduniquess " binding ", then described application program is from being dynamically connected described bluetooth equipment, then performs S7; Otherwise the title of the bluetooth equipment of multiple " binding " is presented on the screen of described smart mobile phone by described application program, according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected, then performs S7;
S5: the bluetooth equipment if there is no " bound ", the title of the bluetooth equipment searched is presented on the screen of described smart mobile phone by described application program one by one;
S6: according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected;
S7: after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
2. method according to claim 1, is characterized in that: described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
3. method according to claim 1, it is characterized in that: in step S4, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7.
4. method according to claim 1, it is characterized in that: in step S7, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
5. method according to claim 1, is characterized in that: described method also comprises step S8: described application program is selected according to user to disconnect the Bluetooth earphone equipment connected.
6. the device that between bluetooth equipment, one key establishes a communications link, described device is positioned on smart mobile phone, it is characterized in that: described device comprises:
Authority acquiring unit, for obtaining bluetooth authority, opens the Bluetooth function of described smart mobile phone, enables the bluetooth equipment of surrounding search the smart mobile phone with Bluetooth function;
Equipment search unit, searches all bluetooth equipments around for Bluetooth adapter, and the title of the bluetooth equipment searched and MAC Address is returned;
Judging unit, for judging whether the bluetooth equipment that there is " binding ";
First display unit, for when there is the bluetooth equipment of multiple " binding ", is presented on the screen of described smart mobile phone by the title of the bluetooth equipment of multiple " binding ";
First automatic linkage unit, during bluetooth equipment for " the binding " when existence anduniquess, be dynamically connected described bluetooth equipment certainly, or, according to the selection of user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Second display unit, for when there is not the bluetooth equipment of " binding ", is presented on the screen of described smart mobile phone one by one by the title of the bluetooth equipment searched;
Second automatic linkage unit, for the selection according to user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Voice data transmission unit, for after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
7. device according to claim 6, is characterized in that: described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
8. device according to claim 6, it is characterized in that: the described first automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment.
9. device according to claim 6, it is characterized in that: the described second automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
10. device according to claim 6, is characterized in that: described device also comprises: disconnect unit, disconnects for selecting according to user the Bluetooth earphone equipment connected.
CN201510890147.7A 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices Pending CN105516897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510890147.7A CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510890147.7A CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Publications (1)

Publication Number Publication Date
CN105516897A true CN105516897A (en) 2016-04-20

Family

ID=55724472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510890147.7A Pending CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Country Status (1)

Country Link
CN (1) CN105516897A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
CN107102837A (en) * 2017-05-25 2017-08-29 成都市极米科技有限公司 Multiple terminals Display on the same screen system and method
CN107484169A (en) * 2017-08-11 2017-12-15 北京安云世纪科技有限公司 A kind of radio communication establishment of connection method and device
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection
CN107818452A (en) * 2017-10-31 2018-03-20 重庆猫扑网络科技有限公司 A kind of multiple terminals office system and its operating method based on smart mobile phone storage
WO2018149319A1 (en) * 2017-02-14 2018-08-23 阿里巴巴集团控股有限公司 Communication method and device
CN108449745A (en) * 2018-05-30 2018-08-24 北京恩福健康科技有限公司 The method that multiple bluetooth equipments connect transmission data automatically under complex scene
CN108616586A (en) * 2018-04-20 2018-10-02 上海思愚智能科技有限公司 A kind of communication means and intelligence module of intelligence module
CN109194722A (en) * 2018-08-15 2019-01-11 珠海奔图电子有限公司 By method, equipment and the storage medium of user account number and image forming apparatus binding
CN109413629A (en) * 2018-11-20 2019-03-01 智车优行科技(北京)有限公司 Bluetooth reconnection method
CN110519735A (en) * 2019-08-30 2019-11-29 厦门市思芯微科技有限公司 A kind of Bluetooth audio equipment adaptive connection method based on android system
CN112073761A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for realizing Bluetooth function and double-hardware system display equipment
CN112533181A (en) * 2019-08-31 2021-03-19 深圳市三嘉立信科技有限公司 Convenient application system is connected to bluetooth
CN112714424A (en) * 2020-12-22 2021-04-27 苏州思必驰信息科技有限公司 Voice interaction authority management method and system for large-screen device
CN113923636A (en) * 2020-06-24 2022-01-11 深圳市万普拉斯科技有限公司 Invoking selection interface method, device and mobile terminal
CN114915953A (en) * 2021-02-09 2022-08-16 瑞昱半导体股份有限公司 Bluetooth communication system and computer-readable storage medium
CN117201660A (en) * 2022-05-31 2023-12-08 广州星际悦动股份有限公司 Equipment pairing method, system and storage medium based on oral cleaning interaction system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141249A (en) * 2006-09-07 2008-03-12 中兴通讯股份有限公司 Security-enhanced encryption system and method
CN101835279A (en) * 2009-12-29 2010-09-15 闻泰集团有限公司 Method for simplifying mobile terminal connecting bluetooth equipment
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141249A (en) * 2006-09-07 2008-03-12 中兴通讯股份有限公司 Security-enhanced encryption system and method
CN101835279A (en) * 2009-12-29 2010-09-15 闻泰集团有限公司 Method for simplifying mobile terminal connecting bluetooth equipment
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
WO2018149319A1 (en) * 2017-02-14 2018-08-23 阿里巴巴集团控股有限公司 Communication method and device
TWI738909B (en) * 2017-02-14 2021-09-11 香港商阿里巴巴集團服務有限公司 Communication method and device
US11038828B2 (en) 2017-02-14 2021-06-15 Alibaba Group Holding Limited Automatic display of session interface for communication with neighboring device
CN107102837A (en) * 2017-05-25 2017-08-29 成都市极米科技有限公司 Multiple terminals Display on the same screen system and method
CN107484169A (en) * 2017-08-11 2017-12-15 北京安云世纪科技有限公司 A kind of radio communication establishment of connection method and device
CN107818452A (en) * 2017-10-31 2018-03-20 重庆猫扑网络科技有限公司 A kind of multiple terminals office system and its operating method based on smart mobile phone storage
CN107770762B (en) * 2017-11-20 2020-05-19 飞天诚信科技股份有限公司 A method and device for establishing a Bluetooth connection
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection
CN108616586A (en) * 2018-04-20 2018-10-02 上海思愚智能科技有限公司 A kind of communication means and intelligence module of intelligence module
CN108449745A (en) * 2018-05-30 2018-08-24 北京恩福健康科技有限公司 The method that multiple bluetooth equipments connect transmission data automatically under complex scene
CN108449745B (en) * 2018-05-30 2020-12-22 北京恩福健康科技有限公司 Method for automatically connecting and transmitting data by multiple Bluetooth devices in complex scene
CN109194722B (en) * 2018-08-15 2021-08-03 珠海奔图电子有限公司 Method, apparatus and storage medium for binding user account with image forming device
CN109194722A (en) * 2018-08-15 2019-01-11 珠海奔图电子有限公司 By method, equipment and the storage medium of user account number and image forming apparatus binding
CN109413629A (en) * 2018-11-20 2019-03-01 智车优行科技(北京)有限公司 Bluetooth reconnection method
CN112073761A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for realizing Bluetooth function and double-hardware system display equipment
CN110519735A (en) * 2019-08-30 2019-11-29 厦门市思芯微科技有限公司 A kind of Bluetooth audio equipment adaptive connection method based on android system
CN112533181A (en) * 2019-08-31 2021-03-19 深圳市三嘉立信科技有限公司 Convenient application system is connected to bluetooth
CN113923636A (en) * 2020-06-24 2022-01-11 深圳市万普拉斯科技有限公司 Invoking selection interface method, device and mobile terminal
CN113923636B (en) * 2020-06-24 2024-04-09 深圳市万普拉斯科技有限公司 Method, device and mobile terminal for calling selection interface
CN112714424A (en) * 2020-12-22 2021-04-27 苏州思必驰信息科技有限公司 Voice interaction authority management method and system for large-screen device
CN114915953A (en) * 2021-02-09 2022-08-16 瑞昱半导体股份有限公司 Bluetooth communication system and computer-readable storage medium
CN117201660A (en) * 2022-05-31 2023-12-08 广州星际悦动股份有限公司 Equipment pairing method, system and storage medium based on oral cleaning interaction system
CN117201660B (en) * 2022-05-31 2024-08-16 广州星际悦动股份有限公司 Device pairing method, system, device, display device and storage medium based on oral cleaning interaction system

Similar Documents

Publication Publication Date Title
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
US9730268B2 (en) Communication between host and accessory devices using accessory protocols via wireless transport
EP3920507B1 (en) Wireless audio output devices
CN103518418B (en) Method and device for connection between bluetooth devices
WO2018032455A1 (en) Bluetooth communication method and terminal
CN105139877B (en) Connection method of multimedia playback equipment, main equipment, control terminal and system
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
WO2019128530A1 (en) Audio broadcasting method, device, and system, and smart broadcasting apparatus
CN104469482A (en) Control method and device for connecting an intelligent terminal to a bluetooth device
WO2021239032A1 (en) Bluetooth protocol connection method and apparatus, storage medium, and related device
CN113556715B (en) Device connection method and apparatus, computer readable medium and electronic device
CN110753334A (en) Bluetooth communication method, device and equipment with Bluetooth communication function
US10346334B2 (en) Mode switchable audio processor for digital audio
WO2013030736A1 (en) Docking system with automatic music playback via bluetooth
CN115119190A (en) Bluetooth connection method, device, computer equipment and readable storage medium
WO2016150191A1 (en) Data sharing method and device
CN106095132A (en) Playing equipment button function setting method and device
KR20120034338A (en) Security operating method for access point and system thereof
WO2015139401A1 (en) Establishment method and system for wireless network, and wireless routing device
CN105682010A (en) Bluetooth connection control method and device in audio playing system, and player
CN110999340A (en) Apparatus and method for short-range wireless communication
CN115087134A (en) A Bluetooth connection method and electronic device
CN110968233A (en) Music playing switching operation method, system, storage medium and equipment
US11575793B2 (en) Service system supporting voice call using digital assistant device, method thereof, and non-transitory computer readable medium having computer program recorded thereon
US20250106917A1 (en) Communication method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420