Bluetooth connection method, device, computer equipment and readable storage medium

By performing directional broadcasting after the main headset in the Bluetooth headset pair establishes a second connection with the terminal, and passing the information to the slave headset for non-directional broadcasting, the problems of misconnection and mixed connection of Bluetooth headsets in LE Audio technology are solved, and automatic connection of the Bluetooth headset pair with the target terminal is achieved, which improves the user experience and reduces the transition cost.

CN115119190BActive Publication Date: 2025-09-16BESTECHNIC SHANGHAI CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210709170.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2025-09-16
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

In TWS application scenarios, Bluetooth headsets in LE Audio technology cannot actively reconnect, and there are problems with misconnection and mixed connection, resulting in a poor user experience.

Method used

By establishing a first connection between the master earphone and the slave earphone of the Bluetooth headset pair, turning on the first mode and second mode of the master earphone, after the master earphone establishes a second connection with the terminal, the Bluetooth device address resolution key and the device unique address information are sent for directional broadcast, and the master earphone sends this information to the slave earphone for non-directional broadcast, thereby realizing automatic connection between the Bluetooth headset pair and the target terminal.

Benefits of technology

It solves the problems of misconnection and mixed connection of Bluetooth headsets in LE Audio technology, improves user experience, and reduces the cost of transitioning from ordinary Bluetooth products to low-power audio products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115119190B_ABST
    Figure CN115119190B_ABST
Patent Text Reader

Abstract

The present application proposes a Bluetooth connection method, apparatus, computer equipment and readable storage medium, wherein the method includes: establishing a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair; after the Bluetooth earphone pair enters pairing mode, turning on the first mode and the second mode of the master earphone, so that after the Bluetooth earphone receives a connection request initiated by the terminal, a second connection between the master earphone and the terminal is established; according to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master earphone, so that the master earphone performs a directional broadcast between the terminal; at the same time, the master earphone sends the terminal Bluetooth device address resolution key and the device unique address information to the slave earphone, so that the slave earphone uses a non-directional broadcast to establish a connection with the terminal device. The present application proposes a Bluetooth connection method that can complete the transition between ordinary Bluetooth products and low-power audio products, and solve the problems of Bluetooth earphone misconnection and mixed connection that occur in LE Audio technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio communication technology, and in particular to a Bluetooth connection method, device, computer equipment, and readable storage medium. Background Art

[0002] To meet user demand for Bluetooth audio, the Bluetooth SIG launched LE Audio (LowEnergy Audio) technology, which brings new audio experience features, including enhanced audio performance, audio sharing capabilities, and hearing aid support, improving the low power consumption and low latency performance of Bluetooth products. Because LE Audio is a new technology, it requires a transition from traditional Bluetooth products to LE products, and it also requires improvements and optimizations to address issues existing in BLE (Bluetooth Low Energy) connections.

[0003] However, during the research and practice of the prior art, the inventors of this application discovered that there are at least the following problems:

[0004] In TWS (True Wireless Stereo) application scenarios, it is necessary to reconnect immediately after the headphone box lid is opened, but LE devices do not have the reconnection function and can only passively accept connections. In addition, since the LE Audio connection method cannot clearly identify the target device to be connected, it may cause the Bluetooth headset to be connected incorrectly, and the left and right ears of the same pair of Bluetooth headsets may be connected to different devices.

[0005] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention

[0006] In response to the above technical problems, the present application provides a Bluetooth connection method, device, computer equipment and readable storage medium, which can solve the problems of misconnection and mixed connection of Bluetooth headsets in the existing LE Audio technology, and effectively realize the transition between ordinary Bluetooth products and low-power audio products.

[0007] To solve the above technical problems, this application provides a Bluetooth connection, comprising the following steps:

[0008] Establishing a first connection between a master headset and a slave headset of a Bluetooth headset pair;

[0009] After the Bluetooth headset pair enters pairing mode, turning on the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established;

[0010] According to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master headset, so that the master headset performs a directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information;

[0011] According to the first connection, the master earphone sends the Bluetooth device address resolution key and the device unique address information to the slave earphone through the directional broadcast, so that the slave earphone performs non-directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information.

[0012] Optionally, after establishing the second connection between the primary headset and the terminal, the method further includes:

[0013] acquiring connection event information according to the second connection;

[0014] Determine whether the terminal supports low-power audio technology according to the device type information in the connection event information.

