Time synchronization method and device and terminal equipment

By introducing a phase modulation processing module into the time synchronization device, the problem of insufficient time synchronization accuracy in the existing technology is solved, the time deviation with the second time synchronization device is compensated, and the time synchronization accuracy is achieved at the picosecond level, enhancing improve the stability of data transmission.

CN118740357APending Publication Date: 2024-10-01SHENZHEN PANGO MICROSYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929478.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In real-time Ethernet systems, existing time synchronization methods cannot achieve picosecond-level time accuracy, resulting in communication failure and data loss.

Method used

A time synchronization device is designed, including a time synchronization module and a second pulse output module. It performs time synchronization by receiving the time from the second time synchronization device, performs phase modulation processing on it, and generates compensation time to reduce the time deviation to achieve Picosecond-level time synchronization accuracy.

Benefits of technology

By performing phase modulation processing on the synchronization time, the time deviation between the first time synchronization device and the second time synchronization device can be significantly reduced, and the time synchronization accuracy can be improved to the picosecond level, thereby enhancing the accuracy and stability of data transmission. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740357A_ABST
    Figure CN118740357A_ABST
Patent Text Reader

Abstract

The invention discloses a time synchronization method and device and terminal equipment, and the time synchronization device is a first time synchronization device and comprises a time synchronization module and a second pulse output module. The time synchronization module is connected with the second pulse output module; the time synchronization module receives the first time from the second time synchronization device, performs time synchronization according to the first time to obtain second time, and sends the second time to the second pulse output module; and the second pulse output module performs phase modulation processing on the second time to obtain third time, and sends a second pulse signal to a third time synchronization device according to the third time. In the embodiment of the invention, the synchronous time is subjected to phase modulation processing, so that the sending time of the pulse per second signal output by the pulse per second output module can be changed, the purpose of compensating the time deviation is achieved, the time deviation between the first time synchronization device and the second time synchronization device can be reduced, and the time deviation can reach the picosecond level; therefore, the time synchronization precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic circuit technology, and in particular to a time synchronization method, device and terminal equipment. Background Art

[0002] In real-time Ethernet systems, time synchronization accuracy affects the accuracy and stability of data transmission. High-precision time synchronization provides important guarantees for high-speed communication. For example, if the time between two terminal devices is not synchronized, communication failure and data loss may occur.

[0003] High-precision clock synchronization mostly uses a clock synchronization solution based on the Precision Time Protocol (PTP). Pulse Per Second (PPS) signals and time information can be transmitted between terminal devices through the RS422 synchronization interface, with a time accuracy of tens of nanoseconds and no cumulative error. However, time synchronization using PPS signals cannot reach the picosecond level, resulting in low time accuracy. Summary of the invention

[0004] The embodiments of the present application disclose a time synchronization method, apparatus and terminal device for improving time accuracy.

[0005] In a first aspect, an embodiment of the present application discloses a time synchronization device, which is a first time synchronization device, including a time synchronization module and a second pulse output module;

[0006] The time synchronization module is connected to the second pulse output module;

[0007] The time synchronization module is used to receive a first time from a second time synchronization device, perform time synchronization according to the first time to obtain a second time, and send the second time to the second pulse output module;

[0008] The second pulse output module is used to perform phase modulation processing on the second time to obtain a third time, and send a second pulse signal to a third time synchronization device according to the third time.

[0009] As a possible implementation manner, the pulse per second output module is specifically configured to determine a compensation time according to the second time, and perform phase modulation processing on the second time according to the compensation time to obtain the third time.

[0010] As a possible implementation manner, the second pulse output module is specifically used to determine the compensation time according to the second time and a fourth time, and the fourth time is the time of the first time synchronization device.

[0011] As a possible implementation, the time synchronization device further includes an edge output module, and the edge output module is connected to the second pulse output module;

[0012] The second pulse output module is specifically used to send the second pulse signal to the edge output module according to the third time;

[0013] The edge output module is used to send the pulse per second signal to the third time synchronization device.

[0014] As a possible implementation, the time synchronization device further includes a phase-locked loop module, and a first end of the phase-locked loop module is connected to the second pulse output module;

[0015] The phase-locked loop module is used to provide a first clock signal for the second pulse output module;

[0016] The second pulse output module is specifically used to perform phase modulation processing on the second time according to the first clock signal.

[0017] As a possible implementation, the second end of the phase-locked loop module is connected to the time synchronization module and the second pulse output module respectively;

[0018] The phase-locked loop module is further used to provide a second clock signal for the time synchronization module and the second pulse output module;

[0019] The time synchronization module is specifically configured to send the second time to the second pulse output module according to the second clock signal.

[0020] As a possible implementation, the time synchronization device further includes a message processing module;

[0021] The message processing module is connected to the time synchronization module;

[0022] The message processing module is used to receive a target message from the second time synchronization device, extract the time from the target message to obtain the first time, and send the first time to the time synchronization module;

[0023] The time synchronization module is specifically configured to receive the first time from the message processing module.

[0024] In a second aspect, an embodiment of the present application discloses a time synchronization method, which is applied to the time synchronization device described in the first aspect, and the method includes:

[0025] receiving a first time from a second time synchronization device;

[0026] Performing time synchronization according to the first time to obtain a second time;

[0027] performing phase modulation processing on the second time to obtain a third time;

[0028] A pulse-per-second signal is sent to a third time synchronization device according to the third time.

[0029] As a possible implementation manner, performing phase adjustment processing on the second time to obtain the third time includes:

[0030] determining a compensation time according to the second time;

[0031] The second time is phase-adjusted according to the compensation time to obtain a third time.

[0032] As a possible implementation manner, determining the compensation time according to the second time includes:

[0033] The compensation time is determined according to the second time and a fourth time, wherein the fourth time is the time of the first time synchronization device.

[0034] In a third aspect, an embodiment of the present application discloses a terminal device, including the time synchronization device disclosed in the first aspect.

[0035] In the embodiment of the present application, the first time synchronization device includes a time synchronization module and a second pulse output module; the time synchronization module is connected to the second pulse output module; the time synchronization module receives the first time from the second time synchronization device, performs time synchronization according to the first time to obtain the second time, and sends the second time to the second pulse output module; the second pulse output module performs phase modulation processing on the second time to obtain the third time, and sends the second pulse signal to the third time synchronization device according to the third time. It can be seen that after the second pulse output module receives the time synchronized from the time synchronization module, it does not directly output the second pulse signal according to this time, but first performs phase modulation processing on this time, and then outputs the second pulse signal according to the time after the phase modulation processing. Since the synchronized time is phase-modulated, the sending time of the second pulse signal output by the second pulse output module can be changed to achieve the purpose of compensating for the time deviation, and the time deviation between the first time synchronization device and the second time synchronization device can be reduced. This time deviation can reach the picosecond level, thereby improving the time synchronization accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1 It is a structural schematic diagram of a time synchronization device disclosed in an embodiment of the present application;

[0038] Figure 2 It is a structural diagram of another time synchronization device disclosed in an embodiment of the present application;

[0039] Figure 3 It is a structural diagram of another time synchronization device disclosed in an embodiment of the present application;

[0040] Figure 4 It is a structural diagram of another time synchronization device disclosed in an embodiment of the present application;

[0041] Figure 5 It is a structural diagram of another time synchronization device disclosed in an embodiment of the present application;

[0042] Figure 6 It is a flowchart of a time synchronization method disclosed in an embodiment of the present application;

[0043] Figure 7 It is a structural diagram of a terminal device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0045] The embodiments of the present application disclose a time synchronization method, apparatus and terminal device for improving time accuracy, which are described in detail below.

[0046] In order to better understand the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below.

