A synchronization control method, device, equipment, synchronization system and storage medium

By obtaining synchronization parameters and optical communication technology, the problem that coaxial cables cannot achieve long-distance synchronization control is solved, and high-precision clock and timing synchronization is achieved, which is suitable for fields such as distributed radar and quantum computing.

CN114063505BActive Publication Date: 2024-11-12CHINAINSTRU & QUANTUMTECH (HEFEI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111340537.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-12
Publication Date
2024-11-12
Estimated Expiration
2041-11-12

AI Technical Summary

Technical Problem

The existing synchronization control method cannot achieve long-distance transmission when based on coaxial cables, resulting in the problem of degradation of timing control accuracy in fields such as distributed radar and quantum computing.

Method used

By obtaining synchronization parameters such as standard clock source, second pulse and transmission time of set frequency, the connection status of the target synchronization control daughter card is determined, and the synchronization between the synchronization control equipment and the target synchronization control daughter card is realized through optical communication, using digital dual mixing Frequency phase detection and PTP protocols improve synchronization accuracy.

Benefits of technology

High-precision clock and timing synchronization over long distances are achieved, solving the problem of short transmission distance of coaxial cables and easy interference, and improving the synchronization accuracy of the system to the sub-nanosecond level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114063505B_ABST
    Figure CN114063505B_ABST
Patent Text Reader

Abstract

The present invention discloses a synchronous control method, device, equipment, synchronization system and storage medium. The method is applied to a synchronous control device, and the method includes: obtaining synchronization parameters, the synchronization parameters include a standard clock source of a set frequency, a second pulse and a sending time; determining a target synchronous control subcard that is already in a connected state with the synchronous control device from a synchronous control subcard, the target synchronous control subcard being a synchronous control subcard that optically communicates with the synchronous control device; synchronizing the synchronous control device and the target synchronous control subcard through the synchronization parameters. Using this method, the synchronous control device effectively achieves synchronization between the synchronous control device and the target synchronous control subcard that optically communicates through the acquired synchronization parameters, and ensures long-distance communication between the synchronous control system and the target synchronous control subcard on the basis of achieving synchronization.
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 communication technology, and in particular, to a synchronization control method, device, equipment, synchronization system and storage medium. Background Art

[0002] Currently, the most commonly used synchronization control methods mostly use coaxial cables for timing transmission, such as clock signals and sampling signals in centralized radars.

[0003] In the prior art, when performing synchronous control, the host computer sends control instructions to the control card through the control software, and the control card generates corresponding control signals, such as timing, which are then sent to the device through the coaxial cable to control the device to work.

[0004] However, the existing synchronous control method cannot achieve long-distance transmission when controlling based on coaxial cables. Summary of the invention

[0005] The embodiments of the present invention provide a synchronization control method, device, equipment, synchronization system and storage medium, which effectively increase the transmission distance.

[0006] In a first aspect, an embodiment of the present invention provides a synchronization control method, including:

[0007] Acquire synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse, and a sending time;

[0008] Determine, from the synchronization control sub-cards, a target synchronization control sub-card that is already in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card in optical communication with the synchronization control device;

[0009] The synchronization control device and the target synchronization control subcard are synchronized by using the synchronization parameters.

[0010] In a second aspect, an embodiment of the present invention further provides a synchronization control device, which is configured in a synchronization control device, and the device includes:

[0011] An acquisition module, used for acquiring synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse and a sending time;

[0012] A determination module, used to determine, from the synchronization control sub-cards, a target synchronization control sub-card that is already in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card that is in optical communication with the synchronization control device;

[0013] The synchronization module is used to synchronize the synchronization control device and the target synchronization control subcard through the synchronization parameters.

[0014] In a third aspect, an embodiment of the present invention further provides a synchronization control device, including:

[0015] one or more processors;

[0016] A storage device for storing one or more programs;

[0017] The one or more programs are executed by the one or more processors, so that the one or more processors implement the method provided by the embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention provides a synchronization system, comprising: a synchronization control device as described in an embodiment of the present invention and at least one synchronization control daughter card; the synchronization control device and each of the synchronization control daughter cards are connected to perform optical communication;

[0019] The synchronization control device is used to synchronize a target synchronization control subcard connected to the synchronization control device;

[0020] The target synchronization control daughter card is used to control the target device.

[0021] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided by an embodiment of the present invention.

[0022] The embodiment of the present invention provides a synchronization control method, device, equipment, synchronization system and storage medium, firstly obtaining synchronization parameters, the synchronization parameters including a standard clock source of a set frequency, second pulses and a sending time; then determining a target synchronization control subcard that is already connected to the synchronization control device from the synchronization control subcard, the target synchronization control subcard being a synchronization control subcard that optically communicates with the synchronization control device; finally synchronizing the synchronization control device and the target synchronization control subcard through the synchronization parameters. By using the above technical solution, the synchronization control device effectively realizes the synchronization between the synchronization control device and the target synchronization control subcard that optically communicates through the acquired synchronization parameters, and ensures the long-distance communication between the synchronization control system and the target synchronization control subcard on the basis of achieving synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of a flow chart of a synchronization control method provided in Embodiment 1 of the present invention;

[0024] Figure 2 A schematic diagram of implementing a synchronization control method provided in the first embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the structure of a digital dual-mixing phase detection system provided in the first embodiment of the present invention;

[0026] Figure 4 A schematic diagram of a link delay calibration scenario provided in Embodiment 1 of the present invention;

[0027] Figure 5 A schematic diagram of link correction provided in Embodiment 1 of the present invention;

[0028] Figure 6 A schematic diagram of a process for determining the total link delay provided by an embodiment of the present invention;

[0029] Figure 7a A schematic diagram of a clock architecture is provided for the first embodiment of the present invention;

[0030] Figure 7b A schematic flow chart of another synchronization control method provided in the first embodiment of the present invention;

[0031] Figure 8 A schematic diagram of the structure of a synchronous control device provided in Embodiment 2 of the present invention;

[0032] Fig. 9 A schematic diagram of the structure of a synchronous control device provided in Embodiment 3 of the present invention;

[0033] Fig.10 A schematic diagram of the structure of a synchronization system provided in Embodiment 4 of the present invention;

[0034] Fig.11 A structural diagram of another synchronization system provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0036] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0037] The term “including” and its variations used in the present invention are open inclusions, that is, “including but not limited to.” The term “based on” means “based at least in part on.” The term “one embodiment” means “at least one embodiment.”