[0015] Optionally, the sending, according to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal to the master headset includes:

[0016] After the terminal is connected to the main headset according to the second connection, the terminal initiates a secure connection process on the channel corresponding to the second connection, and calculates the long-term connection key corresponding to the low-power Bluetooth connection from the traditional Bluetooth connection key of the second connection.

[0017] Optionally, after initiating a secure connection process in the channel corresponding to the second connection by the terminal, the method further includes:

[0018] Acquire the Bluetooth device address resolution key and device unique address information of the terminal; the device unique address information includes the device unique address and its address type information.

[0019] Optionally, the master headset performs directional broadcasting with the terminal according to the Bluetooth device address resolution key and the device unique address information, including:

[0020] Adding the Bluetooth device address resolution key and device unique address information of the terminal to the device filtering list through the master headset;

[0021] After the Bluetooth device address resolution key and unique address information of the terminal are sent to the Bluetooth controller through the host control layer of the master headset, the Bluetooth controller calculates the random address of the terminal device as the target address of the directional broadcast, and starts the directional broadcast of the master headset.

[0022] Optionally, the slave headset performs non-directional broadcasting with the terminal according to the Bluetooth device address resolution key and the device unique address information, including:

[0023] adding, by the slave headset, the Bluetooth device address resolution key and the device unique address information received according to the first connection to a device filtering list;

[0024] After the device filter list is sent to the Bluetooth controller through the host control layer of the slave headset, the non-directional broadcast of the slave headset is started, so that the slave headset filters the connection request according to the device filter list.

[0025] Optionally, the Bluetooth connection method further includes:

[0026] After completing the directional broadcast between the master headset and the terminal, and the non-directional broadcast between the slave headset and the terminal, a third connection between the Bluetooth headset pair and the terminal is established.

[0027] Accordingly, the present application provides a Bluetooth connection device, comprising:

[0028] A first connection module, configured to establish a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair;

[0029] A second connection module is configured to enable the first mode and the second mode of the master headset after the Bluetooth headset pair enters the pairing mode, so that a second connection between the master headset and the terminal is established after the Bluetooth headset receives a connection request initiated by the terminal;

[0030] a master ear broadcast module, configured to send the Bluetooth device address resolution key and device unique address information of the terminal to the master earphone according to the second connection, so that the master earphone performs a directional broadcast with the terminal according to the Bluetooth device address resolution key and device unique address information;

[0031] The slave ear broadcast module is used to send the Bluetooth device address resolution key and the device unique address information to the slave earphone through the master earphone after the directional broadcast according to the first connection, so that the slave earphone can perform non-directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information.

[0032] An embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above-mentioned Bluetooth connection methods when executing the computer program.

[0033] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned Bluetooth connection methods are implemented.

[0034] The implementation of the embodiments of the present application has the following beneficial effects:

[0035] As described above, the present application provides a Bluetooth connection method, apparatus, computer device and readable storage medium, wherein the method includes: establishing a first connection between a master headset and a slave headset of a Bluetooth headset pair; after the Bluetooth headset pair enters pairing mode, turning on the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established; according to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master headset, so that the master headset performs a directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information; according to the first connection, the master headset after the directional broadcast sends the Bluetooth device address resolution key and the device unique address information to the slave headset, so that the slave headset performs a non-directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information. This application proposes a Bluetooth connection method. After the master headset conducts a directional broadcast with the target terminal, the master headset sends the Bluetooth device address resolution key and device unique address information of the target terminal to the slave headset, so that the slave headset completes the non-directional broadcast with the target terminal, and realizes the automatic connection of the Bluetooth low energy of the Bluetooth headset with the target terminal by cross-transmission key derivation, solves the problems of Bluetooth headset misconnection and mixed connection in the current LE Audio technology, and completes the transition between ordinary Bluetooth products and low-power audio products, improving user experience while reducing the required transition cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for describing the embodiments. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without inventive work.

[0037] Figure 1 This is a flowchart of a first embodiment of the Bluetooth connection method provided in the embodiment of the present application;

[0038] Figure 2 This is a flow chart of a second embodiment of the Bluetooth connection method provided in the embodiment of the present application;

[0039] Figure 3This is a schematic diagram of the structure of a Bluetooth headset provided in an embodiment of the present application when connected to a terminal;

[0040] Figure 4 This is a flowchart of a third implementation of the Bluetooth connection method provided in an embodiment of the present application;

[0041] Figure 5 is a structural diagram of an image matching device provided in an embodiment of the present application;

[0042] Figure 6 This is a schematic structural diagram of a first embodiment of a computer device provided in an embodiment of the present application;

[0043] Figure 7 It is a structural diagram of the second implementation of the computer device provided in the embodiment of the present application.

[0044] The purpose of this application, its features, and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and the accompanying text are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of this application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0045] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0046] It should be noted that, in this document, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0047] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to a determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising" and "including" indicate the presence of the described features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups. The terms "or," "and / or," "including at least one of the following," etc., used herein, may be interpreted as inclusive, or mean any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”; and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.

[0048] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0049] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0050] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial restriction on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.

[0051] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0052] In the subsequent description, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the purpose of facilitating the description of the present application and has no specific meaning. Therefore, "module", "component" or "unit" can be used interchangeably.

[0053] With the advent of LE Audio technology, which transmits audio data over a Bluetooth low energy connection, Bluetooth products achieve low power consumption and low latency. However, true wireless stereo applications require the earphone box to reconnect immediately upon opening, but LE devices lack this functionality and can only accept connections. While the LE Audio protocol is considering allowing LE peripheral devices to initiate connections, this requires ensuring that the phone is constantly scanning for broadcasts, which relies on the phone's implementation. Furthermore, because LE Audio's connection method doesn't explicitly specify the target device to connect to, it can lead to issues like misconnecting Bluetooth headsets and connecting the left and right earbuds of the same pair to different devices. For example, if a pair of Bluetooth headsets has previously been connected to device A, which may be constantly scanning for the pair, and now needs to pair with a new device B, when both earbuds broadcast non-directionally, device A may connect, preventing the intended device B from connecting. Alternatively, the left earbud may connect to device B while the right earbud is connected to device A, resulting in a poor user experience.

[0054] In order to solve the above problems, this application proposes a Bluetooth connection method, device, computer equipment and readable storage medium, which realizes the automatic connection of Bluetooth low energy consumption of Bluetooth headsets with the target terminal through cross-transmission key derivation, solves the problems of misconnection and mixed connection of Bluetooth headsets in the current LE Audio technology, and completes the transition between ordinary Bluetooth products to low-power audio products, improving user experience while reducing the required transition costs.

[0055] See also Figure 1 , Figure 1 : is a flowchart of the Bluetooth connection method provided in an embodiment of the present application. The Bluetooth connection method may specifically include:

[0056] S1. Establish a first connection between a master headset and a slave headset of a Bluetooth headset pair.

[0057] Specifically, for step S1, it is first necessary to establish a first connection between the master earphone and the slave earphone in the Bluetooth earphone pair, where the first connection is a TWS (True Wireless Stereo) connection, including a BT (Bluetooth) connection and / or a BLE (Bluetooth Low Energy) connection.

[0058] S2. After the Bluetooth headset enters pairing mode, the first mode and the second mode of the master headset are turned on, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established.

[0059] Specifically, in step S2, in order for the Bluetooth headset pair to connect to the new terminal device, when the Bluetooth headset pair enters pairing mode, the master headset in the Bluetooth headset pair opens a first mode and a second mode, where the first mode can be an inquiry scan mode (discoverable mode) and the second mode can be a page scan mode (connectable mode). After the user clicks connect, the Bluetooth headset receives the connection request initiated by the terminal, thereby establishing a second connection between the master headset and the terminal, where the second connection is a classic Bluetooth connection.

[0060] S3. According to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master headset, so that the master headset performs a directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information.

[0061] Specifically, for step S3, based on the second connection established between the main headset and the terminal, the terminal's IRK (The Identity Resolving Key) Bluetooth device address resolution key and IA (Identify Address) device unique address information are sent to the main headset, so that the main headset calculates the random address of the remote device based on the received device address resolution key and device unique address information, and receives the connection of the terminal device through directional broadcast.

[0062] Optionally, in some embodiments, the master headset performs directional broadcasting with the terminal based on the Bluetooth device address resolution key and the device unique address information, which may specifically include:

[0063] Add the terminal's Bluetooth device address resolution key and device unique address information to the broadcast device filter list through the main headset;

