True wireless Bluetooth headset and its communication method, device and system

By detecting and counting the Bluetooth channels of true wireless Bluetooth headphones, generating a channel arbitration table and updating the Bluetooth frequency hopping table, the problem of easy interference in headphone communication is solved, and the anti-interference ability and reliability of communication is improved.

CN115767490BActive Publication Date: 2025-06-10ZHUHAI JIELI TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210852345.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2025-06-10
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

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.

Method used

By counting the number of usage and number of interferences of each Bluetooth channel during the detection cycle, a channel status detection table and a channel statistics table are generated. Then, by intersecting with the channel statistics table of the second headset, a channel arbitration table is generated and converted into a new Bluetooth frequency hopping table. When the channel state changes to the preset threshold, a new Bluetooth frequency hopping table is updated and sent.

Benefits of technology

It improves the anti-interference capability and reliability of communication between true wireless Bluetooth headphones, reduces non-essential communication burden, saves headphone energy loss, and improves communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767490B_ABST
    Figure CN115767490B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method for a true wireless Bluetooth headset for a first headset. The first headset and the second headset form a true wireless Bluetooth headset pair. In this communication method, the number of times each Bluetooth channel of the first headset is used and the number of times it is interfered with are first counted within a detection period to obtain a first channel condition detection table. Then, the available channels and unavailable channels of the first headset are determined according to the first channel condition detection table to obtain a first channel statistics table. Next, a second channel statistics table sent by the second headset to the first headset is received, and the first channel statistics table and the second channel statistics table are aggregated to obtain a channel arbitration table. Then, the channel arbitration table is converted into a new Bluetooth hopping table and compared with the current Bluetooth hopping table. When the number of Bluetooth channels with a change in the available state in the new Bluetooth hopping table reaches a preset update threshold, the current Bluetooth hopping table is updated. The communication method disclosed in this embodiment effectively ensures the anti-interference performance and reliability of communication between true wireless Bluetooth headsets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth communication, and particularly relates to a true wireless Bluetooth headset and its communication method, device and system. Background Art

[0002] Since the advent of true wireless Bluetooth headsets (TWS headsets), they have been very popular. 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.4 GHz, and 2.4 GHz is a wireless frequency band that is publicly and commonly used worldwide, when Bluetooth communication is carried out between TWS headsets, it is extremely vulnerable to interference from signals of other devices in the wireless environment, especially broadband signals with strong energy, such as WIFI signals. Strong energy broadband signals with a working frequency band of 2.4 GHz are more likely to overlap with the Bluetooth signals sent or received by TWS headsets in the time-frequency domain, resulting in the Bluetooth signals not being correctly received, thereby reducing the communication efficiency of TWS headsets and even affecting the stable operation of TWS headsets.

[0003] In the prior art, there are mainly the following two ways to solve the problem that the communication of TWS headsets is easily interfered:

[0004] Way 1: Since some terminal devices (such as mobile phones) that are communicatively connected to TWS headsets have the function of screening available channels from the wireless environment, TWS headsets can directly use the frequency hopping table of the terminal device (i.e., the master device in the piconet) for Bluetooth communication. However, this way has the following problems. First, since the terminal device and TWS headsets are usually in different positions in space, the wireless interferences they receive are also different. Directly using the frequency hopping table of the terminal device is not reliable enough for TWS headsets to carry out Bluetooth communication, and this point has not been realized at all in the prior art. Second, in a wireless environment with interference, frequently sending and receiving the frequency hopping table will lead to a reduction in communication efficiency.

[0005] Way 2: By encoding the Bluetooth packet data sent and received between TWS Bluetooth headsets, the anti-interference ability of the Bluetooth packet data is enhanced. However, this way has the following problems. When encoding the Bluetooth packet data, the original packet of data will be divided into two packets after encoding. When the first packet of data is successfully error-corrected at the receiving end while the second packet of data is not successfully error-corrected, both packets of data need to be resent, which will lead to a reduction in the communication efficiency between TWS Bluetooth headsets.

[0006] Therefore, how to improve the anti-interference ability of TWS Bluetooth headsets, improve the communication reliability and communication 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 object of the present invention is to provide a true wireless Bluetooth headset and its communication method, device and system to improve the reliability 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 communication method for a true wireless Bluetooth headset 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, within a detection period, count the number of times each Bluetooth channel of the first headset is used and the number of times it is interfered with to obtain a first channel status detection table, where a detection period is the duration when the first headset receives a preset number of Bluetooth packet data, and a Bluetooth channel is considered to be used once when the first headset receives at least one Bluetooth packet data through this Bluetooth channel;

[0011] Step S200, determine the available channels and unavailable channels of the first headset according to the first channel status detection table to obtain a first channel statistics table, where a Bluetooth channel with the number of interference times greater than a preset interference threshold is an unavailable channel, and the first channel statistics table counts the available channels and unavailable channels of the first headset;

[0012] Step S300, receive a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table counts the available channels and unavailable channels of the second headset;

[0013] Step S400, 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, take the intersection of the available channels in the first channel statistics table and the second channel statistics table to obtain a channel arbitration table;

[0014] Step S500, convert the channel arbitration table into a new Bluetooth hopping table, and compare it with the current Bluetooth hopping table. When the number of changes in the available or unavailable status of Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make the current Bluetooth hopping table consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second headset so that both the first headset and the second headset communicate according to the new Bluetooth hopping table.

[0015] Preferably, step S200 includes:

[0016] Step S210, set a first initial channel statistics table for the first headset, and set the available status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth hopping table;

[0017] Step S220: Determine the available channels and unavailable channels according to the first channel status detection table;

[0018] Step S230: Update the first initial channel statistics table according to the determination result to obtain the first channel statistics table.

[0019] Preferably, the determination method in step S220 includes:

[0020] When the Bluetooth channel k in the first initial channel statistics table is an unavailable channel, if the Bluetooth channel k exists in an enabled situation in the first channel status detection table and the number of times of being interfered is less than a preset pending threshold, then mark the Bluetooth channel k as the pending channel of the first earphone once;

[0021] When the Bluetooth channel k is marked as the pending channel of the first earphone M times in M execution cycles, and M is greater than the preset available threshold, then determine that the Bluetooth channel k is the available channel of the first earphone, where one execution cycle is completed from the execution of step S100 to S500.

[0022] Preferably, before step S220, it further includes:

[0023] Step S201: Statistically calculate the packet error rate of each Bluetooth channel of the first earphone within a preset detection period;

[0024] The determination method in step S220 further includes:

[0025] When the available status of the Bluetooth channel k in the initial channel statistics table is available, if the packet error rate of the first earphone on the Bluetooth channel k is greater than the preset packet error threshold, then determine that the Bluetooth channel k is the unavailable channel of the first earphone.

[0026] Preferably, when the number of available channels of the first earphone in the determination result of step S220 is less than the preset threshold, step S230 further includes:

[0027] Set the Bluetooth channels with the number of times of being interfered less than the preset substitute threshold as the available channels of the first earphone in ascending order of the packet error rate until the number of available channels of the first earphone reaches the preset threshold.

[0028] Preferably, the first earphone is the master earphone and the second earphone is the slave earphone. Step S400 further includes:

[0029] The other channels in the channel arbitration table except the available channels are unavailable channels. When the master earphone determines that the number of intersections is less than the preset threshold, the master earphone will set the unavailable channels in the channel arbitration table as available channels in descending order of the available priority of the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold.

[0030] Preferably, in step S500, when the number of Bluetooth channels with changed available status in the new Bluetooth hopping table reaches the update threshold, the first earphone also sends the new Bluetooth hopping table to the Bluetooth audio source device, so that the Bluetooth audio source device refers to the new Bluetooth hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.

[0031] Preferably, the first earphone and the second earphone perform Bluetooth communication through a custom protocol;

[0032] The new Bluetooth hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone.

[0033] Preferably, before step S100, it further includes:

[0034] Step S1000, during the reception of Bluetooth packet data on Bluetooth channel A, monitor the power change of the Bluetooth channels in a preset channel range adjacent to Bluetooth channel A, where when the Bluetooth channels in the preset channel range simultaneously have a power increase and the power difference after the increase is less than the preset threshold, and / or, when the Bluetooth channels in the preset channel range simultaneously have a power decrease and the power difference before the decrease is less than the preset threshold, it is determined that both Bluetooth channel A and the Bluetooth channels in the preset channel range have broadband signal interference.

[0035] In a second aspect, the present embodiment discloses a device for implementing Bluetooth communication through true wireless earphones. The true wireless earphone is the first earphone, and the first earphone is used to form a true wireless Bluetooth earphone pair with the second earphone. The device for implementing Bluetooth communication includes:

[0036] A channel condition detection module (100) for statistically obtaining a first channel condition detection table of the usage times and interference times of each Bluetooth channel of the first earphone within a detection period, where a detection period is the duration when the first earphone receives a preset number of Bluetooth packet data, and a Bluetooth channel is used once when the first earphone receives at least one Bluetooth packet data through this Bluetooth channel;

[0037] A channel statistics module (200) for determining the available channels and unavailable channels of the first earphone according to the first channel condition detection table to obtain a first channel statistics table, where the Bluetooth channels with the number of interference times greater than the preset interference threshold are unavailable channels;

[0038] A receiving module (300) for receiving a second channel statistics table sent by the second earphone to the first earphone, where the second channel statistics table statistically records the available channels and unavailable channels of the second earphone;

[0039] A channel arbitration module (400) can be used to obtain a channel arbitration table by taking the intersection of available channels in the first channel statistics table and the second channel statistics table when the number of available channels in the intersection is greater than or equal to a preset threshold;

[0040] A hopping table obtaining module (500) is configured to convert the channel arbitration table into a new Bluetooth hopping table, compare it with the current Bluetooth hopping table, and when the number of changes in the available or unavailable state of Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make it consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second earphone so that both the first earphone and the second earphone communicate according to the new Bluetooth hopping table.

[0041] Preferably, the channel statistics module (200) further includes:

[0042] An initialization sub-module (210) sets a first initial channel statistics table for the first earphone, and makes the available state of each Bluetooth channel in the first initial channel statistics table consistent with the current Bluetooth hopping table;

[0043] An available determination sub-module (220) is configured to determine available channels and unavailable channels according to the first channel condition detection table;

[0044] A channel statistics table update sub-module (230) is configured to update the first initial channel statistics table according to the determination result to obtain the first channel statistics table.

[0045] Preferably, when the Bluetooth channel k in the first initial channel statistics table is an unavailable channel, if the Bluetooth channel k is enabled in the first channel condition detection table and the number of interference times is less than a preset pending threshold, the available determination sub-module (220) is further configured to mark the Bluetooth channel k as a pending channel of the first earphone once;

[0046] When the Bluetooth channel k is marked as a pending channel of the first earphone M times in M execution cycles and M is greater than a preset available threshold, the available determination sub-module (220) determines that the Bluetooth channel k is an available channel of the first earphone.

[0047] Preferably, the channel statistics module (200) further includes:

[0048] A packet error rate statistics sub-module (201) is configured to statistically calculate the packet error rate of each Bluetooth channel of the first earphone within a preset detection period;

[0049] The available channel determination sub-module (220) is further configured to determine that the Bluetooth channel k is an unavailable channel for the first earphone when the available status of the Bluetooth channel k in the initial channel statistics table is available and the packet error rate of the first earphone on the Bluetooth channel k is greater than a preset packet error threshold.

[0050] Preferably, when the number of available channels of the first earphone in the determination result of the available channel determination sub-module (220) is less than a preset threshold, the channel statistics table update sub-module (230) is further configured to set the Bluetooth channels with the number of interference times less than a preset replacement threshold as the available channels of the first earphone in ascending order of the packet error rate until the number of available channels of the first earphone reaches the preset threshold.

[0051] Preferably, the first earphone is the master earphone and the second earphone is the slave earphone, and the receiving module (300), the available channel arbitration module (400), and the hopping table obtaining module (500) are all arranged in the master earphone;

[0052] The other channels in the channel arbitration table except the available channels are unavailable channels. The available channel arbitration module (400) is further configured to, when the master earphone determines that the number of intersections is less than a preset threshold, the master earphone sets the channels in the channel arbitration table as available channels in descending order of the available priority of the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold.

[0053] Preferably, the hopping table obtaining module (500) is further configured to, when the number of Bluetooth channels with changed available status in the new Bluetooth hopping table reaches an update threshold, the first earphone also sends the new Bluetooth hopping table to the Bluetooth audio source device so that the Bluetooth audio source device refers to the new Bluetooth hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.

[0054] Preferably, the first earphone and the second earphone perform Bluetooth communication through a custom protocol;

[0055] The new Bluetooth hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone.

[0056] Preferably, the apparatus further includes:

[0057] The monitoring module (1000) is configured to monitor the power change of Bluetooth channels within a preset channel range adjacent to Bluetooth channel A during the reception of Bluetooth packet data on Bluetooth channel A. Wherein, when the Bluetooth channels within the preset channel range simultaneously experience a power increase and the power difference after the increase is less than a preset threshold, and / or, when the Bluetooth channels within the preset channel range simultaneously experience a power decrease 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 within the preset channel range are subject to wideband signal interference.

[0058] In a third aspect, this embodiment discloses a true wireless Bluetooth headset, where the communication method disclosed in the first aspect is applied to the true wireless Bluetooth headset.

[0059] In a fourth aspect, this embodiment discloses a pair of true wireless Bluetooth headsets, including a paired first headset and a second headset. Wherein, the first headset is the true wireless Bluetooth headset disclosed in the first aspect.

[0060] In a fifth aspect, this embodiment discloses a two - end communication system for true wireless Bluetooth headsets. The two - end communication system includes a paired first headset and a second headset. The first headset is configured to implement the communication method disclosed in the first aspect;

[0061] The second headset is configured to send a second channel statistics table to the first headset and receive a new Bluetooth hopping table sent from the first headset to the second headset, so that both the first headset and the second headset communicate according to the new Bluetooth hopping table.

[0062] In a sixth aspect, this embodiment discloses a three - end system for Bluetooth communication, including:

[0063] A Bluetooth audio source device for providing audio data;

[0064] A first headset for converting a channel arbitration table into a new Bluetooth hopping table and comparing it with the current Bluetooth hopping table;

[0065] A second headset, which forms a pair of true wireless Bluetooth headsets with the first headset. The second headset sends the channel statistics table of the second headset to the first headset and receives the new Bluetooth hopping table sent by the first headset;

[0066] The first headset is configured to implement the communication method disclosed in the first aspect.

[0067] In a seventh aspect, this embodiment discloses a computer - readable storage medium, on which a computer program is stored. When the computer program is executed, it can implement the communication method disclosed in the first aspect.

[0068] In an eighth aspect, the present embodiment discloses a chip for active noise cancellation, including a processor and a memory. 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.

[0069]

Beneficial effects

[0070] The embodiment of the present invention discloses a communication method for a true wireless Bluetooth headset. The first headset statistically obtains a first channel status detection table for the number of times each Bluetooth channel is used and the number of times it is interfered with within a detection period, obtains a first channel statistics table based on the statistics of the first channel status detection table, and receives a second channel statistics table sent by the second headset. Then, the available channels in the first channel statistics table and the second channel statistics table are merged and summarized to obtain a channel arbitration table, and the channel arbitration table is converted into a new Bluetooth hopping table. When the number of Bluetooth channels with a change in the available state in the new Bluetooth hopping table reaches a preset update threshold, the first headset sends the new Bluetooth hopping table to the second headset, so that both the first headset and the second headset communicate according to the new Bluetooth hopping table. By summarizing and merging the first channel statistics table and the second channel statistics table, the available channels in the new Bluetooth hopping table are both the available channels of the first headset and the available channels of the second headset, ensuring that when the first headset and the second headset communicate, for both headsets to receive Bluetooth packet data, the Bluetooth packet data can be sent and received through the available channels. The available channels are Bluetooth channels with less or no interference to the headsets in the current wireless environment. Therefore, compared with the communication method of directly using the Bluetooth hopping table sent by the terminal device, the reliability of the available channels in the communication method disclosed in this embodiment is better, thereby effectively improving the anti-interference ability of the communication between the first headset and the second headset.

[0071] In addition, when in an environment with wireless interference, the number of Bluetooth channels through which the second earphone can reliably receive data is limited. When the number of Bluetooth channels with changeable available status in the new Bluetooth hopping table does not reach the preset update threshold, that is, when the current Bluetooth communication environment has not changed significantly or has not changed at all, if the first earphone still sends the new Bluetooth 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 the new Bluetooth hopping table will even cause the communication efficiency between the two earphones to decrease further. In addition, frequently sending and receiving or updating the Bluetooth hopping table will also result in energy consumption. Therefore, by setting the update threshold, when the wireless environment changes little or does not change, the first earphone does not need to send the new Bluetooth hopping table, thus reducing the unnecessary communication burden between the earphones, further ensuring the communication efficiency between the first earphone and the second earphone, and saving the energy consumption of the earphones. On this premise, when the wireless environment changes significantly, the first earphone and the second earphone can also timely send and receive and update to the new Bluetooth hopping table, so as to ensure that during the communication process between the two earphones, Bluetooth packet data can always be received through better Bluetooth channels, thereby improving the communication efficiency and communication reliability between the first earphone and the second earphone.

[0072] Other beneficial effects of the present invention will be described by introducing specific technical features and technical solutions in the specific implementation manner. Those skilled in the art should be able to understand the beneficial technical effects brought by the technical features and technical solutions through these introductions. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The embodiments of the present invention will be described below with reference to the accompanying drawings. In the drawings:

[0074] Figure 1 is a flowchart of a communication method for a true wireless Bluetooth earphone disclosed in this embodiment;

[0075] Figure 2 is a schematic diagram showing the relationship between the first channel statistics table, the second channel statistics table and the channel arbitration table disclosed in this embodiment;

[0076] Figure 3 is a schematic diagram of the device structure for implementing Bluetooth communication disclosed in this embodiment;

[0077] Figure 4 is a schematic diagram of the true wireless Bluetooth earphone pair module disclosed in this embodiment;

[0078] Figure 5 is a schematic diagram of the two - end communication system module disclosed in this embodiment;

[0079] Figure 6 is a schematic diagram of the three - end system module disclosed in this embodiment. Detailed implementation manners

[0080] The present invention will be described based on the embodiments below, but the present invention is not limited to these embodiments only. 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.

[0081] In addition, those of ordinary skill in the art should understand that the attached drawings provided herein are all for illustrative purposes, and the drawings are not necessarily drawn to scale.

[0082] Unless the context clearly requires otherwise, the words such as "comprising", "including" and the like in the whole specification and claims should be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, the meaning of "including but not limited to".

[0083] 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 construed as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0084] For the Bluetooth communication of true wireless Bluetooth headsets, since its operating frequency band 2.4GHz is also a wireless frequency band publicly and commonly used worldwide, when true wireless Bluetooth headsets communicate with each other, they are very vulnerable to interference from other wireless signals, such as broadband signals with strong energy like wifi signals.

[0085] Please refer to Figure 1 , which is a flowchart of a communication method for a true wireless Bluetooth headset disclosed in this embodiment. This communication method is used for the first headset, and the first headset and the 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 headsets, as long as wireless communication can be carried out between the first headset and the second headset via Bluetooth.

[0086] This communication method includes steps S10, S100, S200, S300, S400 and S500, where:

[0087] Step S1000, during receiving Bluetooth packet data on Bluetooth channel A, monitor the power change of the Bluetooth channels in a preset channel range adjacent to Bluetooth channel A. Wherein, when the Bluetooth channels in the preset channel range simultaneously have a power increase and the power difference after the increase is less than a preset threshold, and / or, the Bluetooth channels in the preset channel range simultaneously have a power decrease 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.

[0088] It should be noted that the Bluetooth channel A receiving the Bluetooth packet data sent by an external device or the second earphone means that the first earphone performs a data receiving operation through the Bluetooth channel A, but it is not necessarily able to receive the data. That is, the Bluetooth packet data may be successfully received or may not be successfully received. The Bluetooth channel A can be any one or more Bluetooth channels.

[0089] Step S100, within a detection period, count the number of times each Bluetooth channel of the first earphone is used and the number of times it is interfered with to obtain a first channel status detection table. That is, in the first channel status detection table, the number of times each Bluetooth channel of the first earphone is used and the number of times it is interfered with are counted. In this embodiment, a detection period is the duration when the first earphone receives a preset number of Bluetooth packet data. Therefore, the durations of different detection periods may be different. And in this embodiment, a Bluetooth channel is considered to be used once when the first earphone receives N Bluetooth packet data through this Bluetooth channel, where N≥1, and the specific value of N can be obtained by those skilled in the art according to experience.

[0090] Step S200, determine the available channels and unavailable channels of the first earphone according to the first channel status detection table to obtain a first channel statistics table. That is, through the first channel statistics table, it can be known whether there is interference in each Bluetooth channel, and thus it can be known whether each Bluetooth channel can be used for the first earphone to receive data. In this embodiment, the available channels of the first earphone are the Bluetooth channels through 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 times interference is detected on the Bluetooth channel, the packet loss rate, and the error packet rate. The unavailable channels of the first earphone are the Bluetooth channels through which the first earphone cannot receive Bluetooth packet data or has too high an error packet rate and packet loss rate when receiving Bluetooth packet data. The available channels and unavailable channels of the second earphone are the same as those of the first earphone, so they will not be elaborated here.

[0091] In this embodiment, a Bluetooth channel with the number of interference times greater than a preset interference threshold is an unavailable channel, and the specific value of the interference threshold can be obtained by those skilled in the art according to experience. In a specific embodiment, the interference threshold is greater than 1, so as to reduce the situation where the number of available channels in an interfering environment is too small and affects the normal communication of the earphones.

[0092] Step S300, receive the second channel statistics table sent by the second earphone to the first earphone. The second channel statistics table counts the available channels and unavailable channels of the second earphone. In this embodiment, the second channel statistics table can be obtained by the same method as the first channel statistics table, or by other methods, as long as it can accurately count the available channels and unavailable channels of the second earphone in the current environment.

[0093] 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, obtain the channel arbitration table by taking the intersection of the available channels in the first channel statistics table and the second channel statistics table. In this embodiment, the preset threshold is also the minimum number of Bluetooth channels required to ensure the normal communication of the first earphone. Those skilled in the art can obtain its specific value according to experience. For example, the preset threshold can be 20.

[0094] Step S500, convert the channel arbitration table into a new Bluetooth hopping table and compare it with the current Bluetooth hopping table. When the number of changes in the available or unavailable status of Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make the current Bluetooth hopping table consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second earphone so that both the first earphone and the second earphone communicate according to the new Bluetooth hopping table.

[0095] In the communication method of the true wireless Bluetooth earphones disclosed in this embodiment, the first earphone counts the number of times each Bluetooth channel is used and the number of times it is interfered with within a detection period to obtain a first channel condition detection table, obtains a first channel statistics table based on the statistical situation of the first channel condition detection table, and receives the second channel statistics table sent by the second earphone. Then, the available channels in the first channel statistics table and the second channel statistics table are merged and summarized to obtain a channel arbitration table and convert the channel arbitration table into a new Bluetooth hopping table. When the number of Bluetooth channels with changed usage status in the new Bluetooth hopping table reaches a preset update threshold, the first earphone sends the new Bluetooth hopping table to the second earphone so that both the first earphone and the second earphone communicate according to the new Bluetooth hopping table. By summarizing and merging the first channel statistics table and the second channel statistics table, the available channels in the new Bluetooth hopping table are both the available channels of the first earphone and the available channels of the second earphone, ensuring that when the first earphone and the second earphone communicate, for both earphones to receive Bluetooth packet data, Bluetooth packet data can be sent and received through the available channels, and the available channels are Bluetooth channels with less or no interference to the earphones in the current wireless environment. Therefore, compared with the communication method of directly using the Bluetooth hopping table sent by the terminal device, the reliability of the available channels in the communication method disclosed in this embodiment is better, thereby effectively improving the anti-interference ability of the communication between the first earphone and the second earphone.

[0096] In addition, when 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 available status changes 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 has 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 will also cause energy loss. Therefore, an 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. Under this premise, when the wireless environment changes significantly, the first earphone and the second earphone can also send and receive and update to a new Bluetooth frequency hopping table in time, thereby ensuring that during the communication process between the two earphones, Bluetooth packet data can always be received on a better Bluetooth channel, thereby improving the communication efficiency and communication reliability between the first earphone and the second earphone.

[0097] 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.

[0098] In a specific embodiment, step S200 includes:

[0099] Step S210, setting a first initial channel statistics table for the first headset, 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, the first initial channel statistics table is the initial channel statistics table of the first headset;

[0100] Step S220, determining usable channels and unusable channels according to the first channel status detection table. For specific determination methods, please refer to the following description;

[0101] Step S230: updating the first initial channel statistics table according to the determination result to obtain a first channel statistics table.

[0102] In a specific embodiment, due to changes in the wireless environment, when the interference on a channel previously determined to be unusable disappears, the unusable channel should be re-determined as a usable channel. Therefore, the determination method in step S220 includes:

[0103] When the Bluetooth channel k in the first initial channel statistics table is an unusable channel, if the Bluetooth channel k exists in an enabled state in the first channel status detection table and the number of times of being interfered is less than a preset pending threshold, that is, the number of times the Bluetooth channel k is statistically used in the first channel status detection table is greater than 0 and the number of times of being interfered is less than or equal to the preset pending threshold, then the Bluetooth channel k is marked as a pending channel of the first earphone once.

[0104] From the execution of step S100 to S500 to the completion is an execution cycle. When the Bluetooth channel k is marked as a pending channel of the first earphone M times in M execution cycles, and M is greater than a preset available threshold, it is determined that the Bluetooth channel k is a usable channel of the first earphone. The pending threshold and the available threshold can be obtained by those skilled in the art according to experience. For example, the pending threshold can be 0, 1, 2, etc.

[0105] Generally, when the earphone pair communicates internally, the channels determined to be unusable are not 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 device may send data to the first earphone through the unusable channels in the first channel statistics table. If the first earphone can continuously and successfully receive the data sent by the Bluetooth audio source device in multiple execution cycles, it can be determined that the interference on the Bluetooth channel has disappeared. That is, when the Bluetooth channel k is marked as a pending channel of the first earphone M times in M execution cycles, and M is greater than a preset available threshold, it can be determined that the interference on the Bluetooth channel has disappeared. Then, the Bluetooth channel k should be determined as a usable channel of the first earphone, so as to increase the number of usable channels while ensuring the anti-interference ability of the first earphone's communication, thereby further improving the communication efficiency of the first earphone.

[0106] In a specific embodiment, before step S220, it further includes:

[0107] Step S201, statistically count the packet error rate of each Bluetooth channel of the first earphone within a preset detection period;

[0108] The determination method in step S220 further includes:

[0109] When the usage status of the Bluetooth channel k in the initial channel statistics table is usable, if the packet error rate of the first earphone on the Bluetooth channel k is greater than a preset packet error threshold, then it is determined that the Bluetooth channel k is an unusable channel of the first earphone.

[0110] In addition to using the number of detected interferences as the basis for whether a Bluetooth channel is available, the packet error rate of the Bluetooth channel is also statistically analyzed, and a Bluetooth channel with a packet error rate greater than the packet error threshold is determined to be an unavailable channel, so as to ensure that the packet error rate of the available channels will not be 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 earphone in the determination result of step S220 is less than a preset threshold, step S230 further includes:

[0112] Bluetooth channels with the number of interferences less than a preset replacement threshold are sequentially set as the available channels of the first earphone in ascending order of the packet error rate until the number of available channels of the first earphone reaches the preset threshold.

[0113] If the number of available channels is too small, it will also lead to a decrease in the communication efficiency between the first earphone and the second earphone or even abnormal communication. Therefore, when the number of available channels is less than the preset threshold, the non-interfered Bluetooth channels are sequentially set as available channels in ascending order of the packet error rate until the number of available channels reaches the preset threshold, so as to ensure that the packet error rate of the available channels is as small as possible, not interfered, and the reliability is as high as possible on the premise that the number of available channels can meet the normal communication requirements.

[0114] In a specific embodiment, the first earphone is the master earphone and the second earphone is the slave earphone. Step S400 further includes:

[0115] Other channels in the channel arbitration table except the available channels are unavailable channels. When the master earphone determines that the number of intersections of the available channels in the first channel statistics table and the second channel statistics table is less than the preset threshold, the master earphone sequentially sets the unavailable channels in the channel arbitration table as available channels in descending order of the available priority of the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold.

[0116] If the number of available channels in the channel arbitration table is too small, the number of available channels in the new Bluetooth hopping table will be too small, which may affect the communication efficiency. By setting the unavailable channels in the channel arbitration table as available channels in descending order of the priority that can be used by the earphone until the number of available channels in the channel arbitration table reaches a preset threshold, when the master earphone needs to send a new Bluetooth hopping table to the slave earphone on the premise that the number of available channels can meet the normal communication requirements, it can directly send data according to the channel that is optimal for the slave earphone to receive data, effectively increasing the probability that the slave earphone can successfully receive the new Bluetooth hopping table, thereby further ensuring the smoothness of communication between the two earphones. Moreover, during the communication process between the master and slave earphones, usually the amount and sending frequency of data sent by the master earphone and received by the slave earphone are much higher than the situation where the slave earphone sends and the master earphone receives. Therefore, sending data according to the channel that is optimal for the slave earphone to receive data can ensure the reliability of the data received by the slave earphone, thereby also improving the communication efficiency between the two earphones.

[0117] In one embodiment, Bluetooth communication is performed between the first earphone and the second earphone through a standard protocol to improve the compatibility of the communication method disclosed in this embodiment.

[0118] In another embodiment, Bluetooth communication is performed between the first earphone and the second earphone through a custom protocol, thereby breaking through the limitations of the standard protocol, and the first earphone and the second earphone can perform hopping communication according to preset rules.

[0119] In a specific embodiment, when Bluetooth communication is performed between the first earphone and the second earphone through a custom protocol, the new Bluetooth hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone.

[0120] The new Bluetooth hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that when the first earphone sends a Bluetooth data packet to the second earphone, it can be according to the available channels of the second earphone, thereby ensuring that the second earphone can receive data reliably and in a timely manner; when the second earphone sends a Bluetooth data packet to the first earphone, it can be according to the available channels of the first earphone, thereby ensuring that the first earphone can also receive data reliably and in a timely manner. That is, both earphones can send data to each other according to the Bluetooth channel that is optimal for the other party to receive data, thereby further ensuring the communication efficiency and anti-interference ability between the two earphones.

[0121] Under normal circumstances, when Bluetooth audio source devices communicate with the first earphone and / or the second earphone via Bluetooth, if packet loss, packet error, etc. occur due to interference, the Bluetooth audio source device usually retransmits data to ensure reliable data transmission. However, the retransmission of data by the Bluetooth audio source device may affect the reception of data from the other earphone between the two earphones, thereby potentially reducing the internal communication between the earphone pair and the communication efficiency between the earphone pair and the Bluetooth audio source device.

[0122] To improve the reliability of communication between the Bluetooth audio source device and the first earphone and / or the second earphone, in a specific embodiment, in step S500, when the number of Bluetooth channels with a changed available state in the new Bluetooth frequency hopping table reaches the 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.

[0123] Sending the new Bluetooth frequency hopping table to the Bluetooth audio source device enables the Bluetooth audio source device to refer to the new Bluetooth frequency hopping table to send Bluetooth packet data to the first earphone and / or the second earphone, thereby improving the communication reliability between the earphone pair and the Bluetooth audio source device, and further improving the communication efficiency between the two earphones.

[0124] In summary, for a communication method of a true wireless Bluetooth earphone disclosed in an embodiment of the present invention, the first earphone combines and summarizes the available channels of the first channel statistics table and the second channel statistics table to obtain a channel arbitration table, and then converts the channel arbitration table into a new Bluetooth frequency hopping table. When the number of Bluetooth channels with a changed usage state 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 summarizing and combining the first channel statistics table and the second channel statistics table, the available channels in the new Bluetooth frequency hopping table are both the available channels of the first earphone and the available channels of the second earphone, ensuring that when the first earphone and the second earphone communicate, Bluetooth packet data can be sent and received through the available channels. The available channels are Bluetooth channels with less or no interference to the earphones in the current wireless environment. Therefore, compared with the communication method that directly uses the Bluetooth frequency hopping table sent by the terminal device, the reliability of the available channels in the communication method disclosed in this embodiment is better, effectively improving the anti-interference ability and communication reliability of the communication between the first earphone and the second earphone, and thus ensuring the communication efficiency between the first earphone and the second earphone.

[0125] In addition, an update threshold is set so that when the wireless environment changes little or remains unchanged, the first earphone does not need to send a new Bluetooth frequency hopping table, thereby reducing the unnecessary communication burden between the earphones, ensuring the communication efficiency between the first earphone and the second earphone, and saving the energy loss of the earphones. When the wireless environment changes greatly, the first earphone and the second earphone can also receive and update to a new Bluetooth frequency hopping table in a timely manner, so as to ensure that during 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.

[0126] This embodiment also discloses a device for realizing Bluetooth communication through true wireless earphones. The true wireless earphone is the first earphone, and the first earphone is used to form a true wireless Bluetooth earphone pair with the second earphone.

