Time synchronization method and device, time synchronization equipment and readable storage medium

By configuring the 1PPS+TOD clock reference source and 1PPS+TOD protocol in the wireless base station, the devices use 1PPS+TOD protocol messages to achieve time synchronization, solving the high operating costs and complex engineering problems in the existing technology, and achieving accurate time Synchronization and cost savings.

CN118740301AInactive Publication Date: 2024-10-01ZTE CORP
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310319092.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the time synchronization process of wireless base stations, existing technology requires the deployment of NTP time synchronization servers and GNSS feeders, resulting in high technical requirements for operator engineering and site construction and high later operation and maintenance costs.

Method used

By configuring the 1PPS+TOD clock reference source and the 1PPS+TOD protocol, only 1PPS+TOD protocol messages are used to achieve time synchronization between devices, without the need to deploy NTP time synchronization servers and GNSS feeders.

Benefits of technology

It reduces the technical requirements for operators' engineering and website construction, saves later operation and maintenance costs, and achieves precise time synchronization between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740301A_ABST
    Figure CN118740301A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a time synchronization method and device, time synchronization equipment and a readable storage medium, and the method comprises the steps: transmitting a pulse time synchronization request message to the time synchronization equipment, recording the first transmission time of transmitting the pulse time synchronization request message, and enabling the pulse time synchronization request message to comprise a time synchronization period and a frequency deviation; receiving a pulse time synchronization response message triggered and sent by the time synchronization equipment according to the time synchronization period; determining a message transmission time difference based on the frequency deviation, the first sending time and the pulse time synchronization response message; and performing time synchronization on the equipment to be subjected to time synchronization based on the message transmission time difference so as to realize time synchronization between the equipment to be subjected to time synchronization and the time synchronization equipment. The equipment to be subjected to time synchronization is configured with the 1PPS + TOD clock reference source and the 1PPS + TOD protocol, so that the pulse time synchronization response message and the pulse time synchronization request message are both 1PPS + TOD protocol messages, and according to the application, accurate time synchronization can be carried out on the equipment to be subjected to time synchronization only by utilizing the 1PPS + TOD protocol messages transmitted by the equipment without deploying an NTP time synchronization server and a GNSS feeder line; the station building requirement is reduced; and the later operation and maintenance cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of time synchronization technology, and in particular to a time synchronization method, apparatus, time synchronization equipment and readable storage medium. Background Art

[0002] The Network Time Protocol (NTP) is a network protocol for clock synchronization between system devices in a data network through packet exchange. NTP can usually maintain an error of several seconds on the public Internet, and can achieve an accuracy of no more than 1 millisecond in an ideal LAN environment. The protocol is usually described as a master-slave architecture, and can also use broadcast or multicast, with clients in the LAN passively listening for time updates after the initial round-trip calibration exchange.

[0003] For wireless base stations, especially LTE (Long Term Evolution)-TDD (Time Division Duplexing) and 5G TNR (air interface signal) base stations, most base stations are deployed with GNSS (Global Navigation Satellite System) feeders and are also equipped with NTP time synchronization servers to achieve time synchronization. This networking scenario has very high requirements for the operator's engineering site construction technology, and the subsequent operation and maintenance costs are also very high. Summary of the invention

[0004] The embodiments of the present invention provide a time synchronization method, apparatus, timing device and readable storage medium. When the timing device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, accurate timing between devices can be achieved by using only 1PPS+TOD protocol messages. There is no need to deploy an NTP timing server and a GNSS feeder, thereby reducing the technical requirements for operators' engineering site construction and the subsequent operation and maintenance costs.

[0005] In a first aspect, an embodiment of the present invention provides a time synchronization method, wherein the method is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is in communication connection with the synchronization device; the method comprises:

[0006] Sending a pulse timing request message to the timing device and recording the first sending time of the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized;

[0007] Receive the pulse timing response message sent by the timing device according to the timing cycle trigger; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages;

[0008] Determine a message transmission time difference based on the frequency deviation, the first transmission time and the pulse timing response message;

[0009] The device to be synchronized is synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device.

[0010] In a possible implementation, after receiving the pulse timing response message sent by the timing device according to the timing cycle trigger, the method further includes:

[0011] Record the first receiving time of the received pulse timing response message.

[0012] In a possible implementation, determining the message transmission time difference based on the frequency deviation, the first sending time, and the pulse timing response message includes:

[0013] Parse the pulse timing response message to obtain a second receiving time and a second sending time included in the pulse timing response message; wherein the second receiving time is the time when the timing device receives the pulse timing request message, and the second sending time is the time when the timing device sends the pulse timing response message;

[0014] Determine whether the frequency deviation is a preset frequency deviation;

[0015] If it is determined that the frequency deviation is not the preset frequency deviation, the message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time.

[0016] In one possible implementation, the method further includes:

[0017] If the frequency deviation is a preset frequency deviation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time.

[0018] In a possible implementation manner, the message transmission time difference includes a first transmission delay of the pulse timing response message and a first time deviation from the device to be synchronized to the timing device;