[0047] In real-time Ethernet systems, time synchronization accuracy affects the accuracy and stability of data transmission. High-precision time synchronization provides important guarantees for high-speed communication. For example, if the time between two terminal devices is not synchronized, communication failure and data loss may occur.

[0048] High-precision clock synchronization mostly uses a clock synchronization solution based on the PTP protocol. The PPS signal and time information can be transmitted between terminal devices through the RS422 synchronization interface, and the time accuracy can reach tens of nanoseconds without cumulative errors. However, the use of PPS signals for time synchronization cannot reach the picosecond level, resulting in low time accuracy.

[0049] At present, the first time synchronization device can send time to the second time synchronization device, and the time synchronization module of the second time synchronization device can perform time synchronization according to the time. Since the time of the second time synchronization device needs to compensate for link delay, etc., after the second time synchronization device performs time synchronization through the time synchronization module, there will still be a certain time deviation, resulting in low time accuracy.

[0050] In order to solve the above problems, the present application designs a time synchronization device, namely, a first time synchronization device, including a time synchronization module and a second pulse output module; the time synchronization module is connected to the second pulse output module; the time synchronization module receives the first time from the second time synchronization device, performs time synchronization according to the first time to obtain the second time, and sends the second time to the second pulse output module; the second pulse output module performs phase modulation processing on the second time to obtain the third time, and sends the second pulse signal to the third time synchronization device according to the third time. It can be seen that after the second pulse output module receives the time synchronized from the time synchronization module, it does not directly output the second pulse signal according to this time, but first performs phase modulation processing on this time, and then outputs the second pulse signal according to the time after the phase modulation processing. Since the phase modulation processing is performed on the synchronized time, the sending time of the second pulse signal output by the second pulse output module can be changed to achieve the purpose of compensating the time deviation, and the time deviation between the first time synchronization device and the second time synchronization device can be reduced. This time deviation can reach the picosecond level, thereby improving the time synchronization accuracy.

[0051] See also Figure 1 , Figure 1 Schematic diagram of the structure of a time synchronization device disclosed in an embodiment of the present application. Figure 1 As shown, the time synchronization device may include a time synchronization module and a second pulse output module. The time synchronization device is a first time synchronization device.

[0052] The time synchronization module is connected to the second pulse output module.

[0053] The time synchronization module can receive the first time from the second time synchronization device, and then can perform time synchronization according to the first time to obtain the second time, and then can send the second time to the second pulse output module.

[0054] The first time is the time of the second time synchronization device. The second time is the time after time synchronization is performed according to the first time.

[0055] It can be seen that in order to maintain time synchronization with the second time synchronization device, the first time synchronization device can perform time synchronization according to the first time through the time synchronization module.

[0056] After receiving the second time, the pulse-per-second output module may first perform phase modulation processing on the second time to obtain a third time, and then send a pulse-per-second signal to a third time synchronization device according to the third time.

[0057] Although the time synchronization module performs time synchronization according to the first time, there is still a time deviation between the second time and the first time, and this time deviation may be less than one clock cycle. In order to further reduce the time deviation between the first time synchronization device and the second time synchronization device, the second pulse output module can first perform phase modulation processing on the second time to obtain a third time, and then send a second pulse signal to the third time synchronization device according to the third time. It can be seen that the time deviation between the two time synchronization devices can be reduced by phase modulation.

[0058] exist Figure 1 In the described time synchronization device, after the pulse-per-second output module receives the time synchronized by the time synchronization module, it does not directly output the pulse-per-second signal according to the time, but first performs phase modulation processing on the time, and then outputs the pulse-per-second signal according to the time after the phase modulation processing. Since the phase modulation processing is performed on the synchronized time, the sending time of the pulse-per-second signal output by the pulse-per-second output module can be changed to achieve the purpose of compensating for the time deviation, and the time deviation between the first time synchronization device and the second time synchronization device can be reduced. This time deviation can reach the picosecond level, thereby improving the time synchronization accuracy.

