CN104636219A - Synchronous event response method for three-machine hot backup real-time system - Google Patents
Synchronous event response method for three-machine hot backup real-time system Download PDFInfo
- Publication number
- CN104636219A CN104636219A CN201410771377.7A CN201410771377A CN104636219A CN 104636219 A CN104636219 A CN 104636219A CN 201410771377 A CN201410771377 A CN 201410771377A CN 104636219 A CN104636219 A CN 104636219A
- Authority
- CN
- China
- Prior art keywords
- event
- stand
- machines
- alone
- hot backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 14
- 230000004044 response Effects 0.000 title claims abstract description 12
- 230000008569 process Effects 0.000 claims description 9
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
Landscapes
- Hardware Redundancy (AREA)
Abstract
本发明提供一种三机热备份实时系统同步事件响应的方法,三机热备份实时系统包括三台独立运行的单机,相互之间在每个控制周期定时通讯、交换数据,每一控制周期每个单机运行以下步骤:S1、查询是否有需要处理的事件;S2、当需要处理的事件到来时,记录本机的事件状态;S3、记录事件状态后与其他单机相互交换信息,查询其他单机是否有事件状态;S4、选择执行:S41、若步骤S3中查询到三台单机均有事件状态,则开始响应;或S42、若步骤S3中查询到有单机未有事件状态则等待一个控制周期。本发明通过单机之间的信息交换,根据收到事件的状态,决定是否使用数据信息,在信息不同步时等待一拍,提高热备份系统的可靠性和完备性。
The invention provides a method for synchronous event response of a three-machine hot backup real-time system. The three-machine hot backup real-time system includes three independently operated single machines, which communicate and exchange data with each other at regular intervals in each control cycle. A stand-alone machine runs the following steps: S1. Query whether there is an event that needs to be processed; S2. When the event that needs to be processed arrives, record the event status of the machine; S3. Exchange information with other stand-alone machines after recording the event state, and check whether other stand-alone machines There is event status; S4, choose to execute: S41, if in step S3 all three stand-alone machines are found to have event status, then start to respond; or S42, if in step S3 it is found that there are stand-alone machines without event status, then wait for a control cycle. The invention decides whether to use data information according to the status of received events through information exchange between single machines, and waits for a beat when the information is not synchronized, thereby improving the reliability and completeness of the hot backup system.
Description
技术领域technical field
本发明涉及航天器上的多机热备份控制系统计算机,具体的,涉及一种基于三机热备份实时系统同步事件响应的方法。The invention relates to a multi-machine hot backup control system computer on a spacecraft, in particular to a method for synchronous event response based on a three-machine hot backup real-time system.
背景技术Background technique
从月地转移返轨道精准返回地球的系统控制方案具有技术难度大,可靠性、安全性要求高的特点。其中制导、导航与控制计算机应用软件作为制导、导航与控制分系统的重要组成部分对返回方案的成功具有决定性作用。The system control scheme of transferring from the moon to the orbit and returning to the earth accurately has the characteristics of high technical difficulty and high requirements for reliability and safety. Among them, the guidance, navigation and control computer application software, as an important part of the guidance, navigation and control subsystem, plays a decisive role in the success of the return program.
返回器控制计算机采用三机热备份结构。在返回再入过程中,随时会有各种异步事件需要软件进行处理,如地面上注数据、指令,舱器结构发生变化、数管广播转发各种数据等,由于飞行环境的干扰,例如剧烈的振动、进入电磁盲区等,三极热备份结构各个系统的单机软件在运行过程中难以保持指令级同步,这些随机事件的查询响应时刻存在一定的时间差,各单机响应事件时有可能会产生时序上的差别,导致三机不同步的事件发生。The returner control computer adopts a three-machine hot backup structure. During the return and reentry process, there will be various asynchronous events that need to be processed by the software at any time, such as the injection of data and instructions on the ground, the change of the structure of the cabin, and the forwarding of various data by the digital tube broadcast. Due to the interference of the flight environment, such as severe vibration, entering the electromagnetic blind zone, etc., it is difficult for the stand-alone software of each system in the three-pole hot backup structure to maintain command-level synchronization during operation. The difference in the above results in the event that the three machines are not synchronized.
为了提高软件的可靠性和安全性,必须对返回再入过程中的异步事件进行同步响应处理,保证三机同步运行,从而提高软件运行的可靠性,确保顺利完成从月地轨道返回地球的科研试验任务。In order to improve the reliability and security of the software, it is necessary to respond synchronously to the asynchronous events during the return and re-entry process to ensure the synchronous operation of the three machines, thereby improving the reliability of the software operation and ensuring the successful completion of the scientific research of returning to the earth from the lunar orbit test task.
发明内容Contents of the invention
本发明要解决的技术问题为:提供一种基于三机热备份实时系统的时间同步响应的方法,以对返回再入过程中的异步事件进行同步响应处理,保证三机同步运行,从而提高软件运行的可靠性。The technical problem to be solved by the present invention is: to provide a method for time synchronization response based on the real-time system of the three-machine hot backup, to perform synchronous response processing on the asynchronous events in the return and re-entry process, to ensure the synchronous operation of the three machines, thereby improving the software operational reliability.
本发明的技术方案为:一种基于三机热备份实时系统同步事件响应的方法,三机热备份实时系统包括三台独立运行的单机,三台单机相互之间在每个控制周期定时通讯、交换数据,每一控制周期每个单机运行包括以下步骤:S1、查询是否有需要处理的事件;S2、当需要处理的事件到来时,记录本机的事件状态;S3、记录事件状态后与其他单机相互交换信息,查询其他单机是否有事件状态;S4、选择执行以下二种动作中的一种:S41、若步骤S3中查询到三台单机均有事件状态,则开始响应事件,处理数据;或S42、若步骤S3中查询到有一台或两台单机未有事件状态,则等待一个控制周期。The technical solution of the present invention is: a method for synchronous event response based on the three-machine hot backup real-time system, the three-machine hot backup real-time system includes three independently operated stand-alone machines, and the three stand-alone machines communicate regularly with each other in each control cycle, Exchanging data, each control cycle and each stand-alone operation includes the following steps: S1. Query whether there is an event that needs to be processed; S2. When the event that needs to be processed arrives, record the event status of the machine; S3. After recording the event status, communicate with other Single machines exchange information with each other, and check whether other single machines have an event state; S4, choose to perform one of the following two actions: S41, if in step S3, it is found that all three single machines have an event state, then start to respond to events and process data; Or S42, if it is found in step S3 that one or two stand-alone machines have no event status, wait for one control cycle.
还包括,S5、若是在上一个控制周期中执行了步骤S42,已经等待了一个控制周期,则在当前周期响应事件、处理数据。It also includes, S5. If step S42 was executed in the last control cycle and one control cycle has been waited, respond to events and process data in the current cycle.
进一步地,单机中设有等待计数,等待计数在步骤S42中等待一个控制周期时加1,在步骤S5后归零。Further, there is a waiting count in the stand-alone machine, and the waiting count is incremented by 1 when waiting for one control cycle in step S42, and returns to zero after step S5.
本发明与现有技术相比的优点在于:通过单机之间的信息交换,根据收到事件的状态,决定是否使用数据信息,在信息不同步时等待一拍,提高热备份系统的可靠性和完备性。Compared with the prior art, the present invention has the advantages of: through the information exchange between the stand-alone machines, it is decided whether to use the data information according to the state of the received event, and it waits for a beat when the information is not synchronized, so as to improve the reliability and reliability of the hot backup system. completeness.
附图说明Description of drawings
图1示出了本发明的一种基于三机热备份实时系统同步事件响应的方法的步骤图。FIG. 1 shows a step diagram of a method for synchronizing event response based on a three-machine hot backup real-time system of the present invention.
具体实施方式Detailed ways
本发明提供一种主动交会对接航天飞行器的三机热备份系统中的实时系统同步事件响应的方法,综合考虑容错状态,根据收到事件的状态,决定是否使用数据信息。在确保在三机都收到数据的情况下,才使用收到的数据。本发明将三机的状态信息综合考虑,提高热备份系统的可靠性和完备性。本方法适用于对时序要求较高但功能复杂、容错信息量较大的多机热备份冗余系统。The invention provides a method for responding to a real-time system synchronization event in a three-machine hot backup system of an active rendezvous and docking spacecraft, which comprehensively considers the fault-tolerant state and determines whether to use data information according to the state of the received event. Only use the received data when it is ensured that all three machines have received the data. The invention comprehensively considers the state information of the three machines, and improves the reliability and completeness of the hot backup system. This method is suitable for a multi-machine hot backup redundant system that requires high timing but has complex functions and a large amount of fault-tolerant information.
参见图1所示,本发明的三机热备份实时系统装在返回飞行器上,包括三台相同的单机,且三台单机相互之间在每个控制周期(每一拍)定时通讯、交换数据。三机热备份系统中的每个单机均按如下步骤进行:Referring to shown in Fig. 1, the three-machine hot backup real-time system of the present invention is installed on the returning aircraft, and includes three identical stand-alone machines, and the three stand-alone machines communicate regularly and exchange data between each control cycle (every beat) . Each stand-alone machine in the three-machine hot backup system performs the following steps:
(1)查询是否有随机事件发生。(1) Query whether a random event occurs.
查询是否有需要处理的随机事件到来。若有事件发生到来,不是立即处理,而先记录本机事件状态。Query whether there are random events coming that need to be processed. If an event occurs, it is not processed immediately, but the event status of the machine is recorded first.
(2)三机交换状态。(2) The state of the three machines switching.
各单机之间相互交换信息,查询是否有事件到来状态。The stand-alone machines exchange information with each other to check whether there is an event arrival status.
(3)进行同步处理(3) Perform synchronous processing
若三机都查询到新的随机事件,则开始响应该事件,响应上行信息、处理数据,并将数据处理完成标志设为有效;否则,若是有一机或两机未收到,则等待计数加1、延迟一拍响应,以等待本拍未查询到异步事件的单机,保证三机同步处理该事件,并且对事件的总体响应时延不会很长,依然满足系统要求。若判断了已经等待一拍后,可以此时再处理数据,也可以再等待直至全部单机均有事件状态;数据处理完成后,将等待计数的数值清零。If all three machines find a new random event, they will start to respond to the event, respond to uplink information, process data, and set the data processing completion flag to be valid; otherwise, if one or two machines do not receive it, wait for the count to increase. 1. Delay the response by one shot to wait for the single machine that does not query the asynchronous event in this shot, so as to ensure that the three machines process the event synchronously, and the overall response delay to the event will not be very long, which still meets the system requirements. If it is judged that it has been waiting for one shot, the data can be processed at this time, or it can be waited until all the stand-alone machines have event status; after the data processing is completed, the value of the waiting count is cleared.
经过测试表明,应用了本发明算法后,三机热备份实时系统的时序同步性良好,提高了系统运行的安全性、可靠性,保证了系统在复杂时序下的稳定性。Tests show that after applying the algorithm of the present invention, the timing synchronization of the three-computer hot backup real-time system is good, the safety and reliability of system operation are improved, and the stability of the system under complex timing is guaranteed.
本发明说明书中未作详细描述的内容属于本领域专业技术人员的公知技术。The content that is not described in detail in the specification of the present invention belongs to the well-known technology of those skilled in the art.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410771377.7A CN104636219B (en) | 2014-12-12 | 2014-12-12 | Synchronous event response method for three-machine hot backup real-time system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410771377.7A CN104636219B (en) | 2014-12-12 | 2014-12-12 | Synchronous event response method for three-machine hot backup real-time system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104636219A true CN104636219A (en) | 2015-05-20 |
| CN104636219B CN104636219B (en) | 2017-05-10 |
Family
ID=53215006
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410771377.7A Active CN104636219B (en) | 2014-12-12 | 2014-12-12 | Synchronous event response method for three-machine hot backup real-time system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104636219B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110688427A (en) * | 2019-09-11 | 2020-01-14 | 北京控制工程研究所 | An asynchronous data synchronization method for a four-machine hot backup real-time system |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101576836A (en) * | 2009-06-12 | 2009-11-11 | 北京航空航天大学 | Degradable three-machine redundancy fault-tolerant system |
| US7725767B2 (en) * | 2005-07-25 | 2010-05-25 | Nec Corporation | Apparatus including an operating manager and a switch for disconnecting the operating manager from a bus |
| CN102053883A (en) * | 2010-12-17 | 2011-05-11 | 北京控制工程研究所 | Control cycle synchronizer of triple-modular redundancy fault-tolerant computer |
| CN102402220A (en) * | 2011-01-21 | 2012-04-04 | 南京航空航天大学 | Load sharing fault tolerant flight control system and fault detection method |
| CN103473156A (en) * | 2013-09-24 | 2013-12-25 | 北京控制工程研究所 | Hot backup fault-tolerance method based on real-time operating systems and used for three satellite borne computers |
-
2014
- 2014-12-12 CN CN201410771377.7A patent/CN104636219B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7725767B2 (en) * | 2005-07-25 | 2010-05-25 | Nec Corporation | Apparatus including an operating manager and a switch for disconnecting the operating manager from a bus |
| CN101576836A (en) * | 2009-06-12 | 2009-11-11 | 北京航空航天大学 | Degradable three-machine redundancy fault-tolerant system |
| CN102053883A (en) * | 2010-12-17 | 2011-05-11 | 北京控制工程研究所 | Control cycle synchronizer of triple-modular redundancy fault-tolerant computer |
| CN102402220A (en) * | 2011-01-21 | 2012-04-04 | 南京航空航天大学 | Load sharing fault tolerant flight control system and fault detection method |
| CN103473156A (en) * | 2013-09-24 | 2013-12-25 | 北京控制工程研究所 | Hot backup fault-tolerance method based on real-time operating systems and used for three satellite borne computers |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110688427A (en) * | 2019-09-11 | 2020-01-14 | 北京控制工程研究所 | An asynchronous data synchronization method for a four-machine hot backup real-time system |
| CN110688427B (en) * | 2019-09-11 | 2022-03-04 | 北京控制工程研究所 | Asynchronous data synchronization method of four-machine hot backup real-time system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104636219B (en) | 2017-05-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8503484B2 (en) | System and method for a cross channel data link | |
| US10572401B2 (en) | Direct memory access descriptor processing using timestamps | |
| US10565071B2 (en) | Smart data replication recoverer | |
| Lüdtke et al. | OBC-NG: Towards a reconfigurable on-board computing architecture for spacecraft | |
| US20120222034A1 (en) | Asynchronous checkpoint acqusition and recovery from the checkpoint in parallel computer calculation in iteration method | |
| CN107111631A (en) | Granularity is synchronous/half synchronous architecture | |
| EP2709010B1 (en) | System and method for synchronizing processor instruction execution | |
| EP3312723B1 (en) | Command processing method and server | |
| US20130013566A1 (en) | Storage group synchronization in data replication environments | |
| US9934114B2 (en) | Communication system, standby device, communication method, and standby program | |
| US9043283B2 (en) | Opportunistic database duplex operations | |
| CN104636219B (en) | Synchronous event response method for three-machine hot backup real-time system | |
| CN103677749B (en) | System and method for control processor instruction execution | |
| US10649862B1 (en) | Reducing failback performance duration in data replication systems | |
| CN106326030B (en) | Method and apparatus for soft handoff in a storage system | |
| CN110688427B (en) | Asynchronous data synchronization method of four-machine hot backup real-time system | |
| JP6056408B2 (en) | Fault tolerant system | |
| US9612985B1 (en) | Synchronization mechanisms for high-integrity computing | |
| KR101766446B1 (en) | Duplex system and methods for synchronizing data and restoring data | |
| CN103516528B (en) | Business Processing management system | |
| Niranjan et al. | An Efficient Algorithm in Fault Tolerance for Electing Coordinator in Distributed Systems | |
| CN104345771B (en) | A Method for Initial Synchronization of Multi-computer Hot Backup Computers | |
| JP2008097155A (en) | Data storage control device and data storage device | |
| 丁冠華 | Test Automation for Fault Tolerant Service over Kernel-based Virtual Machine | |
| Chauhan et al. | Two phase algorithm to establish consistent checkpoints for recovery in multi process environment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |