Self-synchronous calibration Bluetooth headset and self-synchronous calibration method of Bluetooth headset

Through the self-synchronization calibration method, the audio synchronization of Bluetooth headsets is realized through the sampling step adjustment of the master and slave devices, which solves the problems of phase error and high power consumption in the existing technology, improves the synchronization accuracy and stability, and achieves low power consumption. audio playback.

CN118555519BActive Publication Date: 2024-10-01AIC SEMICON LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411027513.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-01
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing Bluetooth headsets have phase errors and synchronization problems during audio playback, causing audio playback to be out of sync, and the high power consumption of analog phase-locked loops in the existing technology affects low-power applications.

Method used

Using the self-synchronization calibration method, the master device and the slave device obtain the start and end moments of the time period respectively, calculate the sampling step error, and adjust the sampling step size to achieve synchronization, eliminating the need for audio clock analog phase-locked loops and improving synchronization accuracy and stability. sex.

Benefits of technology

Without affecting audio performance and sound effects, the direct relationship between Bluetooth playback audio frequency error and sampling step size is achieved, improving synchronization accuracy and stability, and saving energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555519B_ABST
    Figure CN118555519B_ABST
Patent Text Reader

Abstract

The present disclosure provides a self-synchronous calibration Bluetooth headset and a self-synchronous calibration method for a Bluetooth headset. The self-synchronous calibration Bluetooth headset includes: a master device and a slave device, which respectively receive audio signals from an external device; the master device converts the received audio signal into a first digital audio signal; the slave device converts the received audio signal into a second digital audio signal; the master device samples the first digital audio signal according to a first sampling step, and the slave device samples the second digital audio signal according to a second sampling step. The slave device compares the error sampling step coefficient with the first threshold and the second threshold, and adjusts it according to the comparison result. In addition, the present disclosure also provides a corresponding self-synchronous calibration method for a Bluetooth headset. The present disclosure effectively self-adjusts to improve the audio playback synchronization of the Bluetooth headset without affecting the audio performance and sound effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Bluetooth headsets, and in particular to a self-synchronous calibration Bluetooth headset and a self-synchronous calibration method for a Bluetooth headset. Background Art

[0002] Bluetooth headsets are currently common electronic devices, and usually include two earphones, a master earphone and a slave earphone. In the ear-to-ear transmission mode of Bluetooth headsets, the relative phase of the audio playback between the master ear and the slave ear must meet certain index requirements, that is, less than a certain threshold, otherwise it will cause the user to hear the playback asynchrony that is noticeable.

[0003] In the prior art, the audio played by the master and slave left and right Bluetooth chips can be synchronized with their respective Bluetooth clocks by adjusting the analog audio phase-locked loop. Based on the Bluetooth clock synchronization achieved by the master and slave Bluetooth chips, the master and slave Bluetooth audio playback adjusted by the audio phase-locked loop is also synchronized. Therefore, the master and slave Bluetooth chips can read and play the audio data to be played at a set time according to the synchronized audio playback. However, the above scheme requires an independent dedicated audio analog phase-locked loop to adjust the phase-locked loop clock and Bluetooth clock of the left and right ear Bluetooth chips respectively. Although the respective phase-locked loop clocks can quickly follow the Bluetooth clock, every time the Bluetooth clock is adjusted, the phase-locked loop clock follows the adjustment and there is still a delay, resulting in this delay error being accumulated in the Bluetooth playback. Since this error has no feedback correction, long-term accumulation will still cause a certain phase error in the left and right ear Bluetooth playback.

[0004] In addition, the existing technology also uses the data cache difference between the slave Bluetooth chip and the master Bluetooth chip as the input of the analog audio phase-locked loop. The slave Bluetooth chip adjusts the audio playback by adjusting the phase-locked loop frequency, and finally synchronizes the master and slave Bluetooth audio playback. However, the analog phase-locked loop of this solution has high power consumption, which affects low-power applications.

[0005] In addition, there is also a technical solution that does not require synchronization of the audio clocks of the master and slave ear Bluetooth chips, and can also achieve synchronous playback of audio data at a set time. The slave ear Bluetooth chip can adjust the data sampling rate through a variable sampling module, such as adjusting the sampling step size, so that the length of the master and slave Bluetooth headset data buffer area is consistent and the access speed is fixed, that is, by adjusting the sampling rate from the Bluetooth chip, the access time length of the audio data in the data buffer area is consistent with that of the master Bluetooth headset. At this time, there is no need to adjust the audio clock synchronization, and finally the left and right ear Bluetooth chips are read and played at a set time for the to-be-played audio data. However, in this solution, referring to a certain moment of the Bluetooth clock, the amount of cached data audio data is compared to determine whether the left and right ear Bluetooth has played data synchronously. During the implementation process, a series of problems such as the left and right ear Bluetooth chips receiving data are not synchronized, and the back-stage audio playback cache data are not synchronized will be encountered, making it difficult to accurately synchronize the master and slave ear Bluetooth audio playback.

[0006] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0007] In order to solve at least one of the above problems and one or more of other potential problems, the present disclosure proposes a self-synchronous and calibrated Bluetooth headset, so that, for example, the Bluetooth playback audio frequency error and the audio sampling step (step = 1 / frequency) are directly related to the playback data volume without affecting the audio performance and sound effects. The chip omits the audio clock analog phase-locked loop PLL and has high synchronization accuracy and good stability.

[0008] In a first aspect of the present disclosure, a self-synchronous and calibrated Bluetooth headset is proposed, comprising a master device and a slave device, wherein the master device and the slave device respectively receive an audio signal from an external device; the master device converts the received audio signal into a first digital audio signal; the slave device converts the received audio signal into a second digital audio signal; the master device obtains the start time of a first time period, the end time of the first time period, the start time of a remaining first time period and the end time of the remaining first time period according to a Bluetooth synchronization clock of the master device; the slave device obtains the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to the Bluetooth synchronization clock of the slave device; wherein the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period; the master device samples the first digital audio signal according to a first sampling step and outputs the first number of sampling points of the first time period, and the first sampling step is the time interval between the start time of the remaining first time period and the end time of the remaining first time period. A sampling step length=the first time period / the first number of sampling points, the slave device samples the second digital audio signal according to the second sampling step length and outputs the second number of sampling points in the first time period, the second sampling step length=the first time period / the second number of sampling points=the first sampling step length*the error sampling step length coefficient; the slave device compares the error sampling step length coefficient with the first threshold value and the second threshold value; when the error sampling step length coefficient is greater than the first threshold value or less than the second threshold value, and the first threshold value is greater than 1 and the second threshold value is less than 1, the master device samples the first digital audio signal according to the first sampling step length and outputs the remaining number of first sampling points in the remaining first time period, the remaining number of first sampling points=the remaining first time period / the first sampling step length; the slave device adjusts the second sampling step length to sample the second digital audio signal, so that the slave device outputs the remaining number of second sampling points in the remaining first time period, the remaining number of second sampling points=the first number of sampling points+the remaining number of first sampling points-the second number of sampling points.

[0009] Further, in some embodiments, when the slave device adjusts the second sampling step size to sample the second digital audio signal, the step size sampled by the slave device is adjusted to the first sampling step size at the end of the remaining first time period.

[0010] Further, in some embodiments, the above-mentioned remaining first time period is divided into N time periods, and the above-mentioned N time periods include the 1st remaining time period, the 2nd remaining time period to the Nth remaining time period, and N is an integer; through the gradual adjustment of the N time periods from the above-mentioned 1st remaining time period to the above-mentioned Nth remaining time period, the step size sampled by the above-mentioned slave device is gradually adjusted to the above-mentioned first sampling step size, and the step size sampled by the above-mentioned slave device in each of the N time periods is the same.

[0011] Further, in some embodiments, the step size sampled by the above-mentioned slave device is gradually adjusted to the above-mentioned first sampling step size in a manner that the step size sampled by the above-mentioned slave device is first gradually adjusted from the above-mentioned second sampling step size to the third sampling step size, and then gradually adjusted to the above-mentioned first sampling step size; wherein, when the above-mentioned second sampling step size is greater than the above-mentioned first sampling step size, the above-mentioned third sampling step size is less than the above-mentioned first sampling step size; when the above-mentioned second sampling step size is less than the above-mentioned first sampling step size, the above-mentioned third sampling step size is greater than the above-mentioned first sampling step size.

[0012] Further, in some embodiments, when the error sampling step coefficient is smaller than the first threshold or larger than the second threshold, the slave device continues to sample the second digital audio signal according to the second sampling step.

[0013] Further, in some embodiments, the master device includes: a master device audio receiving module, a first variable sampling module, a first digital audio interface module, a first analog audio transmission module, and a first reverse sampling processing module; the master device audio receiving module receives an audio signal from an external device and transmits the received audio signal to the first variable sampling module; the first variable sampling module converts the received audio signal into the first digital audio signal and transmits the first digital audio signal to the first digital audio interface module; the first reverse sampling processing module samples the first digital audio signal from the first digital audio interface module according to the first sampling step and obtains the first number of sampling points, and the first reverse sampling processing module samples the remaining number of first sampling points within the remaining first time period; the first analog audio transmission module converts the first digital audio signal from a digital signal to an audio analog signal for output; the slave device includes: a slave device audio receiving module, a second variable sampling module, a second digital audio interface module, a second analog audio transmission module, and a second reverse sampling processing module; the slave device audio receiving module receives an audio signal from an external device and transmitting the received audio signal to the second variable sampling module; the second variable sampling module converts the received audio signal into the second digital audio signal and transmits the second digital audio signal to the second digital audio interface module; the second reverse sampling processing module samples the second digital audio signal from the second digital audio interface module according to the second sampling step and obtains the second sampling point number of the first time period, and the second reverse sampling processing module samples the remaining second sampling point number in the remaining first time period; the second reverse sampling processing module compares the error sampling step coefficient with the first threshold and the second threshold; when the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1; the second reverse sampling processing module adjusts the second sampling step by controlling the second variable sampling module, so that the second reverse sampling processing module outputs the remaining second sampling point number in the remaining first time period according to the adjusted second sampling step; the second analog audio transmission module converts the received second digital audio signal into an audio analog signal for output.

[0014] Further, in some embodiments, the second inverse sampling processing module also includes: a synchronous phase error calculation module and a digital phase locking module; the synchronous phase error calculation module is configured to obtain the error sampling step coefficient, the first sampling step, the second sampling step, the first time period, and the remaining first time period according to the number of the first sampling points, the number of the second sampling points, the start time of the first time period, the end time of the first time period, the start time of the remaining first time period, and the end time of the remaining first time period; the digital phase locking module is configured to gradually adjust the second sampling step to the first sampling step.

[0015] Furthermore, in some embodiments, the first digital audio signal and the second digital audio signal are converted into digital audio signals with a given sampling rate.

[0016] Furthermore, in some embodiments, the audio signal from the external device includes an analog audio signal or a digital audio signal.

[0017] Further, in some embodiments, the master device sends a synchronization signal to the slave device at the start time of the first time period, the end time of the first time period, and the end time of the remaining first time period respectively; the slave device synchronizes the sampling time with the master device by receiving the synchronization signal.

[0018] In a second aspect of the present disclosure, a self-synchronous calibration method for a Bluetooth headset includes: converting a received audio signal into a first digital audio signal and a second digital audio signal; acquiring the start time of a first time period, the end time of the first time period, the start time of a remaining first time period and the end time of a remaining first time period according to a first Bluetooth synchronization clock; acquiring the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to a second Bluetooth synchronization clock; wherein the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period; sampling the first digital audio signal according to a first sampling step and outputting the first number of sampling points of the first time period, wherein the first sampling step=the first time period / the first number of sampling points; sampling the second digital audio signal according to a second sampling step and outputting the first number of sampling points of the first time period. Output the number of second sampling points in the first time period, where the second sampling step length=the first time period / the number of second sampling points=the first sampling step length*the error sampling step length coefficient; compare the error sampling step length coefficient with the first threshold and the second threshold; when the error sampling step length coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, sample the first digital audio signal according to the first sampling step length and output the remaining number of first sampling points in the remaining first time period, where the remaining number of first sampling points=the remaining first time period / the first sampling step length; adjust the second sampling step length to sample the second digital audio signal, so that the remaining number of second sampling points is output in the remaining first time period, where the remaining number of second sampling points=the first sampling point number+the remaining number of first sampling points-the second sampling point number, and at the end of the remaining first time period, the second sampling step length is adjusted to the first sampling step length.

[0019] Compared with the prior art, the present disclosure has the following beneficial effects.

[0020] (1) In some embodiments, the master device samples the first digital audio signal according to the first sampling step and outputs the first number of sampling points in the first time period, and the slave device samples the second digital audio signal according to the second sampling step and outputs the second number of sampling points in the first time period; when the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, the second sampling step of the slave device is adjusted so that the slave device samples the second digital audio signal in the remaining first time period so that the slave device outputs the remaining number of second sampling points in the remaining first time period, and the remaining number of second sampling points = the number of first sampling points + the remaining number of first sampling points - the number of second sampling points; further, the first threshold and the second threshold are set so that the adjustment is made only after the step difference between the master device and the slave device reaches a certain level, thereby saving energy consumption.

[0021] (2) Furthermore, in some embodiments, the sampling step size of the slave device is adjusted to ensure that the slave device completes the sampling of the remaining second sampling points within the remaining first time period of the specific sampling time period. At the same time, the second sampling step size can be gradually adjusted to the first sampling step size, so that after the specific sampling time period ends, the sampling step size (playback step size) of the slave device approaches the sampling step size (playback step size) of the master device.

[0022] (3) Further, in some embodiments, the process of the second sampling step length of the slave device approaching the first sampling step length of the master device is gradually adjusted through N time periods, and is gradually achieved by gradually adjusting the step length sampled by the slave device to the first sampling step length, and in order to ensure that the adjustment is controllable and gradual, the step length sampled by the slave device is the same in each of the N time periods, but is gradually adjusted through one time period after another. In an alternative embodiment, although the sampling step length in each of the N time periods is uniform (equal), the sampling step length between adjacent time periods is gradually changed, so that the expected step length can be reached or extremely close to it in the Nth playback time period (e.g., the Nth remaining time period).

[0023] (4) Furthermore, in some embodiments, the step length sampled by the slave device is gradually adjusted to the first sampling step length by first gradually adjusting the step length sampled by the slave device from the second sampling step length to the third sampling step length, and then gradually adjusting the step length from the third sampling step length (overmodulation sampling step length) to the first sampling step length; thereby ensuring that the slave device completes the sampling of the remaining number of second sampling points within the remaining first time period of the specific sampling time period, and at the same time, the second sampling step length (playback step length) of the slave device can be gradually adjusted to the final first sampling step length; that is, first overmodulating to the third sampling step length (overmodulation sampling step length), and then gradually adjusting the overmodulated third sampling step length (overmodulation sampling step length) to the desired first sampling step length.

[0024] (5) Further, in some embodiments, the master device and the slave device perform sampling at the digital audio interface module (e.g., the digital audio interface terminal), that is, sampling is performed at the last station before the Bluetooth headset device performs digital-to-analog conversion to obtain the first number of sampling points and the second number of sampling points; in this way, the continuous and stable audio signal played at the end is used for sampling and processing, which can effectively avoid the sudden change and instability of the audio sampling points input by the actual sampling rate processing, resulting in unstable Bluetooth audio playback synchronization. Accordingly, the adjustment of the second sampling step size is performed in the variable sampling module, that is, close to the audio receiving module, so that the audio signal received at the beginning is adjusted, so that the adjusted signal is processed accordingly and finally outputted in accordance with the requirements at the output terminal.

[0025] (6) Further, in some embodiments, the first digital audio signal and the second digital audio signal are converted into digital audio signals with a given sampling rate, i.e., a unified sampling frequency, so as to facilitate the comparison of the synchronization difference between the two using standard equipment or standard rules. Further, in some embodiments, the audio signals received by the master device and the slave device from the external device can be analog audio signals or digital audio signals, and thus can be adapted to more external source devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings, in which:

[0027] Figure 1 A schematic diagram showing the interaction between a master device and a slave device of a self-synchronous and calibrated Bluetooth headset and an external device according to some embodiments of the present disclosure;

[0028] Figure 2 A diagram showing a master device and a slave device of a self-synchronous calibration Bluetooth headset according to other embodiments of the present disclosure is shown;