[0064] After the terminal's Bluetooth device address resolution key and device unique address information are sent to the Bluetooth controller's resolvable list through the host control layer of the main headset, the Bluetooth controller calculates the random address of the terminal device as the target address of the directional broadcast, and starts the directional broadcast of the main headset.

[0065] Specifically, after the terminal's Bluetooth device address resolution key and device unique address information are sent to the master headset based on the second connection, the terminal's Bluetooth device address resolution key and device unique address information are obtained using the SMP secure connection process, and the LE Add Device To Resolving List command is sent to the Bluetooth controller through the Host control layer on the master headset to generate a random address for the terminal device. At the same time, the terminal's device unique address information is used as the target address for directional broadcasting, and the master headset's directional broadcast is started, so that the master headset conducts directional broadcasting with the terminal based on the newly added broadcast list, and waits for the terminal to connect based on the master headset's device unique address information before broadcasting. Alternatively, a device filter list request is sent to the Bluetooth controller through the Host control layer on the master headset to generate a device filter list. The master headset starts non-directional broadcasting based on the device filter list, thereby filtering out terminals that are not in the device filter list to avoid misconnection.

[0066] It should be noted that non-directional broadcasting can also be used between the main headset and the terminal. The main headset uses the terminal's Bluetooth device address resolution key and device unique address information as device filter list information to filter the received connection requests.

[0067] Optionally, in some embodiments, after establishing the second connection between the primary headset and the terminal, the Bluetooth connection method may further include:

[0068] Acquiring connection event information according to the second connection;

[0069] Determine whether the terminal supports low-power audio technology based on the device type information in the connection event information.

[0070] Specifically, after establishing the second connection between the main headset and the terminal, this embodiment also provides for identifying the device type of the terminal. Since Bluetooth will identify the device information in the connection event during the connection process, for example, the device type information of the terminal will be reported in the connection event information. By judging the device type information, you can know whether the current terminal supports LE Audio low-power audio technology. If not, the entire Bluetooth connection process ends, and it is determined that the current terminal does not support LE Audio low-power audio technology, and there is no need to send LE Audio broadcasts. Only after determining that the terminal supports LE Audio low-power audio technology, will the subsequent process continue. Since LE Audio technology is still in the popularization stage, most mobile phones on the market may not support LE Audio. Then when the headset recognizes that the mobile phone does not support LE Audio, it can reduce unnecessary interactions, such as broadcasting waiting for connection, to achieve the problem of reducing power consumption.

[0071] Optionally, in some embodiments, sending the Bluetooth device address resolution key and device unique address information of the terminal to the primary headset according to the second connection may specifically include:

[0072] After the terminal is connected to the main headset according to the second connection, the terminal initiates a secure connection process on the channel corresponding to the second connection, and calculates the long-term connection key corresponding to the low-power Bluetooth connection from the traditional Bluetooth connection key of the second connection.

[0073] Specifically, after the main headset establishes a second connection with the terminal, the terminal first connects to the main headset according to the established second connection, and then initiates the SMP (secure connection) process in the channel corresponding to the second connection (for example, L2CAP Channel) through the terminal. The LTK (LongTime Key) is calculated and derived from the Link Key connection key of the channel corresponding to the second connection, that is, the long-term key used to create session keys and encrypt messages at the link layer.

[0074] It should be noted that this embodiment calculates the long-term connection key corresponding to the BLE connection from the BT connection key of the second connection, so that the next time the terminal is connected, the BLE connection with the terminal can be established directly based on the long-term connection key, without the need to calculate the BLE LTK (long-term key) separately, thereby effectively improving the efficiency of Bluetooth directional connection.

[0075] Optionally, in some embodiments, after the terminal initiates a secure connection process in the channel corresponding to the second connection, the following steps may be specifically included:

[0076] Obtain the terminal's Bluetooth device address resolution key and device unique address information; the device unique address information includes the device unique address and its address type information.

[0077] Specifically, after the terminal initiates the SMP (secure connection) process in the channel corresponding to the second connection, the Bluetooth device address resolution key and device unique address information corresponding to the terminal will also be obtained; the device unique address information includes the device unique address and its address type information.

[0078] S4. According to the first connection, the master headset sends the Bluetooth device address resolution key and the device unique address information to the slave headset through the directional broadcast, so that the slave headset performs non-directional broadcasting with the terminal based on the Bluetooth device address resolution key and the device unique address information.

