Bluetooth audio stream synchronous transmission control method

By establishing temporary buffer spaces on both the Bluetooth terminal and the mobile phone, pre-caching and converting the audio data stream, the asynchronous problem caused by signal fluctuations in Bluetooth audio devices is solved, achieving a more stable synchronous transmission effect.

CN121240194APending Publication Date: 2025-12-30QINGDAO FURIKUN MICROELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511365674.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-23
Publication Date
2025-12-30

AI Technical Summary

Technical Problem

In multi-device connection scenarios, Bluetooth audio devices are prone to audio desynchronization due to fluctuations in Bluetooth and network signals, affecting data transmission speed and synchronization effect.

Method used

By establishing a one-to-one temporary buffer space between the Bluetooth terminal and the mobile phone, audio data is pre-buffered and converted into a data stream based on the signal quality detection results and background program priority, and end-to-end clock synchronization is performed using different playback strategies.

Benefits of technology

It reduces asynchrony issues caused by fluctuations in Bluetooth or network signals, ensures continuous playback of audio data, and improves the stability and consistency of synchronous transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121240194A_ABST
    Figure CN121240194A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth audio stream synchronous transmission control method, which relates to the technical field of signal transmission, and comprises the following steps: detecting a communication signal between a Bluetooth end and a mobile phone end, and carrying out quality detection on the communication signal; reading background programs which have audio signals and are running at the mobile phone end, and generating an audio transmission source list; constructing a temporary cache space according to the audio transmission source list, associating the temporary cache space with a background program, and setting the size of the temporary cache space according to the priority of the background program; caching audio data needing to be transmitted in the temporary cache space, and converting the cached audio data into an audio data stream; based on a communication signal quality detection result, different playing strategies are adopted; therefore, when the quality of the Bluetooth signal or the network signal is poor, the Bluetooth signal or the network signal can still be played for a period of time according to the audio data cached in the temporary cache space, so that the problem of asynchronization caused by fluctuation of the Bluetooth signal or the network signal can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of signal transmission technology, specifically a Bluetooth audio stream synchronous transmission control method. Background Technology

[0002] With the development of Bluetooth technology, Bluetooth audio devices such as Bluetooth headsets and Bluetooth speakers have been widely used. In multi-device connection scenarios, such as building a Bluetooth speaker system to achieve stereo or surround sound effects, and multiple people using Bluetooth devices to participate in meetings, the demand for synchronous transmission of Bluetooth audio streams is increasing. When Bluetooth headsets connect to a mobile phone, audio desynchronization can easily occur. This desynchronization is usually caused by fluctuations in Bluetooth and network signals, which affect data transmission speed. How to eliminate the desynchronization caused by fluctuations as much as possible is a problem we need to solve. To this end, we now provide a Bluetooth audio stream synchronization transmission control method. Summary of the Invention

[0003] The purpose of this invention is to provide a method for controlling the synchronous transmission of Bluetooth audio streams.

[0004] The objective of this invention can be achieved through the following technical solution: a Bluetooth audio stream synchronous transmission control method, comprising: Detect the communication signal between the Bluetooth device and the mobile phone, and perform quality testing on the communication signal; Read background programs on the mobile device that have audio signals and are running, and generate a list of audio transmission sources; A temporary buffer space is constructed based on the list of audio transmission sources, and the temporary buffer space is associated with the background program. The size of the temporary buffer space is set according to the priority of the background program. The audio data to be transmitted is cached in a temporary buffer space, and the cached audio data is converted into an audio data stream. Different playback strategies are adopted based on the communication signal quality detection results.

[0005] Furthermore, the communication signals include the Bluetooth signal between the mobile phone and the Bluetooth device, as well as the network signal of the mobile phone. When the mobile phone and the Bluetooth device establish a communication connection, the quality of the Bluetooth signal between the mobile phone and the Bluetooth device is detected. When the Bluetooth signal strength between the mobile phone and the Bluetooth device meets the quality detection requirements, the Bluetooth device establishes a communication connection with the mobile phone. After the communication connection between the mobile phone and the Bluetooth device is completed, the network signal of the mobile phone is detected, and the quality of the network signal of the mobile phone is also detected.

