Bluetooth connection method of wireless earphone and wireless earphone
By implementing a Bluetooth connection method in wireless headphones, the compatibility and stability issues of dual-mode TWS headphones between classic Bluetooth and Bluetooth Low Energy are solved, improving connection speed and accuracy, and ensuring consistency in connection.
Patent Information
- Application Number
- CN202411855645.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-25
AI Technical Summary
Existing dual-mode TWS headsets have compatibility and stability issues during the connection transition between classic Bluetooth and low-power Bluetooth, and insufficient connection speed and accuracy.
By implementing a Bluetooth connection method in a wireless headset, it includes establishing at least one Bluetooth connection between the target terminal device and the first headset, acquiring device information of the terminal device, and sending information to a second headset, sending directional broadcasts and non-directional broadcasts based on these information to establish a low-power Bluetooth connection between the terminal device and the second headset.
Improves compatibility and stability of dual-mode TWS headsets, enhances the Bluetooth connection speed and accuracy of the headset and terminal devices, and ensures consistency between the connection between the master and slave headset and terminal devices.
Smart Images

Figure CN119893746A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to Bluetooth communication, and more particularly, to a Bluetooth connection method for a wireless headset. Background Art
[0002] With the evolution of Bluetooth technology, Bluetooth audio transmission technology is transitioning from classic Bluetooth audio (Classic Audio) to low-energy Bluetooth audio (Low Energy Audio) technology, and this transition phase will last for several years or even longer. Dual-mode TWS (True Wireless Stereo) headphones that support both classic Bluetooth audio and low-energy Bluetooth audio can effectively solve the compatibility issues during this transition phase.
[0003] In classic Bluetooth audio technology, since the protocol specification itself does not consider the application scenario of a pair of TWS headphones interacting with the same terminal device for audio data services, each manufacturer uses a private implementation method based on the classic Bluetooth protocol: one earphone is the main role, responsible for establishing a classic Bluetooth connection with the terminal device, and the other earphone is the secondary role earphone, sharing information through the wireless connection established between the master and slave earphones, and then obtaining classic Bluetooth audio data through other methods (relay, eavesdropping, etc.).
[0004] The information disclosed in the background technology section is already known to the inventor before the disclosure of this application, or is technical information obtained in the process of disclosure. Therefore, it may contain information that does not constitute prior art known to the public. Summary of the invention
[0005] The present disclosure provides a Bluetooth connection method for a wireless headset and a wireless headset, which can improve the compatibility and stability of a dual-mode TWS headset, and can improve the Bluetooth connection speed and accuracy of the headset.
[0006] According to one aspect of the present disclosure, a Bluetooth connection method for a wireless headset is provided, the wireless headset comprising a first headset and a second headset, the Bluetooth connection method comprising: establishing at least one of a first Bluetooth connection and a second Bluetooth connection between a target terminal device and the first headset; acquiring device information of the target terminal device based on establishing the second Bluetooth connection between the target terminal device and the first headset; sending the device information and connection status information of the first headset to the second headset; based on the device information and the connection status information, sending a directional broadcast and a first non-directional broadcast or sending the first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the second headset; wherein the device information comprises an address of the target terminal device and an address resolution key.
[0007] Optionally, establishing at least one of the first Bluetooth connection and the second Bluetooth connection between the target terminal device and the first headset includes: based on the connection mode of the first headset being a pairing mode, turning on the discoverable mode and the connectable mode of the first headset to establish the first Bluetooth connection between the target terminal device and the first headset; and / or based on the connection mode of the first headset being a pairing mode, sending a second non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the first headset.
[0008] Optionally, establishing at least one of the first Bluetooth connection and the second Bluetooth connection between the target terminal device and the first headset includes: based on the connection mode of the first headset being a recovery mode, performing one or more of the following operations: actively initiating a first Bluetooth connection with the target terminal device, and sending a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device, wherein the target address of the directional broadcast is the address of the target terminal device.
[0009] Optionally, the Bluetooth connection method also includes: based on the failure to successfully establish the first Bluetooth connection between the target terminal device and the first headset or based on the failure to successfully establish the second Bluetooth connection between the target terminal device and the first headset, turning off the discoverable mode of the first headset, stopping sending the second non-directional broadcast, and determining the number of all target terminal devices connected to the first headset, wherein the number of all target terminal devices connected to the first headset includes the sum of a first number of target terminal devices that have only established a first Bluetooth connection with the first headset, a second number of target terminal devices that have only established a second Bluetooth connection with the first headset, and a third number of target terminal devices that have established a first Bluetooth connection and a second Bluetooth connection with the first headset; based on the number of all target terminal devices being less than a first threshold, performing one or more of the following operations: maintaining the connectible mode of the first headset to establish a first Bluetooth connection with each target terminal device that has been connected to the first headset, and sending a first non-directional broadcast, and adding the addresses of each target terminal device that has been connected to the first headset to a device address filtering list to establish a second Bluetooth connection with each target terminal device that has been connected to the first headset.
[0010] Optionally, the Bluetooth connection method also includes: based on the number of all target terminal devices being greater than or equal to a first threshold, determining the connection type between the first headset and each connected target terminal device; based on the fact that the connection type between the first headset and a first target terminal device among the connected target terminal devices is only a first Bluetooth connection, sending a first non-directional broadcast, and adding the address of the first target terminal device to a device address filtering list to establish a second Bluetooth connection between the first target terminal device and the first headset; based on the fact that the connection type between the first headset and a second target terminal device among the connected target terminal devices is only a second Bluetooth connection, maintaining the connectible mode of the first headset to establish a first Bluetooth connection between the second target terminal device and the first headset.
[0011] Optionally, the Bluetooth connection method further includes: based on the connection type between the first headset and each connected target terminal device being both the first Bluetooth connection and the second Bluetooth connection, turning off the connectable mode of the first headset and stopping sending the first non-directional broadcast.
[0012] Optionally, based on the device information and the connection status information, sending a directional broadcast and a first non-directional broadcast or sending a first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the second headset includes: determining whether the second headset has the pairing information of the target terminal device; based on the second headset having the pairing information of the target terminal device, sending a directional broadcast of a preset duration based on the pairing information, and sending a first non-directional broadcast at the same time, and adding the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection between the target terminal device and the second headset; based on the second headset not having the pairing information of the target terminal device, sending the first non-directional broadcast, and adding the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection between the target terminal device and the second headset.
[0013] Optionally, the sending of a directed broadcast and a first non-directed broadcast or a first non-directed broadcast based on the device information and the connection status information to establish a second Bluetooth connection between the target terminal device and the second headset also includes: determining whether a second Bluetooth connection has been established between the target terminal device and the second headset; wherein, based on that a second Bluetooth connection has not been established between the target terminal device and the second headset, it is determined that the second headset does not have the pairing information of the target terminal device.
[0014] Optionally, the sending of a directed broadcast and a first non-directed broadcast or a first non-directed broadcast based on the device information and the connection status information to establish a second Bluetooth connection between the target terminal device and the second headset also includes: determining whether a fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaches a first threshold based on that a second Bluetooth connection has been established between the other terminal device and the second headset; disconnecting the second Bluetooth connection between the other terminal device and the second headset based on that the fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaches the first threshold; maintaining the second Bluetooth connection between the other terminal device and the second headset based on that the fourth number of all target terminal devices connected to the first headset indicated by the connection status information is less than or equal to the first threshold; wherein, after disconnecting the second Bluetooth connection between the other terminal device and the second headset, or after maintaining the second Bluetooth connection between the other terminal device and the second headset, determining whether the second headset has the pairing information of the target terminal device.
[0015] Optionally, based on the device information and the connection status information, sending a directed broadcast and a first non-directed broadcast or sending a first non-directed broadcast to establish a second Bluetooth connection between the target terminal device and the second headset, also includes: based on establishing the second Bluetooth connection between the target terminal device and the second headset, stopping sending the first non-directed broadcast.
[0016] Optionally, establishing at least one of the first Bluetooth connection and the second Bluetooth connection between the target terminal device and the first headset includes: based on establishing a wireless connection with the second headset and being selected as the main headset based on preset rules, establishing at least one of the first Bluetooth connection and the second Bluetooth connection between the target terminal device and the first headset.
[0017] Optionally, sending the device information and the connection status information of the first earphone to the second earphone includes: based on establishing a wireless connection with the second earphone and being selected as the main earphone based on a preset rule, sending the device information and the connection status information of the first earphone to the second earphone.
[0018] According to one aspect of the present disclosure, a wireless headset is provided, comprising a first headset and a second headset, wherein the first headset comprises at least one first processor, and the at least one first processor is configured to: establish at least one of a first Bluetooth connection and a second Bluetooth connection between a target terminal device and the first headset; in response to establishing a second Bluetooth connection between the target terminal device and the first headset, obtain device information of the target terminal device; send the device information and connection status information of the first headset to the second headset; wherein the second headset comprises at least one second processor, and the at least one second processor is configured to: based on the device information and the connection status information, send a directed broadcast and a first non-directed broadcast or send the first non-directed broadcast to establish a second Bluetooth connection between the target terminal device and the second headset; wherein the device information comprises an address of the target terminal device and an address resolution key.
[0019] Optionally, when at least one of a first Bluetooth connection and a second Bluetooth connection is established between a target terminal device and a first headset, the at least one first processor is configured to: based on the connection mode of the first headset being a pairing mode, turn on a discoverable mode and a connectable mode of the first headset to establish a first Bluetooth connection between the target terminal device and the first headset; and / or based on the connection mode of the first headset being a pairing mode, send a second non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the first headset.
[0020] Optionally, when at least one of the first Bluetooth connection and the second Bluetooth connection is established between the target terminal device and the first headset, the at least one first processor is configured to: based on the connection mode of the first headset being a recovery mode, perform one or more of the following operations: actively initiate a first Bluetooth connection with the target terminal device, and send a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device, wherein the target address of the directional broadcast is the address of the target terminal device.
[0021] Optionally, the at least one first processor is configured to: based on failure to successfully establish a first Bluetooth connection between the target terminal device and the first headset or based on failure to successfully establish a second Bluetooth connection between the target terminal device and the first headset, turn off the discoverable mode of the first headset, stop sending the second non-directional broadcast, and determine the number of all target terminal devices connected to the first headset, wherein the number of all target terminal devices connected to the first headset includes the sum of a first number of target terminal devices that have only established a first Bluetooth connection with the first headset, a second number of target terminal devices that have only established a second Bluetooth connection with the first headset, and a third number of target terminal devices that have established a first Bluetooth connection and a second Bluetooth connection with the first headset; based on the number of all target terminal devices being less than a first threshold, perform one or more of the following operations: maintain the connectable mode of the first headset to establish a first Bluetooth connection with each target terminal device that has been connected to the first headset, and send a first non-directional broadcast, and add the addresses of each target terminal device that has been connected to the first headset to a device address filtering list to establish a second Bluetooth connection with each target terminal device that has been connected to the first headset.
[0022] Optionally, the at least one first processor is configured to: determine the connection type between the first headset and each connected target terminal device based on the number of all target terminal devices being greater than or equal to a first threshold; send a first non-directional broadcast based on the fact that the connection type between the first headset and a first target terminal device among the connected target terminal devices is only a first Bluetooth connection, and add the address of the first target terminal device to a device address filtering list to establish a second Bluetooth connection between the first target terminal device and the first headset; and maintain the connectible mode of the first headset based on the fact that the connection type between the first headset and a second target terminal device among the connected target terminal devices is only a second Bluetooth connection to establish a first Bluetooth connection between the second target terminal device and the first headset.
[0023] Optionally, when sending a directed broadcast and a first non-directed broadcast or sending a first non-directed broadcast to establish a second Bluetooth connection between the target terminal device and the second earphone, the at least one second processor is configured to: determine whether the second earphone has the pairing information of the target terminal device; based on the second earphone having the pairing information of the target terminal device, send a directed broadcast of a preset duration based on the pairing information, and at the same time send the first non-directed broadcast, and add the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection between the target terminal device and the second earphone; based on the second earphone not having the pairing information of the target terminal device, send the first non-directed broadcast, and add the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection between the target terminal device and the second earphone.
[0024] Optionally, the at least one second processor is further configured to: determine whether a fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaches a first threshold based on a second Bluetooth connection established between the other terminal device and the second headset; disconnect the second Bluetooth connection between the other terminal device and the second headset based on the fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaching the first threshold; maintain the second Bluetooth connection between the other terminal device and the second headset based on the fourth number of all target terminal devices connected to the first headset indicated by the connection status information being less than or equal to the first threshold; wherein, after disconnecting the second Bluetooth connection between the other terminal device and the second headset, or after maintaining the second Bluetooth connection between the other terminal device and the second headset, determine whether the second headset has the pairing information of the target terminal device.
[0025] According to one aspect of the present disclosure, a wireless headset is provided, the wireless headset comprising two headsets, wherein each of the two headsets comprises: a first connection manager, configured to establish a wireless connection between a current headset and another headset; a second connection manager, configured to establish at least one of a first Bluetooth connection and a second Bluetooth connection between a target terminal device and the current headset, and based on the current headset being determined as a master headset and the other headset being determined as a slave headset, send a directional broadcast and a first non-directional broadcast or send the first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the other headset based on the device information of the target terminal device and the connection status information of the master headset; a data transmitter, configured to perform data synchronization with the other headset; based on the current headset being determined as the master headset, obtain the device information of the target terminal device, and send the device information and the connection status information of the master headset to the other headset; a data storage, configured to store the device information, the device information including the address of the target terminal device and an address resolution key. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and other objects, features and advantages of the present disclosure will become more apparent through the following detailed description in conjunction with the accompanying drawings, in which:
[0027] Figure 1 An example of a first Bluetooth connection scheme is shown;
[0028] Figure 2 An example of a second Bluetooth connection scheme is shown;
[0029] Figure 3 An example of a third Bluetooth connection scheme is shown;
[0030] Figure 4 An example of a mixed connection problem caused by a dual-mode Bluetooth connection solution is shown;
[0031] Figure 5 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset according to an embodiment of the present disclosure;
[0032] Figure 6 is a flow chart showing a Bluetooth connection method of a wireless headset according to an embodiment of the present disclosure;
[0033] Figure 7 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device and sending device information during a pairing mode;
[0034] Figure 8 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device and sending device information during a recovery mode;
[0035] Fig. 9 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device during a normal mode;
[0036] Fig.10 is a diagram showing an example of establishing a second Bluetooth connection between a second headset and a target terminal device according to an embodiment of the present disclosure;
[0037] Fig.11 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a pairing mode according to an embodiment of the present disclosure;
[0038] Fig.12 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a recovery mode according to an embodiment of the present disclosure;
[0039] Fig.13 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a normal mode according to an embodiment of the present disclosure;
[0040] Fig.14 is a diagram showing an example of a Bluetooth connection method of a wireless headset in a single headset usage scenario according to an embodiment of the present disclosure;
[0041] Fig.15 is a block diagram illustrating a configuration of each of two headphones included in a wireless headset according to an embodiment of the present disclosure.
[0042] Fig.16 is a block diagram illustrating a wireless headset according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0043] Hereinafter, various embodiments of the present disclosure are described with reference to the accompanying drawings, wherein the same reference numerals are used to represent the same or similar elements, features and structures. However, it is not intended that the present disclosure be limited to specific embodiments by the various embodiments described herein, and it is intended that: the present disclosure covers all modifications, equivalents and / or substitutes of the present disclosure, as long as they are within the scope of the attached claims and their equivalents. The terms and words used in the following specification and claims are not limited to their dictionary meanings, but are only used to enable a clear and consistent understanding of the present disclosure. Therefore, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only, and not for the purpose of limiting the present disclosure defined by the attached claims and their equivalents.
[0044] It should be understood that the singular includes the plural unless the context clearly indicates otherwise.The terms "include", "comprising" and "having" used herein indicate the presence of disclosed functions, operations or elements, but do not exclude other functions, operations or elements.
[0045] The expression "A or B" or "at least one of A and / or B" may indicate A and B, A or B. For example, the expression "A or B" or "at least one of A and / or B" may indicate (1) A, (2) B, or (3) both A and B.
[0046] In various embodiments of the present disclosure, it is intended that when a component (e.g., a first component) is referred to as being "coupled" or "connected" to another component (e.g., a second component) or being "coupled" or "connected" to another component (e.g., the second component), the component may be directly connected to the other component or may be connected through another component (e.g., a third component). In contrast, when a component (e.g., a first component) is referred to as being "directly coupled" or "directly connected" to another component (e.g., the second component) or being directly coupled to or directly connected to another component (e.g., the second component), there is no other component (e.g., the third component) between the component and the other component.
[0047] The expression "configured to" used in describing various embodiments of the present disclosure may be used interchangeably with expressions such as "suitable for", "having the ability to", "designed to", "suitable for", "manufactured to", and "capable of", for example, depending on the circumstances. The term "configured to" may not necessarily indicate that it is "specially designed to" in terms of hardware. On the contrary, the expression "a device configured to..." in some cases may indicate that the device and another device or part "can..." For example, the expression "a processor configured to perform A, B, and C" may indicate a dedicated processor (e.g., an embedded processor) for performing the corresponding operations or a general-purpose processor (e.g., a central processing unit CPU or an application processor (AP)) for performing the corresponding operations by executing at least one software program stored in a storage device.
[0048] The terms used herein are to describe certain embodiments of the present disclosure, but are not intended to limit the scope of other embodiments. Unless otherwise noted herein, all terms used herein (including technical or scientific terms) may have the same meaning as those generally understood by those skilled in the art. Typically, the terms defined in the dictionary should be considered to have the same meaning as the contextual meaning in the relevant field, and, unless clearly defined herein, should not be understood differently or understood to have an overly formal meaning. In any case, the terms defined in the present disclosure are not intended to be interpreted as excluding embodiments of the present disclosure.
[0049] The following describes the Bluetooth connection method of wireless headphones (hereinafter referred to as Bluetooth headphones).
[0050] The existing Bluetooth protocol defines different low-power Bluetooth broadcast types, imposes certain restrictions on the types of Bluetooth broadcasts sent by the master headset and the slave headset, and imposes certain constraints on the way the terminal device handles different Bluetooth broadcasts, which can improve the problem of inconsistent connections to a certain extent. However, these solutions do not solve the fundamental problem. For example, they do not solve the situation where the connection between the slave headset and the terminal device is slow or cannot be established with the terminal device.
[0051] The Bluetooth connection method of wireless headphones in the prior art first establishes a wireless connection between the master headphone and the slave headphone, and then establishes a classic Bluetooth connection between the master headphone and the terminal device after entering the pairing stage. Based on this connection, the master headphone obtains the Bluetooth device address resolution key and device unique address information of the terminal device and shares it with the slave headphone. The master headphone establishes a low-power Bluetooth connection with the terminal device through directional broadcasting, and the slave headphone establishes a low-power Bluetooth connection with the terminal device through general broadcasting plus address filtering. Although this method can complete the transition between classic Bluetooth audio and low-power Bluetooth audio, this method can only solve the problem of how dual-mode Bluetooth headphones connect to new terminal devices during the pairing stage. This method does not take into account the connection recovery during subsequent use and the connection problems that may be encountered in single-headphone usage scenarios. Moreover, this method relies entirely on classic Bluetooth connections and cannot be applied to terminal devices that only support low-power Bluetooth connections.
[0052] In another prior art Bluetooth connection method for wireless headphones, during the connection phase, both the master headphone and the slave headphone send low-power audio broadcast signals to the terminal device. The terminal device establishes both a low-power Bluetooth connection and a classic Bluetooth connection with the master headphone based on the broadcast signal. The terminal device also determines that the slave headphone and the master headphone belong to the same group of Bluetooth devices based on the broadcast signal of the slave headphone, and then establishes a low-power Bluetooth connection with the slave headphone. However, in this method, the master and slave headphones send low-power audio broadcast signals at the same time, which will lead to inconsistent connections. For example, the master and slave headphones are connected to different terminal devices.
[0053] Another prior art Bluetooth connection method for wireless headphones can reconnect to multiple terminal devices in the same group. This method focuses on how to identify that multiple terminal devices belong to the same group, so as to improve the Bluetooth reconnection speed and reconnection accuracy of the terminal device. Although this method starts from the perspective of the terminal device and focuses on improving the accuracy of identifying multiple terminal devices in the same group to improve the reconnection speed, it does not involve a connection recovery solution for dual-mode Bluetooth connections.
[0054] Figure 1 An example of a first Bluetooth connection scheme is shown. Figure 1As shown, a wireless connection is first established between the master headset and the slave headset. Then, the master headset enters the classic Bluetooth connectable mode, or actively establishes a Bluetooth connection with the terminal device. In response to the above operation of the master headset, the terminal device establishes a classic Bluetooth connection with the master headset.
[0055] In low-power Bluetooth audio technology, the Bluetooth protocol specification defines the concept of a coordinated set for the application scenario of a pair of TWS headphones interacting with the same terminal device for audio data services. A pair of TWS headphones belonging to the same coordinated set establish low-power Bluetooth connections with the terminal device to exchange audio data.
[0056] Figure 2 An example of a second Bluetooth connection scheme is shown. Figure 2 As shown, the left and right earphones send low-power Bluetooth broadcasts respectively. The terminal device that receives the low-power Bluetooth broadcast can establish low-power Bluetooth connections with the left and right earphones respectively.
[0057] As a product of the transition from classic Bluetooth to low-power Bluetooth technology, dual-mode Bluetooth requires dual-mode TWS headphones to be able to establish both classic Bluetooth and low-power Bluetooth connections with terminal devices. Currently, dual-mode Bluetooth connection technology is not yet fully mature. A simple technical solution is to directly superimpose classic Bluetooth connection technology and low-power Bluetooth connection technology.
[0058] Figure 3 An example of a third Bluetooth connection scheme is shown, which may be referred to as a dual-mode Bluetooth connection scheme. Figure 3 As shown, a wireless connection is first established between the master headset and the slave headset. Then, the master headset enters the classic Bluetooth connectable mode, or actively establishes a Bluetooth connection with the terminal device. Subsequently, the master and slave headsets send low-power Bluetooth broadcasts respectively. In response to the above operation of the master headset, the terminal device establishes a classic Bluetooth connection with the master headset. However, in response to the low-power Bluetooth broadcast from the master and slave headsets, the terminal device can establish a low-power Bluetooth connection with each of the master and slave headsets.
[0059] By directly superimposing the first Bluetooth connection scheme with the second Bluetooth connection scheme (i.e., the low-power Bluetooth connection scheme), the purpose of establishing both classic Bluetooth and low-power Bluetooth connections with the same terminal device can be achieved. However, due to the lack of information sharing between the master and slave earphones on the classic Bluetooth connection and the low-power Bluetooth connection established with the terminal device, inconsistent connections will occur. For example, the left and right earphones are connected to different terminal devices, or a pair of TWS earphones establish a classic Bluetooth connection with one terminal device and a low-power Bluetooth connection with another terminal device.
[0060] Figure 4 An example of the mixed connection problem caused by the dual-mode Bluetooth connection solution is shown. Figure 4 As shown, a wireless connection is first established between the master headset and the slave headset. Then, the master headset enters the classic Bluetooth connectable mode, or actively creates a Bluetooth connection with the terminal device. Subsequently, the master and slave headsets send low-power Bluetooth broadcasts respectively. In response to the above operations of the master headset, terminal device 1 establishes a classic Bluetooth connection with the master headset. On the other hand, terminal device 1 that receives the low-power Bluetooth broadcast sent by the master headset establishes a low-power Bluetooth connection with the master headset, and terminal device 2 that receives the low-power Bluetooth broadcast sent by the slave headset establishes a low-power Bluetooth connection with the slave headset. In this case, the master and slave headsets establish low-power Bluetooth connections with different terminal devices respectively, which causes the problem of inconsistent connections.
[0061] In view of the shortcomings of various existing Bluetooth connection methods for wireless headphones, the present invention effectively solves the problems encountered in the current dual-mode Bluetooth connection technology by defining a complete connection information sharing mechanism between headphones, adding software logic and timing control, and defining the connection behavior of the master and slave headphones in stages.
[0062] Figure 5 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset according to an embodiment of the present disclosure.
[0063] Reference Figure 5 In operation 501, a wireless connection is established between the two earphones, and a master and slave earphone are determined. According to an embodiment of the present disclosure, the wireless earphone may include two earphones, and when the two earphones establish a wireless connection (for example, two earphones are taken out of the earphone compartment), the master and slave earphones may be determined between the two earphones based on various preset rules. However, the present disclosure is not limited thereto, and the master and slave earphones may be determined between the two earphones at any time. Optionally, any one of the two earphones may be determined as the master earphone, and the other earphone may be determined as the slave earphone.
[0064] Next, in operation 502, the main headset (also referred to herein as the first headset) turns on the discoverable mode and / or connectable mode of the classic Bluetooth connection, or actively creates a classic Bluetooth connection with the terminal device. At the same time, in operation 503, a low-power Bluetooth broadcast is sent.
[0065] If the terminal device supports classic Bluetooth, the terminal device establishes a classic Bluetooth connection with the primary headset in operation 504. If the terminal device supports low-power Bluetooth, the terminal device establishes a low-power Bluetooth connection with the primary headset in operation 505.
[0066] When a low-power Bluetooth connection is successfully established between the master headset and the terminal device, the master headset sends device information of the terminal device, including the address of the terminal device and an Identity Resolving Key (IRK), to the slave headset in operation 506. In an embodiment, while sending the device information of the terminal device to the slave headset, the master headset also sends its connection status information to the slave headset, wherein the connection status information indicates the number of terminal devices that have currently established a Bluetooth connection with the master headset.
[0067] After receiving the device information, in operation 507, the slave headset combines the device information with the device information of the terminal device stored in the slave headset to determine whether it is necessary to send a low-power Bluetooth directional broadcast.
[0068] At the same time, in operation 508, the slave headset also needs to add the address of the terminal device to the device address filter list (Filter Accept List, FAL) that allows connection, and send a non-directional broadcast with address filtering to the terminal device.
[0069] In operation 509 , after the terminal device receives the directional broadcast (eg, operation 507 ) and / or the non-directional broadcast (eg, operation 508 ) sent from the headset, the terminal device establishes a low-power Bluetooth connection with the headset.
[0070] In operation 510 , after successfully establishing a Bluetooth low energy connection with the terminal device, the headset turns off directional broadcast and / or non-directional broadcast (eg, operation 507 or operation 508 ).
[0071] An example of a Bluetooth connection method for a wireless headset according to an embodiment of the present disclosure is briefly described above. Another embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0072] Figure 6 is a flowchart illustrating a Bluetooth connection method of a wireless headset according to an embodiment of the present disclosure. Here, for convenience, the two headsets included in the wireless headset are referred to as a first headset and a second headset. However, as described above, any one of the two headsets can serve as the first headset or the master headset. For example, when the left headset serves as the first headset, the right headset will serve as the second headset, and when the right headset serves as the first headset, the left headset will serve as the second headset. As another example, when the left headset serves as the master headset, the right headset can serve as a slave headset, and when the right headset serves as the master headset, the left headset can serve as a slave headset.
[0073] Reference Figure 6In operation S601, a first Bluetooth connection and / or a second Bluetooth connection is established with a target terminal device at a first headset. That is, a first Bluetooth connection may be established between the terminal device and the first headset, and / or a second Bluetooth connection may be established between the terminal device and the first headset. Here, the first Bluetooth connection may represent a classic Bluetooth connection, and the second Bluetooth connection may represent a low-power Bluetooth connection, but the present disclosure is not limited thereto.
[0074] In the first earphone, in response to the wireless connection being established between the first earphone and the second earphone, and the first earphone being selected as the main earphone based on the preset rule, the first Bluetooth connection and / or the second Bluetooth connection can be established with the target terminal device. That is, the first Bluetooth connection and / or the second Bluetooth connection is established between the first earphone and the terminal device. Here, the preset rule can be various existing rules, and the present disclosure does not impose any limitation on this. Optionally, the first earphone can also be designated as the main earphone by the user.
[0075] In operation S602, in the first earphone, in response to establishing a second Bluetooth connection with the target terminal device, the device information of the target terminal device is obtained, and the device information and the connection status information of the first earphone are sent to the second earphone. That is, in some embodiments, in response to the establishment of the second Bluetooth connection between the first earphone and the target terminal device, the first earphone obtains the device information of the target terminal device, and sends the device information and the connection status information of the first earphone to the second earphone. As described above, the device information includes the address of the target terminal device and the address resolution key IRK. In addition, as described above, the connection status information of the first earphone may indicate the number of terminal devices that have currently established a Bluetooth connection with the main earphone.
[0076] Specifically, in the first headset or by the first headset, in response to establishing a wireless connection with the second headset and being selected as the main headset based on preset rules, the device information and the connection status information of the first headset are sent to the second headset. When the first headset and the second headset do not enter the working state at the same time, or the first headset and the second headset are not within the coverage range of each other's wireless signals, the first headset and the second headset cannot establish a wireless connection. At this time, the first headset is used alone, and a second Bluetooth connection is established with the target terminal device. In this case, when the second headset enters the working state and enters the wireless signal coverage range of the first headset, the first headset can establish a wireless connection with the second headset, and as the main headset, the device information and its connection status information are sent to the second headset. Therefore, the Bluetooth connection method of the wireless headset according to the embodiment of the present disclosure can also be applied to the single headset usage scenario.
[0077] According to an embodiment of the present disclosure, the connection behavior between the first headset and the terminal device (hereinafter referred to as the connection mode of the first headset) can be divided into three stages or modes, namely, pairing stage or mode, recovery stage or mode, and normal stage or mode.
[0078] Figure 7 1 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device during pairing mode and sending device information. It should be understood that the first Bluetooth connection may represent a classic Bluetooth connection, and the second Bluetooth connection may represent a low-power Bluetooth connection, but the present disclosure is not limited thereto.
[0079] Reference Figure 7 In operation 701, the first headset establishes a wireless connection with the second headset and is determined to be the main headset. After operation 701, in operation 702, the first headset turns on the discoverable mode (inquiry scan) and the connectable mode (page scan) to establish a first Bluetooth connection with the target terminal device. The discoverable mode and the connectable mode are collectively referred to as the discoverable and connectable mode. In operation 703, when the first Bluetooth connection is successfully established between the first headset and the terminal device, the first headset calculates and derives a long-term key for low-power Bluetooth. Subsequently, in operation 704, the first headset enters the normal mode.
[0080] On the other hand, after operation 701, in operation 705, the first headset sends an extended broadcast in limited discoverable mode (hereinafter referred to as the second non-directional broadcast) to establish a second Bluetooth connection with the target terminal device. Operation 702 and operation 705 can be performed simultaneously. In operation 706, when the second Bluetooth connection is successfully established, the first headset calculates and derives the link key of classic Bluetooth. In operation 707, the first headset sends the address of the target terminal device and the address resolution key to the second headset. In addition, in operation 707, the first headset also sends its connection status information to the second headset, and the connection status information indicates the number of terminal devices that have currently established a Bluetooth connection with the first headset. Subsequently, in operation 704, the first headset enters the normal stage.
[0081] Here, after the first headset turns on the discoverable and connectable mode and sends the second non-directional broadcast, the order in which the terminal device establishes the first Bluetooth connection and the second Bluetooth connection with the first headset depends on the terminal device's own settings or the user's choice. Optionally, if the first headset fails to establish the first Bluetooth connection with the target terminal device within the first predetermined time after turning on the discoverable and connectable mode (pairing mode timeout), or the first headset fails to establish the second Bluetooth connection with the target terminal device within the second predetermined time after sending the second non-directional broadcast (pairing mode timeout), the first headset will also enter the regular stage. Therefore, when the first headset fails to establish a Bluetooth connection (for example, the first Bluetooth connection or the second Bluetooth connection) with the terminal device during the pairing stage, the first headset will enter the regular stage. Here, the first predetermined time may be the same as or different from the second predetermined time, and the present disclosure does not impose any restrictions on this.
[0082] Therefore, the first earphone, in response to the connection mode being the pairing mode, can turn on the discoverable mode and the connectable mode to establish a first Bluetooth connection between the first earphone and the target terminal device, and / or can send a second non-directional broadcast to establish a second Bluetooth connection between the first earphone and the target terminal device.
[0083] Figure 8 2 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device and sending device information during a recovery mode. It should be understood that the first Bluetooth connection may represent a classic Bluetooth connection, and the second Bluetooth connection may represent a low-power Bluetooth connection, but the present disclosure is not limited thereto.
[0084] Reference Figure 8 In operation 801, a first headset establishes a wireless connection with a second headset and is determined to be a master headset. In operation 802, the first headset determines whether there is a target terminal device to be restored.
[0085] When it is determined that there is a target terminal device to be restored, in operation 803, the first headset can actively initiate a first Bluetooth connection with the target terminal device, thereby establishing a first Bluetooth connection with the target terminal device. When the first Bluetooth connection is successfully established, in operation 804, the first headset determines that the restoration of the connection is completed.
[0086] In some embodiments, when it is determined that there is a target terminal device to be restored, in operation 805, the first headset sends a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device. Here, the target address of the directional broadcast is the address of the target terminal device to be restored. In operation 806, when the second Bluetooth connection is successfully established, the first headset sends the address of the target terminal device and the address resolution key to the second headset, and in operation 804, the first headset determines that the restoration of the connection is complete. In addition, in operation 806, the first headset may also send its connection status information to the second headset. Optionally, when it is determined that there is no target terminal device to be restored, or when the duration of the recovery mode has passed without restoring the connection with any target terminal device, the first headset will also determine that the restoration of the connection is complete. Next, in operation 807, the first headset enters the normal stage.
[0087] Therefore, in an embodiment, in response to the connection mode being the recovery mode, the first headset actively initiates a first Bluetooth connection with the target terminal device, and / or sends a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device. In this way, the first headset can adopt different connection strategies for the pairing mode and the recovery mode to establish a second Bluetooth connection with the target terminal device, thereby improving the connection speed and connection success rate.
[0088] Fig. 9 is a diagram showing an example of a first headset establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device during a normal mode. It should be understood that the first Bluetooth connection may represent a classic Bluetooth connection, and the second Bluetooth connection may represent a low-power Bluetooth connection, but the present disclosure is not limited to this. As described above, when the recovery mode ends, regardless of whether the first headset successfully establishes a Bluetooth connection with the target terminal device, the first headset will enter the normal phase. According to an embodiment, when the pairing mode ends, regardless of whether the first headset successfully establishes a Bluetooth connection with the target terminal device, the first headset will also enter the normal phase.
[0089] Reference Fig. 9In operation 901, the first headset is no longer allowed to be discovered by a new terminal device in the normal mode, so the first headset needs to turn off the discoverable mode and stop sending the extended broadcast of the limited discoverable mode (i.e., the second non-directional broadcast). In operation 902, the first headset determines whether the number of all target terminal devices connected to it has reached the maximum number of connections (e.g., the first threshold). When the number of target terminal devices connected to the first headset has not reached the maximum number of connections, an executable operation includes operation 903, in which the first headset maintains the connectable mode to establish a first Bluetooth connection with each target terminal device that has been connected. When the number of target terminal devices connected to the first headset has not reached the maximum number of connections, another executable operation includes operation 904 that can be executed simultaneously, in which the first headset sends a first non-directional broadcast and adds the addresses of each target terminal device connected to it to the device address filtering list, so as to establish a second Bluetooth connection with all target terminal devices that have been connected. The "connection" described here refers to a Bluetooth connection, including both a first Bluetooth connection and a second Bluetooth connection. Therefore, the number of all target terminal devices connected to the first headset may include the number of target terminal devices that have established only a first Bluetooth connection with the first headset, the number of target terminal devices that have established only a second Bluetooth connection with the first headset, and the sum of the number of target terminal devices that have established only a first Bluetooth connection and a second Bluetooth connection with the first headset.
[0090] Therefore, in the first headset or by the first headset, in response to the first headset failing to successfully establish the first Bluetooth connection and / or the second Bluetooth connection with the target terminal device, the discoverable mode is turned off, the sending of the second non-directional broadcast is stopped, and the number of all target terminal devices connected to the first headset is determined. Subsequently, in response to the number of all target terminal devices connected to the first headset being less than the first threshold, the connectable mode is maintained to establish the first Bluetooth connection with each target terminal device connected to the first headset, and / or send the first non-directional broadcast, and the address of each target terminal device connected to the first headset is added to the device address filter list. In this way, in the first headset or by the first headset, a second Bluetooth connection is established with all target terminal devices connected to the first headset. However, the first headset attempting to establish the first Bluetooth connection / second Bluetooth connection with each target terminal device connected to it does not mean that the first headset must establish the first Bluetooth connection / second Bluetooth connection with all target terminals connected to it.
[0091] In this way, the first headset can use different connection strategies for pairing mode, recovery mode and normal mode to establish a second Bluetooth connection with the target terminal device, thereby improving the connection speed and connection success rate. In addition, the first headset can also try to establish a Bluetooth connection with each target terminal device that has been connected to it, further improving the connection efficiency and connection success rate.
[0092] Return to reference Fig. 9 , in operation 902, when the number of all target terminal devices connected to the first headset reaches the maximum number of connections, the process proceeds to operation 905. In operation 905, the first headset determines whether all connection types with each connected target terminal device have been connected. When the first headset is not connected with all connection types of each target terminal device, in operation 906, the first headset determines whether a first Bluetooth connection has not been established with each target terminal device, and in operation 907, the first headset determines whether a second Bluetooth connection has not been established with each target terminal device. Note that operations 906 and 907 may be performed in parallel. In operation 906, when it is determined that the first headset has not established a first Bluetooth connection with at least one target terminal device, in operation 908, the first headset maintains a connectable mode so as to establish a first Bluetooth connection with at least one target terminal device with which the first Bluetooth connection has not been established. On the other hand, in operation 907, when it is determined that the first headset has not established a second Bluetooth connection with at least one target terminal device, in operation 909, the first headset sends a first non-directional broadcast and adds the address of at least one target terminal device without establishing a second Bluetooth connection to a device address filtering list so as to establish a second Bluetooth connection with at least one target terminal device without establishing a second Bluetooth connection.
[0093] Therefore, in the first headset or by the first headset, in response to the number of target terminal devices connected to the first headset reaching a first threshold, the connection type between the first headset and each connected target terminal device is determined. In addition, in the first headset or by the first headset, in response to the connection type between the first headset and at least one target terminal device being only the first Bluetooth connection, a first non-directional broadcast is sent, and the address of the at least one target terminal device is added to the device address filter list to establish a second Bluetooth connection with the at least one target terminal device. In another or the same embodiment, in the first headset or by the first headset, in response to the connection type between the first headset and at least one target terminal device being only the second Bluetooth connection, the connectable mode is maintained to establish a first Bluetooth connection with the at least one target terminal device. Therefore, the first headset can try to establish various types of Bluetooth connections with each target terminal device that has been connected to it, thereby improving connection efficiency and connection success rate.
[0094] Return to reference Fig. 9In operation 902, when the first headset has been connected to all connection types of each target terminal device, in operation 910, the first headset exits the connectable mode, and in operation 911, the first headset stops sending the first non-directional broadcast. Therefore, in the first headset, in response to the connection type between the first headset and each connected target terminal device being both the first Bluetooth connection and the second Bluetooth connection, the connectable mode is turned off, and the sending of the first non-directional broadcast is stopped.
[0095] Return to reference Figure 6 In operation S603, the second headset or the second headset sends a directional broadcast and a first non-directional broadcast or sends the first non-directional broadcast based on the device information and the connection status information of the first headset to establish a second Bluetooth connection between the second headset and the target terminal device.
[0096] Refer to the following Fig.10 The operation of establishing a second Bluetooth connection between the second headset and the target terminal device is described in detail. Fig.10 2 is a diagram illustrating an example of establishing a second Bluetooth connection between a second headset and a target terminal device according to an embodiment of the present disclosure.
[0097] Reference Fig.10 In operation S1001, in the second headset or by the second headset, it is determined whether a second Bluetooth connection has been established between the second headset and another terminal device.
[0098] When the second headset has not established a second Bluetooth connection with the other terminal device, in operation S1002, the second headset determines whether it has pairing information of the target terminal device. In the case where the second headset has established a second Bluetooth connection with the target terminal device, the second headset will save the pairing information of the target terminal device. Therefore, when the second headset has the pairing information of the target terminal device, in operation S1003, the second headset sends a directional broadcast of a preset duration based on the pairing information, sends the first non-directional broadcast at the same time, and adds the address of the target terminal device to the device address filtering list to establish a second Bluetooth connection with the target terminal device.
[0099] On the other hand, in operation S1002, when the second headset does not have the pairing information of the target terminal device, in operation S1004, the second headset sends a first non-directional broadcast, and adds the address of the target terminal device to the device address filtering list to establish a second Bluetooth connection with the target terminal device. Therefore, when the second headset has the pairing information, the second headset can simultaneously send a directional broadcast and a non-directional broadcast with address filtering to quickly and accurately establish a second Bluetooth connection with the target terminal. In addition, in order to reduce power consumption, if the second Bluetooth connection cannot be established with the target terminal device within a preset time, the sending of the directional broadcast is stopped.
[0100] In operation S1001, when the second headset has established a second Bluetooth connection with another terminal device, in operation S1005, the second headset determines whether the number of all target terminal devices connected to the first headset indicated by the connection status information reaches a first threshold. In operation S1005, when the number of all target terminal devices connected to the first headset indicated by the connection status information reaches the first threshold, in operation S1006, the second headset disconnects the second Bluetooth connection with the other terminal device, and then returns to operation S1002 to determine whether it has pairing information of the target terminal device.
[0101] On the other hand, in operation S1005, when the number of all target terminal devices connected to the first headset indicated by the connection status information is less than or equal to the first threshold, in operation S1007, the second headset maintains the second Bluetooth connection with the other terminal devices, and then returns to operation S1002 to determine whether it has pairing information of the target terminal device. Therefore, when the second headset establishes a second Bluetooth connection with the other terminal device and the number of target terminal devices connected to the first headset reaches the upper limit, in order to avoid inconsistent connections between the first headset and the second headset, the second headset needs to first disconnect the second Bluetooth connection with the connected terminal device, and establish a second Bluetooth connection with the target terminal device by sending a directed broadcast and / or a non-directed broadcast with address filtering. In this way, it is ensured that the connection status of the two headsets is always consistent.
[0102] On the other hand, when the second earphone establishes a second Bluetooth connection with other terminal devices and the number of target terminal devices connected to the first earphone has not reached the upper limit, the second earphone can maintain the second Bluetooth connection with the connected terminal device, and the first earphone can try to establish a second Bluetooth connection with the terminal device in the normal mode. It should be noted that the other terminal devices that have established a second Bluetooth connection with the second earphone must be devices that have established Bluetooth connections with the first earphone and the second earphone. Therefore, the first earphone must have pairing information of other terminal devices that have established a second Bluetooth connection with the second earphone, so that the first earphone can try to establish a second Bluetooth connection with the terminal device in the normal mode.
[0103] In other words, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may include: determining, in the second headset or by the second headset, whether the second headset has pairing information of the target terminal device. In response to having pairing information of the target terminal device, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may include: sending a directional broadcast of a preset duration based on the pairing information in the second headset or by the second headset, and simultaneously sending a first non-directional broadcast, and adding the address of the target terminal device to a device address filtering list, so as to establish a second Bluetooth connection with the target terminal device. In response to not having pairing information of the target terminal device, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may include: sending a first non-directional broadcast in the second headset or by the second headset, and adding the address of the target terminal device to a device address filtering list, so as to establish a second Bluetooth connection with the target terminal device.
[0104] In the same embodiment or another embodiment, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may further include: determining, in the second headset or by the second headset, whether a second Bluetooth connection has been established with the other terminal device. Thereafter, in response to the second Bluetooth connection not being established with the other terminal device, determining, in the second headset or by the second headset, whether the second headset has pairing information of the target terminal device.
[0105] In the same embodiment or another embodiment, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may further include: in the second headset or by the second headset, in response to the second Bluetooth connection having been established with other terminal devices, determining whether the number of all target terminal devices connected to the first headset indicated by the connection status information reaches a first threshold. In response to the number of all target terminal devices connected to the first headset indicated by the connection status information reaching the first threshold, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may further include: in the second headset, disconnecting the second Bluetooth connection with other terminal devices. In an embodiment, in response to the number of all target terminal devices connected to the first headset indicated by the connection status information being less than or equal to the first threshold, the operation of establishing a second Bluetooth connection between the second headset and the target terminal device may include: in the second headset, maintaining the second Bluetooth connection with other terminal devices. Thereafter, in the second headset or by the second headset, after disconnecting the second Bluetooth connection with other terminal devices, or after maintaining the second Bluetooth connection with other terminal devices, determining whether the second headset has pairing information of the target terminal device.
[0106] Return to reference Fig.10 When the second headset establishes a second Bluetooth connection with the target terminal device, in operation S1008, the second headset may stop sending the first non-directional broadcast, thereby further reducing the power consumption of the Bluetooth connection.
[0107] According to the Bluetooth connection method of the wireless headset of the embodiment of the present disclosure, the following steps may also be included: when the first headset disconnects the second Bluetooth connection with the target terminal device, the first headset may send the device information and its connection status information to the second headset. For example, when the first headset disconnects the second Bluetooth connection with the target terminal device, the second headset does not need to disconnect the second Bluetooth connection with the target terminal device synchronously, but may independently determine whether it is necessary to disconnect the second Bluetooth connection with the target terminal device. For another example, the second headset may disconnect the second Bluetooth connection with the target terminal device in response to user operation, may disconnect the second Bluetooth connection with the target terminal device in response to the target terminal device being out of the Bluetooth connection range, and may disconnect the second Bluetooth connection with the target terminal device in response to being placed in the headset compartment. It should be understood that the situation in which the second headset disconnects the second Bluetooth connection with the target terminal device is not limited to the situation described above.
[0108] Combine the following Figures 11 to 13 Describes an example of a Bluetooth connection method for wireless headphones in pairing mode, recovery mode, and regular mode, and combines Fig.14 An example of a Bluetooth connection method for a wireless headset in a single headset usage scenario is described.
[0109] Fig.11 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a pairing mode according to an embodiment of the present disclosure.
[0110] Reference Fig.11 In operation 1101, after the wireless headset enters the working state (for example, after taking out two headsets from the headset compartment), if the two headsets are within the wireless signal coverage of each other, a wireless connection (for example but not limited to a Bluetooth connection) is established between the first headset and the second headset, and a master headset and a slave headset are determined based on a preset rule. In the embodiment, the first headset is described as the master headset, however, the present disclosure is not limited thereto. The second headset may also serve as the master headset. It should be understood that the first headset and the second headset may only be interchanged.
[0111] Subsequently, in operation 1102, the first earphone may decide whether to enter pairing mode according to the scenario (for example, the first earphone enters pairing mode when used for the first time or when restoring factory settings), or the user may trigger the first earphone to enter pairing mode when necessary.
[0112] After the first headset enters pairing mode, in operation 1103, the first headset turns on the discoverable and connectable mode of the classic Bluetooth connection to establish a classic Bluetooth connection with the terminal device. At the same time or subsequently, in operation 1104, the first headset sends an extended broadcast of the limited discoverable mode of the low-power Bluetooth connection to establish a low-power Bluetooth connection with the terminal device. At this time, the user can scan the wireless headset on a terminal device that has not been paired with the wireless headset and click to connect. Subsequently, in operation 1105, the first headset successfully establishes a low-power Bluetooth connection with the terminal device and receives a low-power Bluetooth connection success event. In operation 1106, the first headset sends the address of the terminal device and the address resolution key to the second headset through the wireless connection between the two headsets, and then switches to normal mode. In addition, in operation 1106, the first headset also sends its connection status information to the second headset.
[0113] In operation 1107, when the second headset receives the address of the terminal device and the address resolution key, the second headset sends an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and adds the address of the terminal device to the device address filter list to establish a low-power Bluetooth connection with the terminal device. At this time, after the terminal device scans the non-directional broadcast sent by the second headset, it actively establishes a low-power Bluetooth connection with the second headset. In operation 1108, the second headset is paired with the terminal device, a low-power Bluetooth connection is successfully established, and the second headset receives a low-power Bluetooth connection success event. Subsequently, in operation 1109, since the second headset has been connected to the terminal device at the same time as the first headset, the second headset stops sending non-directional broadcasts.
[0114] In operation 1110, the first headset is no longer allowed to be discovered by a new terminal device in normal mode, so the first headset exits the discoverable mode. At the same time, if the wireless headset supports multi-device connection, the first headset can remain in connectable mode to allow a classic Bluetooth connection to be established with other terminal devices. In operation 1111, the first headset establishes a classic Bluetooth connection with other terminal devices, and the first headset receives a classic Bluetooth connection success event. At the same time, the first headset also sends an extended broadcast that is connectable but not discoverable, and adds the addresses of all terminal devices that have been paired with the wireless headset to the device address filter list to establish a low-power Bluetooth connection with other terminal devices. When the number of terminal devices connected to the first headset reaches the maximum number, and the first headset establishes a Bluetooth connection with the terminal device in all Bluetooth connection modes, in operation 1112, the first headset can turn off the connectable mode and stop sending non-directional broadcasts.
[0115] Fig.12 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a recovery mode according to an embodiment of the present disclosure.
[0116] Reference Fig.12 In operation 1201, after the wireless headset enters the working state (for example, after taking out two headsets from the headset compartment), if the two headsets are within the wireless signal coverage of each other, a wireless connection (for example, but not limited to a Bluetooth connection) is established between the first headset and the second headset, and a master headset and a slave headset are determined based on a preset rule. In this embodiment, the first headset is described as the master headset, however, the present disclosure is not limited thereto. The second headset can also be used as the master headset. It should be understood that the first headset and the second headset can be interchanged.
[0117] Subsequently, the first headset may decide whether to enter the recovery mode according to the scenario. For example, when the headset compartment is opened and the wireless headset has been paired with the terminal device before, the first headset enters the recovery mode when it is detected that the wireless headset is in the ear and no connection is established with the terminal device or the connection with the terminal device is abnormally disconnected.
[0118] If the "terminal device to be restored" supports classic Bluetooth connection, then in operation 1202, the first headset needs to actively initiate a classic Bluetooth connection with the "terminal device to be restored". In operation 1203, the first headset receives a classic Bluetooth connection success event from the "terminal device to be restored", and the first headset establishes a classic Bluetooth connection with the terminal device. At the same time, if the "terminal device to be restored" supports low-power Bluetooth connection, then in operation 1204, the first headset sends a directional broadcast of low-power Bluetooth, and the destination address is the "terminal device to be restored". In operation 1205, the first headset receives a low-power Bluetooth connection success event, and the first headset establishes a low-power Bluetooth connection with the terminal device.
[0119] After the first headset establishes a low-power Bluetooth connection with the terminal device, in operation 1206, the first headset sends the address of the terminal device and the address resolution key to the second headset through the wireless connection between the two headsets, and then switches to the normal mode. In the same embodiment or another embodiment, in operation 1206, the first headset also sends its connection status information to the second headset.
[0120] In operation 1207, when the second headset receives the address of the terminal device and the address resolution key, since the second headset also stores the pairing information of the terminal device, the second headset can send a directional broadcast of a preset duration to establish a low-power Bluetooth connection with the terminal device. At the same time, in operation 1208, the second headset also sends an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and adds the address of the terminal device to the device address filtering list to establish a low-power Bluetooth connection with the terminal device.
[0121] At this time, after the terminal device scans the non-directional broadcast sent by the second headset, it actively establishes a low-power Bluetooth connection with the second headset. In operation 1209, the second headset successfully establishes a low-power Bluetooth connection with the terminal device, and receives a low-power Bluetooth connection success event. Subsequently, in operation 1210, since the second headset has been connected to the terminal device at the same time as the first headset, the second headset stops sending non-directional broadcasts.
[0122] Fig.13 is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a normal mode according to an embodiment of the present disclosure. Fig.13 An example is shown in which the first headset switches to the normal mode when the Bluetooth connection with the "terminal device to be restored" fails to be restored in the recovery mode. However, the present disclosure is not limited thereto, and when the wireless headset fails to establish a Bluetooth connection with the terminal device in the pairing mode, or when the wireless headset successfully establishes a Bluetooth connection with the terminal device in the pairing mode / recovery mode, the first headset may also switch to the normal mode.
[0123] Reference Fig.13 In operation 1301, after the wireless headset enters the working state (for example, after taking out the two headsets from the headset compartment), if the two headsets are within the wireless signal coverage range of each other, a wireless connection (for example, but not limited to a Bluetooth connection) is established between the first headset and the second headset, and the master headset and the slave headset are determined based on preset rules. In this embodiment, the first headset is described as the master headset, however, the present disclosure is not limited to this. The second headset can also be used as the master headset, and it should be understood that only the names of the first headset and the second headset can be interchanged. Subsequently, the first headset can decide whether to enter the recovery mode according to the scenario. For example, when the headset compartment is opened and the wireless headset has been paired with the terminal device before, when it is detected that the wireless headset is in the ear and no connection is established with the terminal device or the connection with the terminal device is abnormally disconnected, the first headset enters the recovery mode.
[0124] If the "terminal device to be restored" supports classic Bluetooth connection, then in operation 1302, the first headset needs to actively initiate a classic Bluetooth connection with the "terminal device to be restored". At the same time, if the "terminal device to be restored" supports low-power Bluetooth connection, then in operation 1303, the first headset needs to send a directional broadcast of low-power Bluetooth, and the destination address is the "terminal device to be restored".
[0125] If the first headset fails to establish a Bluetooth connection with the "terminal device to be restored" (for example, the connection times out or fails), then in operation 1304, the first headset enters the normal mode. In operation 1305, the first headset turns off the discoverable mode of the classic Bluetooth connection and turns on / maintains the connectable mode of the classic Bluetooth connection. At the same time, in operation 1306, the first headset also sends an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and adds the addresses of all terminal devices that have been connected to it to the device address filter list, so as to establish a low-power Bluetooth connection with each terminal device that has been connected.
[0126] Therefore, if the user uses a terminal device that has established a Bluetooth connection with the wireless headset to establish a Bluetooth connection with the wireless headset, then in operation 1307, the user can operate on the terminal device to initiate the Bluetooth connection process with the wireless headset. If the terminal device successfully establishes a classic Bluetooth connection and a low-power Bluetooth connection with the wireless headset, then in operation 1308, the first headset receives a classic Bluetooth connection success event, and in operation 1309, the first headset receives a low-power Bluetooth connection success event. Subsequently, in operation 1310, the first headset sends the address of the terminal device and the address resolution key to the second headset through the wireless connection between the two headsets. In an embodiment, in operation 1310, the first headset also sends its connection status information to the second headset.
[0127] Alternatively, if the first headset determines that the number of terminal devices connected thereto has reached a maximum number of allowed connections, then in operation 1315 , the first headset turns off the connectable mode of the classic Bluetooth connection and stops sending non-directional broadcasts.
[0128] In operation 1311, when the second headset receives the address of the terminal device and the address resolution key, since the second headset also stores the pairing information of the terminal device, the second headset can send a directional broadcast of a preset duration to establish a low-power Bluetooth connection with the terminal device. At the same time, in operation 1312, the second headset also sends an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and adds the address of the terminal device to the device address filtering list to establish a low-power Bluetooth connection with the terminal device.
[0129] At this time, after the terminal device scans the non-directional broadcast sent by the second headset, it actively establishes a low-power Bluetooth connection with the second headset. In operation 1313, the second headset successfully establishes a low-power Bluetooth connection with the terminal device, and receives a low-power Bluetooth connection success event. Subsequently, in operation 1314, since the second headset has been connected to the terminal device at the same time as the first headset, the second headset stops sending non-directional broadcasts.
[0130] Fig.14is a diagram illustrating an example of a Bluetooth connection method of a wireless headset in a single headset usage scenario according to an embodiment of the present disclosure.
[0131] Reference Fig.14 , describes a scenario where a wireless connection between two earphones cannot be established, where the two earphones are not in working state at the same time or the two earphones are not within each other's wireless signal coverage. In this case, according to an embodiment of the present disclosure, a single earphone in working state can also be used independently and has the ability to establish a classic Bluetooth connection and a low-power Bluetooth connection with a terminal device.
[0132] Specifically, in operation 1401, after the first earphone enters the working state, it fails to establish a wireless connection with the second earphone (for example, but not limited to, only one earphone is taken out of the earphone compartment without taking out the other earphone, or only one earphone is worn after taking out the two earphones), and in operation 1402, the first earphone establishes a classic Bluetooth connection and a low-power Bluetooth connection with the terminal device. In this embodiment, the first earphone is described as the main earphone, however, the present disclosure is not limited to this. The second earphone can also be used as the main earphone. It should be understood that the first earphone and the second earphone can only be interchanged.
[0133] In operation 1403, when the second headset enters the working state, or when the second headset enters the wireless signal coverage range of the first headset, the first headset establishes a wireless connection with the second headset. After establishing the wireless connection with the second headset, in operation 1404, the first headset sends the address of the terminal device and the address resolution key to the second headset through the wireless connection between the two headsets. In an embodiment, in operation 1404, the first headset also sends its connection status information to the second headset.
[0134] In operation 1405, when the second headset receives the address of the terminal device and the address resolution key, if the second headset stores the pairing information of the terminal device, the second headset may send a directional broadcast of a preset duration to establish a low-power Bluetooth connection with the terminal device. At the same time, in operation 1406, the second headset also sends an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and adds the address of the terminal device to the device address filter list to establish a low-power Bluetooth connection with the terminal device. Optionally, if the second headset stores the pairing information of the terminal device, the second headset may send an extended broadcast (i.e., a non-directional broadcast) that is connectable but not discoverable, and add the address of the terminal device to the device address filter list to establish a low-power Bluetooth connection with the terminal device.
[0135] Once the terminal device scans the non-directional broadcast sent by the second headset, it actively establishes a low-power Bluetooth connection with the second headset, or the second headset successfully establishes a low-power Bluetooth connection with the terminal device, the second headset will receive a low-power Bluetooth connection success event in operation 1407. Subsequently, in operation 1408, since the second headset has been connected to the terminal device at the same time as the first headset, the second headset stops sending non-directional broadcasts.
[0136] Fig.15 is a block diagram illustrating a configuration of each of two headphones included in a wireless headset according to an embodiment of the present disclosure.
[0137] Reference Fig.15 , the earphone 1500 (i.e., each earphone of the two earphones included in the wireless earphone) includes a first connection management module 1501 (also referred to as the first connection manager 1501), a second connection management module 1502 (also referred to as the second connection manager 1502), a data transmission module 1503 (also referred to as the data transmitter 1503) and a data storage module 1504 (also referred to as the data storage 1504).
[0138] The first connection manager 1501 can establish a wireless connection with another headset (i.e., the first connection management module of the other headset). When the headset 1500 is determined as the master headset, the second connection manager 1502 can establish a first Bluetooth connection (i.e., a classic Bluetooth connection) and / or a second Bluetooth connection (i.e., a low-power Bluetooth connection) with the target terminal device. When the headset 1500 is determined as a slave headset, the second connection manager 1502 can send a directional broadcast and a first non-directional broadcast or send a first non-directional broadcast based on the device information of the target terminal device and the connection status information of the master headset to establish a second Bluetooth connection with the target terminal device.
[0139] The data transmitter 1503 can synchronize data with another headset. When the headset 1500 is determined to be the master headset, the data transmitter 1503 can also obtain the device information of the target terminal device, and send the device information and the connection status information of the master headset to the other headset. The data storage 1504 can store the device information. As described above, the device information includes the address of the target terminal device and the address resolution key. Optionally, the data storage 1504 can also store the pairing information of the terminal device.
[0140] According to an embodiment of the present disclosure, when the headset 1500 is determined to be the main headset, the second connection manager 1502 may, in response to the connection mode of the main headset being the pairing mode, turn on the discoverable mode and the connectable mode of the headset 1500 to establish a first Bluetooth connection with the target terminal device, and / or send a second non-directional broadcast to establish a second Bluetooth connection with the target terminal device. On the other hand, the second connection manager 1502 may, in response to the connection mode of the main headset being the recovery mode, turn on the connectable mode of the headset 1500 to establish a first Bluetooth connection with the target terminal device, and / or send a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device, in which case the target address of the directional broadcast is the address of the target terminal device.
[0141] Optionally, the second connection manager 1502 may, in response to the headset 1500 not successfully establishing the first Bluetooth connection and / or the second Bluetooth connection with the target terminal device, turn off the discoverable mode, stop sending the second non-directional broadcast, and determine the number of all target terminal devices connected to the headset 1500. Here, the number of all target terminal devices connected to the headset 1500 includes the number of target terminal devices that have only established the first Bluetooth connection with the headset 1500, the number of target terminal devices that have only established the second Bluetooth connection with the headset 1500, and the sum of the number of target terminal devices that have only established the first Bluetooth connection and the second Bluetooth connection with the headset 1500. In response to the number of target terminal devices connected to the headset 1500 being less than the first threshold, the second connection manager 1502 may maintain the connectable mode to establish the first Bluetooth connection with each target terminal device that the headset 1500 has connected to, and / or send the first non-directional broadcast, and add the address of each target terminal device that has been connected to the headset 1500 to the device address filtering list to establish the second Bluetooth connection with each target terminal device that the headset 1500 has connected to.
[0142] In response to the number of target terminal devices connected to the headset 1500 reaching a first threshold, the second connection manager 1502 may determine the connection type between the headset 1500 and each connected target terminal device. In response to the connection type between the headset 1500 and at least one target terminal device being only the first Bluetooth connection, the second connection manager 1502 may send a first non-directional broadcast, and add the address of at least one target terminal device that has not established a second Bluetooth connection to the device address filtering list, so as to establish a second Bluetooth connection with at least one target terminal device that has not established a second Bluetooth connection. In response to the connection type between the headset 1500 and at least one target terminal device being only the second Bluetooth connection, the second connection manager 1502 may maintain a connectable mode, so as to establish a first Bluetooth connection with at least one target terminal device that has not established a first Bluetooth connection. In response to the connection type between the headset 1500 and each connected target terminal device being both the first Bluetooth connection and the second Bluetooth connection, the second connection manager 1502 may turn off the connectable mode, and stop sending the first non-directional broadcast.
[0143] According to an embodiment of the present disclosure, when the headset 1500 is determined as a slave headset, the second connection manager 1502 may determine whether there is pairing information of the target terminal device. In response to having the pairing information of the target terminal device, the second connection manager 1502 may send a directional broadcast of a preset duration based on the pairing information, send a first non-directional broadcast at the same time, and add the address of the target terminal device to the device address filter list to establish a second Bluetooth connection with the target terminal device. In response to not having the pairing information of the target terminal device, the second connection manager 1502 may send the first non-directional broadcast, and add the address of the target terminal device to the device address filter list to establish a second Bluetooth connection with the target terminal device.
[0144] Alternatively, the second connection manager 1502 may determine whether a second Bluetooth connection has been established with other terminal devices. In response to the second Bluetooth connection not being established with other terminal devices, the second connection manager 1502 may determine whether there is pairing information of the target terminal device. On the other hand, in response to the second Bluetooth connection being established with other terminal devices, the second connection manager 1502 may determine whether the number of all target terminal devices connected to the headset 1500 indicated by the connection status information reaches a first threshold. In response to the number of all target terminal devices connected to the headset 1500 indicated by the connection status information reaching a first threshold, the second connection manager 1502 may disconnect the second Bluetooth connection with other terminal devices. In response to the number of all target terminal devices connected to the headset 1500 indicated by the connection status information being less than or equal to the first threshold, the second connection manager 1502 may maintain the second Bluetooth connection with other terminal devices. Here, after disconnecting the second Bluetooth connection with other terminal devices, or after maintaining the second Bluetooth connection with other terminal devices, the second connection manager 1502 may determine whether there is pairing information of the target terminal device.
[0145] Optionally, in response to establishing a second Bluetooth connection with the target terminal device, the second connection manager 1502 may stop sending the first non-directional broadcast.
[0146] According to an embodiment of the present disclosure, in response to the headset 1500 establishing a wireless connection with another headset and being selected as the main headset based on a preset rule, the second connection manager 1502 may establish a first Bluetooth connection and / or a second Bluetooth connection with the target terminal device. Optionally, in response to the headset 1500 establishing a wireless connection with another headset and being selected as the main headset based on a preset rule, the data transmitter 1503 may send device information and connection status information of the main headset to the other headset.
[0147] Fig.16 is a block diagram illustrating a wireless headset according to an embodiment of the present disclosure.
[0148] Reference Fig.16, the wireless headset 1600 includes a first headset 1601 and a second headset 1602. The first headset 1601 can establish a first Bluetooth connection (i.e., a classic Bluetooth connection) and / or a second Bluetooth connection (i.e., a low-power Bluetooth connection) with a target terminal device, and in response to establishing a second Bluetooth connection with the target terminal device, obtain device information of the target terminal device, and send the device information and the connection status information of the first headset 1601 to the second headset 1602. Here, the device information includes the address of the target terminal device and the address resolution key. The second headset 1602 can send a directional broadcast and a first non-directional broadcast, or send a first non-directional broadcast, based on the device information and the connection status information of the first headset, to establish a second Bluetooth connection with the target terminal device.
[0149] In this embodiment, the first earphone can be used as the main earphone, however, the present disclosure is not limited thereto. The second earphone can also be used as the main earphone. In this case, the first earphone and the second earphone can be interchanged.
[0150] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing computer-executable instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the Bluetooth connection method of the wireless headset according to the exemplary embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The instructions or computer programs in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0151] Any functional blocks shown in the figures and described above may be implemented in a processing circuit (such as hardware including logic circuits), a hardware / software combination (such as a processor executing software), or a combination thereof. For example, the processing circuit may more specifically include, but is not limited to, a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a system on a chip (SoC), a programmable logic unit, a microprocessor, an application specific integrated circuit (ASIC), etc.
[0152] According to the Bluetooth connection method of wireless headphones and the wireless headphones of the embodiments of the present disclosure, they are compatible with terminal devices that only support classic Bluetooth connection, terminal devices that only support low-power Bluetooth connection, and dual-mode Bluetooth terminal devices that support both classic Bluetooth connection and low-power Bluetooth connection, thereby improving the compatibility of dual-mode TWS headphones.
[0153] On the other hand, according to the Bluetooth connection method of wireless headphones and wireless headphones of the embodiments of the present disclosure, when the slave headphones have the device information of the terminal device (i.e., pairing information), the slave headphones can quickly establish a low-power Bluetooth connection with the terminal device through directional broadcasting, thereby improving the connection speed and connection success rate between the slave headphones and the terminal device.
[0154] In addition, according to the Bluetooth connection method and wireless headset of the embodiments of the present disclosure, through the address filtering mechanism used by the master and slave headsets when sending low-power Bluetooth broadcasts, and the mechanism for the slave headset to check and disconnect the terminal device to which the master headset is not connected, it is possible to ensure the consistency of the connection between the master and slave headsets and the terminal device and avoid the occurrence of misconnection / mixed connection.
[0155] Therefore, one aspect of the present disclosure is directed to a Bluetooth connection method for a wireless headset, the wireless headset comprising a first headset and a second headset. The Bluetooth connection method may be executed by at least one processor, and the Bluetooth connection method may include: establishing at least one of a first Bluetooth connection and a second Bluetooth connection between a target terminal device and the first headset; in response to establishing a second Bluetooth connection between the target terminal device and the first headset, acquiring device information of the target terminal device; sending the device information and the connection status information of the first headset to the second headset; based on the device information and the connection status information, sending a directed broadcast and a first non-directed broadcast or sending a first non-directed broadcast to establish a second Bluetooth connection between the target terminal device and the second headset; wherein the device information includes an address of the target terminal device and an address resolution key.
[0156] In an embodiment, establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device includes: in a first earphone, in response to the connection mode being a pairing mode, turning on a discoverable mode and a connectable mode of the first earphone to establish a first Bluetooth connection with the target terminal device, and / or sending a second non-directional broadcast to establish a second Bluetooth connection with the target terminal device.
[0157] In an embodiment, establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device includes: in a first earphone, in response to the connection mode being a recovery mode, actively initiating a first Bluetooth connection with the target terminal device, and / or sending a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device, wherein the target address of the directional broadcast is the address of the target terminal device.
[0158] In an embodiment, the Bluetooth connection method also includes: in the first headset, in response to the first headset failing to successfully establish the first Bluetooth connection and / or the second Bluetooth connection with the target terminal device, turning off the discoverable mode, stopping sending the second non-directional broadcast, and determining the number of all target terminal devices connected to the first headset, wherein the number of all target terminal devices connected to the first headset includes the sum of the number of target terminal devices that have only established a first Bluetooth connection with the first headset, the number of target terminal devices that have only established a second Bluetooth connection with the first headset, and the number of target terminal devices that have established a first Bluetooth connection and a second Bluetooth connection with the first headset; in the first headset, in response to the number being less than a first threshold, maintaining the connectable mode to establish a first Bluetooth connection with each target terminal device connected to the first headset, and / or sending a first non-directional broadcast, and adding the addresses of each target terminal device connected to the first headset to a device address filtering list to establish a second Bluetooth connection with each target terminal device connected to the first headset.
[0159] In an embodiment, the Bluetooth connection method also includes: in the first earphone, in response to the number reaching a first threshold, determining the connection type between the first earphone and each connected target terminal device; in the first earphone, in response to the connection type between the first earphone and at least one target terminal device being only a first Bluetooth connection, sending a first non-directional broadcast, and adding the address of the at least one target terminal device to a device address filtering list to establish a second Bluetooth connection with the at least one target terminal device; in the first earphone, in response to the connection type between the first earphone and at least one target terminal device being only a second Bluetooth connection, maintaining the connectible mode to establish a first Bluetooth connection with the at least one target terminal device.
[0160] In an embodiment, the Bluetooth connection method further includes: in the first headset, in response to the connection type between the first headset and each connected target terminal device being both a first Bluetooth connection and a second Bluetooth connection, turning off the connectable mode and stopping sending the first non-directional broadcast.
[0161] In an embodiment, based on the device information and the connection status information, a directed broadcast and a first non-directed broadcast or a first non-directed broadcast is sent to establish a second Bluetooth connection with the target terminal device, including: in the second earphone, determining whether the pairing information of the target terminal device is available; in the second earphone, in response to having the pairing information of the target terminal device, sending a directed broadcast of a preset duration based on the pairing information, and sending a first non-directed broadcast at the same time, and adding the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection with the target terminal device; in the second earphone, in response to not having the pairing information of the target terminal device, sending the first non-directed broadcast, and adding the address of the target terminal device to a device address filtering list to establish a second Bluetooth connection with the target terminal device.
[0162] In an embodiment, based on the device information and the connection status information, a directed broadcast and a first non-directed broadcast or a first non-directed broadcast is sent to establish a second Bluetooth connection with the target terminal device, and also includes: in the second earphone, determining whether a second Bluetooth connection has been established with the other terminal device; wherein, in the second earphone, in response to not establishing a second Bluetooth connection with the other terminal device, determining whether there is pairing information of the target terminal device.
[0163] In an embodiment, based on the device information and the connection status information, sending a directed broadcast and a first non-directed broadcast or sending a first non-directed broadcast to establish a second Bluetooth connection with the target terminal device, also includes: in the second earphone, in response to the second Bluetooth connection having been established with other terminal devices, determining whether the number of all target terminal devices connected to the first earphone indicated by the connection status information reaches a first threshold; in the second earphone, in response to the number of all target terminal devices connected to the first earphone indicated by the connection status information reaching the first threshold, disconnecting the second Bluetooth connection with the other terminal devices; in the second earphone, in response to the number of all target terminal devices connected to the first earphone indicated by the connection status information being less than or equal to the first threshold, maintaining the second Bluetooth connection with the other terminal devices; wherein, in the second earphone, after disconnecting the second Bluetooth connection with the other terminal device, or after maintaining the second Bluetooth connection with the other terminal device, determining whether the pairing information of the target terminal device is present.
[0164] In an embodiment, based on the device information and the connection status information, a directed broadcast and a first non-directed broadcast or a first non-directed broadcast is sent to establish a second Bluetooth connection with the target terminal device, and also includes: in the second headset, in response to establishing the second Bluetooth connection with the target terminal device, stopping sending the first non-directed broadcast.
[0165] In an embodiment, establishing a first Bluetooth connection and / or a second Bluetooth connection with a target terminal device includes: in a first earphone, in response to establishing a wireless connection with a second earphone and being selected as a main earphone based on preset rules, establishing a first Bluetooth connection and / or a second Bluetooth connection with the target terminal device.
[0166] In an embodiment, sending the device information and the connection status information of the first earphone to the second earphone includes: in response to the first earphone establishing a wireless connection with the second earphone and being selected as the main earphone based on a preset rule, sending the device information and the connection status information of the first earphone to the second earphone.
[0167] According to the Bluetooth connection method of wireless headphones and the wireless headphones of the embodiments of the present disclosure, they are compatible with terminal devices that only support classic Bluetooth connection, terminal devices that only support low-power Bluetooth connection, and dual-mode Bluetooth terminal devices that support both classic Bluetooth connection and low-power Bluetooth connection, thereby improving the compatibility of dual-mode TWS headphones.
[0168] In addition, according to the Bluetooth connection method of wireless headphones and wireless headphones of the embodiments of the present disclosure, when the slave headphones have the device information of the terminal device (i.e., pairing information), the slave headphones can quickly establish a low-power Bluetooth connection with the terminal device through directional broadcasting, thereby improving the connection speed and connection success rate between the slave headphones and the terminal device.
[0169] In addition, according to the Bluetooth connection method and wireless headset of the embodiments of the present disclosure, through the address filtering mechanism used by the master and slave headsets when sending low-power Bluetooth broadcasts, and the mechanism for the slave headset to check and disconnect the terminal device to which the master headset is not connected, it is possible to ensure the consistency of the connection between the master and slave headsets and the terminal device and avoid the occurrence of misconnection / mixed connection.
[0170] Although the present disclosure includes specific examples, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the claims and their equivalents. The examples disclosed herein are to be considered in a descriptive sense and not for purposes of limitation. The description of features or aspects in each example will be considered applicable to similar features or aspects in other examples. Suitable results may be obtained if the described techniques are performed in a different order, and / or if the described systems, structures, devices, or circuits are combined in a different manner and / or replaced or supplemented by other components or their equivalents. Therefore, the scope of the disclosure is not limited by the detailed description, but by the claims and their equivalents, and all changes within the scope of the claims and their equivalents will be considered to be included in the present disclosure.
Claims
1. A Bluetooth connection method for a wireless headset, characterized in that: The wireless headset includes a first headset and a second headset, and the Bluetooth connection method is executed by at least one processor, and the Bluetooth connection method includes: Establishing at least one of a first Bluetooth connection and a second Bluetooth connection between the target terminal device and the first headset; Based on establishing a second Bluetooth connection between the target terminal device and the first headset, acquiring device information of the target terminal device; Sending the device information and the connection status information of the first headset to the second headset; Based on the device information and the connection state information, sending a directional broadcast and a first non-directional broadcast or sending the first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the second headset; The device information includes the address of the target terminal device and an address resolution key.
2. The Bluetooth connection method of wireless headset according to claim 1, characterized in that: The step of establishing at least one of a first Bluetooth connection and a second Bluetooth connection between the target terminal device and the first headset comprises: Based on the connection mode of the first headset being the pairing mode, turning on the discoverable mode and the connectable mode of the first headset to establish a first Bluetooth connection between the target terminal device and the first headset; and / or Based on the connection mode of the first headset being the pairing mode, a second non-directional broadcast is sent to establish a second Bluetooth connection between the target terminal device and the first headset.
3. The Bluetooth connection method of wireless headset according to claim 2, characterized in that: The step of establishing at least one of a first Bluetooth connection and a second Bluetooth connection between the target terminal device and the first headset comprises: Based on the connection mode of the first headset being the recovery mode, one or more of the following operations are performed: Actively initiate a first Bluetooth connection with the target terminal device, and Sending a directional broadcast of a preset duration to establish a second Bluetooth connection with the target terminal device, The target address of the directional broadcast is the address of the target terminal device.
4. The Bluetooth connection method of wireless headset according to claim 3, characterized in that: The Bluetooth connection method further includes: Based on the failure to successfully establish a first Bluetooth connection between the target terminal device and the first headset or based on the failure to successfully establish a second Bluetooth connection between the target terminal device and the first headset, turning off the discoverable mode of the first headset, stopping sending the second non-directional broadcast, and determining the number of all target terminal devices connected to the first headset, wherein the number of all target terminal devices connected to the first headset includes a first number of target terminal devices that have only established a first Bluetooth connection with the first headset, a second number of target terminal devices that have only established a second Bluetooth connection with the first headset, and a third number of target terminal devices that have established a first Bluetooth connection and a second Bluetooth connection with the first headset; Based on the number of all target terminal devices being less than the first threshold, one or more of the following operations are performed: Maintaining the connectable mode of the first headset to establish a first Bluetooth connection with each target terminal device that the first headset has been connected to, and A first non-directional broadcast is sent, and the addresses of each target terminal device connected to the first headset are added to the device address filtering list, so as to establish a second Bluetooth connection with each target terminal device connected to the first headset.
5. The Bluetooth connection method of wireless headset according to claim 4, characterized in that: The Bluetooth connection method further includes: Determining a connection type between the first headset and each connected target terminal device based on the number of all target terminal devices being greater than or equal to a first threshold; Based on the fact that the connection type between the first headset and the first target terminal device among the connected target terminal devices is only the first Bluetooth connection, sending a first non-directional broadcast, and adding the address of the first target terminal device to the device address filtering list, so as to establish a second Bluetooth connection between the first target terminal device and the first headset; Based on the fact that the connection type between the first headset and the second target terminal device among the connected target terminal devices is only the second Bluetooth connection, the connectable mode of the first headset is maintained to establish a first Bluetooth connection between the second target terminal device and the first headset.
6. The Bluetooth connection method of wireless headset according to claim 5, characterized in that: The Bluetooth connection method further includes: Based on the connection types between the first headset and each connected target terminal device being both the first Bluetooth connection and the second Bluetooth connection, the connectable mode of the first headset is turned off, and the sending of the first non-directional broadcast is stopped.
7. The Bluetooth connection method of wireless headset according to claim 1, characterized in that: The sending of the directional broadcast and the first non-directional broadcast or the sending of the first non-directional broadcast based on the device information and the connection state information to establish a second Bluetooth connection between the target terminal device and the second headset includes: Determining whether the second headset has pairing information of the target terminal device; Based on the pairing information of the target terminal device being present in the second headset, a directional broadcast of a preset duration is sent based on the pairing information, a first non-directional broadcast is sent at the same time, and the address of the target terminal device is added to a device address filtering list, so as to establish a second Bluetooth connection between the target terminal device and the second headset; Based on the fact that the second headset does not have the pairing information of the target terminal device, a first non-directional broadcast is sent, and the address of the target terminal device is added to a device address filtering list, so as to establish a second Bluetooth connection between the target terminal device and the second headset.
8. The Bluetooth connection method of wireless headset according to claim 7, characterized in that: The sending of the directional broadcast and the first non-directional broadcast or the sending of the first non-directional broadcast based on the device information and the connection state information to establish a second Bluetooth connection between the target terminal device and the second headset further includes: Determining whether a second Bluetooth connection has been established between the target terminal device and the second headset; Wherein, based on the fact that a second Bluetooth connection is not established between the target terminal device and the second headset, it is determined that the second headset does not have the pairing information of the target terminal device.
9. The Bluetooth connection method of wireless headset according to claim 7, characterized in that: The sending of the directional broadcast and the first non-directional broadcast or the sending of the first non-directional broadcast based on the device information and the connection state information to establish a second Bluetooth connection between the target terminal device and the second headset further includes: Based on the establishment of a second Bluetooth connection between another terminal device and the second headset, determining whether a fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaches a first threshold; Disconnecting the second Bluetooth connection between the other terminal device and the second headset based on a fourth number of all target terminal devices connected to the first headset indicated by the connection status information reaching a first threshold; Based on the fourth number of all target terminal devices connected to the first headset indicated by the connection status information being less than or equal to the first threshold, maintaining the second Bluetooth connection between the other terminal device and the second headset; After disconnecting the second Bluetooth connection between the other terminal device and the second headset, or after maintaining the second Bluetooth connection between the other terminal device and the second headset, it is determined whether the second headset has the pairing information of the target terminal device.
10. The Bluetooth connection method of a wireless headset according to any one of claims 7 to 9, characterized in that: The sending of the directional broadcast and the first non-directional broadcast or the sending of the first non-directional broadcast based on the device information and the connection state information to establish a second Bluetooth connection between the target terminal device and the second headset further includes: Based on establishing a second Bluetooth connection between the target terminal device and the second headset, stopping sending the first non-directional broadcast.
11. The Bluetooth connection method of wireless headset according to claim 1, characterized in that: The establishing at least one of the first Bluetooth connection and the second Bluetooth connection between the target terminal device and the first headset comprises: Based on establishing a wireless connection with the second headset and being selected as the main headset based on a preset rule, at least one of a first Bluetooth connection and a second Bluetooth connection is established between the target terminal device and the first headset.
12. The Bluetooth connection method of a wireless headset as claimed in claim 1, characterized in that: The sending the device information and the connection status information of the first headset to the second headset includes: Based on establishing a wireless connection with the second headset and being selected as the main headset based on a preset rule, the device information and the connection status information of the first headset are sent to the second headset.
13. A wireless headset, characterized in that: The wireless headset comprises a first headset and a second headset. The first headset includes at least one first processor, and the at least one first processor is configured to: Establishing at least one of a first Bluetooth connection and a second Bluetooth connection between the target terminal device and the first headset; In response to establishing a second Bluetooth connection between the target terminal device and the first headset, acquiring device information of the target terminal device; Sending the device information and the connection status information of the first headset to the second headset; The second headset includes at least one second processor, and the at least one second processor is configured to: Based on the device information and the connection state information, sending a directional broadcast and a first non-directional broadcast or sending the first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the second headset; The device information includes the address of the target terminal device and an address resolution key.
14. A wireless headset, characterized in that: The wireless headset comprises two headsets, wherein each of the two headsets comprises: A first connection manager is configured to: establish a wireless connection between the current headset and another headset; The second connection manager is configured to: Establishing at least one of a first Bluetooth connection and a second Bluetooth connection between the target terminal device and the current headset, Based on the current earphone being determined as the master earphone and the other earphone being determined as the slave earphone, based on the device information of the target terminal device and the connection status information of the master earphone, sending a directional broadcast and a first non-directional broadcast or sending the first non-directional broadcast to establish a second Bluetooth connection between the target terminal device and the other earphone; The data transmitter is configured as: Synchronize data with another headset; Based on the current earphone being determined as the main earphone, obtaining device information of the target terminal device, and sending the device information and connection status information of the main earphone to the other earphone; The data storage device is configured to store the device information, wherein the device information includes the address of the target terminal device and an address resolution key.