[0038] It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish the corresponding contents, and are not used to limit the order or interdependence.

[0039] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0040] Embodiment 1

[0041] Figure 1 A flowchart of a synchronization control method provided in Embodiment 1 of the present invention is provided. The method can be applied to the case where a synchronization control device is synchronized with a target synchronization control subcard. The method can be executed by a synchronization control device, wherein the device can be implemented by software and / or hardware and is generally integrated on the synchronization control device. This embodiment does not limit the specific structure of the synchronization control device, as long as synchronization can be achieved, such as the synchronization control device can include a digital dual-mixing phase detection and clock architecture.

[0042] The synchronous control device of the present invention can realize synchronization between the target synchronous control subcard and the synchronous control device, such as synchronization of time, clock and timing. The application field of the synchronous control device is not limited, and can be applied to quantum computing, distributed radar and power grid synchronization, etc.

[0043] In a multi-bit quantum computing system, the manipulation of quantum bits needs to be completed by multiple devices at the same time. Since each device works asynchronously under the local clock, the gate operation accuracy is reduced or inaccurate. Therefore, high-scalability precise synchronization control is required, such as the development of timing control technology, and the design of a set of devices that can be expanded to manipulate more than 500 bits, so as to reduce the manipulation error between each quantum bit to sub-nanoseconds. The target synchronization control daughter card in the present invention can be used to realize the synchronization control of devices in the field of quantum computing.

[0044] Distributed array radar is a new radar system that combines many spatially distributed radar array elements into an array and realizes coherent operation. Compared with conventional array radars, the spacing between distributed radar array elements is much larger than half a wavelength, and the array elements are usually tens of kilometers or even hundreds of kilometers apart. However, in distributed radars, each array element needs to work synchronously, which requires precise timing control. The present invention can achieve synchronization of each element through a target synchronization control subcard.

[0045] Traditional synchronous control is mainly distributed to various devices through coaxial cables, which has a short control distance.

[0046] In order to solve the above technical problems, Figure 1 As shown, a synchronization control method provided by Embodiment 1 of the present invention includes the following steps:

[0047] S110: Acquire synchronization parameters.

[0048] In this embodiment, the synchronization parameter can be considered as a parameter for the synchronization control device to achieve synchronization between the target synchronization control subcard and the synchronization control device. This embodiment does not limit the content of the synchronization parameter, which is determined based on the content to be synchronized. Different synchronization parameters may correspond to different contents to be synchronized.

[0049] The synchronization parameters are used to achieve synchronization between the synchronization control device and the target synchronization control subcard. The contents included in the synchronization parameters can be fixed and unaffected by the synchronization control device, the synchronization control subcard and the target synchronization control subcard. The synchronization parameters can be considered as time-related parameters, and the synchronization parameters include:

[0050] Standard clock source for setting frequency, pulse per second and transmission time.

[0051] In an example, the synchronization parameters may be default parameters in the synchronization control device, such as setting the frequency, second pulse and sending time of the standard clock source output by the synchronization control device and the target synchronization control daughter card through the reference clock mode set in the device.

[0052] In one example, the synchronization parameters may be transmitted by a standard system. This embodiment does not limit the standard system, as long as the standard system can output the synchronization parameters. Exemplarily, the standard system may be a GPS / Beidou rubidium atomic frequency standard system, which can receive GPS / Beidou satellite signals and complete the clock signal training of the rubidium atomic clock, and finally output a set frequency, such as a 10MHz standard clock source, a second pulse (PPS), TOD information, etc., for a synchronous control system, i.e., a synchronous control device, to provide standard time and clock signals.

[0053] After receiving the 10MHz standard clock source, pulse per second (PPS), TOD information and other information provided by the GPS / Beidou rubidium atomic frequency standard system, the synchronous control system realizes the frequency and phase synchronization alignment of the synchronous control system and the target synchronous control subcard clock signal with the 10MHz standard clock source and the recovery output of the pulse per second (PPS) based on the 10MHz standard clock source and synchronous control technology.

[0054] The target synchronization control subcard can receive the synchronization signal transmitted by the synchronization control system through a single-mode optical fiber, and generate a clock signal, a second pulse signal, and a Triger timing control signal locally. The synchronization signal includes a second pulse, a transmission time, a standard clock source for setting a frequency, a time difference, a clock difference, information required to interact to determine the time difference, and information required to interact to determine the clock difference.

[0055] The second pulse and the transmission time can be used for time synchronization, and the time difference can be the difference between the clock counters of the synchronous control device and the target synchronous control daughter card. The clock difference can be the phase difference between the clocks of the synchronous control device and the target synchronous control daughter card.

[0056] S120: Determine, from the synchronization control sub-cards, a target synchronization control sub-card that is connected to the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card in optical communication with the synchronization control device.

[0057] The synchronization control device and the synchronization control sub-card can achieve optical communication through single-mode optical fiber. The number of synchronization control sub-cards can be one or more. In this step, the target synchronization control sub-card that is currently connected to the synchronization control device can be selected from the synchronization control sub-cards. In the present application, the synchronization control device and the synchronization control sub-card can be located in one or more cabinets. The connection state between the synchronization control sub-card and the synchronization control device can be variable. When achieving synchronization, the synchronization control device can determine the target synchronization control sub-card that is in a connected state with the synchronization control device at the current synchronization moment, so as to achieve synchronization between the synchronization control device and the target synchronization control sub-card.

[0058] The synchronization parameters are used to achieve synchronization between the synchronization control device and the target synchronization control subcard. The synchronization content includes clock synchronization and time synchronization. Among them, the clock can be a commonly used timer in life, which is used to record time, and the time information format can be year, month, day, hour, minute, second, millisecond, microsecond, nanosecond. The clock can be used to maintain a time counter. In order to accurately synchronize time, the present application can first perform time synchronization and then perform clock synchronization, that is, the phase difference is theoretically completely aligned. After achieving accurate time synchronization, the synchronization control device can send down the timing so that the target synchronization control subcard can work accurately and synchronously.

