CN115767490A - True wireless Bluetooth headset and communication method, device and system thereof - Google Patents

True wireless Bluetooth headset and communication method, device and system thereof Download PDF

Info

Publication number
CN115767490A
CN115767490A CN202210852345.4A CN202210852345A CN115767490A CN 115767490 A CN115767490 A CN 115767490A CN 202210852345 A CN202210852345 A CN 202210852345A CN 115767490 A CN115767490 A CN 115767490A
Authority
CN
China
Prior art keywords
channel
bluetooth
earphone
headset
frequency hopping
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
CN202210852345.4A
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 CN202210852345.4A priority Critical patent/CN115767490A/en
Publication of CN115767490A publication Critical patent/CN115767490A/en
Priority to PCT/CN2023/100674 priority patent/WO2024016914A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication method of a real wireless Bluetooth earphone for a first earphone, wherein the first earphone and a second earphone form a real wireless Bluetooth earphone pair, the communication method comprises the steps of firstly counting the number of times of using and the number of times of being interfered of each Bluetooth channel of the first earphone in a detection period to obtain a first channel condition detection table, then 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, then receiving a second channel statistical table sent to the first earphone by the second earphone, summarizing the first channel statistical table and the second channel statistical table to obtain a channel arbitration table, then 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, and updating the current Bluetooth frequency hopping table when the number of the usable Bluetooth channels with the changed state in the new Bluetooth frequency hopping table reaches a preset updating threshold value. The communication method disclosed by the embodiment effectively ensures the anti-interference performance and reliability of the communication between the true wireless Bluetooth earphones.

Description