[0019] The message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time, and is calculated by the following formula:

[0020] Δt cμ =(t1+t3)-(t0+t2)-(d cs -d sc)-Δt sμ ;

[0021] d sc =(t1-t3)+(t2-t0)-d cs ;

[0022] Among them, d cs =d sc +Δd μ ; Δt sμ =f dn *Δt cμ ; Δt sμ Indicates the second time deviation from the synchronization device to the device to be synchronized; Δt cμ Indicates the first time deviation; d cs Indicates the second transmission delay of the pulse timing request message; d sc Represents the first transmission delay; Δd μ Indicates the transmission delay error between the device to be synchronized and the synchronization device; f dn represents the frequency deviation; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0023] In a possible implementation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time, and is calculated by the following formula:

[0024] Δt cμ =[(t1-t0)+(t3-t2)] / 2;

[0025] d sc =[(t1-t3)+(t2-t0)] / 2;

[0026] Among them, Δt cμ Indicates the first time deviation; d sc represents the first transmission delay; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0027] In a possible implementation, synchronizing the time of the device to be synchronized based on the message transmission time difference includes:

[0028] Determine the synchronization time based on the second sending time and the message transmission time difference;

[0029] Correct the first receiving time to the synchronized time.

[0030] In a possible implementation, the synchronization time is obtained by the following formula:

[0031] t=t2+Δt cμ-d sc ;

[0032] Where t represents the synchronization time; t2 represents the second sending time; Δt cμ Indicates the first time deviation; d sc Indicates the first transmission delay.

[0033] In one possible implementation, the method further includes:

[0034] When it is detected that no pulse timing response message is received within the preset time period, timing abnormality information is generated.

[0035] In one possible implementation, the method further includes:

[0036] When the termination of the timing operation is detected, a termination request message is sent to the timing device to trigger the timing device to stop sending the pulse timing response message; wherein, the termination of the timing operation is to delete the 1PPS+TOD clock reference source or terminate the two-way port interconnection between the device to be synchronized and the timing device or delete the 1PPS+TOD protocol.

[0037] In a second aspect, an embodiment of the present invention provides a time synchronization device, wherein the device is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is communicatively connected with the synchronization device; the device includes:

[0038] A sending record module is used to send a pulse time synchronization request message to a time synchronization device and record the first sending time of sending the pulse time synchronization request message, wherein the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized;

[0039] A receiving module, used to receive a pulse timing response message sent by a timing device according to a timing cycle; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages;

[0040] A determination module, configured to determine a message transmission time difference based on a frequency deviation, a first transmission time, and a pulse timing response message;

[0041] The time synchronization module is used to synchronize the time of the device to be synchronized based on the message transmission time difference, so as to achieve time synchronization between the device to be synchronized and the synchronization device.

[0042] In a third aspect, an embodiment of the present invention provides a time synchronization device, which includes: a processor and a memory, the processor is used to execute a time synchronization program stored in the memory to implement the above-mentioned time synchronization method.

[0043] In a fourth aspect, an embodiment of the present invention provides a readable storage medium, wherein the readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned time synchronization method.

[0044] The time synchronization method, apparatus, time synchronization device and readable storage medium provided by the embodiments of the present invention include sending a pulse time synchronization request message to the time synchronization device and recording the first sending time of sending the pulse time synchronization request message, the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation of the device to be synchronized; receiving a pulse time synchronization response message triggered by the time synchronization device according to the time synchronization period; wherein the pulse time synchronization response message and the pulse time synchronization request message are both 1PPS+TOD protocol messages; determining the message transmission time difference based on the frequency deviation, the first sending time and the pulse time synchronization response message; and synchronizing the device to be synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device. The above-mentioned device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol. When the device to be synchronized performs time synchronization with the timing device, accurate time synchronization of the device to be synchronized can be achieved by only using the 1PPS+TOD protocol messages transmitted between the devices. This application does not require the deployment of NTP timing servers and GNSS feeders to achieve time synchronization between devices, which can reduce the technical requirements for operators' engineering site construction and save subsequent operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of bidirectional port interconnection provided by an embodiment of the present invention;

[0046] Figure 2 A schematic diagram of another bidirectional port interconnection provided by an embodiment of the present invention;

[0047] Figure 3 A flow chart of an embodiment of a time synchronization method provided by an embodiment of the present invention;

[0048] Figure 4 A flow chart of another time synchronization method provided by an embodiment of the present invention;

[0049] Figure 5 A time diagram of a message interaction time provided by an embodiment of the present invention;

[0050] Figure 6 A block diagram of an embodiment of a time synchronization device provided by an embodiment of the present invention;

[0051] Figure 7 A schematic diagram of the structure of a time synchronization device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0054] An embodiment of the present invention provides a time synchronization method, wherein the method is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is communicatively connected with a synchronization device.

[0055] The above-mentioned time-synchronized device can be a wireless base station, or it can be a clock or transmission device, etc., which is not limited here; the 1PPS+TOD clock reference source deployed on the time-synchronized device provides a clock standard for the entire device. Since the time-synchronized device is also configured with the 1PPS+TOD protocol, the time-synchronized device can be synchronized with the timing device through the 1PPS+TOD protocol message. This method of time synchronization through the 1PPS+TOD protocol message does not require the deployment of NTP timing servers and GNSS feeders, which can effectively reduce the technical requirements for operators' engineering site construction and subsequent operation and maintenance costs.

[0056] In actual application, the device to be synchronized and the synchronization device communicate through the device port to transmit 1PPS+TOD protocol messages. It can be understood that the ports of the device to be synchronized and the synchronization device for transmitting 1PPS+TOD protocol messages are directly connected by network cable. For ease of understanding, Figure 1 A schematic diagram of bidirectional port intercommunication is shown. Figure 1 In the example, the device to be synchronized is wireless base station A and the synchronization device is wireless base station B. Both wireless base stations include a connection port 10, which can be a clock electrical port or an optical port. The connection ports 10 of the two wireless base stations are directly connected through an ordinary network cable to achieve two-way port interconnection.

[0057] Figure 2 Another schematic diagram of bidirectional port intercommunication is shown. Figure 2 In the example, the device to be synchronized is a clock or transmission device C, and the synchronization device is still a wireless base station B. Both devices include a clock electrical port 20, and the clock electrical ports 20 of the two devices are directly connected through an ordinary network cable to achieve bidirectional port intercommunication.

[0058] See also Figure 3 , which is a flow chart of an embodiment of a time synchronization method provided in an embodiment of the present invention. Figure 3 The process shown may include the following steps:

[0059] Step 301, sending a pulse timing request message to a timing device, and recording a first sending time of sending the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation;

[0060] In order to facilitate the description of the pulse timing request message, Table 1 shows a message structure of a pulse timing request message:

[0061] Table 1

[0062] Frame header 1 Frame header 2 Message Type Message ID Message length Message content Verification Field 0x43 0x4D 0x04 0x40 2 bytes 16 bytes 1 byte

[0063] As shown in Table 1:

[0064] 1) The frame header consists of two bytes, which are fixed to 0x43 0x4D, indicating that the 1PPS+TOD protocol is used.

[0065] 2) Message type and message ID

[0066] It consists of two bytes. It is fixed to 0x04 0x40, indicating a time synchronization request message, which is sent by the device to be synchronized.

[0067] 3) Message length

[0068] It consists of two bytes. The effective range of message length calculation includes only the message content, excluding the frame header, message type and ID (Identification), message length and checksum field.

[0069] 4) Message content

[0070] The message content consists of 16 bytes, including the above-mentioned time synchronization period and frequency deviation.

[0071] Among them, the frequency deviation is used to characterize the timing deviation of the device to be synchronized; it can be understood that the frequency deviation is caused by the long-term accumulation of the clock timing and the actual frequency of the crystal oscillator being affected by various external factors (temperature, voltage, aging, etc.). In this embodiment, if the frequency deviation is a preset frequency deviation (preferably the preset frequency deviation is 1), it means that there is no timing deviation in the device to be synchronized. At this time, there is no time deviation between the device to be synchronized and the synchronization device, and the protocol message transmission delay is the same. If the frequency deviation is not the preset frequency deviation, it means that there is a timing deviation in the device to be synchronized. At this time, there is a time deviation between the device to be synchronized and the synchronization device, and the protocol message transmission delay is different. The different results of the comparison between the frequency deviation and the preset frequency deviation will directly affect the determination of the message transmission time difference in step 303. Step 303 will be introduced in detail below and will not be described in detail here.

[0072] The timing cycle enables the timing device to periodically send a pulse timing response message to the device to be synchronized in response to the pulse timing request message. The timing cycle and frequency deviation can be configured according to actual needs.

[0073] 5) Verification domain

[0074] It consists of one byte. The check range includes the message header, message length and frame check field, but does not include the frame header. It is filled with 0 when not in use. In actual use, the check field can be added or not added to the message according to actual needs.

[0075] Step 302, receiving a pulse timing response message sent by a timing device according to a timing cycle trigger;

[0076] Since both the pulse timing response message and the pulse timing request message are 1PPS+TOD protocol messages, both the device to be synchronized and the timing device send messages at a rate of one trigger per second.

[0077] In order to facilitate the description of the pulse timing response message, Table 2 shows a message structure of a pulse timing response message:

[0078] Table 2

[0079] Frame header 1 Frame header 2 Message Type Message ID Message length Message content Verification Field 0x43 0x4D 0x05 0x50 2 bytes 48 bytes 1 byte

[0080] As shown in Table 2:

[0081] 1) Frame header

[0082] It consists of two bytes. It is fixed to 0x43 0x4D, indicating that the 1PPS+TOD protocol is used.

[0083] 2) Message type and message ID

[0084] It consists of two bytes. It is fixed to 0x05 0x50, indicating the time synchronization response message, which is sent by the time synchronization device.

[0085] 3) Message length

[0086] It consists of two bytes. The effective range of message length calculation includes only the message content, excluding the frame header, message type and ID, message length and checksum field.

[0087] 4) Message content

[0088] The message content consists of 48 bytes, which mainly includes the time when the timing device receives the pulse timing request message and the time when it sends the pulse timing response message.

[0089] 5) Verification domain

[0090] It consists of one byte. The check range includes the message header, message length and frame check field, but does not include the frame header. It is filled with 0 when not in use. In actual use, the check field can be added or not added to the message according to actual needs.

[0091] Step 303, determining the message transmission time difference based on the frequency deviation, the first sending time and the pulse timing response message;

[0092] In actual use, the message transmission time difference includes the first transmission delay of the pulse timing response message and the first time deviation from the device to be synchronized to the synchronization device. The specific process of determining the message transmission time difference is detailed in the following embodiments and will not be repeated here.

[0093] Step 304: synchronize the device to be synchronized based on the message transmission time difference, so as to achieve time synchronization between the device to be synchronized and the synchronization device.

[0094] The message transmission time difference can be used to correct the time when the device to be synchronized receives the pulse synchronization response message, so that the corrected time of the device to be synchronized is synchronized with the current time of the synchronization device.

[0095] The time synchronization method provided by an embodiment of the present invention includes sending a pulse time synchronization request message to a time synchronization device and recording a first sending time of sending the pulse time synchronization request message, wherein the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation of the device to be synchronized; receiving a pulse time synchronization response message triggered by the time synchronization device according to the time synchronization period; wherein the pulse time synchronization response message and the pulse time synchronization request message are both 1PPS+TOD protocol messages; determining a message transmission time difference based on the frequency deviation, the first sending time and the pulse time synchronization response message; and synchronizing the device to be synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device. The above-mentioned device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol. When the device to be synchronized performs time synchronization with the timing device, accurate time synchronization of the device to be synchronized can be achieved by only using the 1PPS+TOD protocol messages transmitted between the devices. This application does not require the deployment of NTP timing servers and GNSS feeders to achieve time synchronization between devices, which can reduce the technical requirements for operators' engineering site construction and save subsequent operation and maintenance costs.

[0096] See also Figure 4 , is a flow chart of another time synchronization method provided by an embodiment of the present invention. Figure 4 The process shown in the above Figure 3 Based on the process shown, the following steps may be included:

[0097] Step 401, sending a pulse timing request message to a timing device, and recording a first sending time of sending the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation;

[0098] Step 402, receiving a pulse timing response message sent by a timing device according to a timing cycle trigger;

[0099] Step 403, recording the first receiving time of the received pulse timing response message;

[0100] The first receiving time is the current time of the 1PPS+TOD clock reference source configured by the device to be synchronized.

[0101] Step 404, parsing the pulse timing response message to obtain a second receiving time and a second sending time included in the pulse timing response message;

[0102] The second receiving time is the time when the timing device receives the pulse timing request message, and the second sending time is the time when the timing device sends the pulse timing response message;

[0103] Step 405, determining whether the frequency deviation is a preset frequency deviation;

[0104] Optionally, the preset frequency deviation is 1. Of course, the preset value may also be other values, which are not specifically limited here, and it can be understood that the closer the preset frequency deviation is to 1, the lower the timing deviation of the device to be synchronized is, that is, the higher the timing accuracy is.

[0105] If it is determined that the frequency deviation is not the preset frequency deviation, it means that the device to be synchronized has a timing deviation, and the frequency deviation needs to be considered in the process of determining the message transmission time difference. Therefore, step 406 needs to be executed; if it is determined that the frequency deviation is the preset frequency deviation, it means that the device to be synchronized has no timing deviation, and the frequency deviation does not need to be considered in the process of determining the message transmission time difference. Therefore, step 407 needs to be executed.

[0106] Step 406, determining the message transmission time difference based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time.

[0107] When the frequency deviation is taken into account in determining the message transmission time difference, the message transmission time difference can be calculated by the following formula:

[0108] Δt cμ =(t1+t3)-(t0+t2)-(d cs -d sc )-Δt sμ ;

[0109] d sc =(t1-t3)+(t2-t0)-d cs ;

[0110] Among them, d cs =d sc +Δd μ ; Δt sμ =f dn *Δt cμ ; Δt sμ Indicates the second time deviation from the synchronization device to the device to be synchronized; Δt cμ Indicates the first time deviation; d cs Indicates the second transmission delay of the pulse timing request message; d sc Represents the first transmission delay; Δd μ Indicates the transmission delay error between the device to be synchronized and the synchronization device; f dn represents the frequency deviation; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0111] In order to facilitate understanding of the first sending time t0, the second receiving time t1, the second sending time t2, and the first receiving time t3, Figure 5A time diagram of message interaction time is shown, such as Figure 5 As shown, the first sending time t0 and the first receiving time t3 are both the device time of the device to be synchronized, and the second receiving time t1 and the second sending time t2 are both the device time of the synchronization device.

