Method and device for identifying bluetooth headset voice source
10609538 · 2020-03-31
Assignee
- Shenzhen Timekettle Technologies Co., Ltd. (Shenzhen, Guangdong, CN)
- Tian; Li (Shenzhen, Guangdong, CN)
Inventors
Cpc classification
H04W4/80
ELECTRICITY
G06F21/445
PHYSICS
International classification
H04W4/80
ELECTRICITY
Abstract
A method for identifying a Bluetooth headset voice source includes: S1: establishing a connection between a device itself, that is, a first Bluetooth headset, and a smart terminal and a connection between the first Bluetooth headset and a second Bluetooth headset separately; and S2: when the first or second Bluetooth headset sends a voice, establishing a data control channel by using Generic Attribute Profile and Attribute Protocol, sending a corresponding identifier to the smart terminal according to different voice sources, and then sending the voice to the smart terminal. A device for identifying a Bluetooth headset voice source includes a baseband circuit (1), a memory (2), and a main controller (3). The program in the memory (2) is used for performing the method for identifying a Bluetooth headset voice source. The method and device can solve the problem about identifying voice sources of two Bluetooth headsets.
Claims
1. A method for identifying a Bluetooth headset voice source, comprising the following steps: S1: establishing a connection between a device itself, that is, a first Bluetooth headset, and a smart terminal and a connection between the first Bluetooth headset and a second Bluetooth headset separately; and S2: when the first or second Bluetooth headset sends a voice, establishing a data control channel by using Generic Attribute Profile and Attribute Protocol, sending a corresponding identifier to the smart terminal according to different voice sources, and then sending the voice to the smart terminal.
2. The method according to claim 1, wherein the step S2 further comprises the following substeps: S21: generating a first voice by the device itself, or receiving a second voice sent by the second Bluetooth headset; S22: determining whether the voice is generated by the device itself; if not, executing S23; if yes, sending a first identifier representing the first Bluetooth headset to the smart terminal, then sending the first voice to the smart terminal, and ending; and S23: sending a second identifier representing the second Bluetooth headset to the smart terminal, and then sending the second voice to the smart terminal.
3. The method according to claim 2, wherein when the first or second Bluetooth headset receives a voice from the smart terminal, the method further comprises the following steps: S3: enabling the device itself, that is, the first Bluetooth headset, to receive an identifier sent by the smart terminal by using the data control channel, and then receive the voice sent by the smart terminal; S4: determining whether the identifier is the first identifier representing the first Bluetooth headset; if not, executing S5; if yes, playing the voice directly; and S5: sending the voice to the second Bluetooth headset.
4. The method according to claim 1, wherein the identifier is UUID data.
5. The method according to claim 1, wherein an audio transport protocol between the smart terminal, the first Bluetooth headset and the second Bluetooth headset is Hands-Free Profile.
6. The method according to claim 1, wherein the smart terminal is a mobile smart device with a Bluetooth interface, and can be a smart phone, a tablet computer, and a smart watch or bracelet.
7. A device for identifying a Bluetooth headset voice source, comprising a baseband circuit, a memory, and a main controller, wherein the memory is configured to store a computer program and temporary voice data, the main controller is configured to execute the computer program, the baseband circuit is electrically connected to the main controller, and the memory is electrically connected to the main controller, wherein the computer program enables the device to perform the method according to claim 1.
8. The device for identifying a Bluetooth headset voice source according to claim 7, wherein the memory is an internal memory integrated in the main controller.
9. The device for identifying a Bluetooth headset voice source according to claim 7, wherein the first Bluetooth headset further comprises an NFC chip, and the NFC chip is electrically connected to the main controller for quick connection of the device itself, that is, the first Bluetooth headset to the smart terminal and the second Bluetooth headset.
10. A computer readable storage medium comprising a computer program, wherein the computer program is operable to enable a computer to perform the method according to claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) To make the objectives, technical solutions, and advantages of the present application more comprehensible, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used to explain the present disclosure but are not intended to limit the present application.
Embodiment 1
(7)
(8) S1: Establish a connection between a device itself, that is, a first Bluetooth headset, and a smart terminal and a connection between the first Bluetooth headset and a second Bluetooth headset separately.
(9) A connection is established between the first Bluetooth headset and the smart terminal through Hands-Free Profile, Generic Attribute Profile and Attribute Protocol, and a connection is established between the first Bluetooth headset and the second Bluetooth headset through Hands-Free Profile.
(10) S2: When the first or second Bluetooth headset sends a voice, establish a data control channel by using Generic Attribute Profile and Attribute Protocol, send a corresponding identifier to the smart terminal according to different voice sources, and then send the voice to the smart terminal.
(11) As shown in
(12) S21: Generate a first voice by the device itself, or receive a second voice sent by the second Bluetooth headset.
(13) S22: Determine whether the voice is generated by the device itself; if not, execute S23; if yes, send a first identifier representing the first Bluetooth headset to the smart terminal, then send the first voice to the smart terminal, and end.
(14) S23: Send a second identifier representing the second Bluetooth headset to the smart terminal, and then send the second voice to the smart terminal.
(15)
(16) In order to facilitate different target voice identifiers, Generic Attribute Profile (GATT) is added between the smart terminal and the first Bluetooth headset as a data control channel. The Attribute Protocol (ATT) acts as a basic protocol of Generic Attribute Profile, so that the first identifier and the second identifier respectively representing the first Bluetooth headset and the second Bluetooth headset can be transmitted in the data control channel. The identifier can be UUID data of which rules are user-defined, so that the smart terminal and the first Bluetooth headset comply with the rules, and can identify the UUID data from each other and acquire important information, such as a character string representing different Bluetooth devices. The control unit in the first Bluetooth headset can determine whether the voice is generated by the device itself, and whether the received identifier is an identifier representing the device itself. The smart terminal in the method can be a mobile smart device with a Bluetooth interface, such as a smart phone, a tablet computer, and a smart watch or bracelet.
(17) Further optionally, the method further includes the part that the first and second Bluetooth headsets receive the voice of the smart terminal. As shown in
(18) S3: Enable the device itself, that is, the first Bluetooth headset, to receive the identifier sent by the smart terminal by using the data control channel, and then receive the voice sent by the smart terminal.
(19) S4: Determine whether the identifier is the first identifier representing the first Bluetooth headset; if not, execute S5; if yes, play the voice directly.
(20) S5: Send the voice to the second Bluetooth headset.
(21) Therefore, the first Bluetooth headset mainly performs the function of voice forwarding and identifier determination in the whole process, and the voice data is temporarily stored in the first Bluetooth headset during forwarding. After the corresponding identifier is sent, the voice data is instantly sent to the smart terminal or the second Bluetooth headset.
Embodiment 2
(22) As shown in
(23) Although the above contents are detailed descriptions of the present application made in conjunction with specific/exemplary implementations, and it should not be considered that the specific implementations of the present application are limited to these descriptions. It should be understood by persons of ordinary skill in the art that various replacements or variations may be made to the described implementations without departing from the spirit of the present application. All such replacements or variations shall fall within the protection scope of the present application.
(24) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.