Bluetooth data transmission method, device and system

The solution employs a data relay device with spectrum analysis and alternative communication protocols to mitigate interference in TWS Bluetooth earphones, ensuring continuous data transmission and improved user experience.

CN120321692AInactive Publication Date: 2025-07-15TIANQI CREATION INTELLIGENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510805701.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-07-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

TWS Bluetooth headsets are blocked in the presence of interference sources and cannot fully utilize their advantages, especially in the 2.4GHZ frequency band, interference problems caused by channel overlap are prone to occur.

Method used

Spectrum scanning analysis is performed through data relay equipment, the degree of interference is predicted, and different data channels are established for packet backup and forwarding under the preset conditions, avoiding interference from 2.4GHZ frequency band, and UWB or Wi-Fi channel selection technology is used.

Benefits of technology

It effectively avoids communication obstruction under interference-intensive conditions, ensuring the complete transmission of data packets and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321692A_ABST
    Figure CN120321692A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, in particular to a Bluetooth data transmission method, device and system. The method comprises the following steps: performing frequency spectrum scanning analysis on a first data channel according to a preset time interval through data relay equipment to obtain frequency band interference information, and predicting the interference degree of the first data channel according to the frequency band interference information; under the condition that the predicted interference degree of the first data channel meets a first preset condition, controlling the mobile terminal to send a backup data packet to the data relay equipment through a second data channel; under the condition that the actual interference degree of the first data channel meets a second preset condition, third data channel connection between the data relay equipment and the TWS Bluetooth earphone is established, and the data relay equipment is controlled to forward the backup data packet through the third data channel; and the third data channel and the first data channel adopt different communication modes, so that the problem that Bluetooth transmission is blocked under the condition of dense interference can be effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technologies, and particularly to a Bluetooth data transmission method, apparatus, and system. Background Art

[0002] TWS Bluetooth headsets refer to true wireless stereo headsets, which have the characteristics of high audio quality, intelligent noise reduction, long battery life, and seamless interaction. However, due to the poor anti-interference performance of Bluetooth wireless transmission, the wireless advantages of TWS Bluetooth headsets cannot be fully exploited in the presence of interference sources.

[0003] Currently, adaptive frequency hopping technology is often used to avoid interference channels. However, the 2.4 GHz band is prone to the disadvantage of channel overlap, making it impossible to avoid Bluetooth transmission blockage even in the case of dense interference. Summary of the Invention

[0004] Based on this, it is necessary to provide a Bluetooth data transmission method, apparatus, and system for the above technical problems.

[0005] In a first aspect, this application provides a Bluetooth data transmission method, which is applied to a Bluetooth data transmission system. The system includes a TWS Bluetooth headset and a mobile terminal. The TWS Bluetooth headset receives data packets sent by the mobile terminal through a first data channel. The method further includes a data relay device with a built-in spectrum scanning and analysis module, which is connected to the mobile terminal through a second data channel. The method includes:

[0006] Performing spectrum scanning and analysis on the first data channel at a preset time interval through the data relay device to obtain frequency band interference information, and predicting the degree of interference on the first data channel according to the frequency band interference information;

[0007] When the predicted degree of interference on the first data channel meets a first preset condition, controlling the mobile terminal to send backup data packets to the data relay device through the second data channel;

[0008] When the actual degree of interference on the first data channel meets a second preset condition, establishing a connection of a third data channel between the data relay device and the TWS Bluetooth headset, and controlling the data relay device to forward the backup data packets through the third data channel. The communication method adopted by the third data channel is different from that of the first data channel.

[0009] In one embodiment, the method further includes:

[0010] Inputting the frequency band interference information scanned at each time node into a preset influence degree quantization model to obtain a performance influence index of the TWS Bluetooth headset under interference. The performance influence index is used to indicate the degree of influence on the performance of the TWS Bluetooth headset under the corresponding frequency band interference information;

[0011] If it is predicted that the performance impact index exceeds the first preset value within the first preset duration based on the change of the performance impact index of the TWS Bluetooth headset at each time node, it is determined that the predicted interference degree of the first data channel meets the first preset condition.

[0012] In one embodiment, the method further includes:

[0013] Obtain the frequency band interference information under the Bluetooth reception sensitivity of multiple groups of TWS Bluetooth headsets, including interference signal strength, interference frequency band overlap ratio, and interference duty cycle, and test the throughput degradation rate and packet error rate corresponding to the TWS Bluetooth headset;

[0014] Establish a first neural network model between the frequency band interference information and the throughput degradation rate, and train the first neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding throughput degradation rate to obtain the trained first neural network model. Then establish a second neural network model between the frequency band interference information and the packet error rate, and train the second neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding packet error rate to obtain the trained second neural network model;

[0015] Perform weighted calculation on the output results of the first neural network model and the second neural network model, and establish a mapping relationship between the calculation result and the preset performance impact index to obtain an impact degree quantization model.

[0016] In one embodiment, the method further includes:

[0017] If the performance impact index of the TWS Bluetooth headset at any time node exceeds the second preset value, it is determined that the actual interference degree of the first data channel meets the second preset condition; where the performance impact degree corresponding to the second preset value is greater than the performance impact degree corresponding to the first preset value.

[0018] In one embodiment, the method further includes:

[0019] Obtain the current geographical location through the mobile terminal;

[0020] In the case of predicting that the performance impact index exceeds the first preset value within the first preset duration, in response to the performance impact index still not exceeding the first preset value within the second preset duration, mark the current geographical location;

[0021] In response to the current geographical location obtained being marked more than the preset number of times, output a monitoring control instruction; the monitoring control instruction is used to terminate the spectrum scanning analysis and restart the spectrum scanning analysis when the geographical location obtained by the mobile terminal changes.

[0022] In one embodiment, the first data channel and the second data channel include data channels using the classic Bluetooth communication method, and the third data channel includes a data channel using the UWB communication method; the method further includes:

[0023] In response to the TWS Bluetooth headset receiving the backup data packet, the TWS Bluetooth headset decodes the backup data packet to obtain backup audio;

[0024] Time-align the backup audio with the original audio obtained by decoding the data packet, and perform difference detection;

[0025] Select a playback time slot for the audio part with the smallest difference degree between the backup audio and the original audio, and perform audio playback according to the backup audio when the playback progress reaches the playback time slot.

[0026] In a second aspect, the present application provides a Bluetooth data transmission device, which is applied to a Bluetooth data transmission system; the system includes a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives data packets sent by the mobile terminal through the first data channel; it further includes a data relay device with a built-in spectrum scanning and analysis module, which is connected to the mobile terminal through the second data channel; the device includes:

[0027] A prediction module, configured to perform spectrum scanning and analysis on the first data channel at a preset time interval through the data relay device to obtain frequency band interference information, and predict the degree of interference of the first data channel according to the frequency band interference information;

[0028] A backup module, configured to control the mobile terminal to send a backup data packet to the data relay device through the second data channel when the predicted degree of interference of the first data channel meets a first preset condition;

[0029] A forwarding module, configured to establish a connection of the third data channel between the data relay device and the TWS Bluetooth headset and control the data relay device to forward the backup data packet through the third data channel when the actual degree of interference of the first data channel meets a second preset condition; the third data channel uses a different communication method from the first data channel.

[0030] In a third aspect, the present application further provides a Bluetooth data transmission system, including a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives data packets sent by the mobile terminal through the first data channel; it further includes a data relay device with a built-in spectrum scanning module, which is connected to the mobile terminal through the second data channel.

[0031] In a fourth aspect, the present application further provides a computer device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the steps of the method provided in the first aspect of the present application.

[0032] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect of the present application are implemented.

[0033] The above-mentioned Bluetooth data transmission method, device and system can perform spectrum scanning and analysis on the first data channel between the TWS Bluetooth headset and the mobile terminal through the data relay device at preset time intervals, obtain the frequency band interference information about the first data channel, and when the interference degree inferred according to the frequency band interference information meets the first preset condition, control the mobile terminal to perform data packet backup through the second data channel between the mobile terminal and the data relay device, so as to ensure that the data packet will not be lost due to severe interference during the transmission process, and cannot be retransmitted due to communication blockage. Then, a third data channel connection is established between the data relay device and the TWS Bluetooth headset, and the backup data packet is forwarded through the third data channel with a different communication method to avoid the blockage of traditional Bluetooth in the 2.4 GHz frequency band, thereby ensuring the user experience and effectively solving the problem of Bluetooth transmission blockage in the case of dense interference. Description of the Drawings

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0035] Figure 1 Schematic diagram of the steps for backing up and forwarding data packets in an embodiment;