True wireless Bluetooth headset and communication method, device and system thereof
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to a true wireless Bluetooth headset and a communication method, a device and a system thereof.
Background
True wireless bluetooth headsets (TWS headsets) have been gaining popularity since their inception, with the increasing use of TWS headsets in everyday life, people have increasingly high requirements on 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, firstly, 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 directly using the frequency hopping table of the terminal device, and for this point, the prior art is not aware at all; secondly, in a wireless environment with interference, frequent transceiving of the hopping list results in a reduction in communication efficiency.
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 decrease in communication efficiency between the TWS bluetooth headset.
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 present invention provides a real wireless bluetooth headset, and a communication method, device and system thereof, so as to improve the reliability of bluetooth communication of the real wireless headset.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
in a first aspect, the present embodiment discloses a communication method for a true wireless bluetooth headset, where the method is used for a first headset, where the first headset is used to form a true wireless bluetooth headset pair with a second headset, and the method 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, taking the intersections of the available channels in the first channel statistical table and the second channel statistical table 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 unusable channel according to the first channel condition detection table;
step S230, updating the first initial channel statistical table according to the determination result to obtain a first channel statistical 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 number of times of interference is 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 less than the preset threshold in the determination result of step S220, step S230 further includes:
and setting the Bluetooth channels with the interfered times smaller than a preset alternative threshold value as the usable channels of the first earphone in sequence 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 main earphone determines that the number of intersections is less than a preset threshold value, the main 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 earphones in sequence until the number of 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 states 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 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.
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:
the system comprises a channel condition detection module (100) and a first channel condition detection table, wherein the channel condition detection module is used for counting the used times and the interfered times of each Bluetooth channel of a first earphone in a detection period to obtain the first channel condition detection table, one detection period is the time length for the first earphone to receive a preset number of Bluetooth packet data, and the one-time use of the Bluetooth channel means that the first earphone at least receives one Bluetooth packet data through the Bluetooth channel;
the channel counting 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 counting 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, 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, updating the current Bluetooth frequency hopping table, 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 earphone for M times in M execution cycles, and M is greater than a preset available threshold, the determining submodule (220) can be used for determining the bluetooth channel k as the available channel of the first earphone.
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 list obtaining module (500) is further configured to, when the number of available bluetooth channels in the new bluetooth frequency hopping list with changed states reaches the update threshold, send the new bluetooth frequency hopping list 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 list.
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, 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 first headset and a second headset which are paired, 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 headset 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 ] the present invention
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 use and the number of times of interference of each Bluetooth channel in a detection period to obtain a first channel condition detection table, obtains the first channel statistical table according to the statistical condition of the first channel condition detection table, receives a second channel statistical table sent by a second headset, combines and summarizes available channels of the first channel statistical table and the second channel statistical table to obtain a channel arbitration table, converts the channel arbitration table into a new Bluetooth frequency hopping table, and when the number of the Bluetooth channels with changeable available states in the new Bluetooth frequency hopping table reaches a preset updating threshold value, the first headset sends the new Bluetooth frequency hopping table to the second headset so that the first headset and the second headset both communicate according to the new Bluetooth frequency hopping table. By means of summarizing and combining the first channel statistical table and the second channel statistical table, the usable channel in the new bluetooth frequency hopping table is both the usable channel of the first earphone and the usable channel of the second earphone, when the first earphone and the second earphone communicate with each other, for the two earphones to receive bluetooth packet data, the usable channel can be used for receiving and sending the bluetooth packet data, and the usable channel is a bluetooth channel with less interference or no interference to the earphones in the current wireless environment.
In addition, when the wireless interference environment exists, the number of bluetooth channels that the second headset can reliably receive data is limited, and when the number of bluetooth channels with changed usable states in the new bluetooth frequency hopping list does not reach the preset update threshold, 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 list to the second headset, the usable channels of the second headset can be occupied unnecessarily, and especially in the environment with strong interference, frequent sending of the new bluetooth frequency hopping list can even lead to further reduction of the communication efficiency between the two headsets. In addition, the energy loss is also brought by frequent transceiving or updating of the bluetooth frequency hopping table. 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. Under this prerequisite, when wireless environment changed greatly, first earphone and second earphone also can in time receive and dispatch and update for new bluetooth frequency hopping table to guarantee in the communication process between two earphones, always can receive the bluetooth packet data with better bluetooth channel, thereby improved the communication efficiency and the communication reliability between 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 diagram illustrating a relationship between the first channel statistics table and the second channel statistics table and the channel arbitration table disclosed in this embodiment;
fig. 3 is a schematic structural diagram of an apparatus for implementing bluetooth communication disclosed in this embodiment;
fig. 4 is a schematic diagram of a pair of modules of a true wireless bluetooth headset disclosed in this embodiment;
fig. 5 is a schematic diagram of a two-terminal communication system module disclosed in the present embodiment;
fig. 6 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.
Further, 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 and a second earphone form a true wireless Bluetooth earphone pair, 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 S10, 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 a data receiving operation through the bluetooth channel a, but is not necessarily able to receive the data, that is, the bluetooth packet data may or may not be successfully received. Bluetooth channel a may be any one or more bluetooth channels.
Step S100, counting the number of times that each bluetooth channel of the first headset is used and the number of times that each bluetooth channel of the first headset is interfered within a detection period to obtain a first channel condition detection table, that is, counting the number of times that each bluetooth channel of the first headset is used and the number of times that each bluetooth channel of the first headset is interfered in the first channel condition detection table. In this embodiment, one detection period is a time duration during which the first headset receives a preset number of bluetooth packet data, and thus the time durations of different detection periods may be different. In this embodiment, the bluetooth channel is used once, which means that the first headset receives N bluetooth packet data through the bluetooth channel, where N is greater than or equal to 1, and a value of N is obtained by a person skilled in the art according to experience.
Step S200, determining 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, that is, obtaining whether each bluetooth channel has interference through the first channel statistical table, and further obtaining whether each bluetooth channel can be used for the first earphone to receive data. 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 unusable channel of the first earphone is the bluetooth channel with too high packet error rate and packet loss rate when the first earphone can not 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, where the specific value of the interference threshold is empirically available to 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.
Step S300, receiving a second channel statistics table sent by the second earphone to the first earphone, where the second channel statistics table counts available channels and unavailable channels of the second earphone. In this embodiment, the second channel statistical table may be obtained by a method consistent with the first channel statistical table, or by another method, as long as the usable channel and the unusable channel of the second headphone in the current environment can be accurately counted.
In 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 the preset threshold, 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. In this embodiment, the preset threshold is the minimum number of bluetooth channels required to ensure that the first headset can normally communicate, and the specific value thereof is obtained by those skilled in the art according to experience, for example, the preset threshold may be 20.
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.
The communication method of the true wireless bluetooth headset disclosed in this embodiment includes that a first headset counts the number of times that each bluetooth channel is used and the number of times that each bluetooth channel is interfered in a detection period to obtain a first channel condition detection table, a first channel statistical table is obtained according to the statistical condition of the first channel condition detection table, a second channel statistical table sent by a second headset is received, usable channels of the first channel statistical table and the second channel statistical table are merged and summarized to obtain a channel arbitration table, the channel arbitration table is converted into a new bluetooth frequency hopping table, and when the number of the bluetooth channels with changed use conditions in the new bluetooth frequency hopping table reaches a preset update threshold value, the first headset sends the new bluetooth frequency hopping table to the second headset so that the first headset and the second headset both communicate according to the new bluetooth frequency hopping table. By means of summarizing and combining the first channel statistical table and the second channel statistical table, the usable channel in the new bluetooth frequency hopping table is both the usable channel of the first earphone and the usable channel of the second earphone, when the first earphone and the second earphone communicate with each other, for the two earphones to receive bluetooth packet data, the usable channel can be used for receiving and sending the bluetooth packet data, and the usable channel is a bluetooth channel with less interference or no interference to the earphones in the current wireless environment.
In addition, when the wireless interference environment exists, the number of bluetooth channels that the second headset can reliably receive data is limited, and when the number of bluetooth channels with changed usable states in the new bluetooth frequency hopping list does not reach the preset update threshold, 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 list to the second headset, the usable channels of the second headset can be occupied unnecessarily, and especially in the environment with strong interference, frequent sending of the new bluetooth frequency hopping list can even lead to further reduction of the communication efficiency between the two headsets. In addition, the energy loss is also brought by frequent transceiving or updating of the bluetooth frequency hopping table. 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. Under this prerequisite, when wireless environment changed greatly, first earphone and second earphone also can in time receive and dispatch and update for new bluetooth frequency hopping table to guarantee in the communication process between two earphones, always can receive the bluetooth packet data with better bluetooth channel, thereby improved the communication efficiency and the communication reliability between first earphone and the second earphone.
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, so that the communication burden of the true wireless bluetooth headset is saved, and the data transmission of the true wireless bluetooth headset can be completely used for bluetooth communication instead of the interference probing of the bluetooth channel, thereby further improving the communication efficiency of the true wireless headset.
In a specific embodiment, step S200 includes:
step S210, setting a first initial channel statistical table for the first earphone, and setting the use state of each Bluetooth channel in the first initial channel statistical table to be consistent with the current Bluetooth frequency hopping table, wherein the first initial channel statistical table is the initial channel statistical table of the first earphone;
step S220, determining a usable channel and a unusable channel according to the first channel condition detection table, wherein the specific determination method refers to the following description;
step S230, updating the first initial channel statistical table according to the determination result to obtain a first channel statistical table.
In an embodiment, due to a change in the wireless environment, when the interference on the previously determined unusable channel disappears, the unusable channel should be re-determined as a usable channel. Therefore, the determination method 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 frequency is less than a preset undetermined threshold value, namely the used frequency counted by the bluetooth channel k in the first channel condition detection table is greater than 0 and the interfered frequency is equal to or less than the preset undetermined threshold value, marking the bluetooth channel k as an undetermined channel of the first earphone for one time;
from step S100 to step S500, the execution is completed as an execution cycle, 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 the preset available threshold, it is determined that the bluetooth channel k is the available channel of the first earphone. The pending threshold and the available thresholds are empirically derived by those skilled in the art, e.g., 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 statistical table, if the first earphone can continuously and successfully receive the data sent by the bluetooth sound source device in a plurality of 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 can be determined that the 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 the available channels can also be increased, so as to further improve the communication efficiency of the first headset.
In a specific embodiment, 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 use state of the bluetooth channel k in the initial channel statistical table is usable, 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 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 an embodiment, when the number of available channels of the first earphone is smaller than the preset threshold in the determination result of step S220, step S230 further includes:
and setting the Bluetooth channels with the interfered times smaller than a preset alternative threshold value as the usable channels of the first earphone in sequence 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.
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, 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 of the usable channels in the first channel statistical table and the second channel statistical table is less than a preset threshold value, the master earphone sets the unusable channels in the channel arbitration table to be the usable channels from top to bottom according to the usable priority of the earphones in sequence until the number of the usable channels in the channel arbitration table reaches the preset threshold value.
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, possibly affecting communication efficiency. The unusable channels in the channel arbitration list are sequentially set 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 list reaches a preset threshold value, so that on the premise that the number of the usable channels can reach the normal communication requirement, when the master earphone obtains a new Bluetooth frequency hopping list and needs to send the new Bluetooth frequency hopping list to the slave earphone, data can be sent directly according to the channel with the optimal data received by the slave earphone, the probability that the slave earphone can successfully receive the new Bluetooth frequency hopping list is effectively improved, and the smoothness of communication between the two earphones is further guaranteed. In the communication process between the master earphone and the slave earphone, the data volume and the sending frequency sent by and received by the master earphone are usually much higher than those sent by and received by the slave earphone, so that the data is sent according to the channel with the optimal data receiving capacity of the slave earphone, the reliability of receiving the data by the slave earphone can be ensured, and the communication efficiency between the two earphones is improved.
In one embodiment, the first headset and the second headset perform bluetooth communication through a standard protocol, so as to improve compatibility of the communication method disclosed in this embodiment.
In another embodiment, the first earphone and the second earphone communicate with each other via a bluetooth protocol, thereby breaking through the limitation of a standard protocol, and the first earphone and the second earphone can perform frequency hopping communication according to a preset rule.
In a specific embodiment, when the first headset and the second headset perform bluetooth communication through the customized 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.
The new Bluetooth frequency hopping list comprises a enabled channel of the second earphone and an available channel of the first earphone, so that when the first earphone sends a Bluetooth data packet to the second earphone, the first earphone can receive the data reliably and timely according to the available channel of the second earphone; when the second earphone sends the Bluetooth data packet to the first earphone, the usable channel of the first earphone can be used, and therefore the first earphone can also reliably and timely receive data. That is, both the two earphones can send data to the other earphone according to the Bluetooth channel with the optimal data receiving capacity of the other earphone, so that the communication efficiency and the anti-interference performance between the two earphones are further ensured.
In general, when bluetooth communication is performed between a bluetooth sound source device and a first earphone and/or a second earphone, if packet loss, packet error, and the like occur due to interference, the bluetooth sound source device may ensure reliable transmission of data by retransmitting data, and the retransmission of data by the bluetooth sound source device may affect receiving of data of an earphone of another earphone between the two earphones, so that both internal communication of an earphone pair and communication efficiency between the earphone pair and the bluetooth sound source device may be reduced.
In order to improve the reliability of the communication between the bluetooth sound source device and the first earphone and/or the second earphone, in step S500, in a specific embodiment, when the number of bluetooth channels with changed available states in the new bluetooth frequency hopping table reaches the update threshold, the first earphone 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 earphone and/or the second earphone with reference to the new bluetooth frequency hopping table.
And sending the new Bluetooth frequency hopping table to the Bluetooth sound source equipment, so that the Bluetooth sound source equipment can refer to the new Bluetooth frequency hopping table to send Bluetooth grouping data to the first earphone and/or the second earphone, thereby improving the communication reliability of the earphones to the Bluetooth sound source equipment, and further improving the communication efficiency between the two earphones.
In summary, in the communication method of the true wireless bluetooth headset disclosed in the embodiment of the present invention, the first headset merges and summarizes the available channels of the first channel statistics table and the second channel statistics table to obtain the channel arbitration table, and further converts the channel arbitration table into a new bluetooth frequency hopping table, when the number of the bluetooth channels with changed usage states in the new bluetooth frequency hopping table reaches the preset update threshold, the first headset sends the new bluetooth frequency hopping table to the second headset, so that the first headset and the second headset both communicate according to the new bluetooth frequency hopping table. By means of summarizing and combining the first channel statistical table and the second channel statistical table, the usable channel in the new bluetooth frequency hopping table is both the usable channel of the first earphone and the usable channel of the second earphone, when communication between the first earphone and the second earphone is guaranteed, bluetooth packet data can be received and sent through the usable channel, and the usable channel is a bluetooth channel with little interference or no interference to the earphone in the current wireless environment.
In addition, an update 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 also saved. When the wireless environment is greatly changed, the first earphone and the second earphone can also receive and send in time and update the Bluetooth frequency hopping list to a new Bluetooth frequency hopping list, so that the Bluetooth grouped data can be always received by 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.
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 is used for forming a real wireless Bluetooth earphone pair with the second earphone.
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 condition detecting module 100, a channel counting module 200, a receiving module 300, an available channel arbitrating module 400 and a frequency hopping table obtaining module 500, 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;
a channel condition detecting module 100, configured to count times of usage and times of interference of each bluetooth channel of a first headset in a detection period to obtain a first channel condition detection table, where one detection period is a time duration for the first headset to receive a preset number of bluetooth packet data, and a bluetooth channel being used once means that the first headset receives at least one bluetooth packet data through the bluetooth channel;
a channel statistics module 200, configured to determine, according to a first channel condition detection table, a usable channel and an unusable channel of the first headset to obtain a first channel statistics table, where a bluetooth channel with an interfered frequency greater than a preset interference threshold is an unusable channel;
a receiving module 300, configured to receive a second channel statistics table sent by a second headset to a first headset, where the second channel statistics table counts available channels and unavailable channels of the second headset;
the available channel arbitration module 400 is configured to obtain 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 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;
the frequency hopping table obtaining module 500 is used for 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 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 can communicate according to the new bluetooth frequency hopping table. Specifically, please refer to the description of the above embodiments, which is not repeated herein.
In a specific embodiment, the channel statistics module 200 further includes:
the initialization submodule 210 sets a first initial channel statistical table for the first earphone, and makes the use state of each bluetooth channel in the first initial channel statistical table consistent with the current bluetooth frequency hopping table;
an available channel determining submodule 220 for determining an available channel and an unavailable channel according to the first channel condition detecting table;
and the channel statistical table updating submodule 230 is configured to update the first initial channel statistical table according to the determination result to obtain the first channel statistical table.
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 is enabled in the first channel condition detection table and the interfered frequency is less than the preset pending threshold, that is, the used frequency is greater than 0 and the interfered frequency is less than the 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 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 determine that the bluetooth channel k is a usable channel of the first headset. Specifically, please refer to the above description of the embodiments, which is not repeated herein.
In a specific embodiment, the channel statistics module 200 further includes:
the error packet rate counting submodule 201 is configured to count error packet rates of bluetooth channels of the first earphone in a preset detection period;
the usability determining sub-module 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 the preset packet error threshold value when the usage status of the bluetooth channel k in the initial channel statistics table is usable.
In a specific embodiment, when the number of the usable channels of the first earphone in the determination result of the usable determining sub-module 220 is smaller than the preset threshold, the channel statistics table updating sub-module 230 is further configured to set the bluetooth channels with the interfered times smaller than the preset replacement threshold as the usable channels of the first earphone in sequence 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. Specifically, please refer to the above description of the embodiments, which is not repeated herein.
In the embodiment, 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 disposed in the master earphone;
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 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 earphone can use until the number of the 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 above description of the embodiments, which is not repeated herein.
In an embodiment, the frequency hopping table obtaining module 500 is further configured to, when the number of the bluetooth channels with the changed usage statuses in the new bluetooth frequency hopping table reaches the update threshold, send the new bluetooth frequency hopping table to the bluetooth sound source device by the first headset, so that the bluetooth sound source device refers to the new bluetooth frequency hopping table to send the bluetooth packet data to the first headset and/or the second headset.
In a specific embodiment, the first earphone and the second earphone are in Bluetooth communication through a custom protocol; the new bluetooth frequency hopping list comprises the available bluetooth channel of the second earphone and the available channel of the first earphone, so that the first earphone sends bluetooth data packets to the second earphone according to the available channel of the second earphone, and the second earphone sends bluetooth data packets to the first earphone according to the available channel of the first earphone. Specifically, please refer to the description of the above embodiments, which is not repeated herein.
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. 4, which is a schematic diagram of a pair of modules of a true wireless bluetooth headset disclosed in this embodiment. The pair of true wireless bluetooth headsets comprises a pair of a first headset 10 and a second headset 11. In this embodiment, at least the first earphone 10 is a 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. 5 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. 6, a schematic diagram of a three-terminal system module disclosed in this embodiment is further disclosed, where the three-terminal system includes:
the bluetooth sound source device 30 is configured to provide audio data, for example, the bluetooth sound source device 30 may be an electronic device such as a mobile phone, a computer, or a player that can provide audio data;
a first earphone 31 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 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-described 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 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 (24)

