Earphone communication method
By establishing multiple wireless communication channels in Bluetooth headsets and detecting packet loss rate, the incomplete data transmission caused by unstable Bluetooth headset connection is solved, and more stable connections and higher quality audio playback are achieved.
Patent Information
- Application Number
- CN202411743391.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-30
- Publication Date
- 2025-03-07
AI Technical Summary
Bluetooth headsets have poor connection stability, which is prone to disconnection and audio stuttering, especially when the signal is unstable or the device is too far away, which affects the stability and integrity of data transmission.
By establishing multiple wireless communication channels between the headphone component and the charging box, the packet loss rate during the audio data transmission is detected. When the packet loss rate exceeds the preset threshold, the mobile terminal is reminded to repair it, and the audio data is indirectly transmitted to the headphone component through the charging box, and superimposed repair is performed to ensure the integrity of the audio data.
It improves the connection stability of Bluetooth headsets, ensures the integrity of data transmission and playback sound quality, and reduces audio stuttering and disconnection caused by packet loss.
Smart Images

Figure CN119584086A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth headset manufacturing, and in particular to a headset communication method. Background Art
[0002] Bluetooth headset refers to the application of Bluetooth technology to hands-free headsets, which allows users to avoid the constraints of wires and achieve audio transmission wirelessly. Bluetooth headsets usually communicate with devices with Bluetooth functions (such as mobile phones and laptops) to achieve functions such as wireless calls and music playback; Bluetooth headsets establish connections with mobile phones or other Bluetooth devices through built-in Bluetooth chips, and use Bluetooth wireless transmission technology to transmit audio signals; Bluetooth headsets include True Wireless Bluetooth headsets: This type of headset usually consists of two independent earplugs, which are wirelessly connected through Bluetooth technology and can transmit audio without cables or intermediate devices; Neck-hanging Bluetooth headsets: This type of headset connects two earplugs through a neckband. Although there are wires, it is more flexible than traditional wired headsets; Bluetooth headsets are suitable for a variety of scenarios, including outdoor sports, commuting, office, etc. They not only provide a convenient wireless connection method, but also because of their small and light characteristics, they are easy to carry and use.
[0003] However, the connection stability of Bluetooth headsets has always been a big problem. Sometimes Bluetooth headsets will suddenly disconnect, or the audio will freeze during use, especially when the signal is unstable or the device is too far away. Unstable Bluetooth connection will affect data transmission, causing interruptions, delays or errors during data transmission, thus affecting the stability and integrity of data transmission.
[0004] In view of this, the present invention provides a headset communication method to solve the problem that the existing headset Bluetooth connection is unstable, thereby affecting the stability and integrity of data transmission. Summary of the invention
[0005] The purpose of the present invention is to provide a headset communication method to improve the stability of existing headset Bluetooth connections and ensure the integrity of data transmission.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is: an earphone communication method, applied to a Bluetooth earphone, the Bluetooth earphone includes a charging box and an earphone assembly, comprising the following steps: Step S1: In response to an audio transmission request from a mobile terminal, a first wireless communication channel is established between the mobile terminal and the earphone component, and the earphone component receives audio data sent by the mobile terminal.
[0007] Step S2: Detecting a first packet loss rate of the audio data during transmission. If the first packet loss rate is greater than a first preset threshold, the earphone component saves the audio data and reminds the mobile terminal to repair the audio data.
[0008] Based on the above scheme, the method further comprises the steps of: Step S3: In response to the audio repair request of the mobile terminal, a second wireless communication channel is established between the mobile terminal and the charging box, and a third wireless communication channel is established between the charging box and the earphone assembly. The earphone box receives the audio data sent by the mobile terminal through the second wireless communication, and transmits the audio data received by the earphone box to the earphone assembly through the third wireless communication channel.
[0009] Step S4: superimpose and repair the audio data received by the earphone component through the first wireless communication channel and the audio data received through the third wireless communication channel to obtain repaired audio data, and decode and play the repaired audio data through the earphone component.
[0010] On the basis of the above solution, the earphone assembly includes a first communication unit, and the earphone box includes a second communication unit; the method further includes step S0: acquiring the Bluetooth communication identification and location information of the mobile terminal.
[0011] Based on the above solution, step S1 further includes: Step S11, measuring the distance L1 between the mobile terminal and the earphone assembly through the first communication unit according to the obtained location information of the mobile terminal, and determining whether the distance L1 is within a second preset threshold.
[0012] Step S12: If the judgment result is that the mobile terminal is within the second preset threshold and the mobile terminal is in the Bluetooth connectable area of the earphone component, a connection is established with the earphone component according to the Bluetooth communication identifier of the mobile terminal.
[0013] Based on the above solution, step S3 further includes: Step S31, based on the obtained location information of the mobile terminal, measure the distance L2 between the mobile terminal and the charging box through the second communication unit, and determine whether the distance L2 is within a third preset threshold.
[0014] Step S32: If the judgment result is that the mobile terminal is within the third preset threshold and the mobile terminal is in the Bluetooth connectable area of the charging box, a connection is established with the charging box according to the Bluetooth communication identifier of the mobile terminal.
[0015] Based on the above scheme, the following steps are included: Step S33, detecting the distance L3 between the earphone assembly and the charging compartment, and determining whether the distance L3 is within a fourth preset threshold.
[0016] On the basis of the above scheme, if there are multiple mobile terminals located in the connectable area of the Bluetooth headset, the mobile terminal with the shortest distance is selected, and a Bluetooth connection is established with the mobile terminal according to the Bluetooth communication identifier of the mobile terminal.
[0017] On the basis of the above solution, if the current Bluetooth headset has established a Bluetooth connection, and the target of the established Bluetooth connection is not the selected mobile terminal, the Bluetooth connection with the target is disconnected.
[0018] On the basis of the above scheme, it includes: Step S01, controlling the first communication unit or the second communication unit to send a broadcast data packet, wherein the broadcast data packet is used to trigger the mobile terminal to feedback its own Bluetooth communication identification and location information to the earphone component or the earphone box in a communication manner.
[0019] Step S02: receiving a feedback data packet from a corresponding mobile terminal to a broadcast data packet through the first communication unit or the second communication unit, and obtaining a Bluetooth communication identifier and location information of the mobile terminal therefrom.
[0020] Based on the above solution, step S3 further includes: Detect a second packet loss rate of the audio data during transmission of the third wireless communication channel, and when the second packet loss rate is lower than a fifth preset threshold, control the mobile terminal to retransmit the audio data via the second wireless communication channel and the third wireless communication channel.
[0021] Compared with the prior art, the present invention provides an earphone communication method applied to a Bluetooth earphone, wherein the Bluetooth earphone includes a charging box and an earphone assembly; when audio data transmitted between the earphone assembly and the mobile terminal is missing, the present invention indirectly transmits the audio data to the earphone assembly through the earphone box, and overlaps and repairs the audio data of the lost data, thereby ensuring the integrity of the audio data and the playback sound quality of the earphone assembly when the audio data is missing. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0023] Figure 1A flow chart of a headset communication method provided by the present invention; Figure 2 for Figure 1 A schematic diagram of the flow of step S1 in the headset communication method; Figure 3 for Figure 1 A schematic diagram of the flow of step S3 in the headset communication method; DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and beneficial technical effect of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the specific implementation methods described in this specification are only for explaining the present invention, not for limiting the present invention.
[0025] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0026] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0027] See also Figure 1 , Figure 1 It is a flow chart of a headset communication method provided by an embodiment of the present invention. The headset communication method is applied to a Bluetooth headset and aims to repair missing audio data when the Bluetooth connection is unstable and affects the audio data transmission, so as to ensure the integrity of the audio data transmission.
[0028] The headset communication method comprises: Step S1: In response to an audio transmission request from a mobile terminal, a first wireless communication channel is established between the mobile terminal and the earphone component, and the earphone component receives audio data sent by the mobile terminal.
[0029] For example, the audio transmission request of the mobile terminal may be "headphone music playback", that is, click to play music on the mobile terminal, the mobile terminal transmits audio data to the headphone component through the first wireless communication channel (Bluetooth connection), and the headphone component plays the music through decoding; of course, the audio transmission request of the mobile terminal may also include calls, that is, this method can ensure the integrity of data transmission and smooth calls.
[0030] Step S2: Detecting a first packet loss rate of the audio data during transmission. If the first packet loss rate is greater than a first preset threshold, the earphone component saves the audio data and reminds the mobile terminal to repair the audio data.
[0031] Among them, the first packet loss rate refers to the ratio of the number of data packets lost to the total number of data packets sent during network transmission; the first preset threshold is a standard value set according to actual needs. If the first packet loss rate is less than the first preset threshold, it indicates that the integrity of the audio data reaches the actual set standard value and can be directly decoded and played.
[0032] Step S3: In response to the audio repair request of the mobile terminal, a second wireless communication channel is established between the mobile terminal and the charging box, and a third wireless communication channel is established between the charging box and the earphone assembly. The earphone box receives the audio data sent by the mobile terminal through the second wireless communication channel, and transmits the audio data received by the earphone box to the earphone assembly through the third wireless communication channel.
[0033] Among them, the audio repair request of the mobile terminal is set to be automatically triggered, that is, when the earphone component reminds the mobile terminal that the missing audio data needs to be repaired, the mobile terminal automatically triggers the audio repair request and establishes a second wireless communication channel and a third wireless communication channel; the second wireless communication channel and the third wireless communication channel are data transmission channels established by the Bluetooth connection.
[0034] Step S4: superimpose and repair the audio data received by the earphone component through the first wireless communication channel and the audio data received through the third wireless communication channel to obtain repaired audio data, and decode and play the repaired audio data through the earphone component.
[0035] Among them, the earphone component is provided with a storage module and a repair module, the storage module is used to store audio data with a first packet loss rate greater than a first preset threshold, that is, missing audio data, and audio data received through a third wireless communication channel; the repair module is used to superimpose and repair the audio data stored in the storage module with the audio data received through the third wireless communication channel to ensure the integrity of the audio data and the playback sound quality on the earphone component after the audio data is decoded.
[0036] Please also read Figure 2-3 The earphone assembly includes a first communication unit, and the earphone box includes a second communication unit; the first communication unit and the second communication unit can be used for ranging in this embodiment.
[0037] In some embodiments, the above step S1 further includes: Step S0: Acquire the Bluetooth communication identification and location information of the mobile terminal.
[0038] In this step, the mobile terminal may be a mobile phone, a tablet computer or other device; the number of mobile terminals may be one or more.
[0039] Step S11, based on the obtained location information of the mobile terminal, measure the distance L1 between the mobile terminal and the earphone assembly through the first communication unit, and determine whether the distance L1 is within a second preset threshold; that is, facing multiple mobile terminals, the distance L1 between the multiple mobile terminals and the earphone assembly can also be determined through step S11.
[0040] Step S12: if the judgment result is that the distance L1 is within the second preset threshold and the mobile terminal is in the Bluetooth connectable area of the earphone component, a connection is established with the earphone component according to the Bluetooth communication identifier of the mobile terminal.
[0041] In some embodiments, the above step S3 further includes: Step S0: Acquire the Bluetooth communication identification and location information of the mobile terminal.
[0042] In this step, the mobile terminal may be a mobile phone, a tablet computer or other device; the number of mobile terminals may be one or more.
[0043] In step S31, based on the obtained location information of the mobile terminal, the distance L2 between the mobile terminal and the charging box is measured through the second communication unit, and it is determined whether the distance L2 is within a third preset threshold; that is, in the face of multiple mobile terminals, the distances L2 between the multiple mobile terminals and the earphone box can also be determined through step S31.
[0044] Step S32: If the judgment result is that the distance L2 is within the third preset threshold and the mobile terminal is in the Bluetooth connectable area of the charging box, a connection is established with the charging box according to the Bluetooth communication identifier of the mobile terminal.
[0045] Step S33, detect the distance L3 between the earphone component and the charging case, and determine whether the distance L3 is within a fourth preset threshold; if the judgment result is that the distance L3 is within the fourth preset threshold, the earphone component and the earphone box establish a third wireless communication channel.
[0046] In some embodiments, if there are multiple mobile terminals located in the connectable area of the Bluetooth headset, the mobile terminal with the shortest distance is selected, and a Bluetooth connection is established with the mobile terminal according to the Bluetooth communication identifier of the mobile terminal; if the current Bluetooth headset has established a Bluetooth connection, and the target of the established Bluetooth connection is not the selected mobile terminal, the Bluetooth connection with the target is disconnected.
[0047] In some embodiments, the above step S0 further includes: Step S01: Control the first communication unit or the second communication unit to send a broadcast data packet, where the broadcast data packet is used to trigger the mobile terminal to feedback its own Bluetooth communication identification and location information to the earphone component or earphone box in a communication manner.
[0048] Step S02: receiving a feedback data packet from a corresponding mobile terminal to a broadcast data packet through the first communication unit or the second communication unit, and obtaining the Bluetooth communication identifier and location information of the mobile terminal therefrom.
[0049] In some embodiments, the above step S3 further includes: Detect a second packet loss rate during transmission of the audio data in the third wireless communication channel, and when the second packet loss rate is lower than a fifth preset threshold, control the mobile terminal to retransmit the audio data via the second wireless communication channel and the third wireless communication channel.
[0050] In summary, the present invention provides an earphone communication method applied to a Bluetooth earphone, wherein the Bluetooth earphone includes a charging box and an earphone assembly; when the audio data transmitted between the earphone assembly and the mobile terminal is missing, the present invention indirectly transmits the audio data to the earphone assembly through the earphone box, and overlaps and repairs the audio data of the lost data, thereby ensuring the integrity of the audio data and the playback sound quality of the earphone assembly when the audio data is missing.
[0051] The present invention is not limited to what is described in the specification and implementation modes, and therefore additional advantages and modifications can be easily realized by those skilled in the art. Therefore, without departing from the spirit and scope of the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details, representative devices, and illustrative examples shown and described herein.
Claims
1. An earphone communication method, applied to a Bluetooth earphone, wherein the Bluetooth earphone comprises a charging box and an earphone assembly, characterized in that: The following steps are involved: Step S1: in response to an audio transmission request from a mobile terminal, a first wireless communication channel is established between the mobile terminal and the earphone component, and the earphone component receives audio data sent by the mobile terminal; Step S2: Detecting a first packet loss rate of the audio data during transmission. If the first packet loss rate is greater than a first preset threshold, the earphone component will save the audio data and remind the mobile terminal to repair the audio data.
2. The headset communication method according to claim 1, characterized in that: Also includes the steps: Step S3: In response to the audio repair request of the mobile terminal, a second wireless communication channel is established between the mobile terminal and the charging box, and a third wireless communication channel is established between the charging box and the earphone assembly. The earphone box receives the audio data sent by the mobile terminal through the second wireless communication, and transmits the audio data received by the earphone box to the earphone assembly through the third wireless communication channel. Step S4: superimpose and repair the audio data received by the earphone component through the first wireless communication channel and the audio data received through the third wireless communication channel to obtain repaired audio data, and decode and play the repaired audio data through the earphone component.
3. The headset communication method according to claim 2, characterized in that: The earphone assembly includes a first communication unit, and the earphone box includes a second communication unit; the method includes: Step S0: Acquire the Bluetooth communication identification and location information of the mobile terminal.
4. The method according to claim 3, characterized in that: Step S1 also includes: Step S11, measuring the distance L1 between the mobile terminal and the earphone assembly through the first communication unit according to the obtained location information of the mobile terminal, and determining whether the distance L1 is within a second preset threshold; Step S12: If the judgment result is that the mobile terminal is within the second preset threshold and the mobile terminal is in the Bluetooth connectable area of the earphone component, a connection is established with the earphone component according to the Bluetooth communication identifier of the mobile terminal.
5. The method according to claim 3, characterized in that: Step S3 also includes: Step S31, according to the obtained location information of the mobile terminal, measuring the distance L2 between the mobile terminal and the charging box through the second communication unit, and determining whether the distance L2 is within a third preset threshold; Step S32: If the judgment result is that the mobile terminal is within the third preset threshold and the mobile terminal is in the Bluetooth connectable area of the charging box, a connection is established with the charging box according to the Bluetooth communication identifier of the mobile terminal.
6. The method according to claim 5, characterized in that: The following steps are also included: Step S33, detecting the distance L3 between the earphone assembly and the charging case, and determining whether the distance L3 is within a fourth preset threshold.
7. The method according to claim 4 or 5, characterized in that: If there are multiple mobile terminals located in the Bluetooth headset connectable area, a mobile terminal with the shortest distance is selected, and a Bluetooth connection is established with the mobile terminal according to the Bluetooth communication identifier of the mobile terminal.
8. The method according to claim 7, characterized in that: If the current Bluetooth headset has established a Bluetooth connection, and the target of the established Bluetooth connection is not the selected mobile terminal, the Bluetooth connection with the target is disconnected.
9. The method according to claim 3, characterized in that: include: Step S01, controlling the first communication unit or the second communication unit to send a broadcast data packet, wherein the broadcast data packet is used to trigger the mobile terminal to feedback its own Bluetooth communication identification and location information to the earphone component or the earphone box in a communication manner; Step S02: receiving a feedback data packet of a corresponding mobile terminal to a broadcast data packet through the first communication unit or the second communication unit, and obtaining a Bluetooth communication identifier and location information of the mobile terminal therefrom.
10. The method according to claim 1, characterized in that: Step S3 also includes: Detect a second packet loss rate of the audio data during transmission of the third wireless communication channel, and when the second packet loss rate is lower than a fifth preset threshold, control the mobile terminal to retransmit the audio data via the second wireless communication channel and the third wireless communication channel.