[0079] Specifically, for step S4, according to the first connection established between the master earphone and the slave earphone, after the master earphone completes the directional broadcast, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the slave earphone through the master earphone, so that the slave earphone uses non-directional broadcast according to the Bluetooth device address resolution key and the device unique address information of the terminal, and filters the devices requesting connection at the same time.

[0080] Optionally, in some embodiments, the headset performs non-directional broadcasting with the terminal based on the Bluetooth device address resolution key and the device unique address information, which may specifically include:

[0081] by adding the Bluetooth device address resolution key and the device unique address information received according to the first connection to the device filtering list from the headset;

[0082] After the device filter list is sent to the Bluetooth controller through the host control layer of the slave headset, the non-directional broadcast of the slave headset is started, so that the slave headset filters the connection request according to the device filter list.

[0083] Specifically, since the slave earphone does not have the Bluetooth device address resolution key of the terminal in advance, it is necessary to send the Bluetooth device address resolution key and device unique address information of the terminal device to the slave earphone through the master earphone according to the first connection. After receiving the Bluetooth device address resolution key and device unique address information, the slave earphone is added to the device filter list, so as to generate a device filter list by sending a request to add the device filter list to the Bluetooth main controller through the Host control layer of the slave earphone. At the same time, the slave earphone filters the received connection requests according to the device filter list, and finally ensures that the master earphone and the slave earphone can connect to the same device, avoiding the situation where the master earphone cannot reconnect or mixed connections occur.

[0084] Alternatively, as Figure 2 As shown, in some embodiments, the Bluetooth connection method may further include:

[0085] S5. After completing the directional broadcast between the master headset and the terminal, and the non-directional broadcast between the slave headset and the terminal, a third connection between the Bluetooth headset pair and the terminal is established.

[0086] After completing the directional broadcast between the master headset and the terminal, and completing the non-directional broadcast between the slave headset and the same terminal, the third connection between the Bluetooth headset and the terminal is established, where the third connection is a BLE connection. The subsequent Bluetooth headset pair can connect to the terminal according to the third connection when it is turned on and reconnected. Figure 3As shown, in this embodiment, the connection between the master headset and the slave headset is TWS Link (true wireless stereo connection), the connection between the master headset and the terminal includes BTACL (classic Bluetooth connection) and BLE ACL (low-power Bluetooth connection), and the connection between the slave headset and the terminal includes SnoopLink (monitoring connection) and BLE ACL (low-power Bluetooth connection).

[0087] like Figure 4 As shown, the embodiment of the present application also provides a third implementation method, the specific steps include: establishing a Bluetooth (BT) / low-power Bluetooth (BLE) connection between the master headset and the slave headset, the master headset turns on the inquiry scan mode (discoverable mode) and page scan mode (connectable mode), the terminal initiates a classic Bluetooth connection with the master headset, after the classic Bluetooth connection is successfully established, the terminal sends the Bluetooth device address resolution key (IRK) and the device unique address information to the master headset, the master headset turns on the directional broadcast according to the terminal Bluetooth device address resolution key, the device unique address information and its type, and the master headset Bluetooth device address resolution key in the newly added broadcast list, and after the master headset obtains the IRK and address information of the remote device, it is added to the RPA of the Bluetooth controller. In the resolvable list, the terminal random address calculated by the Bluetooth controller is used as the target address of the directed broadcast. After completing the directed broadcast, the master headset sends the terminal Bluetooth device address resolution key, the device unique address information and its type to the slave headset, generates a new list of broadcast addresses and a list of broadcast address receivers, and sends the device filter list and remote device information to the Bluetooth controller through the host control layer of the slave headset, so that after the general broadcast is turned on, the Bluetooth controller filters the connection requests of other devices according to the device filter list and remote device information.

[0088] As can be seen from the above, the Bluetooth connection method provided in the embodiment of the present application includes: establishing a first connection between a master headset and a slave headset of a Bluetooth headset pair; after the Bluetooth headset pair enters pairing mode, turning on the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established; according to the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master headset, so that the master headset performs a directed broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information; according to the first connection, the master headset after the directed broadcast sends the Bluetooth device address resolution key and the device unique address information to the slave headset, so that the slave headset performs a non-directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information. An embodiment of the present application proposes a Bluetooth connection method. After the master headset conducts a directional broadcast with the target terminal, the master headset sends the Bluetooth device address resolution key and device unique address information of the target terminal to the slave headset, so that the slave headset completes the non-directional broadcast with the target terminal, and realizes the automatic connection of the Bluetooth low energy of the Bluetooth headset with the target terminal by cross-transmission key derivation, thereby solving the problems of Bluetooth headset misconnection and mixed connection in the current LE Audio technology, and completing the transition between ordinary Bluetooth products and low-power audio products, thereby improving user experience while reducing the required transition cost.