[0036] Figure 2 Schematic diagram of the steps for judging the first preset condition in an embodiment;

[0037] Figure 3 Schematic diagram of the steps for constructing an influence degree quantization model in an embodiment;

[0038] Figure 4 Schematic diagram of the steps for outputting a monitoring control instruction in an embodiment;

[0039] Figure 5 Schematic diagram of the steps for backing up audio playback in an embodiment;

[0040] Figure 6 Frame structure diagram of a Bluetooth data transmission device in an embodiment. Detailed Embodiments

[0041] To make the objectives, technical solutions and advantages of this application more clear and understandable, the following further details this application in conjunction with the attached drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0042] In the description of this application, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of this application, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0043] TWS Bluetooth earphones usually operate in the 2.4GHZ frequency band, which is usually a shared frequency band for devices such as Wi-Fi, microwave ovens, and wireless mice. Therefore, it is easy to cause disconnection or delay due to interference, resulting in a poor user experience with TWS Bluetooth earphones.

[0044] In an exemplary embodiment, a Bluetooth data transmission method is provided, which is applied to a Bluetooth data transmission system; the system includes TWS Bluetooth earphones and a mobile terminal; the TWS Bluetooth earphones receive data packets sent by the mobile terminal through a first data channel; it also includes a data relay device with a built-in spectrum scanning and analysis module, which is connected to the mobile terminal through a second data channel; as Figure 1 shown, the method includes the following steps S102 to S106. Among them:

[0045] S102, perform spectrum scanning and analysis on the first data channel at a preset time interval through the data relay device to obtain frequency band interference information, and predict the degree of interference of the first data channel according to the frequency band interference information.

[0046] Specifically, the wireless signal strength including the 2.4GHZ frequency band can be obtained through spectrum scanning, and through appropriate spectrum analysis, the overlapping ratio between the interference frequency band and its own Bluetooth, as well as the interference duty cycle of the interference frequency band, can be determined to judge the interference situation of the first data channel.

[0047] S104, when the predicted degree of interference of the first data channel meets the first preset condition, control the mobile terminal to send backup data packets to the data relay device through the second data channel.

[0048] Among them, the first preset condition is used to represent that the measurement index of the degree of interference has reached a certain value, or the interference has been severe to a certain extent.

[0049] On the other hand, both the first data channel and the second data channel can adopt the same communication method, and the same communication method can include both being Bluetooth communication; among them, the corresponding mobile terminal, data relay device, and TWS Bluetooth headset are all configured with Bluetooth modules of the same version and protocol.

[0050] Furthermore, since it is necessary to send backup data packets through the second data channel while ensuring the smoothness of the first data channel and transmitting data packets to guarantee the user's audio playback in the case of predicting possible interference, the mobile terminal can adopt Bluetooth version 5.2. Since the LE Audio (audio) specification of Bluetooth 5.2 introduces LC3 encoding and multi-stream audio functions, it can support broadcasting to both the first data channel and the second data channel simultaneously, so as to send data packets through the first data channel and backup data packets through the second data channel.

[0051] S106. When the actual interference degree of the first data channel meets the second preset condition, establish a connection of the third data channel between the data relay device and the TWS Bluetooth headset, and control the data relay device to forward the backup data packets through the third data channel; the third data channel adopts a different communication method from the first data channel.

[0052] Specifically, the second preset condition is used to indicate that the measurement index of the interference degree has reached another value different from that in the first preset condition, or the interference has become so severe that it reaches another degree different from that in the first preset condition.

[0053] Exemplarily, the communication method adopted by the third data channel can be Wi-Fi for intelligent channel selection or UWB (Ultra Wide Band) technology to avoid the congestion phenomenon of 2.4GHZ.

[0054] Specifically, when the third data channel adopts a different communication method from the first data channel, the TWS Bluetooth headset and the data relay device connected to the third data channel are integrated with communication modules corresponding to the communication method of the third data channel, and the communication modules adopted by the TWS Bluetooth headset and the data relay device match each other.