[0059] When synchronizing, the synchronization control device can determine the target synchronization control subcard currently connected to the synchronization control device. The determination means are not limited here, such as determining by detecting the connection state of the synchronization interface, and the synchronization interface is used to realize the connection between the synchronization control device and the synchronization control subcard. This embodiment may include at least one synchronization control subcard, and each synchronization control subcard may correspond to a synchronization interface. The connection state of the corresponding synchronization control subcard and the synchronization control device is determined by detecting the state of each synchronization interface, and the synchronization control subcard connected to the synchronization control device can be considered as the target synchronization control subcard.

[0060] In one embodiment, this embodiment can determine the target synchronization control subcard once per set time period, and then execute S130 once, that is, synchronize the synchronization control device and all target synchronization control subcards connected to the synchronization control device through synchronization parameters.

[0061] S130: Synchronize the synchronization control device and the target synchronization control subcard using the synchronization parameter.

[0062] When the synchronization parameters and the target synchronization control daughter card are determined, the synchronization control device can achieve synchronization between the target synchronization control daughter card and the synchronization control device based on the synchronization parameters through optical communication.

[0063] Different synchronization control parameters may correspond to different synchronization strategies, which are not limited here. This step may be synchronized by a standard clock source; or may be synchronized by determining a time difference and a clock difference.

[0064] In this embodiment, the synchronization control device based on optical transmission can achieve synchronization through synchronous optical fiber, PTP and digital phase detection technology.

[0065] Figure 2 A schematic diagram of implementing a synchronization control method provided in the first embodiment of the present invention is shown in FIG. Figure 2As shown, the synchronous control device ensures that all clocks in the entire network run at a common frequency through synchronous optical fiber Sync-optical. The synchronous optical fiber technology uses clock data embedding and clock recovery technology to realize bidirectional frequency transmission between the synchronous control device and the synchronous control sub-card; the PTP precision clock protocol PTPv2 can be considered as a standardized high-precision network clock synchronization protocol to realize the delay measurement of the synchronous control device and the synchronous control sub-card; the digital phase detector, such as the fully digital dual mixer time difference (Digital Dual Mixer Time Difference, DDMTD), improves the accuracy of the system by measuring the phase of the clock, so that the system synchronization accuracy reaches the sub-nanosecond level, and realizes the phase measurement and tracking phase lock of the synchronous control device and the synchronous control sub-card. Among them, the system can be considered as a synchronous control device. In this embodiment, synchronous optical fiber, PTP and digital phase detection technology can also be used in the synchronous control sub-card. Synchronous optical fiber, PTP and digital phase detection technology can be executed in parallel.

[0066] In one embodiment, this embodiment can achieve high-precision phase measurement through a fully digital dual mixer time difference (DDMTD), such as accurately measuring the data recovery clock, that is, the phase difference between the clock transmitted by the synchronous control device and the local clock of the synchronous control subcard, and correcting the timestamp to achieve clock synchronization.

[0067] Figure 3 A schematic diagram of a digital dual-mixing phase detection structure provided in the first embodiment of the present invention, see Figure 3 In this embodiment, the synchronous control device can use a fully digital dual-mixing phase detector. Its working principle is shown in the figure: an auxiliary clock is generated by an external phase-locked loop, and the frequency of this signal is slightly different from the frequency of the measured signal (f PLL =N / (N+1)f clk ). This auxiliary signal is used inside the FPGA to sample clkA and clkB respectively. clkA and clkB can be the local clock and the externally transmitted clock respectively. Since the sampling frequency is very close to the frequency of the measured signal, the D flip-flop will output a very low-frequency signal. The phase difference of the measured signal is amplified after mixing, so the phase difference of the original signal can be calculated by measuring the phase difference of the trigger output signal. The DDMTD dual-mixing phase detector is implemented by digital methods and has the advantages of simple structure, good linearity and large dynamic range.

[0068] Figure 4 A schematic diagram of a link delay calibration scenario provided in the first embodiment of the present invention, see Figure 4The synchronization control device determines the delay between the synchronization control device and the synchronization control subcard through the link delay calibration technology, thereby achieving synchronization between the target synchronization control subcard and the synchronization control device based on the delay. Among them, the synchronization control device can be a master device, and the synchronization control subcard can be a slave device.

[0069] Each master and slave has some fixed transmission and reception delay (Δ TXM , Δ RXM , Δ TXS , Δ RXS ). They are the sum of the SFP optical module delay, PCB trace delay and FPGA internal delay. TXM It can be considered as the master device sending link delay, Δ RXM It can be considered as the master device receiving link delay, Δ TXS It can be considered as the link delay sent from the device, Δ RXS It can be considered as the link delay received by the slave device. The master device can be a synchronous control device, and the slave device can be a target synchronous control daughter card.

[0070] The other delay is the delay of the high-speed serial interface to align the clock with the data stream symbol. This delay is called bitslide (ε m and ε s ). m It can be considered as the master device bit sliding delay, ε s It can be considered as a bit sliding delay from the device.

[0071] In addition to the hardware delay, there is also the propagation delay of the data packet in the optical fiber (δ ms and δ sm ), due to the use of single-mode optical fiber, the wavelengths of light sent and received by the same cable are different, so the propagation delay δ ms and δ sm are not equal.

[0072] Based on the above parameters, the round-trip link delay between the master device and the slave device (delay mm ) is the sum of all these delays:

[0073]

[0074] bitslide(ε m and ε s ) can be easily obtained from software.

[0075] In synchronous control equipment, the clock offset of the master and slave devices needs to be calculated, and to calculate this offset, accurate one-way link delay is required:

[0076] delayms =ΔTXM+δms+ΔRXS+ε s

[0077] Theoretically, if the master-slave link is completely symmetrical, then the delay ms It's delay mm (Total link delay) is half, but unfortunately in reality due to various factors, the master-slave link is not completely symmetrical. Therefore, it is necessary to determine the fixed delay in the link through correction.

[0078] D flip-flop output signal phase difference The relationship between the phase difference Δφ and the input signal is:

[0079]

[0080] In synchronous control equipment, N=16384, f in =62.5MHz, and its theoretical measurement resolution is 0.98ps.

[0081] Figure 5 A schematic diagram of link correction is provided for the first embodiment of the present invention. In this embodiment, link correction can be performed while performing the operation. The specific link delay correction method is as follows: the total delay (δ = δms + δsm) of optical fiber transmission requires two optical fibers of different lengths, such as Figure 5 As shown, optical fibers of different lengths may be connected between the master device Master and the slave device Slave. The total delay of the optical fiber transmission between the first group of master and slave devices and the second group of master and slave devices may be the total delay of the optical fiber transmission between the third group of master and slave devices.

[0082] A synchronization control method provided in the first embodiment of the present invention first obtains synchronization parameters, the synchronization parameters including a standard clock source of a set frequency, second pulses and a sending time; from the synchronization control sub-card, a target synchronization control sub-card that is already connected to the synchronization control device is determined, the target synchronization control sub-card being a synchronization control sub-card that optically communicates with the synchronization control device; finally, the synchronization control device and the target synchronization control sub-card are synchronized through the synchronization parameters. By using the above technical solution, the synchronization control device effectively achieves synchronization between the synchronization control device and the target synchronization control sub-card that optically communicates through the acquired synchronization parameters, and ensures long-distance communication between the synchronization control system and the target synchronization control sub-card on the basis of achieving synchronization.

[0083] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0084] In one embodiment, synchronizing the synchronization control device and the target synchronization control daughter card by using the synchronization parameter includes:

[0085] Based on the standard clock source, using a synchronous control technology to synchronize the synchronous control device and the target synchronous control daughter card;

[0086] The second pulse and the sending time are transmitted to the target synchronization control daughter card.

[0087] In this embodiment, the synchronization control device can realize frequency and phase synchronization alignment of the clock signals of the synchronization control device and the synchronization control daughter card with the standard clock source based on the standard clock source and the synchronization control technology.

[0088] The synchronization control technology is not limited here, and an exemplary one may be a clock synchronization protocol.

[0089] This embodiment can also transmit the second pulse and the sending time to the target synchronous control subcard to synchronize the time of the synchronous control subcard with the synchronous control device. When there are multiple target synchronous control subcards, each synchronous control subcard can be synchronized with the synchronous control device. Among them, the sending time ensures that the timing measurement between the target synchronous control subcard and the synchronous control device is the same, such as hours, minutes and seconds. The target synchronous control subcard can adjust the step amount of its own clock counter based on the second pulse, that is, the minimum value of the counter each time it changes, such as increasing by one second each time. The second pulse can be used by the target synchronous control subcard to control the target device. When there are multiple target synchronous control subcards, each target synchronous control subcard can transmit the second pulse to the corresponding target device to achieve synchronization of the target device. The target device can be a device controlled by the target synchronous control subcard, such as controlling the time, clock and / or timing synchronization of each target device.

[0090] The target synchronization control daughter card adjusts its own second pulse based on the second pulse, adjusts its own sending time based on the sending time, and then compensates the time difference to its own clock to complete time synchronization.

[0091] The target synchronous control subcard completes clock synchronization based on the clock difference using the PID algorithm. The PID algorithm is an algorithm that performs control according to the proportion (P), integral (I) and differential (D) of the deviation. The standard clock source can provide a stable clock and world coordinated time UTC time information for the synchronous control device to keep consistent with the time on the network. In this embodiment, it is not limited how to perform time synchronization based on the second pulse and the sending time. For example, accurate time synchronization can be achieved by determining the time difference and the clock difference, combined with the second pulse and the sending time.

[0092] In one embodiment, synchronizing the synchronization control device and the target synchronization control daughter card by using the synchronization parameter includes:

[0093] Determining a unidirectional link delay between the synchronization control device and the target synchronization control daughter card;

[0094] Determine a main clock cycle, where the main clock cycle is a clock cycle required for the synchronization control device to work;

[0095] Determine the quotient of the unidirectional link delay and the master clock period as a time difference;

[0096] Determine the remainder of the unidirectional link delay and the master clock period as a clock difference;

[0097] The clock difference, the time difference, the second pulse and the sending time are transmitted to the target synchronous control subcard, so that the target synchronous control subcard completes time synchronization based on the second pulse, the sending time and the time difference, and completes clock synchronization based on the clock difference using a proportional integral differential PID algorithm.

[0098] In this embodiment, the synchronous control device can achieve time and clock synchronization between the synchronous control device and the target synchronous control subcard by determining the time difference and clock difference. When there are multiple target synchronous control subcards, time and clock synchronization is also ensured between the target synchronous control subcards.

[0099] It should be noted that in this embodiment, only the time difference can be determined to achieve time synchronization, or only the clock difference can be determined to achieve clock synchronization. The master clock can be considered as the clock required for the operation of each module in the synchronous control device. The master clock cycle can be considered as the clock cycle of the internal operation of the synchronous control device, which can be calculated based on the master clock. For example, the master clock of the synchronous control device is 62.5Mhz, and the corresponding master clock cycle is 16ns.

[0100] This embodiment does not limit how to determine the unidirectional link delay, for example, it can be determined based on the total link delay, such as half of the total link delay is determined as the unidirectional link delay; or the unidirectional link delay can be determined based on the total link delay and a fixed delay calibration parameter in the link.

[0101] In this embodiment, the synchronization control device transmits the time difference and the clock difference to the target synchronization control daughter card, which adjusts the time based on the time difference and adjusts the clock based on the clock difference to ensure the synchronization of the time and the clock.

[0102] It should be noted that the timing of transmitting the second pulse and the sending time in the present invention is not limited, and can be sent in real time when the synchronization control device and the target synchronization control device are connected, so as to synchronize the synchronization control device, each target synchronization control sub-card, and the target device.

[0103] In one example, the present application can firstly synchronize the synchronous control device and the target synchronous control subcard based on the standard clock source by using the synchronous control technology; then determine the unidirectional link delay between the synchronous control device and the target synchronous control subcard; determine the main clock cycle, which is the clock cycle required for the operation of the synchronous control device; determine the quotient of the unidirectional link delay and the main clock cycle as the time difference; determine the remainder of the unidirectional link delay and the main clock cycle as the clock difference; transmit the clock difference, the time difference, the second pulse and the sending time to the target synchronous control subcard, so that the target synchronous control subcard completes time synchronization based on the second pulse, the sending time and the time difference, and completes clock synchronization based on the clock difference using the proportional integral differential PID algorithm. When clock frequency phase synchronization is realized based on the standard clock source, the synchronous control device can transmit the second pulse and the sending time to the target synchronous control subcard. The second pulse and the sending time can be sent in real time when the target synchronous control subcard is connected to the synchronous control device, or can be transmitted only once. When transmitting the sending time and pulse-second multiple times, the target synchronization control daughter card can use any sending time and pulse-second, or use the sending time and pulse-second with the latest timestamp, which is not limited here and can be determined based on the actual application scenario.

[0104] In this embodiment, the time difference (quotient): Δ Time =delay ms / T clk ; Clock difference (remainder): Δ clk =delay ms %T clk .

[0105] Among them, Δ Time is the time difference, delay ms is the one-way link delay, T clk is the main clock period. clk is the clock difference.

[0106] In one embodiment, determining a unidirectional link delay includes:

[0107] Determining a total link delay between the synchronization control device and the target synchronization control subcard;

[0108] The unidirectional link delay is determined according to the total link delay and a pre-stored delay calibration parameter.

[0109] Theoretically, if the master-slave link is completely symmetrical, then the delay ms It's delay mmHowever, in actual situations, due to various factors, the master-slave link is not completely symmetrical. Therefore, this embodiment can determine the unidirectional link delay in combination with the delay calibration parameter. Among them, the delay calibration parameter can be a fixed delay parameter between the synchronous control device and the target control subcard. The content of the delay calibration parameter is not limited here and can be determined based on the actual scenario.

[0110] This embodiment does not limit the specific determination means when determining the unidirectional link delay. For example, the optical fiber link delay can be determined based on the total link delay and the delay calibration parameters, and then the unidirectional link delay can be determined based on the total optical fiber link delay and the delay calibration parameters.

[0111] Exemplarily, the delay of the optical fiber link is first determined:

[0112] delay' mm =delay mm -(ε s +ε m +Δ TXM +Δ RXM +Δ TXS +Δ RXS )

[0113] Then the one-way link delay: delay ms =delay' mm / 2+ε s +Δ TXM +Δ RXS ;

[0114] Delay mm is the total delay of the link. mm is the fiber link delay.

[0115] In one embodiment, the delay calibration parameters include:

[0116] The synchronous control device sends a link delay, the synchronous control device receives a link delay, the target synchronous control subcard receives a link delay, the target synchronous control subcard sends a link delay, the synchronous control device bit slide delay, and the target synchronous control subcard bit slide delay.

[0117] This embodiment does not limit the means for determining the total link delay, such as determining through interaction between the synchronization control device and the target synchronization control subcard. For example, the measurement parameters are determined through interaction, so as to determine the total link delay based on the measurement parameters. The measurement parameters may be parameters measured during the interaction, such as timestamp and / or phase difference.

[0118] In one embodiment, determining the total link delay between the synchronization control device and the target synchronization control subcard includes:

[0119] The total link delay is determined according to measurement parameters, where the measurement parameters include:

[0120] The synchronous control device sends a timestamp, the target synchronous control subcard sends a timestamp, the synchronous control device sends and receives a clock phase difference, the target synchronous control subcard sends and receives a clock phase difference, a main clock cycle, the synchronous control device receives a timestamp, and the target synchronous control subcard receives a timestamp.

[0121] When determining the total link delay according to the measurement parameters, the total link delay can be determined by analyzing the phase difference, the synchronization control device timestamp, and the target synchronization control subcard receiving timestamp. The determination means are not specifically limited here.

[0122] The synchronous control device receiving timestamp can be determined according to the synchronous control device receiving rising edge timestamp or the synchronous control device receiving falling edge timestamp. The target synchronous control subcard receiving timestamp can be determined according to the target synchronous control subcard receiving rising edge timestamp or the target synchronous control subcard receiving falling edge timestamp.

[0123] In one embodiment, if the phase difference between the sending and receiving clocks of the target synchronous control subcard is less than a first value and the rising edge timestamp received by the target synchronous control subcard is equal to the falling edge timestamp received by the target synchronous control subcard; then the receiving timestamp of the target synchronous control subcard is the falling edge timestamp received by the target synchronous control subcard plus one; otherwise, the receiving timestamp of the target synchronous control subcard is the rising edge timestamp received by the target synchronous control subcard;

[0124] If the phase difference between the sending and receiving clocks of the synchronous control device is greater than a second value, and the rising edge timestamp of the synchronous control device is not equal to the falling edge timestamp of the synchronous control device, then the receiving timestamp of the synchronous control device is the falling edge timestamp of the synchronous control device; otherwise, the receiving timestamp of the synchronous control device is the rising edge timestamp of the synchronous control device.

[0125] The specific values ​​of the first value and the second value are not limited here. For example, the first value may be zero, and the second value may be 10 ns.

[0126] Figure 6 A schematic diagram of a process for determining the total link delay provided by an embodiment of the present invention, see Figure 6 , t1 is the timestamp sent by the master device, t 2r The rising edge timestamp received from the device, t 2f t is the falling edge timestamp received by the slave device, t3 is the sending timestamp of the slave device, and t 4r The master device receives the rising edge timestamp, t 4fThe master device receives the falling edge timestamp, phase mm The phase difference between sending and receiving time of the main device, phase mm The value range is 0 to 360 degrees. ms The value ranges from -180 to +180. clk is the main clock cycle, delay mm is the total link delay. The master device may be a synchronous control device, and the slave device may be a target synchronous control subcard.

[0127] Figure 7a A clock architecture diagram is provided for the first embodiment of the present invention. Figure 7a , both the synchronous control device and the synchronous control daughter card can use Figure 7a The clock architecture shown in the figure. With this architecture, the clock difference between the master and slave devices can be compensated by the clock difference. In the figure, SI549 is a digitally controlled crystal oscillator, which is used to generate the auxiliary clock required by the DDMTD algorithm; VC-TCXO is a voltage-controlled temperature-compensated crystal oscillator; PLL refers to the clock generation chip; FPGA is a field programmable gate array; GTH is a high-speed serial interface built into the FPGA chip, used for optical communication; DDMTD and PID are two algorithms executed in the FPGA. The principle is that the phase difference between the clock recovered by the GTH interface and the clock generated by the local PLL is measured in real time through DDMTD. The phase difference is passed through the PID algorithm module to generate the voltage control word of the DAC. The DAC output voltage is used to adjust the VC-TCXO crystal oscillator, and the clock generated by the local PLL is adjusted in real time, so that the local clock and the recovered clock of the GTH are in the same frequency and phase.