[0059] In some embodiments, the pulse per second output module may first determine the compensation time according to the second time, and then perform phase modulation processing on the second time according to the compensation time to obtain the third time.

[0060] Before performing phase modulation, the pulse-per-second output module may first determine a compensation time according to the second time, and then perform phase modulation processing on the second time according to the compensation time.

[0061] It can be seen that when the second pulse output module performs phase modulation, it is not performed randomly or arbitrarily, but is performed according to the compensation time. The compensation time is determined based on the second time, which can improve the accuracy of the phase modulation and thus reduce the time deviation between the first time synchronization device and the second time synchronization device.

[0062] In some embodiments, the pulse per second output module may determine the compensation time according to the second time and a fourth time, where the fourth time is the time of the first time synchronization device.

[0063] The second pulse output module can determine the compensation time according to the time after time synchronization and the time of the first time synchronization device, which can improve the accuracy of compensation time determination, and further improve the accuracy of phase modulation, thereby improving the time synchronization accuracy.

[0064] In some embodiments, see Figure 2 , Figure 2 is a schematic diagram of the structure of another time synchronization device disclosed in an embodiment of the present application. Figure 2 The time synchronization device shown is composed of Figure 1 The time synchronization device shown is optimized. Figure 2 As shown, the time synchronization device may further include an edge output module, and the edge output module is connected to the second pulse output module.

[0065] The pulse-per-second output module can send a pulse-per-second signal to the edge output module according to the third time. After receiving the pulse-per-second signal, the edge output module can send the pulse-per-second signal to the third time synchronization device.

[0066] It can be seen that the pulse-per-second output module does not output the pulse-per-second signal directly to the third time synchronization device, but first outputs the pulse-per-second signal to the edge output module, and then the edge output module outputs it to the third time synchronization device, which can ensure that the pulse-per-second signal is emitted at the edge of the chip or device.

[0067] Since the pulse-per-second signal is a single-bit data, outputting the pulse-per-second signal to the edge output module (ie, the chip pin) can avoid the situation where the internal register is used to output the pulse-per-second signal and introduces additional delay.

[0068] In some embodiments, see Figure 3 , Figure 3 is a schematic diagram of the structure of another time synchronization device disclosed in the embodiment of the present application. Figure 3 The time synchronization device shown is composed of Figure 1 The time synchronization device shown is optimized. Figure 3 As shown, the time synchronization device may further include a phase-locked loop (PLL) module, and a first end of the phase-locked loop module is connected to the second pulse output module.

[0069] The phase-locked loop module can generate a clock signal, and then provide a first clock signal for the pulse-per-second output module. The first clock signal is a clock signal that supports phase modulation.

[0070] The pulse per second output module can perform phase modulation processing on the second time according to the first clock signal. Specifically, the pulse per second output module can perform phase modulation processing on the second time according to the first clock signal and the compensation time to obtain the third time.

[0071] It can be seen that the phase-locked loop module can provide a phase-modulated clock signal for the second pulse output module. The second pulse output module can perform phase modulation processing on the synchronized time according to the phase-modulated clock signal. Since the phase-locked loop module can provide a stable phase-modulated clock signal, the accuracy of phase modulation can be improved, thereby reducing the time deviation between the two time synchronization devices.

[0072] In some embodiments, Figure 3 As shown, the second end of the phase-locked loop module is connected to the time synchronization module and the second pulse output module respectively.

[0073] The phase-locked loop module can also provide a second clock signal for the time synchronization module and the pulse per second output module. The time synchronization module can send a second time to the pulse per second output module according to the second clock signal.

[0074] The second clock signal is a clock signal that does not support phase modulation.

[0075] The phase-locked loop module can also provide a working clock signal for the time synchronization module and the second pulse output module, which can ensure that the time synchronization module and the second pulse output module can work normally according to the second clock signal, so that the time synchronization module can send the second time to the second pulse output module.