[0055] The Bluetooth data transmission method provided by the embodiment of the present application can perform spectrum scanning and analysis on the first data channel between the TWS Bluetooth headset and the mobile terminal through the data relay device at preset time intervals, obtain the frequency band interference information about the first data channel, and when the interference degree inferred according to the frequency band interference information meets the first preset condition, control the mobile terminal to perform data packet backup through the second data channel between the mobile terminal and the data relay device, so as to ensure that the data packet will not be lost due to severe interference during the transmission process, and cannot be retransmitted due to communication blockage. Then, a third data channel connection is established between the data relay device and the TWS Bluetooth headset, and the backed-up data packet is forwarded through the third data channel with a different communication method to avoid the blockage of traditional Bluetooth in the 2.4 GHz frequency band, thus ensuring the user experience and effectively avoiding the situation of communication blockage in the case of dense interference.

[0056] In an exemplary embodiment, as Figure 2 shown, the method further includes the following steps S202 to S204. Wherein:

[0057] S202, input the frequency band interference information scanned at each time node into a preset influence degree quantization model to obtain the performance influence index of the TWS Bluetooth headset under interference; the performance influence index is used to indicate the degree to which the performance of the TWS Bluetooth headset is affected under the corresponding frequency band interference information.

[0058] Specifically, the influence degree quantization model can be trained based on the pre-measured frequency band interference information and the performance influence index associated with the corresponding performance affected degree.

[0059] Specifically, each time node is used to represent the time node corresponding to the preset time interval.

[0060] S204, if it is predicted based on the change situation of the performance influence index of the TWS Bluetooth headset at each time node that the performance influence index exceeds the first preset value within the first preset duration, it is determined that the predicted interference degree of the first data channel meets the first preset condition.

[0061] It should be noted that after obtaining the performance influence index of the TWS Bluetooth headset at each time node, the development status of the performance affected degree can be judged according to the change trend of the performance influence index.

[0062] Furthermore, when the first preset value of the performance influence index is given, by predicting whether the performance affected degree according to the existing development status will cause the performance influence index to reach the first preset value, that is, the predicted interference degree of the first data channel meets the first preset condition, it can be determined whether to perform data packet backup in time to ensure the complete transmission of data to the TWS Bluetooth headset.

[0063] In an exemplary embodiment, as Figure 3 shown, the method further includes the following steps S302 to S306. Among them:

[0064] S302, obtaining the frequency band interference information under the Bluetooth reception sensitivity of multiple groups of TWS Bluetooth headsets, including interference signal strength, interference frequency band overlap ratio, and interference duty cycle, and testing the throughput degradation rate and packet error rate corresponding to the TWS Bluetooth headsets.

[0065] Specifically, the signal strength of the 2.4 GHz frequency band interference source can be directly measured by the spectrum scanning and analysis module configured in the data relay device.

[0066] Furthermore, the target frequency band can be defined according to the usage situation of its own Bluetooth, and the number of channels in the target frequency band covered by the interference source can be scanned to determine the interference frequency band overlap ratio.

[0067] Furthermore, the interference duty cycle can be determined by analyzing the ratio of the signal active time of the interference source in the total observation time. Among them, the total observation time can be set based on the specific implementation process and is not specifically limited here.

[0068] S304, establishing a first neural network model between the frequency band interference information and the throughput degradation rate, training the first neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding throughput degradation rate, obtaining the trained first neural network model, and establishing a second neural network model between the frequency band interference information and the packet error rate, training the second neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding packet error rate, obtaining the trained second neural network model.

[0069] Specifically, in the case of determining the interference signal strength, interference frequency band overlap ratio, and interference duty cycle, the throughput degradation rate and packet error rate of the corresponding TWS Bluetooth headset for receiving packets are directly measured.

[0070] Specifically, based on the first neural network model, the corresponding relationship between the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding throughput degradation rate can be obtained, and based on the second neural network model, the corresponding relationship between the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding packet error rate can be obtained; the machine learning algorithms involved in the neural network model can refer to the training methods in the machine learning processes related to neural network models in the same field and will not be elaborated here.

[0071] S306. Perform weighted calculation on the output results of the first neural network model and the second neural network model, and establish a mapping relationship between the calculation results and the preset performance impact indicators to obtain an impact degree quantification model.

[0072] Specifically, by assigning weights to the output results of the first neural network model and the second neural network model, the specific impacts of the throughput degradation rate and the packet error rate on the packet sending process can be clarified. Specifically, the weight assignment can be set during the specific implementation process; among them, the impact of the packet sending process is measured based on the performance impact indicators.

[0073] It should be noted that since the interference signal strength, the interference frequency band overlap ratio, and the interference duty cycle under the Bluetooth receiving sensitivity are positively correlated with the throughput degradation rate, and the interference signal strength, the interference frequency band overlap ratio, and the interference duty cycle under the Bluetooth receiving sensitivity are also positively correlated with the packet error rate, it is not necessary to change the sign of the assigned weights during the specific implementation process. Therefore, by assigning weights, the performance impact indicators can measure both the throughput degradation rate and the packet error rate.

[0074] Furthermore, by presetting the parameters of the performance impact indicators and then establishing the mapping relationship, the results can be made more intuitive.

[0075] In an exemplary embodiment, the method further includes the following steps:

[0076] If the performance impact indicator of the TWS Bluetooth headset at any time node exceeds the second preset value, it is determined that the actual interference degree of the first data channel meets the second preset condition; where the performance impact degree corresponding to the second preset value is greater than the performance impact degree corresponding to the first preset value.

[0077] Specifically, when the performance impact indicator of the TWS Bluetooth headset at any time node exceeds the second preset value, that is, the interference degree reflected by the finally mapped performance impact indicator exceeds the first preset value.

[0078] It should be noted that the setting of the second preset value can be more in line with the maximum interference degree that can be tolerated for a complete packet backup; the performance impact degree corresponding to the second preset value is greater than the performance impact degree corresponding to the first preset value, which is used to prevent the interference degree corresponding to the first preset value from exceeding the maximum interference degree that can be tolerated for a complete packet backup due to unpredictable situations, resulting in packet backup failure.

[0079] In an exemplary embodiment, as Figure 4 shown, the method further includes steps S402 to S406 as follows. Among them:

[0080] S402. Obtain the current geographical location through the mobile terminal.

[0081] Specifically, the mobile terminal has a corresponding satellite positioning function.

[0082] Specifically, the mobile terminal can obtain the current geographical location at a preset acquisition interval, or continuously obtain the current geographical location during the Bluetooth transmission process.

[0083] S404. In the case where the performance impact index exceeds the first preset value within the first preset duration, in response to the performance impact index still not exceeding the first preset value within the second preset duration, mark the current geographical location.

[0084] Specifically, if it has been predicted that the performance impact index exceeds the first preset value within the first preset duration, but the performance impact index still does not exceed the first preset value within the second preset duration, it indicates that the interference from the interference source in the current frequency band has not continued to increase. Therefore, the interference source that has not continued to increase can be determined by marking the corresponding current geographical location.

[0085] Among them, the second preset duration exceeds the first preset duration.

[0086] S406. In response to the current geographical location obtained being marked more than the preset number of times, output a monitoring control instruction; the monitoring control instruction is used to terminate the spectrum scanning analysis and restart the spectrum scanning analysis when the geographical location obtained by the mobile terminal changes.

[0087] Specifically, after determining the interference source that has not continued to increase, verify the interference source that has not continued to increase through marking a preset number of times. After verification a preset number of times, when it is determined that the interference source at the current geographical location has not continued to increase, terminate the spectrum scanning analysis through the monitoring control instruction and restart the spectrum scanning analysis when the geographical location obtained by the mobile terminal changes, thereby achieving the purpose of power consumption saving.

[0088] In an exemplary embodiment, the first data channel and the second data channel include data channels using the classic Bluetooth communication method, and the third data channel includes a data channel using the UWB communication method; as Figure 5 shown, the method further includes the following steps S502 to S506. Among them:

[0089] S502. In response to the TWS Bluetooth headset receiving a backup data packet, decode the backup data packet through the TWS Bluetooth headset to obtain backup audio.

[0090] Specifically, UWB can transmit data in a frequency band outside 2.4GHZ, which can effectively avoid interference from interference sources in the 2.4GHz frequency band.

[0091] S504, Align the backup audio with the original audio obtained by decoding the data packet and perform difference detection.

[0092] Specifically, the LC3-encoded audio data can be transmitted through UWB, decoded in the TWS Bluetooth headset, and ns-level time alignment can be achieved through TOF (Time of Flight technology) based on UWB; during this process, the mobile terminal and the TWS Bluetooth headset need to exchange timestamp messages according to the preset exchange time.

[0093] Specifically, since there are differences in the audio quality of Bluetooth transmission and UWB transmission, after alignment, the audio frames of a preset length can be compared, and the audio part with the smallest difference degree can be selected for playback conversion.

[0094] S506, Select a playback time slot for the audio part with the smallest difference degree between the backup audio and the original audio, and when the playback progress reaches the playback time slot, perform audio playback according to the backup audio.

[0095] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0096] Based on the same inventive concept, the embodiments of the present application also provide a Bluetooth data transmission device for implementing the above-mentioned Bluetooth data transmission method. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the following Bluetooth data transmission devices can refer to the limitations on the Bluetooth data transmission method in the above text, and will not be repeated here.

[0097] In a second aspect, as Figure 6 shown, the present application provides a Bluetooth data transmission device 600, which is applied to a Bluetooth data transmission system; the system includes a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives data packets sent by the mobile terminal through a first data channel; it further includes a data relay device with a built-in spectrum scanning and analysis module, which is connected to the mobile terminal through a second data channel; the device includes:

[0098] A prediction module 601 is configured to perform spectrum scanning analysis on a first data channel at preset time intervals through a data relay device to obtain frequency band interference information, and predict the interference degree of the first data channel according to the frequency band interference information;

[0099] A backup module 602 is configured to control the mobile terminal to send a backup data packet to the data relay device through a second data channel when the predicted interference degree of the first data channel meets a first preset condition;

[0100] A forwarding module 603 is configured to establish a connection of a third data channel between the data relay device and the TWS Bluetooth headset and control the data relay device to forward the backup data packet through the third data channel when the actual interference degree of the first data channel meets a second preset condition; the third data channel uses a different communication method from the first data channel.

[0101] Each module in the above Bluetooth data transmission device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0102] In a third aspect, the present application further provides a Bluetooth data transmission system, including a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives data packets sent by the mobile terminal through a first data channel; it further includes a data relay device with a built-in spectrum scanning module, which is connected to the mobile terminal through a second data channel.

[0103] In one embodiment, the TWS Bluetooth headset is respectively connected to the mobile terminal through an integrated Bluetooth module and connected to the data relay device through an integrated UWB module; the data relay device is integrated with a data relay device matching the TWS Bluetooth headset.

[0104] In one embodiment, the mobile terminal, the TWS Bluetooth headset, and the data relay device all support and adopt a matching Bluetooth 5.2 version.

[0105] In a fourth aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, it implements the steps of the foregoing Bluetooth data transmission method.

[0106] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the foregoing Bluetooth data transmission method.

[0107] In a sixth aspect, the present application provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the Bluetooth data transmission method as described above.

[0108] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memories can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided by the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided by the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0109] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.

[0110] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A Bluetooth data transmission method, characterized in that, Applied to a Bluetooth data transmission system; the system includes TWS Bluetooth headsets and a mobile terminal; the TWS Bluetooth headsets receive data packets sent by the mobile terminal through a first data channel; further includes a data relay device with a built-in spectrum scanning and analysis module, which is connected to the mobile terminal through a second data channel; the method includes: Performing spectrum scanning and analysis on the first data channel at preset time intervals through the data relay device to obtain frequency band interference information, and predicting the degree of interference of the first data channel according to the frequency band interference information; When the predicted degree of interference of the first data channel meets a first preset condition, controlling the mobile terminal to send backup data packets to the data relay device through the second data channel; When the actual degree of interference of the first data channel meets a second preset condition, establishing a connection of a third data channel between the data relay device and the TWS Bluetooth headsets, and controlling the data relay device to forward the backup data packets through the third data channel; the communication method adopted by the third data channel is different from that of the first data channel.

2. The method according to claim 1, wherein The method further includes: Inputting the frequency band interference information scanned at each time node into a preset influence degree quantization model to obtain a performance influence index of the TWS Bluetooth headsets under interference; the performance influence index is used to indicate the degree to which the performance of the TWS Bluetooth headsets is affected under the corresponding frequency band interference information; If it is predicted that the performance influence index exceeds a first preset value within a first preset duration based on the change of the performance influence index of the TWS Bluetooth headsets at each time node, it is determined that the predicted degree of interference of the first data channel meets the first preset condition.

3. The method according to claim 2, wherein The method further includes: Obtaining multiple groups of the frequency band interference information under the Bluetooth reception sensitivity of the TWS Bluetooth headsets, including interference signal strength, interference frequency band overlap ratio, and interference duty cycle, and testing the throughput degradation rate and packet error rate corresponding to the TWS Bluetooth headsets; Establishing a first neural network model between the frequency band interference information and the throughput degradation rate, training the first neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding throughput degradation rate to obtain the trained first neural network model, and establishing a second neural network model between the frequency band interference information and the packet error rate, training the second neural network model based on the frequency band interference information under the Bluetooth reception sensitivity of each group of TWS Bluetooth headsets and the corresponding packet error rate to obtain the trained second neural network model; Performing weighted calculation on the output results of the first neural network model and the second neural network model, and establishing a mapping relationship between the calculation result and a preset performance influence index to obtain the influence degree quantization model.

4. The method according to claim 2, wherein The method further includes: If the performance impact index of the TWS Bluetooth headset at any time node exceeds a second preset value, it is determined that the actual interference degree of the first data channel meets a second preset condition; wherein, the performance impact degree corresponding to the second preset value is greater than the performance impact degree corresponding to the first preset value.

5. The method according to claim 4, wherein The method further includes: Obtaining the current geographical location through the mobile terminal; In the case where it is predicted that the performance impact index exceeds the first preset value within a first preset duration, in response to the performance impact index not exceeding the first preset value within a second preset duration, marking the current geographical location; In response to the current geographical location obtained being marked more than a preset number of times, outputting a monitoring control instruction; the monitoring control instruction is used to terminate the spectrum scanning analysis and restart the spectrum scanning analysis when the geographical location obtained by the mobile terminal changes.

6. The method according to claim 1, wherein The first data channel and the second data channel include data channels using the classic Bluetooth communication method, and the third data channel includes a data channel using the UWB communication method; the method further includes: In response to the TWS Bluetooth headset receiving the backup data packet, decoding the backup data packet by the TWS Bluetooth headset to obtain backup audio; Performing time alignment on the backup audio and the original audio obtained by decoding the data packet, and performing difference detection; Selecting a playback time slot for the audio part with the smallest difference degree between the backup audio and the original audio, and performing audio playback according to the backup audio when the playback progress reaches the playback time slot.

7. A Bluetooth data transmission device, characterized in that, Applied to a Bluetooth data transmission system; the system includes a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives the data packet sent by the mobile terminal through a first data channel; it further includes a data relay device with a built-in spectrum scanning analysis module, which is connected to the mobile terminal through a second data channel; the device includes: A prediction module, configured to perform spectrum scanning analysis on the first data channel at a preset time interval through the data relay device to obtain frequency band interference information, and predict the interference degree of the first data channel according to the frequency band interference information; A backup module, configured to control the mobile terminal to send a backup data packet to the data relay device through the second data channel when the predicted interference degree of the first data channel meets a first preset condition; A forwarding module, configured to establish a connection of a third data channel between the data relay device and the TWS Bluetooth headset when the actual interference degree of the first data channel meets a second preset condition, and control the data relay device to forward the backup data packet through the third data channel; the third data channel uses a different communication method from the first data channel.

8. A Bluetooth data transmission system, characterized in that, Including a TWS Bluetooth headset and a mobile terminal; the TWS Bluetooth headset receives the data packet sent by the mobile terminal through a first data channel; it further includes a data relay device with a built-in spectrum scanning module, which is connected to the mobile terminal through a second data channel.

9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 6.