[0128] a) Figure 7b A flowchart of another synchronization control method provided in the first embodiment of the present invention is shown in FIG. Figure 7b , connect the power supply, interface connection and optical fiber of the synchronization control device and the synchronization control subcard, and then power on. This example takes the GPS / Beidou rubidium atomic frequency standard system as an example to provide the standard clock source, second pulse and transmission time for the synchronization control device. After power-on, turn on the power switch of the GPS / Beidou rubidium atomic frequency standard system, receive the time and frequency information of the GPS / Beidou system, and the GPS / Beidou rubidium atomic frequency standard system tames and calibrates the rubidium atomic clock based on the received time and frequency information of the GPS / Beidou system to output a 10MHz high-precision, high-stability standard clock signal (i.e., standard clock source), second pulse (PPS), time information (TOD information) (i.e., transmission time), etc.;

[0129] The synchronous control device locks the frequency and phase of the external input clock signal and uses it as a working reference clock; the external input clock signal can be a standard clock signal, and the frequency can be a set frequency such as 10M or 20M.

[0130] The synchronous control device detects the connection status of the synchronous interface in real time. If it detects that the synchronous interface is connected, the synchronous control device realizes clock synchronization control with the connected synchronous control sub-card through optical fiber communication, and forwards the second pulse signal to the corresponding synchronous control sub-card; the synchronous control is repeated every 5 seconds (to achieve plug-and-play of the sub-nodes of the synchronous system). The synchronous system includes a synchronous control device and a synchronous control sub-card. The synchronous control device is the master device, and the synchronous control sub-card is the slave device. The timing control can be achieved by connecting the master device's synchronous interface to the slave device's synchronous interface to realize the timing distribution and precise control.

[0131] The delay calibration parameters may be pre-configured in the synchronization control device. The reference clock mode may indicate the frequency at which the synchronization control device and the target synchronization control subcard are synchronized, such as the set frequency standard clock source with the same frequency and phase output by the target synchronization control subcard. The reference clock mode may also provide synchronization parameters.

[0132] The synchronous control device can synchronize all target synchronous control subcards connected to the synchronous control device every 5 seconds, that is, realize the synchronous control system, that is, the synchronous control device, and the subnode, that is, the target synchronous control subcard, time delay calibration and clock synchronization control (realized by time difference and clock difference), and forward the second pulse and TOD information. The 20MHz standard clock source and second pulse signal with the same frequency and phase output by the synchronous control subcard can be output to the target device. 20MHz is only an example and is not limited here.

[0133] Based on the Ethernet technology used in optical transmission control technology, without occupying additional bandwidth and being compatible with the original Ethernet application, it comprehensively uses physical layer synchronization (i.e., optical communication between synchronization control equipment and target control subcards through single-mode optical fiber), timestamp alignment (time stamp alignment between target synchronization control subcards and synchronization control equipment, and between target synchronization control subcards based on time difference), phase measurement and compensation (i.e., clock alignment based on clock difference), automatic delay calibration (time and clock alignment), and other technologies to achieve high-precision frequency source broadcasting and sub-nanosecond time synchronization between up to tens of thousands of nodes. This technology has the outstanding advantages of high synchronization accuracy, good compatibility, low cost, and the ability to automatically calibrate delay changes caused by optical fiber length and environmental parameters. It has been widely used in distributed network measurement and control, time unification system, industrial automation control, distributed base stations and remote radio frequency systems, power grid synchronization, adaptive array antennas, multi-base radars, indoor positioning, time and frequency transmission, high-energy physics, large scientific instruments and devices, and other occasions.

[0134] Embodiment 2

[0135] Figure 8This is a structural schematic diagram of a synchronization control device provided in Embodiment 2 of the present invention, which can be applied to synchronize a synchronization control device with a target synchronization control subcard, wherein the device can be implemented by software and / or hardware and configured on the synchronization control device.

[0136] like Figure 8 As shown, the device comprises:

[0137] An acquisition module 810 is used to acquire synchronization parameters, wherein the synchronization parameters include: a standard clock source for setting a frequency, a second pulse, and a sending time;

[0138] A determination module 820 is used to determine, from the synchronization control sub-cards, a target synchronization control sub-card that is in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card in optical communication with the synchronization control device;

[0139] The synchronization module 830 is used to synchronize the synchronization control device and the target synchronization control subcard through the synchronization parameters.

[0140] In this embodiment, the device first obtains synchronization parameters through the acquisition module 810, and the synchronization parameters include a standard clock source of a set frequency, a second pulse and a sending time; secondly, through the determination module 820, it determines from the synchronization control sub-card a target synchronization control sub-card that is already connected to the synchronization control device, and the target synchronization control sub-card is a synchronization control sub-card that optically communicates with the synchronization control device; finally, through the synchronization module 830, the synchronization control device and the target synchronization control sub-card are synchronized through the synchronization parameters.

[0141] This embodiment provides a synchronization control device. Using the above-mentioned synchronization control device, the synchronization control device effectively realizes the synchronization between the synchronization control device and the target synchronization control sub-card of optical communication through the acquired synchronization parameters, thereby ensuring the long-distance communication between the synchronization control system and the target synchronization control sub-card on the basis of achieving synchronization.

[0142] In one embodiment, the synchronization module 830 synchronizes the synchronization control device and the target synchronization control subcard through the synchronization parameter, including:

[0143] Based on the standard clock source, using a synchronous control technology to synchronize the synchronous control device and the target synchronous control daughter card;

[0144] The second pulse and the sending time are transmitted to the target synchronization control daughter card.

[0145] In one embodiment, the synchronization module 830 synchronizes the synchronization control device and the target synchronization control subcard through the synchronization parameter, including:

[0146] Determining a unidirectional link delay between the synchronization control device and the target synchronization control daughter card;

[0147] Determine a main clock cycle, where the main clock cycle is a clock cycle required for the synchronization control device to work;

[0148] Determine the quotient of the unidirectional link delay and the master clock period as a time difference;

[0149] Determine the remainder of the unidirectional link delay and the master clock period as a clock difference;

[0150] The clock difference, the time difference, the second pulse and the sending time are transmitted to the target synchronous control subcard, so that the target synchronous control subcard completes time synchronization based on the second pulse, the sending time and the time difference, and completes clock synchronization based on the clock difference using a proportional integral differential PID algorithm.

[0151] In one embodiment, the synchronization module 830 determines the unidirectional link delay, including:

[0152] Determining a total link delay between the synchronization control device and the target synchronization control subcard;

[0153] The unidirectional link delay is determined according to the total link delay and a pre-stored delay calibration parameter.

[0154] In one embodiment, the delay calibration parameters include:

[0155] The synchronous control device sends a link delay, the synchronous control device receives a link delay, the target synchronous control subcard receives a link delay, the target synchronous control subcard sends a link delay, the synchronous control device bit slide delay, and the target synchronous control subcard bit slide delay.

[0156] In one embodiment, the synchronization module 830 determines the total link delay between the synchronization control device and the target synchronization control subcard, including:

[0157] The total link delay is determined according to measurement parameters, where the measurement parameters include:

[0158] The synchronous control device sends a timestamp, the target synchronous control subcard sends a timestamp, the synchronous control device sends and receives a clock phase difference, the target synchronous control subcard sends and receives a clock phase difference, a main clock cycle, the synchronous control device receives a timestamp, and the target synchronous control subcard receives a timestamp.

[0159] In one embodiment, if the phase difference between the sending and receiving clocks of the target synchronous control subcard is less than a first value and the rising edge timestamp received by the target synchronous control subcard is equal to the falling edge timestamp received by the target synchronous control subcard; then the receiving timestamp of the target synchronous control subcard is the falling edge timestamp received by the target synchronous control subcard plus one; otherwise, the receiving timestamp of the target synchronous control subcard is the rising edge timestamp received by the target synchronous control subcard;

[0160] If the phase difference between the sending and receiving clocks of the synchronous control device is greater than a second value, and the rising edge timestamp of the synchronous control device is not equal to the falling edge timestamp of the synchronous control device, then the receiving timestamp of the synchronous control device is the falling edge timestamp of the synchronous control device; otherwise, the receiving timestamp of the synchronous control device is the rising edge timestamp of the synchronous control device.

[0161] The above-mentioned synchronous control device can execute the synchronous control method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0162] Embodiment 3

[0163] Fig. 9 This is a schematic diagram of the structure of a synchronous control device provided in Embodiment 3 of the present invention. Fig. 9 As shown, the synchronous control device provided by the fourth embodiment of the present invention includes: one or more processors 41 and a storage device 42; the processor 41 in the synchronous control device can be one or more, Fig. 9 A processor 41 is taken as an example; the storage device 42 is used to store one or more programs; the one or more programs are executed by the one or more processors 41, so that the one or more processors 41 implement the synchronization control method as described in any one of the embodiments of the present invention.

[0164] The synchronous control device may further include: an input device 43 and an output device 44 .

[0165] The processor 41, storage device 42, input device 43 and output device 44 in the synchronous control device can be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0166] The storage device 42 in the synchronization control device is a computer-readable storage medium that can be used to store one or more programs, which can be software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the synchronization control method provided in the embodiment of the present invention (for example, the attached Figure 8The modules in the synchronous control device shown include: an acquisition module 810, a determination module 820 and a synchronization module 830). The processor 41 executes various functional applications and data processing of the synchronous control device by running the software programs, instructions and modules stored in the storage device 42, that is, the synchronous control method in the above method embodiment is implemented.

[0167] The storage device 42 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the synchronization control device, etc. In addition, the storage device 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0168] The input device 43 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the synchronous control device. The output device 44 may include a display device such as a display screen.

[0169] Furthermore, when one or more programs included in the above-mentioned synchronization control device are executed by the one or more processors 41, the program performs the following operations:

[0170] Acquire synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse, and a sending time;

[0171] Determine, from the synchronization control sub-cards, a target synchronization control sub-card that is already in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card in optical communication with the synchronization control device;

[0172] The synchronization control device and the target synchronization control subcard are synchronized by using the synchronization parameters.

[0173] Embodiment 4

[0174] Fig.10 A structural schematic diagram of a synchronization system provided in Embodiment 4 of the present invention, wherein the synchronization system comprises the synchronization control device and at least one synchronization control daughter card according to the embodiment of the present invention; the synchronization control device performs optical communication after being connected with each of the synchronization control daughter cards;

[0175] The synchronization control device is used to synchronize a target synchronization control subcard connected to the synchronization control device;

[0176] The target synchronization control daughter card is used to control the target device.

[0177] The synchronous control daughter card can be connected to the synchronous control device by optical fiber. When there are multiple target synchronous control daughter cards, each target device is synchronized, such as time, clock and / or timing synchronization.

[0178] The main disadvantage of timing transmission based on coaxial cable is that it cannot be transmitted over long distances. When the distance between the controlled devices reaches tens of kilometers, if coaxial cable is used, the signal attenuation is large, and a high power output is required to generate timing. In addition, the electrical signal is very susceptible to external interference during long-distance transmission. Therefore, this method is not feasible for long-distance timing control. The present invention proposes a control method based on optical transmission that can effectively solve the problem of long-distance timing transmission. Optical communication has the advantages of long transmission distance, economical energy saving, fast communication speed, and transmission bandwidth.

[0179] The control method of optical transmission realizes high-precision time synchronization between master and slave devices. It can realize sub-nanosecond precision clock distribution of multiple nodes within a range of tens of kilometers, and can realize frequency phase locking and nanosecond timing synchronization between multiple nodes over long distances, ensuring the realization of global synchronous data acquisition and control process.