1. A communication method of a true wireless Bluetooth headset is used for a first headset, the first headset is used for forming a true wireless Bluetooth headset pair with a second headset, and the method comprises the following steps:
step S100, counting the number of times that each Bluetooth channel of the first earphone is used and the number of times that the first earphone 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 earphone receives a preset number of Bluetooth packet data, and the condition that the Bluetooth channel is used once means that the first earphone receives at least one Bluetooth packet data through the Bluetooth channel;
step S200, judging a usable channel and an 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 interference frequency 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 the second channel statistical table sent by the second earphone to the first earphone, where the second channel statistical table is used to count an available channel and an unavailable channel of the second earphone;
step S400, when the number of intersections of the usable channels in the first channel statistical table and the second channel statistical table is greater than or equal to a preset threshold value, taking the intersections of the usable channels in the first channel statistical table and the second channel statistical table to obtain a channel arbitration table;
step 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.
2. The communication method according to claim 1, wherein the step S200 comprises:
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 statistical table according to the determination result to obtain the first channel statistical table.
3. The communication method according to claim 2, wherein the determination manner in step S220 includes:
when a 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 number of times of interference is less than a preset undetermined threshold value, marking the bluetooth channel k as the undetermined channel of the first earphone once;
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 a preset available threshold, determining that the bluetooth channel k is the available channel of the first headset, wherein the execution of steps S100 to S500 is completed as one execution cycle.
4. The communication method according to claim 2, further comprising, before the step S220:
step S201, counting the error packet 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 a preset packet error threshold value, determining that the bluetooth channel k is an unavailable channel of the first earphone.
5. The communication method according to claim 4, wherein when the number of available channels of the first headset is less than a preset threshold in the determination result of the step S220, the step S230 further comprises:
and setting the Bluetooth channels with the interfered times smaller than a preset alternative threshold value 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 value.
6. The communication method according to claim 1, wherein the first earphone is a master earphone and the second earphone is a slave earphone, and the step S400 further comprises:
and when the master earphone determines that the number of the intersections is smaller than the preset threshold, 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.
7. The communication method according to claim 1, wherein in the step S500, when the number of available bluetooth channels with changed states in the new bluetooth frequency hopping list reaches the update threshold, the first headset further transmits the new bluetooth frequency hopping list to a bluetooth sound source device, so that the bluetooth sound source device transmits bluetooth packet data to the first headset and/or the second headset with reference to the new bluetooth frequency hopping list.
8. The communication method according to any one of claims 1 to 7, wherein the first headset and the second headset perform Bluetooth communication through a custom protocol;
the new Bluetooth frequency hopping list comprises a usable channel of the second earphone and a usable channel of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the usable channel of the second earphone, and the second earphone sends the Bluetooth data packets to the first earphone according to the usable channel of the first earphone.
9. 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.
10. An apparatus for implementing bluetooth communication via a true wireless headset, the true wireless headset being a first headset configured to form a true wireless bluetooth headset pair with a second headset, the apparatus comprising:
a channel condition detection module (100) configured to count the number of times that each bluetooth channel of the first headset is used and the number of times that the first headset is interfered with in a detection period to obtain a first channel condition detection table, where the detection period is a time length in which the first headset receives a preset number of bluetooth packet data, and a bluetooth channel being used once means that the first headset receives at least one bluetooth packet data through the bluetooth channel;
a channel statistic module (200) for determining a usable channel and an unusable channel of the first earphone according to the first channel condition detection table to obtain a first channel statistic table, wherein a bluetooth channel with an interfered frequency greater than a preset interference threshold is an unusable channel;
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 counts available channels and unavailable channels of the second headset;
a usable channel arbitration module (400) configured to, when the number of intersections of usable channels in the first channel statistical table and the second channel statistical table is greater than or equal to a preset threshold, obtain a channel arbitration table by taking the intersections of the usable channels in the first channel statistical table and the second channel statistical table;
and the frequency hopping list obtaining module (500) is used for converting the channel arbitration list into a new Bluetooth frequency hopping list, comparing the new Bluetooth frequency hopping list with the current Bluetooth frequency hopping list, updating the current Bluetooth frequency hopping list when the number of the change of the usable or unusable states of the Bluetooth channels in the new Bluetooth frequency hopping list compared with the current Bluetooth frequency hopping list reaches a preset updating threshold value, enabling the current Bluetooth frequency hopping list to be consistent with the new Bluetooth frequency hopping list, and sending the new Bluetooth frequency hopping list to the second earphone, so that the first earphone and the second earphone are communicated according to the new Bluetooth frequency hopping list.
11. The apparatus of claim 10, wherein 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 the first channel statistical table.
12. The apparatus of claim 11, wherein when the bluetooth channel k in the first initial channel statistics table is an unavailable channel, the availability decision submodule (220) is further configured to mark the bluetooth channel k once as an pending channel of the first headset if the bluetooth channel k has an enabled condition in the first channel condition detection table and the number of times of interference is less than a preset pending threshold;
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 availability threshold, the availability determination submodule (220) determines that the bluetooth channel k is an available channel of the first headset.
13. The apparatus of claim 11, wherein said 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, when the usability status of the bluetooth channel k in the initial channel statistics table is usable, that the bluetooth channel k is an unusable channel of the first headset if the error packet rate of the first headset on the bluetooth channel k is greater than a preset error packet threshold.
14. The apparatus of claim 13, wherein when the number of available channels of the first headset is smaller than a preset threshold in the determination result of the available determination submodule (220), the channel statistics update submodule (230) is further configured to set the number of times of interference of bluetooth channels with a smaller number of times than a preset replacement threshold as the number of available channels of the first headset in order from small to large according to the error rate until the number of available channels of the first headset reaches the preset threshold.
15. The apparatus of claim 10, wherein 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 derivation module (500) are all disposed 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 in order according to the priority level available to the slave earphone until the number of available channels in the channel arbitration table reaches the preset threshold.
16. The apparatus of claim 10, wherein the hopping list derivation module (500) is further configured to, when the number of available bluetooth channels in the new bluetooth hopping list with changed states reaches the update threshold, the first headset further transmits the new bluetooth hopping list to a bluetooth sound source device, so that the bluetooth sound source device transmits bluetooth packet data to the first headset and/or the second headset with reference to the new bluetooth hopping list.
17. The apparatus of any of claims 10-16, wherein the first headset and the second headset communicate via a custom protocol;
the new Bluetooth frequency hopping list comprises the usable channel of the second earphone and the usable channel of the first earphone, so that the first earphone sends Bluetooth data packets to the second earphone according to the usable channel of the second earphone, and the second earphone sends Bluetooth data packets to the first earphone according to the usable channel of the first earphone.
18. The apparatus of any one of claims 17, 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 is smaller than a preset threshold after the power is increased at the same time and the power difference value generated by the bluetooth channel in the preset channel range is smaller than the preset threshold after the power is increased, and/or when the power difference value generated by the bluetooth channel in the preset channel range is smaller than the preset threshold before the power is decreased at the same time and the power difference value is smaller than the preset threshold before the power is decreased, it is determined that both the bluetooth channel a and the bluetooth channel in the preset channel range have wideband signal interference.
19. A true wireless bluetooth headset, characterized in that the communication method according to any of claims 1-9 is applied to the true wireless bluetooth headset.
20. 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 19.
21. A two-terminal communication system of a true wireless bluetooth headset, wherein the two-terminal communication system comprises a pair of a first headset and a second headset, the first headset being configured to implement the communication method according to any one of claims 1-9;
the second earphone is used for sending a second channel statistical table to the first earphone and receiving a new Bluetooth frequency hopping table sent by the first earphone to the second earphone, so that the first earphone and the second earphone can communicate according to the new Bluetooth frequency hopping table.
22. A three-terminal system for bluetooth communication, comprising:
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 of any of claims 1-9.
23. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed, is capable of carrying out a communication method according to any one of claims 1 to 9.
24. 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 9.
CN202210852345.4A 2022-07-19 2022-07-19 True wireless Bluetooth headset and communication method, device and system thereof Pending CN115767490A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210852345.4A CN115767490A (en) 2022-07-19 2022-07-19 True wireless Bluetooth headset and communication method, device and system thereof
PCT/CN2023/100674 WO2024016914A1 (en) 2022-07-19 2023-06-16 True wireless bluetooth earphones, communication method thereof, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210852345.4A CN115767490A (en) 2022-07-19 2022-07-19 True wireless Bluetooth headset and communication method, device and system thereof