[0112] Step 407, determining a message transmission time difference based on the first sending time, the first receiving time, the second receiving time, and the second sending time;

[0113] When the frequency deviation is not considered in the process of determining the message transmission time difference, the message transmission time difference can be calculated by the following formula:

[0114] Δt cμ =[(t1-t0)+(t3-t2)] / 2;

[0115] d sc =[(t1-t3)+(t2-t0)] / 2;

[0116] Among them, Δt cμ Indicates the first time deviation; d sc represents the first transmission delay; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0117] Step 408, determining the synchronization time based on the second sending time and the message transmission time difference;

[0118] The synchronization time is the current time of the synchronization device, which can be calculated by the following formula:

[0119] t=t2+Δt cμ -d sc ;

[0120] Where t represents the synchronization time; t2 represents the second sending time; Δt cμ Indicates the first time deviation; d sc Indicates the first transmission delay.

[0121] Step 409, correcting the first receiving time to the synchronized time.

[0122] The first receiving time of the device to be synchronized is modified to the current time of the synchronization device, that is, the synchronization time, so as to achieve time synchronization between the device to be synchronized and the synchronization device.

[0123] In the above time synchronization process, if the device to be synchronized detects that it has not received a pulse synchronization response message within a preset time period, it generates a synchronization exception message.

[0124] The timing abnormality information can be sent to maintenance personnel to perform abnormality detection and repair on the timing equipment to ensure normal timing.

[0125] In actual use, the preset time period can be set according to actual needs. Specifically, according to the synchronization period, if the device to be synchronized fails to receive the pulse synchronization response message from the synchronization device for three consecutive times, the device to be synchronized generates a synchronization exception message. And try to receive the pulse synchronization response message again three times in a period of synchronization period*2. If the pulse synchronization response message still cannot be received, the pulse synchronization response message will no longer be processed. If you need to start the time synchronization process again, you need to re-trigger the pulse synchronization request message by modifying the configuration.

[0126] In the actual process, when the termination of the time synchronization operation is detected, a termination time synchronization request message is sent to the time synchronization device to trigger the time synchronization device to stop sending the pulse time synchronization response message;

[0127] The termination of the time synchronization operation is to delete the 1PPS+TOD clock reference source or terminate the bidirectional port interconnection between the device to be synchronized and the synchronization device or delete the 1PPS+TOD protocol. Terminating the bidirectional port interconnection between the device to be synchronized and the synchronization device means that the network cable of the port through which the device to be synchronized and the synchronization device transmit 1PPS+TOD protocol messages is unplugged or the network cable is damaged.

[0128] In order to facilitate the description of the termination time synchronization request message, Table 3 shows a message structure of the termination time synchronization request message:

[0129] Table 3

[0130] Frame header 1 Frame header 2 Message Type Message ID Message length Message content Verification Field 0x43 0x4D 0x06 0x60 2 bytes 1 byte

[0131] From Table 3, we can see that:

[0132] 1) Frame header

[0133] It consists of two bytes. It is fixed to 0x43 0x4D, indicating that the 1PPS+TOD protocol is used.

[0134] 2) Message type and message ID

[0135] It consists of two bytes. It is fixed to 0x06 0x60. This combination represents the termination request of time synchronization and is issued by the device to be synchronized.

[0136] 3) Message length

[0137] It consists of two bytes. The effective range of message length calculation includes only the message content, excluding the frame header, message type and ID, message length and checksum field.

[0138] 4) Message content

[0139] The message content is 0 bytes.

[0140] 5) Verification domain

[0141] It consists of one byte. The check range includes the message header, message length and frame check field, but does not include the frame header. It is filled with 0 when not in use. Similarly, the check field can be added or not added to the message according to actual needs.

[0142] This application does not require the deployment of NTP timing servers and GNSS feeders, and can achieve accurate timing of the equipment to be synchronized by only using the 1PPS+TOD protocol messages transmitted between devices. It can save subsequent operation and maintenance costs while reducing the technical requirements for operator engineering site construction. In addition, this application can also generate timing exception information when the pulse timing response message is not received, so as to remind maintenance personnel to maintain the timing equipment in time and quickly resume timing use. In addition, this application can also trigger the timing equipment to stop sending pulse timing response messages when the timing operation is terminated, so as to stop the timing equipment from working in time and reduce the loss of the timing equipment.

[0143] The embodiment of the present invention provides a time synchronization device, wherein the device is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is connected to the synchronization device for communication; Figure 6 , is a block diagram of an embodiment of a time synchronization device provided by an embodiment of the present invention. Figure 6 As shown, the device may include:

[0144] The sending recording module 601 is used to send a pulse timing request message to the timing device and record the first sending time of sending the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized;

[0145] The receiving module 602 is used to receive the pulse timing response message sent by the timing device according to the timing cycle trigger; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages;

[0146] A determination module 603, configured to determine a message transmission time difference based on the frequency deviation, the first transmission time and the pulse timing response message;

[0147] The time synchronization module 604 is used to synchronize the time of the device to be synchronized based on the message transmission time difference, so as to achieve time synchronization between the device to be synchronized and the synchronization device.

[0148] The time synchronization device provided by an embodiment of the present invention includes sending a pulse time synchronization request message to a time synchronization device and recording a first sending time of sending the pulse time synchronization request message, wherein the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation of the device to be synchronized; receiving a pulse time synchronization response message triggered by the time synchronization device according to the time synchronization period; wherein the pulse time synchronization response message and the pulse time synchronization request message are both 1PPS+TOD protocol messages; determining a message transmission time difference based on the frequency deviation, the first sending time and the pulse time synchronization response message; and synchronizing the device to be synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device. The above-mentioned device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol. When the device to be synchronized performs time synchronization with the timing device, accurate time synchronization of the device to be synchronized can be achieved by only using the 1PPS+TOD protocol messages transmitted between the devices. This application does not require the deployment of NTP timing servers and GNSS feeders to achieve time synchronization between devices, which can reduce the technical requirements for operators' engineering site construction and save subsequent operation and maintenance costs.

[0149] Figure 7 A schematic diagram of the structure of a time synchronization device provided by an embodiment of the present invention, Figure 7 The electronic device 700 shown includes: at least one processor 701, a memory 702, at least one network interface 704 and other user interfaces 703. The various components in the time synchronization device 700 are coupled together via a bus system 705. It is understood that the bus system 705 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 705 is not described in detail. Figure 7 Various buses are labeled as bus system 705.

[0150] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0151] It can be understood that the memory 702 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0152] In some implementations, the memory 702 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .

[0153] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 7022.

[0154] In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application 7022, the processor 701 is used to execute the method steps provided in each method embodiment:

[0155] Sending a pulse timing request message to the timing device and recording the first sending time of the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized;

[0156] Receive the pulse timing response message sent by the timing device according to the timing cycle trigger; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages;

[0157] Determine a message transmission time difference based on the frequency deviation, the first transmission time and the pulse timing response message;

[0158] The device to be synchronized is synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device.

[0159] In a possible implementation, after receiving the pulse timing response message sent by the timing device according to the timing cycle trigger, the method further includes:

[0160] Record the first receiving time of the received pulse timing response message.

[0161] In a possible implementation, determining the message transmission time difference based on the frequency deviation, the first sending time, and the pulse timing response message includes:

[0162] Parse the pulse timing response message to obtain a second receiving time and a second sending time included in the pulse timing response message; wherein the second receiving time is the time when the timing device receives the pulse timing request message, and the second sending time is the time when the timing device sends the pulse timing response message;

[0163] Determine whether the frequency deviation is a preset frequency deviation;

[0164] If it is determined that the frequency deviation is not the preset frequency deviation, the message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time.

[0165] In one possible implementation, the method further includes:

[0166] If the frequency deviation is a preset frequency deviation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time.

[0167] In a possible implementation manner, the message transmission time difference includes a first transmission delay of the pulse timing response message and a first time deviation from the device to be synchronized to the timing device;

[0168] The message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time, and is calculated by the following formula:

[0169] Δt cμ =(t1+t3)-(t0+t2)-(d cs -d sc )-Δt sμ ;

[0170] d sc =(t1-t3)+(t2-t0)-d cs ;

[0171] Among them, d cs =d sc +Δd μ ; Δt sμ =f dn *Δt cμ ; Δt sμ Indicates the second time deviation from the synchronization device to the device to be synchronized; Δt cμ Indicates the first time deviation; d cs Indicates the second transmission delay of the pulse timing request message; d sc Represents the first transmission delay; Δd μ Indicates the transmission delay error between the device to be synchronized and the synchronization device; f dn represents the frequency deviation; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0172] In a possible implementation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time, and is calculated by the following formula:

[0173] Δt cμ =[(t1-t0)+(t3-t2)] / 2;

[0174] d sc =[(t1-t3)+(t2-t0)] / 2;

[0175] Among them, Δt cμ Indicates the first time deviation; d sc represents the first transmission delay; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0176] In a possible implementation, synchronizing the time of the device to be synchronized based on the message transmission time difference includes:

[0177] Determine the synchronization time based on the second sending time and the message transmission time difference;

[0178] Correct the first receiving time to the synchronized time.

[0179] In a possible implementation, the synchronization time is obtained by the following formula:

[0180] t=t2+Δt cμ -d sc ;

[0181] Where t represents the synchronization time; t2 represents the second sending time; Δt cμ Indicates the first time deviation; d sc Indicates the first transmission delay.

[0182] In one possible implementation, the method further includes:

[0183] When it is detected that no pulse timing response message is received within the preset time period, timing abnormality information is generated.

[0184] In one possible implementation, the method further includes:

