A computer platform dual-system synchronization method, device, equipment and medium

By using the inter-system bus and internal bus commands in the secure computer platform to determine the status of the active and backup systems and synchronize data, the problem of unsatisfactory synchronization in the traditional method is solved, efficient data interaction and status synchronization are achieved, and the system's reliability is improved. Availability and scalability.

CN114528242BActive Publication Date: 2024-10-01NEW UNITED RAIL TRANSIT TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210157879.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-10-01
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

In secure computer platforms, the traditional dual-system synchronization method results in unsatisfactory data and status synchronization, high system operating overhead and low availability, and a high failure probability due to data transmission errors, making it difficult to meet system scalability and real-time recovery requirements.

Method used

By obtaining the suppression commands and initialization commands transmitted by the inter-system bus and internal bus, the operating status of the main and backup systems is determined, and based on this, intelligent data synchronization is performed to reduce unnecessary data interaction, using dual redundant buses and Flexray+CanFD combination Intranet bus mechanism realizes synchronization of key information and status.

Benefits of technology

It reduces system overhead and failure probability, improves system availability and scalability, achieves more complete active and backup system status synchronization, and improves system security and operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528242B_ABST
    Figure CN114528242B_ABST
Patent Text Reader

Abstract

The present application discloses a computer platform dual-system synchronization method, device, equipment and medium, which are applied to any system security mainboard in the dual-system platform. The method includes: obtaining a suppression command sent by the opposite system through the internal bus, parsing the suppression command to obtain the current running state of the opposite system, obtaining an inter-system initialization command sent by the opposite system, and determining the current running state of the present system according to the inter-system initialization command and the current running state of the opposite system. If the current running state of the present system is the main system state, the first dual-system synchronization data is sent to the security mainboard of the opposite system; if the current running state of the present system is the standby system state, the second dual-system synchronization data sent by the security mainboard of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing. The method realizes the interaction of key data between the dual systems by using suppression commands and multiple synchronization commands based on the field bus of the dual system, which reduces system overhead and improves system availability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, equipment and medium for synchronizing dual systems on a computer platform. Background Art

[0002] In a dual-system synchronous secure computer platform, in order to ensure the synchronization of data and status between the master and standby systems, the data synchronization method generally adopted is that the master system sends all the data it receives to the slave system every cycle, so that the slave system uses the master system data for calculation. This method leads to excessive data communication between the master and standby systems, which requires high system data throughput and limits the system scalability. In addition, the transmission of large amounts of data also increases the probability of standby system offline failures caused by data channel interference; another data synchronization method is that the master system schedules the communication with the external device that provides input data, and ensures the synchronization of the input data received by the master and standby systems by controlling the timing of the external device sending data to the master and standby systems. The disadvantage of this method is that when the external device adopts a two-out-of-two safety mechanism, it can only reply after each safety cycle is completed, and it cannot reply in real time. There is still a probability of inconsistent data between the master and standby systems, which requires that a certain fault tolerance mechanism must be added to tolerate occasional input inconsistencies in the standby system.

[0003] In order to synchronize the status of the main and backup systems, the existing technology generally adopts the method of relay interlocking or communication line suppression. The relay interlocking method requires the configuration of relay driving and acquisition circuits, which cannot meet the needs when the system cycle is required to be extremely low. When the communication line suppression method is adopted, since the analog signal is limited by the signal characteristics and the transmission distance is short, it cannot meet the requirements of setting up the main and backup systems separately, and it is also necessary to consider the risk of dual master after the communication line is disconnected.

[0004] As can be seen from the above, in the process of dual-system synchronization of a secure computer platform, how to avoid the situation where the dual-system data and status synchronization is not ideal due to the use of traditional dual-system synchronization methods, the system operation overhead is large, and the system operation efficiency and availability are low are problems to be solved in this field. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a computer platform dual-system synchronization method, device, equipment and medium, which can realize the intelligent scheduling of the master and standby system data based on the two-by-two-take-two safety computer platform, establish a more complete master and standby system state synchronization mechanism, and thus improve the availability of the system. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a dual-system synchronization method for a computer platform, which is applied to a security motherboard of any system in a dual-system platform, comprising:

[0007] Obtaining a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system;

[0008] Obtaining an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on, which is used to indicate that the pair of systems has been powered on, and determining the current operating state of the pair of systems according to the inter-system initialization command and the current operating state of the pair of systems;

[0009] If the current running state of the system is the master system state, the first dual-system synchronization data is sent to the secure mainboard of the opposite system, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data;

[0010] If the current running state of the own system is the standby system state, the second dual-system synchronization data sent by the secure mainboard of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing.

[0011] Optionally, the acquiring of a suppression command carrying the current running state of the system and sent by the system through an internal bus, and parsing the suppression command to acquire the current running state of the system, includes:

[0012] Obtain a suppression command carrying the current operating status of the system and sent to the system through the internal bus, and parse the suppression command to obtain the cycle start time of the system, the current system operating time of the system, the current operating cycle number of the system, the number of times the suppression command is sent to the system, and the operating status type of the system.

[0013] Optionally, the acquiring an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on to indicate that the pair of systems has been powered on, and determining the current operating state of the pair of systems according to the inter-system initialization command and the current operating state of the pair of systems, includes:

[0014] If an inter-system initialization command sent by the opposite system is received, the current system state is determined to be a dual-system operation state, and the current operation state of the system is determined to be a main system state or a standby system state according to a preset board priority strategy and the current operation state of the opposite system;

[0015] If the inter-system initialization command sent by the opposite system is not received, the current system state is determined to be a single-system operation state, and according to the current operation state of the opposite system, the current operation state of the own system is determined to be a single-main system state or a downtime state.

[0016] Optionally, after determining that the current system state is a single-system operation state, and determining the current operation state of the system as a single-master system state according to the current operation state of the other system, the method further includes:

[0017] receiving an inter-system initialization command sent by the opposite system through the inter-system bus, and sending an inter-system activation follow-up command to the opposite system, so that after the opposite system obtains the inter-system activation follow-up command, it determines the cycle start time and the system running time from the inter-system activation follow-up command;

[0018] Determine inter-system following data, and send the inter-system following data to the opposite system, so that after acquiring the inter-system following data, the opposite system uses the inter-system following data to update the operating environment of the own system, and determines the current operating state of the own system as the following state;

[0019] The current operating status of this system is determined as the main system status.

[0020] Optionally, if the current running state of the system is the master system state, sending the first dual-system synchronization data to the secure mainboard of the opposite system includes:

[0021] If the current running state of the system is the master system state, the first input and output data is determined, and the first interactive characteristic data determined based on the first input and output data is sent to the opposite system through the inter-system bus using the data selection strategy preset by the two systems; the first interactive characteristic data includes any one or more combinations of the unique code of the first input and output data, the data cycle number, the data length, and the data check code; the first input and output data includes the input data obtained by receiving from the external communication object and the output data generated by the periodic operation of the system;

[0022] Correspondingly, if the current running state of the system is the standby system state, receiving the second dual-system synchronization data sent by the secure mainboard of the opposite system, and performing corresponding data synchronization processing using the second dual-system synchronization data, including:

[0023] If the current running state of the system is the standby state, the second interactive feature data sent by the security mainboard of the system is obtained through the inter-system bus, and the second interactive feature data is compared with the interactive feature data of the system determined in the system based on the second input and output data to obtain a data comparison result. If the data comparison results are consistent, the system continues to run in the current running state; if the data comparison results are inconsistent, the current running state of the system is determined to be a downtime state.

[0024] Optionally, if the current running state of the system is the master system state, sending the first dual-system synchronization data to the secure mainboard of the opposite system includes:

[0025] If the current running state of the system is the master system state, the first cycle synchronization data is determined according to the current system cycle sequence number and the current running time of the system of the system, and a first cycle synchronization command including the first cycle synchronization data is sent to the opposite system through the inter-system bus based on a preset cycle;

[0026] Correspondingly, if the current running state of the system is the standby system state, the dual-system synchronization command and the synchronization data sent by the main system security mainboard are received, and judgment is made based on the dual-system synchronization command and the synchronization data to ensure the synchronization of the dual-system data, including:

[0027] If the current running state of the system is the standby state, the second cycle synchronization command sent by the security main board of the opposite system is obtained through the inter-system bus, the second cycle synchronization data is determined according to the second cycle synchronization command, and the second cycle synchronization data is compared with the current system cycle number of the system and the current running time of the system of the system by using the preset comparison rule. If the comparison result meets the preset synchronization condition, the current running time of the opposite system system is determined as the system running time of the system. If the comparison result does not meet the preset synchronization condition, the current running state of the system is determined as the downtime state.

[0028] Optionally, the computer platform dual-system synchronization method further includes:

[0029] The dual-system safety mainboard is connected by an inter-system bus, and all boards in the dual-system platform are connected by an internal bus; all boards include the dual-system safety mainboard and each safety function board; the inter-system bus and the internal bus are both dual redundant buses.

[0030] In a second aspect, the present application discloses a computer platform dual-system synchronization device, comprising:

[0031] A suppression command acquisition module is used to acquire a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parse the suppression command to acquire the current running state of the system;

[0032] An initialization command acquisition module is used to acquire an inter-system initialization command sent by the pair through the inter-system bus after the pair is powered on, which is used to indicate that the pair has been powered on, and determine the current operating state of the pair according to the inter-system initialization command and the current operating state of the pair;

[0033] The main system operation module is used for sending the first dual-system synchronization data to the security mainboard of the opposite system if the current operation state of the system is the main system state, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data;

[0034] The standby system operation module is used to receive the second dual-system synchronization data sent by the safety mainboard of the opposite system if the current operation state of the system is the standby system state, and perform corresponding data synchronization processing using the second dual-system synchronization data.

[0035] In a third aspect, the present application discloses an electronic device, comprising:

[0036] Memory, used to store computer programs;

[0037] The processor is used to execute the computer program to implement the aforementioned computer platform dual-system synchronization method.

[0038] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned computer platform dual-system synchronization method are implemented.

[0039] The present application obtains a suppression command carrying the current running state of the system sent by the opposite system through the internal bus, and parses the suppression command to obtain the current running state of the opposite system. After obtaining the inter-system initialization command sent by the opposite system through the inter-system bus to indicate that the system has been powered on, the current running state of the present system is determined according to the inter-system initialization command and the current running state of the opposite system. If the current running state of the present system is the master system state, the first dual-system synchronization data is sent to the safety host board of the opposite system, so that the opposite system uses the first dual-system synchronization data to perform corresponding data synchronization processing; if the current running state of the present system is the standby system state, the second dual-system synchronization data sent by the safety host board of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing. In this way, the present method realizes the synchronous operation of the dual system through the suppression command transmitted by the internal bus and the multiple synchronization commands transmitted by the inter-system bus of the master and standby systems, and the master and standby systems have the characteristics of intelligent comparison and key information synchronization. In the process of dual-system synchronization, all original data are not interacted but only part of the data is interacted, which reduces the system overhead, realizes the intelligent scheduling of system data, and thus improves the availability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0041] Figure 1 A flow chart of a dual-system synchronization method for a computer platform provided in this application;

[0042] Figure 2 A communication link connection diagram provided for this application;

[0043] Figure 3 A schematic diagram of data interaction between a security host board and a security function board provided in this application;

[0044] Figure 4A flow chart of the follow-up operation of a backup system provided for this application;

[0045] Figure 5 A functional schematic diagram provided for this application;

[0046] Figure 6 A flowchart of a specific computer platform dual-system synchronization method provided in this application;

[0047] Figure 7 A flow chart of dual-system input data screening rules provided for this application;

[0048] Figure 8 A flowchart of a specific computer platform dual-system synchronization method provided in this application;

[0049] Fig. 9 A schematic diagram of the structure of a dual-system synchronization device for a computer platform provided in this application;

[0050] Fig.10 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] In the prior art, the master system generally adopts the method of sending all the original data to the slave system or performing communication scheduling on the external device to complete the data synchronization between the two systems, and adopts the method of relay interlocking or communication line suppression to complete the state synchronization of the master and standby systems. The data and state synchronization of the two systems is not ideal and cannot meet the needs, and the scalability of the system is limited. In the present application, by integrating high real-time state communication with the working bus of the master and standby systems, the problem of both systems outputting after the failure of the dual master protection is completely solved, and the security of the system is improved. The present invention also uses a key state parameter synchronization method to reduce unnecessary data interaction between the master and standby systems, reduce the probability of failure due to data transmission errors, reduce system operation overhead, improve system operation efficiency, and reduce the difficulty of system expansion. By using the architecture of large-bandwidth data communication and high-real-time state communication, 2+2 redundancy is achieved, with a more complete master-standby system state synchronization mechanism, and the availability of the system is improved.

[0053] The embodiment of the present invention discloses a dual-system synchronization method for a computer platform, which is applied to any system security motherboard in the dual-system platform. Figure 1Said method comprises:

[0054] Step S11: obtaining a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system.

[0055] In this embodiment, the computer platform dual-system synchronization method may also include: using an inter-system bus to connect the dual-system security mainboard, and using an internal bus to connect all boards in the dual-system platform; all boards include the dual-system security mainboard and each safety function board; the inter-system bus and the internal bus are both dual redundant buses.

[0056] This embodiment adopts the field bus mode, and the main and standby systems can be respectively set in different cabinets, thereby improving the flexibility of system deployment.

[0057] like Figure 2 The figure shows a communication link connection diagram proposed by the present invention, which realizes the above-mentioned bus connection method of the dual-system platform. In the figure, the internal bus_A and the internal bus_B redundantly act between all the boards of the dual-system platform, and the inter-system bus_A and the inter-system bus_B redundantly act between the dual-system security mainboards.

[0058] It should be pointed out that when the internal bus acts between the safety main board and the safety function board, the role of the internal bus is to realize the periodic data exchange between the dual-system safety main board and each safety function board. When it acts between the left-system safety main board and the right-system safety main board, the role of the internal bus is to realize the dual-system safety main board, the main system issues the main system suppression command to the backup system.

[0059] In this embodiment, when the safety host board and the safety function board are transmitting data, the output data generated by the safety host board in each cycle is sent to each safety function board through the internal bus after being compared by both systems in the output stage. The output data generated by the safety function board in each cycle is first written into the memory. After receiving the data request command periodically sent by the main system safety host board, the latest output data pre-written into the memory is sent to the two system safety host boards through the internal bus. Figure 3 The figure shows a schematic diagram of data interaction between a dual-system safety host board and a safety function board, which illustrates the specific interaction process between the boards when the safety function board transmits data to the safety host board, that is, the main system safety host board initiates a safety host board data request command to each safety function board, and when each safety function board receives the above command, it sends the corresponding data to the main system safety host board and the backup system safety host board respectively.

[0060] It should be pointed out that when the safety motherboard is powered on, it will first enter the initialization stage. After entering this stage, the safety motherboard of this system will send an inter-system initialization command and a suppression command to the other system. The suppression command is a command sent through the internal bus to indicate the operating status of the system, and the inter-system initialization command is a command sent through the inter-system bus to indicate that the system has been powered on. The two systems can determine the operating status of the motherboard of the other system according to the received suppression command. After the initialization stage is over, the two systems will determine the current operating status of the system after determining the current operating status of the other system, and enter the periodic operation stage according to the preset operation cycle time based on the current operating status of the system. In the specific implementation process, the preset operation cycle time can be flexibly configured according to the operating requirements and operating overhead of the running application software (typical time configuration is 250 milliseconds, 300 milliseconds, 500 milliseconds, etc.).

[0061] In this embodiment, the step of obtaining a suppression command carrying the current running status of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the current running status of the system may include: obtaining a suppression command carrying the current running status of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the cycle start time of the system, the current system running time of the system, the current running cycle number of the system, the number of times the suppression command is sent to the system, and the running status type of the system.

[0062] In a specific implementation, the frame data in the suppression command may include some preset characteristic values. For example, Table 1 shows the characteristic data of each suppression command proposed in this embodiment. The suppression command characteristic data in the table include: the start time of the system cycle, the current system running time, the current running cycle number of the system, the number of times the suppression command of the system is sent, and the running status type of the system. Before sending the suppression command, the above information of the system will be determined first, and the above information will be packaged in a preset format and sent to the security mainboard of the system.

[0063] Table 1

[0064]

[0065] Table 2 shows the suppression command update rules proposed in this embodiment. In a specific embodiment, the dual-system mainboard can analyze the received suppression command according to the update rules on the right side of the table to determine the current running state of the opposite system. For example, if the "running state" field in the received suppression command is "initialization state", the current running state of the opposite system mainboard is determined to be the initialization state. If the "running state" field in the received suppression command is not "initialization state" or "main system state", the current running state of the opposite system mainboard is determined to be the unknown state. Obviously, the "'running state' field" in the table is a field used to characterize the running state type.

[0066] Table 2

[0067]

[0068]

[0069] Step S12: obtaining an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on, which is used to indicate that the pair of systems has been powered on, and determining the current operating state of the pair of systems according to the inter-system initialization command and the current operating state of the pair of systems.

[0070] It should be noted that the inter-system initialization command is transmitted in the inter-system bus and is a type of inter-system command. Other types of inter-system commands include, but are not limited to: an inter-system cycle synchronization command sent from the master system to the backup system for dual-system cycle synchronization and an inter-system activation follow command sent from the later powered-on system to the backup system for following the single master system.

[0071] In this embodiment, the obtaining of the inter-system initialization command sent by the pair of systems through the inter-system bus after power-on to indicate that the system has been powered on, and determining the current operating state of the system according to the inter-system initialization command and the current operating state of the pair of systems, may include: if the inter-system initialization command sent by the pair of systems is received, determining that the current system state is a dual-system operating state, and determining the current operating state of the system as a main system state or a standby system state according to a preset board priority strategy and the current operating state of the pair of systems; if the inter-system initialization command sent by the pair of systems is not received, determining that the current system state is a single-system operating state, and determining the current operating state of the system as a single-main system state or a downtime state according to the current operating state of the pair of systems.

[0072] Table 3 below shows the first operating state conversion rule table proposed in this embodiment, which shows the process of determining the current operating state to be converted by using the inter-system command and the suppression command when the dual systems are in the power-on initialization stage. It can be understood that if the inter-system initialization command sent by the opposite system is received after the present system is powered on (i.e., the case where the "inter-system command" in Table 3 is the "inter-system initialization command"), it indicates that the current system state is the dual-system operating state. It can be understood that if the system does not receive the inter-system initialization command sent by the peer system after the system is powered on (i.e., the "inter-system command" in Table 3 is "no valid inter-system command"), it indicates that the current system is in a single-system operation state. There may be two situations at this time. The first is that the peer system is not powered on and running, and the system state at this time is a single-system operation state of normal operation; the other situation is that the original system state should be a dual-system operation state, but the peer system fails and cannot transmit the inter-system initialization command, so the suppression command is used to determine the current operation state of the peer system. If the peer system mainboard is in a non-operating state at this time, the current operation state of the system is determined to be a single-main system state, indicating that it is a single-system operation state of normal operation; if the peer system mainboard is in an initialization stage state, a position state or a main system cycle operation stage state at this time, it indicates that the peer system currently has a fault, and the current operation state of the system is determined to be a downtime state at this time.

[0073] Table 3

[0074]

[0075] In a first specific implementation, if the current pair of systems obtained by the suppression command is in the initialization stage, one system can be determined as the main system based on the board priority policy preset in the dual-system mainboard. The board priority policy is used to determine that one of the dual systems has a default priority. In specific applications, this policy includes but is not limited to a position priority policy of using the left-system security mainboard as the main system board, or a time priority policy of using the system with an earlier suppression command sending time as the main system board.

[0076] In the second specific implementation, if the current system obtained by the suppression command is in a non-operating state, an unknown state, or a main system cycle operation stage state, it means that a fault has occurred in the system. At this time, the current operating state of the system can be determined as a downtime state.

[0077] It should be pointed out that when the system is in the initialization stage, it generally does not receive other types of inter-system commands. If other types of inter-system commands are received at this time, it indicates that a failure has occurred in the operation of the two systems. At this time, the operation will be stopped and the current operating state of the system will be determined as a downtime state.

[0078] In this embodiment, after determining that the current system state is a single-system operation state and determining the current operation state of the system as a single-master system state based on the current operation state of the opposite system, it may also include: receiving an inter-system initialization command sent by the opposite system through the inter-system bus, and sending an inter-system activation follow command to the opposite system, so that after the opposite system obtains the inter-system activation follow command, it determines the cycle start time and the system operation time from the inter-system activation follow command; determining inter-system follow data, and sending the inter-system follow data to the opposite system, so that after the opposite system obtains the inter-system follow data, it uses the inter-system follow data to update the operation environment of the system and determines the current operation state of the system as the follow state; determining the current operation state of the system as the master system state.

[0079] When the current system state is a single-system running state, the safety mainboard will run in a single-main system state. It should be pointed out that in this case, the opposite system mainboard may be powered on later. The safety mainboard that is powered on later will send an inter-system initialization command to the opposite system (that is, the opposite system safety mainboard in a single-main system state) through the inter-system bus. After receiving the inter-system initialization command, the single-main system mainboard sends an inter-system activation follow command to the later-powered system, and sends the inter-system follow data generated during the operation to the later-powered system. The inter-system activation follow command contains the current cycle start time and system time of the main system running safety mainboard. Correspondingly, after obtaining the inter-system follow data, the later-powered system uses the inter-system follow data to update the system software running environment, and sets the current running state of the system to the follow state. Conversely, the system that was originally in the main-backup state will set its own state to the main system state. It can be understood that the transmission of inter-system activation follow-up commands and inter-system follow-up data in the above process can generally be completed within the threshold time. If the later-powered-on system does not receive the corresponding command or data within the threshold time, it means that the system may have a fault, and the follow-up fails, and the later-powered-on system stops running. Figure 4 The figure shows a flow chart of the follow-up operation of the standby system, which embodies the operation process of the above-mentioned last-power-on system.

[0080] The purpose of the inter-system activation follow command is to ensure that the system powered on later has the same software operating environment as the single main system in operation. The combined use of the inter-system initialization command and the above-mentioned inter-system activation follow command here reflects the follow data synchronization function realized by the inter-system bus in this system.

[0081] It can be understood that when the system is powered on later and determines its current operating state as the follower state, it will follow the main system to operate in the current cycle. After the current cycle process ends, it can enter the cycle operation stage of the next cycle at the same time as the main system safety host board. Before the next cycle starts, it is necessary to determine the master and backup system states of the two boards. After determining the master and backup system states, it enters the next process with one master and one backup. Figure 5 The figure shows a flow chart based on the follow-up data synchronization function, which illustrates the specific process of the follow-up data synchronization function in the method.

[0082] Step S13: If the current running state of the system is the master system state, the first dual-system synchronization data is sent to the secure mainboard of the opposite system, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data.

[0083] It is understandable that after the safety host board is powered on and enters the initialization state, it will enter the cycle operation stage with the current operation state determined by the above steps, and the main system safety host board will send a synchronization command or synchronization data for dual system data synchronization to the backup system safety host board.

[0084] In a specific implementation, the main system safety host board will send a run suppression command to the opposite system with a preset suppression cycle. The run suppression command is sent by the main system safety host board to the opposite system with a preset suppression cycle. The standby system safety host board can confirm whether the main system operates normally within the cycle time according to the run suppression command, and judge whether the standby system operates normally according to whether the standby system safety host board can receive the run suppression command within the cycle time, and whether it can be converted to the main system state when the main system safety host board fails to operate normally. It should be pointed out that the run suppression command and the suppression command are both sent on the internal bus, and the data format of the run suppression command and the suppression command can be the same.

[0085] It should be noted that the first dual-system synchronization data sent from the master system to the peer system in this embodiment includes but is not limited to input and output data, periodic synchronization data, and the like.

[0086] Step S14: if the current running state of the system is the standby state, receiving the second dual-system synchronization data sent by the secure mainboard of the opposite system, and performing corresponding data synchronization processing using the second dual-system synchronization data.

[0087] It can be understood that, relative to step 13, the backup system security motherboard will receive the second dual-system synchronization data sent by the main system security motherboard, and in each data transmission process between the two systems, the first dual-system synchronization data and the second dual-system synchronization data are the same.

[0088] The present application obtains a suppression command carrying the current running state of the system sent by the opposite system through the internal bus, and parses the suppression command to obtain the current running state of the opposite system. After obtaining the inter-system initialization command sent by the opposite system through the inter-system bus to indicate that the system has been powered on, the current running state of the present system is determined according to the inter-system initialization command and the current running state of the present system. If the current running state of the present system is the master system state, the first dual-system synchronization data is sent to the safety host board of the opposite system, so that the present system uses the first dual-system synchronization data to perform corresponding data synchronization processing; if the current running state of the present system is the standby system state, the second dual-system synchronization data sent by the safety host board of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing. In this way, the present method realizes the normal operation of the dual systems after power-on through the suppression command transmitted by the internal bus and the inter-system initialization command transmitted by the inter-system bus of the master and standby systems, and constructs a 2+2 redundant intranet bus mechanism of Flexray+CanFD (i.e. CAN with Flexible Data-Rate) combination, integrating the transmission of key control information and master-standby inter-system state information. The state suppression between the master and standby systems does not require additional relay interlocking or analog communication. The master and standby systems use the same preset board priority strategy to determine the master and standby states, and operate with the same preset operation cycle in periodic operation. In the dual-system synchronization process, suppression commands and multiple synchronization commands are used to interact between boards, and the inter-system bus is used to realize the system's inter-system command synchronization function and follow-up data synchronization function, realizing intelligent switching of board states and intelligent scheduling of system data, thereby improving system availability.

[0089] Figure 6 A flowchart of a specific computer platform dual-system synchronization method provided in the embodiment of the present application. Figure 6 As shown, the method includes:

[0090] Step S21: obtaining a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system.

[0091] Step S22: obtaining an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on, which is used to indicate that the system has been powered on, and determining the current operating state of the own system according to the inter-system initialization command and the current operating state of the pair of systems.

[0092] Step S23: If the current operating state of the system is the master system state, the first input and output data is determined, and the first interactive feature data determined based on the first input and output data is sent to the opposite system through the inter-system bus using the data selection strategy preset by the two systems; the first interactive feature data includes any one or more combinations of the unique code, data cycle number, data length and data check code of the first input and output data; the first input and output data includes input data obtained by receiving from an external communication object and output data generated by the periodic operation of the system.

[0093] In this embodiment, when the two systems enter the periodic operation stage, they will respectively receive input data sent by the external communication object, and generate output data for sending to each safety function board.

[0094] In this embodiment, after receiving the input data of the external communication object, the two systems need to perform an intelligent comparison of the input data through the inter-system bus. Generally, the input data received by the two systems from the external communication object are consistent, but in order to ensure that the received input data is inconsistent due to operating failures of the two systems, the two systems will use interactive feature data to interact to complete the synchronization of the input data. The method of this embodiment converts the data interaction between the main and backup systems from large data volume synchronization to key state parameter synchronization, reduces the probability of failure due to data transmission errors, reduces unnecessary data interaction between the main and backup systems, reduces system operating overhead, improves system operating efficiency, and reduces the difficulty of system expansion.

[0095] The following Table 4 shows the interaction feature data and its explanation, which shows an example of input interaction feature data with data source ID (i.e., Identity document, unique code), data source cycle number, data length and data CRC (i.e., Cyclic Redundancy Check) as a single data.

[0096] Table 4

[0097] Entering interactive feature data describe Data Source ID Used to identify which safety function board the data comes from Data source cycle number Used to indicate the cycle number when the safety function board generates this data Data length The data length of this characteristic value entry data Data CRC The checksum of this feature value entry data

[0098] In a first specific implementation, the main system uses the same preset feature value screening strategy for both systems to determine the interactive feature data and send it to the backup system. After receiving the interactive feature data sent by the main system, the backup system uses the interactive feature data to compare with the interactive feature data of the system generated by the input data received by the system from the external communication object. After the two systems interact with each other through feature values, the common data of the two systems is determined to achieve data and status synchronization, avoiding the situation where the two systems use different input data to run the system and cause system failure. It should be pointed out that in this embodiment, the preset feature value screening strategy for screening interactive feature data in both systems is the same. This process reflects the input data selection function of the present system.

[0099] Another possible implementation method is that after receiving input data from an external communication object, the two systems each use the same preset feature value screening strategy to determine the interactive feature data, and send the interactive feature data to the other system through the inter-system bus. After the main system and the backup system respectively receive the interactive feature data from each other, they each use the same preset data screening rules to determine the input data. Since the two systems have the same preset data screening rules, the screened input data will be consistent, and the system will operate according to the consistent input data.

[0100] like Figure 7 The figure shows a dual-system input data screening rule flow chart. After comparing all received pair system data characteristic values ​​with all data characteristic values, if the data entries of the "data source ID" and the data entries of the "data source ID" in the two systems have the same "data source cycle number" and the "data length" and "data CRC" of the data with the largest cycle number in the "data source cycle number" are consistent, it means that the input data received by the main system and the backup system are consistent, and the data of this entry is marked as available. If the data entries of the "data source ID" in the two systems are different or the "data source cycle numbers" in the data entries of the "data source ID" are different, if the current operating state is the main system state and this conditional characteristic value data only exists in this system, then the data of this entry is marked as available. If this conditional characteristic value data does not only exist in this system, then the data of this entry is marked as unavailable; if the current state is not the main system state, then the data of this entry is marked as unavailable. If the "data length" or "data CRC" of the data with the largest cycle number in the "data source cycle number" in the dual systems are inconsistent, then the data of this entry is directly marked as unavailable.

[0101] In the second specific implementation, when the dual-system safety main board is operating normally, the output data generated for sending to each safety function board should be the same, but in order to ensure the data and status synchronization between the main and standby systems, the main system will send feature data based on the output data to the standby system when generating the output data. There may also be an implementation in which the main system can directly send all the output data to the standby system so that the standby system can use the output data for intelligent comparison to achieve synchronization of the data and status of the dual systems. As shown in Table 5, the second operating state conversion rule table proposed in this embodiment shows a rule table for determining the operating state conversion using the voting data received from the opposite system (i.e., the output data sent from the main system to the opposite system in this step) and the suppression command or operation suppression command from the suppression bus (i.e., the internal bus). It is understandable that if the reception timeout occurs when receiving the voting data for the system (i.e., the voting data is not received within the preset voting data receiving time), and the operating state of the system mainboard obtained by suppressing the bus is a non-operating state, then the current operating state is converted from the standby system state to the main system state. If the non-system mainboard is in a non-operating state (i.e., the system mainboard is in the initialization stage state, the unknown state, or the main system cycle operation stage state), the current operating state is converted from the standby system state to the downtime state. In the figure, when the standby system mainboard receives the voting data, if the voting data is inconsistent with the output data generated by the system, the vote fails, and the current operating state is converted from the standby system state to the downtime state. If the voting data is consistent with the output data generated by the system after the standby system mainboard receives the voting data, then the vote is successful and the system will continue to operate in the standby system state.

[0102] Table 5

[0103]

[0104]

[0105] Step S24: If the current operating state of the system is the standby state, the second interactive feature data sent by the security mainboard of the system is obtained through the inter-system bus, and the second interactive feature data is compared with the interactive feature data of the system determined in the system based on the second input and output data to obtain a data comparison result. If the data comparison results are consistent, the system continues to run in the current operating state; if the data comparison results are inconsistent, the current operating state of the system is determined to be a downtime state.

[0106] It should be noted that, in each data transmission process between the two systems, the first input-output data and the second input-output data are the same.

[0107] Table 6

[0108]

[0109] As shown in Table 6 above, the third operation state conversion rule table proposed in this embodiment shows a rule table for determining the operation state conversion by using the received input data characteristic value from the main system (i.e., the interactive characteristic data sent from the main system to the opposite system in this embodiment) and the suppression command or operation suppression command from the suppression bus (i.e., the internal bus). It can be understood that if the reception timeout occurs when receiving the opposite system interactive characteristic data (i.e., the interactive characteristic data is not received within the preset interactive characteristic data receiving time), and the operation state of the opposite system motherboard obtained through the suppression bus is a non-operating state, then the current operation state is converted from the standby system state to the main system state. If the non-opposite system motherboard is in a non-operating state (i.e., the opposite system motherboard is in an initialization stage state, an unknown state, or a main system periodic operation stage state), the current operation state is converted from the standby system state to a downtime state. If the received interactive characteristic data is inconsistent with the interactive characteristic data generated by the system, it means that the processing fails, and the current operation state is directly converted to a downtime state. If the received interactive characteristic data is consistent with the interactive characteristic data generated by the system, it means that the processing is successful, and the system will continue to run in the operation state of the system.

[0110] The present application obtains a suppression command carrying the current running state of the system sent through an internal bus of the system, and parses the suppression command to obtain the current running state of the system. After obtaining an inter-system initialization command sent through an inter-system bus after the system is powered on to indicate that it has been powered on, the current running state of the system is determined according to the inter-system initialization command and the current running state of the system. If the current running state of the system is the main system state, first dual-system synchronization data is sent to the security main board of the system so that the system performs corresponding data synchronization processing using the first dual-system synchronization data. If the current running state of the system is the standby system state, second dual-system synchronization data sent by the security main board of the system is received, and corresponding data synchronization processing is performed using the second dual-system synchronization data. In this way, the method realizes the normal operation of the dual systems through the suppression commands transmitted by the internal bus of the master and standby systems and the various synchronization commands transmitted by the inter-system bus. The master and standby systems have the characteristics of intelligent data comparison and key information synchronization, and realize the follow-up data synchronization function and the inter-system command synchronization function. In the process of dual-system synchronization, not all original data are interacted but only part of the key data is interacted, which reduces the system overhead, realizes the intelligent scheduling of system data and the intelligent conversion of the main board status, thereby improving the availability of the system.

[0111] Figure 8 A flowchart of a specific computer platform dual-system synchronization method provided in the embodiment of the present application. Figure 8 As shown, the method includes:

[0112] Step S31: obtaining a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system.

[0113] Step S32: obtaining an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on, which is used to indicate that the pair of systems has been powered on, and determining the current operating state of the pair of systems according to the inter-system initialization command and the current operating state of the pair of systems.

[0114] Step S33: If the current operating state of the system is the master system state, the first cycle synchronization data is determined according to the current system cycle number and the current operating time of the system, and a first cycle synchronization command containing the first cycle synchronization data is sent to the opposite system through the inter-system bus based on a preset cycle.

[0115] It can be understood that the periodic synchronization command described in this step is a periodic synchronization action performed every cycle when the two system boards are in the periodic operation stage at the same time. In a specific embodiment, the first periodic synchronization data may include an inter-system periodic command data packet, and the inter-system periodic command data packet can be used to perform system time verification and synchronization of the backup system safety host board with the main system safety host board. If the system time exceeds a certain threshold, the synchronization command is considered invalid, otherwise the command is considered valid, and the backup system synchronizes the system time of the main system. The inter-system periodic command data packet can also be used to verify the cycle number of the backup system safety host board with the main system safety host board. If the cycle numbers of the two systems are inconsistent, the synchronization command is considered invalid.

[0116] Furthermore, the inter-system periodic command data packet may be used to verify and synchronize other customized data of the backup system security mainboard with the main system security mainboard.

[0117] Step S34: If the current running state of the system is the standby state, the second cycle synchronization command sent by the security main board of the opposite system is obtained through the inter-system bus, the second cycle synchronization data is determined according to the second cycle synchronization command, and the second cycle synchronization data is compared with the current system cycle number of the system and the current system running time of the system by using the preset comparison rule. If the comparison result meets the preset synchronization condition, the current system running time of the opposite system is determined as the system running time of the system. If the comparison result does not meet the preset synchronization condition, the current running state of the system is determined as the downtime state.

[0118] It should be noted that, in each data transmission process between two systems, the first cycle synchronization command and the second cycle synchronization command are the same, and both the first cycle synchronization command and the second cycle synchronization command are inter-system cycle synchronization commands.

[0119] It can be understood that the purpose of the periodic synchronization command in this embodiment is to perform the periodic time synchronization function of the two system mainboards to ensure that the two mainboards are in the same operating time and operating cycle. A preset time difference threshold is also set for the two mainboards in the system. If the time difference between the current system operating time of the standby system and the current system operating time of the main system is within the preset time difference threshold, the standby system will adjust the current system operating time of the system to be consistent with the main system. If the time difference between the current system operating time of the standby system and the current system operating time of the main system exceeds the preset time difference threshold, it is considered that the standby system is faulty and the standby system will be converted to a downtime state.

[0120] Table 7 is the fourth operating state transition rule table proposed in this embodiment, which shows the rule table for determining the operating state transition of the dual systems during the periodic operation stage using the received inter-system commands and the suppression commands or operating suppression commands from the suppression bus (i.e., the internal bus). It can be understood that if the main system receives an inter-system initialization command sent to the paired system, it will continue to operate in the main system state; if the standby system receives an inter-system initialization command sent to the paired system, the system fails and switches its own state to the downtime state; if the standby system receives an inter-system periodic synchronization command sent to the paired system (i.e., the periodic synchronization command described in this embodiment), it will continue to operate in the standby system state when the paired system operating state is the main system periodic operating state, and if the paired system state is a non-operating state, an initialization stage state, or an unknown state, it will stop operating and switch to the downtime state; if the main system receives any command other than the inter-system initialization command and the inter-system periodic synchronization command during operation, If the standby system receives any command other than the synchronization command, it will continue to run in the main system state without changing its state; if the standby system receives any command other than the inter-system initialization command and the inter-system periodic synchronization command during operation, it will stop running and change to the downtime state; if the main system receives no valid inter-system command during operation, it will continue to run in the main system state without changing its state; if the standby system receives no valid inter-system command during operation, it will continue to run in the standby system state when the operating state of the opposite system is the main system periodic operating state, and will stop running and change to the downtime state if the opposite system state is the non-operating state, the initialization stage state or the unknown state.

[0121] Table 7

[0122]

[0123] The present application obtains a suppression command carrying the current running state of the system sent through the internal bus to the system, and parses the suppression command to obtain the current running state of the system. After obtaining the inter-system initialization command sent by the system through the inter-system bus after power-on to indicate that the system has been powered on, the current running state of the system is determined according to the inter-system initialization command and the current running state of the system. If the current running state of the system is the main system state, the first cycle synchronization data is determined according to the current system cycle sequence number and the current running time of the system of the system, and the first cycle synchronization data is sent to the system through the inter-system bus based on a preset cycle. The first cycle synchronization command of the cycle synchronization data; if the current running state of the system is the standby state, the second cycle synchronization command sent by the security main board of the opposite system is obtained through the inter-system bus, the second cycle synchronization data is determined according to the second cycle synchronization command, and the second cycle synchronization data is compared with the current system cycle sequence number of the system and the current system running time of the system using the preset comparison rule. If the comparison result meets the preset synchronization condition, the current system running time of the opposite system is determined as the system running time of the system. If the comparison result does not meet the preset synchronization condition, the current running state of the system is determined as the downtime state. In this way, the method realizes the normal operation of the two systems after power-on through the suppression command transmitted by the internal bus and the inter-system initialization command transmitted by the inter-system bus, and the two systems use the same preset board priority strategy to determine the master and standby status, and synchronize the cycle and time of the two systems through the inter-system cycle synchronization command during the cycle operation. In the process of dual-system synchronization, suppression commands and multiple synchronization commands are used to interact between boards, and the inter-system bus is used to realize the periodic time synchronization function between the two systems in the system, realize the intelligent switching of board states and the intelligent adjustment of system time, thereby improving the availability of the system. In addition, the present invention adopts the architecture of large-bandwidth data communication + high-real-time state communication, realizes 2+2 redundancy, and improves the availability of the system. After the high-real-time state communication is integrated with the working bus of the main and backup systems, the problem of both systems outputting after the failure of the dual-master protection is completely solved, and the safety of the system is improved.

[0124] See also Fig. 9 As shown, the embodiment of the present application discloses a dual-system synchronization device for a computer platform, which may specifically include:

[0125] The suppression command acquisition module 11 is used to acquire the suppression command carrying the current running state of the system sent by the system through the internal bus, and parse the suppression command to acquire the current running state of the system;

[0126] The initialization command acquisition module 12 is used to acquire the inter-system initialization command sent by the system through the inter-system bus after the system is powered on, which is used to indicate that the system has been powered on, and determine the current operating state of the system according to the inter-system initialization command and the current operating state of the system;

[0127] The main system operation module 13 is used for sending the first dual-system synchronization data to the security mainboard of the opposite system if the current operation state of the system is the main system state, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data;

[0128] The standby system operation module 14 is used for receiving the second dual-system synchronization data sent by the secure mainboard of the opposite system if the current operation state of the system is the standby system state, and performing corresponding data synchronization processing using the second dual-system synchronization data.

[0129] The present application obtains a suppression command carrying the current running state of the system sent by the opposite system through the internal bus, and parses the suppression command to obtain the current running state of the opposite system. After obtaining the inter-system initialization command sent by the opposite system through the inter-system bus to indicate that the system has been powered on, the current running state of the present system is determined according to the inter-system initialization command and the current running state of the opposite system. If the current running state of the present system is the master system state, the first dual-system synchronization data is sent to the safety host board of the opposite system, so that the opposite system uses the first dual-system synchronization data to perform corresponding data synchronization processing; if the current running state of the present system is the standby system state, the second dual-system synchronization data sent by the safety host board of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing. In this way, the present method realizes the normal operation of the dual system through the suppression command transmitted by the internal bus and the multiple synchronization commands transmitted by the inter-system bus of the master and standby systems, and the master and standby systems have the characteristics of intelligent comparison and key information synchronization. In the process of dual-system synchronization, all original data are not interacted but only part of the data is interacted, which reduces the system overhead, realizes the intelligent scheduling of system data, and thus improves the availability of the system.

[0130] In some specific embodiments, the suppression command acquisition module 11 includes:

[0131] The operation status acquisition unit is used to obtain the suppression command carrying the current operation status of the system sent by the system through the internal bus, and parse the suppression command to obtain the cycle start time of the system, the current system operation time of the system, the current operation cycle number of the system, the number of times the suppression command is sent to the system, and the operation status type of the system.

[0132] In some specific embodiments, the initialization command acquisition module 12 includes:

[0133] The command receiving unit is used to determine that the current system state is a dual-system operation state if an inter-system initialization command sent by the opposite system is received, and determine the current operation state of the system as a main system state or a standby system state according to a preset board priority strategy and the current operation state of the opposite system;

[0134] The command non-receiving unit is used to determine that the current system state is a single-system operation state if the inter-system initialization command sent to the opposite system is not received, and determine the current operation state of the system as a single-main system state or a downtime state according to the current operation state of the opposite system.

[0135] In some specific embodiments, the command receiving unit includes:

[0136] A follow-up command sending unit, used for receiving an inter-system initialization command sent by the opposite system through the inter-system bus, and sending an inter-system activation follow-up command to the opposite system, so that after the opposite system obtains the inter-system activation follow-up command, it determines the cycle start time and the system running time from the inter-system activation follow-up command;

[0137] A following data sending unit, used for determining inter-system following data, and sending the inter-system following data to the opposite system, so that after acquiring the inter-system following data, the opposite system uses the inter-system following data to update the operating environment of the own system, and determines the current operating state of the own system as the following state;

[0138] The state conversion unit is used to determine the current operating state of the system as the main system state.

[0139] In some specific embodiments, the main system operation module 13 includes:

[0140] a characteristic data sending unit, configured to determine first input and output data if the current running state of the system is the master system state, and send first interactive characteristic data determined based on the first input and output data to the opposite system through the inter-system bus by using the data selection strategy preset by the two systems; the first interactive characteristic data includes any one or more combinations of a unique code of the first input and output data, a data cycle number, a data length, and a data check code; the first input and output data includes input data obtained by receiving from an external communication object and output data generated by the periodic operation of the system;

[0141] Accordingly, the standby system operation module 14 includes:

[0142] The characteristic data receiving unit is used to obtain the second interactive characteristic data sent by the security mainboard of the opposite system through the inter-system bus if the current running state of the system is the standby state, and use the second interactive characteristic data to compare with the interactive characteristic data of the system determined in the system based on the second input and output data to obtain a data comparison result. If the data comparison results are consistent, the system continues to run in the current running state; if the data comparison results are inconsistent, the current running state of the system is determined to be a downtime state.

[0143] In some specific embodiments, the main system operation module 13 includes:

[0144] a cycle synchronization command sending unit, configured to determine the first cycle synchronization data according to the current system cycle sequence number and the current system operation time of the system if the current operation state of the system is the master system state, and send the first cycle synchronization command including the first cycle synchronization data to the opposite system through the inter-system bus based on a preset cycle;

[0145] Accordingly, the standby system operation module 14 includes:

[0146] The periodic synchronization command receiving unit is used for obtaining, through the inter-system bus, a second periodic synchronization command sent by the security mainboard of the opposite system if the current operating state of the system is the standby state, determining the second periodic synchronization data according to the second periodic synchronization command, and comparing the second periodic synchronization data with the current system periodic sequence number of the system and the current operating time of the system of the system by using a preset comparison rule; if the comparison result meets the preset synchronization condition, the current operating time of the opposite system system is determined as the operating time of the system of the present system; if the comparison result does not meet the preset synchronization condition, the current operating state of the present system is determined as the downtime state.

[0147] In some specific embodiments, the computer platform dual-system synchronization method further includes:

[0148] The board connection unit is used to connect the dual-system safety mainboard by using the inter-system bus, and to connect all boards in the dual-system platform by using the internal bus; all the boards include the dual-system safety mainboard and each safety function board; the inter-system bus and the internal bus are both dual redundant buses.

[0149] Furthermore, the present application also discloses an electronic device. Fig.10 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0150] Fig.10 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, an input / output interface 24, a communication interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the computer platform dual-system synchronization method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0151] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0152] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0153] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222. The operating system generally adopts a real-time operating system suitable for an embedded environment, such as uCOS (μC / OS II, i.e. Micro-Controller Operating System Two), RTOS (Real-time operating system), VxWorks, etc.). In addition to including a computer program that can be used to complete the computer platform dual-system synchronization method executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0154] Furthermore, the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned disclosed computer platform dual-system synchronization method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0155] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts refer to the method part description. Professionals can also further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but this implementation should not be considered to exceed the scope of this application.

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