Publications (1)

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

Family

ID=85350109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210852345.4A Pending CN115767490A (en) 2022-07-19 2022-07-19 True wireless Bluetooth headset and communication method, device and system thereof

Country Status (2)

Country Link
CN (1) CN115767490A (en)
WO (1) WO2024016914A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024016914A1 (en) * 2022-07-19 2024-01-25 珠海市杰理科技股份有限公司 True wireless bluetooth earphones, communication method thereof, apparatus and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117939350B (en) * 2024-03-21 2024-06-18 深圳市中翔达润电子有限公司 Data intelligent transmission system for Bluetooth headset

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551669B (en) * 2018-03-30 2021-06-22 努比亚技术有限公司 Method and terminal for determining residence channel of Bluetooth device
CN113906773B (en) * 2019-06-20 2023-11-28 华为技术有限公司 Channel selection method and device for low-power consumption Bluetooth equipment
CN110351696B (en) * 2019-09-05 2019-12-03 恒玄科技(上海)有限公司 The communication means of wireless headset and wireless headset
CN112911450B (en) * 2021-03-08 2023-07-25 广州安凯微电子股份有限公司 Channel selection method, device and system of Bluetooth wireless earphone
CN113055868B (en) * 2021-03-12 2022-09-23 上海物骐微电子有限公司 Bluetooth rapid networking method and system and Bluetooth headset
CN115767490A (en) * 2022-07-19 2023-03-07 珠海市杰理科技股份有限公司 True wireless Bluetooth headset and communication method, device and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024016914A1 (en) * 2022-07-19 2024-01-25 珠海市杰理科技股份有限公司 True wireless bluetooth earphones, communication method thereof, apparatus and system

Also Published As

Publication number Publication date
WO2024016914A1 (en) 2024-01-25

Similar Documents

Publication Publication Date Title
CN115767490A (en) True wireless Bluetooth headset and communication method, device and system thereof
US10462634B2 (en) Method for Bluetooth mode switching, Bluetooth system and electronic device
CN108718467B (en) Voice data transmission method, wireless headset and TWS headset
CN109246671B (en) Data transmission method, device and system
CN109104684B (en) Microphone hole blockage detection method and related product
US8619750B2 (en) Co-existence for co-located radios which operate in the same frequency band
CN111510899B (en) Bluetooth transmission method and device
US11425519B2 (en) Method for detecting blocking of microphone and related products
WO2020192718A1 (en) Transport block size determination method and communication device
CN112492449A (en) Wireless earphone receiver and wireless earphone
CN109089201B (en) Microphone hole blockage detection method and related product
EP3151614B1 (en) Adjustment of bluetooth (bt) golden reception range in the presence of long term evolution (lte) interference
US20230091988A1 (en) Methods and devices for configuring harq-ack feedback
CN111162883B (en) Data transmission method, device and system
CN113518335A (en) Bluetooth data transmission method, device, equipment and storage medium
US10292607B2 (en) Sensor data transmissions
CN111585695A (en) Method for controlling bit rate in real time and electronic device thereof
US20240063981A1 (en) Uplink management for true wireless earbuds
WO2017193268A1 (en) Uplink data transmission method, terminal device, and network device
US20180227108A1 (en) Communication data rate selection for an electronic device
CN115767488A (en) Communication method and device for true wireless Bluetooth headset, headset and system
CN106792466B (en) Method for communication between equipment end and host end
EP3930342A1 (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

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