[0006] Furthermore, the process of detecting the Bluetooth signal quality between the mobile phone and the Bluetooth device is as follows: The mobile device searches for Bluetooth signals and sorts the detected Bluetooth terminals from high to low according to the signal strength. The ranking results of the detected Bluetooth terminals are displayed visually on the mobile phone, allowing the user to select the Bluetooth terminal they wish to connect to. Set the signal detection period; During the signal detection period, the Bluetooth terminal sends continuous Bluetooth signals to the mobile phone. After receiving all the Bluetooth signals during the signal detection period, the mobile phone generates a Bluetooth signal strength change curve. Setting a Bluetooth signal strength threshold marks the portion of the Bluetooth signal strength change curve that is greater than or equal to the threshold. The percentage of the marked portion relative to the total Bluetooth signal strength change curve is then calculated. A higher percentage indicates a higher Bluetooth signal quality.

[0007] Furthermore, the process of detecting the network signal and network signal quality on the mobile phone is as follows: The mobile app detects network signal strength in real time and classifies network signal quality based on the detected signal strength. It should be noted that the network signal strength detected by the mobile app is the data download speed.

[0008] Furthermore, the process of reading background programs on the mobile phone that have audio signals and are running, and generating a list of audio transmission sources, includes: Sort the background programs running on the mobile device that have audio signals according to the user's historical usage order to obtain a list of audio transmission sources; Users select at least one background program from the list of audio transmission sources, and the selected background program is used as the audio data transmission source.

[0009] Furthermore, a temporary buffer space is constructed based on the list of audio transmission sources, and this temporary buffer space is associated with a background program. The process of setting the size of the temporary buffer space according to the priority of the background program is as follows: Based on the number of audio data transmission sources selected by the user, the same number of temporary buffer spaces are built in both the Bluetooth terminal and the mobile phone. The temporary buffer spaces of the Bluetooth terminal and the mobile phone are paired, and the paired temporary buffer spaces are associated with an audio data transmission source. Establish a data transmission channel between paired temporary buffer spaces based on the audio data transmission source associated with the paired temporary buffer spaces; Obtain the priority of the background program corresponding to each audio data transmission source, and allocate the Bluetooth terminal storage space capacity to each temporary cache space; The maximum data transmission speed from the mobile phone to the Bluetooth terminal is obtained based on the Bluetooth signal strength. Based on the maximum data transmission speed and the priority of the background program, the corresponding data transmission speed is allocated to each data transmission channel. The buffer duration of the temporary buffer space is obtained based on the channel data transmission speed and the storage capacity of the temporary buffer space.

[0010] Furthermore, the process of caching the audio data to be transmitted in a temporary buffer space and converting the cached audio data into an audio data stream includes: Obtain the timestamp of the audio data from the audio data transmission source and construct the audio timeline in the temporary cache space on the mobile device; The audio data is pre-downloaded, and the downloaded audio data is converted into a corresponding audio data stream. The converted audio data stream is then mapped onto the audio timeline. Generate a real-time timestamp within the audio timeline based on the current moment of the audio data; The constructed audio timeline and audio data stream are sent to the temporary buffer space in the Bluetooth terminal through the data transmission channel. The audio data stream corresponding to the real-time timestamp is converted into audio data for output, and the audio data stream before the real-time timestamp is deleted.

[0011] Furthermore, based on the communication signal quality detection results, different playback strategies are adopted to perform end-to-end clock synchronization of the converted audio data stream, including: During audio data transmission, the mobile device monitors the signal quality of Bluetooth and network signals in real time. When the Bluetooth signal quality is low, a prompt message is generated and Bluetooth offline playback mode is enabled. When the Bluetooth signal quality is normal or high, and the network signal quality on the mobile phone is low, a prompt message is generated and sent to the Bluetooth terminal, and the offline network playback mode is activated.

[0012] Compared with the prior art, the beneficial effects of the present invention are: By establishing a one-to-one temporary buffer space within the Bluetooth terminal and the mobile terminal, the audio data to be transmitted is pre-buried in the temporary buffer space when the Bluetooth signal and network signal quality are high. This allows the audio data to still play for a period of time when the Bluetooth signal or network signal quality is poor, thereby reducing the desynchronization problem caused by fluctuations in the Bluetooth signal or network signal. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this invention. For those skilled in the art, other drawings can be obtained based on these drawings.

[0014] Figure 1 This is a flowchart of the present invention. Detailed Implementation

[0015] like Figure 1 As shown, the Bluetooth audio stream synchronization transmission control method includes: Detect the communication signal between the Bluetooth device and the mobile phone, and perform quality testing on the communication signal; Read background programs on the mobile device that have audio signals and are running, and generate a list of audio transmission sources; A temporary buffer space is constructed based on the list of audio transmission sources, and the temporary buffer space is associated with the background program. The size of the temporary buffer space is set according to the priority of the background program. The audio data to be transmitted is cached in a temporary buffer space, and the cached audio data is converted into an audio data stream. Different playback strategies are adopted based on the communication signal quality detection results.

[0016] It should be further explained that, in the specific implementation process, the communication signal includes the Bluetooth signal between the mobile phone and the Bluetooth device, as well as the network signal of the mobile phone. When the mobile phone and the Bluetooth device establish a communication connection, the quality of the Bluetooth signal between the mobile phone and the Bluetooth device will be detected. When the Bluetooth signal strength between the mobile phone and the Bluetooth device meets the quality detection requirements, the Bluetooth device and the mobile phone will establish a communication connection. After the communication connection between the mobile phone and the Bluetooth device is completed, the network signal of the mobile phone will be detected, and the quality of the network signal of the mobile phone will be detected. Furthermore, the process of detecting the Bluetooth signal quality between the mobile phone and the Bluetooth device is as follows: The mobile device searches for Bluetooth signals and sorts the detected Bluetooth terminals from high to low according to the signal strength. The ranking results of the detected Bluetooth terminals are displayed visually on the mobile phone, allowing the user to select the Bluetooth terminal they wish to connect to. Set the signal detection period; During the signal detection period, the Bluetooth terminal sends continuous Bluetooth signals to the mobile phone. After receiving all the Bluetooth signals during the signal detection period, the mobile phone generates a Bluetooth signal strength change curve. Setting a Bluetooth signal strength threshold marks the portion of the Bluetooth signal strength change curve that is greater than or equal to the threshold. The percentage of the marked portion relative to the total Bluetooth signal strength change curve is obtained. The higher the percentage, the higher the Bluetooth signal quality. Bluetooth signal quality is then classified into three levels: high quality, normal quality, and low quality.

[0017] Furthermore, the process of detecting the network signal and network signal quality on the mobile phone is as follows: The mobile app detects network signal strength in real time and classifies network signal quality based on the detected signal strength. It should be noted that the network signal strength detected by the mobile app is the data download speed.

[0018] It should be further explained that, in the specific implementation process, the process of reading background programs that have audio signals and are running on the mobile phone to generate an audio transmission source list includes: The background programs running on the mobile device that have audio signals are sorted according to the user's historical usage order to obtain a list of audio transmission sources. It should be noted that the usage order refers to the time of the most recent use of the corresponding background program. The closer to the current time, the higher the usage order of the background program. Users select at least one background program from the list of audio transmission sources, and the selected background program is used as the audio data transmission source. It should be noted that when users select multiple background programs as audio data transmission sources, they can set priorities for the selected audio data transmission sources, and sort the audio data transmission sources according to the priorities set by the user.

[0019] It should be further explained that, in the specific implementation process, the process of constructing a temporary buffer space based on the list of audio transmission sources, associating the temporary buffer space with the background program, and setting the size of the temporary buffer space according to the priority of the background program is as follows: Based on the number of audio data transmission sources selected by the user, the same number of temporary buffer spaces are built in both the Bluetooth terminal and the mobile phone. The temporary buffer spaces of the Bluetooth terminal and the mobile phone are paired, and the paired temporary buffer spaces are associated with an audio data transmission source. It should be noted that temporary buffer space pairing means that the temporary buffer space in the Bluetooth terminal is paired with the temporary buffer space in the mobile phone. Establish a data transmission channel between paired temporary buffer spaces based on the audio data transmission source associated with the paired temporary buffer spaces; Obtain the priority of the background program corresponding to each audio data transmission source, and allocate the Bluetooth terminal storage space capacity to each temporary cache space; The maximum data transmission speed from the mobile phone to the Bluetooth terminal is obtained based on the Bluetooth signal strength. Based on the maximum data transmission speed and the priority of the background program, the corresponding data transmission speed is allocated to each data transmission channel. The buffer duration of the temporary buffer space is obtained based on the channel data transmission speed and the storage capacity of the temporary buffer space. It should be noted that the buffer duration refers to the time required for the audio data stored in the temporary buffer space within the Bluetooth terminal to reach the corresponding storage capacity, which is the ratio of storage capacity to channel data transmission speed. It should be noted that the storage capacity of the temporary cache space on the mobile device is greater than that on the Bluetooth device.

[0020] It should be further explained that, in the specific implementation process, the process of caching the audio data to be transmitted in a temporary buffer space and converting the cached audio data into an audio data stream includes: Obtain the timestamp of the audio data from the audio data transmission source and construct the audio timeline in the temporary cache space on the mobile device; The audio data is pre-downloaded and converted into a corresponding audio data stream, which is then mapped onto the audio timeline. It should be noted that the size of the pre-downloaded audio data is larger than the temporary buffer space of the Bluetooth terminal.

[0021] Generate a real-time timestamp within the audio timeline based on the current moment of the audio data; The constructed audio timeline and audio data stream are sent to the temporary buffer space in the Bluetooth terminal through the data transmission channel. The audio data stream corresponding to the real-time timestamp is converted into audio data for output, and the audio data stream before the real-time timestamp is deleted.

[0022] It should be further explained that, in the specific implementation process, based on the communication signal quality detection results, different playback strategies are adopted to perform end-to-end clock synchronization of the converted audio data stream, which includes: During audio data transmission, the mobile device monitors the signal quality of Bluetooth and network signals in real time. When the Bluetooth signal quality is low, a prompt message is generated and Bluetooth offline playback mode is enabled. When the Bluetooth signal quality is normal or high, and the network signal quality on the mobile phone is low, a prompt message is generated and sent to the Bluetooth terminal, and the offline network playback mode is activated. It should be noted that the prompt message content is: the estimated playback time of the audio data stored in the temporary buffer space of the Bluetooth terminal, which is the buffering time of the temporary buffer space.

[0023] It should be noted that the Bluetooth offline playback mode works as follows: playback continues based on the audio data stream stored in the temporary buffer space within the Bluetooth terminal until all audio data streams have been played. The offline playback mode involves continuing to send the audio data stream stored in the temporary cache space on the mobile phone to the Bluetooth terminal through the data transmission channel until all the audio data stream stored in the temporary cache space on the mobile phone has been transmitted.

[0024] In another embodiment of the present invention, when the user manually adjusts the playback process of the audio data in the background program, the manually adjusted timestamp is read, and it is determined whether the time corresponding to the timestamp has been pre-downloaded. If it has not been pre-downloaded, the audio data in the temporary cache space on the mobile phone is cleared, and the audio data with the manually adjusted timestamp and the subsequent audio data are re-downloaded. If it has been downloaded, the audio data stream before the manually adjusted timestamp is deleted, and the manually adjusted timestamp is synchronized to the Bluetooth terminal, which performs the same operation.

[0025] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications or equivalent substitutions made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A method of controlling the transmission of a Bluetooth audio stream in synchronization, characterized in that, The application relates to a method for realizing audio data transmission between a Bluetooth terminal and a mobile phone terminal. The method comprises the following steps: detecting a communication signal between the Bluetooth terminal and the mobile phone terminal and performing quality detection on the communication signal; reading a background program with audio signals and being run on the mobile phone terminal to generate an audio transmission source list; constructing a temporary cache space according to the audio transmission source list, associating the temporary cache space with the background program, and setting the size of the temporary cache space according to the priority of the background program; caching audio data required to be transmitted in the temporary cache space and converting the cached audio data into an audio data stream; 2. The Bluetooth audio stream synchronization transmission control method of claim 1, wherein, adopting different playing strategies based on the quality detection result of the communication signal.

3. The Bluetooth audio stream synchronization transmission control method of claim 2, wherein, The communication signal comprises a Bluetooth signal between the mobile phone terminal and the Bluetooth terminal and a network signal of the mobile phone terminal; when the mobile phone terminal and the Bluetooth terminal are in communication connection, the Bluetooth signal quality between the mobile phone terminal and the Bluetooth terminal is detected; when the Bluetooth signal strength between the mobile phone terminal and the Bluetooth terminal meets the quality detection requirement, the Bluetooth terminal and the mobile phone terminal are in communication connection; after the communication connection between the mobile phone terminal and the Bluetooth terminal is completed, the network signal of the mobile phone terminal is detected, and the network signal quality of the mobile phone terminal is detected. The process of detecting the Bluetooth signal quality between the mobile phone terminal and the Bluetooth terminal is as follows: the mobile phone terminal searches for a Bluetooth signal, and the detected Bluetooth terminals are sorted from high to low according to the signal strength of the Bluetooth signal; the sorting result of the detected Bluetooth terminals is visually displayed on the mobile phone terminal, and the user selects the Bluetooth terminal required to be connected; a signal detection period is set; in the signal detection period, the Bluetooth terminal sends continuous Bluetooth signals to the mobile phone terminal; after the mobile phone terminal receives all the Bluetooth signals in the signal detection period, a Bluetooth signal strength change curve is generated; 4. The Bluetooth audio stream synchronization transmission control method of claim 3, wherein, a Bluetooth signal strength threshold is set to mark the curve part of the Bluetooth signal strength change curve which is greater than or equal to the Bluetooth signal strength threshold, and the proportion of the marked curve part relative to the Bluetooth signal strength change curve is obtained; the higher the proportion is, the higher the Bluetooth signal quality is. The process of detecting the network signal of the mobile phone terminal and the network signal quality is as follows:

5. The Bluetooth audio stream synchronization transmission control method of claim 4, wherein, the mobile phone terminal detects the network signal strength in real time, and divides the network signal quality according to the detected network signal strength; it is to be noted that the network signal strength detected by the mobile phone terminal is a data download speed. The process of reading the background program with audio signals and being run on the mobile phone terminal to generate an audio transmission source list comprises the following steps: the background programs with audio signals and being run on the mobile phone terminal are sorted according to the historical use sequence of the user to obtain an audio transmission source list; 6. The Bluetooth audio stream synchronization transmission control method of claim 5, wherein, the user selects at least one background program from the audio transmission source list, and the background program selected by the user is taken as an audio data transmission source. The process of constructing a temporary cache space according to the audio transmission source list, associating the temporary cache space with the background program, and setting the size of the temporary cache space according to the priority of the background program is as follows: the same number of temporary cache spaces are constructed in the Bluetooth terminal and the mobile phone terminal according to the number of the audio data transmission sources selected by the user, the temporary cache spaces of the Bluetooth terminal and the mobile phone terminal are paired, and the paired temporary cache spaces are associated with one audio data transmission source. According to the audio data transmission source associated with the matched temporary cache space, a data transmission channel is established between the matched temporary cache spaces; The priority of the background program corresponding to each audio data transmission source is obtained, and the storage space capacity of the Bluetooth terminal is allocated to each temporary cache space; According to the maximum data transmission speed of the mobile terminal to the Bluetooth terminal obtained according to the Bluetooth signal strength, and according to the data transmission maximum speed and the priority of the background program, the corresponding channel data transmission speed is allocated to each data transmission channel; According to the channel data transmission speed and the storage space capacity of the temporary cache space, the buffer duration of the temporary cache space is obtained.

7. The Bluetooth audio stream synchronization transmission control method of claim 6, wherein, The process of caching the audio data to be transmitted in the temporary cache space and converting the cached audio data into an audio data stream includes: Obtain the timestamp of the audio data of the audio data transmission source, and construct an audio timeline in the temporary cache space of the mobile terminal; Pre-download the audio data, and convert the downloaded audio data into corresponding audio data streams, and map the converted audio data streams to the audio timeline; According to the current time of the audio data, a real-time timestamp is generated in the audio timeline; The constructed audio timeline and audio data stream are sent to the temporary cache space in the Bluetooth terminal through the data transmission channel, the audio data stream corresponding to the real-time timestamp is converted into audio data for output, and the audio data stream before the real-time timestamp is deleted.

8. The Bluetooth audio stream synchronization transmission control method of claim 7, wherein, Based on the communication signal quality detection result, different playing strategies are adopted to perform end-to-end clock synchronization of the converted audio data stream, which includes: During the process of transmitting audio data by the mobile terminal, the signal quality of the Bluetooth signal and the network signal is detected in real time; When the Bluetooth signal quality is low, a prompt information is generated, and a Bluetooth offline playing mode is enabled; When the Bluetooth signal quality is general or high, and the network signal quality of the mobile terminal is low, a prompt information is generated, and the prompt information is sent to the Bluetooth terminal, and a network offline playing mode is started.