[0089] Correspondingly, this application also provides a Bluetooth connection device, please refer to Figure 5 , Figure 5 It is a structural diagram of the image matching device provided in this application, which may specifically include a first connection module 100, a second connection module 200, a master ear broadcast module 300 and a slave ear broadcast module 400.

[0090] The first connection module 100 is used to establish a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair.

[0091] Specifically, for the first connection module 100, it is first necessary to establish a first connection between the master earphone and the slave earphone in the Bluetooth earphone pair, where the first connection is a TWS (True Wireless Stereo) connection, including a BT (Bluetooth) connection and / or a BLE (Bluetooth Low Energy) connection.

[0092] The second connection module 200 is used to enable the first mode and the second mode of the master headset after the Bluetooth headset enters the pairing mode, so that after the Bluetooth headset receives the connection request initiated by the terminal, a second connection between the master headset and the terminal is established.

[0093] Specifically, for the second connection module 200, in order for the Bluetooth headset pair to connect to a new terminal device, when the Bluetooth headset pair enters pairing mode, the master headset in the Bluetooth headset pair opens the first mode and the second mode, where the first mode can be the inquiry scan mode (discoverable mode) and the second mode can be the page scan mode (connectable mode). After the user clicks on the connection, the Bluetooth headset receives the connection request initiated by the terminal, thereby establishing a second connection between the master headset and the terminal, where the second connection is a classic Bluetooth connection.

[0094] The master ear broadcast module 300 is used to send the Bluetooth device address resolution key and device unique address information of the terminal to the master earphone according to the second connection, so that the master earphone can perform directional broadcasting between the terminal and the terminal according to the Bluetooth device address resolution key and device unique address information.

[0095] Specifically, for the master ear broadcast module 300, according to the second connection established between the master earphone and the terminal, the terminal's IRK (The Identity Resolving Key) Bluetooth device address resolution key and IA (Identify Address) device unique address information are sent to the master earphone, so that the master earphone starts a directional broadcast between the terminal based on the received device address resolution key and device unique address information.

[0096] The slave ear broadcast module 400 is used to send the Bluetooth device address resolution key and the device unique address information to the slave earphone through the master earphone after the directional broadcast according to the first connection, so that the slave earphone can perform non-directional broadcast between the terminal according to the Bluetooth device address resolution key and the device unique address information.

[0097] Specifically, for the slave ear broadcast module 400, according to the first connection established between the master earphone and the slave earphone, after the master earphone completes the directional broadcast, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the slave earphone through the master earphone, so that the slave earphone starts a non-directional broadcast between the terminal and the terminal based on the Bluetooth device address resolution key and the device unique address information of the terminal.

[0098] To sum up, the Bluetooth connection device provided in the embodiment of the present application first establishes a first connection between the master earphone and the slave earphone of the Bluetooth earphone pair through the first connection module 100; the second connection module 200 turns on the first mode and the second mode of the master earphone after the Bluetooth earphone pair enters the pairing mode, so that after the Bluetooth earphone receives the connection request initiated by the terminal, a second connection between the master earphone and the terminal is established; the master ear broadcast module 300 sends the Bluetooth device address resolution key and the device unique address information of the terminal to the master earphone according to the second connection, so that the master earphone performs a directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information; the slave ear broadcast module 400 sends the Bluetooth device address resolution key and the device unique address information to the slave earphone through the master earphone after the directional broadcast according to the first connection, so that the slave earphone performs a non-directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information.

[0099] It can be seen that the Bluetooth connection device of the embodiment of the present application, after the main earphone conducts a directional broadcast with the target terminal, sends the Bluetooth device address resolution key and device unique address information of the target terminal to the slave earphone through the main earphone, so that the slave earphone completes the non-directional broadcast with the target terminal, and realizes the automatic connection of the Bluetooth low energy of the Bluetooth earphone with the target terminal by cross-transmission key derivation, solves the problems of Bluetooth earphone misconnection and mixed connection in the current LE Audio technology, and completes the transition between ordinary Bluetooth products to low-power audio products, thereby improving user experience while reducing the required transition cost.

[0100] The present application also provides a computer device. Figure 4 , Figure 4 The present invention is a structural diagram of a first embodiment of a computer device provided in an embodiment of the present application. The computer device includes a memory 10 and a processor 20. The memory 10 stores a computer program. When the processor 20 executes the computer program, a Bluetooth connection method is implemented, including: establishing a first connection between a master headset and a slave headset of a Bluetooth headset pair; after the Bluetooth headset pair enters pairing mode, turning on the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by a terminal, a second connection between the master headset and the terminal is established; according to the second connection, the Bluetooth device address resolution key and device unique address information of the terminal are sent to the master headset, so that the master headset performs a directional broadcast with the terminal based on the Bluetooth device address resolution key and device unique address information; according to the first connection, the master headset after the directional broadcast sends the Bluetooth device address resolution key and device unique address information to the slave headset, so that the slave headset performs a non-directional broadcast with the terminal based on the Bluetooth device address resolution key and device unique address information.

[0101] The present application also provides a computer device, which may be a server. Figure 5 , Figure 5 1 is a schematic structural diagram of a second embodiment of a computer device provided in an embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data such as Bluetooth connection methods. The network interface of the computer device is used to communicate with an external terminal via a network connection.

[0102] When executed by a processor, the computer program implements a Bluetooth connection method. The Bluetooth connection method includes: establishing a first connection between a master headset and a slave headset of a Bluetooth headset pair; after the Bluetooth headset pair enters pairing mode, activating the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by a terminal, a second connection between the master headset and the terminal is established; based on the second connection, sending the Bluetooth device address resolution key and device unique address information of the terminal to the master headset, so that the master headset performs a directional broadcast with the terminal based on the Bluetooth device address resolution key and device unique address information; based on the first connection, sending the Bluetooth device address resolution key and device unique address information to the slave headset through the directional broadcast, so that the slave headset performs a non-directional broadcast with the terminal based on the Bluetooth device address resolution key and device unique address information.

[0103] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements a Bluetooth connection method when executed by a processor, including the steps of: establishing a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair; after the Bluetooth earphone pair enters pairing mode, turning on the first mode and the second mode of the master earphone, so that after the Bluetooth earphone receives a connection request initiated by the terminal, a second connection between the master earphone and the terminal is established; based on the second connection, the Bluetooth device address resolution key and the device unique address information of the terminal are sent to the master earphone, so that the master earphone performs a directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information; based on the first connection, the master earphone after the directional broadcast sends the Bluetooth device address resolution key and the device unique address information to the slave earphone, so that the slave earphone performs a non-directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information.

[0104] The Bluetooth connection method executed above, in the embodiment of the present application, after the master earphone conducts a directional broadcast with the target terminal, the master earphone sends the Bluetooth device address resolution key and device unique address information of the target terminal to the slave earphone, so that the slave earphone completes the non-directional broadcast with the target terminal, and realizes the automatic connection of the Bluetooth low energy of the Bluetooth earphone with the target terminal by cross-transmission key derivation, solves the problems of Bluetooth earphone misconnection and mixed connection in the current LE Audio technology, and completes the transition between ordinary Bluetooth products to low-power audio products, thereby improving the user experience while reducing the required transition cost.

[0105] It is understood that the above scenarios are merely examples and do not limit the application scenarios of the technical solutions provided in the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, those skilled in the art will appreciate that with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application will also be applicable to similar technical problems.

[0106] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0107] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0108] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0109] In this application, the same or similar terminology, technical solutions and / or application scenario descriptions are generally only described in detail the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of this application, for the same or similar terminology, technical solutions and / or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.

[0110] In this application, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0111] The various technical features of the technical solution of this application can be combined arbitrarily. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as mentioned above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the method of each embodiment of the present application.

[0113] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. Available media can include magnetic media (e.g., floppy disks, storage disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks (SSDs)).

[0114] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A Bluetooth connection method, characterized in that: The steps include: Establishing a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair, wherein the first connection is a TWS connection; After the Bluetooth headset pair enters pairing mode, the first mode and the second mode of the master headset are turned on, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established, the second connection is a classic Bluetooth connection, the first mode is a discoverable mode, and the second mode is a connectable mode; After the terminal is connected to the primary headset according to the second connection, a secure connection process is initiated by the terminal on the channel corresponding to the second connection, and connection event information is obtained according to the second connection; and whether the terminal supports low-power audio technology is determined according to the device type information in the connection event information; If supported, obtaining the Bluetooth device address resolution key and device unique address information of the terminal, so that the master headset performs a directional broadcast with the terminal according to the Bluetooth device address resolution key and device unique address information; the device unique address information includes the device unique address and its address type information; and calculating a long-term connection key corresponding to the low-power Bluetooth connection from the traditional Bluetooth connection key of the second connection, so that the next time the primary headset needs to connect to the terminal, it can directly establish a BLE connection with the terminal based on the long-term connection key; According to the first connection, the master headset sends the Bluetooth device address resolution key and the device unique address information to the slave headset through the directed broadcast, so that the slave headset performs non-directional broadcast with the terminal according to the Bluetooth device address resolution key and the device unique address information; After completing the directional broadcast between the master headset and the terminal, and the non-directional broadcast between the slave headset and the terminal, a third connection between the Bluetooth headset pair and the terminal is established. The third connection is a BLE connection. Subsequently, the Bluetooth headset pair can connect to the terminal according to the third connection when it is turned on and reconnected.

2. The Bluetooth connection method according to claim 1, wherein: The master headset performs directional broadcasting with the terminal according to the Bluetooth device address resolution key and the device unique address information, including: Adding the Bluetooth device address resolution key and device unique address information of the terminal to the device filtering list through the master headset; After the Bluetooth device address resolution key and device unique address information of the terminal are sent to the Bluetooth controller resolvable list through the host control layer of the main headset, the Bluetooth controller calculates the random address of the terminal device as the target address of the directional broadcast, and starts the directional broadcast of the main headset.

3. The Bluetooth connection method according to claim 1, wherein: The slave headset performs non-directional broadcasting with the terminal according to the Bluetooth device address resolution key and the device unique address information, including: adding, by the slave headset, the Bluetooth device address resolution key and the device unique address information received according to the first connection to a device filtering list; After the device filter list is sent to the Bluetooth controller through the host control layer of the slave headset, the non-directional broadcast of the slave headset is started, so that the slave headset filters the connection request according to the device filter list.

4. A Bluetooth connection device, characterized in that: include: A first connection module is configured to establish a first connection between a master earphone and a slave earphone of a Bluetooth earphone pair, wherein the first connection is a TWS connection; A second connection module is configured to, after the Bluetooth headset pair enters pairing mode, enable the first mode and the second mode of the master headset, so that after the Bluetooth headset receives a connection request initiated by the terminal, a second connection between the master headset and the terminal is established, wherein the second connection is a classic Bluetooth connection, the first mode is a discoverable mode, and the second mode is a connectable mode; a primary earphone broadcast module, configured to, after the terminal is connected to the primary earphone according to the second connection, initiate a secure connection process on the channel corresponding to the second connection through the terminal, obtain connection event information according to the second connection; and determine whether the terminal supports low-power audio technology based on device type information in the connection event information; If supported, the Bluetooth device address resolution key and device unique address information of the terminal are obtained, so that the master headset performs a directional broadcast with the terminal based on the Bluetooth device address resolution key and device unique address information; the device unique address information includes the device unique address and its address type information; and the long-term connection key corresponding to the low-power Bluetooth connection is calculated from the traditional Bluetooth connection key of the second connection, so that the next time the master headset needs to connect to the terminal, it can directly establish a BLE connection with the terminal based on the long-term connection key; a slave ear broadcast module, configured to send the Bluetooth device address resolution key and the device unique address information to the slave earphone through the master earphone after the directional broadcast according to the first connection, so that the slave earphone performs non-directional broadcast with the terminal based on the Bluetooth device address resolution key and the device unique address information; The third connection module is used to establish a third connection between the Bluetooth headset pair and the terminal after completing the directional broadcast between the master headset and the terminal and the non-directional broadcast between the slave headset and the terminal. The third connection is a BLE connection. The subsequent Bluetooth headset pair can connect to the terminal according to the third connection when it is turned on and reconnected.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the Bluetooth connection method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the Bluetooth connection method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Bluetooth earphone, pairing connection method and device thereof, and TWS earphone

    CN111629369A