CN115038162A - Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock - Google Patents

Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock Download PDF

Info

Publication number
CN115038162A
CN115038162A CN202210964815.6A CN202210964815A CN115038162A CN 115038162 A CN115038162 A CN 115038162A CN 202210964815 A CN202210964815 A CN 202210964815A CN 115038162 A CN115038162 A CN 115038162A
Authority
CN
China
Prior art keywords
frequency
bluetooth
phase
adjustment
frequency offset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210964815.6A
Other languages
Chinese (zh)
Other versions
CN115038162B (en
Inventor
温泉源
彭岳峰
袁梦
熊骏
于茂
胡胜发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ankai Microelectronics Co ltd
Original Assignee
Guangzhou Ankai Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Ankai Microelectronics Co ltd filed Critical Guangzhou Ankai Microelectronics Co ltd
Priority to CN202210964815.6A priority Critical patent/CN115038162B/en
Publication of CN115038162A publication Critical patent/CN115038162A/en
Application granted granted Critical
Publication of CN115038162B publication Critical patent/CN115038162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/0035Synchronisation arrangements detecting errors in frequency or phase
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of Bluetooth and discloses a method and a device for quickly adjusting same frequency and phase of a Bluetooth clock, wherein the method comprises the steps of acquiring a phase and a Bluetooth timestamp in a current local frame; when the preset adjusting time interval is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again; predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps; judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold; and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish the initial adjustment. The method and the device have the advantages that corresponding adjustment is carried out according to the difference of clock accuracy among devices, the misadjustment condition during synchronous adjustment of the Bluetooth clock is reduced, the effect of adjusting the accuracy is improved, the conditions of overflow and broadcasting null do not occur in synchronous playing and local caching of different devices are guaranteed, and the adjustment accuracy is higher and the adjustment speed is higher through an accurate frequency offset estimation method.

Description

Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
Technical Field
The application relates to the technical field of Bluetooth, in particular to a method and a device for quickly adjusting same frequency and phase of a Bluetooth clock.
Background
With the development of bluetooth technology, True Wireless Stereo (TWS) bluetooth headsets are widely popularized, the two-channel Stereo synchronization experience of the TWS headset becomes very critical, the most core factor for ear synchronization is the clock synchronization performance between devices, the device clock performance between different manufacturers is different, and even if the clocks of the same batch of products of the same manufacturer are inconsistent, the clock synchronization is not consistent. In addition, the master device (master) and the slave device (slave) in the same piconet have inconsistent clocks, and when the piconet is played for a long time, the local buffer may be empty or overflow due to mismatching of the sampling rates of the receiving end and the transmitting end, thereby causing the problem of abnormal playing. The method solves the problems of asynchronous playing caused by large time delay between devices and empty or overflow of local cache caused by different sampling rates of a receiving end and a transmitting end, and is necessary to realize clock synchronization between Bluetooth devices.
The existing Bluetooth clock synchronization adjusting method can judge the clock synchronization state by monitoring the data volume of a local memory, but the existing Bluetooth clock synchronization adjusting method is greatly influenced by the receiving performance, and the memory data mutation caused by the change of the receiving performance is easy to generate error adjustment. Or, the clock synchronization between the slave device and the master device is realized by adjusting the phase-locked loop through the carrier synchronization error or the timing synchronization error, for example, the frequency offset estimated by the related data packet symbol is used as the adjustment basis, but the symbol error is easy to cause the frequency error estimation error to cause the misadjustment.
Aiming at the related technologies, the inventor finds that the existing Bluetooth clock synchronization adjusting method has the problems of easy misadjustment and poor adjusting effect.
Disclosure of Invention
In order to reduce the misadjustment condition when the Bluetooth clock is synchronously adjusted and improve the adjustment precision, the application provides a method and a device for quickly adjusting the same frequency and the same phase of the Bluetooth clock.
In a first aspect, the present application provides a method for fast same-frequency and same-phase adjustment of a bluetooth clock.
The application is realized by the following technical scheme:
a method for adjusting the same frequency and phase of a Bluetooth clock quickly comprises the following steps,
acquiring a phase and a Bluetooth timestamp in a current local frame;
when the preset adjusting time interval is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish the initial adjustment.
The application may be further configured in a preferred example to: the step of controlling the frequency oscillator to update the frequency based on the frequency offset to complete the initial tuning comprises,
obtaining an actual corrected frequency offset based on the updated frequency of the frequency oscillator;
calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution;
and adjusting the frequency updating frequency of the frequency oscillator through the frequency adjusting control word until the frequency of the target equipment is consistent with the frequency of the audio playing source.
The present application may be further configured in a preferred example to: the step of determining whether the frequency needs to be adjusted based on the frequency offset and a preset threshold comprises,
judging whether the frequency deviation is less than or equal to a preset first threshold;
if the frequency offset is less than or equal to the first threshold, judging whether the frequency offset exceeds a preset second threshold;
and if the frequency deviation exceeds the second threshold, judging that the frequency needs to be adjusted.
The present application may be further configured in a preferred example to: before the step of obtaining the phase and the Bluetooth time stamp in the current local frame, the method further comprises the following steps,
establishing a connection between the device and the audio source;
judging whether the equipment is a main ear or not;
and if the equipment is the main ear, acquiring the phase and the Bluetooth timestamp in the current local frame.
The present application may be further configured in a preferred example to: before the step of obtaining the phase and the Bluetooth time stamp in the current local frame, the method further comprises the following steps,
judging whether the equipment is a main ear or not;
if the equipment is not the main ear, detecting whether the connection link of the equipment is established successfully;
and if the connection link of the equipment is successfully established, sending a successful signaling to the other earphone until the other earphone receives the successful signaling.
The application may be further configured in a preferred example to: after the step of sending a successful signaling to the other earphone if the connection link of the device is successfully established, the method further comprises,
if the other earphone does not receive the successful signaling, the other earphone repeatedly sends the successful signaling to the other earphone;
and obtaining the phase and the Bluetooth timestamp in the current local frame until the repeated sending times meet the condition.
The application may be further configured in a preferred example to: the updating frequency of the frequency oscillator based on the frequency deviation control also comprises the following steps when the initial setting is finished,
acquiring the current updated frequency and the frequency offset;
obtaining an error value based on the frequency and the frequency offset;
meanwhile, accumulating the error value obtained after the frequency is updated at each adjustment time interval to obtain a residual frequency offset integral value;
and accumulating the predicted frequency offset and the residual frequency offset integral value as the current frequency offset at the next time interval of adjustment.
The present application may be further configured in a preferred example to: the updating frequency of the frequency oscillator based on the frequency deviation control also comprises the following steps when the initial setting is finished,
recording the frequency adjustment control word;
when the playing is started, the recorded frequency adjustment control word is obtained;
judging whether the frequency adjustment control word is smaller than or equal to a third threshold;
if the frequency adjustment control word is smaller than or equal to a third threshold, acquiring a phase and a Bluetooth timestamp in a current local frame;
when the time interval for adjusting is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency again based on the frequency deviation to finish fine adjustment.
The present application may be further configured in a preferred example to: the step of controlling the frequency oscillator to update the frequency again based on the frequency offset further comprises the step of fine tuning,
recording the frequency adjustment control word;
judging whether the frequency adjustment control word exceeds a preset fifth threshold or not;
if the frequency adjustment control word exceeds the fifth threshold, the adjustment time interval is shortened.
In a second aspect, the present application provides a fast same-frequency and same-phase adjusting device for a bluetooth clock.
The application is realized by the following technical scheme:
a fast same-frequency and same-phase adjusting device of a Bluetooth clock comprises,
the first data module is used for acquiring a phase and a Bluetooth timestamp in a current local frame;
the second data module is used for acquiring the phase and the Bluetooth timestamp in the current local frame again when the preset adjusting time interval is reached;
the frequency offset module is used for predicting frequency offset based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
the judging module is used for judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold;
and the frequency modulation module is used for controlling the frequency oscillator to update the frequency based on the frequency deviation if the frequency needs to be adjusted, so as to finish the initial modulation.
In a third aspect, the present application provides a computer device.
The application is realized by the following technical scheme:
a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned methods for fast co-frequency and co-phase adjustment of bluetooth clocks when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium.
The application is realized by the following technical scheme:
a computer-readable storage medium, which stores a computer program, which when executed by a processor, implements the steps of any of the above methods for fast co-frequency and co-phase adjustment of a bluetooth clock.
In summary, compared with the prior art, the beneficial effects brought by the technical scheme provided by the application at least include:
a method for rapidly adjusting the same frequency and the same phase of a Bluetooth clock comprises the steps of obtaining the phase and the Bluetooth timestamp in a current local frame, and obtaining the phase and the Bluetooth timestamp in the current local frame again when a preset adjusting time interval is reached; predicting frequency deviation according to the phase difference based on the phases in the two local frames and the time difference of the two Bluetooth timestamps; judging whether the frequency needs to be adjusted or not according to the frequency offset and a preset threshold; if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish initial adjustment; the method and the device have the advantages that corresponding adjustment is carried out according to the clock accuracy difference among the devices, the conditions of overflow and broadcast null of synchronous broadcast and local cache of different devices are guaranteed, the adjustment accuracy is higher, the adjustment speed is higher, the mis-adjustment condition during synchronous adjustment of the Bluetooth clock is reduced, and the adjustment accuracy is improved.
Drawings
Fig. 1 is a flowchart of an ear initial adjustment method for a fast same-frequency and same-phase adjustment method of a bluetooth clock according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating an ear trimming process of a method for fast same-frequency and same-phase adjustment of a bluetooth clock according to another exemplary embodiment of the present application.
Fig. 3 is a flowchart of a monaural initial adjustment method for a fast same-frequency and same-phase adjustment method of a bluetooth clock according to another exemplary embodiment of the present application.
Fig. 4 is a schematic diagram illustrating a principle of a fast same-frequency and same-phase adjustment method for a bluetooth clock according to an exemplary embodiment of the present application.
Fig. 5 is a schematic diagram of a start timing sequence of each stage of adjustment for an ear bluetooth headset according to a method for fast same-frequency and same-phase adjustment of a bluetooth clock according to an exemplary embodiment of the present application.
Fig. 6 is a block diagram of a frequency offset module design of a method for fast co-frequency and co-phase adjustment of a bluetooth clock according to an exemplary embodiment of the present application.
Fig. 7 is a timing relationship diagram of a local bluetooth frame corresponding to a master device timestamp of a fast same-frequency and same-phase adjustment method for a bluetooth clock according to an exemplary embodiment of the present application.
Detailed Description
The present embodiment is only for explaining the present application, and it is not limited to the present application, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The asynchronous clock between the equipment easily leads to the time delay grow between the bluetooth headset, the asynchronous problem of audio playback appears, and in addition, master device and slave unit clock nonconformity easily lead to local buffer memory to become empty or overflow, the unusual problem of broadcast appears. In order to solve the problem of asynchronous playing caused by large time delay among equipment and the problem of empty or overflow of a local cache caused by different sampling rates of a receiving end and a transmitting end, so as to reduce the misadjustment condition when the Bluetooth clock is synchronously adjusted and improve the adjustment precision, the invention provides the method and the device for adjusting the Bluetooth clock with the same frequency and phase quickly.
One of the technical key points of the application is as follows: and an accurate frequency offset estimation method is adopted to ensure that the frequency offset estimation is accurate and reliable.
The second technical key point of the present application is: and quickly finishing the frequency offset correction. And starting adjustment before audio playing, and then realizing 1-2 times of quick frequency calibration based on the obtained accurate frequency offset.
The third technical key point of the application is that: the playing time delay between the devices is controllable. Each device can independently realize the following of the clock of the main device, the adjustment interval can be flexibly configured according to the actual frequency change rate, and the synchronism of the aural playing is ensured.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
The embodiment of the application provides a method for rapidly adjusting the same frequency and the same phase of a Bluetooth clock, and the main steps of the method are described as follows.
Acquiring a phase and a Bluetooth timestamp in a current local frame;
when the preset adjusting time interval is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish the initial adjustment.
In one embodiment, the step of determining whether the frequency needs to be adjusted based on the frequency offset and a preset threshold includes,
judging whether the frequency offset is less than or equal to a preset first threshold;
if the frequency deviation is less than or equal to the first threshold, judging whether the frequency deviation exceeds a preset second threshold;
and if the frequency deviation exceeds the second threshold, judging that the frequency needs to be adjusted.
In one embodiment, the step of controlling the frequency oscillator to update the frequency based on the frequency offset includes,
obtaining an actually corrected frequency offset based on the updated frequency of the frequency oscillator;
calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution;
and adjusting the frequency updating frequency of the frequency oscillator through the frequency adjusting control word until the frequency of the target equipment is consistent with the frequency of the audio playing source.
In one embodiment, the controlling the frequency oscillator to update the frequency based on the frequency offset further includes the following steps when the initial adjustment is completed,
recording the frequency adjustment control word;
when the playing is started, the recorded frequency adjustment control word is obtained;
judging whether the frequency adjustment control word is less than or equal to a third threshold;
if the frequency adjustment control word is smaller than or equal to a third threshold, acquiring a phase and a Bluetooth timestamp in a current local frame;
when the time interval is adjusted, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency again based on the frequency deviation to finish fine adjustment.
In an embodiment, the step of controlling the frequency oscillator to update the frequency again based on the frequency offset further includes,
recording the frequency adjustment control word;
judging whether the frequency adjustment control word exceeds a preset fifth threshold or not;
if the frequency adjustment control word exceeds the fifth threshold, the adjustment time interval is shortened.
In one embodiment, before the step of obtaining the phase and bluetooth timestamp in the current local frame, the method further comprises the following steps,
connecting the device to an audio source; wherein, the connection mode can be Bluetooth connection;
judging whether the equipment is a main ear or not;
and if the equipment is the main ear, acquiring the phase and the Bluetooth timestamp in the current local frame.
In one embodiment, before the step of obtaining the phase and bluetooth timestamp in the current local frame, the method further comprises the following steps,
judging whether the equipment is a main ear or not;
if the equipment is not the main ear, detecting whether the connection link of the equipment is established successfully;
if the connection link of the equipment is successfully established, sending a successful signaling to the other earphone until the other earphone receives the successful signaling;
if the other earphone does not receive the successful signaling, the other earphone repeatedly sends the successful signaling to the other earphone;
and obtaining the phase and the Bluetooth timestamp in the current local frame until the repeated sending times meet the conditions.
In one embodiment, the controlling the frequency oscillator to update the frequency based on the frequency offset further includes the following steps when the initial adjustment is completed,
acquiring the current updated frequency and the frequency offset;
obtaining an error value based on the frequency and the frequency offset;
meanwhile, accumulating the error value obtained after the frequency is updated at each adjustment time interval to obtain a residual frequency offset integral value;
and accumulating the predicted frequency offset and the residual frequency offset integral value as the current frequency offset at the next time interval of adjustment.
The scheme provided by the application can be used for the synchronous adjustment of the ear clocks and can also be used for the synchronous adjustment of the single-ear clocks, the clock synchronous adjustment of the ear Bluetooth headset is taken as an example, and the specific introduction of the embodiment is as follows.
Referring to fig. 1, the device is first brought into bluetooth connection with the audio source.
It is determined whether the device is a dominant ear.
And if the equipment is the main ear, acquiring the phase and the Bluetooth timestamp in the current local frame.
If the equipment is not the main ear, whether the connection link of the equipment is established successfully is detected; and if the connection link of the equipment is successfully established, sending a success signaling to the other earphone to inform the main ear that the link connection is completed. The successful signaling can be a specific signaling specified by an audio protocol, a starting signaling needs to be sent before the Bluetooth audio playing protocol is specified to be played, and the Bluetooth headset receives the starting signaling and then serves as a mark for starting initial adjustment.
If the other earphone does not receive the successful signaling, the equipment is made to repeatedly send the successful signaling to the other earphone so as to ensure that the main ear knows the current state of the auxiliary ear, and the equipment is made to stop sending the successful signaling to the other earphone until the repeated sending times meet the condition so as to avoid the phenomenon that the working performance of the main ear is influenced because the message is sent too frequently, and at the moment, the main ear is acquiescently made to receive the successful signaling. In this embodiment, the fourth threshold THR4 is preset, and if the cumulative number of repeated transmissions is greater than or equal to the fourth threshold THR4, the default master ear receives a successful signaling.
When the main ear receives a successful signaling, the phase and the Bluetooth timestamp in the current local frame are obtained to automatically start the frequency initial adjustment, and the time before starting the audio playing is fully utilized to adjust, so that the clock synchronization precision is better and more stable after the audio is started and played.
And judging whether a preset adjusting time interval is reached.
And if the preset adjusting time interval is reached, acquiring the phase and the Bluetooth timestamp in the current local frame again.
And predicting the frequency offset based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps.
Judging whether the frequency needs to be adjusted or not based on the frequency deviation and a preset threshold, wherein the judgment on the rationality of the frequency deviation comprises judging whether the frequency deviation is less than or equal to a preset first threshold THR1 or not; if the frequency deviation is less than or equal to the first threshold THR1, judging whether the frequency deviation is reasonable, and judging whether the frequency deviation exceeds a preset second threshold THR 2; if the frequency deviation exceeds the first threshold THR1, the current frequency deviation is determined to be abnormal by default, that is, the current frequency deviation is not reasonable, and the current adjustment is not performed, so that the current adjustment is abandoned, and the misadjustment is avoided, so as to further reduce the misadjustment rate.
If the frequency offset exceeds a second threshold THR2, judging that the frequency needs to be adjusted; if the frequency deviation is less than or equal to the second threshold THR2, the frequency deviation is also determined as abnormal, and no adjustment is taken.
Wherein, when adjusting the frequency, the frequency oscillator is controlled to update the frequency based on the frequency offset, including,
obtaining an actual corrected frequency offset based on the updated frequency of the frequency oscillator;
calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution; meanwhile, considering that the current frequency offset and the resolution of the frequency adjustment control word are not in integral multiple, the current frequency offset cannot be completely corrected, so that an error value is obtained based on the updated frequency and frequency offset to obtain uncorrected frequency offset, and the error value obtained after the frequency is updated at each adjustment time interval is accumulated to obtain a residual frequency offset integral value; when the next adjusting time interval is carried out, accumulating the predicted frequency deviation and the residual frequency deviation integral value to be used as the current frequency deviation so as to reduce the adjusting error and further improve the adjusting precision;
and adjusting the frequency updating frequency of the frequency oscillator through the frequency adjusting control word until the frequency of the target equipment is consistent with the frequency of the audio playing source so as to finish the initial adjustment.
At this time, recording the current frequency adjustment control word, continuously judging whether the preset adjustment time interval is reached, and iterating the steps.
Recording the current frequency adjustment control word can be realized in a software read-back mode. The control word is adjusted according to the recorded frequency and reconfigured as necessary to handle the case where the master operating clock is switched to low accuracy.
Referring to fig. 2, in an embodiment, when the audio playback is started after the initial frequency adjustment is completed, the frequency adjustment control word is read back.
It is determined whether the current frequency adjustment control word is less than or equal to a third threshold THR3 to check the read-back frequency adjustment control word for plausibility.
If the current frequency adjustment control word is smaller than or equal to the third threshold THR3, the frequency adjustment control word is not required to be modified by default, and the phase and the Bluetooth timestamp in the current local frame are acquired at the moment; and if the current frequency adjustment control word exceeds a third threshold THR3, considering that the current frequency deviation is large, resetting the current frequency adjustment control word as the frequency adjustment control word recorded at the end of initial adjustment, and then acquiring the phase and Bluetooth timestamp in the current local frame.
And judging whether a preset adjusting time interval is reached.
If the preset adjusting time interval is reached, acquiring the phase and the Bluetooth timestamp in the current local frame again; otherwise, whether the preset adjusting time interval is reached is continuously judged.
And calculating the phase difference of the phases in the two local frames and the time difference of the two Bluetooth time stamps.
And estimating the frequency offset according to the phase difference.
It is determined whether the frequency offset is less than or equal to a predetermined first threshold THR 1.
If the frequency deviation is less than or equal to a first threshold THR1, judging whether the frequency deviation exceeds a preset second threshold THR 2; if the frequency offset exceeds the first threshold THR1, the frequency offset is determined to be abnormal, and no adjustment is made.
If the frequency offset exceeds a second threshold THR2, judging that the frequency needs to be adjusted; and if the frequency offset is less than or equal to the second threshold THR2, the default frequency offset is normal, and no adjustment measure is taken.
When adjusting the frequency, obtaining the actually corrected frequency offset based on the updated frequency of the frequency oscillator;
calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution; meanwhile, an error value is obtained based on the updated frequency and frequency offset, and the error value obtained after the frequency is updated at each adjustment time interval is accumulated to obtain a residual frequency offset integral value; accumulating the predicted frequency offset and the residual frequency offset integral value as the current frequency offset during the next time interval;
and adjusting the frequency updating frequency of the frequency oscillator through the frequency adjusting control word until the frequency of the target device is consistent with the frequency of the audio playing source, so as to monitor the frequency deviation condition at regular time in the audio playing process and finish fine adjustment.
At this time, the current frequency adjustment control word is recorded.
Further, it is determined whether the frequency change rate of the frequency adjustment control word exceeds a preset fifth threshold THR 5.
If the frequency adjustment control word is less than or equal to the fifth threshold THR5, it is continuously determined whether the adjustment time interval is reached, and the above steps are iterated.
If the frequency adjustment control word exceeds the fifth threshold THR5, which indicates that the clock change rate is too fast, the adjustment time interval is shortened, and then whether a new adjustment time interval is reached is continuously judged, and the steps are iterated to ensure that the time delay between the devices is smaller.
Further, if the device is monaural, the method for adjusting monaural clock synchronization is shown in fig. 3, and includes a first stage monaural initial adjustment and a second stage monaural clock synchronization fine adjustment.
Specifically, it is determined whether the device establishes a connection with the master device.
And if the equipment is connected with the main equipment, starting frequency calibration, and reading the phase and the Bluetooth timestamp in the current local frame. Or automatically starting the frequency initial adjustment when receiving the audio playing protocol specified signaling.
The monaural clock synchronization initial tuning method may refer to an interaural clock synchronization initial tuning method to achieve monaural frequency and phase adjustment, which is not described herein again.
The method for tuning the synchronization of the single-ear clock is the same as the process for tuning the synchronization of the dual-ear clock, and the details can be referred to the process for tuning the synchronization of the dual-ear clock, which is not described herein again.
Referring to fig. 4, the implementation of the present application is divided into two stages, namely, initial tuning and fine tuning, and the initial tuning frequency calibration is performed before audio playing through a frequency tuning algorithm to ensure that the frequencies of the devices are kept consistent before audio playing; and fine adjustment is carried out through a frequency adjustment algorithm after the audio starts playing, so that small-amplitude correction is realized, and frequency and phase locking is kept on the basis of consistent initial adjustment frequency.
Referring to fig. 5, the time before the "synchronous start play time (t 3)" in the figure of the present application can be initially adjusted, the shorter the adjustment interval, the more the adjustment times, or vice versa, the interval can be configured by software as required.
For example, bluetooth headset a starts frequency calibration at time t0, bluetooth headset B starts frequency calibration at time t1, and both bluetooth headset a and bluetooth headset B complete initial tuning at time t2, achieving the frequency consistency goal. The frequencies of the plurality of Bluetooth earphones are aligned to the frequency of the audio playing source, so that the frequency consistency can be ensured. And (5) playing is started at the appointed time t3 of the ears, fine adjustment is executed after playing is started, and stable and reliable operation is guaranteed.
In the fine adjustment stage, the clock of the main equipment is used as a reference, the Bluetooth headset A and the Bluetooth headset B are required to run along with the reference clock of the main equipment, the frequency adjustment control word is accurately calculated through the frequency offset estimation module, accurate frequency offset estimation is achieved, the frequency can be met by adjusting the frequency for 1 time, and the frequency offset can be further reduced or the stability can be kept by adjusting for multiple times.
Specifically, referring to fig. 6 and 7, the design principle and the adjustment method of the frequency offset estimation module are as follows:
(1) the master device end sends out the air packet data, the slave device receives the air packet data successfully to obtain the sending time of the master device, and the time scale of the master device at this time corresponds to the position in the local Bluetooth time sequence of the Bluetooth headset, which is called as' phase position
Figure 88021DEST_PATH_IMAGE001
", indicates phase information at different times. And if the data packet is successfully verified, updating the phase. If the phase at time t4 is "phase 1", and the phase at time t5 is "phase 2", the phases at different times are represented.
(2) And starting to adjust the moment to acquire the corresponding phase and Bluetooth timestamp.
(3) After the adjustment interval is reached, the phase and the corresponding Bluetooth timestamp are obtained, the corresponding frequency change is obtained through differentiation, and the frequency deviation estimated according to the Bluetooth clock and the phase is converted into the frequency deviation corresponding to the clock to be adjusted (a reference clock or an audio sampling clock) through geometric conversion
Figure 357591DEST_PATH_IMAGE002
(4)
Figure 755074DEST_PATH_IMAGE003
The frequency deviation corresponding to the frequency to be adjusted is obtained, and the received phase deviation and the time difference can be accurately monitored and obtained because the phase variation and the time difference are accurately counted, so that the frequency deviation estimation is accurate and reliable, 1-2 times of quick frequency calibration adjustment can be realized based on the estimated frequency deviation, and the frequency deviation correction is quickly finished.
(5) A frequency adjustment control word is calculated. The frequency adjustment control word has a control accuracy with a resolutionCharacteristics of
Figure 546313DEST_PATH_IMAGE004
Figure 188909DEST_PATH_IMAGE005
The upper layer is directly applied, determined by the capacitor array designed on the bottom layer. Frequency offset estimated in step (3)
Figure 686886DEST_PATH_IMAGE003
And the resolution of the frequency adjustment control word is not integral multiple, i.e. the correction cannot be completed at this time
Figure 520850DEST_PATH_IMAGE003
Therefore, the frequency offset of this actual correction is defined as
Figure 596122DEST_PATH_IMAGE006
Figure 42409DEST_PATH_IMAGE007
Corresponding frequency adjustment control word
Figure 457210DEST_PATH_IMAGE008
Figure 462075DEST_PATH_IMAGE009
Is that
Figure 962327DEST_PATH_IMAGE010
And
Figure 946726DEST_PATH_IMAGE005
by re-rounding the ratio of (a) to (b), i.e. frequency-adjustment control words
Figure 481612DEST_PATH_IMAGE011
= estimated frequency offset
Figure 657379DEST_PATH_IMAGE003
Capacitance array adjustment resolution
Figure 644926DEST_PATH_IMAGE005
And then rounding, adjusting the capacitor array of the chip through the frequency adjustment control word, adjusting the frequency of the oscillator, correcting the frequency deviation, adjusting the frequency oscillator and realizing the frequency consistency.
(6) Defining the part of the current residue which is not corrected as
Figure 433016DEST_PATH_IMAGE012
Figure 556830DEST_PATH_IMAGE013
Is that
Figure 903497DEST_PATH_IMAGE014
Reducing
Figure 378341DEST_PATH_IMAGE007
A difference of (d); starting from the initial adjustment, each adjustment time can obtain the residual uncorrected frequency offset of the corresponding time
Figure 981840DEST_PATH_IMAGE015
To, for
Figure 225740DEST_PATH_IMAGE015
Accumulating to obtain residual frequency deviation integral value
Figure 477730DEST_PATH_IMAGE016
I.e., the historical uncorrected residual frequency offset,
Figure 439869DEST_PATH_IMAGE017
the initial value is 0, which can be realized by an accumulator, and the initial value of the accumulator is 0. The residual frequency offset integral value can ensure that the accumulated frequency offset does not exceed the minimum resolution of the frequency adjustment control word every time, and further ensure the accuracy.
(7) Subsequent timing detection and calibration, the estimated total frequency offset being
Figure 569762DEST_PATH_IMAGE018
And
Figure 933747DEST_PATH_IMAGE019
and (4) summing. And (5) repeating the steps (3) to (6).
(8) And after the initial adjustment is started, recording and adjusting the frequency adjustment control word, avoiding the error following caused by starting a clock with poor precision by the main equipment, and reconfiguring the recorded frequency adjustment control word after the main equipment is awakened. At the same time, the residual frequency offset integral value is updated
Figure 356638DEST_PATH_IMAGE020
I.e., no residual frequency offset at the current time.
(9) After fine tuning, on the basis of consistent initial tuning frequency, quick and accurate correction and frequency and phase locking are realized through accumulated frequency deviation and real-time frequency deviation.
(10) The Bluetooth protocol has corresponding requirements on the crystal oscillator precision of the Bluetooth product, and after fine adjustment, the adjustment interval in the step (3) can be properly adjusted according to the estimated frequency change rate, the adjustment interval is flexibly configured, the synchronous time delay of the slave devices is controllable, the time delay between the slave devices is smaller, and the synchronism of the slave devices is better.
For example, if the default adjustment interval of the software is 1S, if the fine tuning stage detects that the frequency change within 1S exceeds the set fifth threshold THR5, it is determined that the adjustment interval is too long, and the software adaptively shortens the adjustment interval, for example, 0.5S, so as to perform the calibration operation earlier, avoid a larger frequency offset caused by longer time accumulation, which leads to an increase in the adjustment error, and reduce the synchronization performance of the device.
For another example, before adjustment, the clock accuracy deviation between the bluetooth headset a and the master device is +20ppm, the clock accuracy deviation between the bluetooth headset B and the master device is-20 ppm, the frequency accuracy between the two bluetooth headsets is 40ppm, and the interaural delay after 25s can reach ms level. In addition, the Bluetooth headset A is faster than the clock of the main equipment, the corresponding playing speed is faster than the playing speed of the main equipment, and the phenomenon of broadcasting null occurs when the local cache is played for a long time under the condition that the data space of the local cache is limited; the Bluetooth headset B is opposite, the playing speed is lower than that of the main device, and the phenomenon of overflowing of a local cache space occurs after long-time playing, so that abnormal playing is caused. By the frequency adjusting method, the equipment in the same piconet keeps clock synchronization, so that the condition can be effectively avoided, and the playing is more reliable and stable.
In summary, a method for adjusting a bluetooth clock in a same frequency and phase quickly acquires a phase and a bluetooth timestamp in a current local frame again by acquiring the phase and the bluetooth timestamp in the current local frame until a preset adjustment time interval is reached; predicting frequency deviation according to the phase difference based on the phases in the two local frames and the time difference of the two Bluetooth timestamps; judging whether the frequency needs to be adjusted or not according to the frequency offset and a preset threshold; if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish the initial adjustment; the method has the advantages that corresponding adjustment is carried out according to the clock accuracy difference among the devices, so that the conditions of overflow and broadcast null of synchronous broadcast and local cache of different devices are guaranteed, the adjustment accuracy is higher, the adjustment speed is higher, the mis-adjustment condition during synchronous adjustment of the Bluetooth clock is reduced, and the adjustment accuracy is improved; meanwhile, on the basis of quick and accurate adjustment, the time interval is flexibly set and adjusted according to the frequency change characteristic, and the playing time delay between the devices is further ensured to be more controllable.
According to the method and the device, the time before the audio playing is started is fully utilized for adjustment, so that the clock synchronization precision is better and more stable after the audio is started and played. Moreover, under the use scene to the ear, the slave unit all follows the master clock independently, makes all slave unit frequency and phase place all keep unanimous with the master unit, realizes the uniformity of frequency phase place between the slave unit, and the broadcast effect is better.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The embodiment of the application also provides a device for quickly adjusting the same frequency and the same phase of the Bluetooth clock, and the device for quickly adjusting the same frequency and the same phase of the Bluetooth clock corresponds to the method for quickly adjusting the same frequency and the same phase of the Bluetooth clock in the embodiment one by one. The device for adjusting the Bluetooth clock to be fast in the same frequency and phase comprises,
the first data module is used for acquiring a phase and a Bluetooth timestamp in a current local frame;
the second data module is used for acquiring the phase and the Bluetooth timestamp in the current local frame again when the preset adjusting time interval is reached;
the frequency deviation module is used for predicting the frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
the judging module is used for judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold;
and the frequency modulation module is used for controlling the frequency oscillator to update the frequency based on the frequency deviation if the frequency needs to be adjusted, so as to finish the initial modulation.
The frequency modulation module also comprises a correction unit, a frequency adjustment control word unit and a frequency modulation unit.
A correction unit for obtaining an actually corrected frequency offset based on the frequency updated by the frequency oscillator;
a frequency adjustment control word unit for calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution;
and the frequency modulation unit is used for adjusting the updating frequency of the frequency oscillator through the frequency adjustment control word until the frequency of the target equipment is consistent with the frequency of the audio playing source.
The judging module comprises a rationality unit and a judging unit.
And the rationality unit is used for judging whether the frequency deviation is less than or equal to a preset first threshold.
The judging unit is used for judging whether the frequency deviation exceeds a preset second threshold when the frequency deviation is less than or equal to the first threshold; and when the frequency deviation exceeds a second threshold, judging that the frequency needs to be adjusted.
A Bluetooth clock rapid same-frequency same-phase adjusting device further comprises a residual frequency offset module, a fine adjustment module and a time interval adjusting module.
The residual frequency offset module is used for obtaining an error value based on the current updated frequency and frequency offset; meanwhile, accumulating the error value obtained after the frequency is updated at each adjustment time interval to obtain a residual frequency offset integral value; and accumulating the predicted frequency offset and the residual frequency offset integral value as the current frequency offset when the next time interval is adjusted.
And the fine tuning module is used for fine tuning the frequency of the equipment when the audio playing is started.
The time interval adjusting module is used for judging whether the frequency adjusting control word exceeds a preset fifth threshold or not based on the recorded frequency adjusting control word; and shortening the adjustment time interval when the frequency adjustment control word exceeds the fifth threshold.
For specific limitations of a bluetooth clock fast same-frequency and same-phase adjusting apparatus, refer to the above limitations on a bluetooth clock fast same-frequency and same-phase adjusting method, which are not described herein again. All modules in the device for quickly adjusting the same frequency and the same phase of the Bluetooth clock can be completely or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize the method for adjusting the same frequency and phase of any one of the Bluetooth clocks.
In one embodiment, a computer-readable storage medium is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a phase and a Bluetooth timestamp in a current local frame;
when the preset adjusting time interval is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation, and completing initial adjustment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the system is divided into different functional units or modules to perform all or part of the above-mentioned functions.

Claims (12)

1. A rapid same-frequency and same-phase adjustment method for a Bluetooth clock is characterized by comprising the following steps,
acquiring a phase and a Bluetooth timestamp in a current local frame;
when the preset adjusting time interval is reached, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency based on the frequency deviation to finish the initial adjustment.
2. The method of claim 1, wherein the step of controlling the frequency oscillator to update the frequency based on the frequency offset to complete the initial tuning comprises,
obtaining an actual corrected frequency offset based on the updated frequency of the frequency oscillator;
calculating a frequency adjustment control word based on the actually corrected frequency offset and a preset resolution;
and adjusting the frequency updating frequency of the frequency oscillator through the frequency adjusting control word until the frequency of the target equipment is consistent with the frequency of the audio playing source.
3. The method of claim 1, wherein the step of determining whether the frequency needs to be adjusted based on the frequency offset and a predetermined threshold comprises,
judging whether the frequency offset is less than or equal to a preset first threshold;
if the frequency offset is less than or equal to the first threshold, judging whether the frequency offset exceeds a preset second threshold;
and if the frequency deviation exceeds the second threshold, judging that the frequency needs to be adjusted.
4. The method of claim 1, wherein the step of obtaining the phase and the Bluetooth timestamp in the current local frame further comprises the following steps,
establishing a connection between the device and the audio source;
judging whether the equipment is a main ear or not;
and if the equipment is the main ear, acquiring the phase and the Bluetooth timestamp in the current local frame.
5. The method of claim 1, wherein the step of obtaining the phase and the Bluetooth timestamp in the current local frame further comprises the following steps,
judging whether the equipment is a main ear or not;
if the equipment is not the main ear, detecting whether the connection link of the equipment is established successfully;
and if the connection link of the equipment is successfully established, sending a successful signaling to the other earphone until the other earphone receives the successful signaling.
6. The method according to claim 5, wherein after the step of sending a successful signaling to another earphone if the connection link of the device is successfully established, further comprising,
if the other earphone does not receive the successful signaling, the other earphone repeatedly sends the successful signaling to the other earphone;
and obtaining the phase and the Bluetooth timestamp in the current local frame until the repeated sending times meet the condition.
7. The method according to any of claims 1-6, wherein said controlling the frequency oscillator to update the frequency based on said frequency offset further comprises the following steps when completing the initial adjustment,
acquiring the current updated frequency and the frequency offset;
obtaining an error value based on the frequency and the frequency offset;
meanwhile, accumulating the error value obtained after the frequency is updated at each adjustment time interval to obtain a residual frequency offset integral value;
and accumulating the predicted frequency offset and the residual frequency offset integral value as the current frequency offset at the next time interval of adjustment.
8. The method according to claim 2, wherein the updating frequency of the frequency oscillator based on the frequency deviation is controlled, and when the initial adjustment is completed, the method further comprises the following steps,
recording the frequency adjustment control word;
when the playing is started, the recorded frequency adjustment control word is obtained;
judging whether the frequency adjustment control word is smaller than or equal to a third threshold;
if the frequency adjustment control word is smaller than or equal to a third threshold, acquiring a phase and a Bluetooth timestamp in a current local frame;
when the time interval is adjusted, the phase and the Bluetooth timestamp in the current local frame are obtained again;
predicting frequency deviation based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold value;
and if the frequency needs to be adjusted, controlling the frequency oscillator to update the frequency again based on the frequency deviation to finish fine adjustment.
9. The method according to claim 8, wherein the step of controlling the frequency oscillator to update the frequency again based on the frequency offset further comprises the step of fine tuning,
recording the frequency adjustment control word;
judging whether the frequency adjustment control word exceeds a preset fifth threshold or not;
if the frequency adjustment control word exceeds the fifth threshold, the adjustment time interval is shortened.
10. A rapid same-frequency and same-phase adjusting device of a Bluetooth clock is characterized by comprising,
the first data module is used for acquiring a phase and a Bluetooth timestamp in a current local frame;
the second data module is used for acquiring the phase and the Bluetooth timestamp in the current local frame again when the preset adjusting time interval is reached;
the frequency offset module is used for predicting frequency offset based on the phase difference of the phases in the two local frames and the time difference of the two Bluetooth timestamps;
the judging module is used for judging whether the frequency needs to be adjusted or not based on the frequency offset and a preset threshold;
and the frequency modulation module is used for controlling the frequency oscillator to update the frequency based on the frequency deviation if the frequency needs to be adjusted, so as to complete initial adjustment.
11. A computer device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to perform the steps of the method of any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN202210964815.6A 2022-08-12 2022-08-12 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock Active CN115038162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210964815.6A CN115038162B (en) 2022-08-12 2022-08-12 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210964815.6A CN115038162B (en) 2022-08-12 2022-08-12 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock

Publications (2)

Publication Number Publication Date
CN115038162A true CN115038162A (en) 2022-09-09
CN115038162B CN115038162B (en) 2022-11-18

Family

ID=83130915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210964815.6A Active CN115038162B (en) 2022-08-12 2022-08-12 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock

Country Status (1)

Country Link
CN (1) CN115038162B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777160A (en) * 2004-11-15 2006-05-24 凯明信息科技股份有限公司 Coarse frequency correcting method
CN102088397A (en) * 2009-12-03 2011-06-08 中兴通讯股份有限公司 Communication network element and clock frequency correction system and method
CN102394715A (en) * 2011-06-30 2012-03-28 中兴通讯股份有限公司 Method and device for synchronizing clocks
CN102480350A (en) * 2010-11-29 2012-05-30 北京中和威软件有限公司 Method and device for time synchronization and maintaining based on frequency deviation estimation
CN103001718A (en) * 2011-09-14 2013-03-27 中兴通讯股份有限公司 Method and device for adjusting frequency
CN105515750A (en) * 2014-10-20 2016-04-20 中兴通讯股份有限公司 Time synchronization method and apparatus based on Bluetooth communication
EP3035536A1 (en) * 2014-12-19 2016-06-22 Stichting IMEC Nederland An ADPLL having a TDC circuit with a dynamically adjustable offset delay
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN107135179A (en) * 2017-04-10 2017-09-05 京信通信系统(广州)有限公司 A kind of device frequency calibration method and equipment
US20180041329A1 (en) * 2015-04-29 2018-02-08 Chongqing University Of Posts And Telecommunications Clock synchronization frequency offset estimation method adapted to wia-pa network
CN107947889A (en) * 2017-12-18 2018-04-20 京信通信系统(中国)有限公司 A kind of method and apparatus of clock frequency deviation calibration
CN107959644A (en) * 2017-09-21 2018-04-24 南京软仪测试技术有限公司 A kind of Bluetooth signal carrier frequency shift detection method
US20190007193A1 (en) * 2017-06-30 2019-01-03 Smartech Worldwide Limited Method for adjusting parameters of phase locked loop, bluetooth module and bluetooth system
CN109862545A (en) * 2019-01-15 2019-06-07 珠海市杰理科技股份有限公司 Frequency bias compensation method, device, computer equipment and the storage medium of Bluetooth signal
CN111416673A (en) * 2020-03-25 2020-07-14 深圳市中科蓝讯科技股份有限公司 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset
CN111918261A (en) * 2020-08-13 2020-11-10 南京中感微电子有限公司 Bluetooth audio equipment synchronous playing method and system and Bluetooth audio master and slave equipment
CN112039623A (en) * 2020-11-05 2020-12-04 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium
CN114553351A (en) * 2020-11-24 2022-05-27 华为技术有限公司 Time synchronization method, control device, equipment and storage medium
CN114679665A (en) * 2022-03-16 2022-06-28 深圳市冠旭电子股份有限公司 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium
CN114697923A (en) * 2020-12-29 2022-07-01 炬芯科技股份有限公司 Bluetooth device and Bluetooth clock calibration method and system thereof

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777160A (en) * 2004-11-15 2006-05-24 凯明信息科技股份有限公司 Coarse frequency correcting method
CN102088397A (en) * 2009-12-03 2011-06-08 中兴通讯股份有限公司 Communication network element and clock frequency correction system and method
CN102480350A (en) * 2010-11-29 2012-05-30 北京中和威软件有限公司 Method and device for time synchronization and maintaining based on frequency deviation estimation
CN102394715A (en) * 2011-06-30 2012-03-28 中兴通讯股份有限公司 Method and device for synchronizing clocks
CN103001718A (en) * 2011-09-14 2013-03-27 中兴通讯股份有限公司 Method and device for adjusting frequency
CN105515750A (en) * 2014-10-20 2016-04-20 中兴通讯股份有限公司 Time synchronization method and apparatus based on Bluetooth communication
EP3035536A1 (en) * 2014-12-19 2016-06-22 Stichting IMEC Nederland An ADPLL having a TDC circuit with a dynamically adjustable offset delay
US20180041329A1 (en) * 2015-04-29 2018-02-08 Chongqing University Of Posts And Telecommunications Clock synchronization frequency offset estimation method adapted to wia-pa network
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN107135179A (en) * 2017-04-10 2017-09-05 京信通信系统(广州)有限公司 A kind of device frequency calibration method and equipment
US20190007193A1 (en) * 2017-06-30 2019-01-03 Smartech Worldwide Limited Method for adjusting parameters of phase locked loop, bluetooth module and bluetooth system
CN107959644A (en) * 2017-09-21 2018-04-24 南京软仪测试技术有限公司 A kind of Bluetooth signal carrier frequency shift detection method
CN107947889A (en) * 2017-12-18 2018-04-20 京信通信系统(中国)有限公司 A kind of method and apparatus of clock frequency deviation calibration
CN109862545A (en) * 2019-01-15 2019-06-07 珠海市杰理科技股份有限公司 Frequency bias compensation method, device, computer equipment and the storage medium of Bluetooth signal
CN111416673A (en) * 2020-03-25 2020-07-14 深圳市中科蓝讯科技股份有限公司 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset
CN111918261A (en) * 2020-08-13 2020-11-10 南京中感微电子有限公司 Bluetooth audio equipment synchronous playing method and system and Bluetooth audio master and slave equipment
CN112039623A (en) * 2020-11-05 2020-12-04 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium
CN114553351A (en) * 2020-11-24 2022-05-27 华为技术有限公司 Time synchronization method, control device, equipment and storage medium
CN114697923A (en) * 2020-12-29 2022-07-01 炬芯科技股份有限公司 Bluetooth device and Bluetooth clock calibration method and system thereof
CN114679665A (en) * 2022-03-16 2022-06-28 深圳市冠旭电子股份有限公司 Bluetooth headset audio and video synchronization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115038162B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
EP2787664B1 (en) Time synchronization method and apparatus
CA2468764C (en) Time synchronization using dynamic thresholds
US10666417B1 (en) Time synchronization using timestamp exchanges
CN111781987B (en) Real-time clock calibration method and related device
US20130191486A1 (en) Time control apparatus, time control method, and program
EP1134921A2 (en) Adjustment of oscillator
EP4027585A1 (en) Method for achieving clock source selection, device, system and storage medium
US20160087738A1 (en) Time synchronization slave apparatus capable of adjusting time synchronization period, and method of determining time synchronization period
CN115038162B (en) Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock
JP2003333647A (en) Mobile communication system, base station controller for constituting the same, radio base station, and communication timing control method for the system
US11382041B2 (en) Methods for dynamically adjusting wake-up time and communication device utilizing the same
US8897289B2 (en) Node system and supervisory node
JP2015004649A (en) Slave device, master/slave system and time synchronization method
CN113037418B (en) Error correction method and related device for network time service
CN112636860B (en) IEEE1588 protocol time calibration method based on proportional-integral algorithm
US8849937B2 (en) Apparatus and method for time synchronization by automatically controlling sending message count of master
JP5115265B2 (en) Information processing apparatus and timing synchronization method
CN112867132B (en) Multi-link time delay jitter optimization method and device based on PTP
EP3972160B1 (en) Time synchronization method, service board, and network device
JP7268406B2 (en) Time update system, time update method and program
CN112311521A (en) Equipment group audio synchronization method and device, electronic equipment and storage medium
JP2023122681A (en) Reference pulse correction apparatus and reference pulse correction method
CN117614588A (en) Fault tolerance adjustment method and device for GPS data reporting, vehicle and medium
CN116828585A (en) Audio synchronous playing method and system, audio equipment and storage medium
CN116961815A (en) Time synchronization method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant