WO2020087370A1 - Procédé et dispositif de synchronisation de temps et support de stockage - Google Patents

Procédé et dispositif de synchronisation de temps et support de stockage Download PDF

Info

Publication number
WO2020087370A1
WO2020087370A1 PCT/CN2018/113119 CN2018113119W WO2020087370A1 WO 2020087370 A1 WO2020087370 A1 WO 2020087370A1 CN 2018113119 W CN2018113119 W CN 2018113119W WO 2020087370 A1 WO2020087370 A1 WO 2020087370A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless device
time
signal
synchronization
synchronization request
Prior art date
Application number
PCT/CN2018/113119
Other languages
English (en)
Chinese (zh)
Inventor
王春龙
周永林
杨柯
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201880002135.8A priority Critical patent/CN109565772A/zh
Priority to PCT/CN2018/113119 priority patent/WO2020087370A1/fr
Publication of WO2020087370A1 publication Critical patent/WO2020087370A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • 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/0638Clock or time synchronisation among nodes; Internode synchronisation

Definitions

  • the embodiments of the present application relate to communication technologies, and in particular, to a time synchronization method, device, and storage medium.
  • time synchronization can be performed by means of bus broadcasting. According to network deployment, the synchronization accuracy varies from 1 ms to 100 ms.
  • Embodiments of the present application provide a time synchronization method, device, and storage medium to accurately achieve time synchronization between devices.
  • an embodiment of the present application provides a time synchronization method, including:
  • the first wireless device sends a synchronization request signal to the second wireless device
  • the first wireless device receives an acknowledgement ACK signal sent by the second wireless device
  • the first wireless device determines the transmission time according to the first time when the synchronization request signal is sent and the time when the ACK signal is received;
  • the first wireless device receives a synchronization response signal sent by the second wireless device; the synchronization response signal includes: information at a second time; the second time is when the second wireless device receives the synchronization request Signal time
  • the first wireless device adjusts the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • an embodiment of the present application may also provide a time synchronization method, including:
  • the second wireless device receives the synchronization request signal sent by the first wireless device
  • the second wireless device When receiving the synchronization request signal, the second wireless device sends an acknowledgement ACK signal to the first wireless device; the ACK signal is used to cause the first wireless device to send the synchronization request signal according to the first A time, and the time when the ACK signal is received, determine the transmission time;
  • the second wireless device sends a synchronization response signal to the first wireless device, the synchronization response signal includes: information at a second time; the second time is when the second wireless device receives the synchronization request signal The second time is used to allow the first wireless device to adjust the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • an embodiment of the present application may further provide a wireless device.
  • the wireless device is a first wireless device, and the wireless device includes:
  • a sending module configured to send a synchronization request signal to the second wireless device
  • a first receiving module configured to receive an acknowledgement ACK signal sent by the second wireless device
  • a determining module configured to determine the transmission time according to the first time when the synchronization request signal is sent and the time when the ACK signal is received;
  • a second receiving module configured to receive a synchronization response signal sent by the second wireless device; the synchronization response signal includes: information at a second time; the second time is when the second wireless device receives the synchronization Request signal time;
  • the adjustment module is configured to adjust the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • an embodiment of the present application may further provide a wireless device.
  • the wireless device is a second wireless device, including:
  • a receiving module configured to receive a synchronization request signal sent by the first wireless device
  • a first sending module configured to send an acknowledgement ACK signal to the first wireless device when receiving the synchronization request signal; the ACK signal is used to enable the first wireless device to send the synchronization request signal according to the The first time, and the time when the ACK signal is received, determines the transmission time;
  • a second sending module configured to send a synchronization response signal to the first wireless device, the synchronization response signal includes: information at a second time; the second time is when the second wireless device receives the synchronization request The time of the signal; the second time is used to allow the first wireless device to adjust the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • an embodiment of the present application may further provide a wireless device.
  • the wireless device includes: a memory and a processor; the memory is coupled to the processor;
  • the memory is used to store program instructions
  • the processor is configured to call program instructions stored in the memory, so that the wireless device executes the time synchronization method described in the first aspect.
  • an embodiment of the present application may further provide a wireless device.
  • the wireless device includes: a memory and a processor; the memory is coupled to the processor;
  • the memory is used to store program instructions
  • the processor is configured to call program instructions stored in the memory, so that the wireless device executes the time synchronization method described in the second aspect.
  • a computer-readable storage medium includes: a computer program stored thereon, wherein the computer program is executed by a processor to implement the time synchronization method described in the first aspect.
  • An eighth aspect is a computer-readable storage medium, comprising: a computer program stored thereon, wherein the computer program is executed by a processor to implement the time synchronization method described in the second aspect above.
  • the time synchronization method, device, and storage medium may send a synchronization request signal to a second wireless device through a first wireless device, and receive an ACK signal sent by the second wireless device, and send the synchronization request signal
  • the method can realize the time synchronization between the first wireless device and the second wireless device by adjusting the system time of the first wireless device, so that the system time between other wireless devices connected to the second wireless device is also synchronized, thereby Accurately synchronize time between wireless devices.
  • FIG. 1 is a schematic diagram of a network topology structure to which a time synchronization method according to an embodiment of the present application is applicable;
  • FIG. 2 is a flowchart 1 of a time synchronization method provided by an embodiment of the present application.
  • FIG. 3 is a time relationship diagram between a first wireless device and a second wireless device provided by an embodiment of this application;
  • FIG. 4 is a flowchart 2 of a time synchronization method provided by an embodiment of the present application.
  • FIG. 5 is a timing diagram of a radio frequency signal in a time synchronization method for a classic Bluetooth system provided by an embodiment of this application;
  • FIG. 6 is a timing diagram of synchronizing radio frequency signals in a time synchronization method for a BLE system provided by an embodiment of the present application
  • FIG. 7 is a schematic structural diagram 1 of a wireless device according to an embodiment of the present application.
  • FIG. 8 is a second schematic structural diagram of a wireless device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram 3 of a wireless device according to an embodiment of the present application.
  • FIG. 10 is a fourth structural diagram of a wireless device according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a network topology structure to which a time synchronization method according to an embodiment of the present application is applicable.
  • at least one client device 12 can be connected to the server device 11.
  • the server device 11 may also be called a master device, and the client device 12 may also be called a slave device.
  • the server device 11 and each client device 12 are wireless devices.
  • the network topology applicable to the solution involved in this application can be applied to the field of data collection based on wireless technology, and can also be applied to the field of non-data collection.
  • the server device 11 may be a mobile phone, a tablet computer, a data collection device, etc.
  • the client device 12 may be a data sensor.
  • the server device 11 may be a mobile phone, a tablet computer, etc.
  • the client device 12 may be a headset, wrist watch, bracelet, or other smart wearable device.
  • the wireless technology used between the server device 11 and the client device 12 may be, for example, Wireless-Fidelity (WiFi), Infrared Data Association (IrDA), Bluetooth, Bluetooth Low Energy (Bluetooth Low Energy, referred to as BLE), Zigbee and other types of wireless transmission technology.
  • WiFi Wireless-Fidelity
  • IrDA Infrared Data Association
  • BLE Bluetooth Low Energy
  • Zigbee Zigbee
  • both the server device 11 and the client device 12 may be Bluetooth devices.
  • the server device 11 When the server device 11 is connected to multiple client devices 12 at the same time, since each wireless device has its own clock, different wireless devices, such as the server device 11 and each client device 12 or different clients There may be time out-of-sync between devices 12. Unsynchronized time may cause data errors transmitted between each other. Therefore, the embodiments of the present application provide the following methods to achieve time synchronization between wireless devices and avoid data errors.
  • FIG. 2 is a flowchart 1 of a time synchronization method provided by an embodiment of the present application.
  • the time synchronization method can be implemented interactively by the first wireless device and the second wireless device.
  • the first wireless device may be, for example, any client device 12 shown in FIG. 1 above, and the second wireless device may be, for example, the server device 11 shown in FIG. 1.
  • the method may include:
  • the first wireless device sends a synchronization request (sync_request) signal to the second wireless device.
  • the first wireless device may use a preset wireless technology to send a synchronization request signal to the second wireless device.
  • the preset wireless technology may be, for example, Bluetooth technology
  • the first wireless device and the second wireless device may be Bluetooth devices.
  • a Bluetooth device refers to a device that supports Bluetooth technology, not just a device that supports Bluetooth technology. That is to say, the Bluetooth device can also support other devices based on Bluetooth technology. The transmission technology is not repeated here.
  • the first wireless device may send a synchronization request signal to the second wireless device when establishing a wireless connection with the second wireless device. That is to say, before the first wireless device sends a synchronization request signal to the second wireless device in S201, the method may further include:
  • the first wireless device establishes a wireless connection with the second wireless device.
  • the first wireless device may initiate a request to establish a wireless connection with the second wireless device, or the second wireless device may initiate a request to establish a wireless connection with the first wireless device.
  • the first wireless device When sending the synchronization request to the second wireless device, the first wireless device records the first time such as T1 when the synchronization request signal is sent.
  • the first time may be the local time when the first wireless device sends the synchronization request signal.
  • the second wireless device receives the synchronization request signal sent by the first wireless device.
  • the second wireless device sends an acknowledgement (ACKnowledgement, ACK for short) signal to the first wireless device.
  • ACKnowledgement acknowledgement
  • the second wireless device sends the ACK signal to the first wireless device to indicate that it received the synchronization request signal.
  • the second wireless device sends the ACK signal to the first wireless device.
  • the first wireless device receives the ACK signal sent by the second wireless device.
  • the first wireless device After sending the synchronization request signal, the first wireless device monitors the signal sent by the second wireless device, and when the ACK signal is received, the time when the ACK signal is received can be determined.
  • the first wireless device may determine the transmission time according to the first time when the synchronization request signal is sent and the time when the ACK signal is received.
  • the transmission time such as t1
  • t1 may be the signal transmission time between the first wireless device and the second wireless device.
  • the second wireless device sends a synchronization response (sync_response) signal to the first wireless device, where the synchronization response signal includes: second time information.
  • the second wireless device When the second wireless device receives the synchronization request signal, it can also determine the second time when the synchronization request signal is received, such as T2, and carry the information of the second time in the synchronization response signal and send it to the first One wireless device.
  • the second time may be the local time when the second wireless device receives the synchronization request signal.
  • the first wireless device receives the synchronization response signal sent by the second wireless device.
  • the information at the second time may be indication information at the second time.
  • the first wireless device adjusts the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • the first wireless device may adjust the system time of the first wireless device according to the first time, the transmission time, and the second time, so that the system time of the first wireless device is synchronized with the system time of the second wireless device .
  • the system time synchronization may include: the system time is the same, or the deviation of the system time is within a preset range.
  • the first wireless device may determine the clock deviation of the first wireless device and the second wireless device according to the first time, the transmission time, and the second time, such as sync_offset, and then adjust the first wireless device according to the clock deviation
  • the system time of the device For example, the first wireless device may use a preset formula according to the first time, the transmission time, and the second time to obtain the clock deviation.
  • FIG. 3 is a time relationship diagram between the first wireless device and the second wireless device according to an embodiment of the present application.
  • the first wireless device may first establish a wireless connection such as a Bluetooth connection with the second wireless device, and send a synchronization request signal to the second wireless device.
  • the time for the first wireless device to send the synchronization request signal may be T1.
  • the second wireless device receives the synchronization request signal sent by the first wireless device, and the second wireless device receives the second synchronization request signal may be T2.
  • the second wireless device sends an ACK signal to the first wireless device to indicate that it receives the synchronization request signal.
  • the first wireless device also receives the ACK signal sent by the second wireless device, and based on the time when the ACK signal is received and the time T1 when the synchronization request signal is sent, for example, the time when the ACK signal is received is subtracted from The time T1 of the synchronization request signal obtains the transmission time t1 of the first wireless device.
  • the second wireless device also sends the synchronization response signal to the first wireless device, and packages the information of T2 in the synchronization response message.
  • the first wireless device may obtain sync_offset based on the T1, T2, and t1, and then adjust the system time of the first wireless device according to sync_offset.
  • the first wireless device may also adjust the system time of the first wireless device in other ways according to the first time, the transmission time, and the second time.
  • the clock deviation can be determined without first determining, but directly adjusting based on any one of the first time, the transmission time, and the second time, and then adjusting according to the first time, the transmission time, and The other time parameters in the second time are adjusted again, which will not be repeated here.
  • the time synchronization method provided by the embodiment of the present application may send a synchronization request signal to a second wireless device through the first wireless device, and receive an ACK signal sent by the second wireless device, and according to the first time when the synchronization request signal is sent, And the time when the ACK signal is received, the transmission time is determined, and the synchronization response signal sent by the second wireless device is also received.
  • the synchronization response signal includes: the second time at the second time when the second wireless device receives the synchronization request signal Time information, so that the time of the first wireless device can be adjusted according to the first time, the transmission time, and the second time.
  • the method can realize the time synchronization between the first wireless device and the second wireless device by adjusting the system time of the first wireless device, so that the system time between other wireless devices connected to the second wireless device is also synchronized, thereby Accurately synchronize time between wireless devices.
  • the first wireless device may be a headset
  • the second wireless device may be a mobile phone or a tablet computer
  • the first wireless device may also be another headset connected to the second wireless device.
  • the system time of the one headset and the mobile phone or tablet can be synchronized. Since the other headset can also execute the time synchronization method, the system time between the two headsets can be achieved Synchronization prevents the playback of the two left and right headphones from being synchronized and improves the user experience.
  • the preset timer can be a software timer or a hardware timer. If it is a hardware timer, it can be a hardware timer with an input clock greater than 10MHz to ensure clock accuracy.
  • the cyclic timeout count of the preset timer refers to counting when the preset timer times out, such as updating the count value, and at the same time, triggering the preset timer to restart timing and timing out at the preset timer And count again.
  • the hardware timer may be, for example, a timer that generates a timeout interrupt for 1 ms, that is, the duration of the hardware timer may be, for example, 1 ms, and when the hardware timing duration exceeds 1 ms, an interrupt is generated to update the count value.
  • the first wireless device is used as an example for description as follows.
  • the first wireless device may have a preset timer, such as a hardware timer, to generate the system time.
  • the first wireless device may perform a cycle time-out count on the preset timer, and obtain the system time of the first wireless device according to the count value and the preset count deviation.
  • the preset count deviation may be, for example, offset, which may be an integer.
  • adjusting the system time of the first wireless device according to the first time, the transmission time, and the second time in S208 in the foregoing S208 may include:
  • the first wireless device adjusts the count deviation according to the clock deviation to adjust the system time of the first wireless device.
  • the system time of the first wireless device is counted by the first wireless device in a cyclic time-out for the preset timer and based on the count value and the preset count deviation, adjusting the count deviation
  • the system time of the first wireless device can be adjusted.
  • the clock deviation can be an integer or a floating point number.
  • any one of the first time, the second time, and the transmission time is a floating-point number. This clock deviation can be made a floating point number.
  • the first wireless device may adjust the count deviation according to the integer part of the clock deviation.
  • the first wireless device may also adjust the duration of the preset timer according to the fractional part of the clock deviation to adjust the system time of the first wireless device.
  • the first wireless device may also adjust the duration of the preset timer according to the fractional part of the clock deviation. Since the system time of the first wireless device is counted by the first wireless device in a cycle time-out for the preset timer, and is obtained according to the count value and the preset count deviation, adjustment of the count deviation can be achieved The adjustment of the system time of the first wireless device, the adjustment of the count deviation and the duration of the preset timer can also achieve the adjustment of the system time of the first wireless device.
  • the duration of the preset timer can be adjusted according to the fractional part of the clock deviation, so that the duration of the preset timer is the same as the duration of the preset timer of the second wireless device or the difference is within a preset range In this way, the timeout count of the preset timer of the first wireless device and the preset timer of the second wireless device are synchronized.
  • the count deviation can be adjusted according to the integer part of the clock deviation, and the duration of the preset timer can be adjusted according to the fractional part of the clock deviation, thereby achieving accurate adjustment of the system time of the first wireless device to ensure To synchronize the system time of the first wireless device and the second wireless device.
  • FIG. 4 is a flowchart 2 of a time synchronization method provided by an embodiment of the present application. As shown in FIG. 4, the method may further include:
  • the second wireless device sends a radio frequency signal to the first wireless device.
  • the radio frequency signal may be a radio frequency signal sent at any time after the second wireless device establishes a wireless connection with the first wireless device.
  • the radio frequency signal may be packetized and transmitted at a preset time interval, that is, the second wireless device may divide the radio frequency signal into multiple time intervals for transmission, and each time interval transmits a corresponding data packet interface.
  • the start time of the preset time in the multiple time intervals used to transmit the radio frequency signal is fixed, and the duration of each time interval may be fixed and unchanged, that is, the same.
  • the first wireless device and the second wireless device may determine the start time of the preset time in the multiple time intervals and the duration of each time interval.
  • the radio frequency signal may be a radio frequency signal of a Bluetooth air interface.
  • Each of the above time intervals may also be referred to as a time slot (slot), which may correspond to an interval of a Bluetooth Low Energy (BLE) system. That is, each time interval may include at least one BLE system interval.
  • slot may correspond to an interval of a Bluetooth Low Energy (BLE) system. That is, each time interval may include at least one BLE system interval.
  • BLE Bluetooth Low Energy
  • FIG. 5 is a timing diagram of a radio frequency signal in a time synchronization method for a classic Bluetooth system provided by an embodiment of the present application.
  • the second wireless device may send a packet of the radio frequency signal in a time slot (TX slot) n, while the first wireless device receives a packet of the radio frequency signal and sends the radio frequency in a time slot (RX slot) n + 1 Another packet of the signal, at the same time the first wireless device receives another packet of the radio frequency signal, and sends another packet of the radio frequency signal in a time slot (TX slot) n + 2, and at the same time the first wireless device receives the Another bag.
  • the second wireless device sends the radio frequency signal to the first wireless device in multiple time slots.
  • the first wireless device receives the radio frequency signal in the multiple time slots, thereby completing the transmission of the radio frequency signal.
  • each time slot is a preset fixed duration, such as 625us.
  • the first wireless device receives the radio frequency signal sent by the second wireless device.
  • the first wireless device obtains a synchronization signal according to the radio frequency signal.
  • the first wireless device may convert the radio frequency signal into a digital signal through an analog-to-digital converter, and modulate and demodulate the digital signal to obtain synchronization included in the radio frequency signal signal. Therefore, the radio frequency signal may also be referred to as a synchronous radio frequency signal.
  • FIG. 6 is a timing diagram of synchronizing radio frequency signals in a time synchronization method for a BLE system provided by an embodiment of the present application.
  • the second wireless device may send a packet of the synchronous radio frequency signal at the starting position of Interval n, and at the same time the first wireless device receives a packet of the synchronous radio frequency signal; sending at the starting position of Interval n + 1 Another packet of the synchronous radio frequency signal, and at the same time the first wireless device receives another packet of the synchronous radio frequency signal; another packet of the synchronous radio frequency signal is sent at the starting position of Interval n + 2, and at the same time Receive another packet of the synchronous radio frequency signal.
  • the second wireless device sends the synchronous radio frequency signal to the first wireless device at the starting positions of multiple intervals, and the first wireless device receives the synchronous radio frequency signal within multiple intervals, thereby completing the transmission of the synchronous radio frequency signal.
  • the duration of each interval is a non-fixed duration, and the duration of each interval may be a duration determined by negotiation between the first wireless device and the second wireless device.
  • the first wireless device obtains an error signal according to the obtained synchronization signal and the preset synchronization signal.
  • the error signal may include: a time domain error signal and / or a frequency domain error signal.
  • the time domain error signal may also be called a timing synchronization error signal
  • the frequency domain error signal may also be called a carrier synchronization error signal.
  • the first wireless device may obtain the time domain error signal according to the time domain sub-signal of the synchronization signal and the preset time domain sub-signal of the synchronization signal, and according to the frequency domain sub-signal of the synchronization signal and the preset synchronization signal Frequency domain sub-signal to obtain the frequency domain error signal.
  • the first wireless device adjusts the system clock frequency according to the error signal.
  • the system clock frequency may be determined by the first wireless device according to the frequency multiplication factor of the phase-locked loop and the oscillation frequency of the crystal oscillator.
  • the crystal oscillator can also be called a crystal oscillator.
  • the first wireless device may adjust the frequency multiplication factor of the phase-locked loop according to the error signal to adjust the system clock frequency.
  • the first wireless device may adjust the oscillation frequency of the crystal oscillator according to the error signal to adjust the system clock frequency.
  • the first wireless device can adjust the load capacitance of the crystal oscillator according to the error signal to adjust the oscillation frequency of the crystal oscillator.
  • the first wireless device can adjust the system clock frequency according to the error signal, so that the system clock frequency of the first wireless device
  • the system clock frequencies of the two wireless devices are synchronized, that is, the same or the difference is within a preset range.
  • system clock frequency may also be determined by the first wireless device according to the frequency multiplication coefficient of the phase-locked loop, the oscillation frequency of the crystal oscillator, and other parameters, then the first wireless device may also determine The error signal adjusts the other parameters, which will not be repeated here.
  • the system clock frequency can also be adjusted according to the error signal, so that the system clock frequency of the first wireless device can be synchronized with the system clock frequency of the second wireless device, avoiding accumulation of the first wireless device with time
  • the unsynchronized system time of the second wireless device ensures the continuous synchronization of the system time of the first wireless device and the second wireless device.
  • the system clock frequency is also adjusted, so that the deviation of the system time between the first wireless device and the second wireless device can be, for example, within 1 us, and the synchronization accuracy of the system time is improved to meet the large Some demanding application scenarios.
  • An embodiment of the present application may further provide a wireless device, and the wireless device may serve as a first wireless device.
  • 7 is a schematic structural diagram 1 of a wireless device according to an embodiment of the present application.
  • the wireless device may perform the time synchronization method performed by any of the first wireless devices in FIG. 2 to FIG. 6 described above.
  • the wireless device 70 may include:
  • the sending module 71 is configured to send a synchronization request signal to the second wireless device.
  • the first receiving module 72 is configured to receive the ACK signal sent by the second wireless device.
  • the determining module 73 is configured to determine the transmission time according to the first time when the synchronization request signal is sent and the time when the ACK signal is received.
  • the second receiving module 74 is configured to receive a synchronization response signal sent by the second wireless device; the synchronization response signal includes: information of a second time; the second time is the time when the second wireless device receives the synchronization request signal .
  • the first adjustment module 75 is configured to adjust the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • the first adjustment module 75 is specifically configured to determine the clock deviation between the first wireless device and the second wireless device based on the first time, the transmission time, and the second time, and based on the clock deviation, Adjust the system time of the first wireless device.
  • the system time of the first wireless device is obtained by the first wireless device according to a preset timer cycle timeout value and a preset count deviation.
  • the first adjustment module 75 is specifically configured to adjust the count deviation according to the clock deviation to adjust the system time of the first wireless device.
  • the clock deviation is a floating point number.
  • the first adjustment module 75 is specifically configured to adjust the count deviation according to the integer part of the clock deviation.
  • the first adjustment module 75 is further configured to adjust the duration of the preset timer according to the fractional part of the clock deviation to adjust the system time of the first wireless device.
  • the preset timer is a hardware timer.
  • the timing frequency of the preset timer is obtained by the first wireless device according to the system clock frequency.
  • the wireless device 70 may further include:
  • the third receiving module is configured to receive the radio frequency signal sent by the second wireless device.
  • the second adjustment module is used to obtain a synchronization signal according to the radio frequency signal, obtain an error signal according to the obtained synchronization signal and the preset synchronization signal, and adjust the system clock frequency according to the error signal.
  • the system clock frequency is obtained by the first wireless device according to the frequency multiplication factor of the phase locked loop and the oscillation frequency of the crystal oscillator.
  • the second adjustment module is specifically used to adjust the frequency multiplication factor of the phase locked loop according to the error signal to adjust the system clock frequency.
  • the system clock frequency is obtained by the first wireless device according to the frequency multiplication factor of the phase locked loop and the oscillation frequency of the crystal oscillator.
  • the second adjustment module is specifically used to adjust the oscillation frequency of the crystal oscillator according to the error signal to adjust the system clock frequency.
  • the error signal includes: a time-domain error signal and / or a frequency-domain error signal.
  • the first wireless device and the second wireless device are Bluetooth devices.
  • FIG. 8 is a second schematic structural diagram of a wireless device according to an embodiment of the present application.
  • the wireless device 80 can serve as a first wireless device, which can include: a memory 81 and a processor 82.
  • the memory 81 and the processor 82 are coupled.
  • the memory 81 is used to store program instructions.
  • the processor 82 is configured to call the program instructions stored in the memory so that the wireless device 80 executes the time synchronization method performed by the first wireless device shown in any of the embodiments corresponding to FIG. 2 to FIG. 6 described above.
  • An embodiment of the present application may also provide a computer-readable storage medium on which a computer program is stored, which when executed by the processor 82 implements the execution shown in any of the embodiments corresponding to FIG. A time synchronization method performed by the first wireless device.
  • the device and the computer-readable storage medium provided in the embodiments of the present application can execute the time synchronization method performed by the first wireless device provided in any of the foregoing embodiments.
  • An embodiment of the present application may further provide a wireless device, and the wireless device may serve as a second wireless device.
  • 9 is a third structural diagram of a wireless device according to an embodiment of the present application.
  • the wireless device may perform the time synchronization method performed by the wireless device described in any one of the foregoing FIGS. 2-6.
  • the wireless device 90 may include:
  • the receiving module 91 is configured to receive a synchronization request signal sent by the first wireless device.
  • the first sending module 92 is configured to send an ACK signal to the first wireless device when receiving the synchronization request signal; the ACK signal is used to enable the first wireless device to send the synchronization request signal according to the first time, and When the ACK signal is received, the transmission time is determined.
  • the second sending module 93 is configured to send a synchronization response signal to the first wireless device, the synchronization response signal includes: information of a second time; the second time is the time when the second wireless device receives the synchronization request signal; The second time is used to enable the first wireless device to adjust the system time of the first wireless device according to the first time, the transmission time, and the second time.
  • the first wireless device and the second wireless device are Bluetooth devices.
  • this application may also provide a wireless device.
  • 10 is a fourth structural diagram of a wireless device according to an embodiment of the present application.
  • the wireless device 100 may serve as a second wireless device, which may include: a memory 101 and a processor 102.
  • the memory 101 and the processor 102 are coupled.
  • the memory 101 is used to store program instructions.
  • the processor 102 is configured to call the program instructions stored in the memory, so that the wireless device 100 executes the time synchronization method performed by the second wireless device shown in any of the embodiments corresponding to FIG. 2 to FIG. 6 described above.
  • An embodiment of the present application may also provide a computer-readable storage medium on which a computer program is stored, which when executed by the processor 102 implements the execution shown in any of the embodiments corresponding to FIG. 2 to FIG. 6 above A time synchronization method performed by the second wireless device.
  • the device and the computer-readable storage medium provided by the embodiments of the present application can execute the time synchronization method performed by the second wireless device provided by any of the foregoing embodiments.
  • the specific implementation process and beneficial effects refer to the above, which will not be repeated here Repeat.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

L'invention concerne un procédé et un dispositif de synchronisation de temps, ainsi qu'un support de stockage. Le procédé comprend les étapes consistant à : envoyer un signal de demande de synchronisation et recevoir un signal d'accusé de réception ; déterminer un temps de transmission en fonction d'un premier temps auquel le signal de demande de synchronisation est envoyé et d'un temps auquel le signal d'accusé de réception est reçu ; recevoir un signal de réponse de synchronisation contenant des informations relatives à un second temps ; et ajuster un temps de système d'un premier dispositif sans fil en fonction du premier temps, du temps de transmission et du second temps. L'invention peut réaliser une synchronisation de temps précise entre des dispositifs sans fil.
PCT/CN2018/113119 2018-10-31 2018-10-31 Procédé et dispositif de synchronisation de temps et support de stockage WO2020087370A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880002135.8A CN109565772A (zh) 2018-10-31 2018-10-31 时间同步方法、设备及存储介质
PCT/CN2018/113119 WO2020087370A1 (fr) 2018-10-31 2018-10-31 Procédé et dispositif de synchronisation de temps et support de stockage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/113119 WO2020087370A1 (fr) 2018-10-31 2018-10-31 Procédé et dispositif de synchronisation de temps et support de stockage

Publications (1)

Publication Number Publication Date
WO2020087370A1 true WO2020087370A1 (fr) 2020-05-07

Family

ID=65872667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113119 WO2020087370A1 (fr) 2018-10-31 2018-10-31 Procédé et dispositif de synchronisation de temps et support de stockage

Country Status (2)

Country Link
CN (1) CN109565772A (fr)
WO (1) WO2020087370A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111542038A (zh) * 2020-05-14 2020-08-14 浙江强脑科技有限公司 具有时间同步功能的蓝牙组网系统
CN111817811B (zh) * 2020-06-22 2022-10-11 芯原微电子(上海)股份有限公司 Tws耳机音频同步播放方法及系统、tws耳机
WO2022094835A1 (fr) 2020-11-05 2022-05-12 深圳市汇顶科技股份有限公司 Procédé de lecture à synchronisation audio, appareil, dispositif et support d'enregistrement
CN112039623B (zh) * 2020-11-05 2021-05-18 深圳市汇顶科技股份有限公司 音频同步播放方法、装置、设备及存储介质
CN112787742B (zh) * 2021-03-16 2022-11-22 芯原微电子(成都)有限公司 时钟同步的方法及装置、无线耳机、可读存储介质
CN116560291B (zh) * 2023-07-06 2023-09-29 深圳艾为电气技术有限公司 双mcu架构高压控制器及其速度检测误差调整方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202812A (zh) * 2014-08-14 2014-12-10 杭州绿宇通信技术有限公司 一种适用于精确定位系统的高精度时间同步的方法
CN104301868A (zh) * 2014-10-10 2015-01-21 西北工业大学 基于帧往返和到达时间测距技术的高精度室内定位方法
CN105071914A (zh) * 2015-07-27 2015-11-18 深圳思凯微电子有限公司 基于数字调频广播的时钟同步方法和调频广播接收机
CN105915308A (zh) * 2016-07-08 2016-08-31 腾讯科技(深圳)有限公司 一种时间同步方法、装置及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203117837U (zh) * 2013-03-20 2013-08-07 珠海市杰理科技有限公司 时钟校准系统
CN104244399B (zh) * 2014-09-15 2018-04-17 歌尔股份有限公司 无线设备间时间同步的方法、无线设备和无线通信系统
CN107046709A (zh) * 2017-03-27 2017-08-15 成都凯力科技有限公司 无线信号同步方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202812A (zh) * 2014-08-14 2014-12-10 杭州绿宇通信技术有限公司 一种适用于精确定位系统的高精度时间同步的方法
CN104301868A (zh) * 2014-10-10 2015-01-21 西北工业大学 基于帧往返和到达时间测距技术的高精度室内定位方法
CN105071914A (zh) * 2015-07-27 2015-11-18 深圳思凯微电子有限公司 基于数字调频广播的时钟同步方法和调频广播接收机
CN105915308A (zh) * 2016-07-08 2016-08-31 腾讯科技(深圳)有限公司 一种时间同步方法、装置及系统

