Inter-redundancy clock synchronization method and apparatus for redundant computer, and redundant computer
By using dual timeout timers and FPGAs to achieve clock synchronization in redundant computers, the problems of poor fault tolerance and low accuracy of traditional synchronization methods are solved, improving the system's fault tolerance and synchronization accuracy, and freeing up processor resources.
Patent Information
- Application Number
- PCT/CN2026/095482
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-13
- Filing Date
- 2026-05-08
- Publication Date
- 2026-11-19
AI Technical Summary
Traditional redundant computer clock synchronization suffers from a lack of fault tolerance mechanism, poor synchronization accuracy, and excessive processor resource consumption, affecting the mission cycle and fault tolerance of the flight control system.
Clock synchronization is achieved by using dual timeout timers and programmable logic devices (FPGAs). By controlling the start, stop, and reset operations of the timers, fault tolerance is improved, and the synchronization task is offloaded to the hardware FPGA to improve accuracy.
It achieves high fault tolerance and high-precision clock synchronization, freeing up processor resources and improving the performance and fault tolerance of the flight control system.
Smart Images

Figure CN2026095482_19112026_PF_FP_ABST
Abstract
Description
Redundant Computer Inter-Redundant Clock Synchronization Method, Device, and Redundant Computer Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, and redundant computer for synchronizing clocks between redundant computers. Background Technology
[0002] Redundant computers typically require high-precision clock synchronization to level out the time between multiple redundancies, ensuring that the task cycles of each redundancy begin at the same point in time. Traditional redundancy synchronization is achieved through software-based methods. This involves the software of each redundancy controlling the pull-up and pull-down of its synchronization output signal and monitoring the high and low changes of its synchronization input to determine the synchronization time point, ultimately achieving clock synchronization between redundancies.
[0003] Traditional software-based redundancy clock synchronization has the following problems:
[0004] 1. No fault tolerance mechanism: In traditional synchronization methods, if one redundancy fails to send a synchronization signal on time, the synchronization process of all redundancies will fail.
[0005] 2. Poor synchronization accuracy: Due to the slow speed of software operation of external I / O ports and the uncertainty of response time, the final synchronization accuracy is poor.
[0006] 3. Traditional synchronization methods will consume additional spare processor resources.
[0007] In typical applications of redundant flight control computers, such as flight control systems, the accuracy of synchronization, fault tolerance, and consumption of processor resources can all significantly affect the mission cycle, system performance, and fault tolerance of the flight control system. Summary of the Invention
[0008] Based on the above analysis, the embodiments of this application aim to provide a method, apparatus and redundant computer for inter-redundant clock synchronization, in order to solve the technical problems of poor fault tolerance and low synchronization accuracy of existing inter-redundant clock synchronization mechanisms.
[0009] In a first aspect, embodiments of this application provide a method for synchronizing clocks between redundant computers, comprising the following steps:
[0010] Step S100: Start the first synchronization timer and determine whether the remaining redundancies in the redundancy computer have not sent the first synchronization signal to this redundancy according to the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S200.
[0011] Step S200: Turn off the first synchronization timer and start the second synchronization timer, and determine the first target redundancy that has sent the first synchronization signal to this redundancy among the remaining redundancy based on the second synchronization timer;
[0012] Step S300: Restart the first synchronization timer and determine whether all the first target redundancies have failed to send the second synchronization signal to this redundancy according to the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S400.
[0013] Step S400: Turn off the first synchronization timer again and start the second synchronization timer again, and determine the second target redundancy among all the first target redundancy that has sent the second synchronization signal to this redundancy according to the second synchronization timer, wherein the second target redundancy is the redundancy that has successfully synchronized with this redundancy.
[0014] Based on a further improvement of the above method, step S100 includes:
[0015] Start the first synchronization timer and output the first synchronization output signal of this redundancy to the remaining redundancy;
[0016] If this redundancy receives the first synchronization signal from any of the remaining redundancies before the first synchronization timer reaches its timing end, then proceed to step S200; otherwise, output the result of synchronization failure.
[0017] Based on a further improvement of the above method, step S200, which involves determining the first target redundancy among the remaining redundancy that has already sent the first synchronization signal to this redundancy according to the second synchronization timer, includes:
[0018] Step 201: If the current redundancy receives the first synchronization signal from any new redundancy among the remaining redundancies before the second synchronization timer reaches the timing end, then the new redundancy is recorded as the first target redundancy and proceeds to step 202.
[0019] Step 202: Clear the second synchronization timer and start timing again, and proceed to step 201 until the second synchronization timer reaches the timing end.
[0020] Based on a further improvement of the above method, step S300 includes:
[0021] Restart the first synchronization timer and output the second synchronization output signal of this redundancy to all the first target redundancies;
[0022] If the current redundancy receives the second synchronization signal sent by any of the first target redundancies before the first synchronization timer reaches its timing end, then proceed to step S400; otherwise, output the result of synchronization failure.
[0023] Based on a further improvement of the above method, step S400, which involves determining the second target redundancy among all the first target redundancies that has already sent the second synchronization signal to this redundancy according to the second synchronization timer, includes:
[0024] Step 401: If, before the second synchronization timer reaches the timing end, this redundancy receives the second synchronization signal sent by any new redundancy among all the first target redundancies, then the new redundancy is recorded as the second target redundancy and proceeds to step 402.
[0025] Step 402: Clear the second synchronization timer and restart the timing, and proceed to step 401 until the second synchronization timer reaches the timing end.
[0026] Based on a further improvement of the above method, the first synchronization timer includes a first timer, the second synchronization timer includes a plurality of second timers, and the step S200 of determining the first target redundancy that has sent the first synchronization signal to the current redundancy based on the second synchronization timer includes:
[0027] Step 210: If the current redundancy receives the first synchronization signal sent by any new redundancy among the remaining redundancies before the i-th second timer reaches the timing end, then the new redundancy is recorded as the first target redundancy and proceeds to step 220, where the initial value of i is equal to 1.
[0028] Step 220: Turn off the i-th second timer and turn on the (i+1)-th second timer, and proceed to step 210 until the (N-1)-th second timer reaches the end of the timing process, where N is the number of redundancies.
[0029] Based on a further improvement of the above method, the first synchronization timer includes a first timer, the second synchronization timer includes a plurality of second timers, and the step S400 of determining the second target redundancy that has sent the second synchronization signal to the current redundancy based on the second synchronization timer includes:
[0030] Step 410: If, before the i-th second timer reaches its timing end, this redundancy receives the second synchronization signal sent by any new redundancy among all the first target redundancies, then the new redundancy is recorded as the second target redundancy and proceeds to step 420, where the initial value of i is equal to 1.
[0031] Step 420: Turn off the i-th second timer and turn on the (i+1)-th second timer, and proceed to step 410 until the (N-1)-th second timer reaches the end of the timing process, where N is the number of redundancies.
[0032] Based on a further improvement of the above method, the first synchronization timer includes a first timer, and the second synchronization timer includes a second timer.
[0033] Secondly, embodiments of this application provide a flight control system, wherein the flight control system is a redundant computer, and each redundancy includes:
[0034] Central processing unit, which operates according to a clock signal;
[0035] A programmable logic device, wherein the programmable logic device is communicatively interconnected with the central processing unit;
[0036] The programmable logic device is configured to execute the redundant computer redundant inter-clock synchronization method according to any one of the first aspects of the present application to keep the clock signals between the redundant components synchronized.
[0037] Thirdly, embodiments of this application provide a clock synchronization device between redundant computers, comprising:
[0038] The first determining module is configured to start a first synchronization timer and determine, based on the first synchronization timer, whether none of the remaining redundancies in the redundancy computer have sent the first synchronization signal to this redundancy. If so, the result of synchronization failure is output; otherwise, the second determining module is called.
[0039] The second determining module is configured to turn off the first synchronization timer and start the second synchronization timer, and determine the first target redundancy that has sent the first synchronization signal to this redundancy among the remaining redundancy based on the second synchronization timer;
[0040] The third determining module is configured to restart the first synchronization timer and determine, based on the first synchronization timer, whether all the first target redundancies have failed to send the second synchronization signal to this redundancy. If so, the result of synchronization failure is output; otherwise, the fourth determining module is called.
[0041] The fourth determining module is configured to shut down the first synchronization timer again and restart the second synchronization timer, and determine the second target redundancy among all the first target redundancies that has sent the second synchronization signal to this redundancy according to the second synchronization timer, wherein the second target redundancy is the redundancy that has successfully synchronized with this redundancy.
[0042] Compared with the prior art, this application can achieve at least one of the following beneficial effects:
[0043] 1. This application achieves partial synchronization by setting two different timeout timers and controlling their opening, closing, and resetting at appropriate times, thus possessing strong fault tolerance capabilities.
[0044] 2. The solution in this application uses a programmable logic device (FPGA) to implement the synchronization function. By offloading the synchronization task to the hardware FPGA, processor resources are freed up while the synchronization accuracy is greatly improved.
[0045] In this application, the above-described technical solutions can be combined with each other to achieve more preferred combinations. Other features and advantages of this application will be set forth in the following description, and some advantages may become apparent from the description or be learned by practicing this application. The objectives and other advantages of this application can be realized and obtained from the specific points highlighted in the description and accompanying drawings. Attached Figure Description
[0046] The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Throughout the drawings, the same reference numerals denote the same parts.
[0047] Figure 1 shows a system block diagram of a traditional redundant computer's inter-redundancy clock synchronization mechanism.
[0048] Figure 2 shows a system block diagram of the redundant computer inter-redundancy clock synchronization mechanism according to an embodiment of this application.
[0049] Figure 3 shows a flowchart of a method for synchronizing clocks between redundant computers according to an embodiment of this application.
[0050] Figure 4 shows another schematic flowchart of a redundant computer clock synchronization method according to an embodiment of this application.
[0051] Figure 5 shows a schematic diagram of the structure of a redundant computer redundant inter-clock synchronization device according to an embodiment of this application. Detailed Implementation
[0052] The preferred embodiments of this application are described in detail below with reference to the accompanying drawings, which constitute a part of this application and are used together with the embodiments of this application to illustrate the principles of this application, but are not intended to limit the scope of this application.
[0053] Figure 1 shows a system block diagram of a conventional redundant computer's inter-redundancy clock synchronization mechanism. As shown in Figure 1, the redundant computer has three redundancies, each representing a computing system. Each redundancy includes a central processing unit ("CPU"). The processors of the three redundancies are labeled "CPU0", "CPU1", and "CPU2" in Figure 1, respectively.
[0054] The following example illustrates the traditional method for clock synchronization between redundant CPUs in a multi-redundant computer. The synchronization process takes the first redundant CPU ("CPU0") synchronizing to the second redundant CPU ("CPU1") and the third redundant CPU ("CPU2") as an example. The steps of the traditional method for clock synchronization between redundant CPUs include:
[0055] 1. The software on CPU0 raises its own output synchronization signal at the synchronization start time.
[0056] 2. The software on CPU0 checks whether its own output signal wrap-around and the synchronization signals of other redundancy inputs are all pulled high;
[0057] 3. After the software on CPU0 detects that all the synchronization signals of other redundancy inputs have been pulled high, the software on CPU0 will pull the synchronization signal of the current redundancy output low; otherwise, it will output a synchronization failure result.
[0058] 4. The software on CPU0 detects whether its own output signal wrap-around and the synchronization signals of other redundancy inputs are pulled low;
[0059] 5. Once the software on CPU0 detects that all other redundant input synchronization signals have been pulled low, the software updates the system time and synchronization is complete; otherwise, it outputs a synchronization failure result.
[0060] It should be noted that the steps for synchronizing CPU1 to CPU2 and CPU0, and CPU2 to CPU0 and CPU1, are the same as those described above.
[0061] As described above, in traditional methods for clock synchronization between redundant computers, CPU0 needs to detect the synchronization signals of all other redundant computers to complete clock synchronization. Therefore, CPU0 has only two synchronization results: either it achieves clock synchronization with all redundant computers, or it fails to achieve clock synchronization with any of the redundant computers. Figure 2 shows a system block diagram of the clock synchronization mechanism between redundant computers according to an embodiment of this application. As shown in Figure 2, the redundant computer has three redundant computers, each including a central processing unit (“CPU”). The processors of the three redundant computers are labeled “CPU0”, “CPU1”, and “CPU2” in Figure 2, respectively. In addition, each redundant computer also includes a programmable logic device (“FPGA”), which is interconnected with the central processing unit. The programmable logic device includes a first synchronization timer and a second synchronization timer. The first synchronization timer can be one or more first timers, and the second synchronization timer can be one or more second timers. The first timer and the second timer can be the same or different types of timers.
[0062] The following describes a method for synchronizing clocks between redundant computers according to one embodiment of this application, using the first redundancy (i.e., "CPU0") as an example. The steps of the method for synchronizing clocks between redundant computers in this embodiment include:
[0063] 1. The clock synchronization process begins at the preset start time of synchronization or when CPU0 issues the synchronization command. First, FPGA0 sets the synchronization signal output to each remaining redundancy to a high level, and at the same time, starts a first timer.
[0064] 2. If the first timer reaches its end point without detecting any other high-level synchronization signal from the redundancy, the synchronization process will exit, and the synchronization task will be declared a failure.
[0065] 3. If any other redundancy sends a synchronization high level before the first timer reaches its end, then the first timer is turned off and a second timer is started simultaneously;
[0066] 4. If a new high-level synchronization signal is detected before the second timer reaches its end, the second timer is reset and restarted.
[0067] 5. If all other redundancies have been detected to have sent a synchronization high level before the second timer reaches its timing end, proceed to step 7;
[0068] 6. If the second timer reaches its end, proceed to step 7;
[0069] 7. Record all the margins of successfully sending a high synchronization level at this point. FPGA0 sets its own output synchronization level to low and restarts the first timer.
[0070] 8. If the first timer reaches its end point without detecting any other low-level synchronization signal from the redundancy, the synchronization process will exit and the synchronization task will be declared a failure.
[0071] 9. If a synchronization low level is detected from any other redundancy before the first timer reaches its end, the first timer is turned off and the second timer is turned on again.
[0072] 10. If a new low-level synchronization signal is detected before the second timer reaches its end, the second timer is cleared and restarted.
[0073] 11. If all the redundancies recorded in step 7 have been sent to a low level before the second timer reaches the end of the timing period, the synchronization ends, a completion interrupt is sent to the CPU, and the synchronization status is reported. The redundancy that has been successfully synchronized is the redundancy recorded in step 7.
[0074] 12. If the second timer reaches the end of the timing period, the synchronization ends. Record the remaining low level that has been sent, send a completion interrupt to the CPU, and report the synchronization status. The intersection of the recorded remaining low level and the remaining level recorded in step 7 is the remaining level of successful synchronization.
[0075] Figure 3 illustrates a flowchart of a method for synchronizing clocks between redundant computers according to the above embodiments. As shown in Figure 3, the process includes:
[0076] 1. First, determine whether the synchronization time has been reached. If so, send a high-level synchronization signal and start the first timer simultaneously. Otherwise, continue to determine whether the synchronization time has been reached.
[0077] 2. Determine if the first timer has timed out. If so, synchronization has failed, and the processor interrupt notification of the synchronization status is reported. Otherwise, proceed to the next step.
[0078] 3. Determine if any other redundancy has emitted a synchronization high level; if so, turn off the first timer and turn on the second timer; otherwise, return to the previous step.
[0079] 4. Determine if the second timer has timed out. If so, record the margin of successful transmission of the synchronization high level, transmit the synchronization low level, restart the first timer, and proceed to step 7. Otherwise, proceed to the next step.
[0080] 5. Determine if a new redundancy has been detected and a synchronization high level has been issued. If so, the second timer is restarted and proceeds to the next step.
[0081] 6. Determine whether all other redundancies have sent a synchronous high level. If so, record the redundancy that successfully sent a synchronous high level, send a synchronous low level, restart the first timer, and proceed to step 7. Otherwise, proceed to step 4.
[0082] 7. Determine if the first timer has timed out. If so, synchronization has failed, and the processor interrupt notification of the synchronization status is reported. Otherwise, proceed to the next step.
[0083] 8. Determine if any other redundancy has detected a synchronous low level; if so, turn off the first timer and turn on the second timer; otherwise, return to the previous step.
[0084] 9. Determine if the second timer has timed out. If so, record the margin of successful transmission of synchronization low level and take the intersection of it with the previously recorded margin of transmission of synchronization high level. This intersection is the set of margins of successful synchronization and proceed to step 12. Otherwise, proceed to the next step.
[0085] 10. Determine if a new redundancy has been detected and a synchronization low level has been issued. If so, the second timer is restarted and proceeds to the next step.
[0086] 11. Determine whether all previously recorded high-level synchronization levels have been successfully transmitted to low-level synchronization. If so, record the high-level synchronization levels successfully transmitted and take the intersection of this intersection with the previously recorded high-level synchronization levels. This intersection is the set of successfully synchronized high-level synchronization levels. Proceed to step 12. Otherwise, proceed to step 9.
[0087] 12. Report processor interrupt and notify synchronization status.
[0088] The following describes a method for synchronizing clocks between redundant computers according to another embodiment of this application, using the first redundancy (i.e., "CPU0") as an example. The steps of the method for synchronizing clocks between redundant computers in this embodiment include:
[0089] 1. The clock synchronization process begins at the preset start time of synchronization or when CPU0 issues the synchronization command. First, FPGA0 sets the synchronization signal output to each remaining redundancy to a high level, and at the same time, starts a first timer.
[0090] 2. If the first timer reaches its end point without detecting any other high-level synchronization signal from the redundancy, the synchronization process will exit, and the synchronization task will be declared a failure.
[0091] 3. If any other redundancy sends a synchronization high level before the first timer reaches its end, then the first timer is turned off and the first second timer is turned on simultaneously;
[0092] 4. If a new high-level synchronization signal is detected before the xth second timer reaches its timing end, the xth second timer is turned off, and the (x+1)th second timer is turned on. The initial value of x is 1.
[0093] 5. If at the xth time... max Before the second timer reaches its timing endpoint, if all other redundancies have been sent with a synchronization high level, proceed to step 7, where x max It equals N-1, where N is the number of redundant computers;
[0094] 6. If the x-th max When the second timer reaches its end, proceed to step 7;
[0095] 7. Record all the margins of successfully sending a high synchronization level at this point. FPGA0 sets its own output synchronization level to low and restarts the first timer.
[0096] 8. If the first timer reaches its end point without detecting any other low-level synchronization signal from the redundancy, the synchronization process will exit and the synchronization task will be declared a failure.
[0097] 9. If a synchronization low level is detected from any other redundancy before the first timer reaches its end, the first timer is turned off, and the first second timer is turned on again.
[0098] 10. If a new low-level synchronization signal is detected before the xth second timer reaches its timing end, the xth second timer is turned off, and the (x+1)th second timer is turned on. The initial value of x is 1.
[0099] 11. If at the xth time... max Before the second timer reaches its timing endpoint, it detects that all the redundancy recorded in step 7 has been sent to a low synchronization level, the synchronization ends, a completion interrupt is sent to the CPU, and the synchronization status is reported. The redundancy that has been successfully synchronized is the redundancy recorded in step 7.
[0100] 12. If the x-th max When the second timer reaches its end, synchronization ends. Record the remaining low level signal, send a completion interrupt to the CPU, and report the synchronization status. The intersection of the recorded remaining low level signal and the remaining low level signal recorded in step 7 is the remaining low level signal for successful synchronization.
[0101] Figure 4 shows a flowchart of a redundant computer inter-redundancy clock synchronization method according to an embodiment of this application. As shown in Figure 4, the redundant computer inter-redundancy clock synchronization method includes:
[0102] Step S100: Start the first synchronization timer and determine whether the remaining redundancies in the redundancy computer have not sent the first synchronization signal to this redundancy according to the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S200.
[0103] In this embodiment, the first synchronization timer can be a first timer.
[0104] In this embodiment, the first synchronization signal can be a high-level signal in the embodiment described above in conjunction with Figure 2.
[0105] The above text, in conjunction with Figure 2, has explained the "determining whether the remaining redundancies in the redundancy computer have not sent the first synchronization signal to this redundancy according to the first synchronization timer" in this embodiment, and will not be repeated here.
[0106] Step S200: Turn off the first synchronization timer and start the second synchronization timer, and determine the first target redundancy that has sent the first synchronization signal to this redundancy in the remaining redundancy according to the second synchronization timer.
[0107] In this embodiment, the second synchronization timer can be one or more second timers. The process of "determining the first target redundancy that has sent the first synchronization signal to this redundancy based on the second synchronization timer" in this embodiment has already been explained above with reference to Figure 2, and will not be repeated here.
[0108] Step S300: Restart the first synchronization timer and determine whether all first target redundancies have failed to send the second synchronization signal to this redundancy based on the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S400.
[0109] In this embodiment, the second synchronization signal can be the low-level signal described above in conjunction with Figure 2.
[0110] The above text, in conjunction with Figure 2, has explained the "determining whether all first target redundancies have not sent a second synchronization signal to this redundancy" in this embodiment, and will not be repeated here.
[0111] Step S400: Turn off the first synchronization timer again and start the second synchronization timer again, and determine the second target redundancy that has sent the second synchronization signal to this redundancy among all the first target redundancies according to the second synchronization timer, wherein the second target redundancy is the redundancy that has successfully synchronized with this redundancy.
[0112] In this embodiment, the second synchronization timer can be one or multiple second timers. The process of "determining the second target redundancy that has sent the second synchronization signal to this redundancy among all the first target redundancies based on the second synchronization timer" in this embodiment has already been explained above with reference to Figure 2, and will not be repeated here.
[0113] Figure 5 illustrates a redundant computer redundancy clock synchronization device according to an embodiment of this application. As shown in Figure 5, the redundant computer redundancy clock synchronization device of this embodiment includes: a first determining module 501, configured to start a first synchronization timer and determine, based on the first synchronization timer, whether none of the remaining redundancies in the redundant computer have sent a first synchronization signal to this redundancy; if so, output a synchronization failure result; otherwise, call a second determining module; a second determining module 502, configured to turn off the first synchronization timer and start a second synchronization timer, and determine, based on the second synchronization timer, a first target redundancy among the remaining redundancies that has sent the first synchronization signal to this redundancy; a third determining module 503, configured to restart the first synchronization timer and determine, based on the first synchronization timer, whether all the first target redundancies have not sent a second synchronization signal to this redundancy; if so, output a synchronization failure result; otherwise, call a fourth determining module; a fourth determining module 504, configured to turn off the first synchronization timer again and restart the second synchronization timer, and determine, based on the second synchronization timer, a second target redundancy among all the first target redundancies that has sent the second synchronization signal to this redundancy, wherein the second target redundancy is a redundancy that has successfully synchronized with this redundancy.
[0114] It should be understood that the modules described in the apparatus of Figure 5 correspond to the steps in the method described with reference to Figure 4. Therefore, the operations and features described above for the method also apply to the apparatus of Figure 5 and the modules contained therein, and will not be repeated here.
[0115] This application embodiment also provides a flight control system, which is a redundant computer, each redundancy including:
[0116] Central processing unit, which operates according to a clock signal;
[0117] A programmable logic device that communicates and interconnects with a central processing unit;
[0118] The programmable logic device is used to execute any of the redundant computer redundancy clock synchronization methods described above in this application to keep the clock signals between redundancies synchronized.
[0119] Compared with the prior art, the embodiments of this application can achieve at least one of the following beneficial effects:
[0120] 1. This application achieves partial synchronization by setting two different timeout timers and controlling their opening, closing, and resetting at appropriate times, thus possessing strong fault tolerance capabilities.
[0121] 2. The solution in this application uses a programmable logic device (FPGA) to implement the synchronization function. By offloading the synchronization task to the hardware FPGA, processor resources are freed up while the synchronization accuracy is greatly improved.
[0122] The above description is merely a preferred embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for clock synchronization between the nodes of a redundant computer system, characterized in that, Includes the following steps: Step S100: Start the first synchronization timer and determine whether the remaining redundancies in the redundancy computer have not sent the first synchronization signal to this redundancy according to the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S200. Step S200: Turn off the first synchronization timer and start the second synchronization timer, and determine the first target redundancy that has sent the first synchronization signal to this redundancy among the remaining redundancy based on the second synchronization timer; Step S300: Restart the first synchronization timer and determine whether all the first target redundancies have failed to send the second synchronization signal to this redundancy according to the first synchronization timer. If so, output the result of synchronization failure; otherwise, proceed to step S400. Step S400: Turn off the first synchronization timer again and start the second synchronization timer again, and determine the second target redundancy among all the first target redundancy that has sent the second synchronization signal to this redundancy according to the second synchronization timer, wherein the second target redundancy is the redundancy that has successfully synchronized with this redundancy.
2. The method of claim 1, wherein, Step S100 includes: Start the first synchronization timer and output the first synchronization output signal of this redundancy to the remaining redundancy; If this redundancy receives the first synchronization signal from any of the remaining redundancies before the first synchronization timer reaches its timing end, then proceed to step S200; otherwise, output the result of synchronization failure.
3. The method of claim 1, wherein, The step S200, which involves determining the first target redundancy among the remaining redundancy that has already sent the first synchronization signal to this redundancy based on the second synchronization timer, includes: Step 201: If the current redundancy receives the first synchronization signal from any new redundancy among the remaining redundancies before the second synchronization timer reaches the timing end, then the new redundancy is recorded as the first target redundancy and proceeds to step 202. Step 202: Clear the second synchronization timer and start timing again, and proceed to step 201 until the second synchronization timer reaches the timing end.
4. The method of claim 1, wherein, Step S300 includes: Restart the first synchronization timer and output the second synchronization output signal of this redundancy to all the first target redundancies; If the current redundancy receives the second synchronization signal sent by any of the first target redundancies before the first synchronization timer reaches its timing end, then proceed to step S400; otherwise, output the result of synchronization failure.
5. The method of claim 1, wherein, In step S400, determining the second target redundancy among all the first target redundancies that has sent the second synchronization signal to this redundancy based on the second synchronization timer includes: Step 401: If, before the second synchronization timer reaches the timing end, this redundancy receives the second synchronization signal sent by any new redundancy among all the first target redundancies, then the new redundancy is recorded as the second target redundancy and proceeds to step 402. Step 402: Clear the second synchronization timer and start timing again, and proceed to step 401 until the second synchronization timer reaches the timing end.
6. The method of claim 1, wherein, The first synchronization timer includes a first timer, and the second synchronization timer includes a plurality of second timers. The step S200, determining the first target redundancy among the remaining redundancy that has already sent the first synchronization signal to this redundancy based on the second synchronization timer, includes: Step 210: If the current redundancy receives the first synchronization signal sent by any new redundancy among the remaining redundancies before the i-th second timer reaches the timing end, then the new redundancy is recorded as the first target redundancy and proceeds to step 220, where the initial value of i is equal to 1. Step 220: Turn off the i-th second timer and turn on the (i+1)-th second timer, and proceed to step 210 until the (N-1)-th second timer reaches the end of the timing period, where N is the number of redundancies.
7. The method of claim 1, wherein, The first synchronization timer includes a first timer, and the second synchronization timer includes a plurality of second timers. The step S400, determining the second target redundancy that has already sent the second synchronization signal to the current redundancy based on the second synchronization timers, includes: Step 410: If, before the i-th second timer reaches its timing end, this redundancy receives the second synchronization signal sent by any new redundancy among all the first target redundancies, then the new redundancy is recorded as the second target redundancy and proceeds to step 420, where the initial value of i is equal to 1. Step 420: Turn off the i-th second timer and turn on the (i+1)-th second timer, and proceed to step 410 until the (N-1)-th second timer reaches the end of the timing period, where N is the number of margins.
8. The method of claim 1, wherein, The first synchronization timer includes a first timer, and the second synchronization timer includes a second timer.
9. A flight control system characterised in that, The flight control system is a redundant computer, and each redundancy includes: Central processing unit, which operates according to a clock signal; A programmable logic device, wherein the programmable logic device is communicatively interconnected with the central processing unit; The programmable logic device is used to execute the redundant computer redundant inter-redundancy clock synchronization method according to any one of claims 1-8 so that the clock signals between the redundancies are kept synchronized.
10. A redundant computer inter-rank clock synchronization apparatus, comprising: include: The first determining module is configured to start a first synchronization timer and determine, based on the first synchronization timer, whether none of the remaining redundancies in the redundancy computer have sent the first synchronization signal to this redundancy. If so, the result of synchronization failure is output; otherwise, the second determining module is called. The second determining module is configured to turn off the first synchronization timer and start the second synchronization timer, and determine the first target redundancy that has sent the first synchronization signal to this redundancy among the remaining redundancy based on the second synchronization timer; The third determining module is configured to restart the first synchronization timer and determine, based on the first synchronization timer, whether all the first target redundancies have failed to send the second synchronization signal to this redundancy. If so, the result of synchronization failure is output; otherwise, the fourth determining module is called. A fourth determining module, configured to close the first synchronization timer again and start the second synchronization timer again, and determine a second target margin from all the first target margins which has sent the second synchronization signal to the current margin according to the second synchronization timer, wherein the second target margin is a margin which has successfully synchronized with the current margin.
