CN102495773B - System and method for real-time equipment driving restoration - Google Patents

System and method for real-time equipment driving restoration Download PDF

Info

Publication number
CN102495773B
CN102495773B CN 201110382083 CN201110382083A CN102495773B CN 102495773 B CN102495773 B CN 102495773B CN 201110382083 CN201110382083 CN 201110382083 CN 201110382083 A CN201110382083 A CN 201110382083A CN 102495773 B CN102495773 B CN 102495773B
Authority
CN
China
Prior art keywords
module
driven
control module
described driven
backup driver
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.)
Active
Application number
CN 201110382083
Other languages
Chinese (zh)
Other versions
CN102495773A (en
Inventor
胡事民
马超
尹杰
赵鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CN 201110382083 priority Critical patent/CN102495773B/en
Publication of CN102495773A publication Critical patent/CN102495773A/en
Application granted granted Critical
Publication of CN102495773B publication Critical patent/CN102495773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a system and method for real-time equipment driving restoration, and relates to the field of operating systems. The system comprises a control module, a backup driving module and a simulation equipment module, wherein the control module is connected with a normal driver and the backup driving module, and is used for managing the normal driver, the backup driving module and the simulation equipment module; the backup driving module is used for backing up the motions of the normal driver; and the simulation equipment module is connected with the backup driving module, and is used for simulating hardware equipment connected with the normal driver. According to the system and method, through the cooperation of the control module, the backup driving module and the simulation equipment module, the driving can be replaced and restored in time when the normal drivers fails, thus the reliability of real-time equipment driving is improved and the integral reliability of real-time equipment is further improved.

Description

A kind of real-time device drives restoration methods
Technical field
The present invention relates to the operation system technology field, particularly a kind of real-time device drives recovery system and method.
Background technology
Reliability is an important goal of operating system.The inefficacy of Windows XP operating system 85% is caused by device drives.The frequency that the (SuSE) Linux OS device drives lost efficacy is more than 3-7 times of other parts.Real-time device is widely used in the fields such as Aero-Space, medical treatment.Real-time device drives to break down and may cause imponderable loss, and therefore, the reliability that improves the real-time device driving is significant.
Summary of the invention
The technical matters that (one) will solve
The technical problem to be solved in the present invention is: how to provide a kind of real-time device to drive recovery system and method, in order to improve the reliability that real-time device drives, and then improve the reliability of real-time device integral body.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of real-time device and drive recovery system, it comprises: control module, backup driver module and analog machine module; Described control module connects driven and described backup driver module, is used for managing described driven, backup driver module and analog machine module; Described backup driver module is used for the behavior of described driven is backed up; Described analog machine module connects described backup driver module, is used for the hardware device that simulation is connected with described driven.
Preferably, described control module is the attended operation system kernel also, and described control module is also for the message exchange that realizes between described operating system nucleus and driven.
The present invention also provides a kind of real-time device to drive restoration methods, and it comprises step:
B: control module sends to driven and backup driver module simultaneously and orders and receive rreturn value, judges according to the rreturn value of described driven whether described driven breaks down, if so, and execution in step C; Otherwise, the rreturn value of described driven is sent to operating system nucleus;
C: it is out of service that described control module is controlled described driven, described backup driver module switched on hardware device move, and controls described analog machine module out of service;
D: described control module is recovered described driven, and the described driven of controlling after recovering is moved on described analog machine module.
Preferably, also comprised steps A before described step B: described control module is carried out initialization to described driven and backup driver module simultaneously.
5, method as claimed in claim 3, is characterized in that, described step B specifically comprises step:
B1: described control module after obtaining described order from described operating system nucleus copies described order, and a copy of it sends to described driven, and another part sends to described backup driver module simultaneously;
B2: described control module receives the rreturn value of described driven and backup driver module, does not do disposal for the rreturn value of described backup driver module; According to the rreturn value of described driven, judge whether described driven breaks down, if so, carry out described step C; Otherwise, the rreturn value of described driven is sent to described operating system nucleus.
Preferably, described step C specifically comprises step:
C1: it is out of service that described control module is controlled described driven, no longer sends order to described driven;
C2: described control module changes the parameter of described backup driver module, and described backup driver module is moved on described hardware device;
C3: it is out of service that described control module is controlled described analog machine module.
Preferably, described step D specifically comprises step:
D1: described control module adopts the mode that restarts described driven, perhaps according to the mode of the described driven of described backup driver module correction, recovers described driven;
D2: described control module changes the parameter of described driven, and described driven is moved on described analog machine module.
(3) beneficial effect
Real-time device of the present invention drives recovery system and method, cooperation by described control module, backup driver module and analog machine module, when described driven breaks down, can in time replace and recover, improve the reliability that real-time device drives, and then improved the reliability of real-time device integral body.
Description of drawings
Fig. 1 is that the described real-time device of the embodiment of the present invention drives recovery system modular structure schematic diagram;
Fig. 2 is that the described real-time device of the embodiment of the present invention drives the restoration methods process flow diagram.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for explanation the present invention, but are not used for limiting the scope of the invention.
Fig. 1 is that the described real-time device of the embodiment of the present invention drives recovery system modular structure schematic diagram.As shown in Figure 1, described system comprises: control module 200, backup driver module 300 and analog machine module 400, i.e. dotted line institute region in Fig. 1.Described control module 200 connects driven 500 and described backup driver module 300, is used for managing described driven 500, backup driver module 300 and analog machine module 400; Described backup driver module 300 is used for the behavior of described driven 500 is backed up; Described analog machine module 400 connects described backup driver module 300, is used for the hardware device 600 that simulation is connected with described driven 500.Described control module 200 is attended operation system kernel 100 also, and described control module 200 is also for the message exchange that realizes between described operating system nucleus 200 and driven 500.
Fig. 2 is that the described real-time device of the embodiment of the present invention drives the restoration methods process flow diagram.As shown in Figure 2, described method comprises step:
Steps A: described control module 200 is carried out initialization to described driven 500 and backup driver module 300 simultaneously.
Step B: described control module 200 sends to described driven 500 and backup driver module 300 simultaneously and orders and receive rreturn value, judges according to the rreturn value of described driven 500 whether described driven 500 breaks down, if so, and execution in step C; Otherwise, the rreturn value of described driven 500 is sent to operating system nucleus 100.
Described step B specifically comprises:
Step B1: after described control module 200 receives the described order of described operating system nucleus 100, described order is copied, a copy of it sends to described driven 500, and another part sends to described backup driver module 300 simultaneously.
Step B2: described control module 200 receives the rreturn value of described driven 500 and backup driver module 300, does not do disposal for the rreturn value of described backup driver module 300; According to the rreturn value of described driven 500, judge that whether described driven 500 breaks down, and if so, carries out described step C; Otherwise, the rreturn value of described driven 500 is sent to described operating system nucleus 100.
Step C: it is out of service that described control module 100 is controlled described driven 500, and described backup driver module 300 is switched to operation on hardware device 600, controls described analog machine module 400 out of service.
Described step C specifically comprises step:
Step C1: it is out of service that described control module 200 is controlled described driven 500, no longer sends order to described driven 500.
Step C2: described control module 200 changes the parameter of described backup driver module 300, and described backup driver module 300 is moved on described hardware device 600.
Step C3: it is out of service that described control module 200 is controlled described analog machine module 400.
Step D: described control module 200 is recovered described driven 500, and the described driven 500 of controlling after recovering is moved on described analog machine module 400.
Described step D specifically comprises step:
Step D1: described control module 200 adopts the mode that restarts described driven 500, perhaps revises the mode of described driven 500 according to described backup driver module 300, recovers described driven 500.
Step D2: described control module 200 changes the parameter of described driven 500, and described driven 500 is moved on described analog machine module 400.At this moment, described driven 500 and backup driver module 300 are completed role exchange one time, and namely described driven 500 begins to serve as the role that backup drives.
The described real-time device of the embodiment of the present invention drives recovery system and method, cooperation by described control module, backup driver module and analog machine module, when described driven breaks down, can in time replace and recover, improve the reliability that real-time device drives, and then improved the reliability of real-time device integral body.
Above embodiment only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. a real-time device drives restoration methods, it is characterized in that, comprises step:
B: control module sends to driven and backup driver module simultaneously and orders and receive rreturn value, judges according to the rreturn value of described driven whether described driven breaks down, if so, and execution in step C; Otherwise, the rreturn value of described driven is sent to operating system nucleus;
C: it is out of service that described control module is controlled described driven, described backup driver module switched on hardware device move, and the control simulation EM equipment module is out of service;
D: described control module is recovered described driven, and the described driven of controlling after recovering is moved on described analog machine module.
2. the method for claim 1, is characterized in that, also comprised steps A before described step B: described control module is carried out initialization to described driven and backup driver module simultaneously.
3. the method for claim 1, is characterized in that, described step B specifically comprises step:
B1: described control module after obtaining described order from described operating system nucleus copies described order, and a copy of it sends to described driven, and another part sends to described backup driver module simultaneously;
B2: described control module receives the rreturn value of described driven and backup driver module, does not do disposal for the rreturn value of described backup driver module; According to the rreturn value of described driven, judge whether described driven breaks down, if so, carry out described step C; Otherwise, the rreturn value of described driven is sent to described operating system nucleus.
4. the method for claim 1, is characterized in that, described step C specifically comprises step:
C1: it is out of service that described control module is controlled described driven, no longer sends order to described driven;
C2: described control module changes the parameter of described backup driver module, and described backup driver module is moved on described hardware device;
C3: it is out of service that described control module is controlled described analog machine module.
5. the method for claim 1, is characterized in that, described step D specifically comprises step:
D1: described control module adopts the mode that restarts described driven, perhaps according to the mode of the described driven of described backup driver module correction, recovers described driven;
D2: described control module changes the parameter of described driven, and described driven is moved on described analog machine module.
CN 201110382083 2011-11-25 2011-11-25 System and method for real-time equipment driving restoration Active CN102495773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110382083 CN102495773B (en) 2011-11-25 2011-11-25 System and method for real-time equipment driving restoration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110382083 CN102495773B (en) 2011-11-25 2011-11-25 System and method for real-time equipment driving restoration

Publications (2)

Publication Number Publication Date
CN102495773A CN102495773A (en) 2012-06-13
CN102495773B true CN102495773B (en) 2013-06-19

Family

ID=46187599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110382083 Active CN102495773B (en) 2011-11-25 2011-11-25 System and method for real-time equipment driving restoration

Country Status (1)

Country Link
CN (1) CN102495773B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373433B2 (en) * 2004-10-22 2008-05-13 International Business Machines Corporation Apparatus and method to provide failover protection in an information storage and retrieval system
US20070038891A1 (en) * 2005-08-12 2007-02-15 Stratus Technologies Bermuda Ltd. Hardware checkpointing system
CN101059768B (en) * 2006-04-17 2011-01-05 北京软通科技有限责任公司 System and method for implementing operating system standby
JP4448878B2 (en) * 2007-12-06 2010-04-14 株式会社日立製作所 How to set up a disaster recovery environment
CN102841825B (en) * 2011-06-23 2014-11-05 珠海市君天电子科技有限公司 Drive backup method and device and drive restoration method and device

Also Published As

Publication number Publication date
CN102495773A (en) 2012-06-13

Similar Documents

Publication Publication Date Title
CN105335255B (en) The system and method for the fast quick-recovery of realization business
CN103729275B (en) Hard disk firmware repairing system and hard disk firmware repairing method
CN103514013A (en) Gateway product FLASH configuration loss processing method
JP2005100373A5 (en)
DE112013001805T5 (en) Method and apparatus for improving a hibernation and resumption process by user space synchronization
CN105159719A (en) Starting method and device of master basic input/output system and slave basic input/output system
EP2674864A3 (en) Method and apparatus for fault tolerant firmware-over-the-air update with single backup block write
CN102902518B (en) A kind of changing method of active USB device and its mode of operation
US20080059733A1 (en) Storage apparatus and method of managing data using the storage apparatus
CN101739305A (en) Operating system kernel level real-time dongle monitoring device and monitoring method thereof
CN103049343B (en) Operating system blue screen restoration methods and device
CN101815099B (en) Double-controller configuration information synchronization method and device in double-control disk array
CN104407931A (en) Method for obtaining mirror image of damaged system disk of virtual machine
US8555118B2 (en) System and method for processing network data of a server
CN104579802A (en) Method for quickly recovering faults of multi-path server
CN102495773B (en) System and method for real-time equipment driving restoration
CN1967489A (en) Method and system for preventing computer down
WO2015165154A1 (en) Board resetting method and device
CN103873516A (en) HA method and system for improving usage rate of physical servers in cloud computing resource pool
CN104394582A (en) WiFi sleeping method for Android device
CN106484807A (en) Build the method and system of autonomous controlled data storehouse dual-active or many aggregated structures living
EP2922331B1 (en) Method and system for performing dual-homing automatic switching decision according to the number of registered gateways
CN104572347A (en) System recovery method based on block-level recovery, registry correction and driver injection
TW202418078A (en) Dual-processor device and control method therefor, and processor
CN104484241A (en) Terminal system file backup and recovery method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant