A multi-phase time synchronization method, system, device and terminal equipment

Through the multi-phase time synchronization system, the Beidou timing system and high-stable clock generator are used to solve the problem of insufficient accuracy in the network environment of traditional time synchronization methods, and achieve high-precision and temperature stable time synchronization.

CN115347971BActive Publication Date: 2025-02-25HUNAN XING TIAN ELECTRONICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210997762.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2025-02-25
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

Traditional time synchronization methods such as NTP protocol are difficult to achieve high-precision time synchronization in network environments, due to factors such as application layer, protocol stack cache and task scheduling, and the transmission delay uncertainty and link asymmetry of the Beidou timing system reduce the time synchronization accuracy.

Method used

A multi-phase time synchronization system is adopted, which includes a reference time synchronizer, a timestamp generator and a task node. The reference time synchronizer obtains the reference time through the Beidou timing system and publishes it to the task node. The timestamp generator generates a multiple phase timing signal based on the clock frequency generated by the high-stable clock generator. The task node calculates absolute time based on the reference time and the multiple phase timing signal for time synchronization.

Benefits of technology

The time synchronization accuracy of each task node is improved, and the accuracy and reliability of time accuracy are maintained under different temperature environments, achieving a measurement resolution of 250ps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115347971B_ABST
    Figure CN115347971B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a multi-phase time synchronization method, system, device and terminal equipment. The multi-phase time synchronization system includes a reference time synchronizer, a timestamp generator and at least one task node. The reference time synchronizer is used to obtain the reference time in real time through the Beidou timing system and publish the reference time to at least one task node. The timestamp generator is used to receive the clock frequency generated by the high-stability clock generator and generate a multi-phase timing signal based on the clock frequency. At least one task node is used to obtain the corresponding absolute time based on the reference time and the multi-phase timing signal, and perform time synchronization according to the absolute time. In this application, not only can the time synchronization accuracy of each task node be improved, but also the time accuracy in different temperature environments can be made more accurate and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of time synchronization, and in particular to a multi-phase time synchronization method, system, device and terminal equipment. Background Art

[0002] Traditional timing methods generally use time synchronization servers to synchronize time for each node device in a distributed system. The server uses the NTP (Network Time Protocol) protocol for time synchronization. Due to the influence of the application layer, protocol stack cache, and task scheduling, it cannot immediately stamp the network message when it arrives. At the same time, the uncertainty of transmission delays and the asymmetry of links caused by various intermediate network transmission devices will further reduce the accuracy of NTP time synchronization, making the timing accuracy of the time synchronization server only about 10ms. Summary of the invention

[0003] The object of the present invention is to provide a multi-phase time synchronization method, system, device and terminal equipment.

[0004] In a first aspect, the present invention provides a multi-phase time synchronization system, the system comprising a reference time synchronizer, a timestamp generator and at least one task node;

[0005] The reference time synchronizer is used to obtain the reference time in real time through the Beidou timing system, and publish the reference time to the at least one task node;

[0006] The timestamp generator is used to receive the clock frequency generated by the high-stability clock generator, and generate a multi-channel phase timing signal based on the clock frequency;

[0007] The at least one task node is used to obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signal, and perform time synchronization according to the absolute time.

[0008] In an optional implementation, the timestamp generator includes a phase clock generator and a multi-phase synchronization signal generator, and the generating of a multi-channel phase timing signal based on the clock frequency includes:

[0009] The phase clock generator is used to generate a multi-channel phase clock based on the clock frequency, and send the multi-channel phase clock to the multi-phase synchronization signal generator;

[0010] The multi-phase synchronization signal generator is used to generate corresponding multi-channel phase timing signals according to the multi-channel phase clocks, and publish the multi-channel phase timing signals to the at least one task node.

[0011] In an optional implementation manner, generating corresponding multi-channel phase timing signals according to the multi-channel phase clocks includes:

[0012] The multi-phase synchronization signal generator is used to generate multi-channel time timing stamps with preset time intervals based on the multi-channel phase clocks, and obtain corresponding multi-channel phase timing signals based on the multi-channel time timing stamps.

[0013] In an optional implementation, the task node includes a synchronous clock receiving unit, and obtaining the corresponding absolute time based on the reference time and the multi-channel phase timing signal includes:

[0014] The synchronous clock receiving unit is used to receive the reference time and the multi-channel phase timing signal;

[0015] The synchronous clock receiving unit is further used to perform calculation based on the reference time and the multi-channel phase timing signals to obtain the corresponding absolute time.

[0016] In an optional implementation, the timestamp generator further includes a preset timer and a logic circuit, and the system further includes:

[0017] The preset timer is used to send a reference time request command to the reference time synchronizer at every preset period, so that the reference time synchronizer publishes the reference time acquired in real time to the at least one task node based on the reference time request command, and sends a published instruction to the preset timer after successfully publishing the reference time;

[0018] The preset timer is also used to receive a feedback signal output by the at least one task node through a logic and operation performed by the logic circuit after time synchronization;

[0019] The preset timer is further configured to execute the step of sending a reference time request command to the reference time synchronizer at every preset period after receiving the issued instruction and the feedback signal.

[0020] In a second aspect, the present invention provides a multi-phase time synchronization method, applied to a timestamp generator, the method comprising:

[0021] Get the clock frequency generated by the high-stability clock generator;

[0022] A multi-channel phase timing signal is generated based on the clock frequency, and the multi-channel phase timing signal is published to at least one task node, so that the at least one task node obtains the corresponding absolute time based on the reference time obtained in real time by the reference time synchronizer through the Beidou timing system and the multi-channel phase timing signal, and performs time synchronization according to the absolute time.

[0023] In a third aspect, the present invention provides a multi-phase time synchronization method, applied to at least one task node, the method comprising:

[0024] Obtaining the reference time The synchronizer obtains the reference time in real time through the Beidou timing system;

[0025] Acquire a multi-channel phase timing signal generated by a timestamp generator based on a clock frequency generated by a high-stability clock generator;

[0026] The corresponding absolute time is obtained based on the reference time and the multi-channel phase timing signals, and time synchronization is performed according to the absolute time.

[0027] In a fourth aspect, the present invention provides a multi-phase time synchronization device, applied to at least one task node, the device comprising:

[0028] The reference time receiving module is used to obtain the reference time synchronizer to obtain the reference time in real time through the Beidou timing system;

[0029] A timing signal acquisition module is used to acquire a multi-channel phase timing signal generated by a timestamp generator based on a clock frequency generated by a high-stability clock generator;

[0030] The time synchronization module is used to obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signal, and perform time synchronization according to the absolute time.

[0031] In a third aspect, the present invention provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the multi-phase time synchronization method is executed.

[0032] In a fourth aspect, the present invention provides a readable storage medium storing a computer program, wherein the computer program executes the multi-phase time synchronization method when running on a processor.

[0033] The beneficial effects of the embodiments of the present invention are:

[0034] The embodiment of the present application provides a multi-phase time synchronization system, which includes a reference time synchronizer, a timestamp generator and at least one task node, the reference time synchronizer is used to obtain the reference time in real time through the Beidou timing system, and publish the reference time to at least one task node, the timestamp generator is used to receive the clock frequency generated by the high-stability clock generator, and generate a multi-channel phase timing signal based on the clock frequency, at least one task node is used to obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signal, and perform time synchronization according to the absolute time. In this application, not only can the time synchronization accuracy of each task node be improved, but also the time accuracy in different temperature environments can be made more accurate and reliable.

[0035] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0037] Figure 1 A schematic diagram of the structure of a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0038] Figure 2 A schematic diagram of a first process of time synchronization in a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0039] Figure 3 A schematic diagram of a first process flow of time synchronization in a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0040] Figure 4 A schematic diagram of a process for determining absolute time in time synchronization implemented by a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0041] Figure 5 A schematic diagram showing a counter value for implementing time synchronization in a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0042] Figure 6 A second schematic diagram of a time synchronization process of a multi-phase time synchronization system proposed in an embodiment of the present application is shown;

[0043] Figure 7 A first flow chart of a multi-phase time synchronization method proposed in an embodiment of the present application is shown;

[0044] Figure 8 A second flow chart of a multi-phase time synchronization method proposed in an embodiment of the present application is shown;

[0045] Fig. 9 A schematic structural diagram of a multi-phase time synchronization device provided in an embodiment of the present application is shown.

[0046] Description of main component symbols:

[0047] 1-Multi-phase time synchronization system; 100-reference time synchronizer; 200-time stamp generator; 300-high stability clock generator; 210-phase clock generator; 220-multi-phase synchronization signal generator; 230-preset timer; 240-logic circuit; 400-task node; 410-synchronous clock receiving unit; 10-multi-phase time synchronization device; 11-reference time receiving module; 12-timing signal acquisition module; 13-time synchronization module. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0049] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0050] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0051] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0052] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0053] Example 1

[0054] It is understandable that time synchronization is very important in many fields. For example, in financial transactions, price priority and time priority trading rules are generally followed. In communication systems, user billing is almost linked to time. In large distributed commercial databases, it is also necessary to accurately record customer transaction information. All of the above phenomena are closely related to high-precision time synchronization. Therefore, the present application provides a multi-phase time synchronization system that can be widely used in multi-node, multi-task distributed control systems that have strict requirements on coordination between nodes.

[0055] Please refer to Figure 1 , is a structural schematic diagram of a multi-phase time synchronization system 1 proposed in an embodiment of the present application, and the multi-phase time synchronization system 1 includes a reference time synchronizer 100, a timestamp generator 200 and at least one task node 400.

[0056] Based on the above multi-phase time synchronization system 1, the process of implementing time synchronization of at least one task node by the multi-phase time synchronization system of the embodiment of the present application is described below. Figure 2 As shown, it specifically includes steps S100 to S300.

[0057] Step S100: The reference time synchronizer obtains the reference time in real time through the Beidou timing system, and publishes the reference time to at least one task node.

[0058] It is understandable that the reference time synchronizer 100 will obtain the reference time in real time through the Beidou timing system. During the time synchronization process, each task node will send a reference time request command to the reference time synchronizer 100 through the timestamp generator 200. The reference time request command is used to request the reference time synchronizer 100 to publish the real-time reference time to at least one task node 400. After receiving the reference time request command sent by at least one task node 400, the reference time synchronizer 100 will publish the reference time to at least one task node. Among them, the Beidou timing system uses the Beidou satellite navigation system to provide accurate timing for the system.

[0059] Among them, at least one task node can be task node 1, task node 2,..., task node N, and the timing data format of the reference time synchronizer 100 includes but is not limited to year (8bit), month (8bit), day (8bit), hour (8bit), minute (8bit), second (8bit), millisecond (10bit), microsecond (10bit), nanosecond (10bit) and picosecond (10bit).

[0060] Step S200: The timestamp generator receives the clock frequency generated by the high-stability clock generator, and generates a multi-channel phase timing signal based on the clock frequency.

[0061] In this embodiment, the timestamp generator 200 receives the clock frequency generated by the external high-stable clock generator 300, generates corresponding multi-channel phase timing signals based on the clock frequency, and publishes the multi-channel phase timing signals to at least one task node. The timestamp generator 200 is implemented by a programmable logic device, and the clock generator is a device for generating a clock signal. The clock frequency generated by the high-stable clock generator can be 100MHZ.

[0062] In one embodiment, Figure 3 As shown, the timestamp generator includes a phase clock generator and a multi-phase synchronization signal generator, and generating a multi-phase timing signal based on the clock frequency specifically includes sub-steps S210 to S220.

[0063] Sub-step S210: The phase clock generator generates a multi-channel phase clock based on the clock frequency, and sends the multi-channel phase clock to the multi-phase synchronization signal generator.

[0064] It can be understood that the above-mentioned timestamp generator 200 includes a phase clock generator 210 and a multi-phase synchronization signal generator 220. The phase clock generator 210 receives the clock frequency generated by the external high-stability clock generator 300, generates corresponding multi-channel phase clocks through the phase-locked loop of the phase clock generator 210, and sends the multi-channel phase clocks to the multi-phase synchronization signal generator 220. Among them, the phase-locked loop (PLL) is the core technology of the clock generator. The PLL is basically a negative feedback signal system. The feedback signal is used in the loop to lock the signal frequency and phase of the output end to the frequency and phase of the reference signal at the input end.

[0065] For example, Figure 1 As shown, when the clock frequency received by the phase clock generator 210 is 100 MHZ, four high-precision phase clocks with a phase of 1 GHz_0 degree, 1 GHz_90 degree, 1 GHz_180 degree and 1 GHz_270 degree can be generated through the PLL.

[0066] Sub-step S220: The multi-phase synchronization signal generator generates corresponding multi-channel phase timing signals according to the multi-channel phase clocks, and publishes the multi-channel phase timing signals to at least one task node.

[0067] After receiving the multi-phase clocks, the multi-phase synchronization signal generator 220 will generate corresponding multi-phase timing signals according to the multi-phase clocks, and will publish the obtained multi-phase timing signals to at least one task node.

[0068] In one implementation, generating corresponding multi-channel phase timing signals according to the multi-channel phase clocks includes sub-step S221.

[0069] Sub-step S221: The multi-phase synchronization signal generator generates multi-channel time timing stamps with preset time intervals based on the multi-channel phase clocks, and obtains corresponding multi-channel phase timing signals based on the multi-channel time timing stamps.

[0070] In this embodiment, the multi-phase synchronization signal generator 220 will generate corresponding multi-channel time timing stamps according to the received multi-channel phase clocks, and the time interval between the multi-channel time timing stamps is a preset time. After generating the multi-channel time timing stamps, the corresponding multi-channel phase timing signals will be obtained based on the multi-channel time timing stamps, and the obtained multi-channel phase timing signals will be respectively released to at least one task node.

[0071] Exemplarily, when receiving four phase clocks, the multi-phase synchronization signal generator will generate four time stamps with a time interval of 250ps according to the four phase clocks, where ps is a time unit, picosecond, and the symbol is ps. Based on the four time stamps, the corresponding four phase timing signals are obtained, and the obtained four phase timing signals are respectively issued to at least one task node, the four phase timing signals include 0 degree phase PPS, 90 degree phase PPS, 180 degree phase PPS and 270 degree phase PPS, and PPS represents a polynomial phase signal.

[0072] Step S300: at least one task node obtains the corresponding absolute time based on the reference time and the multi-channel phase timing signal, and performs time synchronization according to the absolute time.

[0073] In this implementation, after at least one task node receives the reference time and multi-channel phase timing signals, it will calculate based on the obtained reference time and multi-channel phase timing signals to obtain the absolute time corresponding to each task node, and each task node will perform time synchronization based on the obtained absolute time.

[0074] In one embodiment, Figure 4As shown, each task node 400 includes a corresponding synchronous clock receiving unit 410, and obtaining the corresponding absolute time based on the reference time and the multi-channel phase timing signal specifically includes sub-steps S310-S320.

[0075] Sub-step S310: The synchronous clock receiving unit receives the reference time and multiple phase timing signals.

[0076] It can be understood that each task node 400 includes a corresponding synchronous clock receiving unit 410, and the synchronous clock receiving unit 410 of each task node will receive the reference time and multi-channel phase timing signals.

[0077] Sub-step S320: The synchronous clock receiving unit performs calculation based on the reference time and the multi-channel phase timing signals to obtain the corresponding absolute time.

[0078] The synchronous clock receiving unit 410 of each task node 400 will accumulate the time offset according to the received reference time and multi-channel phase timing signals through a preset formula to obtain the absolute time of the task node corresponding to the synchronous clock receiving unit. The preset formula for calculating the absolute time is: t = T1 + T2 * N, where T1 is the reference time, T2 is the preset time of the time stamp interval, T2 can be 250ps, and N is the counter value, such as Figure 5 As shown, N is accumulated on the rising edges of the clocks of the 1GHz_0PPS, 1GHz_90PPS, 1GHz_180PPS and 1GHz_270PPS signals.

[0079] In one embodiment, Figure 6 As shown, the process of implementing time synchronization of at least one task node in the system further includes steps S400 to S600.

[0080] Step S400: The preset timer sends a reference time request command to the reference time synchronizer at preset intervals, so that the reference time synchronizer publishes the real-time acquired reference time to at least one task node based on the reference time request command, and sends a published instruction to the preset timer after successfully publishing the reference time.

[0081] It is understandable that the timestamp generator 200 also includes a preset timer 230 and a logic circuit 240. The preset timer 230 can preset a timing interval, in other words, preset an interval period as a preset period, and the preset period can be set as required. The preset timer 230 will send a reference time request command to the reference time synchronizer 100 once per preset interval, so that the reference time synchronizer 100 publishes the real-time acquired reference time to at least one task node according to the reference time request command sent by the preset timer 230, and after the reference time is successfully published to at least one task node, the reference time synchronizer 100 sends a published instruction to the preset timer 230, and the published instruction includes information that the reference time has been published.

[0082] Step S500: a preset timer receives a feedback signal output by at least one task node through a logic circuit after performing a logic AND operation after time synchronization.

[0083] In this embodiment, after at least one task node calculates the absolute time, at least one task node sends feedback that the timing data has been received to the timestamp generator 200, and the corresponding feedback of at least one task node can be REQ1, REQ1, ..., REQN. The logic circuit 240 performs a logical AND operation on at least one feedback, and outputs a corresponding feedback signal to the preset timer 230, and the feedback signal includes information that the timing data has been received, that is, information that the task node has completed time synchronization.

[0084] Step S600: After receiving the issued instruction and the feedback signal, the preset timer executes step S400.

[0085] After receiving the issued instruction and feedback signal, the preset timer 230 can determine that at least one task node has completed time synchronization, and then start the next timing, that is, re-execute step S400 to perform time synchronization of at least one task node again.

[0086] In this embodiment, accurate calibration is performed by continuously sending reference time request commands, thereby ensuring measurement accuracy at different temperatures. In addition, this method can achieve a measurement resolution of 250ps, making measurements in different temperature environments accurate and reliable.

[0087] This application can not only improve the time synchronization accuracy of each task node, but also make the time accuracy in different temperature environments more accurate and reliable.

[0088] Based on the above multi-phase time synchronization system 1, please refer to Figure 7 The embodiment of the present application further proposes a multi-phase time synchronization method, which is applied to a timestamp generator. Exemplarily, the method includes:

[0089] Step S10: Obtain the clock frequency generated by the high-stability clock generator.

[0090] Step S20: Generate a multi-channel phase timing signal based on the clock frequency, and publish the multi-channel phase timing signal to at least one task node, so that at least one task node can obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signal obtained in real time by the reference time synchronizer through the Beidou timing system, and perform time synchronization according to the absolute time.

[0091] It can be understood that the method steps of this embodiment correspond to the corresponding functions of the multi-phase time synchronization system 1 in the above embodiment, wherein the options of the above multi-phase time synchronization system 1 are also applicable to the method of this embodiment and will not be repeated here.

[0092] Based on the above multi-phase time synchronization system 1, please refer to Figure 8 The embodiment of the present application further proposes another multi-phase time synchronization method, which is applied to at least one task node. Exemplarily, the method includes:

[0093] Step S30: Obtaining the reference time The synchronizer obtains the reference time in real time through the Beidou timing system.

[0094] Step S40: Acquire a multi-channel phase timing signal generated by the timestamp generator based on the clock frequency generated by the high-stability clock generator.

[0095] Step S50: Obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signals, and perform time synchronization according to the absolute time.

[0096] It can be understood that the method steps of this embodiment correspond to the corresponding functions of the multi-phase time synchronization system 1 in the above embodiment, wherein the options of the above multi-phase time synchronization system 1 are also applicable to the method of this embodiment and will not be repeated here.

[0097] Based on the multi-phase time synchronization method of the above embodiment, Fig. 9 The structure diagram of a multi-phase time synchronization device 10 provided in an embodiment of the present application is shown, and is applied to at least one task node. The multi-phase time synchronization device 10 includes:

[0098] The reference time receiving module 11 is used to obtain the reference time synchronizer to obtain the reference time in real time through the Beidou timing system.

[0099] The timing signal acquisition module 12 is used to acquire the multi-channel phase timing signals generated by the timestamp generator based on the clock frequency generated by the high-stability clock generator.

[0100] The time synchronization module 13 is used to obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signals, and perform time synchronization according to the absolute time.

[0101] The multi-phase time synchronization device 10 of this embodiment is used to implement the multi-phase time synchronization system of the above embodiment. The implementation schemes and beneficial effects involved in the above embodiment are also applicable to this embodiment and will not be described in detail herein.

[0102] An embodiment of the present application also provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the multi-phase time synchronization system is executed.

[0103] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed on a processor, the multi-phase time synchronization system described above is implemented.

[0104] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0105] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0106] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0107] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A multi-phase time synchronization system, characterized in that: The system includes a reference time synchronizer, a timestamp generator and at least one task node; The reference time synchronizer is used to obtain the reference time in real time through the Beidou timing system, and publish the reference time to the at least one task node; The timestamp generator is used to receive the clock frequency generated by the high-stability clock generator, and generate a multi-channel phase timing signal based on the clock frequency; The at least one task node is used to obtain the corresponding absolute time based on the reference time and the multi-channel phase timing signal, and perform time synchronization according to the absolute time; The timestamp generator further includes a preset timer and a logic circuit, and the system further includes: The preset timer is used to send a reference time request command to the reference time synchronizer at every preset period, so that the reference time synchronizer publishes the reference time acquired in real time to the at least one task node based on the reference time request command, and sends a published instruction to the preset timer after successfully publishing the reference time; The preset timer is also used to receive a feedback signal output by the at least one task node through a logic and operation performed by the logic circuit after time synchronization; The preset timer is further configured to execute the step of sending a reference time request command to the reference time synchronizer at every preset period after receiving the issued instruction and the feedback signal.