[0180] Fig.11 A structural diagram of another synchronization system provided in Embodiment 4 of the present invention is shown in FIG. Fig.11 As shown, the synchronization system may include a synchronization control device, that is, a synchronization control system and at least one synchronization control subcard. The setting position of each synchronization control subcard may be different. For example, a synchronization control subcard connected to a target device. The target device may include device 1, device 2...device N. The connection between the synchronization control device and the synchronization control subcard may be connected in the form of a single-mode optical fiber. The synchronization control subcard and the target device may be connected by a coaxial cable, and the transmission of TOD may be transmitted through a 485 twisted pair. The second pulse (i.e., 1PPS) and the standard clock source (e.g., 10MHz) transmitted by the GPS / Beidou rubidium atomic frequency standard system may be transmitted to the synchronization control device through a coaxial cable. When there are multiple synchronization control subcards, some synchronization control subcards may be set in the control center for control purposes. The control center may include a GPS / Beidou rubidium atomic frequency standard system, a synchronization control device, and some synchronization control subcards. The wireless synchronization module and the user device may be set according to actual application requirements, which are not limited here. The wireless synchronization module may be the same device as the target device.

[0181] Embodiment 5

[0182] Embodiment 5 of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it is used to perform a synchronization control method. The method includes:

[0183] Acquire synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse, and a sending time;

[0184] Determine a target synchronization control daughter card that is in a connected state with the synchronization control device, wherein the target synchronization control daughter card is a synchronization control daughter card in optical communication with the synchronization control device;

[0185] The synchronization control device and the target synchronization control subcard are synchronized by using the synchronization parameters.

[0186] Optionally, when the program is executed by a processor, it can also be used to execute the synchronization control method provided by any embodiment of the present invention.

[0187] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.

[0188] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0189] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.

[0190] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0191] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A synchronous control method, characterized in that: Applied to a synchronous control device, the method comprises: Acquire synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse, and a sending time; Determine, from the synchronization control sub-cards, a target synchronization control sub-card that is already in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card in optical communication with the synchronization control device; Synchronizing the synchronization control device and the target synchronization control subcard through the synchronization parameter; Synchronizing the synchronization control device and the target synchronization control subcard by using the synchronization parameter, including: Determining a unidirectional link delay between the synchronization control device and the target synchronization control daughter card; Determine a main clock cycle, where the main clock cycle is a clock cycle required for the synchronization control device to work; Determine the quotient of the unidirectional link delay and the master clock period as a time difference; Determine the remainder of the unidirectional link delay and the master clock period as a clock difference; The clock difference, the time difference, the second pulse and the sending time are transmitted to the target synchronous control subcard, so that the target synchronous control subcard completes time synchronization based on the second pulse, the sending time and the time difference, and completes clock synchronization based on the clock difference using a proportional integral differential PID algorithm.

2. The method according to claim 1, characterized in that Synchronizing the synchronization control device and the target synchronization control subcard by using the synchronization parameter, including: Based on the standard clock source, using a synchronous control technology to synchronize the synchronous control device and the target synchronous control daughter card; The second pulse and the sending time are transmitted to the target synchronization control daughter card.

3. The method according to claim 1, characterized in that: Determine one-way link latency, including: Determining a total link delay between the synchronization control device and the target synchronization control subcard; The unidirectional link delay is determined according to the total link delay and a pre-stored delay calibration parameter.

4. The method according to claim 3, characterized in that The delay calibration parameters include: The synchronous control device sends a link delay, the synchronous control device receives a link delay, the target synchronous control subcard receives a link delay, the target synchronous control subcard sends a link delay, the synchronous control device bit slide delay, and the target synchronous control subcard bit slide delay.

5. The method according to claim 3, characterized in that: The determining the total link delay between the synchronization control device and the target synchronization control subcard includes: The total link delay is determined according to measurement parameters, where the measurement parameters include: The synchronous control device sends a timestamp, the target synchronous control subcard sends a timestamp, the synchronous control device sends and receives a clock phase difference, the target synchronous control subcard sends and receives a clock phase difference, a main clock cycle, the synchronous control device receives a timestamp, and the target synchronous control subcard receives a timestamp.

6. The method according to claim 5, characterized in that Also includes: If the phase difference between the sending and receiving clocks of the target synchronous control subcard is less than the first value and the rising edge timestamp received by the target synchronous control subcard is equal to the falling edge timestamp received by the target synchronous control subcard; then the receiving timestamp of the target synchronous control subcard is the falling edge timestamp received by the target synchronous control subcard plus one; otherwise, the receiving timestamp of the target synchronous control subcard is the rising edge timestamp received by the target synchronous control subcard; If the phase difference between the sending and receiving clocks of the synchronous control device is greater than a second value, and the rising edge timestamp of the synchronous control device is not equal to the falling edge timestamp of the synchronous control device, then the receiving timestamp of the synchronous control device is the falling edge timestamp of the synchronous control device; Otherwise, the timestamp received by the synchronous control device is the rising edge timestamp of the synchronous control device.

7. A synchronous control device, characterized in that: Configured in a synchronous control device, the device comprises: An acquisition module, used for acquiring synchronization parameters, wherein the synchronization parameters include a standard clock source of a set frequency, a second pulse and a sending time; A determination module, used to determine, from the synchronization control sub-cards, a target synchronization control sub-card that is already in a connected state with the synchronization control device, wherein the target synchronization control sub-card is a synchronization control sub-card that is in optical communication with the synchronization control device; A synchronization module is used to synchronize the synchronization control device and the target synchronization control subcard through the synchronization parameters; the synchronization of the synchronization control device and the target synchronization control subcard through the synchronization parameters includes: determining the unidirectional link delay between the synchronization control device and the target synchronization control subcard; determining a main clock cycle, the main clock cycle being a clock cycle required for the synchronization control device to work; determining the quotient of the unidirectional link delay and the main clock cycle as a time difference; determining the remainder of the unidirectional link delay and the main clock cycle as a clock difference; transmitting the clock difference, the time difference, the second pulse and the sending time to the target synchronization control subcard, so that the target synchronization control subcard completes time synchronization based on the second pulse, the sending time and the time difference, and based on the clock difference, completes clock synchronization using a proportional integral differential PID algorithm.

8. A synchronous control device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A synchronization system, characterized in that: include: The synchronous control device according to claim 8 and at least one synchronous control daughter card; the synchronous control device and each of the synchronous control daughter cards are connected to perform optical communication; The synchronization control device is used to synchronize a target synchronization control subcard connected to the synchronization control device; The target synchronization control daughter card is used to control the target device.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.