[0185] When the termination of the timing operation is detected, a termination request message is sent to the timing device to trigger the timing device to stop sending the pulse timing response message; wherein, the termination of the timing operation is to delete the 1PPS+TOD clock reference source or terminate the two-way port interconnection between the device to be synchronized and the timing device or delete the 1PPS+TOD protocol.

[0186] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.

[0187] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0188] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0189] The time synchronization device provided in this embodiment may be as follows Figure 7 The timing device shown in can be executed as follows Figure 4-5 All steps of the time synchronization method in Figure 4-5 For details on the technical effects of the time synchronization method shown, please refer to Figure 4-5 For the sake of brevity, the relevant description is not repeated here.

[0190] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0191] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned time synchronization method can be implemented.

[0192] The processor is used to execute the time synchronization program stored in the memory to implement the steps of the time synchronization method:

[0193] Sending a pulse timing request message to the timing device and recording the first sending time of the pulse timing request message, wherein the pulse timing request message includes a timing period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized;

[0194] Receive the pulse timing response message sent by the timing device according to the timing cycle trigger; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages;

[0195] Determine a message transmission time difference based on the frequency deviation, the first transmission time and the pulse timing response message;

[0196] The device to be synchronized is synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device.

[0197] In a possible implementation, after receiving the pulse timing response message sent by the timing device according to the timing cycle trigger, the method further includes:

[0198] Record the first receiving time of the received pulse timing response message.

[0199] In a possible implementation, determining the message transmission time difference based on the frequency deviation, the first sending time, and the pulse timing response message includes:

[0200] Parse the pulse timing response message to obtain a second receiving time and a second sending time included in the pulse timing response message; wherein the second receiving time is the time when the timing device receives the pulse timing request message, and the second sending time is the time when the timing device sends the pulse timing response message;

[0201] Determine whether the frequency deviation is a preset frequency deviation;

[0202] If it is determined that the frequency deviation is not the preset frequency deviation, the message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time.

[0203] In one possible implementation, the method further includes:

[0204] If the frequency deviation is a preset frequency deviation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time.

[0205] In a possible implementation manner, the message transmission time difference includes a first transmission delay of the pulse timing response message and a first time deviation from the device to be synchronized to the timing device;

[0206] The message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time, and is calculated by the following formula:

[0207] Δt cμ =(t1+t3)-(t0+t2)-(d cs -d sc )-Δt sμ ;

[0208] d sc =(t1-t3)+(t2-t0)-d cs ;

[0209] Among them, d cs =d sc +Δd μ ; Δt sμ =f dn *Δt cμ ; Δt sμ Indicates the second time deviation from the synchronization device to the device to be synchronized; Δt cμ Indicates the first time deviation; d cs Indicates the second transmission delay of the pulse timing request message; d sc Represents the first transmission delay; Δd μ Indicates the transmission delay error between the device to be synchronized and the synchronization device; f dnrepresents the frequency deviation; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0210] In a possible implementation, the message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time, and is calculated by the following formula:

[0211] Δt cμ =[(t1-t0)+(t3-t2)] / 2;

[0212] d sc =[(t1-t3)+(t2-t0)] / 2;

[0213] Among them, Δt cμ Indicates the first time deviation; d sc represents the first transmission delay; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

[0214] In a possible implementation, synchronizing the time of the device to be synchronized based on the message transmission time difference includes:

[0215] Determine the synchronization time based on the second sending time and the message transmission time difference;

[0216] Correct the first receiving time to the synchronized time.

[0217] In a possible implementation, the synchronization time is obtained by the following formula:

[0218] t=t2+Δt cμ -d sc ;

[0219] Where t represents the synchronization time; t2 represents the second sending time; Δt cμ represents the first time deviation; dsc represents the first transmission delay.

[0220] In one possible implementation, the method further includes:

[0221] When it is detected that no pulse timing response message is received within the preset time period, timing abnormality information is generated.

[0222] In one possible implementation, the method further includes:

[0223] When the termination of the timing operation is detected, a termination request message is sent to the timing device to trigger the timing device to stop sending the pulse timing response message; wherein, the termination of the timing operation is to delete the 1PPS+TOD clock reference source or terminate the two-way port interconnection between the device to be synchronized and the timing device or delete the 1PPS+TOD protocol.

[0224] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0225] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0226] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A time synchronization method, characterized in that: The method is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is in communication connection with the synchronization device; the method comprises: Sending a pulse time synchronization request message to the time synchronization device, and recording a first sending time of sending the pulse time synchronization request message, wherein the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized; Receive a pulse timing response message sent by the timing device according to the timing cycle; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages; Determine a message transmission time difference based on the frequency deviation, the first sending time and the pulse timing response message; The device to be synchronized is synchronized based on the message transmission time difference to achieve time synchronization between the device to be synchronized and the synchronization device.

2. The method according to claim 1, characterized in that After receiving the pulse timing response message sent by the timing device according to the timing cycle trigger, the method further includes: The first receiving time of receiving the pulse timing response message is recorded.

3. The method according to claim 2, characterized in that The determining of the message transmission time difference based on the frequency deviation, the first sending time and the pulse timing response message comprises: Parse the pulse timing response message to obtain a second receiving time and a second sending time included in the pulse timing response message; wherein the second receiving time is the time when the timing device receives the pulse timing request message, and the second sending time is the time when the timing device sends the pulse timing response message; Determining whether the frequency deviation is a preset frequency deviation; If it is determined that the frequency deviation is not the preset frequency deviation, a message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time, and the second sending time.

4. The method according to claim 3, characterized in that The method further comprises: If the frequency deviation is the preset frequency deviation, a message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time, and the second sending time.

5. The method according to claim 4, characterized in that The message transmission time difference includes the first transmission delay of the pulse timing response message and the first time deviation from the device to be synchronized to the synchronization device; The message transmission time difference is determined based on the frequency deviation, the first sending time, the first receiving time, the second receiving time and the second sending time, and is calculated by the following formula: Δt cμ =(t1+t3)-(t0+t2)-(d cs -d sc )-Δt sμ ; <h2 style=";text-align:left;direction:ltr">d<h2 style=";text-align:left;direction:ltr"> sc <h2 style=";text-align:left;direction:ltr"> (t1-t3)+(t2-t0)-d<h2 style=";text-align:left;direction:ltr"> cs <h2 style=";text-align:left;direction:ltr"> ; Among them, d cs =d sc +Δd μ ; Δt sμ =f dn *Δt cμ ; Δt sμ represents the second time deviation from the time synchronization device to the device to be synchronized; Δt cμ represents the first time deviation; d cs represents the second transmission delay of the pulse timing request message; d sc represents the first transmission delay; Δd μ represents the transmission delay error between the device to be synchronized and the synchronization device; f dn represents the frequency deviation; t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; t3 represents the first receiving time.

6. The method according to claim 5, characterized in that The message transmission time difference is determined based on the first sending time, the first receiving time, the second receiving time and the second sending time, and is calculated by the following formula: <h2 style=";text-align:left;direction:ltr">Δt<h2 style=";text-align:left;direction:ltr"> cμ <h2 style=";text-align:left;direction:ltr"> ([(t1-t0)+(t3-t2)] / 2) <h2 style=";text-align:left;direction:ltr">d<h2 style=";text-align:left;direction:ltr"> sc <h2 style=";text-align:left;direction:ltr"> ([(t1-t3)+(t2-t0)] / 2) Among them, t0 represents the first sending time; t1 represents the second receiving time; t2 represents the second sending time; and t3 represents the first receiving time.

7. The method according to claim 5, characterized in that The step of synchronizing the device to be synchronized based on the message transmission time difference includes: Determine a synchronization time based on the second sending time and the message transmission time difference; The first receiving time is corrected to the synchronization time.

8. The method according to claim 7, characterized in that The synchronization time is obtained by the following formula: t=t2+Δt cμ -d sc ; Wherein, t represents the synchronization time; t2 represents the second sending time; Δt cμ represents the first time deviation; d sc Indicates the first transmission delay.

9. The method according to claim 1, characterized in that: The method further comprises: When it is detected that the pulse timing response message is not received within a preset time period, timing abnormality information is generated.

10. The method according to claim 1, characterized in that The method further comprises: When the termination of the time synchronization operation is detected, a termination time synchronization request message is sent to the time synchronization device to trigger the time synchronization device to stop sending the pulse time synchronization response message; wherein, the termination time synchronization operation is to delete the 1PPS+TOD clock reference source or terminate the two-way port interconnection between the device to be synchronized and the time synchronization device or delete the 1PPS+TOD protocol.

11. A time synchronization device, characterized in that: The device is applied to a device to be synchronized, the device to be synchronized is configured with a 1PPS+TOD clock reference source and a 1PPS+TOD protocol, and the device to be synchronized is connected in communication with the synchronization device; the device comprises: A sending record module, used to send a pulse time synchronization request message to the time synchronization device, and record the first sending time of sending the pulse time synchronization request message, wherein the pulse time synchronization request message includes a time synchronization period and a frequency deviation; wherein the frequency deviation is used to characterize the timing deviation degree of the device to be synchronized; A receiving module, used to receive a pulse timing response message sent by the timing device according to the timing cycle; wherein the pulse timing response message and the pulse timing request message are both 1PPS+TOD protocol messages; A determination module, configured to determine a message transmission time difference based on the frequency deviation, the first sending time and the pulse timing response message; The time synchronization module is used to synchronize the time of the device to be synchronized based on the message transmission time difference, so as to achieve time synchronization between the device to be synchronized and the synchronization device.

12. A time synchronization device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a time synchronization program stored in the memory to implement the time synchronization method according to any one of claims 1 to 10.

13. A readable storage medium, characterized in that: The readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the time synchronization method according to any one of claims 1 to 10.

Citation Information

Cited By

  • PPS-pulse-free high-precision clock synchronization method, device, equipment and medium

    CN120567352A

  • High-precision synchronization clock method without pps pulse, device, equipment and medium

    CN120567352B