Also Published As

Publication number Publication date
CN109565772A (zh) 2019-04-02

Similar Documents

Publication Publication Date Title
WO2020087370A1 (fr) Procédé et dispositif de synchronisation de temps et support de stockage
US11375312B2 (en) Method, device, loudspeaker equipment and wireless headset for playing audio synchronously
US11082141B2 (en) Wireless apparatus and wireless apparatus processing method
US10165534B2 (en) Master synchronisation
US8689035B2 (en) Communication system, communication interface, and synchronization method
JP5321923B2 (ja) クロック同期システム、ノード、クロック同期方法及びプログラム
CN108462991B (zh) 处理器时钟同步方法、设备及系统
US9167545B2 (en) Receiver, method of calculating time difference, and program
CN112771941B (zh) 数据同步方法、装置、设备、系统及存储介质
JP2018505576A (ja) 複数のシンクデバイスへのワイヤレスストリーミング伝送のタイミングを同期する技法
WO2012055360A1 (fr) Procédé de synchronisation temporelle et dispositif et système associés
US11895607B2 (en) Clock synchronization using wireless side channel
WO2017054554A1 (fr) Procédé de synchronisation d'horloge, dispositif, appareil de communication
WO2018082665A1 (fr) Procédé de synchronisation de fréquence et horloge esclave
CN104836630A (zh) Ieee1588时钟同步系统及其实现方法
US20130215910A1 (en) Transmission apparatus, transmission method, program, and communication system
US20100179673A1 (en) Multitrack recorder and synchronous recording method using a plurality of multitrack recorders
US20230048782A1 (en) Synchronization device and synchronization method
JPS6097749A (ja) 多元データ通信装置
CN106656397A (zh) 时钟同步方法及装置
WO2017113404A1 (fr) Nœud de réseau, procédé de transmission par paquets et réseau
WO2016065642A1 (fr) Dispositif et procédé de synchronisation
JP5656306B1 (ja) 同期確立方法
JP2018006913A (ja) 情報通信システム、情報通信装置
KR101593822B1 (ko) 통신 서비스 제공 장치 및 그 제어방법과, 그 제어방법을 실행하기 위한 프로그램을 기록한 기록 매체와, 하드웨어와 결합되어 그 제어방법을 실행시키기 위하여 매체에 저장된 애플리케이션

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18938740

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18938740

Country of ref document: EP

Kind code of ref document: A1