[0076] In some embodiments, see Figure 4 , Figure 4 is a schematic diagram of the structure of another time synchronization device disclosed in the embodiment of the present application. Figure 4 The time synchronization device shown is composed of Figure 1 The time synchronization device shown is optimized. Figure 4 As shown, the time synchronization device may further include a message processing module.

[0077] The message processing module is connected to the time synchronization module.

[0078] The message processing module can receive the target message from the second time synchronization device, then extract the time from the target message to obtain the first time, and then send the first time to the time synchronization module, so that the time synchronization module can receive the first time from the message processing module.

[0079] It can be seen that the time transmitted between different time synchronization devices is transmitted in the form of messages, which can avoid time damage, theft, etc. during transmission, improve the accuracy and security of time transmission, and thus improve the accuracy of time synchronization.

[0080] See also Figure 5 , Figure 5 is a schematic diagram of the structure of another time synchronization device disclosed in the embodiment of the present application. Figure 5 The time synchronization device shown is composed of Figure 2 , Figure 3 and Figure 4 The time synchronization device shown is optimized. Figure 5 As shown, the time synchronization device may include a message processing module, a phase-locked loop module, a time synchronization module, a second pulse output module and an edge output module. The time synchronization device is a first time synchronization device.

[0081] The message processing module is connected to the first end of the time synchronization module, the first end of the phase-locked loop module is respectively connected to the first end of the second pulse output module and the first end of the edge output module, the second end of the phase-locked loop module is respectively connected to the second end of the time synchronization module and the second end of the second pulse output module, the third end of the time synchronization module is connected to the third end of the second pulse output module, and the fourth end of the second pulse output module is connected to the second end of the edge output module.

[0082] The working clocks of the message processing module and the phase-locked loop module are the system clock, that is, the message processing module and the phase-locked loop module work according to the system clock. The message processing module can receive the target message from the second time synchronization device according to the system clock. The phase-locked loop module can generate the first clock signal and the second clock signal according to the system clock.

[0083] Among them, the detailed description of the message processing module, the phase-locked loop module, the time synchronization module, the second pulse output module and the edge output module can refer to the above related description, which will not be repeated here.

[0084] The phase-locked loop module also provides the first clock signal for the edge output module, which can enable the second pulse signal to be sent out from the chip pin at a precise time.

[0085] It can be seen that by utilizing the high-precision (ps level) phase shift characteristics of the phase-locked loop module, the output clock phase is changed through the phase modulation clock signal (i.e., phase modulation function) of the phase-locked loop module to adjust the sending time of the second pulse signal, thereby achieving the purpose of compensating for the time deviation.

[0086] In addition, since the second pulse signal is a single-bit data, the second pulse signal is placed in the edge output module, and the edge output module is driven by the phase-modulated clock signal of the phase-locked loop module. The position of the edge output module is fixed, which can solve the problem of introducing additional delay when using the internal register to output the second pulse signal.

[0087] It should be understood that the above-mentioned time synchronization device can be applied to the 1588 system as well as other systems.

[0088] See also Figure 6 , Figure 6 is a flow chart of a time synchronization method disclosed in an embodiment of the present application. The time synchronization method can be applied to the above-mentioned time synchronization device. Figure 6 As shown, the time synchronization method may include the following steps.

[0089] 601. Receive a first time from a second time synchronization device.

[0090] 602. Perform time synchronization according to the first time to obtain a second time.

[0091] 603. Perform phase modulation processing on the second time to obtain a third time.

[0092] In some embodiments, the compensation time may be determined according to the second time first, and then the second time may be phase-adjusted according to the compensation time to obtain the third time.

[0093] In some embodiments, the compensation time may be determined according to the second time and a fourth time, where the fourth time is the time of the first time synchronization device.

[0094] 604. Send a second pulse signal to a third time synchronization device according to the third time.

[0095] The detailed description of steps 601 to 604 can be referred to the above related description, which will not be repeated here.

[0096] exist Figure 6 In the described time synchronization method, the time synchronization module can first perform time synchronization according to the time of other time synchronization devices, then perform phase modulation processing on the time after time synchronization, and then output a second pulse signal according to the time after phase modulation processing. Since the phase modulation processing is performed on the synchronized time, the sending time of the second pulse signal output by the second pulse output module can be changed to achieve the purpose of compensating for the time deviation, and the time deviation between the two time synchronization devices can be reduced. This time deviation can reach the picosecond level, thereby improving the time synchronization accuracy.

[0097] See also Figure 7 , Figure 7 Schematic diagram of the structure of a terminal device disclosed in the embodiment of the present application. Figure 7 As shown, the terminal device may include a time synchronization device.

[0098] The detailed description of the time synchronization device can refer to the above description, which will not be repeated here.

[0099] It should be understood that the connection in the present application can be understood as an electrical connection.

[0100] It should be understood that in different embodiments, the same or corresponding information may be referenced to each other.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A time synchronization device, characterized in that: The time synchronization device is a first time synchronization device, comprising a time synchronization module and a second pulse output module; The time synchronization module is connected to the second pulse output module; The time synchronization module is used to receive a first time from a second time synchronization device, perform time synchronization according to the first time to obtain a second time, and send the second time to the second pulse output module; The second pulse output module is used to perform phase modulation processing on the second time to obtain a third time, and send a second pulse signal to a third time synchronization device according to the third time.

2. The time synchronization device according to claim 1, characterized in that: The second pulse output module is specifically used to determine the compensation time according to the second time, and perform phase modulation processing on the second time according to the compensation time to obtain the third time.

3. The time synchronization device according to claim 2, characterized in that: The second pulse output module is specifically used to determine the compensation time according to the second time and a fourth time, and the fourth time is the time of the first time synchronization device.

4. The time synchronization device according to any one of claims 1 to 3, characterized in that: The time synchronization device further comprises an edge output module, wherein the edge output module is connected to the second pulse output module; The second pulse output module is specifically used to send the second pulse signal to the edge output module according to the third time; The edge output module is used to send the pulse per second signal to the third time synchronization device.

5. The time synchronization device according to any one of claims 1 to 3, characterized in that: The time synchronization device further comprises a phase-locked loop module, a first end of which is connected to the second pulse output module; The phase-locked loop module is used to provide a first clock signal for the second pulse output module; The second pulse output module is specifically used to perform phase modulation processing on the second time according to the first clock signal.

6. The time synchronization device according to claim 5, characterized in that: The second end of the phase-locked loop module is connected to the time synchronization module and the second pulse output module respectively; The phase-locked loop module is further used to provide a second clock signal for the time synchronization module and the second pulse output module; The time synchronization module is specifically configured to send the second time to the second pulse output module according to the second clock signal.

7. The time synchronization device according to any one of claims 1 to 3, characterized in that: The time synchronization device also includes a message processing module; The message processing module is connected to the time synchronization module; The message processing module is used to receive a target message from the second time synchronization device, extract the time from the target message to obtain the first time, and send the first time to the time synchronization module; The time synchronization module is specifically configured to receive the first time from the message processing module.

8. A time synchronization method, characterized in that: The method is applied to the time synchronization device according to any one of claims 1 to 7, and the method comprises: receiving a first time from a second time synchronization device; Perform time synchronization according to the first time to obtain a second time; performing phase modulation processing on the second time to obtain a third time; A pulse-per-second signal is sent to a third time synchronization device according to the third time.

9. The time synchronization method according to claim 8, characterized in that: The performing phase adjustment processing on the second time to obtain the third time comprises: determining a compensation time according to the second time; The second time is phase-adjusted according to the compensation time to obtain a third time.

10. The time synchronization method according to claim 9, characterized in that: Determining the compensation time according to the second time includes: The compensation time is determined according to the second time and a fourth time, wherein the fourth time is the time of the first time synchronization device.

11. A terminal device, characterized in that: It comprises a time synchronization device as described in any one of claims 1 to 7.