[0127] Please refer to Figure 2 , which is a schematic structural diagram of the device for realizing Bluetooth communication disclosed in this embodiment. The device for realizing Bluetooth communication includes a monitoring module 1000, a channel condition detection module 100, a channel statistics module 200, a receiving module 300, an available channel arbitration module 400, and a frequency hopping table obtaining module 500, where:

[0128] The monitoring module 1000 is configured to monitor the power change of the Bluetooth channels in a preset channel range adjacent to the Bluetooth channel A during the period of receiving Bluetooth packet data on the Bluetooth channel A. When the Bluetooth channels in the preset channel range simultaneously have a power increase 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 have a power decrease and the power difference before the decrease is less than a preset threshold, it is determined that there is broadband signal interference in both the Bluetooth channel A and the Bluetooth channels in the preset channel range;

[0129] The channel condition detection module 100 is configured to count the number of times each Bluetooth channel of the first earphone is used and the number of times it is interfered with within a detection period to obtain a first channel condition detection table, where a detection period is the duration when the first earphone receives a preset number of Bluetooth packet data, and a Bluetooth channel is considered to be used once if the first earphone receives at least one Bluetooth packet data through this Bluetooth channel;

[0130] The channel statistics module 200 is configured to determine the available channels and unavailable channels of the first earphone according to the first channel condition detection table to obtain a first channel statistics table, where a Bluetooth channel with the number of interference times greater than a preset interference threshold is an unavailable channel;

[0131] The receiving module 300 is configured to receive a second channel statistics table sent by the second earphone to the first earphone, and the second channel statistics table counts the available channels and unavailable channels of the second earphone;

[0132] A channel arbitration module 400 can be 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 the intersection 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;

[0133] A hopping table obtaining module 500 is used to convert the channel arbitration table into a new Bluetooth hopping table, compare it with the current Bluetooth hopping table, and when the number of changes in the available or unavailable state of the Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make the current Bluetooth hopping table consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second earphone so that both the first earphone and the second earphone communicate according to the new Bluetooth hopping table. Specifically, please refer to the description of the above embodiments and will not be elaborated here.

[0134] In a specific embodiment, the channel statistics module 200 further includes:

[0135] An initialization sub-module 210 sets a first initial channel statistics table for the first earphone and makes the usage status of each Bluetooth channel in the first initial channel statistics table consistent with the current Bluetooth hopping table;

[0136] An available determination sub-module 220 is used to determine available channels and unavailable channels according to the first channel condition detection table;

[0137] A channel statistics table update sub-module 230 is used to update the first initial channel statistics table according to the determination result to obtain a first channel statistics table.

[0138] In a specific embodiment, when the Bluetooth channel k in the first initial channel statistics table is an unavailable channel, if the Bluetooth channel k has a situation of being enabled in the first channel condition detection table and the number of times of being interfered is less than a preset pending threshold, that is, the number of times of being used is greater than 0 and the number of times of being interfered is less than the preset pending threshold, the available determination sub-module 220 is further used to mark the Bluetooth channel k as a pending channel of the first earphone once;

[0139] When the Bluetooth channel k is marked as a pending channel of the first earphone M times in M execution cycles and M is greater than a preset available threshold, the available determination sub-module 220 determines that the Bluetooth channel k is an available channel of the first earphone. Specifically, please refer to the description of the above embodiments and will not be elaborated here.

[0140] In a specific embodiment, the channel statistics module 200 further includes:

[0141] A packet error rate statistics sub-module 201 is used to statistically calculate the packet error rate of each Bluetooth channel of the first earphone within a preset detection period;

[0142] The available channel determination sub-module 220 is further configured to, when the usage status of the Bluetooth channel k in the initial channel statistics table is available, if the packet error rate of the first earphone on the Bluetooth channel k is greater than a preset packet error threshold, determine that the Bluetooth channel k is an unavailable channel for the first earphone.

[0143] In a specific embodiment, when the number of available channels of the first earphone in the determination result of the available channel determination sub-module 220 is less than a preset threshold, the channel statistics table update sub-module 230 is further configured to set the Bluetooth channels with the number of interference times less than a preset replacement threshold as the available channels of the first earphone in ascending order of packet error rate until the number of available channels of the first earphone reaches the preset threshold. Specifically, please refer to the description of the above embodiment and will not be elaborated here.

[0144] In a specific embodiment, the first earphone is the master earphone, the second earphone is the slave earphone, and the receiving module 300, the available channel arbitration module 400, and the hopping table obtaining module 500 are all disposed in the master earphone;

[0145] The available channel arbitration module 400 is further configured to, when the master earphone determines that the number of intersections of the available channels in the first channel statistics table and the second channel statistics table is less than a preset threshold, the master earphone sets the channels in the channel arbitration table as available channels in descending order of the available priority of the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold, where the other channels in the channel arbitration table except the available channels are unavailable channels. Specifically, please refer to the description of the above embodiment and will not be elaborated here.

[0146] In a specific embodiment, the hopping table obtaining module 500 is further configured to, when the number of Bluetooth channels with changed usage status in the new Bluetooth hopping table reaches an update threshold, the first earphone further sends the new Bluetooth hopping table to the Bluetooth audio source device so that the Bluetooth audio source device refers to the new Bluetooth hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.

[0147] In a specific embodiment, Bluetooth communication is performed between the first earphone and the second earphone through a custom protocol; the new Bluetooth hopping table includes the available Bluetooth channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone. Specifically, please refer to the description of the above embodiment and will not be elaborated here.

[0148] This embodiment also discloses a true wireless Bluetooth earphone, and the communication method disclosed in the above embodiment is applied to the true wireless Bluetooth earphone.

[0149] Please refer toFigure 4 , which is a schematic diagram of the module of the true wireless Bluetooth headset pair disclosed in this embodiment. The true wireless Bluetooth headset pair includes a paired first headset 10 and a second headset 11. In this embodiment, at least the first headset 10 is the true wireless Bluetooth headset disclosed in the above embodiment

[0150] In a specific embodiment, after the first headset 10 sends a new Bluetooth hopping table to the second headset 11, if the second headset 11 fails to successfully receive the new Bluetooth hopping table, the second headset 11 still sends Bluetooth packet data to the first headset 10 according to the current Bluetooth hopping table, and the first headset 10 sends Bluetooth packet data to the second headset 11 according to the new Bluetooth hopping table.

[0151] This embodiment also discloses a two-end communication system for true wireless Bluetooth headsets. Please refer to Figure 5 , which is a schematic diagram of the module of the two-end communication system disclosed in this embodiment. The two-end communication system includes a paired first headset 20 and a second headset 21. The first headset 20 is configured to implement the communication method disclosed in the above embodiment;

[0152] The second headset 21 is used to send a second channel statistics table to the first headset 20 and receive a new Bluetooth hopping table sent by the first headset 20 to the second headset 21, so that both the first headset 20 and the second headset 21 communicate according to the new Bluetooth hopping table.

