CN115767488A - Communication method and device for true wireless Bluetooth headset, headset and system - Google Patents

Communication method and device for true wireless Bluetooth headset, headset and system Download PDF

Info

Publication number
CN115767488A
CN115767488A CN202210852319.1A CN202210852319A CN115767488A CN 115767488 A CN115767488 A CN 115767488A CN 202210852319 A CN202210852319 A CN 202210852319A CN 115767488 A CN115767488 A CN 115767488A
Authority
CN
China
Prior art keywords
channel
bluetooth
headset
earphone
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210852319.1A
Other languages
Chinese (zh)
Inventor
朱嘉俊
黄紫明
韦灵永
李文山
钟贤耀
张志英
劳铜霭
吴国炜
余鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN202210852319.1A priority Critical patent/CN115767488A/en
Publication of CN115767488A publication Critical patent/CN115767488A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication method using a real wireless Bluetooth earphone, wherein a first earphone and a second earphone form a real wireless Bluetooth earphone pair, wherein a private protocol is adopted between the first earphone and the second earphone for communication. The communication method disclosed by the invention can effectively improve the communication efficiency and the anti-interference performance between the first earphone and the second earphone.

Description

Communication method and device for true wireless Bluetooth headset, headset and system
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to a communication method and device for a real wireless Bluetooth headset, the headset and a system.
Background
True wireless bluetooth headsets (TWS headsets) have gained popularity since their inception, and as TWS headsets are used more and more widely in daily life, people have more and more stringent requirements for their performance. Because the working frequency band for performing bluetooth communication between the TWS earphones is 2.4GHz, and 2.4GHz is a wireless frequency band which is publicly and commonly used all over the world, when performing bluetooth communication between the TWS earphones, the TWS earphones are very easily interfered by signals of other devices in a wireless environment, especially broadband signals with strong energy, such as WIFI signals. The strong energy broadband signal with the working frequency band of 2.4GHz is easier to overlap with the Bluetooth signal sent or received by the TWS earphone in the time-frequency domain, so that the Bluetooth signal cannot be correctly received, the communication efficiency of the TWS earphone is reduced, and the stable operation of the TWS earphone is even influenced.
The following two main ways to solve the problem that the TWS headset communication is easily interfered in the prior art are provided:
first, since a terminal device (e.g., a handset) that is partially communicatively connected to a TWS headset has a function of screening available channels from a wireless environment, the TWS headset can directly perform bluetooth communication using a hopping table of the terminal device (i.e., a master device in a piconet). However, this method has a problem that since the terminal device and the TWS headset are usually located at different positions in space, they are subjected to different wireless interferences, and it is not reliable enough for the TWS headset to perform bluetooth communication by directly using the frequency modulation table of the terminal device.
And in the second mode, the anti-interference capability of the Bluetooth packet data is enhanced by coding the Bluetooth packet data transmitted and received between the TWS Bluetooth earphones. However, this method has a problem that when encoding the bluetooth packet data, an original packet of data is divided into two packets after encoding, and when the 1 st packet of data is successfully error-corrected at the receiving end and the 2 nd packet of data is not successfully error-corrected, both packets of data need to be retransmitted, which may result in a reduction in communication efficiency between the TWS bluetooth headsets.
Therefore, how to improve the communication interference rejection capability of the TWS bluetooth headset and improve the communication reliability and communication efficiency of the TWS bluetooth headset become problems to be solved urgently.
Disclosure of Invention
Based on the above situation, the main objective of the present invention is to provide a communication method and apparatus for a wireless bluetooth headset, a headset and a system thereof, so as to improve the reliability of the wireless bluetooth headset.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
in a first aspect, this embodiment discloses a communication method for a true wireless bluetooth headset, where the 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, and includes: step S100, counting the times of using and the times of being interfered of each Bluetooth channel of a first earphone in a detection period to obtain a first channel condition detection table, wherein one detection period is the time length when the first earphone receives a preset number of Bluetooth grouped data, and the condition that the Bluetooth channel is used once means that the first earphone at least receives one Bluetooth grouped data through the Bluetooth channel;
step S200, judging a usable channel and an unusable channel of a first earphone according to a first channel condition detection table to obtain a first channel statistical table, wherein the Bluetooth channel with the interfered times larger than a preset interference threshold value is the unusable channel, and the usable channel and the unusable channel of the first earphone are counted in the first channel statistical table;
step S300, receiving a second channel statistical table sent by a second earphone to the first earphone, wherein the second channel statistical table is used for counting usable channels and unusable channels of the second earphone;
step S400, when the number of intersections of the available channels in the first channel statistical table and the second channel statistical table is greater than or equal to a preset threshold value, the intersections of the available channels in the first channel statistical table and the second channel statistical table are taken to obtain a channel arbitration table;
and S500, converting the channel arbitration table into a new Bluetooth frequency hopping table, comparing the new Bluetooth frequency hopping table with the current Bluetooth frequency hopping table, updating the current Bluetooth frequency hopping table when the number of the usable or unusable state changes of the Bluetooth channels in the new Bluetooth frequency hopping table compared with the current Bluetooth frequency hopping table reaches a preset updating threshold value, enabling the current Bluetooth frequency hopping table to be consistent with the new Bluetooth frequency hopping table, and sending the new Bluetooth frequency hopping table to the second earphone, so that the first earphone and the second earphone both communicate according to the new Bluetooth frequency hopping table.
Preferably, step S200 includes:
step S210, setting a first initial channel statistical table for the first earphone, and setting the usable state of each Bluetooth channel in the first initial channel statistical table to be consistent with the current Bluetooth frequency hopping table;
step S220, determining a usable channel and a non-usable channel according to the first channel condition detection table;
step S230, updating the first initial channel statistics table according to the determination result to obtain a first channel statistics table.
Preferably, the determination manner in step S220 includes:
when the Bluetooth channel k in the first initial channel statistical table is an unavailable channel, if the Bluetooth channel k is enabled in the first channel condition detection table and the interfered times are less than a preset undetermined threshold value, marking the Bluetooth channel k as the undetermined channel of the first earphone for one time;
when the bluetooth channel k is marked as the pending channel of the first headset for M times in M execution cycles and M is greater than the preset available threshold, it is determined that the bluetooth channel k is the available channel of the first headset, wherein the execution from steps S100 to S500 is completed as one execution cycle.
Preferably, before step S220, the method further includes:
step S201, counting the packet error rate of each Bluetooth channel of the first earphone in a preset detection period;
the determination method in step S220 further includes:
when the available state of the bluetooth channel k in the initial channel statistical table is available, if the packet error rate of the first earphone in the bluetooth channel k is greater than the preset packet error threshold value, it is determined that the bluetooth channel k is an unavailable channel of the first earphone.
Preferably, when the number of available channels of the first headset is smaller than the preset threshold in the determination result of step S220, step S230 further includes:
and sequentially setting the Bluetooth channels with the interfered times smaller than a preset alternative threshold value as the usable channels of the first earphone from small to large according to the packet error rate until the number of the usable channels of the first earphone reaches the preset threshold value.
Preferably, the first earphone is a master earphone, the second earphone is a slave earphone, and the step S400 further includes:
and when the master earphone determines that the number of intersections is smaller than the preset threshold value, the master earphone sets the unusable channels in the channel arbitration table to be usable channels from top to bottom according to the usable priority of the slave earphone until the number of the usable channels in the channel arbitration table reaches the preset threshold value.
Preferably, in step S500, when the number of available bluetooth channels in the new bluetooth frequency hopping table with changed statuses reaches the update threshold, the first headset further sends the new bluetooth frequency hopping table to the bluetooth sound source device, so that the bluetooth sound source device sends bluetooth packet data to the first headset and/or the second headset with reference to the new bluetooth frequency hopping table.
Preferably, the first earphone and the second earphone are in Bluetooth communication through a custom protocol;
the new bluetooth frequency hopping list comprises the available channel of the second earphone and the available channel of the first earphone, so that the first earphone sends the bluetooth data packet to the second earphone according to the available channel of the second earphone, and the second earphone sends the bluetooth data packet to the first earphone according to the available channel of the first earphone.
Preferably, before step S100, the method further comprises:
step S1000, during the period that the Bluetooth channel A receives the Bluetooth grouping data, monitoring the power change of the Bluetooth channel in a preset channel range adjacent to the Bluetooth channel A, wherein when the power of the Bluetooth channel in the preset channel range is simultaneously increased and the power difference value after the power is increased is smaller than a preset threshold value, and/or when the power of the Bluetooth channel in the preset channel range is simultaneously decreased and the power difference value before the power is decreased is smaller than the preset threshold value, the Bluetooth channel A and the Bluetooth channel in the preset channel range are judged to have broadband signal interference.
In a second aspect, this embodiment discloses a device for implementing bluetooth communication through a wireless headset, where the wireless headset is a first headset, the first headset is used to form a wireless bluetooth headset pair with a second headset, and the device for implementing bluetooth communication includes:
a channel condition detection module (100) for counting the number of times each bluetooth channel of the first headset is used and the number of times the bluetooth channel is interfered within a detection period to obtain a first channel condition detection table, wherein one detection period is the time length that the first headset receives a preset number of bluetooth packet data, and the bluetooth channel is used once means that the first headset receives at least one bluetooth packet data through the bluetooth channel;
the channel statistical module (200) is used for judging the usable channel and the unusable channel of the first earphone according to the first channel condition detection table to obtain a first channel statistical table, wherein the Bluetooth channel with the interfered times larger than a preset interference threshold value is the unusable channel;
a receiving module (300) for receiving a second channel statistical table sent by a second earphone to the first earphone, wherein the second channel statistical table is used for counting usable channels and unusable channels of the second earphone;
the available channel arbitration module (400) is used for obtaining a channel arbitration table by taking the intersection of the available channels in the first channel statistical table and the second channel statistical table when the number of the intersection of the available channels in the first channel statistical table and the second channel statistical table is greater than or equal to a preset threshold value;
the frequency hopping table obtaining module (500) is used for converting the channel arbitration table into a new Bluetooth frequency hopping table, comparing the frequency hopping table with the current Bluetooth frequency hopping table, updating the current Bluetooth frequency hopping table when the number of the usable or unusable state changes of the Bluetooth channels in the new Bluetooth frequency hopping table is equal to a preset updating threshold value, enabling the current Bluetooth frequency hopping table to be consistent with the new Bluetooth frequency hopping table, and sending the new Bluetooth frequency hopping table to the second earphone, so that the first earphone and the second earphone can communicate according to the new Bluetooth frequency hopping table.
Preferably, the channel statistics module (200) further comprises:
an initialization submodule (210) for setting a first initial channel statistical table for the first earphone, and enabling the usable state of each Bluetooth channel in the first initial channel statistical table to be consistent with the current Bluetooth frequency hopping table;
a usable decision sub-module (220) for deciding a usable channel and a non-usable channel according to the first channel condition detection table;
and the channel statistical table updating submodule (230) is used for updating the first initial channel statistical table according to the judgment result to obtain a first channel statistical table.
Preferably, 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 condition detection table and the number of times of interference is less than a preset pending threshold, the available determination submodule (220) is further configured to mark the bluetooth channel k as a pending channel of the first headset for one time;
when the bluetooth channel k is marked as a pending channel of the first headset for M times in M execution cycles and M is greater than a preset available threshold, the determining submodule (220) may be used to determine that the bluetooth channel k is a usable channel of the first headset.
Preferably, the channel statistics module (200) further comprises:
the error packet rate counting submodule (201) is used for counting the error packet rate of each Bluetooth channel of the first earphone in a preset detection period;
the usability determining submodule (220) is further configured to determine that the bluetooth channel k is an unusable channel of the first headset if the packet error rate of the first headset on the bluetooth channel k is greater than a preset packet error threshold value when the usability status of the bluetooth channel k in the initial channel statistics table is usable.
Preferably, when the number of the usable channels of the first earphone in the determination result of the usable determining submodule (220) is smaller than the preset threshold, the channel statistic table updating submodule (230) is further configured to set the number of times of interference of the bluetooth channels with the interference smaller than the preset replacement threshold as the usable channels of the first earphone in sequence from small to large according to the error packet rate until the number of the usable channels of the first earphone reaches the preset threshold.
Preferably, the first earphone is a master earphone, the second earphone is a slave earphone, and the receiving module (300), the available channel arbitration module (400) and the frequency hopping table obtaining module (500) are all arranged in the master earphone;
the available channel arbitration module (400) is further configured to, when the master earphone determines that the number of intersections is smaller than the preset threshold, set the available channels in the channel arbitration table from top to bottom according to the priorities that the slave earphones can use until the number of the available channels in the channel arbitration table reaches the preset threshold.
Preferably, the frequency hopping table obtaining module (500) is further configured to, when the number of available bluetooth channels in the new bluetooth frequency hopping table with changed statuses reaches the update threshold, the first headset further sends the new bluetooth frequency hopping table to the bluetooth sound source device, so that the bluetooth sound source device sends the bluetooth packet data to the first headset and/or the second headset with reference to the new bluetooth frequency hopping table.
Preferably, the first earphone and the second earphone are in Bluetooth communication through a custom protocol;
the new bluetooth hopping list includes the available channel of the second headset and the available channel of the first headset, so that the first headset transmits bluetooth data packets to the second headset according to the available channel of the second headset, and the second headset transmits bluetooth data packets to the first headset according to the available channel of the first headset.
Preferably, the apparatus further comprises:
and the monitoring module (1000) is used for monitoring the power change of the Bluetooth channel in a preset channel range adjacent to the Bluetooth channel A during the Bluetooth packet data receiving period of the Bluetooth channel A, wherein when the power of the Bluetooth channel in the preset channel range is simultaneously increased and the power difference value after the power is increased is smaller than a preset threshold value, and/or when the power of the Bluetooth channel in the preset channel range is simultaneously decreased and the power difference value before the power is decreased is smaller than the preset threshold value, the Bluetooth channel A and the Bluetooth channel in the preset channel range are judged to have broadband signal interference.
In a third aspect, the present embodiment discloses a true wireless bluetooth headset, to which the communication method as disclosed in the first aspect is applied.
In a fourth aspect, the present embodiment discloses a pair of true wireless bluetooth headsets, which includes a first headset and a second headset that are paired, where the first headset is the true wireless bluetooth headset disclosed in the first aspect.
In a fifth aspect, the present embodiment discloses a two-end communication system of a true wireless bluetooth headset, the two-end communication system includes a pair of a first headset and a second headset, the first headset is configured to implement the communication method as disclosed in the first aspect;
and the second earphone is used for sending the second channel statistical table to the first earphone and receiving the new Bluetooth frequency hopping table sent by the first earphone to the second earphone so as to enable the first earphone and the second earphone to communicate according to the new Bluetooth frequency hopping table.
In a sixth aspect, this embodiment discloses a three-terminal system for bluetooth communication, including:
the Bluetooth sound source equipment is used for providing audio data;
the first earphone is used for converting the channel arbitration table into a new Bluetooth frequency hopping table and comparing the new Bluetooth frequency hopping table with the current Bluetooth frequency hopping table;
the second earphone is a true wireless Bluetooth earphone pair formed by the second earphone and the first earphone, and the second earphone sends the channel statistical table of the second earphone to the first earphone and receives a new Bluetooth frequency hopping table sent by the first earphone;
the first earpiece is configured to implement the communication method as disclosed in the first aspect.
In a seventh aspect, the present embodiment discloses a computer-readable storage medium on which a computer program is stored, which, when executed, is capable of implementing the communication method as disclosed in the first aspect.
In an eighth aspect, the present embodiment discloses a chip for active noise reduction, which includes a processor and a memory, where the memory stores a computer program, and the processor can execute a computational program to implement the communication method disclosed in the first aspect.
[ PROBLEMS ] A medicine for treating diabetes
The embodiment of the invention discloses a communication method of a true wireless Bluetooth headset, wherein a first headset counts the number of times of interference of each Bluetooth channel in a detection period to obtain a first channel statistical table, and then the first channel statistical table is sent to a second headset so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping table, and the second headset performs frequency hopping according to the first Bluetooth frequency hopping table when sending Bluetooth grouping data to the first headset; and the first earphone also receives a second channel statistical table sent by the second earphone to the first earphone, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first earphone can carry out frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth grouping data to the second Bluetooth earphone. Compared with a method for performing headset-to-headset internal communication by directly using a bluetooth frequency hopping table of a terminal device, the communication method disclosed by the embodiment can effectively ensure that both the first headset and the second headset can receive data on a channel which can be used by the first headset and the second headset during the internal communication of the headset pair, and the channel which can be used is a bluetooth channel in which the interference on data received by the headset in the current wireless environment is less or no interference, so that the anti-interference capability of the communication between the first headset and the second headset is improved by the communication disclosed by the embodiment. And when wireless environment changes, first earphone and second earphone also can in time update respective bluetooth frequency hopping table to guarantee always can communicate through the relatively reliable channel between first earphone and the second earphone, thereby improved the inside communication efficiency of earphone pair.
In addition, in the communication method disclosed in this embodiment, the first earphone and the second earphone communicate with each other by using a custom protocol, and the two earphones are combined to detect respective bluetooth channels with high reliability for receiving data, and obtain, according to available channel conversion of the other earphone, a bluetooth frequency hopping table used when sending data to the other earphone, so that it is ensured that the first earphone and the second earphone can both receive data through the channels with relatively reliable data received by themselves, thereby improving anti-interference performance and reliability of communication between the first earphone and the second earphone, and further improving communication efficiency between the first earphone and the second earphone.
Other advantages of the present invention will be described in the detailed description, and those skilled in the art will understand the technical features and technical solutions presented in the description.
Drawings
Embodiments of the present invention will be described below with reference to the accompanying drawings. In the figure:
fig. 1 is a flowchart illustrating a communication method of a true wireless bluetooth headset according to this embodiment;
fig. 2 is a schematic structural diagram of an apparatus for implementing bluetooth communication disclosed in this embodiment;
fig. 3 is a schematic diagram of a pair of modules of a true wireless bluetooth headset disclosed in this embodiment;
fig. 4 is a schematic diagram of a two-end communication system module disclosed in the present embodiment;
fig. 5 is a schematic diagram of a three-terminal system module disclosed in this embodiment.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in order to avoid obscuring the nature of the present invention, and well-known methods, procedures, and components have not been described in detail.
Furthermore, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
For the bluetooth communication of the true wireless bluetooth headset, because the working frequency band of the true wireless bluetooth headset is 2.4GHz and is also a wireless frequency band which is publicly and commonly used all over the world, the true wireless bluetooth headset is very easily interfered by other wireless signals during communication, such as broadband signals with strong energy, such as WIFI signals.
Please refer to fig. 1, which is a flowchart illustrating a communication method of a wireless bluetooth headset according to this embodiment. The communication method is used for a first earphone, the first earphone is used for forming a true wireless Bluetooth earphone pair with a second earphone, the first earphone is a true wireless Bluetooth earphone, the second earphone can be a true wireless Bluetooth earphone or other earphones, and wireless communication can be carried out between the first earphone and the second earphone through Bluetooth.
The communication method comprises steps S1000, S100, S200, S300, S400 and S500, wherein:
step S1000, during the period that the Bluetooth channel A receives the Bluetooth grouping data, monitoring the power change of the Bluetooth channel in the preset channel range adjacent to the Bluetooth channel A, wherein when the power of the Bluetooth channel in the preset channel range rises simultaneously and the power difference value after the rise is smaller than the preset threshold value, and/or when the power of the Bluetooth channel in the preset channel range falls simultaneously and the power difference value before the fall is smaller than the preset threshold value, the Bluetooth channel A and the Bluetooth channel in the preset channel range are judged to have broadband signal interference.
It should be noted that, the bluetooth channel a receiving the bluetooth packet data sent by the external device or the second headset means that the first headset performs data receiving operation through the bluetooth channel a, but is not necessarily able to receive the data, that is, the bluetooth packet data may be successfully received or may not be successfully received. Bluetooth channel a may be any one or more bluetooth channels.
Step S100, counting the number of times of interference of each Bluetooth channel of the first earphone and the number of times of use of each Bluetooth channel of the first earphone in a detection period, and judging the usable channel and the unusable channel of the first earphone according to the counting result to obtain a first channel counting table, wherein the usable channel and the unusable channel of the first earphone are counted in the first channel counting table. In this embodiment, one detection period is the duration of several bluetooth packet data received by the first headset, so the duration of different detection periods may be different.
In this embodiment, the bluetooth channel is used once, which means that the first headset receives at least one bluetooth packet data through the bluetooth channel. In this embodiment, the usable channel of the first headset is a bluetooth channel through which the first headset can reliably receive bluetooth packet data, for example, the reliability of receiving data may be determined by parameters such as the number of times interference is detected on the bluetooth channel, a packet loss rate, a packet error rate, and the like. The unavailable channel of the first earphone is a bluetooth channel with too high packet error rate and packet loss rate when the first earphone cannot receive bluetooth packet data or receives bluetooth packet data. The usable channel and the unusable channel of the second earphone are identical to those of the first earphone, and therefore, the description thereof is omitted.
In this embodiment, the bluetooth channel with the interfered frequency greater than the preset interference threshold is an unusable channel, wherein the specific value of the interference threshold is empirically obtained by those skilled in the art. In a specific embodiment, the interference threshold is greater than 1, so as to reduce the situation that the number of available channels in the interference environment is too small to affect the normal communication of the headset.
And S200, sending the first channel statistical table to a second earphone so that the second earphone can convert the first channel statistical table into a first Bluetooth frequency hopping table. In this embodiment, the first bluetooth frequency hopping table is obtained by converting the available channels in the first channel statistics table according to a preset rule, so that when the second 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 may be obtained by directly converting according to the first channel statistics table, or may be obtained by updating a previously used first bluetooth frequency hopping table according to the first channel statistics table.
Step S300, receiving a second channel statistical table sent by the second earphone to the first earphone. In this embodiment, the available channel and the unavailable channel of the second headphone are counted in the second channel statistical table, and the second channel statistical table may be obtained by a method consistent with the first channel statistical table, or by other methods, as long as the available channel and the unavailable channel of the second headphone in the current environment can be accurately counted.
And S400, converting the usable channel in the second channel statistical table into a second Bluetooth frequency hopping table according to a preset rule. In this embodiment, since the bluetooth channel has two use states of usable and unusable, one of the usable channel and the unusable channel can be obtained from the other, so when the second bluetooth frequency hopping table is obtained by conversion, the bluetooth frequency hopping table can be directly based on the usable channel in the second channel statistical table or indirectly based on the usable channel in the second channel statistical table.
And step S500, frequency hopping is carried out according to the second Bluetooth frequency hopping table, and Bluetooth grouping data are sent to the second Bluetooth headset.
The embodiment of the invention discloses a communication method of a true wireless Bluetooth headset, wherein a first headset counts the number of times of interference of each Bluetooth channel in a detection period to obtain a first channel statistical table, and then the first channel statistical table is sent to a second headset so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping table, and the second headset performs frequency hopping according to the first Bluetooth frequency hopping table when sending Bluetooth grouping data to the first headset; and the first earphone also receives a second channel statistical table sent by the second earphone to the first earphone, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first earphone can carry out frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth grouping data to the second Bluetooth earphone. Compared with a method for performing headset-to-headset internal communication by directly using a bluetooth frequency hopping table of a terminal device, the communication method disclosed by the embodiment can effectively ensure that the first headset and the second headset can both receive data on available channels when the headset pair performs internal communication, and the available channels are bluetooth channels with less interference or no interference to the headset receiving data in the current wireless environment, so that the communication disclosed by the embodiment improves the anti-interference capability of the communication between the first headset and the second headset. And when wireless environment changes, first earphone and second earphone also can in time update respective bluetooth frequency hopping table to guarantee always can communicate through the relatively reliable channel between first earphone and the second earphone, thereby improved the inside communication efficiency of earphone pair.
In addition, in the communication method disclosed in this embodiment, a user-defined protocol is used for communication between the first earphone and the second earphone, and the two earphones are combined to detect respective bluetooth channels with higher reliability for receiving data, and obtain, according to available channel conversion of the other earphone, the bluetooth frequency hopping table used when sending data to the other earphone, so that it is ensured that the first earphone and the second earphone can both receive data through the channels with relatively reliable data received by themselves, and thus the interference resistance and reliability of communication between the first earphone and the second earphone are improved, and further the communication efficiency between the first earphone and the second earphone is improved.
In addition, in the communication method disclosed in the embodiment, when receiving the bluetooth packet data, the true wireless bluetooth headset can detect whether there is wideband signal interference in the bluetooth channel and the adjacent bluetooth channel of the bluetooth channel, and there is no need to specially send or receive the bluetooth packet data for probing, thereby saving the communication burden of the true wireless bluetooth headset, enabling the data transmission of the true wireless bluetooth headset to be completely used for bluetooth communication rather than the interference probing of the bluetooth channel, and further improving the communication efficiency of the true wireless headset.
In an embodiment, the step S100 of determining the usable channel and the unusable channel of the first earphone to obtain the first channel statistic 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. In a specific embodiment, the first initial channel statistic table may be a newly generated table for the first headset, or may be the first initial channel statistic table in the previous execution period.
In step S120, the available channel and the unavailable channel are determined according to the statistical result.
Step S130, updating the first initial channel statistical table according to the determination result to obtain a first channel statistical table.
In a specific embodiment, an unusable channel should be newly determined as a usable channel when interference on the previously determined unusable channel disappears due to a change in the wireless environment. Therefore, the determination method in step S120 includes:
when the at least one Bluetooth channel is an unavailable channel in the first initial channel statistical table, the at least one Bluetooth channel is enabled, and the number of times of interference is less than a preset undetermined threshold value, marking the at least one Bluetooth channel as an undetermined channel of the first earphone for one time respectively;
and when a certain Bluetooth channel is marked as a pending channel of the first earphone for M times in M execution cycles and M is greater than a preset available threshold value, determining that the certain Bluetooth channel is a usable channel of the first earphone.
For example, since the execution of steps S100-S500 is completed as an execution cycle, in the ith execution cycle, the bluetooth channel a and the bluetooth channel B are both recorded as unusable channels in the first initial channel statistics table, and the statistics result shows that there is a situation where the bluetooth channel a and the bluetooth channel B are enabled, that is, the first headset receives at least one bluetooth packet data through the bluetooth channel a and the bluetooth channel B, respectively, and the number of times of interference detection in the bluetooth channel a and the bluetooth channel B is less than the preset pending threshold, the pending channel of the first headset is marked for the bluetooth channel a and the bluetooth channel B, respectively.
In the (i + 1) th execution cycle, if the situation that the Bluetooth channel A is enabled exists again and the number of times of detecting the interference is less than the preset undetermined threshold value, marking the undetermined channel of the first earphone for the second time on the Bluetooth channel A. When the bluetooth channel a is marked as the pending channel of the first headset for M consecutive times (M is greater than the available threshold), it is determined that there is no interference in the bluetooth channel a, and the first headset can reliably receive data through the bluetooth channel a, and then the bluetooth channel a is determined as the available channel of the first headset. The pending threshold and the available thresholds are empirically available to those skilled in the art, for example the pending threshold may be 0, 1, 2, etc.
Normally, when the pair of headphones intercommunicates, a channel determined to be unusable is not used. However, since the first earphone can also perform bluetooth communication with a bluetooth sound source device such as a mobile phone, a computer, a player, etc., and the bluetooth sound source device may send data to the first earphone through an unavailable channel in the first channel statistics table, if the first earphone can continuously and successfully receive the data sent by the bluetooth sound 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 the pending channel of the first headset M times in M execution cycles, and M is greater than the preset available threshold, it may be determined that interference on the bluetooth channel has disappeared, and then the bluetooth channel k should be determined as the available channel of the first headset, so that on the premise of ensuring the communication interference immunity of the first headset, the number of available channels can also be increased, so as to further improve the communication efficiency of the first headset. In a specific embodiment, before step S120, the method further includes:
step S101, counting the packet error rate of each Bluetooth channel of the first earphone in a preset detection period;
the determination method in step S120 further includes:
and when the use state of the bluetooth channel k in the initial channel statistical table is usable and the packet error rate of the bluetooth channel k is greater than the preset packet error threshold value, determining that the bluetooth channel k is an unusable channel of the first earphone.
Besides the number of times of detecting the interference as the basis for whether the Bluetooth channel can be used, the error packet rate of the Bluetooth channel is counted, so that the Bluetooth channel with the error packet rate larger than the error packet threshold value is judged as an unusable channel, the error packet rate of the usable channel is ensured not to be too high, and the reliability of the Bluetooth communication between the first earphones is further improved.
In a specific embodiment, when the number of available channels of the first headset is smaller than the preset threshold in the determination result of step S120, step S130 further includes:
and sequentially setting the Bluetooth channels with the interfered times smaller than the preset threshold value as the usable channels of the first earphone according to the sequence of the packet error rate from small to large until the number of the usable channels of the first earphone reaches the preset threshold value.
If the number of the available channels is too small, the communication efficiency between the first earphone and the second earphone is reduced, even normal communication cannot be achieved, therefore, when the number of the available channels is smaller than a preset threshold value, the undisturbed bluetooth channels are sequentially set as the available channels according to the sequence of the packet error rates from small to large until the number of the available channels reaches the preset threshold value, and therefore on the premise that the number of the available channels can meet the normal communication requirement, the packet error rates of the available channels are guaranteed to be as small as possible, the undisturbed channels are guaranteed, and the reliability is as high as possible.
In a specific embodiment, step S400 further includes:
step S410, comparing the second Bluetooth frequency hopping list with the current second Bluetooth frequency hopping list, and updating the current second Bluetooth frequency hopping list when the number of the Bluetooth channels with changed states in the second Bluetooth frequency hopping list reaches a preset updating threshold value, so that the current second Bluetooth frequency hopping list is consistent with the second Bluetooth frequency hopping list.
When the headset pair is in an environment with wireless interference, the number of bluetooth channels which can reliably receive data by the second headset is limited, when the number of the bluetooth channels with changed use states in the new bluetooth frequency hopping table does not reach a preset updating threshold value, that is, the current bluetooth communication environment is not changed greatly or even not changed, if the first headset still sends the new bluetooth frequency hopping table to the second headset, the available channels of the second headset can be occupied unnecessarily, especially in an environment with strong interference, frequent sending of the new bluetooth frequency hopping table can even lead to further reduction of communication efficiency between the two headsets, and in addition, frequent receiving and sending or updating of the bluetooth frequency hopping table can also bring energy loss. Therefore, the updating threshold value is set, so that when the wireless environment is changed slightly or not changed, the first earphone does not need to send a new Bluetooth frequency hopping table, unnecessary communication burden between the earphones can be reduced, communication efficiency between the first earphone and the second earphone is guaranteed, and energy loss of the earphones is saved. When the wireless environment is greatly changed, the first earphone and the second earphone can also receive and transmit in time and update the Bluetooth frequency hopping list to a new Bluetooth frequency hopping list, so that the Bluetooth grouping data can be always received through an optimal channel in the communication process between the two earphones, and the communication efficiency and the communication reliability between the first earphone and the second earphone are improved.
In a specific embodiment, the current first bluetooth frequency hopping table in step S110 of the (i + 1) th execution cycle is the first bluetooth frequency hopping table of the ith execution cycle, so in the ith execution cycle, after step S200, the method further includes:
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.
In a specific embodiment, when the second headphone obtains the second channel statistics table in a manner consistent with the first headphone, after step S400, the method further includes:
step S600, sending the second bluetooth frequency modulation table to the second headset, so that the second headset uses the second bluetooth frequency modulation table in the ith execution cycle as the current second bluetooth frequency modulation table in the (i + 1) th execution cycle.
The communication method of the real wireless Bluetooth headset disclosed by the embodiment of the invention comprises the steps that a first headset counts the interfered times of each Bluetooth channel in a detection period to obtain a first channel statistical table, and then the first channel statistical table is sent to a second headset so that the second headset converts the first channel statistical table into a first Bluetooth frequency hopping table, and the second headset carries out frequency hopping according to the first Bluetooth frequency hopping table when sending Bluetooth grouping data to the first headset; and the first earphone also receives a second channel statistical table sent by the second earphone to the first earphone, and converts the second channel statistical table into a second Bluetooth frequency hopping table, so that the first earphone can carry out frequency hopping according to the second Bluetooth frequency hopping table and send Bluetooth grouping data to the second Bluetooth earphone. Compared with a method for performing headset-to-headset internal communication by directly using a bluetooth frequency hopping table of a terminal device, the communication method disclosed by the embodiment can effectively ensure that the first headset and the second headset can both receive data on available channels when the headset pair performs internal communication, and the available channels are bluetooth channels with less interference or no interference to the headset receiving data in the current wireless environment, so that the communication disclosed by the embodiment improves the anti-interference capability of the communication between the first headset and the second headset. And when wireless environment changes, first earphone and second earphone also can in time update respective bluetooth frequency hopping table to guarantee always can communicate through relatively reliable channel between first earphone and the second earphone, thereby improved the inside communication efficiency of earphone pair.
In addition, in the communication method disclosed in this embodiment, a user-defined protocol is used for communication between the first earphone and the second earphone, and the two earphones are combined to detect respective bluetooth channels with higher reliability for receiving data, and obtain, according to available channel conversion of the other earphone, the bluetooth frequency hopping table used when sending data to the other earphone, so that it is ensured that the first earphone and the second earphone can both receive data through the channels with relatively reliable data received by themselves, and thus the interference resistance and reliability of communication between the first earphone and the second earphone are improved, and further the communication efficiency between the first earphone and the second earphone is improved.
The embodiment also discloses a device for realizing Bluetooth communication through the real wireless earphone, wherein the real wireless earphone is a first earphone, and the first earphone and the second earphone form a real wireless Bluetooth earphone pair.
Please refer to fig. 2, which is a schematic structural diagram of an apparatus for implementing bluetooth communication disclosed in this embodiment, the apparatus for implementing bluetooth communication includes a monitoring module 1000, a channel statistics module 100, a sending module 200, a receiving module 300, and a converting module 400, wherein:
the monitoring module 1000 is configured to monitor a power change of a bluetooth channel in a preset channel range adjacent to the bluetooth channel a during a period when the bluetooth channel a receives bluetooth packet data, where when the bluetooth channel in the preset channel range simultaneously generates a power increase and a power difference after the power increase is smaller than a preset threshold, and/or when the bluetooth channel in the preset channel range simultaneously generates a power decrease and a power difference before the power decrease is smaller than the preset threshold, it is determined that both the bluetooth channel a and the bluetooth channel in the preset channel range have wideband signal interference;
the channel counting module 100 is configured to count the number of times that each bluetooth channel of the first headset is interfered in one detection period, and determine, according to a statistical result, a usable channel and an unusable channel of the first headset to obtain a first channel counting table, where a bluetooth channel with an interfered number greater than a preset interference threshold is an unusable channel, and the usable channel and the unusable channel of the first headset are counted in the first channel counting table;
the transmitting module 200 is configured to transmit 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, where the first bluetooth frequency hopping table is obtained by converting according to a preset rule based on available channels in the first channel statistics table, so that when the second headset transmits bluetooth packet data to the first headset, frequency hopping is performed according to the first bluetooth frequency hopping table;
a receiving module 300, configured to receive a second channel statistics table sent by a second headset to the first headset, where an available channel and an unavailable channel of the second headset are counted in the second channel statistics table;
a conversion module 400, configured to convert the available channel in the second channel statistics table into a second bluetooth frequency hopping table according to a preset rule;
the sending module 200 is further configured to hop frequency according to the second bluetooth frequency hopping table and send the bluetooth packet data to the second bluetooth headset.
In a specific embodiment, the channel statistics module 100 is further configured to set a usage state of each bluetooth channel in a first initial channel statistics table of the first headset to be consistent with a current first bluetooth frequency hopping table;
judging a usable channel and a non-usable channel according to the statistical result of the first earphone;
and updating the first initial channel statistical table according to the judgment result to obtain a first channel statistical table.
In a specific embodiment, the channel counting module 100 is further configured to count the number of times each bluetooth channel of the first headset is used, where a bluetooth channel is used once means that the first headset receives at least one bluetooth packet data through the bluetooth channel;
the channel statistics module 100 determines usable and unusable channels in the following manner:
when the at least one Bluetooth channel is an unavailable channel in the first initial channel statistical table, the at least one Bluetooth channel is enabled, and the number of times of interference is less than a preset undetermined threshold value, marking the at least one Bluetooth channel as an undetermined channel of the first earphone for one time respectively;
and when the Bluetooth channel k is marked as the pending channel of the first earphone for M times in M execution cycles and M is greater than a preset available threshold, determining that the Bluetooth channel k is the available channel of the first earphone.
In a specific embodiment, the channel statistics module 100 is further configured to perform statistics on packet error rates of bluetooth channels of the first headset in a preset detection period;
the channel statistics module 100 also determines usable and unusable channels by:
and when the use state of the Bluetooth channel k in the initial channel statistical table is usable and the packet error rate of the Bluetooth channel k is greater than the preset packet error threshold value, determining that the Bluetooth channel k is an unusable channel of the first earphone.
In a specific embodiment, when the number of available channels of the first earphone in the determination result of the channel statistics module 100 is smaller than the preset threshold, the channel statistics module 100 is further configured to set the bluetooth channels with the interfered times smaller than the preset threshold as the available channels of the first earphone in sequence from small to large in error packet rate until the number of available channels of the first earphone reaches the preset threshold.
In a specific embodiment, the converting module 400 is further configured to compare the second bluetooth frequency hopping list with a current second bluetooth frequency hopping list, and update the current second bluetooth frequency hopping list when the number of bluetooth channels with changed states in the second bluetooth frequency hopping list reaches a preset update threshold, so that the current second bluetooth frequency hopping list is consistent with the second bluetooth frequency hopping list.
In a specific embodiment, the receiving module 300 is further configured to receive a first bluetooth frequency hopping table, so that the channel statistics module 100 uses the first bluetooth frequency hopping table in the ith execution cycle as the current first bluetooth frequency hopping table in the (i + 1) th execution cycle;
in a specific embodiment, the sending module 200 is further configured 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.
The embodiment also discloses a true wireless Bluetooth headset, and the communication method disclosed by the embodiment is applied to the true wireless Bluetooth headset.
Please refer to fig. 3, which is a schematic diagram of a pair of modules of a true wireless bluetooth headset disclosed in this embodiment. The true wireless bluetooth headset pair comprises a pair of a first headset 10 and a second headset 11. In this embodiment, at least the first earphone 10 is the true wireless bluetooth earphone disclosed in the above embodiments
In an embodiment, after the first headset 10 sends the new bluetooth hopping list to the second headset 11, if the second headset 11 does not successfully receive the new bluetooth hopping list, the second headset 11 still sends bluetooth packet data to the first headset 10 according to the current bluetooth hopping list, and the first headset 10 sends bluetooth packet data to the second headset 11 according to the new bluetooth hopping list.
Fig. 4 is a schematic diagram of a two-end communication system module disclosed in this embodiment, where the two-end communication system includes a first earphone 20 and a second earphone 21, and the first earphone 20 is configured to implement the communication method disclosed in the above embodiment;
the second earphone 21 is configured to send the second channel statistics table to the first earphone 20, and receive a new bluetooth frequency hopping table sent by the first earphone 20 to the second earphone 21, so that the first earphone 20 and the second earphone 21 both communicate according to the new bluetooth frequency hopping table.
Referring to fig. 5, a schematic diagram of a three-terminal system module disclosed in this embodiment is further disclosed, where the three-terminal system includes:
a bluetooth sound source device 30 for providing audio data;
a first earphone 31 for converting the channel arbitration table into a new bluetooth hopping frequency table and comparing the new bluetooth hopping frequency table with the current bluetooth hopping frequency table;
the second earphone 32, the true wireless bluetooth earphone pair formed with first earphone 31, the second earphone 32 sends the channel statistical table of the second earphone 32 to the first earphone 31, and receive the new bluetooth frequency hopping table sent out by the first earphone 31;
the first earphone 31 is configured to implement the communication method disclosed in the above embodiment.
The present embodiment also discloses a computer-readable storage medium on which a computer program is stored, which, when executed, is capable of implementing the communication method disclosed in the above embodiments.
The embodiment also discloses a chip for active noise reduction, which comprises a processor and a memory, wherein the memory stores computer programs, and the processor can execute the calculation program to realize the communication method disclosed by the embodiment.
It should be noted that the computer-readable storage medium according to the embodiments of the present disclosure is not limited to the above-mentioned embodiments, and may be, for example, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
It will be appreciated by those skilled in the art that the various preferences described above can be freely combined, superimposed without conflict. The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations 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 diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, for example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The numbering of the steps herein is for convenience of description and reference only and is not intended to limit the order of execution, the specific order of execution being determined by the technology itself, and one skilled in the art can determine various permissible and reasonable orders based on the technology itself.
It should be noted that the step numbers (letter or number numbers) are used to refer to some specific method steps in the present invention only for the purpose of convenience and brevity of description, and the order of the method steps is not limited by letters or numbers in any way. It will be clear to a person skilled in the art that the order of the steps of the method concerned, which is to be determined by the technique itself, should not be unduly limited by the presence of step numbers, and that a person skilled in the art can determine various permissible and reasonable orders of steps in accordance with the technique itself.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious or equivalent modifications and substitutions for details shown and described herein may be made by those skilled in the art without departing from the basic principles of the present invention.

Claims (20)

1. A communication method of a true wireless Bluetooth headset is used for a first headset, the first headset and a second headset form a true wireless Bluetooth headset pair, wherein a private protocol is adopted for communication between the first headset and the second headset, and the method comprises the following steps:
step S100, counting the number of times of interference on each Bluetooth channel of the first earphone in a detection period, and judging a usable channel and an unusable channel of the first earphone according to a counting result to obtain a first channel counting table, wherein the Bluetooth channel with the interference number greater than a preset interference threshold is the unusable channel, and the usable channel and the unusable channel of the first earphone are counted in the first channel counting table;
step S200, the first channel statistical table is sent to the second earphone, so that the second earphone can convert the first channel statistical table into a first Bluetooth frequency hopping table, wherein the first Bluetooth frequency hopping table is obtained by converting available channels in the first channel statistical table according to a preset rule, and therefore when the second earphone sends Bluetooth grouping data to the first earphone, frequency hopping is carried out according to the first Bluetooth frequency hopping table;
step S300, receiving a second channel statistical table sent by the second earphone to the first earphone, wherein the usable channel and the unusable channel of the second earphone are counted in the second channel statistical table;
step S400, converting the usable channel in the second channel statistical table into a second Bluetooth frequency hopping table according to a preset rule;
and step S500, carrying out frequency hopping according to the second Bluetooth frequency hopping table, and sending Bluetooth grouping data to the second Bluetooth headset.
2. The communication method of claim 1, wherein the step S100 of determining the usable channel and the unusable channel of the first headset to obtain a first channel statistic table comprises:
step S110, setting the use state of each Bluetooth channel in the first initial channel statistical table of the first earphone to be consistent with the current first Bluetooth frequency hopping table;
step S120, judging a usable channel and a non-usable channel according to the statistical result;
step S130, updating the first initial channel statistical table according to the determination result to obtain the first channel statistical table.
3. The communication method according to claim 2, wherein in the step S100, the number of times each bluetooth channel of the first earphone is used is counted, and a bluetooth channel is used once means that the first earphone receives at least one bluetooth packet data through the bluetooth channel;
the determination method in step S120 includes:
when at least one Bluetooth channel is an unavailable channel in the first initial channel statistical table, and the at least one Bluetooth channel has a situation of being enabled and is interfered for a number of times smaller than a preset undetermined threshold value, marking the at least one Bluetooth channel with the undetermined channel of the first earphone once respectively;
and when a certain Bluetooth channel is marked as a pending channel of the first earphone for M times in M execution cycles and M is greater than a preset available threshold value, determining that the certain Bluetooth channel is a usable channel of the first earphone.
4. The communication method of claim 2,
before the step S120, the method further includes:
step S101, counting the packet error rate of each Bluetooth channel of the first earphone in a preset detection period;
the determination method in step S120 further includes:
and when the use state of the Bluetooth channel k in the initial channel statistical table is usable and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold value, determining that the Bluetooth channel k is an unusable channel of the first earphone.
5. The communication method of claim 4,
when the number of available channels of the first headset is smaller than the preset threshold in the determination result of the step S120, the step S130 further includes:
and sequentially setting the Bluetooth channels with the interfered times smaller than the preset threshold value as the usable channels of the first earphone according to the sequence of the packet error rate from small to large until the number of the usable channels of the first earphone reaches the preset threshold value.
6. The communication method according to claim 4, wherein the step S400 further comprises:
step S410, comparing the second Bluetooth frequency hopping list with the current second Bluetooth frequency hopping list, and updating the current second Bluetooth frequency hopping list when the number of the Bluetooth channels with changed use states in the second Bluetooth frequency hopping list reaches a preset updating threshold value, so that the current second Bluetooth frequency hopping list is consistent with the second Bluetooth frequency hopping list.
7. The communication method according to any of claims 2-6, further comprising, in an i-th execution cycle, after said step S200:
step S210, receiving the first Bluetooth frequency hopping table, so as to take the first Bluetooth frequency hopping table in the ith execution cycle as the current first Bluetooth frequency hopping table in the (i + 1) th execution cycle;
after the step S400, the method further includes:
step S600, sending the second bluetooth frequency modulation table to the second headset, so that the second headset uses the second bluetooth frequency modulation table in the ith execution cycle as the current second bluetooth frequency modulation table in the (i + 1) th execution cycle.
8. The communication method according to any of claims 1-7, further comprising, before the step S100:
step S1000, during the period that the Bluetooth channel A receives the Bluetooth grouping data, monitoring the power change of the Bluetooth channel in a preset channel range adjacent to the Bluetooth channel A, wherein when the power of the Bluetooth channel in the preset channel range is simultaneously increased and the power difference value after the power is increased is smaller than a preset threshold value, and/or when the power of the Bluetooth channel in the preset channel range is simultaneously decreased and the power difference value before the power is decreased is smaller than the preset threshold value, the Bluetooth channel A and the Bluetooth channel in the preset channel range are both judged to have broadband signal interference.
9. An apparatus for implementing bluetooth communication via a true wireless headset, the true wireless headset being a first headset, the first headset and a second headset forming a true wireless bluetooth headset pair, the apparatus for implementing bluetooth communication comprising:
a channel counting module (100) configured to count the number of times that each bluetooth channel of the first headset is interfered in a detection period, and determine, according to a statistical result, an available channel and an unavailable channel of the first headset to obtain a first channel counting table, where a bluetooth channel with an interfered number greater than a preset interference threshold is an unavailable channel, and the first channel counting table counts the available channel and the unavailable channel of the first headset;
a sending module (200) configured to send 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, where the first bluetooth frequency hopping table is obtained by converting according to a preset rule based on available channels in the first channel statistics table, so that when the second headset sends bluetooth packet data to the first headset, frequency hopping is performed according to the first bluetooth frequency hopping table;
a receiving module (300) configured to receive a second channel statistics table sent by the second headset to the first headset, where the second channel statistics table is used to count available channels and unavailable channels of the second headset;
a conversion module (400) for converting the available channel in the second channel statistical table into a second bluetooth frequency hopping table according to a preset rule;
the sending module (200) is further configured to perform frequency hopping according to the second bluetooth frequency hopping table, and send bluetooth packet data to the second bluetooth headset.
10. The apparatus of claim 9, wherein the channel statistics module (100) is further configured 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 a usable channel and a non-usable channel according to the statistical result of the first earphone;
and updating the first initial channel statistical table according to the judgment result to obtain the first channel statistical table.
11. The apparatus as claimed in claim 10, wherein the channel counting module (100) is further configured to count a number of times each bluetooth channel of the first headset is used, where a bluetooth channel is used once means that the first headset receives at least one bluetooth packet data through the bluetooth channel;
the channel statistics module (100) determines usable and unusable channels by:
when at least one Bluetooth channel is an unavailable channel in the first initial channel statistical table, and the at least one Bluetooth channel has a situation of being enabled and is interfered for a number of times smaller than a preset undetermined threshold value, marking the at least one Bluetooth channel with the undetermined channel of the first earphone once respectively;
and when the Bluetooth channel k is marked as the pending channel of the first earphone for M times in M execution cycles and M is greater than a preset available threshold value, judging that the Bluetooth channel k is the available channel of the first earphone.
12. The apparatus of claim 10, wherein the channel statistics module (100) is further configured to perform statistics on packet error rates of bluetooth channels of the first headset within a preset detection period;
the channel statistics module (100) also determines usable and unusable channels by:
and when the use state of the Bluetooth channel k in the initial channel statistical table is usable and the packet error rate of the Bluetooth channel k is greater than a preset packet error threshold value, determining that the Bluetooth channel k is an unusable channel of the first earphone.
13. The apparatus according to claim 12, wherein when the number of the usable channels of the first headset is smaller than a preset threshold in the determination result of the channel statistics module (100), the channel statistics module (100) is further configured to set the bluetooth channels with the interfered times smaller than the preset threshold as the usable channels of the first headset in order from small to large packet error rates until the number of the usable channels of the first headset reaches the preset threshold.
14. The apparatus of claim 12, wherein the transition module (400) is further configured to compare the second bluetooth hopping list with a current second bluetooth hopping list, and when the number of bluetooth channels with changed states in the second bluetooth hopping list reaches a preset update threshold, update the current second bluetooth hopping list so that the current second bluetooth hopping list is consistent with the second bluetooth hopping list.
15. The apparatus of claim 10, wherein the receiving module (300) is further configured to receive the first bluetooth hopping table, such that the channel statistics module (100) treats the first bluetooth hopping table in an i execution cycle as the current first bluetooth hopping table in an i +1 execution cycle;
the sending module (200) is further configured to send the second bluetooth frequency modulation table to the second headset, so that the second headset uses the second bluetooth frequency modulation table in the ith execution cycle as the current second bluetooth frequency modulation table in the (i + 1) th execution cycle.
16. The apparatus of claim 10, wherein the apparatus further comprises:
the monitoring module (1000) is configured to monitor a power change of a bluetooth channel in a preset channel range adjacent to the bluetooth channel a during a period when the bluetooth channel a receives bluetooth packet data, where when a power difference value generated by the bluetooth channel in the preset channel range while increasing is smaller than a preset threshold and/or a power difference value generated by the bluetooth channel in the preset channel range while decreasing is smaller than the preset threshold, it is determined that the bluetooth channel a and the bluetooth channel in the preset channel range both have wideband signal interference.
17. A true wireless bluetooth headset, characterized in that the communication method according to any of claims 1-8 is applied to the true wireless bluetooth headset.
18. A pair of true wireless bluetooth headsets comprising a first headset and a second headset in pair, wherein the first headset is the true wireless bluetooth headset of claim 17.
19. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program is capable of implementing the communication method according to any one of claims 1 to 8 when executed.
20. A chip for active noise reduction comprising a processor and a memory, wherein a computer program is stored in the memory, and wherein the processor is capable of executing the computer program to implement the communication method according to any one of claims 1 to 8.
CN202210852319.1A 2022-07-19 2022-07-19 Communication method and device for true wireless Bluetooth headset, headset and system Pending CN115767488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210852319.1A CN115767488A (en) 2022-07-19 2022-07-19 Communication method and device for true wireless Bluetooth headset, headset and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210852319.1A CN115767488A (en) 2022-07-19 2022-07-19 Communication method and device for true wireless Bluetooth headset, headset and system

Publications (1)

Publication Number Publication Date
CN115767488A true CN115767488A (en) 2023-03-07

Family

ID=85350103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210852319.1A Pending CN115767488A (en) 2022-07-19 2022-07-19 Communication method and device for true wireless Bluetooth headset, headset and system

Country Status (1)

Country Link
CN (1) CN115767488A (en)

Similar Documents

Publication Publication Date Title
CN115767490A (en) True wireless Bluetooth headset and communication method, device and system thereof
US8159990B2 (en) Wireless audio data distribution using broadcast and bidirectional communication channels
US8619750B2 (en) Co-existence for co-located radios which operate in the same frequency band
CN109104684B (en) Microphone hole blockage detection method and related product
CN109257674B (en) Wearing condition detection method and device of wireless earphone and wireless earphone
CN109461450B (en) Audio data transmission method, system, storage medium and Bluetooth headset
CN112492449A (en) Wireless earphone receiver and wireless earphone
EP3151614A1 (en) Adjustment of bluetooth (bt) golden reception range in the presence of long term evolution (lte) interference
US11678810B2 (en) Sensor data transmissions
CN109587714B (en) Method, device, storage medium and Bluetooth headset for sending audio data
CN109089201B (en) Microphone hole blockage detection method and related product
CN111162883B (en) Data transmission method, device and system
CN113038316A (en) Earphone control method and device, Bluetooth earphone and storage medium
US10849105B2 (en) Wireless communication device and program for controlling communication mode of the same
KR20230015355A (en) Methods and devices for configuring HARQ-ACK feedback
CN115767488A (en) Communication method and device for true wireless Bluetooth headset, headset and system
WO2017193268A1 (en) Uplink data transmission method, terminal device, and network device
US11546705B2 (en) Adaptive multi-band hearing device
CN115767489A (en) Bluetooth communication method, device, earphone and system
CN109151699B (en) Microphone hole blockage detection method and related product
CN116491144A (en) Method for determining congestion degree, terminal device and computer storage medium
CN106856588B (en) Frequency point selection method and device for Bluetooth equipment
CN114650523B (en) Bluetooth communication method and device
WO2024039545A1 (en) Uplink management for true wireless earbuds
WO2024065418A1 (en) Data transmission method and apparatus, and device, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination