Communication method, device, headset and system for true wireless Bluetooth headset
By detecting and counting the Bluetooth channels of true wireless Bluetooth headphones, forming a channel arbitration table and updating the Bluetooth frequency hopping table, the problem of headphones being easily disturbed in the 2.4GHz frequency band is solved, and communication anti-interference and efficiency are improved.
Patent Information
- Application Number
- CN202210852319.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-07-19
AI Technical Summary
When true wireless Bluetooth headsets communicate in the 2.4GHz frequency band, they are susceptible to interference from other devices in the wireless environment, resulting in reduced communication efficiency and impact on stability.
By counting the usage and interference times of each Bluetooth channel during the detection cycle, it is determined that channels can be used and cannot be used, a channel arbitration table is formed, and the Bluetooth frequency hopping table is updated to optimize channel usage.
It improves the anti-interference capability and reliability of communication between true wireless Bluetooth headphones, enhances communication efficiency, and ensures that the headphone pair can update channels in time when the wireless environment changes to maintain communication stability.
Smart Images

Figure CN115767488B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Bluetooth communication technology, and in particular to a communication method, device, headset, and system for a true wireless Bluetooth headset. Background Art
[0002] True wireless Bluetooth headsets (TWS headsets) have been very popular since their introduction. As TWS headsets 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 headsets is 2.4GHz, and 2.4GHz is a wireless frequency band publicly used in the world, when TWS headsets communicate with each other through Bluetooth, they are easily interfered 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 headsets in the time and frequency domain, resulting in the inability to correctly receive Bluetooth signals, thereby reducing the communication efficiency of TWS headsets and even affecting the stable operation of TWS headsets.
[0003] There are two main ways to solve the problem of TWS headset communication being easily interfered with in the prior art:
[0004] Method 1: Since some terminal devices (such as mobile phones) that are connected to the TWS headset have the function of filtering available channels from the wireless environment, the TWS headset can directly use the frequency hopping table of the terminal device (i.e., the master device in the micro-network) for Bluetooth communication. However, this method has the following problems: since the terminal device and the TWS headset are usually located in different positions in space, the wireless interference they are subject to is also different. Directly using the frequency hopping table of the terminal device is not reliable enough for the TWS headset to communicate with Bluetooth.
[0005] Method 2: By encoding the Bluetooth packet data sent and received between TWS Bluetooth headsets, the anti-interference ability of Bluetooth packet data is enhanced. However, this method has the following problems: when encoding Bluetooth packet data, the original packet of data will be divided into two packets after encoding. When the first packet of data is successfully corrected at the receiving end and the second packet of data is not successfully corrected, both packets of data need to be resent, which will reduce the communication efficiency between TWS Bluetooth headsets.
[0006] Therefore, how to improve the communication anti-interference ability of TWS Bluetooth headsets and 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 communication method, device, headset and system for a true wireless Bluetooth headset to improve the reliability of Bluetooth communication of the true wireless headset.
[0008] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0009] In a first aspect, the present embodiment discloses a communication method of a true wireless Bluetooth headset, which is used for a first headset, and the first headset is used to form a true wireless Bluetooth headset pair with a second headset, comprising: step S100, within a detection cycle, the number of times each Bluetooth channel of the first headset is used and the number of times it is interfered with is counted to obtain a first channel status detection table, wherein a detection cycle is the duration of the first headset receiving a preset number of Bluetooth packet data, and a Bluetooth channel being used once means that the first headset receives at least one Bluetooth packet data through the Bluetooth channel;
[0010] Step S200, determining the usable channels and unusable channels of the first headset according to the first channel status detection table to obtain a first channel statistics table, wherein a Bluetooth channel having an interference number greater than a preset interference threshold is an unusable channel, and the usable channels and unusable channels of the first headset are counted in the first channel statistics table;
[0011] Step S300, receiving a second channel statistics table sent by the second headset to the first headset, wherein the second channel statistics table counts available channels and unavailable channels of the second headset;
[0012] Step S400, when the number of intersections of available channels in the first channel statistics table and the second channel statistics table is greater than or equal to a preset threshold, the intersection of available channels in the first channel statistics table and the second channel statistics table is obtained to obtain a channel arbitration table;
[0013] Step S500, converting the channel arbitration table into a new Bluetooth frequency hopping table and comparing it with the current Bluetooth frequency hopping table; when the number of changes in the usable or unusable state of the Bluetooth channel in the new Bluetooth frequency hopping table compared to the current Bluetooth frequency hopping table reaches a preset update threshold, the current Bluetooth frequency hopping table is updated to make the current Bluetooth frequency hopping table consistent with the new Bluetooth frequency hopping table, and the new Bluetooth frequency hopping table is sent to the second headset, so that the first headset and the second headset can communicate according to the new Bluetooth frequency hopping table.
[0014] Preferably, step S200 includes:
[0015] Step S210, setting a first initial channel statistics table for the first headset, and setting the available status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth frequency hopping table;
[0016] Step S220, determining usable channels and unusable channels according to the first channel status detection table;
[0017] Step S230: updating the first initial channel statistics table according to the determination result to obtain a first channel statistics table.
[0018] Preferably, the determination method in step S220 includes:
[0019] When the Bluetooth channel k in the first initial channel statistics table is an unusable channel, if the Bluetooth channel k is enabled in the first channel status detection table and the number of interferences is less than a preset pending threshold, the Bluetooth channel k is marked as a pending channel of the first headset once;
[0020] When the Bluetooth channel k is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, the Bluetooth channel k is determined to be an available channel of the first headset, wherein steps S100 to S500 are completed as one execution cycle.
[0021] Preferably, before step S220, the method further includes:
[0022] Step S201, collecting statistics on packet error rates of each Bluetooth channel of the first headset within a preset detection period;
[0023] The determination method in step S220 also includes:
[0024] When the available state of Bluetooth channel k in the initial channel statistics table is available, if the packet error rate of the first headset on Bluetooth channel k is greater than a preset packet error threshold, Bluetooth channel k is determined to be an unavailable channel for the first headset.
[0025] Preferably, when the number of available channels of the first headset is less than a preset threshold in the determination result of step S220, step S230 further includes:
[0026] The Bluetooth channels whose number of interferences is less than a preset substitute threshold are set as available channels of the first headset in order of packet error rate from small to large, until the number of available channels of the first headset reaches the preset threshold.
[0027] Preferably, the first earphone is a master earphone, and the second earphone is a slave earphone, and step S400 further includes:
[0028] Other channels in the channel arbitration table except the available channels are unusable channels. When the master headset determines that the number of intersections is less than the preset threshold, the master headset sets the unusable channels in the channel arbitration table as available channels in order from high to low priority according to the priorities available to the slave headsets until the number of available channels in the channel arbitration table reaches the preset threshold.
[0029] Preferably, in step S500, when the number of Bluetooth channels whose available status has changed in the new Bluetooth frequency hopping table reaches an update threshold, the first earphone also sends the new 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 new Bluetooth frequency hopping table.
[0030] Preferably, the first headset and the second headset communicate via Bluetooth via a custom protocol;
[0031] The new Bluetooth frequency hopping table includes the available channels of the second headset and the available channels of the first headset, so that the first headset sends Bluetooth data packets to the second headset according to the available channels of the second headset, and the second headset sends Bluetooth data packets to the first headset according to the available channels of the first headset.
[0032] Preferably, before step S100, the method further includes:
[0033] Step S1000, during the period when Bluetooth channel A receives Bluetooth packet data, monitor the power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than a preset threshold, and / or the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than a preset threshold, it is determined that Bluetooth channel A and the Bluetooth channels in the preset channel range are both interfered by broadband signals.
[0034] In a second aspect, the present 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 the second headset, and the device for implementing Bluetooth communication includes:
[0035] A channel status detection module (100) is used to collect statistics on the number of times each Bluetooth channel of the first headset is used and the number of times it is interfered with within a detection cycle to obtain a first channel status detection table, wherein a detection cycle is the duration of time the first headset receives a preset number of Bluetooth packet data, and a Bluetooth channel is used once means that the first headset receives at least one Bluetooth packet data through the Bluetooth channel;
[0036] A channel statistics module (200) is used to determine the usable channels and unusable channels of the first headset according to the first channel status detection table to obtain a first channel statistics table, wherein a Bluetooth channel having a number of interferences greater than a preset interference threshold is an unusable channel;
[0037] A receiving module (300) is used 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;
[0038] An available channel arbitration module (400) is used to obtain a channel arbitration table by taking the intersection of the available channels in the first channel statistics table and the second channel statistics table when the number of intersections of the available channels in the first channel statistics table and the second channel statistics table is greater than or equal to a preset threshold;
[0039] The frequency hopping table obtaining module (500) is used to convert the channel arbitration table into a new Bluetooth frequency hopping table and compare it with the current Bluetooth frequency hopping table. When the number of changes in the usable or unusable state of the Bluetooth channels in the new Bluetooth frequency hopping table compared to the current Bluetooth frequency hopping table reaches a preset update threshold, the current Bluetooth frequency hopping table is updated to make the current Bluetooth frequency hopping table consistent with the new Bluetooth frequency hopping table, and the new Bluetooth frequency hopping table is sent to the second earphone so that the first earphone and the second earphone can communicate according to the new Bluetooth frequency hopping table.
[0040] Preferably, the channel statistics module (200) further includes:
[0041] An initialization submodule (210) is configured to set a first initial channel statistics table for the first headset, and to make the available status of each Bluetooth channel in the first initial channel statistics table consistent with the current Bluetooth frequency hopping table;
[0042] A usable determination submodule (220) is used to determine usable channels and unusable channels according to the first channel status detection table;
[0043] The channel statistics table updating submodule (230) is used to update the first initial channel statistics table according to the determination result to obtain a first channel statistics table.
[0044] Preferably, when the Bluetooth channel k in the first initial channel statistics table is an unusable channel, if the Bluetooth channel k is enabled in the first channel status detection table and the number of interferences is less than a preset pending threshold, the determination submodule (220) can be used to mark the Bluetooth channel k as a pending channel of the first headset;
[0045] When the Bluetooth channel k is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, the available determination submodule (220) can determine that the Bluetooth channel k is an available channel of the first headset.
[0046] Preferably, the channel statistics module (200) further comprises:
[0047] A packet error rate statistics submodule (201), used for collecting statistics on the packet error rate of each Bluetooth channel of the first headset within a preset detection period;
[0048] The usable determination submodule (220) is further used to determine that the Bluetooth channel k is an unusable channel for the first headset when the usable state of the Bluetooth channel k in the initial channel statistics table is usable and if the packet error rate of the first headset on the Bluetooth channel k is greater than a preset packet error threshold.
[0049] Preferably, when the number of available channels of the first earphone in the determination result of the usable determination submodule (220) is less than a preset threshold, the channel statistics table update submodule (230) is further used to set the Bluetooth channels whose number of interferences is less than a preset substitute threshold as available channels of the first earphone in order of the number of interferences from small to large according to the packet error rate, until the number of available channels of the first earphone reaches the preset threshold.
[0050] Preferably, the first earphone is a master earphone, the second earphone is a slave earphone, and the receiving module (300), the usable channel arbitration module (400) and the frequency hopping table obtaining module (500) are all arranged in the master earphone;
[0051] The channels other than the available channels in the channel arbitration table are unavailable channels. The available channel arbitration module (400) is further used for, when the master earphone determines that the number of intersections is less than a preset threshold, the master earphone sets the available channels in the channel arbitration table in order from high to low priority that can be used by the slave earphone, until the number of available channels in the channel arbitration table reaches the preset threshold.
[0052] Preferably, the frequency hopping table obtaining module (500) is also used for, when the number of Bluetooth channels whose available status has changed in the new Bluetooth frequency hopping table reaches an update threshold, the first earphone also sends the new Bluetooth frequency hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the new Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.
[0053] Preferably, the first headset and the second headset communicate via Bluetooth via a custom protocol;
[0054] The new Bluetooth frequency hopping table includes the available channels of the second headset and the available channels of the first headset, so that the first headset sends Bluetooth data packets to the second headset according to the available channels of the second headset, and the second headset sends Bluetooth data packets to the first headset according to the available channels of the first headset.
[0055] Preferably, the device further comprises:
[0056] A monitoring module (1000) is used to monitor power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A during the period when Bluetooth channel A receives Bluetooth packet data, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than a preset threshold, and / or the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than a preset threshold, it is determined that Bluetooth channel A and the Bluetooth channels in the preset channel range are both subject to broadband signal interference.
[0057] In a third aspect, this embodiment discloses a true wireless Bluetooth headset, in which the communication method disclosed in the first aspect is applied to the true wireless Bluetooth headset.
[0058] In a fourth aspect, the present embodiment discloses a pair of true wireless Bluetooth earphones, comprising a pair of a first earphone and a second earphone, wherein the first earphone is the true wireless Bluetooth earphone as disclosed in the first aspect.
[0059] In a fifth aspect, the present embodiment discloses a two-end communication system of a true wireless Bluetooth headset, the two-end communication system comprising a first headset and a second headset in a pair, the first headset being configured to implement the communication method disclosed in the first aspect;
[0060] The second earphone is used to send the second channel statistics table to the first earphone, and receive the new 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 new Bluetooth frequency hopping table.
[0061] In a sixth aspect, this embodiment discloses a three-terminal system for Bluetooth communication, including:
[0062] Bluetooth audio source device, used to provide audio data;
[0063] A first earphone, used to convert the channel arbitration table into a new Bluetooth frequency hopping table and compare it with the current Bluetooth frequency hopping table;
[0064] The second earphone forms a true wireless Bluetooth earphone pair with the first earphone, the second earphone sends the channel statistics table of the second earphone to the first earphone, and receives a new Bluetooth frequency hopping table sent by the first earphone;
[0065] The first headset is configured to implement the communication method disclosed in the first aspect.
[0066] In a seventh aspect, the present embodiment discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the communication method disclosed in the first aspect can be implemented.
[0067] In an eighth 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 communication method disclosed in the first aspect.
[0068]
Beneficial Effects
[0069] The embodiment of the present invention discloses a communication method of a true wireless Bluetooth headset, wherein a first headset obtains a first channel statistical table after counting the number of times each Bluetooth channel is interfered within a detection cycle, and then sends the first channel statistical table to a second headset, so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping 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; and the first headset also receives a second channel statistical table sent by the second headset to the first headset, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first headset can perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset. Compared with the method of directly using the Bluetooth frequency hopping table of a terminal device for internal communication of a headset pair, the communication method disclosed in this embodiment can effectively ensure that during the internal communication of the headset pair, both the first headset and the second headset can receive data on their own available channels, and the available channels are Bluetooth channels in which the headset receives data with less interference or no interference in the current wireless environment. Therefore, the communication disclosed in this embodiment improves the anti-interference ability of the communication between the first headset and the second headset. And 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.
[0070] In addition, in the 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 are combined to respectively detect a Bluetooth channel with higher reliability for receiving data, and the two earphones respectively obtain a Bluetooth frequency hopping table used when sending data to each other according to the available channel conversion of the other party, thereby ensuring that the first earphone and the second earphone can both receive data on a channel where they can receive data relatively reliably, thereby improving the anti-interference and reliability of communication between the first earphone and the second earphone, and further improving the communication efficiency between the first earphone and the second earphone.
[0071] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The embodiments of the present invention will be described below with reference to the accompanying drawings.
[0073] Figure 1 This is a flow chart of a communication method of a true wireless Bluetooth headset disclosed in this embodiment;
[0074] Figure 2 A schematic diagram of the structure of a device for implementing Bluetooth communication disclosed in this embodiment;
[0075] Figure 3 This is a schematic diagram of a pair of modules of a true wireless Bluetooth headset disclosed in this embodiment;
[0076] Figure 4 This is a schematic diagram of the two-terminal communication system module disclosed in this embodiment;
[0077] Figure 5 This is a schematic diagram of a three-terminal system module disclosed in this embodiment. DETAILED DESCRIPTION
[0078] The present invention is described below based on 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 confusing the essence of the present invention, known methods, processes, procedures, and components are not described in detail.
[0079] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0080] Unless the context clearly requires otherwise, throughout the specification and claims, the words "include", "comprising" and similar words should be interpreted in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".
[0081] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0082] For the Bluetooth communication of true wireless Bluetooth headsets, since its operating frequency band of 2.4GHz is also a wireless frequency band publicly used 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.
[0083] Please refer to Figure 1, is a flow chart of a communication method of a true wireless Bluetooth headset disclosed in this embodiment. The communication method is used for a first headset, and the first headset is used to form a true wireless Bluetooth headset pair with a second headset. The first headset is a true wireless Bluetooth headset, and the second headset can be a true wireless Bluetooth headset or other headsets, as long as the first headset and the second headset can communicate wirelessly via Bluetooth.
[0084] The communication method includes steps S1000, S100, S200, S300, S400 and S500, wherein:
[0085] Step S1000, during the period when Bluetooth channel A receives Bluetooth packet data, monitor the power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than a preset threshold, and / or the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than a preset threshold, it is determined that Bluetooth channel A and the Bluetooth channels in the preset channel range are both interfered by broadband signals.
[0086] It should be noted that Bluetooth channel A receives Bluetooth packet data sent by an external device or the second headset, which means that the first headset performs a data receiving operation through Bluetooth channel A, but may not necessarily receive the data, that is, the Bluetooth packet data may be successfully received or may not be successfully received. Bluetooth channel A can be any one or more Bluetooth channels.
[0087] Step S100, within a detection cycle, the number of times each Bluetooth channel of the first headset is interfered with and the number of times each Bluetooth channel of the first headset is used are counted, and the usable channels and unusable channels of the first headset are determined according to the statistical results to obtain a first channel statistical table, in which the usable channels and unusable channels of the first headset are counted. In this embodiment, a detection cycle is the duration of the first headset receiving a number of Bluetooth packet data, so the durations of different detection cycles may be different.
[0088] In this embodiment, a Bluetooth channel is used once, which means that the first earphone receives at least one Bluetooth packet data through the Bluetooth channel. In this embodiment, the usable channel of the first earphone is a Bluetooth channel on which the first earphone can reliably receive Bluetooth packet data. For example, the reliability of receiving data can be determined by parameters such as the number of interferences detected on the Bluetooth channel, the packet loss rate, and the packet error rate. The unusable channel of the first earphone is a Bluetooth channel on which the first earphone cannot receive Bluetooth packet data or the packet error rate and packet loss rate are too high when receiving Bluetooth packet data. The usable channels and unusable channels of the second earphone are the same as those of the first earphone, so they are not described in detail.
[0089] In this embodiment, a Bluetooth channel whose number of interferences is greater than a preset interference threshold is an unusable channel, wherein the specific value of the interference threshold can be obtained by a person skilled in the art based on experience. In a specific embodiment, the interference threshold is greater than 1, thereby reducing the situation in which the number of usable channels in an interference environment is too small to affect the normal communication of the headset.
[0090] Step S200, 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. In this embodiment, 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 headset sends Bluetooth packet data to the first headset, frequency hopping is performed according to the first Bluetooth frequency hopping table. In a specific embodiment, the first Bluetooth frequency hopping table can be directly converted according to the first channel statistics table, or it can be obtained by updating the first Bluetooth frequency hopping table previously used according to the first channel statistics table.
[0091] Step S300, receiving a second channel statistics table sent by the second headset to the first headset. In this embodiment, the second channel statistics table counts the usable channels and unusable channels of the second headset, and the second channel statistics table can be obtained by a method consistent with the first channel statistics table, or by other methods, as long as the usable channels and unusable channels of the second headset in the current environment can be accurately counted.
[0092] Step S400, converting to a second Bluetooth frequency hopping table based on the available channels in the second channel statistics table according to a preset rule. In this embodiment, since the Bluetooth channel has two usage states, available and unavailable, the available channels and the unavailable channels can also be obtained from one of the available channels and the unavailable channels. Therefore, when converting to obtain the second Bluetooth frequency hopping table, it can be directly based on the available channels in the second channel statistics table, or indirectly based on the available channels in the second channel statistics table.
[0093] Step S500: frequency hopping is performed according to a second Bluetooth frequency hopping table, and Bluetooth packet data is sent to a second Bluetooth headset.
[0094] The embodiment of the present invention discloses a communication method of a true wireless Bluetooth headset, wherein a first headset obtains a first channel statistical table after counting the number of times each Bluetooth channel is interfered within a detection cycle, and then sends the first channel statistical table to a second headset, so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping 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; and the first headset also receives a second channel statistical table sent by the second headset to the first headset, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first headset can perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset. Compared with the method of directly using the Bluetooth frequency hopping table of a terminal device for internal communication of a headset pair, the communication method disclosed in this embodiment can effectively ensure that during the internal communication of the headset pair, both the first headset and the second headset can receive data on their own available channels, and the available channels are Bluetooth channels in which the headset receives data with less interference or no interference in the current wireless environment. Therefore, the communication disclosed in this embodiment improves the anti-interference ability of the communication between the first headset and the second headset. And 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.
[0095] In addition, in the 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 are combined to respectively detect a Bluetooth channel with higher reliability for receiving data, and the two earphones respectively obtain a Bluetooth frequency hopping table used when sending data to each other according to the available channel conversion of the other party, thereby ensuring that the first earphone and the second earphone can both receive data on a channel where they can receive data relatively reliably, thereby improving the anti-interference and reliability of communication between the first earphone and the second earphone, and further improving the communication efficiency between the first earphone and the second earphone.
[0096] In addition, in the communication method disclosed in the 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 headset.
[0097] In a specific embodiment, in step S100, determining the usable channels and unusable channels of the first headset to obtain a first channel statistics table includes:
[0098] Step S110, setting the usage status of each Bluetooth channel in the first initial channel statistics table of the first headset to be consistent with the current first Bluetooth frequency hopping table. In a specific embodiment, the first initial channel statistics table can be a newly generated table for the first headset, or it can be the first initial channel statistics table in the previous execution cycle.
[0099] Step S120: determining usable channels and unusable channels according to the statistical results.
[0100] Step S130: updating the first initial channel statistics table according to the determination result to obtain a first channel statistics table.
[0101] In a specific embodiment, due to the change of the wireless environment, when the interference on the channel previously determined to be unusable disappears, the unusable channel should be re-determined as an available channel. Therefore, the determination method in step S120 includes:
[0102] When at least one Bluetooth channel is an unusable channel in the first initial channel statistics table, and at least one Bluetooth channel is enabled and the number of interferences is less than a preset pending threshold, at least one Bluetooth channel is marked as a pending channel of the first headset;
[0103] When a Bluetooth channel is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, the Bluetooth channel is determined to be an available channel of the first headset.
[0104] For example, when steps S100-S500 are completed to form an execution cycle, in the i-th execution cycle, Bluetooth channel A and Bluetooth channel B are both recorded as unusable channels in the first initial channel statistics table, and the statistical results show that Bluetooth channel A and Bluetooth channel B are enabled, that is, the first headset has received at least one Bluetooth packet data through Bluetooth channel A and Bluetooth channel B respectively, and the number of interference detected on Bluetooth channel A and Bluetooth channel B is less than the preset pending threshold, then Bluetooth channel A and Bluetooth channel B are marked as pending channels of the first headset respectively.
[0105] In the i+1th execution cycle, if Bluetooth channel A is enabled again and the number of interference detected is less than the preset pending threshold, Bluetooth channel A is marked as the pending channel of the first headset for the second time. When Bluetooth channel A is marked as the pending channel of the first headset M times in a row (M is greater than the available threshold), it is considered that there is no interference on Bluetooth channel A, and the first headset can reliably receive data through Bluetooth channel A, and Bluetooth channel A is determined to be the available channel of the first headset. The pending threshold and the available threshold can be obtained by those skilled in the art based on experience, for example, the pending threshold can be 0, 1, 2, etc.
[0106] Usually, during internal communication of the earphone pair, channels that are determined to be unusable will not be used. However, since the first earphone can also perform Bluetooth communication with Bluetooth audio source devices such as mobile phones, computers, and players, and the Bluetooth audio source devices may send data to the first earphone through the unusable channels in the first channel statistics table, if the first earphone can successfully receive the data sent by the Bluetooth audio source device continuously in multiple execution cycles, it can be determined that the interference on the Bluetooth channel has disappeared. That is, when Bluetooth channel k is marked as a pending channel for the first earphone M times in M execution cycles, and M is greater than the preset available threshold, it can be determined that the interference on the Bluetooth channel has disappeared, then Bluetooth channel k should be determined as an available channel for the first earphone, thereby ensuring the anti-interference performance of the communication of the first earphone, and the number of available channels can be increased to further improve the communication efficiency of the first earphone. In a specific embodiment, before step S120, it also includes:
[0107] Step S101, collecting statistics on packet error rates of each Bluetooth channel of the first headset within a preset detection period;
[0108] The determination method in step S120 also includes:
[0109] When the usage status of the Bluetooth channel k in the initial channel statistics table is usable, and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold, it is determined that the Bluetooth channel k is an unusable channel for the first headset.
[0110] In addition to using the number of times interference is detected as the basis for determining whether a Bluetooth channel is available, the packet error rate of the Bluetooth channel is also counted, so that a Bluetooth channel with an error rate greater than an error threshold is determined to be an unusable channel, thereby ensuring that the packet error rate of the usable channel is not too high, thereby further improving the reliability of Bluetooth communication between the first earphones.
[0111] In a specific embodiment, when the number of available channels of the first headset is less than a preset threshold in the determination result of step S120, step S130 further includes:
[0112] The Bluetooth channels whose number of interferences is less than a preset threshold are sequentially set as available channels of the first headset in order of packet error rate from small to large, until the number of available channels of the first headset reaches the preset threshold.
[0113] If the number of available channels is too small, the communication efficiency between the first earphone and the second earphone will be reduced or even normal communication will be impossible. Therefore, when the number of available channels is less than the preset threshold, the undisturbed Bluetooth channels will be set as available channels in the order of packet error rate from small to large until the number of available channels reaches the preset threshold. In this way, on the premise that the number of available channels can meet normal communication requirements, the packet error rate of the available channels is guaranteed to be as small as possible, without interference and with as high reliability as possible.
[0114] In a specific embodiment, step S400 further includes:
[0115] Step S410, comparing the second Bluetooth frequency hopping table with the current second Bluetooth frequency hopping table, when the number of Bluetooth channels with changed usage status in the second Bluetooth frequency hopping table reaches a preset update threshold, updating the current second Bluetooth frequency hopping table to make the current second Bluetooth frequency hopping table consistent with the second Bluetooth frequency hopping table.
[0116] When the earphone pair is in an environment with wireless interference, the number of Bluetooth channels that the second earphone can reliably receive data is limited. When the number of Bluetooth channels with changed use status in the new Bluetooth frequency hopping table does not reach the preset update threshold, that is, the current Bluetooth communication environment has not changed significantly or even not changed, if the first earphone still sends the new Bluetooth frequency hopping table to the second earphone, it will unnecessarily occupy the available channels of the second earphone. Especially in an environment with strong interference, frequently sending a new Bluetooth frequency hopping table may even further reduce the communication efficiency between the two earphones. In addition, frequently sending, receiving or updating the Bluetooth frequency hopping table may also cause energy loss. Therefore, the update threshold is set so that when the wireless environment changes slightly or does not change, the first earphone does not need to send a new Bluetooth frequency hopping table, thereby reducing the unnecessary communication burden between the earphones, thereby ensuring the communication efficiency between the first earphone and the second earphone, and also saving the energy loss of the earphones. When the wireless environment changes significantly, the first earphone and the second earphone can also send, receive and update to the new Bluetooth frequency hopping table in time, thereby ensuring that in the communication process between the two earphones, Bluetooth packet data can always be received through the optimal channel, thereby improving the communication efficiency and communication reliability between the first earphone and the second earphone.
[0117] In a specific embodiment, the current first Bluetooth frequency hopping table in step S110 of the i+1th execution cycle is also the first Bluetooth frequency hopping table of the i-th execution cycle. Therefore, in the i-th execution cycle, after step S200, the following is further included:
[0118] Step S210: receiving a first Bluetooth frequency hopping table, so as to use the first Bluetooth frequency hopping table in the i-th execution cycle as the current first Bluetooth frequency hopping table in the (i+1)-th execution cycle.
[0119] In a specific embodiment, when the second earphone obtains the second channel statistics table in the same method as the first earphone, after step S400, the method further includes:
[0120] Step S600: sending the second Bluetooth frequency hopping table to the second headset, so that the second headset uses the second Bluetooth frequency hopping table in the i-th execution cycle as the current second Bluetooth frequency hopping table in the i+1-th execution cycle.
[0121] In the communication method of the true wireless Bluetooth headset disclosed in the embodiment of the present invention, the first headset obtains a first channel statistical table after counting the number of times each Bluetooth channel is interfered within a detection cycle, and then sends the first channel statistical table to the second headset, so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping 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; and the first headset also receives the second channel statistical table sent by the second headset to the first headset, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first headset can perform frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset. Compared with the method of directly using the Bluetooth frequency hopping table of the terminal device for internal communication of the headset pair, the communication method disclosed in this embodiment can effectively ensure that during the internal communication of the headset pair, the first headset and the second headset can both receive data on their own available channels, and the available channels are Bluetooth channels where the headset receives data with less interference or no interference in the current wireless environment. Therefore, the communication disclosed in this embodiment improves the anti-interference ability of the communication between the first headset and the second headset. And 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.
[0122] In addition, in the 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 are combined to respectively detect a Bluetooth channel with higher reliability for receiving data, and the two earphones respectively obtain a Bluetooth frequency hopping table used when sending data to each other according to the available channel conversion of the other party, thereby ensuring that the first earphone and the second earphone can both receive data on a channel where they can receive data relatively reliably, thereby improving the anti-interference and reliability of communication between the first earphone and the second earphone, and further improving the communication efficiency between the first earphone and the second earphone.
[0123] This embodiment also 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 and the second headset constitute a true wireless Bluetooth headset pair.
[0124] Please refer to Figure 2, 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 1000, a channel statistics module 100, a sending module 200, a receiving module 300, and a conversion module 400, wherein:
[0125] The monitoring module 1000 is used to monitor the power changes of the Bluetooth channels in the preset channel range adjacent to the Bluetooth channel A during the period when the Bluetooth channel A receives the Bluetooth packet data, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than the preset threshold, and / or the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than the preset threshold, it is determined that the Bluetooth channel A and the Bluetooth channels in the preset channel range are both interfered by broadband signals;
[0126] The channel statistics module 100 is used to count the number of times each Bluetooth channel of the first headset is interfered within a detection cycle, and determine the usable channels and unusable channels of the first headset according to the statistical results to obtain a first channel statistics table, wherein the Bluetooth channel with the number of interferences greater than a preset interference threshold is an unusable channel, and the usable channels and unusable channels of the first headset are counted in the first channel statistics table;
[0127] The sending module 200 is used 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 according to a preset rule based on the available channels in the first channel statistics 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;
[0128] The receiving module 300 is used 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;
[0129] A conversion module 400, configured to convert the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule;
[0130] The sending module 200 is further configured to perform frequency hopping according to a second Bluetooth frequency hopping table and send Bluetooth packet data to the second Bluetooth headset.
[0131] In a specific embodiment, the channel statistics module 100 is further used to set the usage status of each Bluetooth channel in the first initial channel statistics table of the first headset to be consistent with the current first Bluetooth frequency hopping table;
[0132] and determining usable channels and unusable channels according to the statistical result of the first headset;
[0133] And the first initial channel statistics table is updated according to the determination result to obtain the first channel statistics table.
[0134] In a specific embodiment, the channel statistics module 100 is further used to count the number of times each Bluetooth channel of the first headset is used, and a Bluetooth channel is used once when the first headset receives at least one Bluetooth packet data through the Bluetooth channel;
[0135] The channel statistics module 100 determines the usable channels and the unusable channels in the following manner:
[0136] When at least one Bluetooth channel is an unusable channel in the first initial channel statistics table, and at least one Bluetooth channel is enabled and the number of interferences is less than a preset pending threshold, at least one Bluetooth channel is marked as a pending channel of the first headset;
[0137] When the Bluetooth channel k is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, it is determined that the Bluetooth channel k is an available channel of the first headset.
[0138] In a specific embodiment, the channel statistics module 100 is further used to collect statistics on the packet error rate of each Bluetooth channel of the first headset within a preset detection period;
[0139] The channel statistics module 100 also uses the following method to determine the usable channels and unusable channels:
[0140] When the usage status of the Bluetooth channel k in the initial channel statistics table is usable, and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold, it is determined that the Bluetooth channel k is an unusable channel for the first headset.
[0141] In a specific embodiment, when the number of available channels of the first headset is less than a preset threshold in the determination result of the channel statistics module 100, the channel statistics module 100 is further used to set the Bluetooth channels whose number of interferences is less than the preset threshold as available channels of the first headset in order of packet error rate from small to large until the number of available channels of the first headset reaches the preset threshold.
[0142] In a specific embodiment, the conversion module 400 is also used to compare the second Bluetooth frequency hopping table with the current second Bluetooth frequency hopping table. When the number of Bluetooth channels with changed usage status in the second Bluetooth frequency hopping table reaches a preset update threshold, the current second Bluetooth frequency hopping table is updated to make the current second Bluetooth frequency hopping table consistent with the second Bluetooth frequency hopping table.
[0143] In a specific embodiment, the receiving module 300 is further used to receive the first Bluetooth frequency hopping table, so that the channel statistics module 100 uses the first Bluetooth frequency hopping table in the i-th execution cycle as the current first Bluetooth frequency hopping table in the i+1-th execution cycle;
[0144] In a specific embodiment, the sending module 200 is further used to send the second Bluetooth frequency hopping table to the second headset, so that the second headset uses the second Bluetooth frequency hopping table in the i-th execution cycle as the current second Bluetooth frequency hopping table in the i+1-th execution cycle.
[0145] This embodiment also discloses a true wireless Bluetooth headset, and the communication method disclosed in the above embodiment is applied to the true wireless Bluetooth headset.
[0146] Please refer to Figure 3 , is a schematic diagram of a true wireless Bluetooth headset pair module 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.
[0147] 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.
[0148] This embodiment also discloses a two-end communication system of a true wireless Bluetooth headset, please refer to Figure 4 , is a schematic diagram of a two-terminal communication system module disclosed in this embodiment, the two-terminal communication system includes a pair of a first earphone 20 and a second earphone 21, the first earphone 20 is configured to implement the communication method disclosed in the above embodiment;
[0149] The second headset 21 is used to send the second channel statistics table to the first headset 20, and receive the new Bluetooth frequency hopping table sent by the first headset 20 to the second headset 21, so that the first headset 20 and the second headset 21 communicate according to the new Bluetooth frequency hopping table.
[0150] 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, and the three-terminal system includes:
[0151] A Bluetooth audio source device 30, used to provide audio data;
[0152] The first earphone 31 is used to convert the channel arbitration table into a new Bluetooth frequency hopping table and compare it with the current Bluetooth frequency hopping table;
[0153] The second earphone 32 and the first earphone 31 form a true wireless Bluetooth earphone pair. The second earphone 32 sends the channel statistics table of the second earphone 32 to the first earphone 31, and receives a new Bluetooth frequency hopping table sent by the first earphone 31;
[0154] The first headset 31 is configured to implement the communication method disclosed in the above embodiment.
[0155] This embodiment further discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the communication method disclosed in the above embodiment can be implemented.
[0156] This embodiment also 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 communication method disclosed in the above embodiment.
[0157] It should be noted that the computer-readable storage medium described in the embodiments of the present disclosure is not limited to the above-mentioned embodiments, and may 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 may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0158] It will be appreciated by those skilled in the art that, under the premise of no conflict, the above-mentioned preferred solutions can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the accompanying drawings illustrate the possible 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, a program segment, or a part of a code, and the module, program segment, or a part of a code 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 a 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 explanation 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.
[0159] 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 only for the purpose of convenience and brevity of description, and is by no means intended to limit the order of these method steps by letters or numbers. Those skilled in the art will understand that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers. Those skilled in the art can determine various permissible and reasonable step orders based on the technology itself.
[0160] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.
[0161] It should be understood that the above-mentioned embodiments are merely illustrative and not 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 all be included in the scope of the claims of the present invention.
Claims
1. A communication method for a true wireless Bluetooth headset, used for a first headset, wherein the first headset and a second headset form a true wireless Bluetooth headset pair, wherein: The first headset and the second headset communicate with each other using a private protocol, which is characterized by comprising: Step S100, counting the number of times each Bluetooth channel of the first headset is interfered with within a detection cycle, and determining the usable channels and unusable channels of the first headset according to the statistical results to obtain a first channel statistical table, wherein a Bluetooth channel having a number of interferences greater than a preset interference threshold is an unusable channel, and the usable channels and unusable channels of the first headset are counted in the first channel statistical table; Step S200, 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 based on the available channels in the first channel statistics table according to a preset rule, 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 S300, receiving 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; Step S400, converting the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule; Step S500, performing frequency hopping according to the second Bluetooth frequency hopping table, and sending Bluetooth packet data to the second Bluetooth headset; Wherein, in the step S100, determining the usable channels and unusable channels of the first headset to obtain a first channel statistics table includes: Step S110, setting the usage status of each Bluetooth channel in the first initial channel statistics table of the first headset to be consistent with the current first Bluetooth frequency hopping table; Step S120, determining usable channels and unusable channels according to the statistical results; Step S130, updating the first initial channel statistics table according to the determination result to obtain the first channel statistics table; The determination method in step S120 includes: When at least one Bluetooth channel is an unusable channel in the first initial channel statistics table, and the at least one Bluetooth channel is enabled and the number of interferences is less than a preset pending threshold, the at least one Bluetooth channel is marked as a pending channel of the first headset once; When a certain Bluetooth channel is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, it is determined that the certain Bluetooth channel is an available channel of the first headset.
2. The communication method according to claim 1, characterized in that: Before step S120, the method further includes: Step S101, collecting statistics on packet error rates of each Bluetooth channel of the first headset within a preset detection period; The determination method in step S120 also includes: When the usage status of the Bluetooth channel k in the initial channel statistics table is usable, and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold, it is determined that the Bluetooth channel k is an unusable channel for the first headset.
3. The communication method according to claim 2, characterized in that: When the number of available channels of the first headset is less than a preset threshold in the determination result of step S120, step S130 further includes: The Bluetooth channels whose number of interferences is less than the preset threshold are sequentially set as available channels of the first headset in order of packet error rate from small to large, until the number of available channels of the first headset reaches the preset threshold.
4. The communication method according to claim 2, characterized in that: The step S400 further includes: Step S410, comparing the second Bluetooth frequency hopping table with the current second Bluetooth frequency hopping table, when the number of Bluetooth channels with changed usage status in the second Bluetooth frequency hopping table reaches a preset update threshold, updating the current second Bluetooth frequency hopping table to make the current second Bluetooth frequency hopping table consistent with the second Bluetooth frequency hopping table.
5. The communication method according to any one of claims 1 to 4, characterized in that: In the i-th execution cycle, after step S200, the following steps are further included: Step S210, receiving the first Bluetooth frequency hopping table, so as to use the first Bluetooth frequency hopping table in the i-th execution cycle as the current first Bluetooth frequency hopping table in the i+1-th execution cycle; After step S400, the method further includes: Step S600: Send the second Bluetooth frequency hopping table to the second headset, so that the second headset uses the second Bluetooth frequency hopping table in the i-th execution cycle as the current second Bluetooth frequency hopping table in the i+1-th execution cycle.
6. The communication method according to any one of claims 1 to 4, characterized in that: Before step S100, the method further includes: Step S1000, during the period when Bluetooth channel A receives Bluetooth packet data, monitor the power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than a preset threshold, and / or the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than a preset threshold, it is determined that both Bluetooth channel A and the Bluetooth channels in the preset channel range are interfered by broadband signals.
7. A device for implementing Bluetooth communication through a true wireless headset, wherein the true wireless headset is a first headset, and the first headset and the second headset constitute a true wireless Bluetooth headset pair, characterized in that: The device for implementing Bluetooth communication includes: A channel statistics module (100) is used to count the number of times each Bluetooth channel of the first headset is interfered with within a detection cycle, and determine the usable channels and unusable channels of the first headset according to the statistical results to obtain a first channel statistics table, wherein a Bluetooth channel that is interfered with more than a preset interference threshold is an unusable channel, and the usable channels and unusable channels of the first headset are counted in the first channel statistics table; A sending module (200) is used 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 according to a preset rule based on the available channels in the first channel statistics 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; A receiving module (300) is used 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; A conversion module (400), used for converting the available channels in the second channel statistics table into a second Bluetooth frequency hopping table according to a preset rule; The sending module (200) 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; The channel statistics module (100) is also used to set the usage status of each Bluetooth channel in the first initial channel statistics table of the first headset to be consistent with the current first Bluetooth frequency hopping table; and determining usable channels and unusable channels according to the statistical result of the first headset; and updating the first initial channel statistics table according to the determination result to obtain the first channel statistics table; The channel statistics module (100) is also used to count the number of times each Bluetooth channel of the first headset is used, where a Bluetooth channel is used once, which means that the first headset receives at least one Bluetooth packet data through the Bluetooth channel; The channel statistics module (100) determines the usable channels and unusable channels in the following manner: When at least one Bluetooth channel is an unusable channel in the first initial channel statistics table, and the at least one Bluetooth channel is enabled and the number of interferences is less than a preset pending threshold, the at least one Bluetooth channel is marked as a pending channel of the first headset once; When the Bluetooth channel k is marked as a pending channel of the first headset M times in M execution cycles, and M is greater than a preset available threshold, it is determined that the Bluetooth channel k is an available channel of the first headset.
8. The device according to claim 7, characterized in that The channel statistics module (100) is also used to collect statistics on the packet error rate of each Bluetooth channel of the first headset within a preset detection period; The channel statistics module (100) also uses the following method to determine the usable channels and unusable channels: When the usage status of the Bluetooth channel k in the initial channel statistics table is usable, and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold, it is determined that the Bluetooth channel k is an unusable channel for the first headset.
9. The device according to claim 8, characterized in that When the number of available channels of the first headset is less than a preset threshold value in the determination result of the channel statistics module (100), the channel statistics module (100) is further used to set the Bluetooth channels whose number of interferences is less than the preset threshold value as available channels of the first headset in order of packet error rate from small to large until the number of available channels of the first headset reaches the preset threshold value.
10. The device according to claim 8, characterized in that The conversion module (400) is further used to compare the second Bluetooth frequency hopping table with the current second Bluetooth frequency hopping table, and when the number of Bluetooth channels with changed usage status in the second Bluetooth frequency hopping table reaches a preset update threshold, the current second Bluetooth frequency hopping table is updated to make the current second Bluetooth frequency hopping table consistent with the second Bluetooth frequency hopping table.
11. The device according to claim 7, characterized in that The receiving module (300) is further used to receive the first Bluetooth frequency hopping table, so that the channel statistics module (100) uses the first Bluetooth frequency hopping table in the i-th execution cycle as the current first Bluetooth frequency hopping table in the i+1-th execution cycle; The sending module (200) is further used to send the second Bluetooth frequency hopping table to the second headset, so that the second headset uses the second Bluetooth frequency hopping table in the i-th execution cycle as the current second Bluetooth frequency hopping table in the i+1-th execution cycle.
12. The device according to claim 7, characterized in that The device also includes: A monitoring module (1000) is used to monitor power changes of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A during the period when Bluetooth channel A receives Bluetooth packet data, wherein when the Bluetooth channels in the preset channel range simultaneously generate power increases and the power difference after the increase is less than a preset threshold, and / or when the Bluetooth channels in the preset channel range simultaneously generate power decreases and the power difference before the decrease is less than a preset threshold, it is determined that both Bluetooth channel A and the Bluetooth channels in the preset channel range have broadband signal interference.
13. A true wireless Bluetooth headset, characterized in that: The communication method as described in 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 computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, it is possible to implement the communication method according to any one of claims 1 to 6.
16. A chip for active noise reduction, comprising a processor and a memory, characterized in that: The memory stores a computer program, and the processor can execute the computer program to implement the communication method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Bluetooth connection method and mobile terminal
CN108449114A
Channel selection method, device and system for Bluetooth wireless earphone
CN112911450A