Bluetooth communication method, device, headset and system
By autonomously monitoring and updating Bluetooth channel interference conditions through true wireless Bluetooth headsets and generating a frequency hopping table, the communication efficiency and reliability issues of TWS headsets are resolved, achieving more efficient Bluetooth communication.
Patent Information
- Application Number
- CN202210852339.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-07-19
AI Technical Summary
Existing TWS headphones are susceptible to wireless interference outside the 2.4GHz frequency band during Bluetooth communication, resulting in reduced communication efficiency and reliability. The interference conditions detected by the Bluetooth audio source device do not match the actual environment of the headphones, resulting in an unreliable frequency hopping table.
True wireless Bluetooth headsets automatically monitor the power changes of the Bluetooth channel and its adjacent channels, generate a Bluetooth frequency hopping table, and improve communication anti-interference and reliability by autonomously detecting interference and updating the frequency hopping table.
The communication anti-interference and reliability of true wireless Bluetooth headsets are improved, the communication burden is reduced, the data transmission efficiency is improved, and energy consumption is saved.
Smart Images

Figure CN115767489B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth communication, and in particular to a Bluetooth communication method, device, earphone and system. Background Art
[0002] True wireless Bluetooth earphones (TWS earphones) have been very popular since their advent. As TWS earphones are used more and more widely in daily life, people have higher and higher requirements for their performance. Since the working frequency band for Bluetooth communication between TWS earphones is 2.4GHz, and 2.4GHz is a wireless frequency band publicly used in the world, when TWS earphones communicate with each other through Bluetooth, they are easily interfered with by signals from other devices in the wireless environment, especially high-energy broadband signals, such as WiFi signals. High-energy broadband signals with an operating frequency band of 2.4GHz are more likely to overlap with Bluetooth signals sent or received by TWS earphones in the time and frequency domain, resulting in the inability to correctly receive Bluetooth signals, thereby reducing the communication efficiency of TWS earphones and even affecting the stable operation of TWS earphones.
[0003] In the existing Bluetooth communication method of TWS headphones, the Bluetooth audio source device (such as a mobile phone) connected to the TWS headphones mainly detects the interfered Bluetooth channel, and then the Bluetooth audio source device generates a Bluetooth frequency hopping table based on the detection results and sends it to the TWS headphones. After that, the TWS headphones can communicate with each other through Bluetooth according to the received Bluetooth frequency hopping table.
[0004] The main way for a Bluetooth audio source device (such as a mobile phone) to detect interfered Bluetooth channels is: when the Bluetooth audio source device is connected to a broadband signal, the Bluetooth audio source device probes each Bluetooth channel and determines whether there is interference on each Bluetooth channel based on the probe results.
[0005] However, since in most cases only Bluetooth audio source devices have the function of matching and connecting with broadband signals, this detection method can only be performed in Bluetooth audio source devices. However, Bluetooth audio source devices and TWS headphones are usually located in different positions in space, so the wireless interference they are subject to is also different. Directly using the Bluetooth frequency hopping table of the Bluetooth audio source device is not reliable enough for TWS headphones to perform Bluetooth communication.
[0006] Therefore, how to accurately detect the interference of the Bluetooth channel of TWS headsets and thus improve the communication reliability and efficiency of TWS Bluetooth headsets has become an urgent problem to be solved. Summary of the Invention
[0007] Based on the above situation, the main purpose of the present invention is to provide a Bluetooth communication method, device, headset and system to improve the anti-interference performance of Bluetooth communication of true wireless headsets.
[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] In a first aspect, this embodiment discloses a Bluetooth communication method for a true wireless Bluetooth headset, which is used for a first headset, where the first headset is used to form a true wireless Bluetooth headset pair with a second headset, including:
[0010] Step S100, during the reception of Bluetooth packet data sent by an external device or a second headset through Bluetooth channel k, monitoring power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel k;
[0011] Step S200: Determine whether Bluetooth channel k and Bluetooth channels within a preset channel range have broadband signal interference. When the Bluetooth channels within the preset channel range experience at least one power change simultaneously, then both Bluetooth channel k and the Bluetooth channels within the preset channel range have broadband signal interference.
[0012] Step S300: Counting interference and usage of each Bluetooth channel of the first headset based on multiple consecutive interference determination results, and obtaining a first channel status monitoring table, wherein "a Bluetooth channel being used" means that the first headset receives at least one Bluetooth packet data via the Bluetooth channel;
[0013] Step S400, generating a Bluetooth frequency hopping table according to the first channel status monitoring table;
[0014] Step S600: Perform Bluetooth communication with the second headset according to the Bluetooth frequency hopping table.
[0015] Preferably, in step S200, at least one power change is that the Bluetooth channels in the preset channel range simultaneously generate power drops, and the power difference before the Bluetooth channels in the preset channel range drop is less than a preset threshold.
[0016] Preferably, in step S200, at least one power change is that the Bluetooth channels in the preset channel range generate power increases simultaneously, and the power difference after the Bluetooth channels in the preset channel range increase is less than a preset threshold.
[0017] Preferably, in step S200, at least one power change is that the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference after the increase of the Bluetooth channels in the preset channel range is less than the preset threshold, and after the state after the increase is maintained for a preset time, the Bluetooth channels in the preset channel range simultaneously generate a power decrease.
[0018] Preferably, in step S100 , when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left side of Bluetooth channel k and N2 Bluetooth channels adjacent to the right side of Bluetooth channel k.
[0019] Preferably, in step S200, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0020] In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein a monitoring period is the duration during which the first headset receives a preset number of Bluetooth packet data;
[0021] Step S400 includes:
[0022] Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unusable channel;
[0023] Step S420: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels and unavailable channels of the second headset;
[0024] Step S430: Summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table according to the summary results.
[0025] Preferably, step S410 includes: step S411, setting a first initial channel statistics table for the first headset, and setting the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, wherein the usage status of the usable channel corresponds to usable, and the usage status of the unusable channel corresponds to unusable;
[0026] Step S412, determining usable channels and unusable channels according to the first channel status monitoring table;
[0027] Step S413, updating the first initial channel statistics table according to the determination result of step S412 to obtain a first channel statistics table;
[0028] The following steps are also included between step S400 and step S600:
[0029] Step S500, comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, and when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table;
[0030] Step S600 further includes: sending the updated current Bluetooth frequency hopping table to the second headset.
[0031] Preferably, in step S600, when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the first earphone also sends the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the updated current Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
[0032] Preferably, in step S200, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0033] In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein a monitoring period is the duration during which the first headset receives a preset number of Bluetooth packet data;
[0034] Step S400 includes:
[0035] Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unusable channel;
[0036] Step S440: Sending the first channel statistics table to the second headset, so that the second headset can convert the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is converted according to a preset rule based on the available channels in the first channel statistics table, so that when the second headset sends Bluetooth packet data to the first headset, the frequency hopping is performed according to the first Bluetooth frequency hopping table;
[0037] Step S450: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels of the second headset;
[0038] Step S460: Convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule;
[0039] Step S600 includes:
[0040] In the process of sending Bluetooth packet data to the second Bluetooth headset, frequency hopping is performed according to the second Bluetooth frequency hopping table;
[0041] In the process of receiving the Bluetooth packet data sent by the second Bluetooth headset to the first Bluetooth headset, frequency hopping is performed according to the first Bluetooth frequency hopping table.
[0042] In a second aspect, this embodiment discloses a device for implementing Bluetooth communication through a true wireless headset, wherein the true wireless headset is a first headset, and the first headset is used to form a true wireless Bluetooth headset pair with a second headset. The device for implementing Bluetooth communication includes:
[0043] A monitoring module (100) is used to monitor power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel k during reception of Bluetooth packet data sent by an external device or a second headset via Bluetooth channel k;
[0044] A determination module (200) is used to determine whether Bluetooth channel k and Bluetooth channels within a preset channel range have broadband signal interference, wherein when the Bluetooth channels within the preset channel range simultaneously generate at least one power change, then Bluetooth channel k and the Bluetooth channels within the preset channel range all have broadband signal interference;
[0045] A monitoring table obtaining module (300) is used to count interference conditions and usage conditions of each Bluetooth channel of the first headset based on multiple consecutive interference determination results, and obtain a first channel status monitoring table, wherein the use of a Bluetooth channel means that the first headset receives at least one Bluetooth packet data through the Bluetooth channel;
[0046] A frequency hopping table generating module (400), configured to generate a Bluetooth frequency hopping table according to a first channel status monitoring table;
[0047] The communication module (600) is used for performing Bluetooth communication with the second headset according to the Bluetooth frequency hopping table.
[0048] Preferably, when the determination module (200) determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously produce power drops, and the power difference before the Bluetooth channels in the preset channel range drop is less than a preset threshold.
[0049] Preferably, when the determination module (200) determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously generate power increases, and the power difference after the Bluetooth channels in the preset channel range increase is less than a preset threshold.
[0050] Preferably, when the determination module (200) determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference of the Bluetooth channels in the preset channel range after the increase is less than a preset threshold, and after the state after the increase is maintained for a preset time, the Bluetooth channels in the preset channel range simultaneously generate a power decrease.
[0051] Preferably, when the monitoring module (100) receives Bluetooth packet data via Bluetooth channel k, when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left side of Bluetooth channel k and N2 Bluetooth channels adjacent to the right side of Bluetooth channel k.
[0052] Preferably, when the determination module (200) determines whether there is broadband signal interference, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0053] The monitoring table obtaining module (300) counts the number of times each Bluetooth channel is interfered with by a broadband signal and the number of times each Bluetooth channel is used within a monitoring period in a first channel status monitoring table, wherein a monitoring period is the duration during which the first earphone receives a preset number of Bluetooth packet data;
[0054] The communication module (600) is further configured to receive a second channel statistics table sent by the second earphone to the first earphone, wherein the second channel statistics table counts available channels and unavailable channels of the second earphone;
[0055] The frequency hopping table generating module (400) is further used to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table, then summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table based on the summary result, wherein the first channel statistics table summarizes the usable channels and unusable channels of the first headset, and the Bluetooth channels whose number of interferences is greater than a preset interference threshold are unusable channels.
[0056] Preferably, the frequency hopping table generating module (400) is further used to set a first initial channel statistics table for the first headset, set the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, and then determine the usable channels and unusable channels according to the first channel status monitoring table, and then update the first initial channel statistics table according to the determination result to obtain a first channel statistics table, wherein the usage status of the usable channels corresponds to usable, and the usage status of the unusable channels corresponds to unusable;
[0057] The device also includes:
[0058] a comparison module (500) for comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, and updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold;
[0059] The communication module (600) is further configured to send the updated current Bluetooth frequency hopping table to the second headset.
[0060] Preferably, when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the communication module (600) is further used to send the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device sends Bluetooth packet data to the first earphone and / or the second earphone with reference to the updated current Bluetooth frequency hopping table.
[0061] Preferably, when the determination module (200) determines whether there is broadband signal interference, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0062] The monitoring table obtaining module (300) counts the number of times each Bluetooth channel is interfered with by a broadband signal and the number of times each Bluetooth channel is used within a monitoring period in a first channel status monitoring table, wherein a monitoring period is the duration during which the first earphone receives a preset number of Bluetooth packet data;
[0063] The frequency hopping table generating module (400) is further configured to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table, wherein the first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with is greater than a preset interference threshold is an unusable channel;
[0064] The communication module (600) is further configured to receive a second channel statistics table sent by the second earphone to the first earphone, wherein the second channel statistics table counts available channels of the second earphone;
[0065] The frequency hopping table generating module (400) is further configured to convert the available channels in the second channel statistical table into a second Bluetooth frequency hopping table according to a preset rule;
[0066] The communication module (600) is further configured to send the first channel statistics table to the second earphone, so that the second earphone can convert the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is obtained by converting the available channels in the first channel statistics table according to a preset rule, so that when the second earphone sends Bluetooth packet data to the first earphone, frequency hopping is performed according to the first Bluetooth frequency hopping table;
[0067] The communication module (600) is further used to perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset, and receive Bluetooth packet data that the second Bluetooth headset performs frequency hopping according to the first Bluetooth frequency hopping table and sends to the first Bluetooth headset.
[0068] In a third aspect, this embodiment discloses a true wireless Bluetooth headset, in which the Bluetooth communication method disclosed in the first aspect is applied to the true wireless Bluetooth headset.
[0069] In a fourth aspect, this embodiment discloses a pair of true wireless Bluetooth earphones, comprising a first earphone and a second earphone in a pair, wherein the first earphone is the true wireless Bluetooth earphone disclosed in the first aspect.
[0070] In a fifth aspect, this embodiment discloses a three-terminal system for Bluetooth communication, including:
[0071] Bluetooth audio source device, used to provide audio data;
[0072] The first earphone is configured to convert the channel arbitration table into a Bluetooth frequency hopping table and compare the converted table with the current Bluetooth frequency hopping table;
[0073] A second earphone, forming a true wireless Bluetooth earphone pair with the first earphone, the second earphone sending the second earphone's channel statistics table to the first earphone and receiving the Bluetooth frequency hopping table sent by the first earphone;
[0074] The first headset is configured to implement the Bluetooth communication method disclosed in the first aspect.
[0075] In a sixth aspect, this embodiment discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the Bluetooth communication method disclosed in the first aspect can be implemented.
[0076] In a seventh aspect, this embodiment discloses a chip for active noise reduction, including a processor and a memory, wherein a computer program is stored in the memory, and the processor can execute the computational program to implement the Bluetooth communication method disclosed in the first aspect.
[0077] Beneficial effects
[0078] An embodiment of the present invention discloses a Bluetooth communication method for a true wireless Bluetooth headset, which detects whether there is broadband signal interference on the Bluetooth channel and its adjacent Bluetooth channels by detecting whether at least one power change occurs simultaneously on the Bluetooth channel adjacent to the Bluetooth channel during the reception of Bluetooth packet data on a certain Bluetooth channel. In the existing communication method of true wireless Bluetooth headsets, since the wireless environment detection is mostly performed by the Bluetooth audio source device rather than the true wireless Bluetooth headset itself, this results in the interfered Bluetooth channels and non-interference Bluetooth channels detected by the Bluetooth audio source device being more in line with the Bluetooth audio source device itself, and not in line with or even completely inconsistent with the wireless environment of the true wireless Bluetooth headset. In the Bluetooth communication method disclosed in this embodiment, the wireless Bluetooth headset can automatically detect whether each Bluetooth channel in the wireless environment in which it is located is interfered with by broadband signals, and therefore can more accurately detect the Bluetooth channels that the wireless Bluetooth headset can use, thereby improving the communication anti-interference and reliability of the wireless Bluetooth headset.
[0079] In addition, in the Bluetooth communication method disclosed in this embodiment, the true wireless Bluetooth headset can detect whether there is broadband signal interference in the Bluetooth channel and the adjacent Bluetooth channels of the Bluetooth channel while receiving Bluetooth packet data. There is no need to deliberately send or receive Bluetooth packet data for detection, thereby saving the communication burden of the true wireless Bluetooth headset and allowing the data transmission of the true wireless Bluetooth headset to be used entirely for Bluetooth communication rather than interference detection of Bluetooth channels, thereby further improving the communication efficiency of the true wireless Bluetooth headset.
[0080] Other beneficial effects of the present invention will be explained through the introduction of specific technical features and technical solutions in the specific implementation methods. Those skilled in the art should be able to understand the beneficial technical effects brought about by the introduction of these technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] The embodiments of the present invention will be described below with reference to the accompanying drawings.
[0082] Figure 1 This is a flow chart of a Bluetooth communication method for a true wireless Bluetooth headset disclosed in this embodiment;
[0083] Figure 2 This is a schematic diagram of Bluetooth channel distribution disclosed in this embodiment;
[0084] Figure 3 This is a schematic diagram of the structure of the device for implementing Bluetooth communication disclosed in this embodiment;
[0085] Figure 4 This is a schematic diagram of the true wireless Bluetooth headset module disclosed in this embodiment;
[0086] Figure 5This is a schematic diagram of the three-terminal system module disclosed in this embodiment. DETAILED DESCRIPTION
[0087] The present invention is described below based on the following embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail. In order to avoid obscuring the essence of the present invention, well-known methods, processes, procedures, and components are not described in detail.
[0088] Furthermore, persons of ordinary skill in the art will appreciate that the figures provided herein are for illustration purposes only and are not necessarily drawn to scale.
[0089] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include," "comprising," and similar words should be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to."
[0090] In the description of the present invention, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood to indicate or imply relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0091] For the Bluetooth communication of true wireless Bluetooth headsets, since its operating frequency band of 2.4GHz is also a publicly used wireless frequency band in the world, when true wireless Bluetooth headsets communicate with each other, they are very susceptible to interference from other wireless signals, such as WiFi signals and other high-energy broadband signals.
[0092] In the existing communication methods of true wireless Bluetooth headsets, since wireless environment detection is mostly performed by Bluetooth audio source devices such as mobile phones, computers, and players, rather than the true wireless Bluetooth headsets themselves, this results in the interference Bluetooth channels and non-interference Bluetooth channels detected by the Bluetooth audio source devices being more in line with the Bluetooth audio source devices themselves, and not in line with or even completely inconsistent with the wireless environment of the true wireless Bluetooth headsets.
[0093] For example, when a user brings a Bluetooth audio source device and a true wireless Bluetooth headset into a wireless environment with a Wi-Fi signal, the Bluetooth audio source device will establish a wireless connection with the router that sends the Wi-Fi signal. During this process or in the early stages of the wireless connection, the Bluetooth audio source device will detect the wireless environment by probing each Bluetooth channel to obtain Bluetooth channels with interference and available Bluetooth channels. Based on this, the Bluetooth frequency hopping table is obtained and sent to the true wireless Bluetooth headset. The true wireless Bluetooth headset will then communicate wirelessly with other paired headphones or Bluetooth audio source devices according to this Bluetooth frequency hopping table. However, during the use of true wireless Bluetooth headsets, there is often a certain distance between the Bluetooth audio source device and the Bluetooth audio source device, such as the two being in different locations in the same room or even in different rooms. This results in a difference between the situation where the Bluetooth channel detected by the Bluetooth audio source device is interfered with by the broadband signal and the situation where the true wireless Bluetooth headset is actually interfered with. Therefore, the Bluetooth frequency hopping table used by the true wireless Bluetooth headset in the existing solution is not reliable enough, which in turn leads to low Bluetooth communication anti-interference performance and communication efficiency of the true wireless Bluetooth headset.
[0094] Please refer to Figure 1 , which is a flow chart of a Bluetooth communication method for a true wireless Bluetooth headset disclosed in this embodiment. This Bluetooth communication method is used for a first headset, and the first headset and a second headset form a true wireless Bluetooth headset pair. The first headset is a true wireless Bluetooth headset, and the second headset can be a true wireless Bluetooth headset or other headset, as long as the first headset and the second headset can wirelessly communicate via Bluetooth.
[0095] The Bluetooth communication method includes steps S100, S200, S300, S400, S500 and S600, wherein:
[0096] Step S100 monitors power changes of Bluetooth channels within a preset range of channels adjacent to Bluetooth channel k while receiving Bluetooth packet data transmitted by an external device or a second earphone via Bluetooth channel k. In a specific embodiment, Bluetooth channel k is an unspecified Bluetooth channel, as long as it is a Bluetooth channel that receives Bluetooth packet data, and Bluetooth channel k can be any Bluetooth channel or any number of Bluetooth channels that simultaneously receive Bluetooth packet data. The external device can be a Bluetooth audio source device (such as a mobile phone, computer, or player) wirelessly connected to the first earphone, or it can be another earphone, speaker, or the like wirelessly connected to the first earphone.
[0097] It should be noted that receiving Bluetooth packet data sent by an external device or the second headset through Bluetooth channel k means that the first headset performs a data receiving operation through Bluetooth channel k, but may not necessarily receive the data, that is, the Bluetooth packet data may be successfully received or may not be successfully received.
[0098] In a specific embodiment, the Bluetooth channels in the preset channel range adjacent to the Bluetooth channel k refer to all Bluetooth channels in the preset channel range starting from the channel adjacent to the Bluetooth channel k. Figure 2 , is a schematic diagram of a Bluetooth channel distribution disclosed in this embodiment. For example, Bluetooth channel k is channel 3, and the preset channel range is a Bluetooth channel adjacent to both sides of Bluetooth channel k, namely channel 2 and channel 4. During the period when channel 3 receives Bluetooth packet data, the power changes of channel 2 and channel 4 are monitored simultaneously.
[0099] Furthermore, in step S100, when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left of Bluetooth channel k and N2 Bluetooth channels adjacent to the right of Bluetooth channel k. In a specific embodiment, N1 and N2 may be equal or unequal.
[0100] Step S200: Determine whether the Bluetooth channel k and the Bluetooth channels within the preset channel range have broadband signal interference, wherein the determination method is: when the Bluetooth channels within the preset channel range have at least one power change at the same time, then the Bluetooth channel k and the Bluetooth channels within the preset channel range have broadband signal interference. For example, please continue to refer to Figure 2 While receiving Bluetooth packet data on channel 3, if at least one power change is detected on both channels 2 and 4, it is determined that there is broadband signal interference on channels 2, 3, and 4. In a specific embodiment, the specific method for determining whether there is broadband signal interference is described below.
[0101] In step S300, based on multiple consecutive interference determination results, statistics are collected on the interference and usage of each Bluetooth channel of the first headset, and a first channel status monitoring table is obtained. In a specific embodiment, a Bluetooth channel being used means that the first headset receives at least one Bluetooth packet data via the Bluetooth channel, and a Bluetooth channel being interfered with means that broadband signal interference is detected on the Bluetooth channel.
[0102] Step S400: Generate a Bluetooth frequency hopping table according to the first channel status monitoring table.
[0103] Step S500, comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table. When the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table; otherwise, not updating the current Bluetooth frequency hopping table.
[0104] Step S600: Perform Bluetooth communication with the second headset according to the current Bluetooth frequency hopping table.
[0105] In one embodiment, if, in step S500, the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the current Bluetooth frequency hopping table is updated to be consistent with the generated Bluetooth frequency hopping table. Then, in step S600, the first headset performs Bluetooth communication with the second headset according to the updated current Bluetooth frequency hopping table and transmits the updated current Bluetooth frequency hopping table to the second headset. Furthermore, the first headset also transmits the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device transmits Bluetooth packet data to the first headset and / or the second headset with reference to the updated current Bluetooth frequency hopping table.
[0106] In another embodiment, if the current Bluetooth frequency hopping table is not updated in step S500, then in step S600, Bluetooth communication is performed with the second headset directly according to the current Bluetooth frequency hopping table, and the first headset does not send the current Bluetooth frequency hopping table to the second headset or the Bluetooth audio source device, and the second headset or the Bluetooth audio source device still performs Bluetooth communication with the first headset according to the original Bluetooth frequency hopping table.
[0107] The Bluetooth communication method for a true wireless Bluetooth headset disclosed in an embodiment of the present invention detects whether there is broadband signal interference on a Bluetooth channel and its adjacent Bluetooth channels by synchronously detecting whether at least one power change occurs simultaneously on a Bluetooth channel adjacent to the Bluetooth channel while receiving Bluetooth packet data on the Bluetooth channel. In the Bluetooth communication method disclosed in this embodiment, the wireless Bluetooth headset can independently detect whether each Bluetooth channel in the wireless environment in which it is located is interfered with by broadband signals. Therefore, it can more accurately detect the Bluetooth channels that the wireless Bluetooth headset can use, thereby improving the communication anti-interference and reliability of the wireless Bluetooth headset.
[0108] In addition, in the Bluetooth communication method disclosed in this embodiment, the true wireless Bluetooth headset can detect whether there is broadband signal interference in the Bluetooth channel and the adjacent Bluetooth channels of the Bluetooth channel while receiving Bluetooth packet data. There is no need to deliberately send or receive Bluetooth packet data for detection, thereby saving the communication burden of the true wireless Bluetooth headset and allowing the data transmission of the true wireless Bluetooth headset to be used entirely for Bluetooth communication rather than interference detection of Bluetooth channels, thereby further improving the communication efficiency of the true wireless Bluetooth headset.
[0109] Furthermore, in an environment with wireless interference, the number of Bluetooth channels on which the second earphone can reliably receive data is limited. If the first earphone continues to send the new Bluetooth frequency hopping table to the second earphone when the number of Bluetooth channels with changed usage in the new Bluetooth frequency hopping table does not reach a preset update threshold, meaning the current Bluetooth communication environment has not significantly changed or has not changed at all, this will unnecessarily occupy the second earphone's available channels. Frequently sending new Bluetooth frequency hopping tables can even further reduce communication efficiency between the two earphones, especially in environments with strong interference. Furthermore, frequently sending, receiving, or updating the Bluetooth frequency hopping table can also result in energy loss. Therefore, an update threshold is set so that when the wireless environment changes slightly or remains unchanged, the first earphone does not need to send a new Bluetooth frequency hopping table. This reduces unnecessary communication burdens between the earphones, thereby ensuring communication efficiency between the first and second earphones and saving energy loss. Even when the wireless environment changes significantly, the first and second earphones can still promptly send, receive, and update the new Bluetooth frequency hopping table, ensuring that Bluetooth packet data is always received on the optimal channel during communication between the two earphones, thereby improving communication efficiency and reliability between the first and second earphones.
[0110] For ease of understanding, this embodiment uses Wi-Fi signals as an example of a high-energy broadband signal, and is not limited to Wi-Fi signal detection. Because Wi-Fi signals occupy multiple channels when transmitting data, when Wi-Fi signals are transmitting in a wireless environment, it is possible to detect that the power levels of multiple channels are substantially consistent. Therefore, in one embodiment, in step S200, whether there is broadband signal interference is determined by: at least one power change causes a simultaneous power increase in the Bluetooth channels within a preset channel range, the difference in power after the power increase in the Bluetooth channels within the preset channel range is less than a preset threshold, and after the power increase remains in this state for a preset duration, the Bluetooth channels within the preset channel range simultaneously decrease in power. When a broadband signal interferes with Bluetooth channel k in the environment, the power of the Bluetooth channels within the preset channel range will increase simultaneously; while the broadband signal is transmitting data, the Bluetooth channels within the preset channel range will maintain the increased power; and when the broadband signal ends, the power of the Bluetooth channels within the preset channel range will decrease simultaneously.
[0111] In this way, while the first earphone is receiving Bluetooth packet data, it is possible to detect whether there is broadband signal interference in the Bluetooth channel and its adjacent Bluetooth channels. In this way, the first earphone can reliably detect the interference of the Bluetooth channel without having to specifically send and receive Bluetooth packet data for trial, thereby effectively ensuring the reliability and efficiency of Bluetooth communication.
[0112] Because the time period during which Bluetooth channel k receives Bluetooth packet data may not completely overlap with the time period during which broadband signal data is transmitted and received, only the onset or termination of broadband signal interference may be detected during the period during which Bluetooth channel k receives Bluetooth packet data. Therefore, in another embodiment, in step S200, whether broadband signal interference occurs is determined by: at least one power change occurs when Bluetooth channels within a preset channel range simultaneously experience a power increase, and the difference in power after the increase in the Bluetooth channels within the preset channel range is less than a preset threshold.
[0113] For example, please see Figure 2 When the Bluetooth channel k is channel 3, it is detected that the power of channel 2 and channel 4 increases at the same time, and after the power increase, the power level of channel 2 is roughly equivalent to the power level of channel 4, that is, the power difference between channel 2 and channel 4 is less than the preset threshold. It can be considered that the beginning stage of the broadband interference signal is detected.
[0114] In another embodiment, in step S200, the specific method for determining whether there is broadband signal interference is: at least one power change is that the power of the Bluetooth channels in the preset channel range decreases at the same time, and the power difference before the power decrease of the Bluetooth channels in the preset channel range is less than a preset threshold. Figure 2 When the Bluetooth channel k is channel 3, it is detected that the power of channels 2 and 4 decreases at the same time, and before the power decreases, the power level of channel 2 is roughly equivalent to the power level of channel 4. It can be considered that the cutoff stage of the broadband interference signal has been detected.
[0115] It should be noted that in various usage scenarios of true wireless Bluetooth headsets, there are often complex wireless environments, that is, there may be multiple wireless interference signals in the wireless environment. When a broadband signal with stronger energy is transmitting data, this broadband signal will mask other wireless interference signals to a certain extent, and the power levels of multiple channels will be roughly the same. However, after this broadband signal ends, multiple channels will still be affected by other wireless interference signals. Therefore, compared with the method of monitoring the end stage of the broadband interference signal, the method of monitoring the beginning stage of the broadband interference signal is more reliable.
[0116] In one embodiment, the first headset and the second headset may communicate internally via a custom protocol or a standard protocol.
[0117] In a specific embodiment, in step S200, when the Bluetooth channels within the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels within the preset channel range generate a broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data exceeding a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0118] In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein a monitoring period is the duration for the first headset to receive a preset number of Bluetooth packet data.
[0119] In a specific embodiment, step S400 includes:
[0120] Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unusable channel;
[0121] Step S420: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels and unavailable channels of the second headset;
[0122] Step S430: Summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table according to the summary results.
[0123] In a specific embodiment, step S410 includes: step S411, setting a first initial channel statistics table for the first headset, and setting the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, wherein the usage status of the usable channel corresponds to usable, and the usage status of the unusable channel corresponds to unusable;
[0124] Step S412, determining usable channels and unusable channels according to the first channel status monitoring table;
[0125] Step S413, updating the first initial channel statistics table according to the determination result of step S412 to obtain a first channel statistics table;
[0126] In a specific embodiment, in step S600, when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the first earphone also sends the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the updated current Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
[0127] To summarize, the first earphone obtains a first channel status detection table after counting the number of times each Bluetooth channel is used and the number of times it is interfered with within a detection cycle. A first channel statistics table is obtained based on the statistics of the first channel status detection table, and a second channel statistics table sent by the second earphone is received. The available channels in the first channel statistics table and the second channel statistics table are then merged and summarized to obtain a channel arbitration table and the channel arbitration table is converted into a new Bluetooth frequency hopping table. When the number of Bluetooth channels with changed usage status in the new Bluetooth frequency hopping table reaches a preset update threshold, the first earphone sends the new Bluetooth frequency hopping table to the second earphone, so that both the first earphone and the second earphone communicate according to the new Bluetooth frequency hopping table. By aggregating and merging the first channel statistics table and the second channel statistics table, the available channels in the new Bluetooth frequency hopping table are both available channels for the first earphone and the second earphone, ensuring that when the first earphone communicates with the second earphone, both earphones can receive Bluetooth packet data through the available channels, and the available channels are Bluetooth channels in which the earphones are less interfered with or have no interference in the current wireless environment. Therefore, compared with the Bluetooth communication method that directly uses the Bluetooth frequency hopping table sent by the terminal device, the reliability of the available channels in the Bluetooth communication method disclosed in this embodiment is better, thereby effectively improving the anti-interference ability of communication between the first earphone and the second earphone.
[0128] In another embodiment, the first headset and the second headset can communicate internally via a custom protocol.
[0129] In a specific embodiment, in step S200, when the Bluetooth channels within the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels within the preset channel range generate a broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data exceeding a preset usage threshold, it is determined that the Bluetooth channel k is used once;
[0130] In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein a monitoring period is the duration for the first headset to receive a preset number of Bluetooth packet data.
[0131] In a specific embodiment, step S400 includes:
[0132] Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unusable channel;
[0133] Step S440: Sending the first channel statistics table to the second headset, so that the second headset can convert the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is converted according to a preset rule based on the available channels in the first channel statistics table, so that when the second headset sends Bluetooth packet data to the first headset, the frequency hopping is performed according to the first Bluetooth frequency hopping table;
[0134] Step S450: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels of the second headset;
[0135] Step S460: Convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule.
[0136] In a specific embodiment, step S600 includes:
[0137] Perform frequency hopping according to a second Bluetooth frequency hopping table, and send Bluetooth packet data to the second Bluetooth headset;
[0138] The Bluetooth packet data is received, which is sent by the second Bluetooth headset to the first Bluetooth headset after frequency hopping according to the first Bluetooth frequency hopping table.
[0139] As can be seen, the first earphone counts the number of times each Bluetooth channel is interfered with within a detection cycle to obtain a first channel statistics table, and then sends the first channel statistics table to the second earphone, so that the second earphone can convert the first channel statistics table into a first Bluetooth frequency hopping table, so that when the second earphone sends Bluetooth packet data to the first earphone, frequency hopping is performed according to the first Bluetooth frequency hopping table. The first earphone also receives the second channel statistics table sent by the second earphone to the first earphone and converts the second channel statistics table into a second Bluetooth frequency hopping table, so that the first earphone can perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth earphone. Compared to the method of directly using the Bluetooth frequency hopping table of the terminal device for internal communication between the earphone pair, the Bluetooth communication method disclosed in this embodiment can effectively ensure that during internal communication between the earphone pair, both the first earphone and the second earphone can receive data on their own available channels. The available channels are Bluetooth channels in the current wireless environment where the earphones receive data with little or no interference. Therefore, the communication disclosed in this embodiment improves the anti-interference capability of communication between the first earphone and the second earphone. Moreover, when the wireless environment changes, the first earphone and the second earphone can also update their respective Bluetooth frequency hopping tables in time, thereby ensuring that the first earphone and the second earphone can always communicate through a relatively reliable channel, thereby improving the communication efficiency within the earphone pair.
[0140] In addition, in the Bluetooth communication method disclosed in this embodiment, a custom protocol is used for communication between the first earphone and the second earphone, and the two earphones respectively detect the Bluetooth channel with higher data reception reliability, and the two earphones respectively convert the available channels of the other party to obtain the Bluetooth frequency hopping table used when sending data to the other party, thereby ensuring that the first earphone and the second earphone can both receive data on the channel where they are relatively reliable for receiving data, thereby improving the anti-interference and reliability of the communication between the first earphone and the second earphone, and further improving the communication efficiency between the first earphone and the second earphone.
[0141] This embodiment also discloses a device for implementing Bluetooth communication through a true wireless headset, where the true wireless headset is a first headset, and the first headset and the second headset constitute a true wireless Bluetooth headset pair.
[0142] Please refer to Figure 3 , is a schematic diagram of the structure of a device for implementing Bluetooth communication disclosed in this embodiment. The device for implementing Bluetooth communication includes a monitoring module 100, a determination module 200, a monitoring table obtaining module 300, a frequency hopping table generating module 400, and a communication module 600, wherein:
[0143] The monitoring module 100 is configured to monitor power changes of Bluetooth channels in a preset channel range adjacent to the Bluetooth channel k during reception of Bluetooth packet data sent by an external device or a second headset via the Bluetooth channel k;
[0144] Determination module 200, configured to determine whether Bluetooth channel k and Bluetooth channels within a preset channel range are subject to broadband signal interference, wherein the determination is as follows: when the Bluetooth channels within the preset channel range simultaneously experience at least one power change, then Bluetooth channel k and the Bluetooth channels within the preset channel range are subject to broadband signal interference;
[0145] A monitoring table obtaining module 300 is configured to collect statistics on interference and usage of each Bluetooth channel of the first headset based on multiple consecutive interference determination results, and obtain a first channel status monitoring table, wherein "a Bluetooth channel being used" means that the first headset receives at least one Bluetooth packet data via the Bluetooth channel;
[0146] A frequency hopping table generating module 400 is configured to generate a Bluetooth frequency hopping table according to the first channel status monitoring table;
[0147] The communication module 600 is configured to perform Bluetooth communication with the second headset according to the Bluetooth frequency hopping table.
[0148] In one embodiment, when the determination module 200 determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously produce power drops, and the power difference before the Bluetooth channels in the preset channel range drop is less than a preset threshold.
[0149] In another embodiment, when the determination module 200 determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously increase in power, and the power difference after the increase of the Bluetooth channels in the preset channel range is less than a preset threshold.
[0150] In another embodiment, when the determination module 200 determines whether there is broadband signal interference, at least one power change is that the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference after the increase of the Bluetooth channels in the preset channel range is less than a preset threshold, and after the state after the increase is maintained for a preset period of time, the Bluetooth channels in the preset channel range simultaneously generate a power decrease.
[0151] In a specific embodiment, when the monitoring module 100 receives Bluetooth packet data through Bluetooth channel k, when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left of Bluetooth channel k and N2 Bluetooth channels adjacent to the right of Bluetooth channel k.
[0152] In one embodiment, when determining whether broadband signal interference occurs, the determination module 200 determines that broadband signal interference occurs on Bluetooth channel k and the Bluetooth channels within the preset channel range when the Bluetooth channels within the preset channel range simultaneously experience at least one power change. When Bluetooth channel k continuously receives Bluetooth packet data exceeding a preset usage threshold, it determines that Bluetooth channel k is being used once.
[0153] The monitoring table obtaining module 300 counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used in a first channel status monitoring table within a monitoring period, wherein a monitoring period is the length of time during which the first headset receives a preset number of Bluetooth packet data;
[0154] The communication module 600 is further configured to receive a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels and unavailable channels of the second headset;
[0155] The frequency hopping table generation module 400 is also used to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table, and then summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table based on the summary results, wherein the first channel statistics table counts the usable channels and unusable channels of the first headset, and a Bluetooth channel that is interfered with more than a preset interference threshold is an unusable channel.
[0156] In a specific embodiment, the frequency hopping table generation module 400 is further configured to set a first initial channel statistics table for the first headset, set the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, and then determine the usable channels and unusable channels according to the first channel status monitoring table, and then update the first initial channel statistics table according to the determination result to obtain a first channel statistics table, wherein the usage status of the usable channels corresponds to usable, and the usage status of the unusable channels corresponds to unusable;
[0157] The device also includes:
[0158] a comparison module 500 for comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, and updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold;
[0159] The communication module 600 is further configured to send the updated current Bluetooth frequency hopping table to the second headset.
[0160] When the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the communication module 600 is also used to send the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device can refer to the updated current Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
[0161] In another embodiment, when determining whether broadband signal interference occurs, the determination module 200 determines that broadband signal interference occurs on Bluetooth channel k and the Bluetooth channels within the preset channel range when the Bluetooth channels within the preset channel range simultaneously experience at least one power change. When Bluetooth channel k continuously receives Bluetooth packet data exceeding a preset usage threshold, it determines that Bluetooth channel k is being used once.
[0162] The monitoring table obtaining module 300 counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used in a first channel status monitoring table within a monitoring period, wherein a monitoring period is the length of time during which the first headset receives a preset number of Bluetooth packet data;
[0163] The frequency hopping table generating module 400 is further configured to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel that has been interfered with more than a preset interference threshold is considered an unusable channel.
[0164] The communication module 600 is further configured to receive a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels of the second headset;
[0165] The frequency hopping table generating module 400 is further configured to convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule;
[0166] The communication module 600 is further configured to send the first channel statistics table to the second headset, so that the second headset can convert the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is converted according to a preset rule based on the available channels in the first channel statistics table, so that when the second headset sends Bluetooth packet data to the first headset, the frequency hopping is performed according to the first Bluetooth frequency hopping table;
[0167] The communication module 600 is further configured to perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset, and receive Bluetooth packet data that the second Bluetooth headset performs frequency hopping according to the first Bluetooth frequency hopping table and sends to the first Bluetooth headset.
[0168] This embodiment also discloses a true wireless Bluetooth headset, and the Bluetooth communication method disclosed in the above embodiment is applied to the true wireless Bluetooth headset.
[0169] Please refer to Figure 4 , is a schematic diagram of a true wireless Bluetooth headset pair disclosed in this embodiment. The true wireless Bluetooth headset pair includes a first headset 10 and a second headset 11 in a pair. In this embodiment, at least the first headset 10 is a true wireless Bluetooth headset disclosed in the above embodiment.
[0170] In a specific embodiment, after the first earphone 10 sends the new Bluetooth frequency hopping table to the second earphone 11, if the second earphone 11 fails to successfully receive the new Bluetooth frequency hopping table, the second earphone 11 still sends Bluetooth packet data to the first earphone 10 according to the current Bluetooth frequency hopping table, and the first earphone 10 sends Bluetooth packet data to the second earphone 11 according to the new Bluetooth frequency hopping table.
[0171] This embodiment also discloses a two-terminal communication system for a true wireless Bluetooth headset, the two-terminal communication system comprising a first headset and a second headset in a pair, wherein the first headset is configured to implement the Bluetooth communication method disclosed in the above embodiment;
[0172] The second earphone is used to send the second channel statistics table to the first earphone, and receive the Bluetooth frequency hopping table sent by the first earphone to the second earphone, so that the first earphone and the second earphone communicate according to the Bluetooth frequency hopping table.
[0173] This embodiment also discloses a three-terminal system for Bluetooth communication. Figure 5 , is a schematic diagram of a three-terminal system module disclosed in this embodiment, the three-terminal system includes:
[0174] A Bluetooth audio source device 30 is used to provide audio data. For example, the Bluetooth audio source device 30 can be an electronic device that can provide audio data, such as a mobile phone, a computer, or a player;
[0175] The first headset 31 is configured to convert the channel arbitration table into a Bluetooth frequency hopping table and compare the converted table with the current Bluetooth frequency hopping table;
[0176] The second earphone 32 forms a true wireless Bluetooth earphone pair with the first earphone 31. The second earphone 32 sends its channel statistics table to the first earphone 31 and receives the Bluetooth frequency hopping table sent by the first earphone 31.
[0177] The first earphone 31 is configured to implement the Bluetooth communication method disclosed in the above embodiment.
[0178] This embodiment further discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the Bluetooth communication method disclosed in the above embodiment can be implemented.
[0179] This embodiment further discloses a chip for active noise reduction, including a processor and a memory. The memory stores a computer program, and the processor can execute the computer program to implement the Bluetooth communication method disclosed in the above embodiment.
[0180] It should be noted that the computer-readable storage medium described in the embodiments of the present disclosure is not limited to the embodiments given above, and can also be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments of the present disclosure, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0181] It will be understood by those skilled in the art that, under the premise of no conflict, the above-mentioned preferred embodiments can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. The numbering of each step in this article is only for the convenience of description and reference, and is not used to limit the order of execution. The specific execution order is determined by the technology itself, and those skilled in the art can determine various allowable and reasonable orders based on the technology itself.
[0182] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is solely for the purpose of descriptive convenience and brevity, and is in no way intended to limit the order of these method steps. Those skilled in the art will appreciate that the order of the relevant method steps is determined by the technology itself and should not be unduly limited by the presence of step numbers. Those skilled in the art can determine various permissible and reasonable step orders based on the technology itself.
[0183] Those skilled in the art will appreciate that, provided there is no conflict, the above preferred solutions can be freely combined and superimposed.
[0184] It should be understood that the above-mentioned embodiments are merely illustrative and non-restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will be included in the scope of the claims of the present invention.
Claims
1. A Bluetooth communication method for a true wireless Bluetooth headset, used for a first headset, wherein the first headset is used to form a true wireless Bluetooth headset pair with a second headset, characterized in that: include: Step S100, during the reception of Bluetooth packet data sent by an external device or a second headset through Bluetooth channel k, monitoring power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel k; Step S200, determining whether the Bluetooth channel k and the Bluetooth channels in the preset channel range have broadband signal interference, wherein when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, then the Bluetooth channel k and the Bluetooth channels in the preset channel range both have broadband signal interference; in the step S200, the at least one power change includes: at the beginning of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference of the Bluetooth channels in the preset channel range after the increase is less than a preset threshold; or, at the end of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power decrease, and the power difference of the Bluetooth channels in the preset channel range before the decrease is less than a preset threshold; or, from the beginning to the end of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference of the Bluetooth channels in the preset channel range after the increase is less than a preset threshold, and after the state after the increase is maintained for a preset period of time, the Bluetooth channels in the preset channel range simultaneously generate a power decrease; Step S300: Counting interference and usage of each Bluetooth channel of the first headset based on multiple consecutive interference determination results, and obtaining a first channel status monitoring table, wherein "a Bluetooth channel being used" means that the first headset receives at least one Bluetooth packet data through the Bluetooth channel; Step S400: Generate a Bluetooth frequency hopping table according to the first channel status monitoring table; Step S600: Perform Bluetooth communication with the second headset according to the Bluetooth frequency hopping table.
2. The Bluetooth communication method according to claim 1, wherein: In step S100 , when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left of the Bluetooth channel k and N2 Bluetooth channels adjacent to the right of the Bluetooth channel k.
3. The Bluetooth communication method according to claim 1, wherein: In step S200, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once; In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein one monitoring period is the duration for the first headset to receive a preset number of Bluetooth packet data; The step S400 includes: Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the available channels and unavailable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unavailable channel. Step S420: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels and unavailable channels of the second headset; Step S430: Summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table according to the summary results.
4. The Bluetooth communication method according to claim 3, wherein: The step S410 includes: step S411, setting a first initial channel statistics table for the first headset, and setting the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, wherein the usage status of the usable channel corresponds to usable, and the usage status of the unusable channel corresponds to unusable; Step S412: determining usable channels and unusable channels according to the first channel status monitoring table; Step S413: updating the first initial channel statistics table according to the determination result of step S412 to obtain the first channel statistics table; The following steps are further included between step S400 and step S600: Step S500, comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, and when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table; The step S600 further includes: sending the updated current Bluetooth frequency hopping table to the second headset.
5. The Bluetooth communication method according to claim 4, wherein: In step S600, when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the first earphone also sends the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the updated current Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
6. The Bluetooth communication method according to any one of claims 1 to 3, wherein: In step S200, when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate one broadband signal interference; when the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once; In step S300, the first channel status monitoring table counts the number of times each Bluetooth channel is interfered with by the broadband signal and the number of times it is used within a monitoring period, wherein one monitoring period is the duration for the first headset to receive a preset number of Bluetooth packet data; The step S400 includes: Step S410: generating a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table. The first channel statistics table counts the available channels and unavailable channels of the first headset, wherein a Bluetooth channel whose number of times it is interfered with exceeds a preset interference threshold is considered an unavailable channel. Step S440: Sending the first channel statistics table to the second headset, so that the second headset converts the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is converted according to a preset rule based on the available channels in the first channel statistics table, so that when the second headset sends Bluetooth packet data to the first headset, frequency hopping is performed according to the first Bluetooth frequency hopping table; Step S450: receiving a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts available channels of the second headset; Step S460: Convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule; The step S600 includes: In the process of sending Bluetooth packet data to the second headset, frequency hopping is performed according to the second Bluetooth frequency hopping table; In the process of receiving the Bluetooth packet data sent by the second earphone to the first earphone, frequency hopping is performed according to the first Bluetooth frequency hopping table.
7. A device for implementing Bluetooth communication via a true wireless headset, wherein the true wireless headset is a first headset, and the first headset is used to form a true wireless Bluetooth headset pair with a second headset, characterized in that: The device for implementing Bluetooth communication includes: A monitoring module (100) is used to monitor power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel k during reception of Bluetooth packet data sent by an external device or a second headset via Bluetooth channel k; A determination module (200) is used to determine whether the Bluetooth channel k and the Bluetooth channels in the preset channel range have broadband signal interference, wherein when the Bluetooth channels in the preset channel range simultaneously generate at least one power change, the Bluetooth channel k and the Bluetooth channels in the preset channel range all have broadband signal interference; The monitoring table obtaining module (300) is used to count the interference conditions and usage conditions of each Bluetooth channel of the first earphone based on multiple consecutive interference judgment results, and obtain a first channel status monitoring table, wherein the use of a Bluetooth channel means that the first earphone receives at least one Bluetooth packet data through the Bluetooth channel; when the determination module (200) determines whether there is broadband signal interference, the at least one power change includes: at the beginning of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference of the Bluetooth channels in the preset channel range after the increase is less than a preset threshold; or, at the end of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power decrease, and the power difference of the Bluetooth channels in the preset channel range before the decrease is less than a preset threshold; or, from the beginning to the end of the broadband signal interference, the Bluetooth channels in the preset channel range simultaneously generate a power increase, and the power difference of the Bluetooth channels in the preset channel range after the increase is less than a preset threshold, and after the state after the increase is maintained for a preset period of time, the Bluetooth channels in the preset channel range simultaneously generate a power decrease; A frequency hopping table generating module (400), configured to generate a Bluetooth frequency hopping table according to the first channel status monitoring table; The communication module (600) is used to perform Bluetooth communication with the second headset according to the Bluetooth frequency hopping table.
8. The device according to claim 7, wherein When the monitoring module (100) receives Bluetooth packet data via Bluetooth channel k, when 1<k<78, the preset channel range is N1 Bluetooth channels adjacent to the left side of the Bluetooth channel k and N2 Bluetooth channels adjacent to the right side of the Bluetooth channel.
9. The device according to claim 7, wherein When the determination module (200) determines whether there is broadband signal interference, if the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate broadband signal interference once; and if the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once. The monitoring table obtaining module (300) counts the number of times each Bluetooth channel is interfered with by a broadband signal and the number of times each Bluetooth channel is used within a monitoring period in the first channel status monitoring table, wherein one monitoring period is the duration for the first earphone to receive a preset number of Bluetooth packet data; The communication module (600) is further configured to receive a second channel statistics table sent by the second earphone to the first earphone, wherein the second channel statistics table counts available channels and unavailable channels of the second earphone; The frequency hopping table generation module (400) is further configured to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table, and then summarize the usable channels and unusable channels in the first channel statistics table and the second channel statistics table, and generate a Bluetooth frequency hopping table based on the summary result, wherein the usable channels and unusable channels of the first headset are counted in the first channel statistics table, and a Bluetooth channel whose number of times it is interfered with is greater than a preset interference threshold is an unusable channel.
10. The device according to claim 9, wherein The frequency hopping table generation module (400) is further used to set a first initial channel statistics table for the first headset, set the usage status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table, and then determine the usable channels and unusable channels according to the first channel status monitoring table, and then update the first initial channel statistics table according to the determination result to obtain the first channel statistics table, wherein the usage status of the usable channels corresponds to usable, and the usage status of the unusable channels corresponds to unusable; The device further comprises: a comparison module (500) for comparing the generated Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, and updating the current Bluetooth frequency hopping table to be consistent with the generated Bluetooth frequency hopping table when the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold; The communication module (600) is further used to send the updated current Bluetooth frequency hopping table to the second headset.
11. The device according to claim 10, wherein When the number of Bluetooth channels whose usage status has changed in the generated Bluetooth frequency hopping table reaches a preset update threshold, the communication module (600) is further used to send the updated current Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the updated current Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
12. The device according to claim 7, wherein When the determination module (200) determines whether there is broadband signal interference, if the Bluetooth channels in the preset channel range simultaneously generate at least one power change, it is determined that the Bluetooth channel k and the Bluetooth channels in the preset channel range generate broadband signal interference once; and if the Bluetooth channel k continuously receives Bluetooth packet data of a preset usage threshold, it is determined that the Bluetooth channel k is used once. The monitoring table obtaining module (300) counts the number of times each Bluetooth channel is interfered with by a broadband signal and the number of times each Bluetooth channel is used within a monitoring period in the first channel status monitoring table, wherein one monitoring period is the duration during which the first earphone receives a preset number of Bluetooth packet data; The frequency hopping table generation module (400) is further configured to generate a first channel statistics table based on the number of times each Bluetooth channel is used and the number of times it is interfered with in the first channel status monitoring table, wherein the first channel statistics table counts the usable channels and unusable channels of the first headset, wherein a Bluetooth channel that is interfered with more than a preset interference threshold is an unusable channel; The communication module (600) is further configured to receive a second channel statistics table sent by the second earphone to the first earphone, wherein the second channel statistics table counts available channels of the second earphone; The frequency hopping table generation module (400) is further configured to convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule; The communication module (600) is further configured to send the first channel statistics table to the second earphone, so that the second earphone converts the first channel statistics table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is converted based on the available channels in the first channel statistics table according to a preset rule, so that when the second earphone sends Bluetooth packet data to the first earphone, frequency hopping is performed according to the first Bluetooth frequency hopping table; The communication module (600) is further configured to perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second headset, and receive Bluetooth packet data that the second headset performs frequency hopping according to the first Bluetooth frequency hopping table and sends to the first headset.
13. A true wireless Bluetooth headset, characterized in that: The Bluetooth communication method according to any one of claims 1 to 6 is applied to the true wireless Bluetooth headset.
14. A pair of true wireless Bluetooth earphones, characterized in that: It comprises a pair of a first earphone and a second earphone, wherein the first earphone is the true wireless Bluetooth earphone as claimed in claim 13.
15. A three-terminal system for Bluetooth communication, characterized in that: include: Bluetooth audio source device, used to provide audio data; The first earphone is configured to convert the channel arbitration table into a Bluetooth frequency hopping table and compare the converted table with the current Bluetooth frequency hopping table; a second headset forming a true wireless Bluetooth headset pair with the first headset, the second headset sending its channel statistics table to the first headset and receiving a Bluetooth frequency hopping table sent by the first headset; The first headset is configured to implement the Bluetooth communication method according to any one of claims 1 to 6.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the Bluetooth communication method according to any one of claims 1 to 6 can be implemented.
17. A chip for active noise reduction, comprising a processor and a memory, characterized in that: The memory stores a computer program, and the processor is capable of executing the computer program to implement the Bluetooth communication method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Bluetooth frequency-hopping frequency point updating method and system
CN108270467A
Bluetooth connection method and mobile terminal
CN108449114A
Channel selection method, device and system for Bluetooth wireless earphone
CN112911450A
Interference processing method, interference processing apparatus, and control device
WO2022067493A1