2. The multi-phase time synchronization system according to claim 1, characterized in that: The timestamp generator includes a phase clock generator and a multi-phase synchronization signal generator, and the generating of a multi-channel phase timing signal based on the clock frequency includes: The phase clock generator is used to generate a multi-channel phase clock based on the clock frequency, and send the multi-channel phase clock to the multi-phase synchronization signal generator; The multi-phase synchronization signal generator is used to generate corresponding multi-channel phase timing signals according to the multi-channel phase clocks, and publish the multi-channel phase timing signals to the at least one task node.

3. The multi-phase time synchronization system according to claim 2, characterized in that: The generating corresponding multi-channel phase timing signals according to the multi-channel phase clocks includes: The multi-phase synchronization signal generator is used to generate multi-channel time timing stamps with preset time intervals based on the multi-channel phase clocks, and obtain corresponding multi-channel phase timing signals based on the multi-channel time timing stamps.

4. The multi-phase time synchronization system according to claim 1, characterized in that: The task node includes a synchronous clock receiving unit, and the corresponding absolute time is obtained based on the reference time and the multi-channel phase timing signal, including: The synchronous clock receiving unit is used to receive the reference time and the multi-channel phase timing signal; The synchronous clock receiving unit is further used to perform calculation based on the reference time and the multi-channel phase timing signals to obtain the corresponding absolute time.

5. A multi-phase time synchronization method, characterized in that: Applied to a timestamp generator, the method comprises: Get the clock frequency generated by the high-stability clock generator; Generate a multi-channel phase timing signal based on the clock frequency, and publish the multi-channel phase timing signal to at least one task node, so that the at least one task node obtains the corresponding absolute time based on the reference time obtained in real time by the reference time synchronizer through the Beidou timing system and the multi-channel phase timing signal, and performs time synchronization according to the absolute time; Sending a reference time request command to the reference time synchronizer at every preset period, so that the reference time synchronizer publishes the reference time acquired in real time to the at least one task node based on the reference time request command, and sends a published instruction to the preset timer of the timestamp generator after successfully publishing the reference time; receiving feedback from the at least one task node after time synchronization, and performing a logic AND operation using a logic circuit to generate a feedback signal; After receiving the issued instruction and the feedback signal, the step of sending a reference time request command to the reference time synchronizer at every preset period is performed.

6. A multi-phase time synchronization method, characterized in that: Applied to at least one task node, the method comprises: Obtaining the reference time The synchronizer obtains the reference time in real time through the Beidou timing system; Acquire a multi-channel phase timing signal generated by a timestamp generator based on a clock frequency generated by a high-stability clock generator; Obtaining a corresponding absolute time based on the reference time and the multi-channel phase timing signal, and performing time synchronization according to the absolute time; After time synchronization is performed, feedback is output to the logic circuit so that the logic circuit performs a logical AND operation on the feedback and outputs a feedback signal to the preset timer, thereby causing the preset timer to execute the step of sending a reference time request command to the reference time synchronizer at every preset period after receiving the issued instructions and the feedback signal of the reference time synchronizer.

7. A multi-phase time synchronization device, characterized in that: Applied to at least one task node, the device comprises: The reference time receiving module is used to obtain the reference time synchronizer to obtain the reference time in real time through the Beidou timing system; A timing signal acquisition module, used to acquire a multi-channel phase timing signal generated by a timestamp generator based on a clock frequency generated by a high-stability clock generator; a time synchronization module, used to obtain a corresponding absolute time based on the reference time and the multi-channel phase timing signal, and perform time synchronization according to the absolute time; The timestamp generator also includes a preset timer and a logic circuit; The preset timer is used to send a reference time request command to the reference time synchronizer at every preset period, so that the reference time synchronizer publishes the reference time acquired in real time to the at least one task node based on the reference time request command, and sends a published instruction to the preset timer after successfully publishing the reference time; The preset timer is also used to receive a feedback signal output by the at least one task node through a logic and operation performed by the logic circuit after time synchronization; The preset timer is further configured to execute the step of sending a reference time request command to the reference time synchronizer at every preset period after receiving the issued instruction and the feedback signal.

8. A terminal device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the multi-phase time synchronization method according to any one of claims 5 to 6 is executed.

9. A readable storage medium, characterized in that: The computer program stores a computer program, which executes the multi-phase time synchronization method according to any one of claims 5 to 6 when running on a processor.

Citation Information

Patent Citations

  • Clock synchronization method, device, equipment and system for multiple devices in building

    CN114629585A

  • Phase synchronous circuit

    CN1702970A