[0029] Figure 3 A diagram showing a calibration sampling process of a Bluetooth headset with self-synchronous calibration according to some embodiments of the present disclosure is shown;

[0030] Figure 4 A diagram showing a calibration sampling process of a self-synchronous calibration Bluetooth headset according to some other embodiments of the present disclosure is shown;

[0031] Figure 5 A diagram showing a calibration sampling process of a self-synchronous calibration Bluetooth headset according to some further embodiments of the present disclosure is shown;

[0032] Figure 6 A diagram showing a master device or a slave device of a Bluetooth headset for self-synchronization calibration according to some embodiments of the present disclosure is shown;

[0033] Figure 7 A flowchart showing a self-synchronization calibration method for a Bluetooth headset according to an embodiment of the present disclosure is shown; and

[0034] In the various drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION

[0035] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0036] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0037] Generally, in-ear discrete Bluetooth headsets are used in pairs. In addition to the Bluetooth synchronization clock, each headset device also has an independent Bluetooth chip. Each chip needs to have an independent crystal clock. Different clock crystals generally have a frequency error in the range of ±10ppm (ppm refers to the frequency difference, which indicates the accuracy of the crystal. Frequency error (Frequency Tolerance) or frequency stability (Frequency Stability) is expressed in units of ppm, that is, parts per million (1 / 10 6 ), is the change relative to the nominal frequency. The smaller this value is, the higher the accuracy is. For example, if the two Bluetooth headsets located at the left and right ears do not perform audio clock synchronization, the clock deviation is calculated as 10ppm, and there will be a 10us (microsecond) error in 1s (second). If the audio sampling rate is 48KHz, then the two Bluetooth headsets play for 4s at the same time. The two Bluetooth headsets will eventually differ by 2 audio data sampling points due to the accumulated error of the clock. If the error is greater than 2 audio data sampling points, the audio playback sampling points of the two left and right Bluetooth headsets will not be aligned, and the headset will feel uncomfortable, affecting the audio playback effect.

[0038] It should be understood that regarding the master and slave Bluetooth synchronization clock problem, there are multiple clocks in the Bluetooth headset, one of which is the Bluetooth clock (Bluetooth synchronization clock), which refers to the Bluetooth data packet transmission and reception, and the Bluetooth master and slave device data packet clock. The other is the Bluetooth headset audio playback clock, and the two clocks have no absolute phase relationship. The master-slave Bluetooth synchronization clock can be adjusted to a phase synchronization state through data packet communication between the master and slave devices, and the synchronization accuracy is 0.5us. Accordingly, there is a problem of audio playback clock synchronization of Bluetooth devices, such as audio playback clock synchronization of master and slave devices. Generally, the audio playback clock comes from the crystal clock input outside each Bluetooth chip. Since each crystal clock has a certain frequency deviation, the audio playback clock frequency of the master and slave Bluetooth devices will be different, which is the root cause of the asynchronous music playback of the master and slave devices. In one embodiment, when the Bluetooth audio playback sampling frequency is 96KHz, the corresponding audio sampling interval of each audio is 10.41us. It should be noted that the playback clock in the present disclosure can be a conventional application of the audio playback clock, such as 8KHz, 16KHz, 24KHz, 44.1KHz, 48KHz, 96KHz.

[0039] However, in an existing solution, the audio playback clocks of the master and slave (or master and slave) left and right Bluetooth chips can be synchronized with their respective Bluetooth clocks by adjusting the analog audio phase-locked loop. Based on the Bluetooth clock synchronization achieved by the master and slave Bluetooth chips, the master and slave Bluetooth audio playback clocks (playback clocks) adjusted by the audio phase-locked loop are also synchronized. Therefore, the master and slave Bluetooth chips can read and play the audio data to be played at a set time according to the synchronized audio playback clock. However, in this solution, an independent dedicated audio analog phase-locked loop is required to adjust the phase-locked loop clock and Bluetooth clock of the left and right ear Bluetooth chips. Although the respective phase-locked loop clocks can quickly follow the Bluetooth clock, every time the Bluetooth clock is adjusted, the phase-locked loop clock follows the adjustment and there is still a delay, resulting in this delay error being accumulated in the Bluetooth playback clock. Since this error has no feedback correction, long-term accumulation will still cause a certain phase error in the left and right ear Bluetooth playback.

[0040] In addition, in another solution, the data buffer difference between the slave Bluetooth chip and the master Bluetooth chip is calculated as the input of the analog audio phase-locked loop, and the slave Bluetooth chip adjusts the audio playback clock by adjusting the phase-locked loop frequency, and finally synchronizes the master and slave Bluetooth audio playback clocks. In addition, there are other solutions, which do not need to synchronize the audio clocks of the master and slave ear Bluetooth chips, and can also achieve synchronous playback of audio data at a set time. The slave ear Bluetooth chip can adjust the data sampling rate through the variable sampling module, so that the length of the master and slave Bluetooth headset data buffer area is consistent and the access speed is fixed, that is, by adjusting the sampling rate from the Bluetooth chip, the access time length of the audio data in the data buffer area is consistent with the master Bluetooth headset, and there is no need to adjust the audio clock synchronization at this time, and finally realize that the left and right ear Bluetooth chips read and play the audio data to be played at a set time. However, in the above scheme, referring to a certain moment of the Bluetooth clock, comparing the amount of cached data audio data to determine whether the left and right ear Bluetooth has played data synchronously, a series of problems such as the left and right ear Bluetooth chips receiving data are not synchronized, and the back-stage audio playback cache data are not synchronized will be encountered during the implementation process, making it difficult to accurately synchronize the left and right ear Bluetooth audio playback. And in the scheme, the high power consumption of the analog phase-locked loop will also affect low-power applications. It should be noted that the so-called master-slave Bluetooth headset or master-slave device above or below is equivalent to another name for the master-slave Bluetooth headset or master-slave device in the present disclosure, that is, the "slave" device means the "slave" device.

[0041] In order to solve at least one of the above problems, as well as one or more of other potential problems, the present disclosure proposes a self-synchronous calibration Bluetooth headset and a self-synchronous calibration method for a Bluetooth headset. In some embodiments, the self-synchronous calibration Bluetooth headset can calculate the amount of audio data actually played based on the Bluetooth clock, without having to worry about the amount of Bluetooth buffered data to be played, and is not affected by the difference in buffered data in the subsequent audio processing path. The following is a further explanation in the form of multiple embodiments in conjunction with the accompanying drawings.

[0042] Figure 1A schematic diagram of the interaction between the master device and the slave device of the self-synchronous calibration Bluetooth headset and the external device according to some embodiments of the present disclosure is shown. In this illustrated embodiment, a self-synchronous calibration Bluetooth headset is shown, and the self-synchronous calibration Bluetooth headset includes a master device and a slave device. It should be noted that the master device and the slave device are only schematic, and any one device can become a master device based on the setting, and similarly, the other can also become a slave device based on the setting. In this example embodiment, the master device receives an audio signal from an external device, and the slave device also receives an audio signal from the external device; further, the master device can convert the received audio signal into a digital audio signal, such as a first digital audio signal; and the slave device can also convert the received audio signal into a digital audio signal, such as a second digital audio signal; wherein the master device and the slave device both have their own Bluetooth synchronization clocks, and the Bluetooth synchronization clock of the master device is synchronized with the Bluetooth synchronization clock of the slave device (for example, the master and slave devices can start self-calibration at a certain moment, such as 14:00 Beijing time), on this basis, the master device and the slave device have their own crystal oscillator clocks (for example, a playback clock or an audio playback clock) for audio playback. To this end, the master device can obtain the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to its own master device Bluetooth synchronization clock; similarly, the slave device can also obtain the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to the slave device Bluetooth synchronization clock (because the Bluetooth synchronization clock of the master device is synchronized with the Bluetooth synchronization clock of the slave device); it should be noted that the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period. Furthermore, in order to learn the phase difference (i.e., too fast or too slow) in the playback step between the master device and the slave device (the so-called playback step is consistent with its sampling step, and the sampling step is based on the crystal clock (audio playback clock), for example, one step can be n crystal clocks, and n can be a positive integer), sampling is required to confirm the specific difference. For example, the master device samples the first digital audio signal according to the first sampling step, and the master device outputs the first number of sampling points in the first time period, where the first sampling step = the first time period / the first number of sampling points, as a reference point; at the same time, the slave device samples the second digital audio signal according to the second sampling step, and the slave device outputs the second number of sampling points in the first time period, where the second sampling step = the first time period / the second number of sampling points.Generally, since there are differences in the sampling steps (playback steps) based on the crystal oscillator clock (playback clock) between the master and slave devices, for example, the first sampling step is n times the playback clock of the master device, and the second sampling step is the same n times the playback clock of the slave device. Obviously, since the playback clock of the master device is different from the playback clock of the slave device, and both are n times, the first sampling step is different from the second sampling step. Obviously, there will be a deviation between the number of the second sampling points and the number of the first sampling points, that is, the following relationship exists: the second sampling step == the first sampling step * error sampling step coefficient. The slave device starts the switch according to the calibration setting of the master device, and the slave device can compare the error sampling step coefficient with the first threshold and the second threshold; in particular, when the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, (the set threshold can be a critical point where the human ear may feel the audio difference, for example, the first threshold is set to 1.05, and the second threshold is set to 0.95, that is, the error sampling step coefficient reflects the ratio relationship between the second sampling step and the first sampling step, that is, the relationship is satisfied: error sampling step coefficient = second sampling step / first Sampling step length), generally, the calibration reference device is set as the master device, for example, the master device samples the first digital audio signal according to the first sampling step length and outputs the remaining number of first sampling points in the remaining first time period; then as the calibrated slave device, the slave device samples the second digital audio signal according to the adjusted second sampling step length, and adjusts the second sampling step length (through variable sampling adjustment, etc.) so that the slave device outputs the remaining number of second sampling points in the remaining first time period, and ensures that the remaining number of second sampling points = the number of first sampling points + the remaining number of first sampling points - the number of second sampling points. The technical solution recorded in this embodiment is to calculate the audio phase difference between the master and slave device chips of the Bluetooth headset through sampling according to the amount of broadcast data (expressed as the sampling step difference, or the number of samples after sampling the same reference time to confirm the difference). Specifically, a fractional variable sampling rate processing can be added to the existing audio variable sampling module of the chip (by sampling a small number of points, for example, in the first time period), and a sampling step error (expressed as the number of error samples) can be calculated through, for example, an inverse variable sampling processing module, and the audio playback step can be adjusted through, for example, a variable sampling module (and then the audio playback rate is changed, and then the playback step of the remaining time period is adjusted, resulting in the number of samples of the playback step being accelerated or slowed down within the limited time, that is, within the remaining time of the limited time, for example, in the remaining first time period, the number of samples of the audio signal step increases or decreases. Thereby, at the end point of the remaining time period, the master device and the slave device complete the playback of the audio of the same content (expressed as the same total number of sampling points).

[0043] In some embodiments, the first digital audio signal and the second digital audio signal are converted into digital audio signals of a given sampling rate, such as a unified sampling rate of 96KHz, 48KHz, etc., so as to compare and calculate the audio deviation between the master and slave devices. That is, the digital audio signals with a unified sampling frequency can be easily compared with the synchronization difference between the two using standard equipment or standard rules.

[0044] In some embodiments, in order to be compatible with various external devices, the audio signal from the external device may be an analog audio signal and / or a digital audio signal, which may then be adapted to a wider variety of external source devices.

[0045] In some embodiments, in order to avoid instability in Bluetooth audio playback synchronization, especially due to sampling close to the audio signal receiving end, resulting in sudden changes and instability in the number of audio sampling points input by the actual sampling rate processing, the audio data sampling of the master device and the slave device is set at the digital audio interface end (that is, close to the output end, that is, the digital-to-analog conversion is to be performed at the back end and the audio signal is output externally), that is, sampling is started at the last station before the Bluetooth headset device performs digital-to-analog conversion to obtain the first number of sampling points and the second number of sampling points; in this way, the continuous and stable audio signal that is finally played is used for sampling and processing, which can effectively avoid sudden changes and instability in the number of audio sampling points input by the actual sampling rate processing, resulting in instability in Bluetooth audio playback synchronization. If unstable sampling points are used for Bluetooth synchronization, the obtained Bluetooth clock phase difference is also unstable, and strictly synchronized Bluetooth audio cannot be output.

[0046] In order to further illustrate the embodiments of the present disclosure, more detailed master and slave devices of the Bluetooth headset are provided below in conjunction with the accompanying drawings.

[0047] Figure 2A diagram of a master device and a slave device of a self-synchronous calibration Bluetooth headset according to other embodiments of the present disclosure is shown. In this example embodiment, a self-synchronous calibration Bluetooth headset is shown, which also includes a master device and a slave device; wherein the master device also includes: a master device audio receiving module, a first variable sampling module, a first digital audio interface module, a first analog audio transmission module, and a first reverse sampling processing module; wherein the master device audio receiving module (used for Bluetooth audio decoding and Bluetooth audio performance processing) is used to receive an audio signal from an external device and transmit the received audio signal to the first variable sampling module; and the first variable sampling module (used to convert the external device input audio sampling rate to the sampling rate required by the back end) converts the received external device audio signal into a first digital audio signal through a first sampling step (when the Bluetooth audio signal sampling rate and the playback sampling rate are not equal, the variable sampling module is required to convert the Bluetooth audio sampling rate to the playback sampling rate, such as converting the Bluetooth audio 8KHz signal to 96KHz The first variable sampling module also transmits the first digital audio signal to the first digital audio interface module; the first inverse sampling processing module samples the first digital audio signal from the first digital audio interface module according to the first sampling step (based on the master device playback clock (for example, the crystal oscillator clock)) and obtains the number of first sampling points in the first time period, and the first inverse sampling processing module can obtain the number of remaining first sampling points output in the remaining first time period of the specific sampling time period according to the first sampling step; and the first analog audio transmission module converts the first digital audio signal from a digital signal to an audio analog signal for output to the next module or a module that transmits audio externally.Correspondingly, the slave device also includes: a slave device audio receiving module, a second variable sampling module, a second digital audio interface module, a second analog audio transmission module, and a second inverse sampling processing module; and the slave device can be interchangeable with the master device under setting. Here, for the sake of convenience of understanding, the master device is set as the reference device, and the slave device is set as the reference device (that is, the playback step length (based on the crystal oscillator clock) is adjusted according to the reference device); wherein the slave device audio receiving module receives an audio signal from an external device, and the slave device audio receiving module transmits the received audio signal to the second variable sampling module; the second variable sampling module transmits the received audio signal of the external device to the second variable sampling module. The signal is converted into a second digital audio signal through a second sampling step, and the second sampling module transmits the second digital audio signal to the second digital audio interface module; the second reverse sampling processing module samples the second digital audio signal from the second digital audio interface module according to the second sampling step and obtains the second sampling point number of the first time period, and the second reverse sampling processing module obtains the remaining second sampling point number output in the remaining first time period according to the second sampling step; at this time, the second reverse sampling processing module of the slave device starts to compare the error sampling step coefficient with the first threshold and the second threshold to confirm whether to start the audio synchronization calibration work of the slave device; in particular, When the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1; the second digital audio signal outputs the second number of sampling points in the first time period (that is, the second digital audio signal has been sampled and output in the first time period), and the second digital audio signal is adjusted in the next time period to output the remaining second number of sampling points in the remaining first time period (thereby, the sampling rate of the second digital audio signal is adjusted, which is expressed as sampling at the agreed starting time (the starting time of the first time period), sampling during the first time period and obtaining the second sampling step and the error sampling step coefficient, and using The remaining first time period is used to speed up or slow down the adjustment, and when the remaining first time period ends, the synchronization calibration of the master and slave devices ends, and then the self-synchronization calibration process is implemented to ensure that the remaining second sampling point number = the first sampling point number + the remaining first sampling point number - the second sampling point number); at the same time, the second analog audio transmission module receives the adjusted second digital audio signal and converts the adjusted second digital audio signal into an audio analog signal for output, and in a broad sense, the adjusted second digital audio signal should include outputting the second sampling point number in the first time period and outputting the remaining second sampling point number in the remaining first time period.Accordingly, in some embodiments, when the error sampling step coefficient is less than the first threshold or greater than the second threshold (i.e., it has not reached the preset critical value that needs to be adjusted), the second digital audio signal is not adjusted, so that it outputs the second number of sampling points within the first time period, and the second digital audio signal outputs the remaining number of second sampling points within the remaining first time period, and the remaining number of second sampling points is: the remaining number of second sampling points = the number of first sampling points + the remaining number of first sampling points - the number of second sampling points.

[0048] It should be noted that in some embodiments, the master and slave devices may also include a digital sound effect processing module, which is used for sound effect processing such as equalization of array audio, dynamic range control, etc. Generally, the digital sound effect processing module is located between the variable sampling processing module and the digital audio interface module.

[0049] Furthermore, in order to make the calibration sampling process in some embodiments clearer, the following is described by way of example with reference to the accompanying drawings.

[0050] Figure 3 A diagram showing the calibration sampling process of a self-synchronous calibrated Bluetooth headset according to some embodiments of the present disclosure is shown. In the diagram, the top coordinate axis is the Bluetooth synchronization clock timing as the background. The Bluetooth synchronization clocks in the master and slave devices should be considered to be synchronized. Therefore, the set sampling time is divided into two stages, which are the first time period and the remaining first time period for the master and slave devices (due to the same Bluetooth synchronization clock timing). Obviously, in the same first time period, the master device samples the first number of sampling points for the first digital audio signal based on the first sampling step, and the slave device samples the second number of sampling points for the second digital audio signal based on the second sampling step. Due to the crystal oscillator clock deviation between the master and slave devices (at the default playback step, an n-fold crystal oscillator clock is used, which in turn leads to an n-fold amplification of the playback step deviation), the following is true: second sampling step = first time period / second The number of second sampling points = the first sampling step length * the error sampling step length coefficient; then, for the master device, since it is a reference device, no adjustment is made to the first digital audio signal. After sampling the first time period, if there is no change, the sampling results of the remaining number of first sampling points can still be obtained for the first digital audio signal in the remaining first time period; however, for the slave device, in order to achieve the playback synchronization calibration of the master and slave devices at the end point of a specific sampling time period, the slave device must adjust the second digital audio signal according to the second sampling step length, so that it speeds up or slows down the frequency in the remaining first time period, which is manifested as the remaining number of second sampling points = the number of first sampling points + the remaining number of first sampling points - the number of second sampling points, thereby ultimately achieving self-synchronization calibration of the master and slave devices.

[0051] Figure 4The calibration sampling process diagram of the self-synchronous calibration Bluetooth headset according to other embodiments of the present disclosure is shown. In this example, the sampling rates of the first digital audio signal and the second digital audio signal are simplified, which is shown as the number of sampling points of the first digital audio signal in the first time period is 10, and the number of sampling points in the remaining first time period is also 10; as the adjusted slave device, the number of sampling points of the second digital audio signal in the first time period is 12, that is, 2 faster than the first digital audio signal in the first time period. Therefore, in order to calibrate the synchronization, the second digital audio signal needs to be slowed down in the remaining first time period, so that it is shown as the result that the number of sampling points in the remaining first time period is 8 (that is, 10-2).

[0052] In some embodiments, the master device makes the first digital audio signal output the remaining first sampling point number uniformly in the remaining first time period of the specific sampling time according to the master device playback clock; at the same time, the slave device makes the second digital audio signal be adjusted to output the remaining second sampling point number uniformly in the remaining first time period of the specific sampling time according to the slave device playback clock, so that the adjustment process will not make the human ear feel uncomfortable and affect the audio playback effect. However, adjusting the slave device to uniformly output the remaining second sampling point number will bring another problem: the slave device needs to be adjusted repeatedly. This is because the slave device only considers the synchronization with the master device in terms of content, and the playback frequency (playback speed) still does not synchronize the slave device with the master device. When the slave device is adjusted to uniformly output the remaining second sampling point number (usually only the content meets the standard, but the speed does not meet the standard), the sampling step corresponding to its playback clock is inconsistent with the sampling step corresponding to the reference playback clock of the master device. Then, after the remaining first time period, when entering a new sampling and adjustment cycle, it will be found that the master and slave devices still have a large playback clock out of sync. For this reason, a step-by-step adjustment measurement is introduced.

[0053] Preferably, in some embodiments, when the slave device adjusts the second sampling step to sample the second digital audio signal, the step sampled by the slave device is gradually adjusted to the first sampling step at the end of the above-mentioned remaining first time period. It should be understood that the relationship between the second sampling step of the slave device and the audio playback clock of the slave device is as follows: the second sampling step is n times the slave device playback clock, and the final adjustment of the second sampling step is achieved by adjusting it to n+1 times or n-1 times the slave device playback clock.

[0054] More preferably, in some embodiments, the remaining first time period is divided into N time periods, and the above N time periods include the 1st remaining time period, the 2nd remaining time period to the Nth remaining time period, and N is an integer; then through the gradual adjustment of N time periods from the 1st remaining time period to the Nth remaining time period, the step size sampled by the slave device is gradually adjusted to the first sampling step size, so as to ensure that at the end of the adjustment, not only the master and slave devices complete the audio playback of the same content, but also adjust to the same playback speed (that is, the first sampling step size of the master device is the same as the second sampling step size of the slave device); more preferably, the step size sampled by the slave device is the same in each of the N time periods, which makes it easier to implement and detect at the hardware level, and can also make the slave device more slowly adjusted to the expected playback speed (playback clock).

[0055] More preferably, in a further embodiment, the step length sampled from the device is gradually adjusted to the first sampling step length in the following manner: the step length sampled from the device is first gradually adjusted from the second sampling step length (the starting playback step length from the device) to the third sampling step length (the intermediate playback step length, or the over-adjustment playback step length), and then gradually adjusted to the first sampling step length (the expected playback step length); wherein, when the second sampling step length is greater than the first sampling step length, the third sampling step length is less than the first sampling step length; when the second sampling step length is less than the first sampling step length, the third sampling step length is greater than the first sampling step length; that is, either the third sampling step length < the first sampling step length < the second sampling step length (that is, the second sampling step length is to be adjusted toward the smaller first sampling step length). When adjusting the sampling step, it is necessary to first over-adjust to a smaller third sampling step, and then restore to the target first sampling step; otherwise, the step value is gradually reduced from the second sampling step until the smaller first sampling step is reached, and then the target number of samples cannot be adjusted within a given time period), or the second sampling step < first sampling step < third sampling step (similarly, when the second sampling step is adjusted to a larger first sampling step, it is necessary to first over-adjust to a larger third sampling step, and then restore to the target first sampling step; otherwise, the step value is gradually increased from the second sampling step until the larger first sampling step is reached, and then the target number of samples cannot be adjusted within a given time period).

[0056] Figure 5The calibration sampling process diagram of the self-synchronous calibration Bluetooth headset according to some other embodiments of the present disclosure is shown. In this example embodiment, the sampling rates of the first digital audio signal and the second digital audio signal are simplified, which is manifested as the number of sampling points of the first digital audio signal in the first time period is 1000, and the number of sampling points in the remaining first time period is also 1000; as the adjusted slave device, the number of sampling points of the second digital audio signal in the first time period is 1020, that is, 20 faster than the first digital audio signal in the first time period. Therefore, in order to calibrate the synchronization, the second digital audio signal needs to be slowed down in the remaining first time period, so that it is manifested as a result of 980 (i.e., 1000-20) sampling points in the remaining first time period. Then, in order to ensure that the master and slave devices have the same sampling step size (for example, sampling step size = sampling time / number of samples) at the last moment of the remaining first time period, the remaining first time period is divided into multiple smaller time periods, for example, 10 time periods. Then, the master device is used as the benchmark, and the number of samples in each small time period is 100 as shown in the figure; and the slave device, as the object to be adjusted, has 102 samples in a small time period at the end of the first time period, and then after entering the remaining first time period, the number of samples in a small time period is reduced to 101, until it is gradually reduced to 95 in one of the small time periods in the middle (the lowest, because over-adjustment is required, so a value lower than the target adjustment value, 100, is required), and then gradually increased until the number of samples in the final small time period is increased to 100 (just consistent with the number of samples of the master device in the small time period, and the step value at the final moment (adjustment end moment) is also consistent at this moment). Such an adjustment not only makes the number of samples of the slave device at the end of the remaining first time period total 2000 (1000+1000) in terms of content, and the number of samples of the master device at the end of the remaining first time period also reaches 2000 (1020+980), but also can gradually adjust the playback step (second sampling step) of the slave device to be consistent with the playback step (first sampling step) of the master device, that is, the number of samples in a given same time period is consistent; in particular, the adjustment method is that, for example, the first sampling step is n times the audio playback clock of the master device, and the second sampling step is n times the audio playback clock of the slave device, the second sampling step is adjusted to n-1 times the audio playback clock of the slave device, and then the second sampling step (n-1 times the audio playback clock of the slave device) after the final adjustment is equal to the first sampling step (n times the audio playback clock of the master device).

[0057] It should be noted that the sampling process diagram shown above is exemplary and is only used to illustrate the sampling change process. Generally, when a Bluetooth headset is actually sampling and adjusting, there will not be such a small number of samples, nor will there be such a large error in the number of samples before adjustment begins, nor will there be such a drastic change in the number of samples, that is, especially Figure 4 , 5 The embodiments in the drawings are merely exemplary, or the drastic changes in the number of samples are only adopted for the sake of ease of understanding.

[0058] In addition, in order to further refine the inverse sampling processing module, the following figures are further illustrated.

[0059] Figure 6 A diagram of a master device or slave device of a self-synchronous calibration Bluetooth headset according to some embodiments of the present disclosure is shown. In this diagram embodiment, the connection mode of the internal modules of the master device (or slave device) is shown, and the inverse sampling processing module is used for sampling, and the function of calculating the error is undertaken by the synchronous phase error calculation module at its back end, and the signal speed is adjusted by the digital phase lock module at its back end, which directly feeds back the result to the variable sampling processing module. It should be noted that in this illustrated embodiment, in the digital audio interface module (i.e., sampling is performed by the back end), and the variable sampling module is used for adjustment because there is no need to add additional sampling rate adjustment equipment. The function of the variable sampling module itself (which itself adjusts the sampling rate of the received audio signal to unify it to the same sampling rate) can be used to achieve the adjustment of speeding up or slowing down the audio signal of the slave device.

[0060] It should be noted that in some embodiments, the sampling points may be obtained through inverse sampling processing, which may include: inputting a continuous and stable audio sampling signal, and calculating the number of continuous sampling points input by the variable sampling rate processing module according to the current variable sampling value of the variable sampling processing module.

[0061] In some embodiments, the sampling step size adjustment can be performed through a digital phase-locked loop, which can be an input Bluetooth left and right ear (master and slave devices, for example, the left ear is the master device and the right ear is the slave device) time phase error, and output a variable sampling processing module sampling rate adjustment value. Assuming that the left Bluetooth headset is used as a reference, the right Bluetooth headset needs to adjust the variable sampling processing value to synchronize the left Bluetooth headset playback. If the left and right Bluetooth headsets have a positive Bluetooth synchronization clock phase difference at the same sampling point, it means that the initial playback phase of the right Bluetooth headset is ahead of the left Bluetooth headset, or the playback clock frequency of the right Bluetooth headset is faster than that of the left Bluetooth headset. Through the digital phase-locked loop, the right Bluetooth headset playback variable sampling rate is reduced. If the left and right Bluetooth headsets have a negative Bluetooth synchronization clock phase difference at the same sampling point, the right Bluetooth headset playback variable sampling rate is increased through the digital phase-locked loop. If the left and right Bluetooth headsets have a Bluetooth synchronization clock phase difference at the same sampling point, the digital phase-locked loop keeps the right Bluetooth headset playback variable sampling rate unchanged.

[0062] Furthermore, some embodiments are given below at the level of self-synchronization calibration method.

[0063] Figure 7A flowchart of a self-synchronous calibration method for a Bluetooth headset according to an embodiment of the present disclosure is shown. In this exemplary embodiment, a self-synchronous calibration method 700 for a Bluetooth headset is provided, which includes: step 710, converting the received audio signal into a first digital audio signal and a second digital audio signal; step 720, obtaining the start time of the first time period, the end time of the first time period, the start time of the remaining first time period, and the end time of the remaining first time period according to the first Bluetooth synchronization clock; step 730, obtaining the start time of the first time period, the end time of the first time period, the start time of the remaining first time period, and the end time of the remaining first time period according to the second Bluetooth synchronization clock; wherein the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period; step 740, sampling the first digital audio signal according to the first sampling step length and outputting the first sampling point number of the first time period, the first sampling step length = the first time period / the number of first sampling points; step 750, sampling the first time period according to the second sampling step length The second digital audio signal is sampled and the number of second sampling points in the first time period is outputted, the second sampling step length = the first time period / the number of second sampling points = the first sampling step length * the error sampling step length coefficient; step 760, the error sampling step length coefficient is compared with the first threshold and the second threshold; step 770, when the error sampling step length coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, the first digital audio signal is sampled according to the first sampling step length and the number of remaining first sampling points is outputted in the remaining first time period, the number of remaining first sampling points = the remaining first time period / the first sampling step length; the second digital audio signal is sampled by adjusting the second sampling step length, so that the remaining number of second sampling points is outputted in the remaining first time period, the number of remaining second sampling points = the number of first sampling points + the number of remaining first sampling points - the number of second sampling points, and the second sampling step length is adjusted to the first sampling step length at the end of the remaining first time period (of course, the adjustment process of this step length is a gradual adjustment process that undergoes the entire remaining first time period). Thus, the self-synchronous calibration of the Bluetooth headset is realized.

[0064] In some alternative embodiments, the self-synchronization calibration method of the Bluetooth headset may also include: a starting synchronous playback step: after the Bluetooth chips of the master and slave devices receive the start playback instruction, they communicate with each other to start playing a frame of audio data received by Bluetooth from a certain Bluetooth moment. When the Bluetooth chips of the master and slave devices reach a certain Bluetooth time communicated before, the master and slave devices of the Bluetooth headset each start to synchronously play the Bluetooth audio data; a reverse sampling rate conversion calculation step: (it should be noted that the Bluetooth synchronization clocks of the master and slave devices are the same and standard, and are time references) The Bluetooth chips of the master and slave devices use their own output continuous and stable sampling rate synchronization signals (such as 96KHz, 48KHz, etc.) to accumulate the number of audio points that have been played, and the reverse sampling rate conversion calculation step of the Bluetooth chips of the master and slave devices The variable sampling modules continuously accumulate the sampling step values ​​according to their respective variable sampling module sampling step values ​​A to obtain Cn. When Cn exceeds the set threshold, for example, 96000 / 10 sampling points, the hardware samples the Bluetooth synchronization time to obtain the Bluetooth synchronization time Dn at the sampling point Cn. At the same time, the accumulated value Cn is subtracted by 96000 / 10 sampling points and then the above continuous accumulation is repeated (generally, the Bluetooth sampling step value of the master device is stable and unchanged); synchronization phase error calculation step: the Bluetooth chip of the master device periodically sends a certain Dn sampled by itself to the Bluetooth chip of the slave device, and the Bluetooth chip of the slave device calculates the difference between a certain Dn of the Bluetooth of the master device and its corresponding Dn. This difference is the accumulated playback phase difference Dt.When the Bluetooth phase difference between the master and slave devices is positive, it means that the Bluetooth playback of the slave device is slow. The Bluetooth playback step of the slave device should be increased, that is, the sampling step of the Bluetooth variable sampling module of the slave device should be increased (conversely, the sampling step of the Bluetooth variable sampling module of the slave device should be reduced). Since the output of the post-stage phase-locked loop will be fed back to the difference step of the variable sampling processing module, the calculation of the synchronous phase error is converted from the playback time error to the playback point error. The playback sampling step error Dd = Playback time error Dt / playback points N / single sampling point time T*single sampling point sampling step L. After the Bluetooth playback sampling step of the slave device is adjusted for multiple times, the Bluetooth synchronization phase error between the master and slave devices is less than the threshold T for M consecutive times, indicating that the Bluetooth playback phase difference between the master and slave devices is within an acceptable range. Then the Bluetooth of the master device can communicate with the Bluetooth of the slave device to gradually reduce the frequency of sending Dn, increase the sending interval, and reduce the mutual communication between the Bluetooth of the master and slave devices, which helps to reduce the power consumption of Bluetooth. Digital phase-locked loop step: based on the error in playback time, integrate and accumulate the sampling step error that needs to be adjusted for variable sampling rate; variable sampling rate processing step: variable sampling processing refers to the change of the sampling step of the module signal, and the input and output Signal processing in the case of inconsistent sampling rates. For Bluetooth chips, variable sampling processing is mainly used because analog audio playback is generally played at a fixed frequency such as 48kHz, 96kHz, etc., while the input audio source has an input frequency of 8KHz, 16KHz, 44.1KHz, 48KHz, etc. due to format differences. For example, in some embodiments, variable sampling processing is to first do integer multiple interpolation upwards, and then do decimal multiple interpolation downwards to obtain the final output frequency. In the process of interpolation, the higher the interpolation step precision, the more accurate the interpolation result. In the process of downward interpolation, the sampling step error output by the digital phase-locked loop can be added using the existing interpolation calculation. Therefore, the reverse sampling rate processing is applied, and the continuous and stable audio signal finally played is used to calculate the continuous and stable audio sampling point data of the ideal variable sampling processing, thereby avoiding the sudden change and instability of the audio sampling point number input by the actual sampling rate processing, which leads to instability in the synchronization of Bluetooth audio playback; at the same time, the reverse sampling rate and the variable sampling rate use the same variable sampling rate coefficient, so the reverse sampling rate and the variable sampling rate can be guaranteed to be adjusted synchronously.

[0065] In addition, in some other embodiments, the self-synchronization calibration method of the Bluetooth headset includes the following steps: first, converting the received audio signal into a first digital audio signal and a second digital audio signal; then, obtaining a specific sampling time period, a first time period and a remaining first time period according to a first Bluetooth synchronization clock, and the specific sampling time period is the sum of the first time period and the remaining first time period; then, sampling the first digital audio signal according to a first sampling step (based on a first playback clock) and outputting the number of first sampling points of the first time period of the specific sampling time period; then, sampling the second digital audio signal according to a second sampling step (based on a second playback clock) and outputting the number of first sampling points of the first time period of the specific sampling time period. The second sampling point number is the sum of the first sampling point number and the error sampling point number; then, the error sampling point number is compared with a set threshold; finally, when the error sampling point number is greater than the set threshold, the sampled first digital audio signal outputs the remaining first sampling point number in the remaining first time period of the above-mentioned specific sampling time period according to the first sampling step (based on the first playback clock); the sampled second digital audio signal is adjusted to output the remaining second sampling point number in the remaining first time period of the specific sampling time period according to the second sampling step (based on the second playback clock), wherein the remaining second sampling point number is the difference between the remaining first sampling point number and the error sampling point number. In other embodiments, when the number of error sampling points is less than or equal to the set threshold, the sampled first digital audio signal outputs the remaining number of first sampling points in the remaining first time period of the specific sampling time period according to the first sampling step (based on the first playback clock); the sampled second digital audio signal outputs the remaining number of second sampling points in the remaining first time period of the specific sampling time period according to the second sampling step (based on the second playback clock), wherein the remaining number of second sampling points is: the remaining number of second sampling points = the above number of first sampling points + the above number of remaining first sampling points - the above number of second sampling points. Thus, without affecting the audio performance and sound effects, only a small adjustment is made to the audio playback sampling rate of the chip, the audio frequency error is directly related to the amount of playback data, the chip omits the audio clock analog phase-locked loop PLL, the control is simple, the phase error accuracy is high, and the locking frequency stability is good.

[0066] It should be noted that regarding the Bluetooth synchronous clock sampling in the inverse sampling processing module, in some embodiments, for audio playback with a sampling rate of 96k, the clock interval of each sampling point of the master and slave devices is approximately = 10.41us. For example, every 9600 sampling points of the master / slave device, the master and slave devices sample their respective Bluetooth synchronous clocks once. After the master device completes the sampling, it will send it to the slave device. The slave device compares its own sampled Bluetooth synchronous clock sampling value based on the Bluetooth synchronous clock sampling value transmitted by the master device, so that the slave device obtains the situation of the master device (reference device). Regarding the error calculation in the synchronous phase error calculation module, in some embodiments, the slave device compares the Bluetooth synchronous clock transmitted by the master device. If the Bluetooth synchronization clock sampling value of the slave device is later than that of the master device, the slave device should speed up the variable sampling step of its front stage (for example, the relative step is adjusted from 0.999999 to 1.000001), otherwise it should slow down its front stage variable sampling step (for example, the relative step is adjusted from 1.0000002 to 0.99999999). If the time difference is within a certain range, the variable sampling step is not adjusted. It should be understood that the step of the slave device relative to the master device can be: relative step of the slave device = step of the slave device / step of the master device. That is, the playback step can be adjusted by adjusting the playback clock, which leads to the difference in the number of samples within a given time.

[0067] In some embodiments, a self-synchronous calibration Bluetooth headset is also proposed, which includes: a master device, configured to convert an audio signal into a first digital audio signal; a slave device, configured to convert the above audio signal into a second digital audio signal; the above master device samples the above first digital audio signal for a first time period from the start time of the first time period to the end time of the first time period according to a first sampling step (based on the master device synchronization clock), and obtains the first number of sampling points and the first sampling step, wherein the above first sampling step is = the above first time period / the above first number of sampling points; the above master device samples the above first digital audio signal for a remaining first time period from the end time of the above first time period to the end time of the remaining first time period according to the first sampling step (based on the master device synchronization clock), and obtains the above first number of sampling points; the above remaining first time period is equal to the above first time period; the above slave device samples the above second digital audio signal from the start time of the above first time period to the end time of the above first time period according to a second sampling step (based on the slave device synchronization clock). The first time period is continued to be sampled, and a second sampling point number and a second sampling step length are obtained, wherein the second sampling step length is equal to the first time period / the second sampling point number; the slave device obtains the first sampling point number and the first sampling step length through the master device, and then obtains the error sampling point number, wherein the error sampling point number=the second test sampling point number-the first test sampling point number; when the absolute value of the error sampling point number is greater than the set threshold, the slave device is configured to continuously sample the second digital audio signal for the remaining first time period from the end time of the first time period to the end time of the remaining first time period by adjusting the sampling step length, and the sampling number of the slave device in the remaining first time period is the adjusted sampling point number, wherein the adjusted sampling point number=the first sampling point number-the error sampling point number, and the slave device is configured such that the sampling step length from the end time of the first time period to the end time of the remaining first time period is adjusted from the second sampling step length to the first sampling step length.

[0068] Further, in some embodiments, the master device sends a synchronization signal to the slave device at the start time of the first time period, the end time of the first time period, and the end time of the remaining first time period respectively; the slave device synchronizes the sampling time with the master device by receiving the synchronization signal.

[0069] In some embodiments, a self-synchronous calibration Bluetooth headset is proposed, which includes: a master device, configured to convert an audio signal into a first digital audio signal; a slave device, configured to convert the audio signal into a second digital audio signal; the master device samples the first digital audio signal for a first number of sampling points from the start of the first time period to the end of the first time period according to a first sampling step (based on a master device synchronization clock), the time interval between the end of the first time period and the start of the first time period is the first time period, the sampling step of the master device is a first sampling step, and the first sampling step = the first time period / the number of first sampling points; the master device samples the first digital audio signal for a first number of sampling points from the end of the first time period to the end of the remaining first time period according to the first sampling step (based on a master device synchronization clock), the time interval between the end of the remaining first time period and the end of the first time period is the first time period; the master device sends a synchronization signal to the slave device at the start of the first time period, the end of the first time period, and the end of the remaining first time period. The slave device samples the second digital audio signal for the second number of sampling points from the start of the first time period to the end of the first time period according to the second sampling step (based on the slave device synchronization clock) after receiving the synchronization signal from the master device; the slave device obtains the number of error sampling points, the number of error sampling points=the second number of sampling points-the first number of sampling points; the sampling step of the slave device is the second sampling step, the second sampling step=the first time period / the second number of sampling points; when the absolute value of the number of error sampling points is greater than the set threshold, the slave device is configured to sample the second digital audio signal for the remaining first time period from the end of the first time period to the end of the remaining first time period by adjusting the sampling step, and the number of samplings of the slave device in the remaining first time period is the adjusted number of sampling points, the adjusted number of sampling points=the first number of sampling points-the error number of sampling points, and the slave device is configured to adjust the sampling step from the end of the first time period to the end of the remaining first time period from the second sampling step to the first sampling step.

[0070] It should be understood that in some implementations, the working mode between the master and slave devices of the Bluetooth headset can be as follows: the master and slave devices each accumulate the sampling step of their own variable sampling module under their own playback clock, and when it reaches, for example, 9600 points (for example, 9600 sampling points are the number of sampling points for synchronization agreed upon by the master and slave devices), record their respective Bluetooth synchronization clocks, and then the master Bluetooth (master device) sends its recorded Bluetooth synchronization clock to the slave Bluetooth (slave device), the slave Bluetooth (slave device) compares it with the synchronization clock recorded by the master Bluetooth, and then calculates the corresponding slave device Bluetooth sampling step error through the recorded Bluetooth synchronization time error, and outputs a stable sampling step error through a digital phase-locked loop, which is given to the variable sampling module to complete a closed-loop adjustment.

[0071] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

[0072] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A self-synchronous calibration Bluetooth headset, comprising a master device and a slave device, characterized in that: The master device and the slave device respectively receive audio signals from external devices; The host device converts the received audio signal into a first digital audio signal; The slave device converts the received audio signal into a second digital audio signal; The master device obtains the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to the Bluetooth synchronization clock of the master device; the slave device obtains the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to the Bluetooth synchronization clock of the slave device; wherein the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period; The master device samples the first digital audio signal according to a first sampling step length and outputs a first number of sampling points in the first time period, where the first sampling step length=the first time period / the first number of sampling points; the slave device samples the second digital audio signal according to a second sampling step length and outputs a second number of sampling points in the first time period, where the second sampling step length=the first time period / the second number of sampling points=the first sampling step length*the error sampling step length coefficient; The slave device compares the error sampling step coefficient with a first threshold and a second threshold; When the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, the master device samples the first digital audio signal according to the first sampling step and outputs the remaining number of first sampling points within the remaining first time period, where the remaining number of first sampling points=the remaining first time period / the first sampling step; the slave device adjusts the second sampling step to sample the second digital audio signal, so that the slave device outputs the remaining number of second sampling points within the remaining first time period, where the remaining number of second sampling points=the first number of sampling points+the remaining number of first sampling points-the second number of sampling points.

2. The self-synchronous calibration Bluetooth headset according to claim 1, characterized in that: When the slave device adjusts the second sampling step length to sample the second digital audio signal, the sampling step length of the slave device is adjusted to the first sampling step length at the end of the remaining first time period.

3. The self-synchronous calibration Bluetooth headset according to claim 2, characterized in that: The remaining first time period is divided into N time periods, the N time periods include the first remaining time period, the second remaining time period to the Nth remaining time period, where N is an integer; By gradually adjusting N time periods from the first remaining time period to the Nth remaining time period, the step size sampled by the slave device is gradually adjusted to the first sampling step size, and the step size sampled by the slave device is the same in each of the N time periods.

4. The self-synchronous calibration Bluetooth headset according to claim 2, characterized in that: The step length sampled by the slave device is gradually adjusted to the first sampling step length in the manner that the step length sampled by the slave device is first gradually adjusted from the second sampling step length to a third sampling step length, and then gradually adjusted to the first sampling step length; When the second sampling step length is greater than the first sampling step length, the third sampling step length is less than the first sampling step length; when the second sampling step length is less than the first sampling step length, the third sampling step length is greater than the first sampling step length.

5. The self-synchronous calibration Bluetooth headset according to claim 1, characterized in that: When the error sampling step coefficient is smaller than the first threshold or larger than the second threshold, the slave device continues to sample the second digital audio signal according to the second sampling step.

6. The self-synchronous calibration Bluetooth headset according to claim 1, characterized in that: The main device comprises: a main device audio receiving module, a first variable sampling module, a first digital audio interface module, a first analog audio transmission module, and a first reverse variable sampling processing module; The main device audio receiving module receives an audio signal from an external device and transmits the received audio signal to the first variable sampling module; the first variable sampling module converts the received audio signal into the first digital audio signal and transmits the first digital audio signal to the first digital audio interface module; the first reverse sampling processing module samples the first digital audio signal from the first digital audio interface module according to the first sampling step and obtains the first number of sampling points, and the first reverse sampling processing module samples the remaining number of first sampling points within the remaining first time period; the first analog audio transmission module converts the first digital audio signal from a digital signal to an audio analog signal for output; The slave device comprises: a slave device audio receiving module, a second variable sampling module, a second digital audio interface module, a second analog audio transmission module, and a second reverse variable sampling processing module; The slave device audio receiving module receives an audio signal from an external device and transmits the received audio signal to the second variable sampling module; the second variable sampling module converts the received audio signal into the second digital audio signal and transmits the second digital audio signal to the second digital audio interface module; the second reverse sampling processing module samples the second digital audio signal from the second digital audio interface module according to the second sampling step and obtains the second sampling point number of the first time period, and the second reverse sampling processing module samples the remaining second sampling point number in the remaining first time period; the second reverse sampling processing module compares the error sampling step coefficient with the first threshold and the second threshold; when the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1; the second reverse sampling processing module adjusts the second sampling step by controlling the second variable sampling module, so that the second reverse sampling processing module outputs the remaining second sampling point number in the remaining first time period according to the adjusted second sampling step; the second analog audio transmission module converts the received second digital audio signal into an audio analog signal for output.

7. The self-synchronous calibration Bluetooth headset according to claim 6, characterized in that: The second inverse sampling processing module also includes: a synchronous phase error calculation module and a digital phase locking module; The synchronous phase error calculation module is configured to obtain the error sampling step coefficient, the first sampling step, the second sampling step, the first time period, and the remaining first time period according to the first sampling point number, the second sampling point number, the start time of the first time period, the end time of the first time period, the start time of the remaining first time period, and the end time of the remaining first time period; The digital phase locking module is configured to gradually adjust the second sampling step size to the first sampling step size.

8. The self-synchronous calibration Bluetooth headset according to claim 1, characterized in that: The first digital audio signal and the second digital audio signal are converted into digital audio signals of a given sampling rate.

9. The self-synchronous calibration Bluetooth headset according to claim 1, characterized in that: The master device sends synchronization signals to the slave device at the start time of the first time period, the end time of the first time period, and the end time of the remaining first time period respectively; the slave device synchronizes the sampling time with the master device by receiving the synchronization signal.

10. A self-synchronous calibration method for a Bluetooth headset, characterized in that: include: converting the received audio signal into a first digital audio signal and a second digital audio signal; Acquire the start time of the first time period, the end time of the first time period, the start time of the remaining first time period, and the end time of the remaining first time period according to the first Bluetooth synchronization clock; Acquire the start time of the first time period, the end time of the first time period, the start time of the remaining first time period and the end time of the remaining first time period according to the second Bluetooth synchronization clock; wherein the first time period is the time interval between the start time of the first time period and the end time of the first time period, and the remaining first time period is the time interval between the start time of the remaining first time period and the end time of the remaining first time period; Sampling the first digital audio signal according to a first sampling step length and outputting the first number of sampling points in the first time period, wherein the first sampling step length=the first time period / the first number of sampling points; Sample the second digital audio signal according to a second sampling step length and output the second number of sampling points in the first time period, where the second sampling step length=the first time period / the second number of sampling points=the first sampling step length*the error sampling step length coefficient; Comparing the error sampling step coefficient with a first threshold and a second threshold; When the error sampling step coefficient is greater than the first threshold or less than the second threshold, and the first threshold is greater than 1 and the second threshold is less than 1, the first digital audio signal is sampled according to the first sampling step to output the remaining first sampling point number within the remaining first time period, and the remaining first sampling point number=the remaining first time period / the first sampling step; the second sampling step is adjusted to sample the second digital audio signal, so that the remaining second sampling point number is output within the remaining first time period, and the remaining second sampling point number=the first sampling point number+the remaining first sampling point number-the second sampling point number, and the second sampling step is adjusted to the first sampling step at the end of the remaining first time period.