[0153] This embodiment also discloses a three-end system for Bluetooth communication. Please refer to Figure 6 , which is a schematic diagram of the module of the three-end system disclosed in this embodiment. The three-end system includes:

[0154] A Bluetooth audio source device 30, which is used to provide audio data. For example, the Bluetooth audio source device 30 can be an electronic device such as a mobile phone, a computer, or a player that can provide audio data;

[0155] The first headset 31 is used to convert the channel arbitration table into a new Bluetooth hopping table and compare it with the current Bluetooth hopping table;

[0156] The second headset 32 forms a true wireless Bluetooth headset pair with the first headset 31. The second headset 32 sends the channel statistics table of the second headset 32 to the first headset 31 and receives the new Bluetooth hopping table sent by the first headset 31;

[0157] The first headset 31 is configured to implement the communication method disclosed in the above embodiment.

[0158] This embodiment also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, it can implement the communication method disclosed in the above embodiment.

[0159] This embodiment also discloses a chip for active noise reduction, which includes a processor and a memory. 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.

[0160] It should be noted that the computer-readable storage medium described in the embodiments of the present disclosure is not limited to the above-given embodiments. For example, it can also be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.

[0161] Those skilled in the art can understand that, on the premise of no conflict, the above preferred solutions can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and this module, program segment, or part of 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 blocks may occur in a different order than marked in the drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. The numbers assigned to the steps in this article are only for convenience of description and reference, and are not used to limit the order before and after. The specific execution order is determined by the technology itself, and those skilled in the art can determine various allowed and reasonable orders according to the technology itself.

[0162] It should be noted that in the present invention, step numbers (letter or numerical numbers) are used to refer to certain specific method steps, solely for the purpose of convenience and brevity of description, and by no means to limit the order of these method steps by letters or numbers. Those skilled in the art can understand that the order of relevant method steps should be determined by the technology itself and should not be unduly restricted by the existence of step numbers. Those skilled in the art can determine various permitted and reasonable step orders according to the technology itself.

[0163] Those skilled in the art can understand that on the premise of no conflict, the above preferred solutions can be freely combined and superimposed.

[0164] It should be understood that the above embodiments are merely exemplary and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions made by those skilled in the art to the above details will be included within the scope of the claims of the present invention.

Claims

1. A communication method for a true wireless Bluetooth headset, which is used for a first headset. The first headset is used to form a true wireless Bluetooth headset pair with a second headset. Characterized in that: It includes: Step S100: In a detection period, count the number of times each Bluetooth channel of the first headset is used and the number of times it is interfered to obtain a first channel status detection table. Wherein, a detection period is the duration when the first headset receives a preset number of Bluetooth packet data. A Bluetooth channel is considered to be used once if the first headset receives at least one Bluetooth packet data through this Bluetooth channel. Step S200: Determine the available channels and unavailable channels of the first headset according to the first channel status detection table to obtain a first channel statistics table. Wherein, a Bluetooth channel with the number of interference times greater than a preset interference threshold is an unavailable channel. The first channel statistics table counts the available channels and unavailable channels of the first headset. Step S300: Receive a second channel statistics table sent by the second headset to the first headset. The second channel statistics table counts the available channels and unavailable channels of the second headset. Step S400: When the number of the intersection 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, take the intersection of the available channels in the first channel statistics table and the second channel statistics table to obtain a channel arbitration table. Step S500: Convert the channel arbitration table into a new Bluetooth hopping table and compare it with the current Bluetooth hopping table. When the number of changes in the available or unavailable status of the Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make the current Bluetooth hopping table consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second headset, so that both the first headset and the second headset communicate according to the new Bluetooth hopping table. Wherein, the step S200 includes: Step S210: Set a first initial channel statistics table for the first headset, and set the available status of each Bluetooth channel in the first initial channel statistics table to be consistent with the current Bluetooth hopping table. Step S220: Determine the available channels and unavailable channels according to the first channel status detection table. Step S230: Update the first initial channel statistics table according to the determination result to obtain the first channel statistics table. The determination method in the step S220 includes: When the Bluetooth channel k in the first initial channel statistics table is an unavailable channel, if the Bluetooth channel k has an enabled situation in the first channel status detection table and the number of interference times is less than a preset pending threshold, mark the Bluetooth channel k as a pending channel of the first headset once. When the Bluetooth channel k is marked as the pending channel of the first earphone M times in M execution cycles, and M is greater than a preset available threshold, it is determined that the Bluetooth channel k is the available channel of the first earphone, where one execution cycle is completed from the execution of the step S100 to S500.

2. The communication method according to claim 1, characterized in that, before the step S220, it further includes: Step S201, statistically analyzing the packet error rate of each Bluetooth channel of the first earphone within a preset detection period; The determination method in the step S220 further includes: When the available status of the Bluetooth channel k in the initial channel statistical table is available, if the packet error rate of the first earphone on the Bluetooth channel k is greater than a preset packet error threshold, it is determined that the Bluetooth channel k is the unavailable channel of the first earphone.

3. The communication method according to claim 2, characterized in that, when the number of available channels of the first earphone in the determination result of the step S220 is less than a preset threshold, the step S230 further includes: Setting the Bluetooth channels with the number of interference times less than a preset replacement threshold as the available channels of the first earphone in ascending order of packet error rate until the number of available channels of the first earphone reaches the preset threshold.

4. The communication method according to claim 1, characterized in that, the first earphone is the master earphone, the second earphone is the slave earphone, and the step S400 further includes: Other channels in the channel arbitration table except the available channels are unavailable channels. When the master earphone determines that the number of the intersections is less than the preset threshold, the master earphone sets the unavailable channels in the channel arbitration table as available channels in descending order of the available priority of the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold.

5. The communication method according to claim 1, characterized in that, in the step S500, when the number of Bluetooth channels with changed available status in the new Bluetooth hopping table reaches the update threshold, the first earphone further sends the new Bluetooth hopping table to the Bluetooth audio source device so that the Bluetooth audio source device refers to the new Bluetooth hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.

6. The communication method according to any one of claims 1-5, characterized in that, the first earphone and the second earphone perform Bluetooth communication through a custom protocol; the new Bluetooth hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone.

7. The communication method according to any one of claims 1-5, characterized in that, before the step S100, it further includes: Step S1000, during receiving Bluetooth packet data on Bluetooth channel A, monitor the power change of Bluetooth channels within a preset channel range adjacent to Bluetooth channel A. Wherein, when the Bluetooth channels within the preset channel range simultaneously have a power increase and the power difference after the increase is less than a preset threshold, and / or, the Bluetooth channels within the preset channel range simultaneously have a power decrease 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 within the preset channel range have wideband signal interference.

8. A device for realizing Bluetooth communication through true wireless earphones, the true wireless earphones being the first earphones, and the first earphones being used to form a true wireless Bluetooth earphone pair with second earphones Characterized in that The device for realizing Bluetooth communication includes: A channel condition detection module (100) for statistically obtaining a first channel condition detection table of the usage times and interference times of each Bluetooth channel of the first earphone within a detection period, wherein the detection period is the duration when the first earphone receives a preset number of Bluetooth packet data, and a Bluetooth channel is used once means that the first earphone receives at least one Bluetooth packet data through this Bluetooth channel; A channel statistics module (200) for determining the available channels and unavailable channels of the first earphone according to the first channel condition detection table to obtain a first channel statistics table, wherein a Bluetooth channel with an interference times greater than a preset interference threshold is an unavailable channel; A receiving module (300) for receiving a second channel statistics table sent by the second earphone to the first earphone, and the second channel statistics table statistically records the available channels and unavailable channels of the second earphone; An available channel arbitration module (400) for, 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, taking the intersection of the available channels in the first channel statistics table and the second channel statistics table to obtain a channel arbitration table; A hopping table obtaining module (500) for converting the channel arbitration table into a new Bluetooth hopping table and comparing it with the current Bluetooth hopping table. When the number of changes in the available or unavailable status of Bluetooth channels in the new Bluetooth hopping table compared to the current Bluetooth hopping table reaches a preset update threshold, update the current Bluetooth hopping table to make the current Bluetooth hopping table consistent with the new Bluetooth hopping table, and send the new Bluetooth hopping table to the second earphone, so that both the first earphone and the second earphone communicate according to the new Bluetooth hopping table; Wherein, the channel statistics module (200) further includes: An initialization sub-module (210) for setting a first initial channel statistics table for the first earphone and making the available status of each Bluetooth channel in the first initial channel statistics table consistent with the current Bluetooth hopping table; An available determination sub-module (220) for determining available channels and unavailable channels according to the first channel condition detection table; A channel statistics table update sub-module (230) for updating the first initial channel statistics table according to the determination result to obtain the first channel statistics table; When the Bluetooth channel k in the first initial channel statistics table is an unusable channel, if the Bluetooth channel k exists in an enabled state in the first channel condition detection table and the number of times of being interfered is less than a preset pending threshold, the usable determination sub-module (220) is further configured to mark the Bluetooth channel k as a pending channel of the first earphone once; When the Bluetooth channel k is marked as a pending channel of the first earphone M times in M execution cycles and M is greater than a preset available threshold, the usable determination sub-module (220) determines that the Bluetooth channel k is a usable channel of the first earphone.

9. The apparatus according to claim 8, characterized in that, the channel statistics module (200) further includes: A packet error rate statistics sub-module (201) for statistically calculating the packet error rate of each Bluetooth channel of the first earphone within a preset detection period; The usable determination sub-module (220) is further configured to, when the usable state of the Bluetooth channel k in the initial channel statistics table is usable, if the packet error rate of the first earphone on the Bluetooth channel k is greater than a preset packet error threshold, determine that the Bluetooth channel k is an unusable channel of the first earphone.

10. The apparatus according to claim 9, characterized in that, When the number of usable channels of the first earphone in the determination result of the usable determination sub-module (220) is less than a preset threshold, the channel statistics table update sub-module (230) is further configured to, for Bluetooth channels with the number of times of being interfered less than a preset replacement threshold, set the channels with the number of times of being interfered in ascending order of packet error rate as the usable channels of the first earphone until the number of usable channels of the first earphone reaches the preset threshold.

11. The apparatus according to claim 8, characterized in that, The first earphone is the master earphone, the second earphone is the slave earphone, and the receiving module (300), the usable channel arbitration module (400) and the hopping table obtaining module (500) are all disposed in the master earphone; Other channels in the channel arbitration table except the usable channels are unusable channels, and the usable channel arbitration module (400) is further configured to, when the master earphone determines that the number of the intersections is less than the preset threshold, the master earphone sets the channels in the channel arbitration table as usable channels in descending order of the usable priority of the slave earphone until the number of usable channels in the channel arbitration table reaches the preset threshold.

12. The apparatus according to claim 8, characterized in that, The hopping table obtaining module (500) is further configured to, when the number of Bluetooth channels with changed usable states in the new Bluetooth hopping table reaches the update threshold, the first earphone further sends the new Bluetooth hopping table to the Bluetooth audio source device so that the Bluetooth audio source device refers to the new Bluetooth hopping table to send Bluetooth packet data to the first earphone and / or the second earphone.

13. The device according to any one of claims 8 - 12, characterized in that, Bluetooth communication is performed between the first earphone and the second earphone through a custom protocol; The new Bluetooth frequency hopping table includes the available channels of the second earphone and the available channels of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the available channels of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the available channels of the first earphone.

14. The device according to any one of claims 8 - 12, characterized in that, The device further includes: A monitoring module (1000) for monitoring the power change of Bluetooth channels in a preset channel range adjacent to Bluetooth channel A during the reception of Bluetooth packet data on Bluetooth channel A, wherein when the Bluetooth channels in the preset channel range simultaneously have a power increase and the power difference after the increase is less than a preset threshold, and / or, the Bluetooth channels in the preset channel range simultaneously have a power decrease 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.

15. A true wireless Bluetooth earphone, characterized in that, The communication method according to any one of claims 1 - 7 is applied to the true wireless Bluetooth earphone.

16. A pair of true wireless Bluetooth earphones, characterized in that, It includes a paired first earphone and a second earphone, wherein the first earphone is the true wireless Bluetooth earphone according to claim 15.

17. A two - end communication system for true wireless Bluetooth earphones, characterized in that, The two - end communication system includes a paired first earphone and a second earphone, and the first earphone is configured to implement the communication method according to any one of claims 1 - 7; The second earphone is used to send a second channel statistical table to the first earphone and receive the new Bluetooth frequency hopping table sent by the first earphone to the second earphone, so that both the first earphone and the second earphone communicate according to the new Bluetooth frequency hopping table.

18. A three - end system for Bluetooth communication, characterized in that, It includes: A Bluetooth audio source device for providing audio data; A first earphone for converting a channel arbitration table into a new Bluetooth frequency hopping table and comparing it with the current Bluetooth frequency hopping table; A second earphone, forming a pair of true wireless Bluetooth earphones with the first earphone, and the second earphone sends the channel statistical table of the second earphone to the first earphone and receives the new Bluetooth frequency hopping table sent by the first earphone; The first earphone is configured to implement the communication method according to any one of claims 1 - 7.

19. A computer - readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed, it can implement the communication method according to any one of claims 1 - 7.

20. A chip for active noise reduction, including a processor and a memory, characterized in that, A computer program is stored in the memory, and the processor can execute the computer program to implement the communication method according to any one of claims 1 - 7.

Citation Information

Patent Citations

  • Channel selection method, device and system for Bluetooth wireless earphone

    CN112911450A

  • Method for avoiding interference from a cellular transmitter to the 2.4 / 5GHz ISM band

    US20070165754A1