[0157] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0158] The above is a detailed introduction to the computer platform dual-system synchronization method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A computer platform dual-system synchronization method, characterized in that: Applicable to any system security motherboard in dual system platform, including: Obtaining a suppression command carrying the current running state of the system sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system; wherein the internal bus is used to connect all boards in the dual-system platform; the suppression command is a command sent by the system to characterize the running state of the system; Obtaining an inter-system initialization command sent by the opposite system through the inter-system bus after power-on to indicate that the system has been powered on, and determining the current operating state of the system according to the inter-system initialization command and the current operating state of the opposite system; wherein the inter-system bus is used to connect the dual-system security mainboard; If the current running state of the system is the master system state, the first dual-system synchronization data is sent to the secure mainboard of the opposite system, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data; If the current running state of the own system is the standby system state, the second dual-system synchronization data sent by the secure mainboard of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing.

2. The computer platform dual-system synchronization method according to claim 1, characterized in that: The obtaining of the suppression command carrying the current running state of the system sent by the system through the internal bus, and parsing the suppression command to obtain the current running state of the system, includes: Obtain a suppression command carrying the current operating status of the system and sent to the system through the internal bus, and parse the suppression command to obtain the cycle start time of the system, the current system operating time of the system, the current operating cycle number of the system, the number of times the suppression command is sent to the system, and the operating status type of the system.

3. The computer platform dual-system synchronization method according to claim 2, characterized in that: The obtaining of an inter-system initialization command sent by the pair of systems through the inter-system bus after the pair of systems is powered on, which is used to indicate that the pair of systems has been powered on, and determining the current operating state of the pair of systems according to the inter-system initialization command and the current operating state of the pair of systems, includes: If an inter-system initialization command sent by the opposite system is received, the current system state is determined to be a dual-system operation state, and the current operation state of the system is determined to be a main system state or a standby system state according to a preset board priority strategy and the current operation state of the opposite system; If the inter-system initialization command sent by the opposite system is not received, the current system state is determined to be a single-system operation state, and according to the current operation state of the opposite system, the current operation state of the own system is determined to be a single-main system state or a downtime state.

4. The computer platform dual-system synchronization method according to claim 3, characterized in that: After determining that the current system state is a single-system operation state, and determining the current operation state of the system as a single-master system state according to the current operation state of the other system, the method further includes: receiving an inter-system initialization command sent by the opposite system through the inter-system bus, and sending an inter-system activation follow-up command to the opposite system, so that after the opposite system obtains the inter-system activation follow-up command, it determines the cycle start time and the system running time from the inter-system activation follow-up command; Determine inter-system following data, and send the inter-system following data to the opposite system, so that after acquiring the inter-system following data, the opposite system uses the inter-system following data to update the operating environment of the own system, and determines the current operating state of the own system as the following state; The current operating status of this system is determined as the main system status.

5. The computer platform dual-system synchronization method according to claim 1, characterized in that: If the current running state of the system is the master system state, sending the first dual-system synchronization data to the secure mainboard of the opposite system includes: If the current running state of the system is the master system state, the first input and output data is determined, and the first interactive characteristic data determined based on the first input and output data is sent to the opposite system through the inter-system bus using the data selection strategy preset by the two systems; the first interactive characteristic data includes any one or more combinations of the unique code of the first input and output data, the data cycle number, the data length, and the data check code; the first input and output data includes the input data obtained by receiving from the external communication object and the output data generated by the periodic operation of the system; Correspondingly, if the current running state of the system is the standby system state, receiving the second dual-system synchronization data sent by the secure mainboard of the opposite system, and performing corresponding data synchronization processing using the second dual-system synchronization data, including: If the current running state of the system is the standby state, the second interactive feature data sent by the security mainboard of the opposite system is obtained through the inter-system bus, and the second interactive feature data is used to compare with the interactive feature data of the system determined in the system based on the second input and output data to obtain a data comparison result. If the data comparison results are consistent, the system continues to run in the current running state; if the data comparison results are inconsistent, the current running state of the system is determined to be a downtime state; wherein, the second interactive feature data is the interactive feature data sent by the opposite system to the system, and is used to achieve synchronization of input data.

6. The computer platform dual-system synchronization method according to claim 1, characterized in that: If the current running state of the system is the master system state, sending the first dual-system synchronization data to the secure mainboard of the opposite system includes: If the current running state of the system is the master system state, the first cycle synchronization data is determined according to the current system cycle sequence number and the current running time of the system of the system, and a first cycle synchronization command including the first cycle synchronization data is sent to the opposite system through the inter-system bus based on a preset cycle; Correspondingly, if the current running state of the system is the standby state, the second dual-system synchronization data sent by the secure mainboard of the opposite system is received, and the second dual-system synchronization data is used to perform corresponding data synchronization processing, including: If the current running state of the system is the standby state, the second cycle synchronization command sent by the security main board of the opposite system is obtained through the inter-system bus, the second cycle synchronization data is determined according to the second cycle synchronization command, and the second cycle synchronization data is compared with the current system cycle number of the system and the current running time of the system of the system by using the preset comparison rule. If the comparison result meets the preset synchronization condition, the current running time of the opposite system system is determined as the system running time of the system. If the comparison result does not meet the preset synchronization condition, the current running state of the system is determined as the downtime state.

7. The computer platform dual-system synchronization method according to any one of claims 1 to 6, characterized in that: Also includes: The dual-system security mainboard is connected by using the inter-system bus, and all boards in the dual-system platform are connected by using the internal bus; All the boards include the dual-system safety main board and various safety function boards; The inter-system bus and the internal bus are both dual redundant buses.

8. A computer platform dual-system synchronization device, characterized in that: include: A suppression command acquisition module is used to acquire a suppression command carrying the current running state of the system and sent by the system through the internal bus, and parse the suppression command to acquire the current running state of the system; wherein the internal bus is used to connect all boards in the dual-system platform; the suppression command is a command sent by the system to characterize the running state of the system; An initialization command acquisition module, used to acquire an inter-system initialization command sent by the opposite system through the inter-system bus after power-on to indicate that the system has been powered on, and determine the current operating state of the system according to the inter-system initialization command and the current operating state of the opposite system; wherein the inter-system bus is used to connect the dual-system security mainboard; The main system operation module is used for sending the first dual-system synchronization data to the security mainboard of the opposite system if the current operation state of the system is the main system state, so that the opposite system performs corresponding data synchronization processing using the first dual-system synchronization data; The standby system operation module is used to receive the second dual-system synchronization data sent by the safety mainboard of the opposite system if the current operation state of the system is the standby system state, and perform corresponding data synchronization processing using the second dual-system synchronization data.

9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the computer platform dual-system synchronization method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the computer platform dual-system synchronization method as described in any one of claims 1 to 7 is implemented.